@marimo-team/islands 0.23.17-dev54 → 0.23.17-dev55

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 (558) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BBZRR1-C.js → ConnectedDataExplorerComponent-BUC1MrsF.js} +24 -24
  2. package/dist/{ErrorBoundary-CptUP1_t.js → ErrorBoundary-BniTEhHn.js} +7 -7
  3. package/dist/{ImageComparisonComponent-fdY0LUuf.js → ImageComparisonComponent-B7b8DcJI.js} +4 -4
  4. package/dist/{Plot-YQOuVIei.js → Plot-eTseCFf_.js} +4 -4
  5. package/dist/_initCloneObject-DNUst5Cg.js +91 -0
  6. package/dist/abnfDiagram-N423BO3Z-DA4j92-C.js +112 -0
  7. package/dist/{any-language-editor-BnIS9Mvg.js → any-language-editor-LHl8ZmVN.js} +26 -26
  8. package/dist/apl-Cwo7GIH7.js +4 -0
  9. package/dist/{arc-CTIpFoOn.js → arc-9nABupDE.js} +2 -2
  10. package/dist/architecture-TIHT7OUA-DxLlkuAK.js +5 -0
  11. package/dist/{architectureDiagram-VXUJARFQ-CfGr729i.js → architectureDiagram-T3A2C74G-BBlBK1Oh.js} +327 -214
  12. package/dist/{arrays-sEtDRoG4.js → arrays-C56grfjL.js} +1 -1
  13. package/dist/asciiarmor-jrfEZ3j_.js +4 -0
  14. package/dist/asn1-BNEiJ4nQ.js +4 -0
  15. package/dist/blockDiagram-VBNYF7ZC-Datz1WNn.js +3284 -0
  16. package/dist/brainfuck-BCunvTbd.js +4 -0
  17. package/dist/{button-8aS1QcHr.js → button-Dr2uAwhT.js} +5 -5
  18. package/dist/{c4Diagram-YG6GDRKO-C_3ITiA6.js → c4Diagram-5PPSVZJV-DTIsibpE.js} +165 -162
  19. package/dist/{capabilities-D23lgbH_.js → capabilities-BilXeZ7p.js} +2 -2
  20. package/dist/{channel-Bg4StoYP.js → channel-CuV_jmG4.js} +1 -1
  21. package/dist/{chat-ui-JS5FK7Ls.js → chat-ui-o-tATfmW.js} +32 -33
  22. package/dist/{check-D-BaEjEh.js → check-58HHfHKy.js} +1 -1
  23. package/dist/chunk-2GRJ4B5K-DRayWnnu.js +68 -0
  24. package/dist/{chunk-QZHKN3VN-Dym5BS7y.js → chunk-2Q5K7J3B-BSLyFOHa.js} +1 -1
  25. package/dist/chunk-3NCLNEKW-BPlp8K7N.js +11 -0
  26. package/dist/chunk-4I5QYGJK-CYJC3pkC.js +260 -0
  27. package/dist/chunk-5FCAYU7R-C3cMIeyz.js +24 -0
  28. package/dist/{chunk-5FQGJX7Z-B9WoXK1R.js → chunk-5FQGJX7Z-BRZ_XYUw.js} +6 -6
  29. package/dist/chunk-5HE753X5-D2jFCVXb.js +34 -0
  30. package/dist/chunk-5JV3BV7I-B7tzprBU.js +50 -0
  31. package/dist/{chunk-DI55MBZ5-CFmDWujZ.js → chunk-5RXB4S5H-DcCPfb0q.js} +373 -327
  32. package/dist/chunk-5TONJI2A-LRqbgPte.js +59 -0
  33. package/dist/{chunk-FMBD7UC4-quJmebXa.js → chunk-5VM5RSS4-ChXEBudA.js} +1 -1
  34. package/dist/chunk-6Q2QTUOP-zcnb3OaV.js +503 -0
  35. package/dist/{chunk-HN2XXSSU-Bv0QkeMr.js → chunk-7BUUIJ7U-CkIbJNZo.js} +32 -25
  36. package/dist/chunk-7Z6QIM7H-1j-x7ddW.js +606 -0
  37. package/dist/{chunk-FRFDVMJY-BHBqN-vD.js → chunk-BIQX33UG-B-BYk6sM.js} +3 -3
  38. package/dist/chunk-Bfp04NdC.js +25 -0
  39. package/dist/chunk-CQNSW5MT-DBXDKSOU.js +34 -0
  40. package/dist/{chunk-4F5CHEZ2-VlodlEGo.js → chunk-CYSBUYHQ-Cv-vKQV-.js} +1 -1
  41. package/dist/{chunk-SJTYNZTY-DnXoKWpW.js → chunk-EMLP6XTP-DCtMkXLF.js} +1 -1
  42. package/dist/{chunk-B4BG7PRW-C0gy-pwj.js → chunk-GF5L2VYU-esTxzELH.js} +878 -636
  43. package/dist/chunk-I66GZJ75-9xAsFrdW.js +3744 -0
  44. package/dist/chunk-J7OUQ5F2-CbNBTlFM.js +81 -0
  45. package/dist/chunk-JG7HCLWE-CZIm6axg.js +59 -0
  46. package/dist/{flowDiagram-NV44I4VS-C4JhRtt8.js → chunk-JQJVKLGR-ZALkKVji.js} +1019 -1001
  47. package/dist/{chunk-4BX2VUAB-iU5lQTDI.js → chunk-JWPE2WC7-C_Daz-Oc.js} +1 -1
  48. package/dist/{chunk-QN33PNHL-D3s0CL4V.js → chunk-KBJHAD2P-B7m9DztL.js} +3 -2
  49. package/dist/chunk-KEIR6QF5-aP6TmWQ-.js +21095 -0
  50. package/dist/{chunk-UMXZTB3W-D1uHz8MN.js → chunk-MOZMSUNE-BQi-ggQx.js} +7 -4
  51. package/dist/{chunk-S3R3BYOJ-eotljhmB.js → chunk-NSK5VX7P-BmmoJBbx.js} +320 -29
  52. package/dist/chunk-OSBZ3O6U-BcrmpSY_.js +22 -0
  53. package/dist/{chunk-TQ3KTPDO-CsDx6v37.js → chunk-QBLGF6JB-BACuPUWb.js} +3 -3
  54. package/dist/chunk-QR6OTTB3-C4L1dLRd.js +3762 -0
  55. package/dist/{chunk-B2363JML-zL3VngtH.js → chunk-R7FJI6CG-BYAXJpIb.js} +3 -3
  56. package/dist/chunk-RYQCIY6F-poA0Ugpr.js +243 -0
  57. package/dist/chunk-U6XO7XAA-I8tCjTeT.js +60 -0
  58. package/dist/chunk-UBXNYLIW-C8LueN5Q.js +34 -0
  59. package/dist/{chunk-ATLVNIR6-BPcuM5bj.js → chunk-W5SLKNZC-DK-_KuKT.js} +2 -2
  60. package/dist/{chunk-JA3XYJ7Z-Bpyllnke.js → chunk-WRU74C26-DLgw-V0j.js} +262 -451
  61. package/dist/chunk-XXDRQBXY-Dzcp3rUR.js +9 -0
  62. package/dist/chunk-Y2CYZVJY-DX3DSigL.js +13 -0
  63. package/dist/{chunk-PL6DKKU2-CAHKc95s.js → chunk-YOTPTUD7-C8qfgaz5.js} +5 -5
  64. package/dist/{chunk-MI3HLSF2-HGWI-8Pg.js → chunk-ZIRB5QZD-_JX1DzEJ.js} +12 -8
  65. package/dist/classDiagram-JCYQIIEL-D8A6ZyXv.js +32 -0
  66. package/dist/classDiagram-v2-OCEON4UE-DIdYl-t3.js +32 -0
  67. package/dist/{click-outside-container-BSIeYt4y.js → click-outside-container-BZNsAj09.js} +2 -2
  68. package/dist/{clike-7lgyEYRk.js → clike-CWndBX_M.js} +1 -1
  69. package/dist/clojure-2X0Rfij9.js +4 -0
  70. package/dist/cmake-DEwzCy9U.js +4 -0
  71. package/dist/cobol-Ck4eCoAB.js +4 -0
  72. package/dist/{code-block-37QAKDTI-MSxEjskJ.js → code-block-37QAKDTI-B4pWe5MI.js} +4 -4
  73. package/dist/coffeescript-bB1IDwhg.js +4 -0
  74. package/dist/{common-BlDVQnXS.js → common-D2ngWI-H.js} +36 -36
  75. package/dist/commonlisp-BDYrVBNC.js +4 -0
  76. package/dist/{compiler-runtime-CEbnTgxf.js → compiler-runtime-DsR6imPN.js} +2 -2
  77. package/dist/{copy-BkA3t7rJ.js → copy-C7ZKMKox.js} +5 -5
  78. package/dist/{cose-bilkent-S5V4N54A-BYj0aL7z.js → cose-bilkent-JH36ORCC-D6iQzSi6.js} +6 -5
  79. package/dist/crystal-BSoiVUiH.js +4 -0
  80. package/dist/css-w1h9i21f.js +4 -0
  81. package/dist/cynefin-VYW2F7L2-DnZOHyNF.js +5 -0
  82. package/dist/cynefinDiagram-MW4NZA55-B1GNPS2u.js +367 -0
  83. package/dist/cypher-B4xzuKGP.js +4 -0
  84. package/dist/{cytoscape.esm-Dr8XzXWK.js → cytoscape.esm-BPa26Dup.js} +393 -334
  85. package/dist/d-D50Bz34p.js +4 -0
  86. package/dist/{dagre-By_QsQgc.js → dagre-ThTNj8pe.js} +60 -45
  87. package/dist/dagre-VZM6K2ZE-DEs5dfXA.js +343 -0
  88. package/dist/{data-grid-overlay-editor-BWRG2b_o.js → data-grid-overlay-editor-Ci7TXVf5.js} +5 -5
  89. package/dist/{debounce-BOD3DbfP.js → debounce-D784bpms.js} +2 -2
  90. package/dist/diagram-7IWD3JNH-Bdk1_wJO.js +321 -0
  91. package/dist/diagram-B4RE2ZJO-Be9eYLJ0.js +464 -0
  92. package/dist/{diagram-S2PKOQOG-B1wW-oRg.js → diagram-LBJQPF4R-BNSnzxFw.js} +26 -18
  93. package/dist/{diagram-PSM6KHXK-DK8uv8Yo.js → diagram-Q27KOJAE-NPRzyGtd.js} +68 -63
  94. package/dist/diagram-UB23O5K3-Dogz4itg.js +236 -0
  95. package/dist/diff-BMdzfXq-.js +4 -0
  96. package/dist/{dist-DQj6A7SE.js → dist-72nb8Uag.js} +3 -3
  97. package/dist/{dist-CV79CsQ0.js → dist-9PC5KxMl.js} +2 -2
  98. package/dist/{dist-BNeJ8P-4.js → dist-Awj73yUw.js} +3 -3
  99. package/dist/{dist-v-kAJfMq.js → dist-B0Ctcrt9.js} +1 -1
  100. package/dist/{dist-DjQRRttD.js → dist-B1Donbpk.js} +2 -2
  101. package/dist/dist-BC6wzWNb.js +5 -0
  102. package/dist/dist-BMd_RcOy.js +5 -0
  103. package/dist/dist-BZEWjN6r.js +5 -0
  104. package/dist/{dist-B-upo54Y.js → dist-B_K4AAkc.js} +1 -1
  105. package/dist/dist-BeuGjR3n.js +6 -0
  106. package/dist/dist-BfDQCUe6.js +5 -0
  107. package/dist/dist-BhNblTOV.js +8 -0
  108. package/dist/{dist-DGQmYLkh.js → dist-C0ifRfXi.js} +1 -1
  109. package/dist/{dist-BxR-g1ig.js → dist-C3mEki35.js} +2 -2
  110. package/dist/{dist-BT96P4oR.js → dist-CNfV2vDI.js} +2 -2
  111. package/dist/{dist-CBraAJlT.js → dist-COcQ5Vyc.js} +4 -4
  112. package/dist/dist-CRCm4Fuo.js +5 -0
  113. package/dist/{dist-Slyx4vXr.js → dist-CSZpLb9d.js} +1 -1
  114. package/dist/{dist-BvvQUFUK.js → dist-CWswQBvu.js} +1 -1
  115. package/dist/{dist-DFQ91Mx1.js → dist-CXYro_Nw.js} +4 -4
  116. package/dist/{dist-BrKNRKC8.js → dist-Ckfsc8C3.js} +2 -2
  117. package/dist/{dist-CWYsUX_O.js → dist-Cyq6Pxtv.js} +1 -1
  118. package/dist/{dist-Ba1WFESi.js → dist-D-BWPyoX.js} +5 -5
  119. package/dist/{dist-BDwn6WIk.js → dist-D-YB6j-O.js} +2 -2
  120. package/dist/{dist-dJeh9ef4.js → dist-D1vYHETp.js} +2 -2
  121. package/dist/{dist-3F1XDSYc.js → dist-D9-ePb6D.js} +2 -2
  122. package/dist/dist-DBPEbGkd.js +8 -0
  123. package/dist/{dist-DK0pFEmc.js → dist-DC409ROm.js} +1 -1
  124. package/dist/{dist-B1W12VzQ.js → dist-DJRUd9aM.js} +2 -2
  125. package/dist/{dist-Ddb0VFS3.js → dist-DLvxZEAK.js} +2 -2
  126. package/dist/dist-DSsl8IAI.js +5 -0
  127. package/dist/{dist-B6au1PTB.js → dist-D_ulymry.js} +2 -2
  128. package/dist/{dist-DgkJegw4.js → dist-DgY27bJ4.js} +3 -3
  129. package/dist/{dist-CDBV8n0I.js → dist-DiwVZiK7.js} +1 -1
  130. package/dist/{dist-CdKRSqjo.js → dist-DnYHhW6c.js} +2 -2
  131. package/dist/dist-Dx0kkrek.js +5 -0
  132. package/dist/{dist-DsoKosxi.js → dist-HaLHv0k5.js} +2 -3
  133. package/dist/dist-NKA1TU8a.js +6 -0
  134. package/dist/dist-ZFcsIdHj.js +8 -0
  135. package/dist/{dist-D8SX5Qdg.js → dist-iZ8-rtUy.js} +2 -2
  136. package/dist/{dist-DarwE0ZO.js → dist-j30bBjjN.js} +6 -6
  137. package/dist/{dist-SXNmlE8A.js → dist-kOCFEa1U.js} +3 -3
  138. package/dist/{dist-BUzxp0Xf.js → dist-sxRUVPmt.js} +1 -1
  139. package/dist/dist-uA2RbGmY.js +5 -0
  140. package/dist/{dist-PQDZaPEo.js → dist-xVU82Nq7.js} +2 -2
  141. package/dist/dist-zSCo-xCB.js +8 -0
  142. package/dist/{dockerfile-B82Pkz_V.js → dockerfile-DImRFUlA.js} +1 -1
  143. package/dist/dtd-B9dCT0pu.js +4 -0
  144. package/dist/dylan-DLghDyuR.js +4 -0
  145. package/dist/ebnfDiagram-BXEA7PRR-CqRWkG7L.js +129 -0
  146. package/dist/ecl-w0qdPHDB.js +4 -0
  147. package/dist/eiffel-C5AWRCNP.js +4 -0
  148. package/dist/elm-CT8FZrOm.js +4 -0
  149. package/dist/{erDiagram-Q2GNP2WA-Cj186Id-.js → erDiagram-JOGREHBK-BZMJX-Au.js} +568 -436
  150. package/dist/erlang-DPD-9M5g.js +4 -0
  151. package/dist/{error-banner-dmkbm21G.js → error-banner-BwCLtmkH.js} +6 -6
  152. package/dist/{esm-CuQHjs36.js → esm-BJ4n0NUT.js} +1 -1
  153. package/dist/{esm-DEQU-LUO.js → esm-Dusmf6uu.js} +105 -105
  154. package/dist/{esm-D8vjxCyn.js → esm-QLUgkqzZ.js} +6 -6
  155. package/dist/eventmodeling-45OFAUF4-D8Kbnsr6.js +5 -0
  156. package/dist/{extends-DDOVg_b8.js → extends-iFBneQO_.js} +9 -9
  157. package/dist/{factor-Bq2mGIHt.js → factor-BonZgUGg.js} +1 -1
  158. package/dist/factor-rFfeJu3r.js +4 -0
  159. package/dist/flowDiagram-UKHOOZJN-DqIE8_b3.js +21 -0
  160. package/dist/{formats-xc-Msa0v.js → formats-HSfYlcA8.js} +7 -7
  161. package/dist/forth-C-3AyQx4.js +4 -0
  162. package/dist/fortran-BSN9TeT7.js +4 -0
  163. package/dist/ganttDiagram-PKOTCBZU-Bc9puoXb.js +2207 -0
  164. package/dist/gas-DwmuvQpB.js +4 -0
  165. package/dist/gherkin-gmCjL-Sn.js +4 -0
  166. package/dist/{gitGraph-G5XIXVHT-BjTx0kww.js → gitGraph-TEB2WS4Q-DVzLmQHc.js} +2 -3
  167. package/dist/gitGraphDiagram-DS77QQ5N-CqKr-Dfg.js +766 -0
  168. package/dist/{glide-data-editor-CyTNN635.js → glide-data-editor-BI2i_IEE.js} +18 -18
  169. package/dist/graphlib-DMVIRZap.js +614 -0
  170. package/dist/groovy-DCjvesOy.js +4 -0
  171. package/dist/hasIn-synBnXn4.js +119 -0
  172. package/dist/haskell-C1p0D9L8.js +4 -0
  173. package/dist/haxe-q-fgv0zr.js +5 -0
  174. package/dist/{html-to-image-BHmg0rCT.js → html-to-image-BOiFHx3u.js} +7464 -2995
  175. package/dist/idl-Bmg4bsnK.js +4 -0
  176. package/dist/{info-VBDWY6EO-CA67FznA.js → info-DKCQHKI2-BxOTqQHM.js} +2 -3
  177. package/dist/infoDiagram-6WML65LV-B869X2KY.js +37 -0
  178. package/dist/{input-B4ddy8Jy.js → input-BRE2a7Ay.js} +13 -13
  179. package/dist/{_baseFor-4jw-lnCC.js → isArrayLikeObject-CBUaLibE.js} +96 -29
  180. package/dist/{isEmpty-CJJMn-QP.js → isEmpty-CgME6WRV.js} +15 -15
  181. package/dist/{isSymbol-CoUCgMCM.js → isSymbol-Ch3GYg4S.js} +1 -1
  182. package/dist/ishikawaDiagram-WSZJBQD7-BrOMFBYy.js +731 -0
  183. package/dist/javascript-BY5QZ-eN.js +4 -0
  184. package/dist/{journeyDiagram-XKPGCS4Q-C2o4LTpc.js → journeyDiagram-NVQOT4AX-CTwHlsTm.js} +124 -123
  185. package/dist/{jsx-runtime-DebpN0FN.js → jsx-runtime-Dp_oQwaf.js} +1 -1
  186. package/dist/julia-DbR1YalK.js +4 -0
  187. package/dist/{kanban-definition-3W4ZIXB7-jhGlnPMR.js → kanban-definition-27J2QSJJ-CKowzO9_.js} +51 -45
  188. package/dist/{katex-C4t-BmrK.js → katex-Ci33kJVq.js} +1 -1
  189. package/dist/{katex-Bld7b-fk.js → katex-Dp22h6yO.js} +2871 -3002
  190. package/dist/{label-CzHncDvS.js → label-CMh2d8pJ.js} +6 -6
  191. package/dist/{line-C43FIPBd.js → line-Bc27KE1D.js} +3 -3
  192. package/dist/{linear-BOGUO8Cd.js → linear-6pDlrp1I.js} +4 -4
  193. package/dist/livescript-BDUooIeL.js +4 -0
  194. package/dist/{loader-C7SfUdOD.js → loader-DTnbNSVZ.js} +3 -3
  195. package/dist/lua-CswAWSkH.js +4 -0
  196. package/dist/main.js +70 -71
  197. package/dist/map-BQ_Xp80D.js +137 -0
  198. package/dist/mathematica-Bw7v11B5.js +4 -0
  199. package/dist/mbox-j35IMz1j.js +4 -0
  200. package/dist/merge-CDbSrd9f.js +69 -0
  201. package/dist/mermaid-4DMBBIKO-BZSpTmcx.js +6 -0
  202. package/dist/mermaid-DpAz2sTy.js +1265 -0
  203. package/dist/mermaid-parser.core-BQzz3_BI.js +87 -0
  204. package/dist/{mhchem-EGhUZR1V.js → mhchem-BDHjke3h.js} +1 -1
  205. package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-Cr4NxAt3.js} +1 -1
  206. package/dist/{mindmap-definition-VGOIOE7T-5xLUaD4Q.js → mindmap-definition-FAOFIHXS-CTsi-HFj.js} +126 -80
  207. package/dist/mirc-Ba_RHVXO.js +4 -0
  208. package/dist/mllike-DbTP2dPp.js +6 -0
  209. package/dist/modelica-lpT3V1X6.js +4 -0
  210. package/dist/mscgen-BN4ZSJMx.js +6 -0
  211. package/dist/mumps-uI5g1A0g.js +4 -0
  212. package/dist/{node-sql-parser-v1Vi-Fft.js → node-sql-parser-BaLGWQe1.js} +1 -1
  213. package/dist/{now-Ch98bJO_.js → now-sFWt-GLC.js} +2 -2
  214. package/dist/{nsis-i9_sgigf.js → nsis-C68fFq_o.js} +1 -1
  215. package/dist/nsis-Df56GiRg.js +4 -0
  216. package/dist/ntriples-B3LWuG7W.js +4 -0
  217. package/dist/{number-overlay-editor-Ck_mc_gT.js → number-overlay-editor-CeBHRJvI.js} +3 -3
  218. package/dist/octave-CovfQgOx.js +4 -0
  219. package/dist/{once-B60G2fuJ.js → once-Boutk_9X.js} +1 -1
  220. package/dist/{ordinal-Bkv2-veX.js → ordinal-Bdajf2BE.js} +1 -1
  221. package/dist/oz-DQQAvVFb.js +4 -0
  222. package/dist/{packet-DYOGHKS2-Bkgofxf3.js → packet-7NZHBO7P-BG8whXXH.js} +2 -3
  223. package/dist/pascal-xz94P9sf.js +4 -0
  224. package/dist/pegDiagram-VL7TDLO6-CNpT8Sqz.js +124 -0
  225. package/dist/perl-aEWKE-1n.js +4 -0
  226. package/dist/pick-CaEWivSF.js +47 -0
  227. package/dist/{pie-VRWISCQL-B1AMhN_7.js → pie-RZYD4A2V-Cc_QhFbT.js} +2 -3
  228. package/dist/pieDiagram-7S7Q4E2Y-Ct8jRpe_.js +219 -0
  229. package/dist/pig-DB6DOZl7.js +4 -0
  230. package/dist/powershell-DM5saUx1.js +4 -0
  231. package/dist/{precisionRound-Bq50n-bG.js → precisionRound-BOoJTbDj.js} +1 -1
  232. package/dist/{process-output-hGrYEMdn.js → process-output-HrsM52f8.js} +7 -7
  233. package/dist/properties-BGjYQuGo.js +4 -0
  234. package/dist/protobuf-BPpEyPud.js +4 -0
  235. package/dist/{pug-BhE2JRSg.js → pug-DFPPZ3LA.js} +1 -1
  236. package/dist/pug-uJzB88ft.js +4 -0
  237. package/dist/puppet-oIm2d_Lg.js +4 -0
  238. package/dist/python-WE57eUzD.js +4 -0
  239. package/dist/q-CR8xPodo.js +4 -0
  240. package/dist/{quadrantDiagram-AYHSOK5B-_dxtOvzG.js → quadrantDiagram-CIZ2JOQS-B5n_xFcF.js} +429 -401
  241. package/dist/r-CJdmQZNj.js +4 -0
  242. package/dist/{radar-ZZBFDIW7-C2b7A32s.js → radar-I7S5WNFK-OhUkecXA.js} +2 -3
  243. package/dist/railroad-3IZDKUUU-1CmOpo1B.js +5 -0
  244. package/dist/railroad-abnf-AHOZXSZD-DmH4lsDS.js +5 -0
  245. package/dist/railroad-ebnf-EBAXGLYW-CzK0md4e.js +5 -0
  246. package/dist/railroad-peg-LSFZ7HO6-DOklooKz.js +5 -0
  247. package/dist/railroadDiagram-AXF67PYL-BbUWbtf8.js +100 -0
  248. package/dist/{react-DA-nE2FX.js → react-DhGsCS90.js} +1 -1
  249. package/dist/{react-dom-BTJzcVJ9.js → react-dom-CmENFV8Q.js} +2 -2
  250. package/dist/{react-vega-Cg17A6rO.js → react-vega-zyfTF9SY.js} +26 -26
  251. package/dist/{requirementDiagram-UZGBJVZJ-D13iq26A.js → requirementDiagram-LRYGKXZP-CpoDmKSf.js} +137 -105
  252. package/dist/{reveal-component-C-bXmcGz.js → reveal-component-BnID65Ih.js} +27 -28
  253. package/dist/rough.esm-lGyFQ0B-.js +1363 -0
  254. package/dist/rpm-Cm5K4RH9.js +5 -0
  255. package/dist/ruby-ArsuTozQ.js +4 -0
  256. package/dist/sankeyDiagram-W5VNT64P-D82rYiAG.js +942 -0
  257. package/dist/sas-DShligrE.js +4 -0
  258. package/dist/scheme-kDLirQL7.js +4 -0
  259. package/dist/sequenceDiagram-SI44F4Z6-DgVKU1s5.js +4281 -0
  260. package/dist/shell-CVQuWP_N.js +4 -0
  261. package/dist/sieve-BW-ePwnq.js +4 -0
  262. package/dist/sizeCapture-X5ZJPWSS-BQgxHTji.js +48 -0
  263. package/dist/smalltalk-DI4aAXxY.js +4 -0
  264. package/dist/sparql-B2sp0oiz.js +4 -0
  265. package/dist/{spec-uMKNvMRZ.js → spec-BL1GSUUF.js} +4 -4
  266. package/dist/{src-DV3ha_nA.js → src-BwVZVGyf.js} +13 -22
  267. package/dist/{stateDiagram-FKZM4ZOC-D5HAk2nG.js → stateDiagram-OKZ733FA-Cc9BchXz.js} +61 -58
  268. package/dist/stateDiagram-v2-UEYNNEHI-Dd4Tuw6F.js +32 -0
  269. package/dist/{step-BqHnkgWE.js → step-BqVgkWtk.js} +1 -1
  270. package/dist/stex-D2rme5UG.js +4 -0
  271. package/dist/{strings-BUDhKc0s.js → strings-DMLVGXRo.js} +10 -10
  272. package/dist/stylus-xxO-85eO.js +4 -0
  273. package/dist/swift-Ctg533nZ.js +4 -0
  274. package/dist/swimlanes-SLNWSIFB-BHvhO5uv.js +5564 -0
  275. package/dist/swimlanesDiagram-ULZ7WXOC-aI_zgQ8O.js +33 -0
  276. package/dist/{swiper-component-dl1H9WIW.js → swiper-component-Cx0cRWLk.js} +6 -6
  277. package/dist/tcl-phm9c5Nd.js +4 -0
  278. package/dist/textile-CphjAg90.js +4 -0
  279. package/dist/{time-CQnohwNM.js → time-DAJu9fnj.js} +4 -4
  280. package/dist/timeline-definition-Z64GVDOM-BAHuDYyA.js +1107 -0
  281. package/dist/{timer-BpI_FKSA.js → timer-aIIabkbI.js} +1 -1
  282. package/dist/{toDate-BiyuFdnT.js → toDate-BGM7kFtQ.js} +6 -6
  283. package/dist/toml-BUuMK772.js +4 -0
  284. package/dist/{tooltip-CkCWlUOf.js → tooltip-BtUxZT5h.js} +7 -7
  285. package/dist/treeView-QDETBFTQ-DsLN_c8p.js +5 -0
  286. package/dist/{treemap-GDKQZRPO-SDux0AV8.js → treemap-6X3UGDF4-K1bi3LJm.js} +2 -3
  287. package/dist/troff-lCtc05A3.js +4 -0
  288. package/dist/ttcn-CcykzBcW.js +4 -0
  289. package/dist/ttcn-cfg-C-XYdqpE.js +4 -0
  290. package/dist/turtle-CpfVZs8G.js +4 -0
  291. package/dist/{types-uENjXsiC.js → types-DT8UHI5w.js} +1 -1
  292. package/dist/{use-vega-container-remeasure-DGNrIQSk.js → use-vega-container-remeasure-B7OD7yUY.js} +3 -3
  293. package/dist/{useAsyncData-DqJLysjC.js → useAsyncData-CDcbh-Qv.js} +5 -5
  294. package/dist/{useDateFormatter-BeN3fHMH.js → useDateFormatter-B_vTzxpm.js} +4 -4
  295. package/dist/{useDeepCompareMemoize-CvlmHAmy.js → useDeepCompareMemoize-Bj6QvwiG.js} +3 -3
  296. package/dist/{useIframeCapabilities-pLC-ceDP.js → useIframeCapabilities-CxuXXwjj.js} +4 -4
  297. package/dist/{useLifecycle-D4N02q82.js → useLifecycle-Bw4wRj_O.js} +7 -7
  298. package/dist/{useTheme-Dur2p3iC.js → useTheme-BzEXeAR5.js} +6 -6
  299. package/dist/vb-VOIzXwm9.js +4 -0
  300. package/dist/vbscript-D0WfcnVk.js +4 -0
  301. package/dist/{vega-component-Cft458Sr.js → vega-component-CJug-VdR.js} +24 -24
  302. package/dist/{vega-embed-container-S9gRu4TZ.js → vega-embed-container-BRjjqRGz.js} +9 -9
  303. package/dist/{vega-loader.browser-CmLRI3wk.js → vega-loader.browser-CGb-2Kwi.js} +4 -4
  304. package/dist/velocity-CCrc5n-0.js +4 -0
  305. package/dist/vennDiagram-T6HMQDX7-CTyzMewS.js +1913 -0
  306. package/dist/verilog-BLFhaDBH.js +4 -0
  307. package/dist/vhdl-DjuqPE9b.js +4 -0
  308. package/dist/wardley-OPB4EBWU-CP99MvU1.js +5 -0
  309. package/dist/wardleyDiagram-T6FBY63Y-vcno_rbk.js +669 -0
  310. package/dist/webidl-Cc7RrfeK.js +4 -0
  311. package/dist/xquery-BiCRLnNG.js +4 -0
  312. package/dist/{xychartDiagram-PRI3JC2R-BteofzPY.js → xychartDiagram-ELKLHX3M-DyFDERhM.js} +417 -353
  313. package/dist/yacas-CWcjav-O.js +4 -0
  314. package/dist/z80-DpYS2lE7.js +4 -0
  315. package/dist/{zod-yTHHzJiv.js → zod-BFY2SnzC.js} +6 -6
  316. package/package.json +1 -1
  317. package/dist/_baseUniq-B_2Hw7zG.js +0 -380
  318. package/dist/apl-e1B5LPEL.js +0 -4
  319. package/dist/architecture-7HQA4BMR-DHUrQjL4.js +0 -6
  320. package/dist/asciiarmor-B-gwgesP.js +0 -4
  321. package/dist/asn1-DF2ckRB4.js +0 -4
  322. package/dist/blockDiagram-VD42YOAC-hD9KGMwe.js +0 -3131
  323. package/dist/brainfuck-4G-7_gq_.js +0 -4
  324. package/dist/chunk-55IACEB6-7h71GwyW.js +0 -8
  325. package/dist/chunk-ABZYJK2D-BK1Rtvs7.js +0 -2438
  326. package/dist/chunk-BNovOVIE.js +0 -28
  327. package/dist/chunk-CVBHYZKI-CwazXVlJ.js +0 -13
  328. package/dist/chunk-DR5Q36YT-5Yp2GWwR.js +0 -137
  329. package/dist/chunk-EXTU4WIE-7ui7-6r0.js +0 -10
  330. package/dist/chunk-JZLCHNYA-B4cRqwyW.js +0 -4901
  331. package/dist/chunk-N4CR4FBY-B3gMBPd2.js +0 -65
  332. package/dist/chunk-QXUST7PY-Dd6bFvvl.js +0 -498
  333. package/dist/chunk-TCCFYFTB-DPWJa9zL.js +0 -13948
  334. package/dist/chunk-TZMSLE5B-CA_LyLfN.js +0 -63
  335. package/dist/classDiagram-2ON5EDUG-DX1IPeNG.js +0 -30
  336. package/dist/classDiagram-v2-WZHVMYZB-BOkyBkSn.js +0 -30
  337. package/dist/clojure-CUybM11R.js +0 -4
  338. package/dist/clone-Q4Fqwn6q.js +0 -9
  339. package/dist/cmake-BPjGcuDL.js +0 -4
  340. package/dist/cobol-BETk_nb6.js +0 -4
  341. package/dist/coffeescript-CManZxXL.js +0 -4
  342. package/dist/commonlisp-DWkn7GW8.js +0 -4
  343. package/dist/crystal-CCbg5EUH.js +0 -4
  344. package/dist/css-By8eo-XS.js +0 -4
  345. package/dist/cypher-DwfHg3nP.js +0 -4
  346. package/dist/d-Brs1wNbw.js +0 -4
  347. package/dist/dagre-6UL2VRFP-Dtksc2Ic.js +0 -296
  348. package/dist/diagram-QEK2KX5R-BiGjCFD8.js +0 -228
  349. package/dist/diff-DJIRmJ1g.js +0 -4
  350. package/dist/dist-BDzVdDo2.js +0 -8
  351. package/dist/dist-BH2Tq1S1.js +0 -5
  352. package/dist/dist-BIhBrzqg.js +0 -5
  353. package/dist/dist-BLCsvXTG.js +0 -6
  354. package/dist/dist-BNVtuFdd.js +0 -5
  355. package/dist/dist-CEJ6Lowi.js +0 -5
  356. package/dist/dist-CYoa69kj.js +0 -5
  357. package/dist/dist-CnZyXFq3.js +0 -8
  358. package/dist/dist-D-4HaJKc.js +0 -8
  359. package/dist/dist-DIGyvbg3.js +0 -5
  360. package/dist/dist-DIhaoCL4.js +0 -5
  361. package/dist/dist-DgQleHmb.js +0 -8
  362. package/dist/dist-JaoLzZmt.js +0 -5
  363. package/dist/dist-pEX0t8ZV.js +0 -6
  364. package/dist/dtd-Dyiazv4N.js +0 -4
  365. package/dist/dylan-D8Fcw7NA.js +0 -4
  366. package/dist/ecl-CjKp8Vii.js +0 -4
  367. package/dist/eiffel-K9ViOX5r.js +0 -4
  368. package/dist/elm-B5NVtRco.js +0 -4
  369. package/dist/erlang-BnLzgk7R.js +0 -4
  370. package/dist/factor-C7f9Jz5R.js +0 -4
  371. package/dist/flatten-Bbw7g6-K.js +0 -8
  372. package/dist/forth-rGM8jLao.js +0 -4
  373. package/dist/fortran-B3acSe0i.js +0 -4
  374. package/dist/ganttDiagram-JELNMOA3-BajNb0ER.js +0 -2170
  375. package/dist/gas-Bb1Vmv_N.js +0 -4
  376. package/dist/gherkin-C9Lyidgd.js +0 -4
  377. package/dist/gitGraphDiagram-V2S2FVAM-DOqdyiwH.js +0 -652
  378. package/dist/graphlib-Ns7y5crs.js +0 -359
  379. package/dist/groovy-DQk6XcGH.js +0 -4
  380. package/dist/hasIn-Deg7jl_j.js +0 -108
  381. package/dist/haskell-mV0Vw9gv.js +0 -4
  382. package/dist/haxe-DqxN89zH.js +0 -5
  383. package/dist/idl-ya8W561J.js +0 -4
  384. package/dist/infoDiagram-HS3SLOUP-BH1Wx7lK.js +0 -30
  385. package/dist/javascript-CgqgptVu.js +0 -4
  386. package/dist/julia-CFQ-HusI.js +0 -4
  387. package/dist/livescript-D__3TmDo.js +0 -4
  388. package/dist/lua-Bytcgj_W.js +0 -4
  389. package/dist/main-B1Jo_8pC.js +0 -4321
  390. package/dist/mathematica-DJhvVKvl.js +0 -4
  391. package/dist/mbox-IGHPCjfR.js +0 -4
  392. package/dist/memoize-BOtf2yFf.js +0 -17
  393. package/dist/merge-Be1CqGnU.js +0 -222
  394. package/dist/mermaid-4DMBBIKO-FXbOziy9.js +0 -6
  395. package/dist/mermaid-CcP2SLvE.js +0 -1100
  396. package/dist/mermaid-parser.core-DoivvxPd.js +0 -54
  397. package/dist/min-Dtgc8txR.js +0 -38
  398. package/dist/mirc-tcwvVugm.js +0 -4
  399. package/dist/mllike-Dx91i62r.js +0 -6
  400. package/dist/modelica-_SRt-yU5.js +0 -4
  401. package/dist/mscgen-GZrGS9gt.js +0 -6
  402. package/dist/mumps-Cv3ygyod.js +0 -4
  403. package/dist/nsis-BU7GeGbI.js +0 -4
  404. package/dist/ntriples-CL-FCYXb.js +0 -4
  405. package/dist/octave-Dc6_3DIu.js +0 -4
  406. package/dist/oz-DpUAJCXf.js +0 -4
  407. package/dist/pascal-B17mncXs.js +0 -4
  408. package/dist/perl-BTpK97q9.js +0 -4
  409. package/dist/pick-D1Qo8s2C.js +0 -43
  410. package/dist/pieDiagram-ADFJNKIX-QtR5ck48.js +0 -170
  411. package/dist/pig-CFb638Ap.js +0 -4
  412. package/dist/powershell-Cxo-_2A5.js +0 -4
  413. package/dist/properties-BPgT1xTB.js +0 -4
  414. package/dist/protobuf-BgHBaIIK.js +0 -4
  415. package/dist/pug-25-oS0SG.js +0 -4
  416. package/dist/puppet-DarIr20S.js +0 -4
  417. package/dist/python-BqmOsBsi.js +0 -4
  418. package/dist/q-D3QJCTup.js +0 -4
  419. package/dist/r-Cz_yBX4z.js +0 -4
  420. package/dist/rpm-DGOtYwAI.js +0 -5
  421. package/dist/ruby-DBZu4rPc.js +0 -4
  422. package/dist/sankeyDiagram-TZEHDZUN-DH-_Uzcr.js +0 -892
  423. package/dist/sas-Dd1D9qTq.js +0 -4
  424. package/dist/scheme-BmDjvTHX.js +0 -4
  425. package/dist/sequenceDiagram-WL72ISMW-DZrj5IJC.js +0 -3652
  426. package/dist/shell-BL8zFSaj.js +0 -4
  427. package/dist/sieve-BAx2WqUP.js +0 -4
  428. package/dist/smalltalk-CYRzF7VV.js +0 -4
  429. package/dist/sparql-YWaDRO4A.js +0 -4
  430. package/dist/stateDiagram-v2-4FDKWEC3-DAfwaV0Z.js +0 -29
  431. package/dist/stex-B5O-env2.js +0 -4
  432. package/dist/stylus-lYsyLFc1.js +0 -4
  433. package/dist/swift-ClQz9z1n.js +0 -4
  434. package/dist/tcl-B3jhsfqY.js +0 -4
  435. package/dist/textile-Cb1Dw7Aq.js +0 -4
  436. package/dist/timeline-definition-IT6M3QCI-O5etBvZb.js +0 -856
  437. package/dist/toml-nHZhetdO.js +0 -4
  438. package/dist/troff-DuJAGWKH.js +0 -4
  439. package/dist/ttcn-BxrcwP21.js +0 -4
  440. package/dist/ttcn-cfg-BAg_9dcc.js +0 -4
  441. package/dist/turtle-zCq949as.js +0 -4
  442. package/dist/vb-De5hElus.js +0 -4
  443. package/dist/vbscript-Cypcpv4F.js +0 -4
  444. package/dist/velocity-Di7l-yhe.js +0 -4
  445. package/dist/verilog-Bzi-S3g2.js +0 -4
  446. package/dist/vhdl-B0ZZITaW.js +0 -4
  447. package/dist/webidl-0sviiRcN.js +0 -4
  448. package/dist/xquery-B4qMVWaB.js +0 -4
  449. package/dist/yacas-Jt25Fuv8.js +0 -4
  450. package/dist/z80-CrcbYzmp.js +0 -4
  451. /package/dist/{apl-99A7dLQe.js → apl-CMUKiT2b.js} +0 -0
  452. /package/dist/{array-O78LT16Y.js → array-CEIRxyh3.js} +0 -0
  453. /package/dist/{asciiarmor-DLEhpFDx.js → asciiarmor-C_r6K6db.js} +0 -0
  454. /package/dist/{asn1-CMrcTsT4.js → asn1-DnlnCQTu.js} +0 -0
  455. /package/dist/{asterisk-CqykImq7.js → asterisk-DaVJJDnV.js} +0 -0
  456. /package/dist/{brainfuck-ChPt5yBe.js → brainfuck-CtQoQVkV.js} +0 -0
  457. /package/dist/{clike-CE0fXfM_.js → clike-CIAs0ABt.js} +0 -0
  458. /package/dist/{clojure-QkBEMU-g.js → clojure-C6tKQYjD.js} +0 -0
  459. /package/dist/{cmake-CU1jX7Mo.js → cmake-D-nfcg14.js} +0 -0
  460. /package/dist/{cobol-DMOKzzky.js → cobol-DYTC58p9.js} +0 -0
  461. /package/dist/{coffeescript-DjnjLyfk.js → coffeescript-DctDWA58.js} +0 -0
  462. /package/dist/{colors-DmiH1bIH.js → colors-DR_aHfmQ.js} +0 -0
  463. /package/dist/{common-keywords-D3nPJNQP.js → common-keywords-FBrXPTcz.js} +0 -0
  464. /package/dist/{commonlisp-CYd9iOSe.js → commonlisp-BmvTqU5y.js} +0 -0
  465. /package/dist/{crystal-Dy55yoYG.js → crystal-BPIK2UMa.js} +0 -0
  466. /package/dist/{css-CNU8w3HJ.js → css-CDo_Lwzn.js} +0 -0
  467. /package/dist/{cypher-q47DGzK7.js → cypher-KztbD63v.js} +0 -0
  468. /package/dist/{d-jEkaLvxX.js → d-HXBWOoe9.js} +0 -0
  469. /package/dist/{defaultLocale-BsfI21d_.js → defaultLocale-CMezyvMc.js} +0 -0
  470. /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-DMZFeDB8.js} +0 -0
  471. /package/dist/{diff-vb2-unFN.js → diff-B9rWZH0m.js} +0 -0
  472. /package/dist/{dist-Cds3J-EE.js → dist-BJ2IUa0l.js} +0 -0
  473. /package/dist/{dtd-C9kR-bXa.js → dtd-LtAMP5y8.js} +0 -0
  474. /package/dist/{duckdb-keywords-B6HYCMOT.js → duckdb-keywords-CvJhR_Yd.js} +0 -0
  475. /package/dist/{dylan-BLckrK-V.js → dylan-DXMK92pf.js} +0 -0
  476. /package/dist/{ebnf-Cnp3L9jg.js → ebnf-2D4Ctp3y.js} +0 -0
  477. /package/dist/{ecl-CEsf6XVg.js → ecl-Dqq8ser2.js} +0 -0
  478. /package/dist/{eiffel-2KGZNzx6.js → eiffel-ChExWBDx.js} +0 -0
  479. /package/dist/{elm-D2s3K5wF.js → elm-BMBz2xbZ.js} +0 -0
  480. /package/dist/{emotion-is-prop-valid.esm-DdVSF4FD.js → emotion-is-prop-valid.esm-_z-EwK5u.js} +0 -0
  481. /package/dist/{erlang-0PMFOndk.js → erlang-CGSDzg9P.js} +0 -0
  482. /package/dist/{fcl-D9nccAWI.js → fcl-Ccj8Z5Xd.js} +0 -0
  483. /package/dist/{forth-DG89iUsu.js → forth-vTkfR0aY.js} +0 -0
  484. /package/dist/{fortran-ytKsAVvu.js → fortran-CF4LAVFn.js} +0 -0
  485. /package/dist/{gas-Cg2Fm0N2.js → gas-mMFbQ2x4.js} +0 -0
  486. /package/dist/{gherkin-B87FEnZ-.js → gherkin-DLS1q0XM.js} +0 -0
  487. /package/dist/{groovy-Dcs08AWD.js → groovy-Zt6CNPxV.js} +0 -0
  488. /package/dist/{haskell-cwkOuhx6.js → haskell-kVOgzpVy.js} +0 -0
  489. /package/dist/{haxe-DWEo4q10.js → haxe-Bo21F6gc.js} +0 -0
  490. /package/dist/{http-B8jdG64J.js → http-_DVAYWoR.js} +0 -0
  491. /package/dist/{idl-WWQwDcRV.js → idl-B865GSM-.js} +0 -0
  492. /package/dist/{init-DNBbYZd_.js → init-TaqZJsBY.js} +0 -0
  493. /package/dist/{invariant-wRzNXIsJ.js → invariant-hOqqBz8A.js} +0 -0
  494. /package/dist/{javascript-BeR74dxD.js → javascript-CSLuHpxZ.js} +0 -0
  495. /package/dist/{julia-UlvCUYGL.js → julia-BCOLeQif.js} +0 -0
  496. /package/dist/{livescript-GPmFcmYV.js → livescript-DqUzLZFs.js} +0 -0
  497. /package/dist/{lua-DYoT_0zM.js → lua-D0ciLwkO.js} +0 -0
  498. /package/dist/{math-CBNc2Ib0.js → math-CTnb-N1W.js} +0 -0
  499. /package/dist/{mathematica-DSFIQlbG.js → mathematica-DujD1RDf.js} +0 -0
  500. /package/dist/{mbox-ej8lFMdL.js → mbox-8OkSQMDn.js} +0 -0
  501. /package/dist/{mirc-CAdIdvHQ.js → mirc-D47x8yRQ.js} +0 -0
  502. /package/dist/{mllike-CjTB1lHF.js → mllike-Dcfw-g6D.js} +0 -0
  503. /package/dist/{modelica-BB68FYMa.js → modelica-BHtr9gKR.js} +0 -0
  504. /package/dist/{mscgen-BkbzgGGI.js → mscgen-uZedQc_A.js} +0 -0
  505. /package/dist/{mumps-Cu-28E9F.js → mumps-Bc9QS1-K.js} +0 -0
  506. /package/dist/{nginx-C1ofKPst.js → nginx-DasThI7R.js} +0 -0
  507. /package/dist/{ntriples-D9cQiZxZ.js → ntriples-Clpn9Mrg.js} +0 -0
  508. /package/dist/{objects-De59twF-.js → objects-UzwQd5gx.js} +0 -0
  509. /package/dist/{octave-BvtAnPX0.js → octave-DA2esRWi.js} +0 -0
  510. /package/dist/{oz-COaVHk2E.js → oz-D8i-brWx.js} +0 -0
  511. /package/dist/{pascal-BFpqVD2x.js → pascal-Dt1a0CeN.js} +0 -0
  512. /package/dist/{path-DwWbhZFI.js → path-7gr7eZmp.js} +0 -0
  513. /package/dist/{perl-DaiORxHP.js → perl-CXy9EfRp.js} +0 -0
  514. /package/dist/{pig-DFzRhmsF.js → pig-DnXnrjQg.js} +0 -0
  515. /package/dist/{powershell-BG2LQNKN.js → powershell-BYE6u-Qk.js} +0 -0
  516. /package/dist/{properties-CqJJR5QY.js → properties-DlhyusaK.js} +0 -0
  517. /package/dist/{protobuf-WwDYV1yY.js → protobuf-DoMSrsPi.js} +0 -0
  518. /package/dist/{puppet-QNY3w_uN.js → puppet-DGi4idFA.js} +0 -0
  519. /package/dist/{purify.es-dp2utXxY.js → purify.es-DR5PNXwx.js} +0 -0
  520. /package/dist/{python-4QrQ3Ugi.js → python-CYhALYh0.js} +0 -0
  521. /package/dist/{q-DhwXuxE2.js → q-Cs_qWJkU.js} +0 -0
  522. /package/dist/{r-Df-nkR25.js → r-DWJSQl1c.js} +0 -0
  523. /package/dist/{range-BOiA8qqU.js → range-Bieq5MNc.js} +0 -0
  524. /package/dist/{rpm-Cokue07s.js → rpm-DIip1m0n.js} +0 -0
  525. /package/dist/{ruby-DrYcL3qF.js → ruby-NgZGoa7Q.js} +0 -0
  526. /package/dist/{sas-CoiPirA5.js → sas-DEKzCzM2.js} +0 -0
  527. /package/dist/{scheme-CwFLjzHv.js → scheme-CBrGar2n.js} +0 -0
  528. /package/dist/{semaphore-C8rmHdhj.js → semaphore-P832H4YT.js} +0 -0
  529. /package/dist/{shell-BFV-R24I.js → shell-D7XFPOM_.js} +0 -0
  530. /package/dist/{sieve-CxwXF5T9.js → sieve-BOxOVQ18.js} +0 -0
  531. /package/dist/{simple-mode-DTaJtKPt.js → simple-mode-D-FXBgPn.js} +0 -0
  532. /package/dist/{smalltalk-QivVOCtX.js → smalltalk-DYK-HkUK.js} +0 -0
  533. /package/dist/{solr-BLvysN-c.js → solr-RZ9uTl59.js} +0 -0
  534. /package/dist/{sparql-nKsFk8j7.js → sparql-CU1uk9Py.js} +0 -0
  535. /package/dist/{spreadsheet-BWc8C2FT.js → spreadsheet-BNNUNXA2.js} +0 -0
  536. /package/dist/{sql-CWfUjlV1.js → sql-B4x8IkwU.js} +0 -0
  537. /package/dist/{stex-DtMAhV4-.js → stex-DIvyJfNO.js} +0 -0
  538. /package/dist/{stylus-BLKQAycn.js → stylus-BokZhKWB.js} +0 -0
  539. /package/dist/{swift-CJoKqiKj.js → swift-TlA42tbT.js} +0 -0
  540. /package/dist/{tcl-YTeYFNUc.js → tcl-C-m7N_9k.js} +0 -0
  541. /package/dist/{textile-C6rKQqMQ.js → textile-BWOWG894.js} +0 -0
  542. /package/dist/{tiddlywiki-ZXwTHGNT.js → tiddlywiki-DI0mF2WJ.js} +0 -0
  543. /package/dist/{tiki-C628O_u4.js → tiki-2HU6XLLn.js} +0 -0
  544. /package/dist/{toml-DxlPGbRy.js → toml-GapOS-6U.js} +0 -0
  545. /package/dist/{treemap-DY3NBr79.js → treemap-CQJ0bIDy.js} +0 -0
  546. /package/dist/{troff-DFCfH7Ku.js → troff-ChPXSGgg.js} +0 -0
  547. /package/dist/{ttcn-DAW-ERVP.js → ttcn-CGf_ktUb.js} +0 -0
  548. /package/dist/{ttcn-cfg-CpJ8b7EN.js → ttcn-cfg-E0kw_vEm.js} +0 -0
  549. /package/dist/{turtle-BneV2f8L.js → turtle-DDIYttZr.js} +0 -0
  550. /package/dist/{vb-D973Vxxh.js → vb-DsGz8YA-.js} +0 -0
  551. /package/dist/{vbscript-Dckaq3YO.js → vbscript-BfQcpKZn.js} +0 -0
  552. /package/dist/{velocity-DKty-GUC.js → velocity-BMi53hPb.js} +0 -0
  553. /package/dist/{verilog-aNaK_biA.js → verilog-B_WDxmCB.js} +0 -0
  554. /package/dist/{vhdl-CQuehnQy.js → vhdl-C52-TT0z.js} +0 -0
  555. /package/dist/{webidl-Bhg8vaMr.js → webidl-Cnphjlul.js} +0 -0
  556. /package/dist/{xquery-D2q16GaM.js → xquery-X_kWyOft.js} +0 -0
  557. /package/dist/{yacas-DHGOHnNa.js → yacas-Dpp9zAZ5.js} +0 -0
  558. /package/dist/{z80-BPhTmO22.js → z80-BZLZAthF.js} +0 -0
@@ -0,0 +1,4281 @@
1
+ var _a;
2
+ import "./purify.es-DR5PNXwx.js";
3
+ import { _ as utils_default, m as parseFontSize, t as ZERO_WIDTH_SPACE } from "./chunk-NSK5VX7P-BmmoJBbx.js";
4
+ import { n as log, t as select_default } from "./src-BwVZVGyf.js";
5
+ import { n as __name } from "./chunk-Y2CYZVJY-DX3DSigL.js";
6
+ import { A as hasKatex, F as renderKatexSanitized, G as setConfig2, H as setAccDescription, K as setDiagramTitle, O as getUrl, U as setAccTitle, a as clear, b as getConfig, c as configureSvgSize, i as calculateMathMLDimensions, r as assignWithDepth_default, s as common_default, v as getAccDescription, w as getDiagramTitle, x as getConfig2, y as getAccTitle, z as sanitizeText } from "./chunk-I66GZJ75-9xAsFrdW.js";
7
+ import { n as load, t as JSON_SCHEMA } from "./chunk-ZIRB5QZD-_JX1DzEJ.js";
8
+ import { t as require_dist } from "./dist-HaLHv0k5.js";
9
+ import { a as drawRect, c as getTextObj, i as drawImage, n as drawBackgroundRect, r as drawEmbeddedImage, s as getNoteRect } from "./chunk-2GRJ4B5K-DRayWnnu.js";
10
+ import { t as ImperativeState } from "./chunk-2Q5K7J3B-BSLyFOHa.js";
11
+ var import_dist = require_dist(), parser = (function() {
12
+ var e = /* @__PURE__ */ __name(function(e2, t2, n2, r2) {
13
+ for (n2 || (n2 = {}), r2 = e2.length; r2--; n2[e2[r2]] = t2) ;
14
+ return n2;
15
+ }, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
16
+ 1,
17
+ 4,
18
+ 5,
19
+ 10,
20
+ 14,
21
+ 15,
22
+ 17,
23
+ 19,
24
+ 22,
25
+ 24,
26
+ 30,
27
+ 31,
28
+ 32,
29
+ 34,
30
+ 36,
31
+ 37,
32
+ 38,
33
+ 39,
34
+ 40,
35
+ 42,
36
+ 44,
37
+ 45,
38
+ 47,
39
+ 48,
40
+ 49,
41
+ 50,
42
+ 51,
43
+ 53,
44
+ 54,
45
+ 56,
46
+ 61,
47
+ 62,
48
+ 63,
49
+ 64,
50
+ 73
51
+ ], L = [1, 74], R = [1, 80], z = [1, 81], B = [1, 82], V = [1, 83], H = [1, 84], Be = [1, 85], Ve = [1, 86], He = [1, 87], Ue = [1, 88], We = [1, 89], Ge = [1, 90], Ke = [1, 91], qe = [1, 92], Je = [1, 93], Ye = [1, 94], U = [1, 95], W = [1, 96], Xe = [1, 97], Ze = [1, 98], Qe = [1, 99], $e = [1, 100], et = [1, 101], G = [1, 102], tt = [1, 103], nt = [1, 104], rt = [1, 105], it = [2, 78], K = [
52
+ 4,
53
+ 5,
54
+ 17,
55
+ 51,
56
+ 53,
57
+ 54
58
+ ], q = [
59
+ 4,
60
+ 5,
61
+ 10,
62
+ 14,
63
+ 15,
64
+ 17,
65
+ 19,
66
+ 22,
67
+ 24,
68
+ 30,
69
+ 31,
70
+ 32,
71
+ 34,
72
+ 36,
73
+ 37,
74
+ 38,
75
+ 39,
76
+ 40,
77
+ 42,
78
+ 44,
79
+ 45,
80
+ 47,
81
+ 51,
82
+ 53,
83
+ 54,
84
+ 56,
85
+ 61,
86
+ 62,
87
+ 63,
88
+ 64,
89
+ 73
90
+ ], at = [
91
+ 4,
92
+ 5,
93
+ 10,
94
+ 14,
95
+ 15,
96
+ 17,
97
+ 19,
98
+ 22,
99
+ 24,
100
+ 30,
101
+ 31,
102
+ 32,
103
+ 34,
104
+ 36,
105
+ 37,
106
+ 38,
107
+ 39,
108
+ 40,
109
+ 42,
110
+ 44,
111
+ 45,
112
+ 47,
113
+ 50,
114
+ 51,
115
+ 53,
116
+ 54,
117
+ 56,
118
+ 61,
119
+ 62,
120
+ 63,
121
+ 64,
122
+ 73
123
+ ], J = [
124
+ 4,
125
+ 5,
126
+ 10,
127
+ 14,
128
+ 15,
129
+ 17,
130
+ 19,
131
+ 22,
132
+ 24,
133
+ 30,
134
+ 31,
135
+ 32,
136
+ 34,
137
+ 36,
138
+ 37,
139
+ 38,
140
+ 39,
141
+ 40,
142
+ 42,
143
+ 44,
144
+ 45,
145
+ 47,
146
+ 49,
147
+ 51,
148
+ 53,
149
+ 54,
150
+ 56,
151
+ 61,
152
+ 62,
153
+ 63,
154
+ 64,
155
+ 73
156
+ ], ot = [
157
+ 4,
158
+ 5,
159
+ 10,
160
+ 14,
161
+ 15,
162
+ 17,
163
+ 19,
164
+ 22,
165
+ 24,
166
+ 30,
167
+ 31,
168
+ 32,
169
+ 34,
170
+ 36,
171
+ 37,
172
+ 38,
173
+ 39,
174
+ 40,
175
+ 42,
176
+ 44,
177
+ 45,
178
+ 47,
179
+ 48,
180
+ 51,
181
+ 53,
182
+ 54,
183
+ 56,
184
+ 61,
185
+ 62,
186
+ 63,
187
+ 64,
188
+ 73
189
+ ], Y = [5, 52], X = [
190
+ 70,
191
+ 71,
192
+ 72,
193
+ 73
194
+ ], Z = [1, 151], Q = {
195
+ trace: /* @__PURE__ */ __name(function() {
196
+ }, "trace"),
197
+ yy: {},
198
+ symbols_: {
199
+ error: 2,
200
+ start: 3,
201
+ SPACE: 4,
202
+ NEWLINE: 5,
203
+ SD: 6,
204
+ document: 7,
205
+ line: 8,
206
+ statement: 9,
207
+ INVALID: 10,
208
+ box_section: 11,
209
+ box_line: 12,
210
+ participant_statement: 13,
211
+ create: 14,
212
+ box: 15,
213
+ restOfLine: 16,
214
+ end: 17,
215
+ signal: 18,
216
+ autonumber: 19,
217
+ NUM: 20,
218
+ off: 21,
219
+ activate: 22,
220
+ actor: 23,
221
+ deactivate: 24,
222
+ note_statement: 25,
223
+ links_statement: 26,
224
+ link_statement: 27,
225
+ properties_statement: 28,
226
+ details_statement: 29,
227
+ title: 30,
228
+ legacy_title: 31,
229
+ acc_title: 32,
230
+ acc_title_value: 33,
231
+ acc_descr: 34,
232
+ acc_descr_value: 35,
233
+ acc_descr_multiline_value: 36,
234
+ loop: 37,
235
+ rect: 38,
236
+ opt: 39,
237
+ alt: 40,
238
+ else_sections: 41,
239
+ par: 42,
240
+ par_sections: 43,
241
+ par_over: 44,
242
+ critical: 45,
243
+ option_sections: 46,
244
+ break: 47,
245
+ option: 48,
246
+ and: 49,
247
+ else: 50,
248
+ participant: 51,
249
+ AS: 52,
250
+ participant_actor: 53,
251
+ destroy: 54,
252
+ actor_with_config: 55,
253
+ note: 56,
254
+ placement: 57,
255
+ text2: 58,
256
+ over: 59,
257
+ actor_pair: 60,
258
+ links: 61,
259
+ link: 62,
260
+ properties: 63,
261
+ details: 64,
262
+ spaceList: 65,
263
+ ",": 66,
264
+ left_of: 67,
265
+ right_of: 68,
266
+ signaltype: 69,
267
+ "+": 70,
268
+ "-": 71,
269
+ "()": 72,
270
+ ACTOR: 73,
271
+ config_object: 74,
272
+ CONFIG_START: 75,
273
+ CONFIG_CONTENT: 76,
274
+ CONFIG_END: 77,
275
+ SOLID_OPEN_ARROW: 78,
276
+ DOTTED_OPEN_ARROW: 79,
277
+ SOLID_ARROW: 80,
278
+ SOLID_ARROW_TOP: 81,
279
+ SOLID_ARROW_BOTTOM: 82,
280
+ STICK_ARROW_TOP: 83,
281
+ STICK_ARROW_BOTTOM: 84,
282
+ SOLID_ARROW_TOP_DOTTED: 85,
283
+ SOLID_ARROW_BOTTOM_DOTTED: 86,
284
+ STICK_ARROW_TOP_DOTTED: 87,
285
+ STICK_ARROW_BOTTOM_DOTTED: 88,
286
+ SOLID_ARROW_TOP_REVERSE: 89,
287
+ SOLID_ARROW_BOTTOM_REVERSE: 90,
288
+ STICK_ARROW_TOP_REVERSE: 91,
289
+ STICK_ARROW_BOTTOM_REVERSE: 92,
290
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 93,
291
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94,
292
+ STICK_ARROW_TOP_REVERSE_DOTTED: 95,
293
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96,
294
+ BIDIRECTIONAL_SOLID_ARROW: 97,
295
+ DOTTED_ARROW: 98,
296
+ BIDIRECTIONAL_DOTTED_ARROW: 99,
297
+ SOLID_CROSS: 100,
298
+ DOTTED_CROSS: 101,
299
+ SOLID_POINT: 102,
300
+ DOTTED_POINT: 103,
301
+ TXT: 104,
302
+ $accept: 0,
303
+ $end: 1
304
+ },
305
+ terminals_: {
306
+ 2: "error",
307
+ 4: "SPACE",
308
+ 5: "NEWLINE",
309
+ 6: "SD",
310
+ 10: "INVALID",
311
+ 14: "create",
312
+ 15: "box",
313
+ 16: "restOfLine",
314
+ 17: "end",
315
+ 19: "autonumber",
316
+ 20: "NUM",
317
+ 21: "off",
318
+ 22: "activate",
319
+ 24: "deactivate",
320
+ 30: "title",
321
+ 31: "legacy_title",
322
+ 32: "acc_title",
323
+ 33: "acc_title_value",
324
+ 34: "acc_descr",
325
+ 35: "acc_descr_value",
326
+ 36: "acc_descr_multiline_value",
327
+ 37: "loop",
328
+ 38: "rect",
329
+ 39: "opt",
330
+ 40: "alt",
331
+ 42: "par",
332
+ 44: "par_over",
333
+ 45: "critical",
334
+ 47: "break",
335
+ 48: "option",
336
+ 49: "and",
337
+ 50: "else",
338
+ 51: "participant",
339
+ 52: "AS",
340
+ 53: "participant_actor",
341
+ 54: "destroy",
342
+ 56: "note",
343
+ 59: "over",
344
+ 61: "links",
345
+ 62: "link",
346
+ 63: "properties",
347
+ 64: "details",
348
+ 66: ",",
349
+ 67: "left_of",
350
+ 68: "right_of",
351
+ 70: "+",
352
+ 71: "-",
353
+ 72: "()",
354
+ 73: "ACTOR",
355
+ 75: "CONFIG_START",
356
+ 76: "CONFIG_CONTENT",
357
+ 77: "CONFIG_END",
358
+ 78: "SOLID_OPEN_ARROW",
359
+ 79: "DOTTED_OPEN_ARROW",
360
+ 80: "SOLID_ARROW",
361
+ 81: "SOLID_ARROW_TOP",
362
+ 82: "SOLID_ARROW_BOTTOM",
363
+ 83: "STICK_ARROW_TOP",
364
+ 84: "STICK_ARROW_BOTTOM",
365
+ 85: "SOLID_ARROW_TOP_DOTTED",
366
+ 86: "SOLID_ARROW_BOTTOM_DOTTED",
367
+ 87: "STICK_ARROW_TOP_DOTTED",
368
+ 88: "STICK_ARROW_BOTTOM_DOTTED",
369
+ 89: "SOLID_ARROW_TOP_REVERSE",
370
+ 90: "SOLID_ARROW_BOTTOM_REVERSE",
371
+ 91: "STICK_ARROW_TOP_REVERSE",
372
+ 92: "STICK_ARROW_BOTTOM_REVERSE",
373
+ 93: "SOLID_ARROW_TOP_REVERSE_DOTTED",
374
+ 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED",
375
+ 95: "STICK_ARROW_TOP_REVERSE_DOTTED",
376
+ 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED",
377
+ 97: "BIDIRECTIONAL_SOLID_ARROW",
378
+ 98: "DOTTED_ARROW",
379
+ 99: "BIDIRECTIONAL_DOTTED_ARROW",
380
+ 100: "SOLID_CROSS",
381
+ 101: "DOTTED_CROSS",
382
+ 102: "SOLID_POINT",
383
+ 103: "DOTTED_POINT",
384
+ 104: "TXT"
385
+ },
386
+ productions_: [
387
+ 0,
388
+ [3, 2],
389
+ [3, 2],
390
+ [3, 2],
391
+ [7, 0],
392
+ [7, 2],
393
+ [8, 2],
394
+ [8, 1],
395
+ [8, 1],
396
+ [8, 1],
397
+ [11, 0],
398
+ [11, 2],
399
+ [12, 2],
400
+ [12, 1],
401
+ [12, 1],
402
+ [9, 1],
403
+ [9, 2],
404
+ [9, 4],
405
+ [9, 2],
406
+ [9, 4],
407
+ [9, 3],
408
+ [9, 3],
409
+ [9, 2],
410
+ [9, 3],
411
+ [9, 3],
412
+ [9, 2],
413
+ [9, 2],
414
+ [9, 2],
415
+ [9, 2],
416
+ [9, 2],
417
+ [9, 1],
418
+ [9, 1],
419
+ [9, 2],
420
+ [9, 2],
421
+ [9, 1],
422
+ [9, 4],
423
+ [9, 4],
424
+ [9, 4],
425
+ [9, 4],
426
+ [9, 4],
427
+ [9, 4],
428
+ [9, 4],
429
+ [9, 4],
430
+ [46, 1],
431
+ [46, 4],
432
+ [43, 1],
433
+ [43, 4],
434
+ [41, 1],
435
+ [41, 4],
436
+ [13, 5],
437
+ [13, 3],
438
+ [13, 5],
439
+ [13, 3],
440
+ [13, 3],
441
+ [13, 5],
442
+ [13, 3],
443
+ [13, 5],
444
+ [13, 3],
445
+ [25, 4],
446
+ [25, 4],
447
+ [26, 3],
448
+ [27, 3],
449
+ [28, 3],
450
+ [29, 3],
451
+ [65, 2],
452
+ [65, 1],
453
+ [60, 3],
454
+ [60, 1],
455
+ [57, 1],
456
+ [57, 1],
457
+ [18, 5],
458
+ [18, 5],
459
+ [18, 5],
460
+ [18, 5],
461
+ [18, 6],
462
+ [18, 4],
463
+ [55, 2],
464
+ [74, 3],
465
+ [23, 1],
466
+ [69, 1],
467
+ [69, 1],
468
+ [69, 1],
469
+ [69, 1],
470
+ [69, 1],
471
+ [69, 1],
472
+ [69, 1],
473
+ [69, 1],
474
+ [69, 1],
475
+ [69, 1],
476
+ [69, 1],
477
+ [69, 1],
478
+ [69, 1],
479
+ [69, 1],
480
+ [69, 1],
481
+ [69, 1],
482
+ [69, 1],
483
+ [69, 1],
484
+ [69, 1],
485
+ [69, 1],
486
+ [69, 1],
487
+ [69, 1],
488
+ [69, 1],
489
+ [69, 1],
490
+ [69, 1],
491
+ [69, 1],
492
+ [58, 1]
493
+ ],
494
+ performAction: /* @__PURE__ */ __name(function(e2, t2, n2, r2, i2, a, o2) {
495
+ var s2 = a.length - 1;
496
+ switch (i2) {
497
+ case 3:
498
+ return r2.apply(a[s2]), a[s2];
499
+ case 4:
500
+ case 10:
501
+ this.$ = [];
502
+ break;
503
+ case 5:
504
+ case 11:
505
+ a[s2 - 1].push(a[s2]), this.$ = a[s2 - 1];
506
+ break;
507
+ case 6:
508
+ case 7:
509
+ case 12:
510
+ case 13:
511
+ this.$ = a[s2];
512
+ break;
513
+ case 8:
514
+ case 9:
515
+ case 14:
516
+ this.$ = [];
517
+ break;
518
+ case 16:
519
+ a[s2].type = "createParticipant", this.$ = a[s2];
520
+ break;
521
+ case 17:
522
+ a[s2 - 1].unshift({
523
+ type: "boxStart",
524
+ boxData: r2.parseBoxData(a[s2 - 2])
525
+ }), a[s2 - 1].push({
526
+ type: "boxEnd",
527
+ boxText: a[s2 - 2]
528
+ }), this.$ = a[s2 - 1];
529
+ break;
530
+ case 19:
531
+ this.$ = {
532
+ type: "sequenceIndex",
533
+ sequenceIndex: Number(a[s2 - 2]),
534
+ sequenceIndexStep: Number(a[s2 - 1]),
535
+ sequenceVisible: true,
536
+ signalType: r2.LINETYPE.AUTONUMBER
537
+ };
538
+ break;
539
+ case 20:
540
+ this.$ = {
541
+ type: "sequenceIndex",
542
+ sequenceIndex: Number(a[s2 - 1]),
543
+ sequenceIndexStep: 1,
544
+ sequenceVisible: true,
545
+ signalType: r2.LINETYPE.AUTONUMBER
546
+ };
547
+ break;
548
+ case 21:
549
+ this.$ = {
550
+ type: "sequenceIndex",
551
+ sequenceVisible: false,
552
+ signalType: r2.LINETYPE.AUTONUMBER
553
+ };
554
+ break;
555
+ case 22:
556
+ this.$ = {
557
+ type: "sequenceIndex",
558
+ sequenceVisible: true,
559
+ signalType: r2.LINETYPE.AUTONUMBER
560
+ };
561
+ break;
562
+ case 23:
563
+ this.$ = {
564
+ type: "activeStart",
565
+ signalType: r2.LINETYPE.ACTIVE_START,
566
+ actor: a[s2 - 1].actor
567
+ };
568
+ break;
569
+ case 24:
570
+ this.$ = {
571
+ type: "activeEnd",
572
+ signalType: r2.LINETYPE.ACTIVE_END,
573
+ actor: a[s2 - 1].actor
574
+ };
575
+ break;
576
+ case 30:
577
+ r2.setDiagramTitle(a[s2].substring(6)), this.$ = a[s2].substring(6);
578
+ break;
579
+ case 31:
580
+ r2.setDiagramTitle(a[s2].substring(7)), this.$ = a[s2].substring(7);
581
+ break;
582
+ case 32:
583
+ this.$ = a[s2].trim(), r2.setAccTitle(this.$);
584
+ break;
585
+ case 33:
586
+ case 34:
587
+ this.$ = a[s2].trim(), r2.setAccDescription(this.$);
588
+ break;
589
+ case 35:
590
+ a[s2 - 1].unshift({
591
+ type: "loopStart",
592
+ loopText: r2.parseMessage(a[s2 - 2]),
593
+ signalType: r2.LINETYPE.LOOP_START
594
+ }), a[s2 - 1].push({
595
+ type: "loopEnd",
596
+ loopText: a[s2 - 2],
597
+ signalType: r2.LINETYPE.LOOP_END
598
+ }), this.$ = a[s2 - 1];
599
+ break;
600
+ case 36:
601
+ a[s2 - 1].unshift({
602
+ type: "rectStart",
603
+ color: r2.parseMessage(a[s2 - 2]),
604
+ signalType: r2.LINETYPE.RECT_START
605
+ }), a[s2 - 1].push({
606
+ type: "rectEnd",
607
+ color: r2.parseMessage(a[s2 - 2]),
608
+ signalType: r2.LINETYPE.RECT_END
609
+ }), this.$ = a[s2 - 1];
610
+ break;
611
+ case 37:
612
+ a[s2 - 1].unshift({
613
+ type: "optStart",
614
+ optText: r2.parseMessage(a[s2 - 2]),
615
+ signalType: r2.LINETYPE.OPT_START
616
+ }), a[s2 - 1].push({
617
+ type: "optEnd",
618
+ optText: r2.parseMessage(a[s2 - 2]),
619
+ signalType: r2.LINETYPE.OPT_END
620
+ }), this.$ = a[s2 - 1];
621
+ break;
622
+ case 38:
623
+ a[s2 - 1].unshift({
624
+ type: "altStart",
625
+ altText: r2.parseMessage(a[s2 - 2]),
626
+ signalType: r2.LINETYPE.ALT_START
627
+ }), a[s2 - 1].push({
628
+ type: "altEnd",
629
+ signalType: r2.LINETYPE.ALT_END
630
+ }), this.$ = a[s2 - 1];
631
+ break;
632
+ case 39:
633
+ a[s2 - 1].unshift({
634
+ type: "parStart",
635
+ parText: r2.parseMessage(a[s2 - 2]),
636
+ signalType: r2.LINETYPE.PAR_START
637
+ }), a[s2 - 1].push({
638
+ type: "parEnd",
639
+ signalType: r2.LINETYPE.PAR_END
640
+ }), this.$ = a[s2 - 1];
641
+ break;
642
+ case 40:
643
+ a[s2 - 1].unshift({
644
+ type: "parStart",
645
+ parText: r2.parseMessage(a[s2 - 2]),
646
+ signalType: r2.LINETYPE.PAR_OVER_START
647
+ }), a[s2 - 1].push({
648
+ type: "parEnd",
649
+ signalType: r2.LINETYPE.PAR_END
650
+ }), this.$ = a[s2 - 1];
651
+ break;
652
+ case 41:
653
+ a[s2 - 1].unshift({
654
+ type: "criticalStart",
655
+ criticalText: r2.parseMessage(a[s2 - 2]),
656
+ signalType: r2.LINETYPE.CRITICAL_START
657
+ }), a[s2 - 1].push({
658
+ type: "criticalEnd",
659
+ signalType: r2.LINETYPE.CRITICAL_END
660
+ }), this.$ = a[s2 - 1];
661
+ break;
662
+ case 42:
663
+ a[s2 - 1].unshift({
664
+ type: "breakStart",
665
+ breakText: r2.parseMessage(a[s2 - 2]),
666
+ signalType: r2.LINETYPE.BREAK_START
667
+ }), a[s2 - 1].push({
668
+ type: "breakEnd",
669
+ optText: r2.parseMessage(a[s2 - 2]),
670
+ signalType: r2.LINETYPE.BREAK_END
671
+ }), this.$ = a[s2 - 1];
672
+ break;
673
+ case 44:
674
+ this.$ = a[s2 - 3].concat([{
675
+ type: "option",
676
+ optionText: r2.parseMessage(a[s2 - 1]),
677
+ signalType: r2.LINETYPE.CRITICAL_OPTION
678
+ }, a[s2]]);
679
+ break;
680
+ case 46:
681
+ this.$ = a[s2 - 3].concat([{
682
+ type: "and",
683
+ parText: r2.parseMessage(a[s2 - 1]),
684
+ signalType: r2.LINETYPE.PAR_AND
685
+ }, a[s2]]);
686
+ break;
687
+ case 48:
688
+ this.$ = a[s2 - 3].concat([{
689
+ type: "else",
690
+ altText: r2.parseMessage(a[s2 - 1]),
691
+ signalType: r2.LINETYPE.ALT_ELSE
692
+ }, a[s2]]);
693
+ break;
694
+ case 49:
695
+ a[s2 - 3].draw = "participant", a[s2 - 3].type = "addParticipant", a[s2 - 3].description = r2.parseMessage(a[s2 - 1]), this.$ = a[s2 - 3];
696
+ break;
697
+ case 50:
698
+ a[s2 - 1].draw = "participant", a[s2 - 1].type = "addParticipant", this.$ = a[s2 - 1];
699
+ break;
700
+ case 51:
701
+ a[s2 - 3].draw = "actor", a[s2 - 3].type = "addParticipant", a[s2 - 3].description = r2.parseMessage(a[s2 - 1]), this.$ = a[s2 - 3];
702
+ break;
703
+ case 52:
704
+ case 57:
705
+ a[s2 - 1].draw = "actor", a[s2 - 1].type = "addParticipant", this.$ = a[s2 - 1];
706
+ break;
707
+ case 53:
708
+ a[s2 - 1].type = "destroyParticipant", this.$ = a[s2 - 1];
709
+ break;
710
+ case 54:
711
+ a[s2 - 3].draw = "participant", a[s2 - 3].type = "addParticipant", a[s2 - 3].description = r2.parseMessage(a[s2 - 1]), this.$ = a[s2 - 3];
712
+ break;
713
+ case 55:
714
+ a[s2 - 1].draw = "participant", a[s2 - 1].type = "addParticipant", this.$ = a[s2 - 1];
715
+ break;
716
+ case 56:
717
+ a[s2 - 3].draw = "actor", a[s2 - 3].type = "addParticipant", a[s2 - 3].description = r2.parseMessage(a[s2 - 1]), this.$ = a[s2 - 3];
718
+ break;
719
+ case 58:
720
+ this.$ = [a[s2 - 1], {
721
+ type: "addNote",
722
+ placement: a[s2 - 2],
723
+ actor: a[s2 - 1].actor,
724
+ text: a[s2]
725
+ }];
726
+ break;
727
+ case 59:
728
+ a[s2 - 2] = [].concat(a[s2 - 1], a[s2 - 1]).slice(0, 2), a[s2 - 2][0] = a[s2 - 2][0].actor, a[s2 - 2][1] = a[s2 - 2][1].actor, this.$ = [a[s2 - 1], {
729
+ type: "addNote",
730
+ placement: r2.PLACEMENT.OVER,
731
+ actor: a[s2 - 2].slice(0, 2),
732
+ text: a[s2]
733
+ }];
734
+ break;
735
+ case 60:
736
+ this.$ = [a[s2 - 1], {
737
+ type: "addLinks",
738
+ actor: a[s2 - 1].actor,
739
+ text: a[s2]
740
+ }];
741
+ break;
742
+ case 61:
743
+ this.$ = [a[s2 - 1], {
744
+ type: "addALink",
745
+ actor: a[s2 - 1].actor,
746
+ text: a[s2]
747
+ }];
748
+ break;
749
+ case 62:
750
+ this.$ = [a[s2 - 1], {
751
+ type: "addProperties",
752
+ actor: a[s2 - 1].actor,
753
+ text: a[s2]
754
+ }];
755
+ break;
756
+ case 63:
757
+ this.$ = [a[s2 - 1], {
758
+ type: "addDetails",
759
+ actor: a[s2 - 1].actor,
760
+ text: a[s2]
761
+ }];
762
+ break;
763
+ case 66:
764
+ this.$ = [a[s2 - 2], a[s2]];
765
+ break;
766
+ case 67:
767
+ this.$ = a[s2];
768
+ break;
769
+ case 68:
770
+ this.$ = r2.PLACEMENT.LEFTOF;
771
+ break;
772
+ case 69:
773
+ this.$ = r2.PLACEMENT.RIGHTOF;
774
+ break;
775
+ case 70:
776
+ this.$ = [
777
+ a[s2 - 4],
778
+ a[s2 - 1],
779
+ {
780
+ type: "addMessage",
781
+ from: a[s2 - 4].actor,
782
+ to: a[s2 - 1].actor,
783
+ signalType: a[s2 - 3],
784
+ msg: a[s2],
785
+ activate: true
786
+ },
787
+ {
788
+ type: "activeStart",
789
+ signalType: r2.LINETYPE.ACTIVE_START,
790
+ actor: a[s2 - 1].actor
791
+ }
792
+ ];
793
+ break;
794
+ case 71:
795
+ this.$ = [
796
+ a[s2 - 4],
797
+ a[s2 - 1],
798
+ {
799
+ type: "addMessage",
800
+ from: a[s2 - 4].actor,
801
+ to: a[s2 - 1].actor,
802
+ signalType: a[s2 - 3],
803
+ msg: a[s2]
804
+ },
805
+ {
806
+ type: "activeEnd",
807
+ signalType: r2.LINETYPE.ACTIVE_END,
808
+ actor: a[s2 - 4].actor
809
+ }
810
+ ];
811
+ break;
812
+ case 72:
813
+ this.$ = [
814
+ a[s2 - 4],
815
+ a[s2 - 1],
816
+ {
817
+ type: "addMessage",
818
+ from: a[s2 - 4].actor,
819
+ to: a[s2 - 1].actor,
820
+ signalType: a[s2 - 3],
821
+ msg: a[s2],
822
+ activate: true,
823
+ centralConnection: r2.LINETYPE.CENTRAL_CONNECTION
824
+ },
825
+ {
826
+ type: "centralConnection",
827
+ signalType: r2.LINETYPE.CENTRAL_CONNECTION,
828
+ actor: a[s2 - 1].actor
829
+ }
830
+ ];
831
+ break;
832
+ case 73:
833
+ this.$ = [
834
+ a[s2 - 4],
835
+ a[s2 - 1],
836
+ {
837
+ type: "addMessage",
838
+ from: a[s2 - 4].actor,
839
+ to: a[s2 - 1].actor,
840
+ signalType: a[s2 - 2],
841
+ msg: a[s2],
842
+ activate: false,
843
+ centralConnection: r2.LINETYPE.CENTRAL_CONNECTION_REVERSE
844
+ },
845
+ {
846
+ type: "centralConnectionReverse",
847
+ signalType: r2.LINETYPE.CENTRAL_CONNECTION_REVERSE,
848
+ actor: a[s2 - 4].actor
849
+ }
850
+ ];
851
+ break;
852
+ case 74:
853
+ this.$ = [
854
+ a[s2 - 5],
855
+ a[s2 - 1],
856
+ {
857
+ type: "addMessage",
858
+ from: a[s2 - 5].actor,
859
+ to: a[s2 - 1].actor,
860
+ signalType: a[s2 - 3],
861
+ msg: a[s2],
862
+ activate: true,
863
+ centralConnection: r2.LINETYPE.CENTRAL_CONNECTION_DUAL
864
+ },
865
+ {
866
+ type: "centralConnection",
867
+ signalType: r2.LINETYPE.CENTRAL_CONNECTION,
868
+ actor: a[s2 - 1].actor
869
+ },
870
+ {
871
+ type: "centralConnectionReverse",
872
+ signalType: r2.LINETYPE.CENTRAL_CONNECTION_REVERSE,
873
+ actor: a[s2 - 5].actor
874
+ }
875
+ ];
876
+ break;
877
+ case 75:
878
+ this.$ = [
879
+ a[s2 - 3],
880
+ a[s2 - 1],
881
+ {
882
+ type: "addMessage",
883
+ from: a[s2 - 3].actor,
884
+ to: a[s2 - 1].actor,
885
+ signalType: a[s2 - 2],
886
+ msg: a[s2]
887
+ }
888
+ ];
889
+ break;
890
+ case 76:
891
+ this.$ = {
892
+ type: "addParticipant",
893
+ actor: a[s2 - 1],
894
+ config: a[s2]
895
+ };
896
+ break;
897
+ case 77:
898
+ this.$ = a[s2 - 1].trim();
899
+ break;
900
+ case 78:
901
+ this.$ = {
902
+ type: "addParticipant",
903
+ actor: a[s2]
904
+ };
905
+ break;
906
+ case 79:
907
+ this.$ = r2.LINETYPE.SOLID_OPEN;
908
+ break;
909
+ case 80:
910
+ this.$ = r2.LINETYPE.DOTTED_OPEN;
911
+ break;
912
+ case 81:
913
+ this.$ = r2.LINETYPE.SOLID;
914
+ break;
915
+ case 82:
916
+ this.$ = r2.LINETYPE.SOLID_TOP;
917
+ break;
918
+ case 83:
919
+ this.$ = r2.LINETYPE.SOLID_BOTTOM;
920
+ break;
921
+ case 84:
922
+ this.$ = r2.LINETYPE.STICK_TOP;
923
+ break;
924
+ case 85:
925
+ this.$ = r2.LINETYPE.STICK_BOTTOM;
926
+ break;
927
+ case 86:
928
+ this.$ = r2.LINETYPE.SOLID_TOP_DOTTED;
929
+ break;
930
+ case 87:
931
+ this.$ = r2.LINETYPE.SOLID_BOTTOM_DOTTED;
932
+ break;
933
+ case 88:
934
+ this.$ = r2.LINETYPE.STICK_TOP_DOTTED;
935
+ break;
936
+ case 89:
937
+ this.$ = r2.LINETYPE.STICK_BOTTOM_DOTTED;
938
+ break;
939
+ case 90:
940
+ this.$ = r2.LINETYPE.SOLID_ARROW_TOP_REVERSE;
941
+ break;
942
+ case 91:
943
+ this.$ = r2.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
944
+ break;
945
+ case 92:
946
+ this.$ = r2.LINETYPE.STICK_ARROW_TOP_REVERSE;
947
+ break;
948
+ case 93:
949
+ this.$ = r2.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
950
+ break;
951
+ case 94:
952
+ this.$ = r2.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
953
+ break;
954
+ case 95:
955
+ this.$ = r2.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
956
+ break;
957
+ case 96:
958
+ this.$ = r2.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
959
+ break;
960
+ case 97:
961
+ this.$ = r2.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
962
+ break;
963
+ case 98:
964
+ this.$ = r2.LINETYPE.BIDIRECTIONAL_SOLID;
965
+ break;
966
+ case 99:
967
+ this.$ = r2.LINETYPE.DOTTED;
968
+ break;
969
+ case 100:
970
+ this.$ = r2.LINETYPE.BIDIRECTIONAL_DOTTED;
971
+ break;
972
+ case 101:
973
+ this.$ = r2.LINETYPE.SOLID_CROSS;
974
+ break;
975
+ case 102:
976
+ this.$ = r2.LINETYPE.DOTTED_CROSS;
977
+ break;
978
+ case 103:
979
+ this.$ = r2.LINETYPE.SOLID_POINT;
980
+ break;
981
+ case 104:
982
+ this.$ = r2.LINETYPE.DOTTED_POINT;
983
+ break;
984
+ case 105:
985
+ this.$ = r2.parseMessage(a[s2].trim().substring(1));
986
+ break;
987
+ }
988
+ }, "anonymous"),
989
+ table: [
990
+ {
991
+ 3: 1,
992
+ 4: t,
993
+ 5: n,
994
+ 6: r
995
+ },
996
+ { 1: [3] },
997
+ {
998
+ 3: 5,
999
+ 4: t,
1000
+ 5: n,
1001
+ 6: r
1002
+ },
1003
+ {
1004
+ 3: 6,
1005
+ 4: t,
1006
+ 5: n,
1007
+ 6: r
1008
+ },
1009
+ e([
1010
+ 1,
1011
+ 4,
1012
+ 5,
1013
+ 10,
1014
+ 14,
1015
+ 15,
1016
+ 19,
1017
+ 22,
1018
+ 24,
1019
+ 30,
1020
+ 31,
1021
+ 32,
1022
+ 34,
1023
+ 36,
1024
+ 37,
1025
+ 38,
1026
+ 39,
1027
+ 40,
1028
+ 42,
1029
+ 44,
1030
+ 45,
1031
+ 47,
1032
+ 51,
1033
+ 53,
1034
+ 54,
1035
+ 56,
1036
+ 61,
1037
+ 62,
1038
+ 63,
1039
+ 64,
1040
+ 73
1041
+ ], i, { 7: 7 }),
1042
+ { 1: [2, 1] },
1043
+ { 1: [2, 2] },
1044
+ {
1045
+ 1: [2, 3],
1046
+ 4: o,
1047
+ 5: s,
1048
+ 8: 8,
1049
+ 9: 10,
1050
+ 10: c,
1051
+ 13: 13,
1052
+ 14: l,
1053
+ 15: u,
1054
+ 18: 16,
1055
+ 19: d,
1056
+ 22: f,
1057
+ 23: 41,
1058
+ 24: p,
1059
+ 25: 20,
1060
+ 26: 21,
1061
+ 27: 22,
1062
+ 28: 23,
1063
+ 29: 24,
1064
+ 30: m,
1065
+ 31: h,
1066
+ 32: g,
1067
+ 34: _,
1068
+ 36: v,
1069
+ 37: y,
1070
+ 38: b,
1071
+ 39: x,
1072
+ 40: S,
1073
+ 42: C,
1074
+ 44: w,
1075
+ 45: T,
1076
+ 47: E,
1077
+ 51: D,
1078
+ 53: O,
1079
+ 54: k,
1080
+ 56: A,
1081
+ 61: j,
1082
+ 62: M,
1083
+ 63: N,
1084
+ 64: P,
1085
+ 73: F
1086
+ },
1087
+ e(I, [2, 5]),
1088
+ {
1089
+ 9: 48,
1090
+ 13: 13,
1091
+ 14: l,
1092
+ 15: u,
1093
+ 18: 16,
1094
+ 19: d,
1095
+ 22: f,
1096
+ 23: 41,
1097
+ 24: p,
1098
+ 25: 20,
1099
+ 26: 21,
1100
+ 27: 22,
1101
+ 28: 23,
1102
+ 29: 24,
1103
+ 30: m,
1104
+ 31: h,
1105
+ 32: g,
1106
+ 34: _,
1107
+ 36: v,
1108
+ 37: y,
1109
+ 38: b,
1110
+ 39: x,
1111
+ 40: S,
1112
+ 42: C,
1113
+ 44: w,
1114
+ 45: T,
1115
+ 47: E,
1116
+ 51: D,
1117
+ 53: O,
1118
+ 54: k,
1119
+ 56: A,
1120
+ 61: j,
1121
+ 62: M,
1122
+ 63: N,
1123
+ 64: P,
1124
+ 73: F
1125
+ },
1126
+ e(I, [2, 7]),
1127
+ e(I, [2, 8]),
1128
+ e(I, [2, 9]),
1129
+ e(I, [2, 15]),
1130
+ {
1131
+ 13: 49,
1132
+ 51: D,
1133
+ 53: O,
1134
+ 54: k
1135
+ },
1136
+ { 16: [1, 50] },
1137
+ { 5: [1, 51] },
1138
+ {
1139
+ 5: [1, 54],
1140
+ 20: [1, 52],
1141
+ 21: [1, 53]
1142
+ },
1143
+ {
1144
+ 23: 55,
1145
+ 73: F
1146
+ },
1147
+ {
1148
+ 23: 56,
1149
+ 73: F
1150
+ },
1151
+ { 5: [1, 57] },
1152
+ { 5: [1, 58] },
1153
+ { 5: [1, 59] },
1154
+ { 5: [1, 60] },
1155
+ { 5: [1, 61] },
1156
+ e(I, [2, 30]),
1157
+ e(I, [2, 31]),
1158
+ { 33: [1, 62] },
1159
+ { 35: [1, 63] },
1160
+ e(I, [2, 34]),
1161
+ { 16: [1, 64] },
1162
+ { 16: [1, 65] },
1163
+ { 16: [1, 66] },
1164
+ { 16: [1, 67] },
1165
+ { 16: [1, 68] },
1166
+ { 16: [1, 69] },
1167
+ { 16: [1, 70] },
1168
+ { 16: [1, 71] },
1169
+ {
1170
+ 23: 72,
1171
+ 55: 73,
1172
+ 73: L
1173
+ },
1174
+ {
1175
+ 23: 75,
1176
+ 55: 76,
1177
+ 73: L
1178
+ },
1179
+ {
1180
+ 23: 77,
1181
+ 73: F
1182
+ },
1183
+ {
1184
+ 69: 78,
1185
+ 72: [1, 79],
1186
+ 78: R,
1187
+ 79: z,
1188
+ 80: B,
1189
+ 81: V,
1190
+ 82: H,
1191
+ 83: Be,
1192
+ 84: Ve,
1193
+ 85: He,
1194
+ 86: Ue,
1195
+ 87: We,
1196
+ 88: Ge,
1197
+ 89: Ke,
1198
+ 90: qe,
1199
+ 91: Je,
1200
+ 92: Ye,
1201
+ 93: U,
1202
+ 94: W,
1203
+ 95: Xe,
1204
+ 96: Ze,
1205
+ 97: Qe,
1206
+ 98: $e,
1207
+ 99: et,
1208
+ 100: G,
1209
+ 101: tt,
1210
+ 102: nt,
1211
+ 103: rt
1212
+ },
1213
+ {
1214
+ 57: 106,
1215
+ 59: [1, 107],
1216
+ 67: [1, 108],
1217
+ 68: [1, 109]
1218
+ },
1219
+ {
1220
+ 23: 110,
1221
+ 73: F
1222
+ },
1223
+ {
1224
+ 23: 111,
1225
+ 73: F
1226
+ },
1227
+ {
1228
+ 23: 112,
1229
+ 73: F
1230
+ },
1231
+ {
1232
+ 23: 113,
1233
+ 73: F
1234
+ },
1235
+ e([
1236
+ 5,
1237
+ 66,
1238
+ 72,
1239
+ 78,
1240
+ 79,
1241
+ 80,
1242
+ 81,
1243
+ 82,
1244
+ 83,
1245
+ 84,
1246
+ 85,
1247
+ 86,
1248
+ 87,
1249
+ 88,
1250
+ 89,
1251
+ 90,
1252
+ 91,
1253
+ 92,
1254
+ 93,
1255
+ 94,
1256
+ 95,
1257
+ 96,
1258
+ 97,
1259
+ 98,
1260
+ 99,
1261
+ 100,
1262
+ 101,
1263
+ 102,
1264
+ 103,
1265
+ 104
1266
+ ], it),
1267
+ e(I, [2, 6]),
1268
+ e(I, [2, 16]),
1269
+ e(K, [2, 10], { 11: 114 }),
1270
+ e(I, [2, 18]),
1271
+ {
1272
+ 5: [1, 116],
1273
+ 20: [1, 115]
1274
+ },
1275
+ { 5: [1, 117] },
1276
+ e(I, [2, 22]),
1277
+ { 5: [1, 118] },
1278
+ { 5: [1, 119] },
1279
+ e(I, [2, 25]),
1280
+ e(I, [2, 26]),
1281
+ e(I, [2, 27]),
1282
+ e(I, [2, 28]),
1283
+ e(I, [2, 29]),
1284
+ e(I, [2, 32]),
1285
+ e(I, [2, 33]),
1286
+ e(q, i, { 7: 120 }),
1287
+ e(q, i, { 7: 121 }),
1288
+ e(q, i, { 7: 122 }),
1289
+ e(at, i, {
1290
+ 41: 123,
1291
+ 7: 124
1292
+ }),
1293
+ e(J, i, {
1294
+ 43: 125,
1295
+ 7: 126
1296
+ }),
1297
+ e(J, i, {
1298
+ 7: 126,
1299
+ 43: 127
1300
+ }),
1301
+ e(ot, i, {
1302
+ 46: 128,
1303
+ 7: 129
1304
+ }),
1305
+ e(q, i, { 7: 130 }),
1306
+ {
1307
+ 5: [1, 132],
1308
+ 52: [1, 131]
1309
+ },
1310
+ {
1311
+ 5: [1, 134],
1312
+ 52: [1, 133]
1313
+ },
1314
+ e(Y, it, {
1315
+ 74: 135,
1316
+ 75: [1, 136]
1317
+ }),
1318
+ {
1319
+ 5: [1, 138],
1320
+ 52: [1, 137]
1321
+ },
1322
+ {
1323
+ 5: [1, 140],
1324
+ 52: [1, 139]
1325
+ },
1326
+ { 5: [1, 141] },
1327
+ {
1328
+ 23: 145,
1329
+ 70: [1, 142],
1330
+ 71: [1, 143],
1331
+ 72: [1, 144],
1332
+ 73: F
1333
+ },
1334
+ {
1335
+ 69: 146,
1336
+ 78: R,
1337
+ 79: z,
1338
+ 80: B,
1339
+ 81: V,
1340
+ 82: H,
1341
+ 83: Be,
1342
+ 84: Ve,
1343
+ 85: He,
1344
+ 86: Ue,
1345
+ 87: We,
1346
+ 88: Ge,
1347
+ 89: Ke,
1348
+ 90: qe,
1349
+ 91: Je,
1350
+ 92: Ye,
1351
+ 93: U,
1352
+ 94: W,
1353
+ 95: Xe,
1354
+ 96: Ze,
1355
+ 97: Qe,
1356
+ 98: $e,
1357
+ 99: et,
1358
+ 100: G,
1359
+ 101: tt,
1360
+ 102: nt,
1361
+ 103: rt
1362
+ },
1363
+ e(X, [2, 79]),
1364
+ e(X, [2, 80]),
1365
+ e(X, [2, 81]),
1366
+ e(X, [2, 82]),
1367
+ e(X, [2, 83]),
1368
+ e(X, [2, 84]),
1369
+ e(X, [2, 85]),
1370
+ e(X, [2, 86]),
1371
+ e(X, [2, 87]),
1372
+ e(X, [2, 88]),
1373
+ e(X, [2, 89]),
1374
+ e(X, [2, 90]),
1375
+ e(X, [2, 91]),
1376
+ e(X, [2, 92]),
1377
+ e(X, [2, 93]),
1378
+ e(X, [2, 94]),
1379
+ e(X, [2, 95]),
1380
+ e(X, [2, 96]),
1381
+ e(X, [2, 97]),
1382
+ e(X, [2, 98]),
1383
+ e(X, [2, 99]),
1384
+ e(X, [2, 100]),
1385
+ e(X, [2, 101]),
1386
+ e(X, [2, 102]),
1387
+ e(X, [2, 103]),
1388
+ e(X, [2, 104]),
1389
+ {
1390
+ 23: 147,
1391
+ 73: F
1392
+ },
1393
+ {
1394
+ 23: 149,
1395
+ 60: 148,
1396
+ 73: F
1397
+ },
1398
+ { 73: [2, 68] },
1399
+ { 73: [2, 69] },
1400
+ {
1401
+ 58: 150,
1402
+ 104: Z
1403
+ },
1404
+ {
1405
+ 58: 152,
1406
+ 104: Z
1407
+ },
1408
+ {
1409
+ 58: 153,
1410
+ 104: Z
1411
+ },
1412
+ {
1413
+ 58: 154,
1414
+ 104: Z
1415
+ },
1416
+ {
1417
+ 4: [1, 157],
1418
+ 5: [1, 159],
1419
+ 12: 156,
1420
+ 13: 158,
1421
+ 17: [1, 155],
1422
+ 51: D,
1423
+ 53: O,
1424
+ 54: k
1425
+ },
1426
+ { 5: [1, 160] },
1427
+ e(I, [2, 20]),
1428
+ e(I, [2, 21]),
1429
+ e(I, [2, 23]),
1430
+ e(I, [2, 24]),
1431
+ {
1432
+ 4: o,
1433
+ 5: s,
1434
+ 8: 8,
1435
+ 9: 10,
1436
+ 10: c,
1437
+ 13: 13,
1438
+ 14: l,
1439
+ 15: u,
1440
+ 17: [1, 161],
1441
+ 18: 16,
1442
+ 19: d,
1443
+ 22: f,
1444
+ 23: 41,
1445
+ 24: p,
1446
+ 25: 20,
1447
+ 26: 21,
1448
+ 27: 22,
1449
+ 28: 23,
1450
+ 29: 24,
1451
+ 30: m,
1452
+ 31: h,
1453
+ 32: g,
1454
+ 34: _,
1455
+ 36: v,
1456
+ 37: y,
1457
+ 38: b,
1458
+ 39: x,
1459
+ 40: S,
1460
+ 42: C,
1461
+ 44: w,
1462
+ 45: T,
1463
+ 47: E,
1464
+ 51: D,
1465
+ 53: O,
1466
+ 54: k,
1467
+ 56: A,
1468
+ 61: j,
1469
+ 62: M,
1470
+ 63: N,
1471
+ 64: P,
1472
+ 73: F
1473
+ },
1474
+ {
1475
+ 4: o,
1476
+ 5: s,
1477
+ 8: 8,
1478
+ 9: 10,
1479
+ 10: c,
1480
+ 13: 13,
1481
+ 14: l,
1482
+ 15: u,
1483
+ 17: [1, 162],
1484
+ 18: 16,
1485
+ 19: d,
1486
+ 22: f,
1487
+ 23: 41,
1488
+ 24: p,
1489
+ 25: 20,
1490
+ 26: 21,
1491
+ 27: 22,
1492
+ 28: 23,
1493
+ 29: 24,
1494
+ 30: m,
1495
+ 31: h,
1496
+ 32: g,
1497
+ 34: _,
1498
+ 36: v,
1499
+ 37: y,
1500
+ 38: b,
1501
+ 39: x,
1502
+ 40: S,
1503
+ 42: C,
1504
+ 44: w,
1505
+ 45: T,
1506
+ 47: E,
1507
+ 51: D,
1508
+ 53: O,
1509
+ 54: k,
1510
+ 56: A,
1511
+ 61: j,
1512
+ 62: M,
1513
+ 63: N,
1514
+ 64: P,
1515
+ 73: F
1516
+ },
1517
+ {
1518
+ 4: o,
1519
+ 5: s,
1520
+ 8: 8,
1521
+ 9: 10,
1522
+ 10: c,
1523
+ 13: 13,
1524
+ 14: l,
1525
+ 15: u,
1526
+ 17: [1, 163],
1527
+ 18: 16,
1528
+ 19: d,
1529
+ 22: f,
1530
+ 23: 41,
1531
+ 24: p,
1532
+ 25: 20,
1533
+ 26: 21,
1534
+ 27: 22,
1535
+ 28: 23,
1536
+ 29: 24,
1537
+ 30: m,
1538
+ 31: h,
1539
+ 32: g,
1540
+ 34: _,
1541
+ 36: v,
1542
+ 37: y,
1543
+ 38: b,
1544
+ 39: x,
1545
+ 40: S,
1546
+ 42: C,
1547
+ 44: w,
1548
+ 45: T,
1549
+ 47: E,
1550
+ 51: D,
1551
+ 53: O,
1552
+ 54: k,
1553
+ 56: A,
1554
+ 61: j,
1555
+ 62: M,
1556
+ 63: N,
1557
+ 64: P,
1558
+ 73: F
1559
+ },
1560
+ { 17: [1, 164] },
1561
+ {
1562
+ 4: o,
1563
+ 5: s,
1564
+ 8: 8,
1565
+ 9: 10,
1566
+ 10: c,
1567
+ 13: 13,
1568
+ 14: l,
1569
+ 15: u,
1570
+ 17: [2, 47],
1571
+ 18: 16,
1572
+ 19: d,
1573
+ 22: f,
1574
+ 23: 41,
1575
+ 24: p,
1576
+ 25: 20,
1577
+ 26: 21,
1578
+ 27: 22,
1579
+ 28: 23,
1580
+ 29: 24,
1581
+ 30: m,
1582
+ 31: h,
1583
+ 32: g,
1584
+ 34: _,
1585
+ 36: v,
1586
+ 37: y,
1587
+ 38: b,
1588
+ 39: x,
1589
+ 40: S,
1590
+ 42: C,
1591
+ 44: w,
1592
+ 45: T,
1593
+ 47: E,
1594
+ 50: [1, 165],
1595
+ 51: D,
1596
+ 53: O,
1597
+ 54: k,
1598
+ 56: A,
1599
+ 61: j,
1600
+ 62: M,
1601
+ 63: N,
1602
+ 64: P,
1603
+ 73: F
1604
+ },
1605
+ { 17: [1, 166] },
1606
+ {
1607
+ 4: o,
1608
+ 5: s,
1609
+ 8: 8,
1610
+ 9: 10,
1611
+ 10: c,
1612
+ 13: 13,
1613
+ 14: l,
1614
+ 15: u,
1615
+ 17: [2, 45],
1616
+ 18: 16,
1617
+ 19: d,
1618
+ 22: f,
1619
+ 23: 41,
1620
+ 24: p,
1621
+ 25: 20,
1622
+ 26: 21,
1623
+ 27: 22,
1624
+ 28: 23,
1625
+ 29: 24,
1626
+ 30: m,
1627
+ 31: h,
1628
+ 32: g,
1629
+ 34: _,
1630
+ 36: v,
1631
+ 37: y,
1632
+ 38: b,
1633
+ 39: x,
1634
+ 40: S,
1635
+ 42: C,
1636
+ 44: w,
1637
+ 45: T,
1638
+ 47: E,
1639
+ 49: [1, 167],
1640
+ 51: D,
1641
+ 53: O,
1642
+ 54: k,
1643
+ 56: A,
1644
+ 61: j,
1645
+ 62: M,
1646
+ 63: N,
1647
+ 64: P,
1648
+ 73: F
1649
+ },
1650
+ { 17: [1, 168] },
1651
+ { 17: [1, 169] },
1652
+ {
1653
+ 4: o,
1654
+ 5: s,
1655
+ 8: 8,
1656
+ 9: 10,
1657
+ 10: c,
1658
+ 13: 13,
1659
+ 14: l,
1660
+ 15: u,
1661
+ 17: [2, 43],
1662
+ 18: 16,
1663
+ 19: d,
1664
+ 22: f,
1665
+ 23: 41,
1666
+ 24: p,
1667
+ 25: 20,
1668
+ 26: 21,
1669
+ 27: 22,
1670
+ 28: 23,
1671
+ 29: 24,
1672
+ 30: m,
1673
+ 31: h,
1674
+ 32: g,
1675
+ 34: _,
1676
+ 36: v,
1677
+ 37: y,
1678
+ 38: b,
1679
+ 39: x,
1680
+ 40: S,
1681
+ 42: C,
1682
+ 44: w,
1683
+ 45: T,
1684
+ 47: E,
1685
+ 48: [1, 170],
1686
+ 51: D,
1687
+ 53: O,
1688
+ 54: k,
1689
+ 56: A,
1690
+ 61: j,
1691
+ 62: M,
1692
+ 63: N,
1693
+ 64: P,
1694
+ 73: F
1695
+ },
1696
+ {
1697
+ 4: o,
1698
+ 5: s,
1699
+ 8: 8,
1700
+ 9: 10,
1701
+ 10: c,
1702
+ 13: 13,
1703
+ 14: l,
1704
+ 15: u,
1705
+ 17: [1, 171],
1706
+ 18: 16,
1707
+ 19: d,
1708
+ 22: f,
1709
+ 23: 41,
1710
+ 24: p,
1711
+ 25: 20,
1712
+ 26: 21,
1713
+ 27: 22,
1714
+ 28: 23,
1715
+ 29: 24,
1716
+ 30: m,
1717
+ 31: h,
1718
+ 32: g,
1719
+ 34: _,
1720
+ 36: v,
1721
+ 37: y,
1722
+ 38: b,
1723
+ 39: x,
1724
+ 40: S,
1725
+ 42: C,
1726
+ 44: w,
1727
+ 45: T,
1728
+ 47: E,
1729
+ 51: D,
1730
+ 53: O,
1731
+ 54: k,
1732
+ 56: A,
1733
+ 61: j,
1734
+ 62: M,
1735
+ 63: N,
1736
+ 64: P,
1737
+ 73: F
1738
+ },
1739
+ { 16: [1, 172] },
1740
+ e(I, [2, 50]),
1741
+ { 16: [1, 173] },
1742
+ e(I, [2, 55]),
1743
+ e(Y, [2, 76]),
1744
+ { 76: [1, 174] },
1745
+ { 16: [1, 175] },
1746
+ e(I, [2, 52]),
1747
+ { 16: [1, 176] },
1748
+ e(I, [2, 57]),
1749
+ e(I, [2, 53]),
1750
+ {
1751
+ 23: 177,
1752
+ 73: F
1753
+ },
1754
+ {
1755
+ 23: 178,
1756
+ 73: F
1757
+ },
1758
+ {
1759
+ 23: 179,
1760
+ 73: F
1761
+ },
1762
+ {
1763
+ 58: 180,
1764
+ 104: Z
1765
+ },
1766
+ {
1767
+ 23: 181,
1768
+ 72: [1, 182],
1769
+ 73: F
1770
+ },
1771
+ {
1772
+ 58: 183,
1773
+ 104: Z
1774
+ },
1775
+ {
1776
+ 58: 184,
1777
+ 104: Z
1778
+ },
1779
+ {
1780
+ 66: [1, 185],
1781
+ 104: [2, 67]
1782
+ },
1783
+ { 5: [2, 60] },
1784
+ { 5: [2, 105] },
1785
+ { 5: [2, 61] },
1786
+ { 5: [2, 62] },
1787
+ { 5: [2, 63] },
1788
+ e(I, [2, 17]),
1789
+ e(K, [2, 11]),
1790
+ {
1791
+ 13: 186,
1792
+ 51: D,
1793
+ 53: O,
1794
+ 54: k
1795
+ },
1796
+ e(K, [2, 13]),
1797
+ e(K, [2, 14]),
1798
+ e(I, [2, 19]),
1799
+ e(I, [2, 35]),
1800
+ e(I, [2, 36]),
1801
+ e(I, [2, 37]),
1802
+ e(I, [2, 38]),
1803
+ { 16: [1, 187] },
1804
+ e(I, [2, 39]),
1805
+ { 16: [1, 188] },
1806
+ e(I, [2, 40]),
1807
+ e(I, [2, 41]),
1808
+ { 16: [1, 189] },
1809
+ e(I, [2, 42]),
1810
+ { 5: [1, 190] },
1811
+ { 5: [1, 191] },
1812
+ { 77: [1, 192] },
1813
+ { 5: [1, 193] },
1814
+ { 5: [1, 194] },
1815
+ {
1816
+ 58: 195,
1817
+ 104: Z
1818
+ },
1819
+ {
1820
+ 58: 196,
1821
+ 104: Z
1822
+ },
1823
+ {
1824
+ 58: 197,
1825
+ 104: Z
1826
+ },
1827
+ { 5: [2, 75] },
1828
+ {
1829
+ 58: 198,
1830
+ 104: Z
1831
+ },
1832
+ {
1833
+ 23: 199,
1834
+ 73: F
1835
+ },
1836
+ { 5: [2, 58] },
1837
+ { 5: [2, 59] },
1838
+ {
1839
+ 23: 200,
1840
+ 73: F
1841
+ },
1842
+ e(K, [2, 12]),
1843
+ e(at, i, {
1844
+ 7: 124,
1845
+ 41: 201
1846
+ }),
1847
+ e(J, i, {
1848
+ 7: 126,
1849
+ 43: 202
1850
+ }),
1851
+ e(ot, i, {
1852
+ 7: 129,
1853
+ 46: 203
1854
+ }),
1855
+ e(I, [2, 49]),
1856
+ e(I, [2, 54]),
1857
+ e(Y, [2, 77]),
1858
+ e(I, [2, 51]),
1859
+ e(I, [2, 56]),
1860
+ { 5: [2, 70] },
1861
+ { 5: [2, 71] },
1862
+ { 5: [2, 72] },
1863
+ { 5: [2, 73] },
1864
+ {
1865
+ 58: 204,
1866
+ 104: Z
1867
+ },
1868
+ { 104: [2, 66] },
1869
+ { 17: [2, 48] },
1870
+ { 17: [2, 46] },
1871
+ { 17: [2, 44] },
1872
+ { 5: [2, 74] }
1873
+ ],
1874
+ defaultActions: {
1875
+ 5: [2, 1],
1876
+ 6: [2, 2],
1877
+ 108: [2, 68],
1878
+ 109: [2, 69],
1879
+ 150: [2, 60],
1880
+ 151: [2, 105],
1881
+ 152: [2, 61],
1882
+ 153: [2, 62],
1883
+ 154: [2, 63],
1884
+ 180: [2, 75],
1885
+ 183: [2, 58],
1886
+ 184: [2, 59],
1887
+ 195: [2, 70],
1888
+ 196: [2, 71],
1889
+ 197: [2, 72],
1890
+ 198: [2, 73],
1891
+ 200: [2, 66],
1892
+ 201: [2, 48],
1893
+ 202: [2, 46],
1894
+ 203: [2, 44],
1895
+ 204: [2, 74]
1896
+ },
1897
+ parseError: /* @__PURE__ */ __name(function(e2, t2) {
1898
+ if (t2.recoverable) this.trace(e2);
1899
+ else {
1900
+ var n2 = Error(e2);
1901
+ throw n2.hash = t2, n2;
1902
+ }
1903
+ }, "parseError"),
1904
+ parse: /* @__PURE__ */ __name(function(e2) {
1905
+ var t2 = this, n2 = [0], r2 = [], i2 = [null], o2 = [], s2 = this.table, c2 = "", l2 = 0, u2 = 0, d2 = 0, f2 = 2, p2 = 1, m2 = o2.slice.call(arguments, 1), h2 = Object.create(this.lexer), g2 = { yy: {} };
1906
+ for (var _2 in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _2) && (g2.yy[_2] = this.yy[_2]);
1907
+ h2.setInput(e2, g2.yy), g2.yy.lexer = h2, g2.yy.parser = this, h2.yylloc === void 0 && (h2.yylloc = {});
1908
+ var v2 = h2.yylloc;
1909
+ o2.push(v2);
1910
+ var y2 = h2.options && h2.options.ranges;
1911
+ typeof g2.yy.parseError == "function" ? this.parseError = g2.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1912
+ function b2(e3) {
1913
+ n2.length -= 2 * e3, i2.length -= e3, o2.length -= e3;
1914
+ }
1915
+ __name(b2, "popStack");
1916
+ function x2() {
1917
+ var e3 = r2.pop() || h2.lex() || p2;
1918
+ return typeof e3 != "number" && (e3 instanceof Array && (r2 = e3, e3 = r2.pop()), e3 = t2.symbols_[e3] || e3), e3;
1919
+ }
1920
+ __name(x2, "lex");
1921
+ for (var S2, C2, w2, T2, E2, D2 = {}, O2, k2, A2, j2; ; ) {
1922
+ if (w2 = n2[n2.length - 1], this.defaultActions[w2] ? T2 = this.defaultActions[w2] : (S2 ?? (S2 = x2()), T2 = s2[w2] && s2[w2][S2]), T2 === void 0 || !T2.length || !T2[0]) {
1923
+ var M2 = "";
1924
+ for (O2 in j2 = [], s2[w2]) this.terminals_[O2] && O2 > f2 && j2.push("'" + this.terminals_[O2] + "'");
1925
+ M2 = h2.showPosition ? "Parse error on line " + (l2 + 1) + ":\n" + h2.showPosition() + "\nExpecting " + j2.join(", ") + ", got '" + (this.terminals_[S2] || S2) + "'" : "Parse error on line " + (l2 + 1) + ": Unexpected " + (S2 == p2 ? "end of input" : "'" + (this.terminals_[S2] || S2) + "'"), this.parseError(M2, {
1926
+ text: h2.match,
1927
+ token: this.terminals_[S2] || S2,
1928
+ line: h2.yylineno,
1929
+ loc: v2,
1930
+ expected: j2
1931
+ });
1932
+ }
1933
+ if (T2[0] instanceof Array && T2.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w2 + ", token: " + S2);
1934
+ switch (T2[0]) {
1935
+ case 1:
1936
+ n2.push(S2), i2.push(h2.yytext), o2.push(h2.yylloc), n2.push(T2[1]), S2 = null, C2 ? (S2 = C2, C2 = null) : (u2 = h2.yyleng, c2 = h2.yytext, l2 = h2.yylineno, v2 = h2.yylloc, d2 > 0 && d2--);
1937
+ break;
1938
+ case 2:
1939
+ if (k2 = this.productions_[T2[1]][1], D2.$ = i2[i2.length - k2], D2._$ = {
1940
+ first_line: o2[o2.length - (k2 || 1)].first_line,
1941
+ last_line: o2[o2.length - 1].last_line,
1942
+ first_column: o2[o2.length - (k2 || 1)].first_column,
1943
+ last_column: o2[o2.length - 1].last_column
1944
+ }, y2 && (D2._$.range = [o2[o2.length - (k2 || 1)].range[0], o2[o2.length - 1].range[1]]), E2 = this.performAction.apply(D2, [
1945
+ c2,
1946
+ u2,
1947
+ l2,
1948
+ g2.yy,
1949
+ T2[1],
1950
+ i2,
1951
+ o2
1952
+ ].concat(m2)), E2 !== void 0) return E2;
1953
+ k2 && (n2 = n2.slice(0, -1 * k2 * 2), i2 = i2.slice(0, -1 * k2), o2 = o2.slice(0, -1 * k2)), n2.push(this.productions_[T2[1]][0]), i2.push(D2.$), o2.push(D2._$), A2 = s2[n2[n2.length - 2]][n2[n2.length - 1]], n2.push(A2);
1954
+ break;
1955
+ case 3:
1956
+ return true;
1957
+ }
1958
+ }
1959
+ return true;
1960
+ }, "parse")
1961
+ };
1962
+ Q.lexer = /* @__PURE__ */ (function() {
1963
+ return {
1964
+ EOF: 1,
1965
+ parseError: /* @__PURE__ */ __name(function(e2, t2) {
1966
+ if (this.yy.parser) this.yy.parser.parseError(e2, t2);
1967
+ else throw Error(e2);
1968
+ }, "parseError"),
1969
+ setInput: /* @__PURE__ */ __name(function(e2, t2) {
1970
+ return this.yy = t2 || this.yy || {}, this._input = e2, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1971
+ first_line: 1,
1972
+ first_column: 0,
1973
+ last_line: 1,
1974
+ last_column: 0
1975
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1976
+ }, "setInput"),
1977
+ input: /* @__PURE__ */ __name(function() {
1978
+ var e2 = this._input[0];
1979
+ return this.yytext += e2, this.yyleng++, this.offset++, this.match += e2, this.matched += e2, e2.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e2;
1980
+ }, "input"),
1981
+ unput: /* @__PURE__ */ __name(function(e2) {
1982
+ var t2 = e2.length, n2 = e2.split(/(?:\r\n?|\n)/g);
1983
+ this._input = e2 + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t2), this.offset -= t2;
1984
+ var r2 = this.match.split(/(?:\r\n?|\n)/g);
1985
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n2.length - 1 && (this.yylineno -= n2.length - 1);
1986
+ var i2 = this.yylloc.range;
1987
+ return this.yylloc = {
1988
+ first_line: this.yylloc.first_line,
1989
+ last_line: this.yylineno + 1,
1990
+ first_column: this.yylloc.first_column,
1991
+ last_column: n2 ? (n2.length === r2.length ? this.yylloc.first_column : 0) + r2[r2.length - n2.length].length - n2[0].length : this.yylloc.first_column - t2
1992
+ }, this.options.ranges && (this.yylloc.range = [i2[0], i2[0] + this.yyleng - t2]), this.yyleng = this.yytext.length, this;
1993
+ }, "unput"),
1994
+ more: /* @__PURE__ */ __name(function() {
1995
+ return this._more = true, this;
1996
+ }, "more"),
1997
+ reject: /* @__PURE__ */ __name(function() {
1998
+ if (this.options.backtrack_lexer) this._backtrack = true;
1999
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
2000
+ text: "",
2001
+ token: null,
2002
+ line: this.yylineno
2003
+ });
2004
+ return this;
2005
+ }, "reject"),
2006
+ less: /* @__PURE__ */ __name(function(e2) {
2007
+ this.unput(this.match.slice(e2));
2008
+ }, "less"),
2009
+ pastInput: /* @__PURE__ */ __name(function() {
2010
+ var e2 = this.matched.substr(0, this.matched.length - this.match.length);
2011
+ return (e2.length > 20 ? "..." : "") + e2.substr(-20).replace(/\n/g, "");
2012
+ }, "pastInput"),
2013
+ upcomingInput: /* @__PURE__ */ __name(function() {
2014
+ var e2 = this.match;
2015
+ return e2.length < 20 && (e2 += this._input.substr(0, 20 - e2.length)), (e2.substr(0, 20) + (e2.length > 20 ? "..." : "")).replace(/\n/g, "");
2016
+ }, "upcomingInput"),
2017
+ showPosition: /* @__PURE__ */ __name(function() {
2018
+ var e2 = this.pastInput(), t2 = Array(e2.length + 1).join("-");
2019
+ return e2 + this.upcomingInput() + "\n" + t2 + "^";
2020
+ }, "showPosition"),
2021
+ test_match: /* @__PURE__ */ __name(function(e2, t2) {
2022
+ var n2, r2, i2;
2023
+ if (this.options.backtrack_lexer && (i2 = {
2024
+ yylineno: this.yylineno,
2025
+ yylloc: {
2026
+ first_line: this.yylloc.first_line,
2027
+ last_line: this.last_line,
2028
+ first_column: this.yylloc.first_column,
2029
+ last_column: this.yylloc.last_column
2030
+ },
2031
+ yytext: this.yytext,
2032
+ match: this.match,
2033
+ matches: this.matches,
2034
+ matched: this.matched,
2035
+ yyleng: this.yyleng,
2036
+ offset: this.offset,
2037
+ _more: this._more,
2038
+ _input: this._input,
2039
+ yy: this.yy,
2040
+ conditionStack: this.conditionStack.slice(0),
2041
+ done: this.done
2042
+ }, this.options.ranges && (i2.yylloc.range = this.yylloc.range.slice(0))), r2 = e2[0].match(/(?:\r\n?|\n).*/g), r2 && (this.yylineno += r2.length), this.yylloc = {
2043
+ first_line: this.yylloc.last_line,
2044
+ last_line: this.yylineno + 1,
2045
+ first_column: this.yylloc.last_column,
2046
+ last_column: r2 ? r2[r2.length - 1].length - r2[r2.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e2[0].length
2047
+ }, this.yytext += e2[0], this.match += e2[0], this.matches = e2, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(e2[0].length), this.matched += e2[0], n2 = this.performAction.call(this, this.yy, this, t2, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), n2) return n2;
2048
+ if (this._backtrack) {
2049
+ for (var a in i2) this[a] = i2[a];
2050
+ return false;
2051
+ }
2052
+ return false;
2053
+ }, "test_match"),
2054
+ next: /* @__PURE__ */ __name(function() {
2055
+ if (this.done) return this.EOF;
2056
+ this._input || (this.done = true);
2057
+ var e2, t2, n2, r2;
2058
+ this._more || (this.yytext = "", this.match = "");
2059
+ for (var i2 = this._currentRules(), a = 0; a < i2.length; a++) if (n2 = this._input.match(this.rules[i2[a]]), n2 && (!t2 || n2[0].length > t2[0].length)) {
2060
+ if (t2 = n2, r2 = a, this.options.backtrack_lexer) {
2061
+ if (e2 = this.test_match(n2, i2[a]), e2 !== false) return e2;
2062
+ if (this._backtrack) {
2063
+ t2 = false;
2064
+ continue;
2065
+ } else return false;
2066
+ } else if (!this.options.flex) break;
2067
+ }
2068
+ return t2 ? (e2 = this.test_match(t2, i2[r2]), e2 === false ? false : e2) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2069
+ text: "",
2070
+ token: null,
2071
+ line: this.yylineno
2072
+ });
2073
+ }, "next"),
2074
+ lex: /* @__PURE__ */ __name(function() {
2075
+ return this.next() || this.lex();
2076
+ }, "lex"),
2077
+ begin: /* @__PURE__ */ __name(function(e2) {
2078
+ this.conditionStack.push(e2);
2079
+ }, "begin"),
2080
+ popState: /* @__PURE__ */ __name(function() {
2081
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2082
+ }, "popState"),
2083
+ _currentRules: /* @__PURE__ */ __name(function() {
2084
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2085
+ }, "_currentRules"),
2086
+ topState: /* @__PURE__ */ __name(function(e2) {
2087
+ return e2 = this.conditionStack.length - 1 - Math.abs(e2 || 0), e2 >= 0 ? this.conditionStack[e2] : "INITIAL";
2088
+ }, "topState"),
2089
+ pushState: /* @__PURE__ */ __name(function(e2) {
2090
+ this.begin(e2);
2091
+ }, "pushState"),
2092
+ stateStackSize: /* @__PURE__ */ __name(function() {
2093
+ return this.conditionStack.length;
2094
+ }, "stateStackSize"),
2095
+ options: { "case-insensitive": true },
2096
+ performAction: /* @__PURE__ */ __name(function(e2, t2, n2, r2) {
2097
+ switch (n2) {
2098
+ case 0:
2099
+ return 5;
2100
+ case 1:
2101
+ break;
2102
+ case 2:
2103
+ break;
2104
+ case 3:
2105
+ break;
2106
+ case 4:
2107
+ break;
2108
+ case 5:
2109
+ break;
2110
+ case 6:
2111
+ return 20;
2112
+ case 7:
2113
+ return this.begin("CONFIG"), 75;
2114
+ case 8:
2115
+ return 76;
2116
+ case 9:
2117
+ return this.popState(), this.begin("ALIAS"), 77;
2118
+ case 10:
2119
+ return this.popState(), this.popState(), 77;
2120
+ case 11:
2121
+ return t2.yytext = t2.yytext.trim(), 73;
2122
+ case 12:
2123
+ return t2.yytext = t2.yytext.trim(), this.begin("ALIAS"), 73;
2124
+ case 13:
2125
+ return t2.yytext = t2.yytext.trim(), this.popState(), 73;
2126
+ case 14:
2127
+ return this.popState(), 10;
2128
+ case 15:
2129
+ return t2.yytext = t2.yytext.trim(), this.popState(), 10;
2130
+ case 16:
2131
+ return this.begin("LINE"), 15;
2132
+ case 17:
2133
+ return this.begin("ID"), 51;
2134
+ case 18:
2135
+ return this.begin("ID"), 53;
2136
+ case 19:
2137
+ return 14;
2138
+ case 20:
2139
+ return this.begin("ID"), 54;
2140
+ case 21:
2141
+ return this.popState(), this.popState(), this.begin("LINE"), 52;
2142
+ case 22:
2143
+ return this.popState(), this.popState(), 5;
2144
+ case 23:
2145
+ return this.begin("LINE"), 37;
2146
+ case 24:
2147
+ return this.begin("LINE"), 38;
2148
+ case 25:
2149
+ return this.begin("LINE"), 39;
2150
+ case 26:
2151
+ return this.begin("LINE"), 40;
2152
+ case 27:
2153
+ return this.begin("LINE"), 50;
2154
+ case 28:
2155
+ return this.begin("LINE"), 42;
2156
+ case 29:
2157
+ return this.begin("LINE"), 44;
2158
+ case 30:
2159
+ return this.begin("LINE"), 49;
2160
+ case 31:
2161
+ return this.begin("LINE"), 45;
2162
+ case 32:
2163
+ return this.begin("LINE"), 48;
2164
+ case 33:
2165
+ return this.begin("LINE"), 47;
2166
+ case 34:
2167
+ return this.popState(), 16;
2168
+ case 35:
2169
+ return 17;
2170
+ case 36:
2171
+ return 67;
2172
+ case 37:
2173
+ return 68;
2174
+ case 38:
2175
+ return 61;
2176
+ case 39:
2177
+ return 62;
2178
+ case 40:
2179
+ return 63;
2180
+ case 41:
2181
+ return 64;
2182
+ case 42:
2183
+ return 59;
2184
+ case 43:
2185
+ return 56;
2186
+ case 44:
2187
+ return this.begin("ID"), 22;
2188
+ case 45:
2189
+ return this.begin("ID"), 24;
2190
+ case 46:
2191
+ return 30;
2192
+ case 47:
2193
+ return 31;
2194
+ case 48:
2195
+ return this.begin("acc_title"), 32;
2196
+ case 49:
2197
+ return this.popState(), "acc_title_value";
2198
+ case 50:
2199
+ return this.begin("acc_descr"), 34;
2200
+ case 51:
2201
+ return this.popState(), "acc_descr_value";
2202
+ case 52:
2203
+ this.begin("acc_descr_multiline");
2204
+ break;
2205
+ case 53:
2206
+ this.popState();
2207
+ break;
2208
+ case 54:
2209
+ return "acc_descr_multiline_value";
2210
+ case 55:
2211
+ return 6;
2212
+ case 56:
2213
+ return 19;
2214
+ case 57:
2215
+ return 21;
2216
+ case 58:
2217
+ return 66;
2218
+ case 59:
2219
+ return 5;
2220
+ case 60:
2221
+ return t2.yytext = t2.yytext.trim(), 73;
2222
+ case 61:
2223
+ return 80;
2224
+ case 62:
2225
+ return 97;
2226
+ case 63:
2227
+ return 98;
2228
+ case 64:
2229
+ return 99;
2230
+ case 65:
2231
+ return 78;
2232
+ case 66:
2233
+ return 79;
2234
+ case 67:
2235
+ return 100;
2236
+ case 68:
2237
+ return 101;
2238
+ case 69:
2239
+ return 102;
2240
+ case 70:
2241
+ return 103;
2242
+ case 71:
2243
+ return 85;
2244
+ case 72:
2245
+ return 86;
2246
+ case 73:
2247
+ return 87;
2248
+ case 74:
2249
+ return 88;
2250
+ case 75:
2251
+ return 93;
2252
+ case 76:
2253
+ return 94;
2254
+ case 77:
2255
+ return 95;
2256
+ case 78:
2257
+ return 96;
2258
+ case 79:
2259
+ return 81;
2260
+ case 80:
2261
+ return 82;
2262
+ case 81:
2263
+ return 83;
2264
+ case 82:
2265
+ return 84;
2266
+ case 83:
2267
+ return 89;
2268
+ case 84:
2269
+ return 90;
2270
+ case 85:
2271
+ return 91;
2272
+ case 86:
2273
+ return 92;
2274
+ case 87:
2275
+ return 104;
2276
+ case 88:
2277
+ return 104;
2278
+ case 89:
2279
+ return 70;
2280
+ case 90:
2281
+ return 71;
2282
+ case 91:
2283
+ return 72;
2284
+ case 92:
2285
+ return 5;
2286
+ case 93:
2287
+ return 10;
2288
+ }
2289
+ }, "anonymous"),
2290
+ rules: [
2291
+ /^(?:[\n]+)/i,
2292
+ /^(?:\s+)/i,
2293
+ /^(?:((?!\n)\s)+)/i,
2294
+ /^(?:#[^\n]*)/i,
2295
+ /^(?:%(?!\{)[^\n]*)/i,
2296
+ /^(?:[^\}]%%[^\n]*)/i,
2297
+ /^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,
2298
+ /^(?:@\{)/i,
2299
+ /^(?:[^\}]+)/i,
2300
+ /^(?:\}(?=\s+as\s))/i,
2301
+ /^(?:\})/i,
2302
+ /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2303
+ /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2304
+ /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2305
+ /^(?:[^<>:\n,;@]*<[^\n]*)/i,
2306
+ /^(?:[^\n]+)/i,
2307
+ /^(?:box\b)/i,
2308
+ /^(?:participant\b)/i,
2309
+ /^(?:actor\b)/i,
2310
+ /^(?:create\b)/i,
2311
+ /^(?:destroy\b)/i,
2312
+ /^(?:as\b)/i,
2313
+ /^(?:(?:))/i,
2314
+ /^(?:loop\b)/i,
2315
+ /^(?:rect\b)/i,
2316
+ /^(?:opt\b)/i,
2317
+ /^(?:alt\b)/i,
2318
+ /^(?:else\b)/i,
2319
+ /^(?:par\b)/i,
2320
+ /^(?:par_over\b)/i,
2321
+ /^(?:and\b)/i,
2322
+ /^(?:critical\b)/i,
2323
+ /^(?:option\b)/i,
2324
+ /^(?:break\b)/i,
2325
+ /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
2326
+ /^(?:end\b)/i,
2327
+ /^(?:left of\b)/i,
2328
+ /^(?:right of\b)/i,
2329
+ /^(?:links\b)/i,
2330
+ /^(?:link\b)/i,
2331
+ /^(?:properties\b)/i,
2332
+ /^(?:details\b)/i,
2333
+ /^(?:over\b)/i,
2334
+ /^(?:note\b)/i,
2335
+ /^(?:activate\b)/i,
2336
+ /^(?:deactivate\b)/i,
2337
+ /^(?:title\s[^#\n;]+)/i,
2338
+ /^(?:title:\s[^#\n;]+)/i,
2339
+ /^(?:accTitle\s*:\s*)/i,
2340
+ /^(?:(?!\n||)*[^\n]*)/i,
2341
+ /^(?:accDescr\s*:\s*)/i,
2342
+ /^(?:(?!\n||)*[^\n]*)/i,
2343
+ /^(?:accDescr\s*\{\s*)/i,
2344
+ /^(?:[\}])/i,
2345
+ /^(?:[^\}]*)/i,
2346
+ /^(?:sequenceDiagram\b)/i,
2347
+ /^(?:autonumber\b)/i,
2348
+ /^(?:off\b)/i,
2349
+ /^(?:,)/i,
2350
+ /^(?:;)/i,
2351
+ /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
2352
+ /^(?:->>)/i,
2353
+ /^(?:<<->>)/i,
2354
+ /^(?:-->>)/i,
2355
+ /^(?:<<-->>)/i,
2356
+ /^(?:->)/i,
2357
+ /^(?:-->)/i,
2358
+ /^(?:-[x])/i,
2359
+ /^(?:--[x])/i,
2360
+ /^(?:-[\)])/i,
2361
+ /^(?:--[\)])/i,
2362
+ /^(?:--\|\\)/i,
2363
+ /^(?:--\|\/)/i,
2364
+ /^(?:--\\\\)/i,
2365
+ /^(?:--\/\/)/i,
2366
+ /^(?:\/\|--)/i,
2367
+ /^(?:\\\|--)/i,
2368
+ /^(?:\/\/--)/i,
2369
+ /^(?:\\\\--)/i,
2370
+ /^(?:-\|\\)/i,
2371
+ /^(?:-\|\/)/i,
2372
+ /^(?:-\\\\)/i,
2373
+ /^(?:-\/\/)/i,
2374
+ /^(?:\/\|-)/i,
2375
+ /^(?:\\\|-)/i,
2376
+ /^(?:\/\/-)/i,
2377
+ /^(?:\\\\-)/i,
2378
+ /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
2379
+ /^(?::)/i,
2380
+ /^(?:\+)/i,
2381
+ /^(?:-)/i,
2382
+ /^(?:\(\))/i,
2383
+ /^(?:$)/i,
2384
+ /^(?:.)/i
2385
+ ],
2386
+ conditions: {
2387
+ acc_descr_multiline: {
2388
+ rules: [53, 54],
2389
+ inclusive: false
2390
+ },
2391
+ acc_descr: {
2392
+ rules: [51],
2393
+ inclusive: false
2394
+ },
2395
+ acc_title: {
2396
+ rules: [49],
2397
+ inclusive: false
2398
+ },
2399
+ ID: {
2400
+ rules: [
2401
+ 2,
2402
+ 3,
2403
+ 7,
2404
+ 11,
2405
+ 12,
2406
+ 13,
2407
+ 14,
2408
+ 15
2409
+ ],
2410
+ inclusive: false
2411
+ },
2412
+ ALIAS: {
2413
+ rules: [
2414
+ 2,
2415
+ 3,
2416
+ 21,
2417
+ 22
2418
+ ],
2419
+ inclusive: false
2420
+ },
2421
+ LINE: {
2422
+ rules: [
2423
+ 2,
2424
+ 3,
2425
+ 34
2426
+ ],
2427
+ inclusive: false
2428
+ },
2429
+ CONFIG: {
2430
+ rules: [
2431
+ 8,
2432
+ 9,
2433
+ 10
2434
+ ],
2435
+ inclusive: false
2436
+ },
2437
+ CONFIG_DATA: {
2438
+ rules: [],
2439
+ inclusive: false
2440
+ },
2441
+ INITIAL: {
2442
+ rules: [
2443
+ 0,
2444
+ 1,
2445
+ 3,
2446
+ 4,
2447
+ 5,
2448
+ 6,
2449
+ 16,
2450
+ 17,
2451
+ 18,
2452
+ 19,
2453
+ 20,
2454
+ 23,
2455
+ 24,
2456
+ 25,
2457
+ 26,
2458
+ 27,
2459
+ 28,
2460
+ 29,
2461
+ 30,
2462
+ 31,
2463
+ 32,
2464
+ 33,
2465
+ 35,
2466
+ 36,
2467
+ 37,
2468
+ 38,
2469
+ 39,
2470
+ 40,
2471
+ 41,
2472
+ 42,
2473
+ 43,
2474
+ 44,
2475
+ 45,
2476
+ 46,
2477
+ 47,
2478
+ 48,
2479
+ 50,
2480
+ 52,
2481
+ 55,
2482
+ 56,
2483
+ 57,
2484
+ 58,
2485
+ 59,
2486
+ 60,
2487
+ 61,
2488
+ 62,
2489
+ 63,
2490
+ 64,
2491
+ 65,
2492
+ 66,
2493
+ 67,
2494
+ 68,
2495
+ 69,
2496
+ 70,
2497
+ 71,
2498
+ 72,
2499
+ 73,
2500
+ 74,
2501
+ 75,
2502
+ 76,
2503
+ 77,
2504
+ 78,
2505
+ 79,
2506
+ 80,
2507
+ 81,
2508
+ 82,
2509
+ 83,
2510
+ 84,
2511
+ 85,
2512
+ 86,
2513
+ 87,
2514
+ 88,
2515
+ 89,
2516
+ 90,
2517
+ 91,
2518
+ 92,
2519
+ 93
2520
+ ],
2521
+ inclusive: true
2522
+ }
2523
+ }
2524
+ };
2525
+ })();
2526
+ function $() {
2527
+ this.yy = {};
2528
+ }
2529
+ return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
2530
+ })();
2531
+ parser.parser = parser;
2532
+ var sequenceDiagram_default = parser, LINETYPE = {
2533
+ SOLID: 0,
2534
+ DOTTED: 1,
2535
+ NOTE: 2,
2536
+ SOLID_CROSS: 3,
2537
+ DOTTED_CROSS: 4,
2538
+ SOLID_OPEN: 5,
2539
+ DOTTED_OPEN: 6,
2540
+ LOOP_START: 10,
2541
+ LOOP_END: 11,
2542
+ ALT_START: 12,
2543
+ ALT_ELSE: 13,
2544
+ ALT_END: 14,
2545
+ OPT_START: 15,
2546
+ OPT_END: 16,
2547
+ ACTIVE_START: 17,
2548
+ ACTIVE_END: 18,
2549
+ PAR_START: 19,
2550
+ PAR_AND: 20,
2551
+ PAR_END: 21,
2552
+ RECT_START: 22,
2553
+ RECT_END: 23,
2554
+ SOLID_POINT: 24,
2555
+ DOTTED_POINT: 25,
2556
+ AUTONUMBER: 26,
2557
+ CRITICAL_START: 27,
2558
+ CRITICAL_OPTION: 28,
2559
+ CRITICAL_END: 29,
2560
+ BREAK_START: 30,
2561
+ BREAK_END: 31,
2562
+ PAR_OVER_START: 32,
2563
+ BIDIRECTIONAL_SOLID: 33,
2564
+ BIDIRECTIONAL_DOTTED: 34,
2565
+ SOLID_TOP: 41,
2566
+ SOLID_BOTTOM: 42,
2567
+ STICK_TOP: 43,
2568
+ STICK_BOTTOM: 44,
2569
+ SOLID_ARROW_TOP_REVERSE: 45,
2570
+ SOLID_ARROW_BOTTOM_REVERSE: 46,
2571
+ STICK_ARROW_TOP_REVERSE: 47,
2572
+ STICK_ARROW_BOTTOM_REVERSE: 48,
2573
+ SOLID_TOP_DOTTED: 51,
2574
+ SOLID_BOTTOM_DOTTED: 52,
2575
+ STICK_TOP_DOTTED: 53,
2576
+ STICK_BOTTOM_DOTTED: 54,
2577
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
2578
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
2579
+ STICK_ARROW_TOP_REVERSE_DOTTED: 57,
2580
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
2581
+ CENTRAL_CONNECTION: 59,
2582
+ CENTRAL_CONNECTION_REVERSE: 60,
2583
+ CENTRAL_CONNECTION_DUAL: 61
2584
+ }, ARROWTYPE = {
2585
+ FILLED: 0,
2586
+ OPEN: 1
2587
+ }, PLACEMENT = {
2588
+ LEFTOF: 0,
2589
+ RIGHTOF: 1,
2590
+ OVER: 2
2591
+ }, PARTICIPANT_TYPE = {
2592
+ ACTOR: "actor",
2593
+ BOUNDARY: "boundary",
2594
+ COLLECTIONS: "collections",
2595
+ CONTROL: "control",
2596
+ DATABASE: "database",
2597
+ ENTITY: "entity",
2598
+ PARTICIPANT: "participant",
2599
+ QUEUE: "queue"
2600
+ }, SequenceDB = (_a = class {
2601
+ constructor() {
2602
+ this.state = new ImperativeState(() => ({
2603
+ prevActor: void 0,
2604
+ actors: /* @__PURE__ */ new Map(),
2605
+ createdActors: /* @__PURE__ */ new Map(),
2606
+ destroyedActors: /* @__PURE__ */ new Map(),
2607
+ boxes: [],
2608
+ messages: [],
2609
+ notes: [],
2610
+ sequenceNumbersEnabled: false,
2611
+ wrapEnabled: void 0,
2612
+ currentBox: void 0,
2613
+ lastCreated: void 0,
2614
+ lastDestroyed: void 0
2615
+ })), this.setAccTitle = setAccTitle, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getAccTitle = getAccTitle, this.getAccDescription = getAccDescription, this.getDiagramTitle = getDiagramTitle, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(getConfig2().wrap), this.LINETYPE = LINETYPE, this.ARROWTYPE = ARROWTYPE, this.PLACEMENT = PLACEMENT;
2616
+ }
2617
+ addBox(e) {
2618
+ this.state.records.boxes.push({
2619
+ name: e.text,
2620
+ wrap: e.wrap ?? this.autoWrap(),
2621
+ fill: e.color,
2622
+ actorKeys: []
2623
+ }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2624
+ }
2625
+ addActor(e, t, n, r, i) {
2626
+ let a = this.state.records.currentBox, o;
2627
+ if (i !== void 0) {
2628
+ let e2;
2629
+ e2 = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = load(e2, { schema: JSON_SCHEMA });
2630
+ }
2631
+ r = (o == null ? void 0 : o.type) ?? r, (o == null ? void 0 : o.alias) && (!n || n.text === t) && (n = {
2632
+ text: o.alias,
2633
+ wrap: n == null ? void 0 : n.wrap,
2634
+ type: r
2635
+ });
2636
+ let s = this.state.records.actors.get(e);
2637
+ if (s) {
2638
+ if (this.state.records.currentBox && s.box && this.state.records.currentBox !== s.box) throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2639
+ if (a = s.box ? s.box : this.state.records.currentBox, s.box = a, s && t === s.name && n == null) return;
2640
+ }
2641
+ if ((n == null ? void 0 : n.text) ?? (n = {
2642
+ text: t,
2643
+ type: r
2644
+ }), (r == null || n.text == null) && (n = {
2645
+ text: t,
2646
+ type: r
2647
+ }), this.state.records.actors.set(e, {
2648
+ box: a,
2649
+ name: t,
2650
+ description: n.text,
2651
+ wrap: n.wrap ?? this.autoWrap(),
2652
+ prevActor: this.state.records.prevActor,
2653
+ links: {},
2654
+ properties: {},
2655
+ actorCnt: null,
2656
+ rectData: null,
2657
+ type: r ?? "participant"
2658
+ }), this.state.records.prevActor) {
2659
+ let t2 = this.state.records.actors.get(this.state.records.prevActor);
2660
+ t2 && (t2.nextActor = e);
2661
+ }
2662
+ this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
2663
+ }
2664
+ activationCount(e) {
2665
+ let t, n = 0;
2666
+ if (!e) return 0;
2667
+ for (t = 0; t < this.state.records.messages.length; t++) this.state.records.messages[t].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[t].from === e && n++, this.state.records.messages[t].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[t].from === e && n--;
2668
+ return n;
2669
+ }
2670
+ addMessage(e, t, n, r) {
2671
+ this.state.records.messages.push({
2672
+ id: this.state.records.messages.length.toString(),
2673
+ from: e,
2674
+ to: t,
2675
+ message: n.text,
2676
+ wrap: n.wrap ?? this.autoWrap(),
2677
+ answer: r
2678
+ });
2679
+ }
2680
+ addSignal(e, t, n, r, i = false, a) {
2681
+ if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
2682
+ let t2 = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + e + ")");
2683
+ throw t2.hash = {
2684
+ text: "->>-",
2685
+ token: "->>-",
2686
+ line: "1",
2687
+ loc: {
2688
+ first_line: 1,
2689
+ last_line: 1,
2690
+ first_column: 1,
2691
+ last_column: 1
2692
+ },
2693
+ expected: ["'ACTIVE_PARTICIPANT'"]
2694
+ }, t2;
2695
+ }
2696
+ return this.state.records.messages.push({
2697
+ id: this.state.records.messages.length.toString(),
2698
+ from: e,
2699
+ to: t,
2700
+ message: (n == null ? void 0 : n.text) ?? "",
2701
+ wrap: (n == null ? void 0 : n.wrap) ?? this.autoWrap(),
2702
+ type: r,
2703
+ activate: i,
2704
+ centralConnection: a ?? 0
2705
+ }), true;
2706
+ }
2707
+ hasAtLeastOneBox() {
2708
+ return this.state.records.boxes.length > 0;
2709
+ }
2710
+ hasAtLeastOneBoxWithTitle() {
2711
+ return this.state.records.boxes.some((e) => e.name);
2712
+ }
2713
+ getMessages() {
2714
+ return this.state.records.messages;
2715
+ }
2716
+ getBoxes() {
2717
+ return this.state.records.boxes;
2718
+ }
2719
+ getActors() {
2720
+ return this.state.records.actors;
2721
+ }
2722
+ getCreatedActors() {
2723
+ return this.state.records.createdActors;
2724
+ }
2725
+ getDestroyedActors() {
2726
+ return this.state.records.destroyedActors;
2727
+ }
2728
+ getActor(e) {
2729
+ return this.state.records.actors.get(e);
2730
+ }
2731
+ getActorKeys() {
2732
+ return [...this.state.records.actors.keys()];
2733
+ }
2734
+ enableSequenceNumbers() {
2735
+ this.state.records.sequenceNumbersEnabled = true;
2736
+ }
2737
+ disableSequenceNumbers() {
2738
+ this.state.records.sequenceNumbersEnabled = false;
2739
+ }
2740
+ showSequenceNumbers() {
2741
+ return this.state.records.sequenceNumbersEnabled;
2742
+ }
2743
+ setWrap(e) {
2744
+ this.state.records.wrapEnabled = e;
2745
+ }
2746
+ extractWrap(e) {
2747
+ if (e === void 0) return {};
2748
+ e = e.trim();
2749
+ let t = /^:?wrap:/.exec(e) === null ? /^:?nowrap:/.exec(e) === null ? void 0 : false : true;
2750
+ return {
2751
+ cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
2752
+ wrap: t
2753
+ };
2754
+ }
2755
+ autoWrap() {
2756
+ var _a2;
2757
+ return this.state.records.wrapEnabled === void 0 ? ((_a2 = getConfig2().sequence) == null ? void 0 : _a2.wrap) ?? false : this.state.records.wrapEnabled;
2758
+ }
2759
+ clear() {
2760
+ this.state.reset(), clear();
2761
+ }
2762
+ parseMessage(e) {
2763
+ let t = e.trim(), { wrap: n, cleanedText: i } = this.extractWrap(t), a = {
2764
+ text: i,
2765
+ wrap: n
2766
+ };
2767
+ return log.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2768
+ }
2769
+ parseBoxData(e) {
2770
+ let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = (t == null ? void 0 : t[1]) ? t[1].trim() : "transparent", r = (t == null ? void 0 : t[2]) ? t[2].trim() : void 0;
2771
+ if (window == null ? void 0 : window.CSS) window.CSS.supports("color", n) || (n = "transparent", r = e.trim());
2772
+ else {
2773
+ let t2 = new Option().style;
2774
+ t2.color = n, t2.color !== n && (n = "transparent", r = e.trim());
2775
+ }
2776
+ let { wrap: i, cleanedText: a } = this.extractWrap(r);
2777
+ return {
2778
+ text: a ? sanitizeText(a, getConfig2()) : void 0,
2779
+ color: n,
2780
+ wrap: i
2781
+ };
2782
+ }
2783
+ addNote(e, t, n) {
2784
+ let r = {
2785
+ actor: e,
2786
+ placement: t,
2787
+ message: n.text,
2788
+ wrap: n.wrap ?? this.autoWrap()
2789
+ }, i = [].concat(e, e);
2790
+ this.state.records.notes.push(r), this.state.records.messages.push({
2791
+ id: this.state.records.messages.length.toString(),
2792
+ from: i[0],
2793
+ to: i[1],
2794
+ message: n.text,
2795
+ wrap: n.wrap ?? this.autoWrap(),
2796
+ type: this.LINETYPE.NOTE,
2797
+ placement: t
2798
+ });
2799
+ }
2800
+ addLinks(e, t) {
2801
+ let n = this.getActor(e);
2802
+ try {
2803
+ let e2 = sanitizeText(t.text, getConfig2());
2804
+ e2 = e2.replace(/&equals;/g, "="), e2 = e2.replace(/&amp;/g, "&");
2805
+ let r = JSON.parse(e2);
2806
+ this.insertLinks(n, r);
2807
+ } catch (e2) {
2808
+ log.error("error while parsing actor link text", e2);
2809
+ }
2810
+ }
2811
+ addALink(e, t) {
2812
+ let n = this.getActor(e);
2813
+ try {
2814
+ let e2 = {}, r = sanitizeText(t.text, getConfig2()), i = r.indexOf("@");
2815
+ r = r.replace(/&equals;/g, "="), r = r.replace(/&amp;/g, "&");
2816
+ let a = r.slice(0, i - 1).trim();
2817
+ e2[a] = r.slice(i + 1).trim(), this.insertLinks(n, e2);
2818
+ } catch (e2) {
2819
+ log.error("error while parsing actor link text", e2);
2820
+ }
2821
+ }
2822
+ insertLinks(e, t) {
2823
+ if (e.links == null) e.links = t;
2824
+ else for (let n in t) e.links[n] = t[n];
2825
+ }
2826
+ addProperties(e, t) {
2827
+ let n = this.getActor(e);
2828
+ try {
2829
+ let e2 = sanitizeText(t.text, getConfig2()), r = JSON.parse(e2);
2830
+ this.insertProperties(n, r);
2831
+ } catch (e2) {
2832
+ log.error("error while parsing actor properties text", e2);
2833
+ }
2834
+ }
2835
+ insertProperties(e, t) {
2836
+ if (e.properties == null) e.properties = t;
2837
+ else for (let n in t) e.properties[n] = t[n];
2838
+ }
2839
+ boxEnd() {
2840
+ this.state.records.currentBox = void 0;
2841
+ }
2842
+ addDetails(e, t) {
2843
+ let n = this.getActor(e), i = document.getElementById(t.text);
2844
+ try {
2845
+ let e2 = i.innerHTML, t2 = JSON.parse(e2);
2846
+ t2.properties && this.insertProperties(n, t2.properties), t2.links && this.insertLinks(n, t2.links);
2847
+ } catch (e2) {
2848
+ log.error("error while parsing actor details text", e2);
2849
+ }
2850
+ }
2851
+ getActorProperty(e, t) {
2852
+ if ((e == null ? void 0 : e.properties) !== void 0) return e.properties[t];
2853
+ }
2854
+ apply(e) {
2855
+ if (Array.isArray(e)) e.forEach((e2) => {
2856
+ this.apply(e2);
2857
+ });
2858
+ else switch (e.type) {
2859
+ case "sequenceIndex":
2860
+ this.state.records.messages.push({
2861
+ id: this.state.records.messages.length.toString(),
2862
+ from: void 0,
2863
+ to: void 0,
2864
+ message: {
2865
+ start: e.sequenceIndex,
2866
+ step: e.sequenceIndexStep,
2867
+ visible: e.sequenceVisible
2868
+ },
2869
+ wrap: false,
2870
+ type: e.signalType
2871
+ });
2872
+ break;
2873
+ case "addParticipant":
2874
+ this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
2875
+ break;
2876
+ case "createParticipant":
2877
+ if (this.state.records.actors.has(e.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
2878
+ this.state.records.lastCreated = e.actor, this.addActor(e.actor, e.actor, e.description, e.draw, e.config), this.state.records.createdActors.set(e.actor, this.state.records.messages.length);
2879
+ break;
2880
+ case "destroyParticipant":
2881
+ this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
2882
+ break;
2883
+ case "activeStart":
2884
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2885
+ break;
2886
+ case "centralConnection":
2887
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2888
+ break;
2889
+ case "centralConnectionReverse":
2890
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2891
+ break;
2892
+ case "activeEnd":
2893
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2894
+ break;
2895
+ case "addNote":
2896
+ this.addNote(e.actor, e.placement, e.text);
2897
+ break;
2898
+ case "addLinks":
2899
+ this.addLinks(e.actor, e.text);
2900
+ break;
2901
+ case "addALink":
2902
+ this.addALink(e.actor, e.text);
2903
+ break;
2904
+ case "addProperties":
2905
+ this.addProperties(e.actor, e.text);
2906
+ break;
2907
+ case "addDetails":
2908
+ this.addDetails(e.actor, e.text);
2909
+ break;
2910
+ case "addMessage":
2911
+ if (this.state.records.lastCreated) {
2912
+ if (e.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
2913
+ this.state.records.lastCreated = void 0;
2914
+ } else if (this.state.records.lastDestroyed) {
2915
+ if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
2916
+ this.state.records.lastDestroyed = void 0;
2917
+ }
2918
+ this.addSignal(e.from, e.to, e.msg, e.signalType, e.activate, e.centralConnection);
2919
+ break;
2920
+ case "boxStart":
2921
+ this.addBox(e.boxData);
2922
+ break;
2923
+ case "boxEnd":
2924
+ this.boxEnd();
2925
+ break;
2926
+ case "loopStart":
2927
+ this.addSignal(void 0, void 0, e.loopText, e.signalType);
2928
+ break;
2929
+ case "loopEnd":
2930
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2931
+ break;
2932
+ case "rectStart":
2933
+ this.addSignal(void 0, void 0, e.color, e.signalType);
2934
+ break;
2935
+ case "rectEnd":
2936
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2937
+ break;
2938
+ case "optStart":
2939
+ this.addSignal(void 0, void 0, e.optText, e.signalType);
2940
+ break;
2941
+ case "optEnd":
2942
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2943
+ break;
2944
+ case "altStart":
2945
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
2946
+ break;
2947
+ case "else":
2948
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
2949
+ break;
2950
+ case "altEnd":
2951
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2952
+ break;
2953
+ case "setAccTitle":
2954
+ setAccTitle(e.text);
2955
+ break;
2956
+ case "parStart":
2957
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
2958
+ break;
2959
+ case "and":
2960
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
2961
+ break;
2962
+ case "parEnd":
2963
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2964
+ break;
2965
+ case "criticalStart":
2966
+ this.addSignal(void 0, void 0, e.criticalText, e.signalType);
2967
+ break;
2968
+ case "option":
2969
+ this.addSignal(void 0, void 0, e.optionText, e.signalType);
2970
+ break;
2971
+ case "criticalEnd":
2972
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2973
+ break;
2974
+ case "breakStart":
2975
+ this.addSignal(void 0, void 0, e.breakText, e.signalType);
2976
+ break;
2977
+ case "breakEnd":
2978
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2979
+ break;
2980
+ }
2981
+ }
2982
+ getConfig() {
2983
+ return getConfig2().sequence;
2984
+ }
2985
+ }, __name(_a, "SequenceDB"), _a), styles_default = /* @__PURE__ */ __name((e) => {
2986
+ let t = e.dropShadow ?? "none", { look: n } = getConfig2();
2987
+ return `.actor {
2988
+ stroke: ${e.actorBorder};
2989
+ fill: ${e.actorBkg};
2990
+ stroke-width: ${e.strokeWidth ?? 1};
2991
+ }
2992
+
2993
+ rect.actor.outer-path[data-look="neo"] {
2994
+ filter: ${t};
2995
+ }
2996
+
2997
+ rect.note[data-look="neo"] {
2998
+ stroke:${e.noteBorderColor};
2999
+ fill:${e.noteBkgColor};
3000
+ filter: ${t};
3001
+ }
3002
+
3003
+ text.actor > tspan {
3004
+ fill: ${e.actorTextColor};
3005
+ stroke: none;
3006
+ }
3007
+
3008
+ .actor-line {
3009
+ stroke: ${e.actorLineColor};
3010
+ }
3011
+
3012
+ .innerArc {
3013
+ stroke-width: 1.5;
3014
+ stroke-dasharray: none;
3015
+ }
3016
+
3017
+ .messageLine0 {
3018
+ stroke-width: 1.5;
3019
+ stroke-dasharray: none;
3020
+ stroke: ${e.signalColor};
3021
+ }
3022
+
3023
+ .messageLine1 {
3024
+ stroke-width: 1.5;
3025
+ stroke-dasharray: 2, 2;
3026
+ stroke: ${e.signalColor};
3027
+ }
3028
+
3029
+ [id$="-arrowhead"] path {
3030
+ fill: ${e.signalColor};
3031
+ stroke: ${e.signalColor};
3032
+ }
3033
+
3034
+ .sequenceNumber {
3035
+ fill: ${e.sequenceNumberColor};
3036
+ }
3037
+
3038
+ [id$="-sequencenumber"] {
3039
+ fill: ${e.signalColor};
3040
+ }
3041
+
3042
+ [id$="-crosshead"] path {
3043
+ fill: ${e.signalColor};
3044
+ stroke: ${e.signalColor};
3045
+ }
3046
+
3047
+ .messageText {
3048
+ fill: ${e.signalTextColor};
3049
+ stroke: none;
3050
+ }
3051
+
3052
+ .labelBox {
3053
+ stroke: ${e.labelBoxBorderColor};
3054
+ fill: ${e.labelBoxBkgColor};
3055
+ filter: ${n === "neo" ? t : "none"};
3056
+ }
3057
+
3058
+ .labelText, .labelText > tspan {
3059
+ fill: ${e.labelTextColor};
3060
+ stroke: none;
3061
+ }
3062
+
3063
+ .loopText, .loopText > tspan {
3064
+ fill: ${e.loopTextColor};
3065
+ stroke: none;
3066
+ }
3067
+
3068
+ .sectionTitle, .sectionTitle > tspan {
3069
+ fill: ${e.loopTextColor};
3070
+ stroke: none;
3071
+ }
3072
+
3073
+ .loopLine {
3074
+ stroke-width: 2px;
3075
+ stroke-dasharray: 2, 2;
3076
+ stroke: ${e.labelBoxBorderColor};
3077
+ fill: ${e.labelBoxBorderColor};
3078
+ }
3079
+
3080
+ .note {
3081
+ //stroke: #decc93;
3082
+ stroke: ${e.noteBorderColor};
3083
+ fill: ${e.noteBkgColor};
3084
+ }
3085
+
3086
+ .noteText, .noteText > tspan {
3087
+ fill: ${e.noteTextColor};
3088
+ stroke: none;
3089
+ ${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
3090
+ }
3091
+
3092
+ .activation0 {
3093
+ fill: ${e.activationBkgColor};
3094
+ stroke: ${e.activationBorderColor};
3095
+ }
3096
+
3097
+ .activation1 {
3098
+ fill: ${e.activationBkgColor};
3099
+ stroke: ${e.activationBorderColor};
3100
+ }
3101
+
3102
+ .activation2 {
3103
+ fill: ${e.activationBkgColor};
3104
+ stroke: ${e.activationBorderColor};
3105
+ }
3106
+
3107
+ .actorPopupMenu {
3108
+ position: absolute;
3109
+ }
3110
+
3111
+ .actorPopupMenuPanel {
3112
+ position: absolute;
3113
+ fill: ${e.actorBkg};
3114
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
3115
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
3116
+ }
3117
+ .actor-man circle, line {
3118
+ fill: ${e.actorBkg};
3119
+ stroke-width: 2px;
3120
+ }
3121
+
3122
+ g rect.rect {
3123
+ filter: ${t};
3124
+ stroke: ${e.nodeBorder};
3125
+ }
3126
+ `;
3127
+ }, "getStyles"), ACTOR_TYPE_WIDTH = 36, TOP_ACTOR_CLASS = "actor-top", BOTTOM_ACTOR_CLASS = "actor-bottom", ACTOR_BOX_CLASS = "actor-box", ACTOR_MAN_FIGURE_CLASS = "actor-man", COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), drawRect2 = /* @__PURE__ */ __name(function(e, t) {
3128
+ let n = drawRect(e, t);
3129
+ return getConfig().look === "neo" && n.attr("data-look", "neo"), n;
3130
+ }, "drawRect"), drawPopup = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3131
+ if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3132
+ height: 0,
3133
+ width: 0
3134
+ };
3135
+ let a = t.links, o = t.actorCnt, s = t.rectData;
3136
+ var c = "none";
3137
+ i && (c = "block !important");
3138
+ let l = e.append("g");
3139
+ l.attr("id", "actor" + o + "_popup"), l.attr("class", "actorPopupMenu"), l.attr("display", c);
3140
+ var u = "";
3141
+ s.class !== void 0 && (u = " " + s.class);
3142
+ let d = s.width > n ? s.width : n, f = l.append("rect");
3143
+ if (f.attr("class", "actorPopupMenuPanel" + u), f.attr("x", s.x), f.attr("y", s.height), f.attr("fill", s.fill), f.attr("stroke", s.stroke), f.attr("width", d), f.attr("height", s.height), f.attr("rx", s.rx), f.attr("ry", s.ry), a != null) {
3144
+ var p = 20;
3145
+ for (let e2 in a) {
3146
+ var m = l.append("a"), h = (0, import_dist.sanitizeUrl)(a[e2]);
3147
+ m.attr("xlink:href", h), m.attr("target", "_blank"), _drawMenuItemTextCandidateFunc(r)(e2, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3148
+ }
3149
+ }
3150
+ return f.attr("height", p), {
3151
+ height: s.height + p,
3152
+ width: d
3153
+ };
3154
+ }, "drawPopup"), popupMenuToggle = /* @__PURE__ */ __name(function(e) {
3155
+ return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3156
+ }, "popupMenuToggle"), drawKatex = /* @__PURE__ */ __name(async function(e, t, n = null) {
3157
+ let r = e.append("foreignObject"), i = await renderKatexSanitized(t.text, getConfig()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3158
+ if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3159
+ let n2 = e.node().firstChild;
3160
+ n2.setAttribute("height", a.height + 2 * t.textMargin);
3161
+ let i2 = n2.getBBox();
3162
+ r.attr("x", Math.round(i2.x + i2.width / 2 - a.width / 2)).attr("y", Math.round(i2.y + i2.height / 2 - a.height / 2));
3163
+ } else if (n) {
3164
+ let { startx: e2, stopx: i2, starty: o } = n;
3165
+ if (e2 > i2) {
3166
+ let t2 = e2;
3167
+ e2 = i2, i2 = t2;
3168
+ }
3169
+ r.attr("x", Math.round(e2 + Math.abs(e2 - i2) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
3170
+ }
3171
+ return [r];
3172
+ }, "drawKatex"), drawText = /* @__PURE__ */ __name(function(e, n) {
3173
+ let r = 0, i = 0, o = n.text.split(common_default.lineBreakRegex), [s, c] = parseFontSize(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ __name(() => n.y, "yfunc");
3174
+ if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3175
+ case "top":
3176
+ case "start":
3177
+ d = /* @__PURE__ */ __name(() => Math.round(n.y + n.textMargin), "yfunc");
3178
+ break;
3179
+ case "middle":
3180
+ case "center":
3181
+ d = /* @__PURE__ */ __name(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3182
+ break;
3183
+ case "bottom":
3184
+ case "end":
3185
+ d = /* @__PURE__ */ __name(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3186
+ break;
3187
+ }
3188
+ if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3189
+ case "left":
3190
+ case "start":
3191
+ n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3192
+ break;
3193
+ case "middle":
3194
+ case "center":
3195
+ n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3196
+ break;
3197
+ case "right":
3198
+ case "end":
3199
+ n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3200
+ break;
3201
+ }
3202
+ for (let [t, a] of o.entries()) {
3203
+ n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = t * s);
3204
+ let o2 = e.append("text");
3205
+ o2.attr("x", n.x), o2.attr("y", d()), n.anchor !== void 0 && o2.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && o2.style("font-family", n.fontFamily), c !== void 0 && o2.style("font-size", c), n.fontWeight !== void 0 && o2.style("font-weight", n.fontWeight), n.fill !== void 0 && o2.attr("fill", n.fill), n.class !== void 0 && o2.attr("class", n.class), n.dy === void 0 ? u !== 0 && o2.attr("dy", u) : o2.attr("dy", n.dy);
3206
+ let f = a || "\u200B";
3207
+ if (n.tspan) {
3208
+ let e2 = o2.append("tspan");
3209
+ e2.attr("x", n.x), n.fill !== void 0 && e2.attr("fill", n.fill), e2.text(f);
3210
+ } else o2.text(f);
3211
+ n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (o2._groups || o2)[0][0].getBBox().height, r = i), l.push(o2);
3212
+ }
3213
+ return l;
3214
+ }, "drawText"), drawLabel = /* @__PURE__ */ __name(function(e, t) {
3215
+ function n(e2, t2, n2, r2, i) {
3216
+ return e2 + "," + t2 + " " + (e2 + n2) + "," + t2 + " " + (e2 + n2) + "," + (t2 + r2 - i) + " " + (e2 + n2 - i * 1.2) + "," + (t2 + r2) + " " + e2 + "," + (t2 + r2);
3217
+ }
3218
+ __name(n, "genPoints");
3219
+ let r = e.append("polygon");
3220
+ return r.attr("points", n(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y += t.height / 2, drawText(e, t), r;
3221
+ }, "drawLabel"), actorCnt = -1, fixLifeLineHeights = /* @__PURE__ */ __name((e, t, n, r) => {
3222
+ e.select && n.forEach((n2) => {
3223
+ let i = t.get(n2), a = e.select("#actor" + i.actorCnt);
3224
+ !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3225
+ });
3226
+ }, "fixLifeLineHeights"), drawActorTypeParticipant = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3227
+ var _a2, _b;
3228
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3229
+ var h = m;
3230
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), l === "neo" && h.attr("data-look", "neo"));
3231
+ let g = getNoteRect();
3232
+ var _ = "actor";
3233
+ ((_a2 = t.properties) == null ? void 0 : _a2.class) ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, l === "neo" && (g.rx = 6, g.ry = 6);
3234
+ let v = drawRect2(h, g), y = i.get(t.name) ?? 0;
3235
+ if (COLOR_THEMES.has(u) && (v.style("stroke", p[y % p.length]), v.style("fill", f[y % p.length])), l === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, (_b = t.properties) == null ? void 0 : _b.icon) {
3236
+ let e2 = t.properties.icon.trim();
3237
+ e2.charAt(0) === "@" ? drawEmbeddedImage(h, g.x + g.width - 20, g.y + 10, e2.substr(1)) : drawImage(h, g.x + g.width - 20, g.y + 10, e2);
3238
+ }
3239
+ r || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3240
+ let b = t.height;
3241
+ if (v.node) {
3242
+ let e2 = v.node().getBBox();
3243
+ t.height = e2.height, b = e2.height;
3244
+ }
3245
+ return b;
3246
+ }, "drawActorTypeParticipant"), drawActorTypeCollections = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3247
+ var _a2, _b;
3248
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3249
+ var h = m;
3250
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), l === "neo" && h.attr("data-look", "neo"));
3251
+ let g = getNoteRect();
3252
+ var _ = "actor";
3253
+ ((_a2 = t.properties) == null ? void 0 : _a2.class) ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
3254
+ let v = {
3255
+ ...g,
3256
+ x: g.x + -6,
3257
+ y: g.y + 6,
3258
+ class: "actor"
3259
+ }, y = drawRect2(h, g), b = drawRect2(h, v);
3260
+ t.rectData = g, l === "neo" && h.attr("filter", "url(#drop-shadow)");
3261
+ let x = i.get(t.name) ?? 0;
3262
+ if (COLOR_THEMES.has(u) && (y.style("stroke", p[x % p.length]), y.style("fill", f[x % p.length]), b.style("stroke", p[x % p.length]), b.style("fill", f[x % p.length])), (_b = t.properties) == null ? void 0 : _b.icon) {
3263
+ let e2 = t.properties.icon.trim();
3264
+ e2.charAt(0) === "@" ? drawEmbeddedImage(h, g.x + g.width - 20, g.y + 10, e2.substr(1)) : drawImage(h, g.x + g.width - 20, g.y + 10, e2);
3265
+ }
3266
+ _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3267
+ let S = t.height;
3268
+ if (y.node) {
3269
+ let e2 = y.node().getBBox();
3270
+ t.height = e2.height, S = e2.height;
3271
+ }
3272
+ return r || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
3273
+ }, "drawActorTypeCollections"), drawActorTypeQueue = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3274
+ var _a2, _b;
3275
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = m;
3276
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), l === "neo" && h.attr("data-look", "neo"));
3277
+ let g = getNoteRect(), _ = "actor";
3278
+ ((_a2 = t.properties) == null ? void 0 : _a2.class) ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, h.attr("class", _), g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.name = t.name;
3279
+ let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
3280
+ a ${y},${v} 0 0 0 0,${g.height}
3281
+ h ${g.width - 2 * y}
3282
+ a ${y},${v} 0 0 0 0,-${g.height}
3283
+ Z
3284
+ `;
3285
+ b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
3286
+ a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, l === "neo" && b.attr("filter", "url(#drop-shadow)");
3287
+ let C = i.get(t.name) ?? 0;
3288
+ if (COLOR_THEMES.has(u) && (b.style("stroke", p[C % p.length]), b.style("fill", f[C % p.length]), x.style("stroke", p[C % p.length]), x.style("fill", f[C % p.length])), (_b = t.properties) == null ? void 0 : _b.icon) {
3289
+ let e2 = t.properties.icon.trim(), n2 = g.x + g.width - 20, r2 = g.y + 10;
3290
+ e2.charAt(0) === "@" ? drawEmbeddedImage(h, n2, r2, e2.substr(1)) : drawImage(h, n2, r2, e2);
3291
+ }
3292
+ _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3293
+ let w = t.height, T = b.select("path:last-child");
3294
+ if (T.node()) {
3295
+ let e2 = T.node().getBBox();
3296
+ t.height = e2.height, w = e2.height;
3297
+ }
3298
+ return r || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
3299
+ }, "drawActorTypeQueue"), drawActorTypeControl = /* @__PURE__ */ __name(function(e, t, n, r, i, a) {
3300
+ var _a2;
3301
+ let s = r ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + 75, { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h, actorBkg: g } = f, _ = e.append("g").lower();
3302
+ r || (actorCnt++, _.append("line").attr("id", "actor" + actorCnt).attr("x1", c).attr("y1", l).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
3303
+ let v = e.append("g"), y = ACTOR_MAN_FIGURE_CLASS;
3304
+ r ? y += ` ${BOTTOM_ACTOR_CLASS}` : y += ` ${TOP_ACTOR_CLASS}`, v.attr("class", y), v.attr("name", t.name);
3305
+ let b = getNoteRect();
3306
+ b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
3307
+ let x = t.x + t.width / 2, S = s + 32;
3308
+ v.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${u === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
3309
+ let C = a.get(t.name) ?? 0;
3310
+ return COLOR_THEMES.has(d) ? (v.style("stroke", m[C % m.length]), v.style("fill", p[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (((_a2 = n == null ? void 0 : n.sequence) == null ? void 0 : _a2.labelBoxHeight) ?? 0), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, v, b.x, b.y + 22 + (r ? 5 : 12), b.width, b.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), r || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3311
+ }, "drawActorTypeControl"), drawActorTypeEntity = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3312
+ var _a2;
3313
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = e.append("g"), g = "actor";
3314
+ r ? g += ` ${BOTTOM_ACTOR_CLASS}` : g += ` ${TOP_ACTOR_CLASS}`, h.attr("class", g), h.attr("name", t.name);
3315
+ let _ = getNoteRect();
3316
+ _.x = t.x, _.y = a, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
3317
+ let v = t.x + t.width / 2, y = a + (r ? 10 : 25);
3318
+ h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), l === "neo" && h.attr("filter", "url(#drop-shadow)");
3319
+ let b = i.get(t.name) ?? 0;
3320
+ return COLOR_THEMES.has(u) && (h.style("stroke", p[b % p.length]), h.style("fill", f[b % p.length])), t.height = h.node().getBBox().height + (((_a2 = n == null ? void 0 : n.sequence) == null ? void 0 : _a2.labelBoxHeight) ?? 0), r || (actorCnt++, m.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, _.x, _.y + (r ? 15 : 30), _.width, _.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), r ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3321
+ }, "drawActorTypeEntity"), drawActorTypeDatabase = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3322
+ var _a2;
3323
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + t.height + 2 * n.boxTextMargin, { theme: l, themeVariables: u, look: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = u, h = e.append("g").lower(), g = h;
3324
+ r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = actorCnt, t.links != null && g.attr("id", "root-" + actorCnt), d === "neo" && g.attr("data-look", "neo"));
3325
+ let _ = getNoteRect(), v = "actor";
3326
+ ((_a2 = t.properties) == null ? void 0 : _a2.class) ? v = t.properties.class : _.fill = "#eaeaea", r ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = t.x, _.y = a, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = a;
3327
+ let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
3328
+ C.attr("class", v);
3329
+ let w = `
3330
+ M ${_.x},${_.y + S}
3331
+ a ${x},${S} 0 0 0 ${y},0
3332
+ a ${x},${S} 0 0 0 -${y},0
3333
+ l 0,${b - 2 * S}
3334
+ a ${x},${S} 0 0 0 ${y},0
3335
+ l 0,-${b - 2 * S}
3336
+ `;
3337
+ C.append("path").attr("d", w), d === "neo" && C.attr("filter", "url(#drop-shadow)");
3338
+ let T = i.get(t.name) ?? 0;
3339
+ COLOR_THEMES.has(l) ? (C.style("stroke", p[T % p.length]), C.style("fill", f[T % p.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
3340
+ let E = C.select("path:last-child");
3341
+ return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), r || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
3342
+ }, "drawActorTypeDatabase"), drawActorTypeBoundary = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3343
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + 80, l = e.append("g").lower(), { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = f;
3344
+ r || (actorCnt++, l.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
3345
+ let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
3346
+ r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", t.name);
3347
+ let v = getNoteRect();
3348
+ v.x = t.x, v.y = a, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", a + 12), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", a + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", a + 12).attr("r", 22), u === "neo" && g.attr("filter", "url(#drop-shadow)");
3349
+ let y = i.get(t.name) ?? 0;
3350
+ return COLOR_THEMES.has(d) ? (g.style("stroke", m[y % m.length]), g.style("fill", p[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), g.attr("transform", "translate(0,21)"), r || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
3351
+ }, "drawActorTypeBoundary"), drawActorTypeActor = /* @__PURE__ */ __name(function(e, t, n, r, i) {
3352
+ let a = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = a + 80, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
3353
+ r || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
3354
+ let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
3355
+ r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3356
+ let v = l === "neo" ? 0.5 : 1, y = l === "neo" ? a + (1 - v) * 30 : a;
3357
+ g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", s).attr("y1", y + 25 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", s - ACTOR_TYPE_WIDTH / 2 * v).attr("y1", y + 33 * v).attr("x2", s + ACTOR_TYPE_WIDTH / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", s - ACTOR_TYPE_WIDTH / 2 * v).attr("y1", y + 60 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("x1", s).attr("y1", y + 45 * v).attr("x2", s + (ACTOR_TYPE_WIDTH / 2 - 2) * v).attr("y2", y + 60 * v);
3358
+ let b = g.append("circle");
3359
+ b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
3360
+ let x = getNoteRect();
3361
+ x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
3362
+ let S = i.get(t.name) ?? 0;
3363
+ return COLOR_THEMES.has(u) ? (g.style("stroke", p[S % p.length]), g.style("fill", f[S % p.length])) : g.style("stroke", m), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, x.x, y + 35 * v - (l === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), t.height;
3364
+ }, "drawActorTypeActor"), drawActor = /* @__PURE__ */ __name(async function(e, t, n, r, i, a, o) {
3365
+ let s = o ?? new Map([...a.db.getActors().values()].map((e2, t2) => [e2.name, t2]));
3366
+ switch (t.type) {
3367
+ case "actor":
3368
+ return await drawActorTypeActor(e, t, n, r, s);
3369
+ case "participant":
3370
+ return await drawActorTypeParticipant(e, t, n, r, s);
3371
+ case "boundary":
3372
+ return await drawActorTypeBoundary(e, t, n, r, s);
3373
+ case "control":
3374
+ return await drawActorTypeControl(e, t, n, r, i, s);
3375
+ case "entity":
3376
+ return await drawActorTypeEntity(e, t, n, r, s);
3377
+ case "database":
3378
+ return await drawActorTypeDatabase(e, t, n, r, s);
3379
+ case "collections":
3380
+ return await drawActorTypeCollections(e, t, n, r, s);
3381
+ case "queue":
3382
+ return await drawActorTypeQueue(e, t, n, r, s);
3383
+ }
3384
+ }, "drawActor"), drawBox = /* @__PURE__ */ __name(function(e, t, n) {
3385
+ let r = e.append("g");
3386
+ drawBackgroundRect2(r, t), t.name && _drawTextCandidateFunc(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3387
+ }, "drawBox"), anchorElement = /* @__PURE__ */ __name(function(e) {
3388
+ return e.append("g");
3389
+ }, "anchorElement"), drawActivation = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
3390
+ let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = getNoteRect(), p = t.anchored, m = t.actor;
3391
+ f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
3392
+ let h = drawRect2(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e2, t2) => [e2.name, t2]))).get(m) ?? 0;
3393
+ COLOR_THEMES.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3394
+ }, "drawActivation"), drawLoop = /* @__PURE__ */ __name(async function(e, t, n, r, i) {
3395
+ let { boxMargin: s, boxTextMargin: c, labelBoxHeight: l, labelBoxWidth: u, messageFontFamily: d, messageFontSize: f, messageFontWeight: p } = r, m = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + i.id), h = /* @__PURE__ */ __name(function(e2, t2, n2, r2) {
3396
+ return m.append("line").attr("x1", e2).attr("y1", t2).attr("x2", n2).attr("y2", r2).attr("class", "loopLine");
3397
+ }, "drawLoopLine");
3398
+ h(t.startx, t.starty, t.stopx, t.starty), h(t.stopx, t.starty, t.stopx, t.stopy), h(t.startx, t.stopy, t.stopx, t.stopy), h(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e2) {
3399
+ h(t.startx, e2.y, t.stopx, e2.y).style("stroke-dasharray", "3, 3");
3400
+ });
3401
+ let g = getTextObj();
3402
+ g.text = n, g.x = t.startx, g.y = t.starty, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.anchor = "middle", g.valign = "middle", g.tspan = false, g.width = Math.max(u ?? 0, 50), g.height = l + (r.look === "neo" ? 15 : 0) || 20, g.textMargin = c, g.class = "labelText", drawLabel(m, g), g = getTextObj2(), g.text = t.title, g.x = t.startx + u / 2 + (t.stopx - t.startx) / 2, g.y = t.starty + s + c, g.anchor = "middle", g.valign = "middle", g.textMargin = c, g.class = "loopText", g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = true;
3403
+ let _ = hasKatex(g.text) ? await drawKatex(m, g, t) : drawText(m, g);
3404
+ if (t.sectionTitles !== void 0) {
3405
+ for (let [e2, n2] of Object.entries(t.sectionTitles)) if (n2.message) {
3406
+ g.text = n2.message, g.x = t.startx + (t.stopx - t.startx) / 2, g.y = t.sections[e2].y + s + c, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = false, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = t.wrap, hasKatex(g.text) ? (t.starty = t.sections[e2].y, await drawKatex(m, g, t)) : drawText(m, g);
3407
+ let r2 = Math.round(_.map((e3) => (e3._groups || e3)[0][0].getBBox().height).reduce((e3, t2) => e3 + t2));
3408
+ t.sections[e2].height += r2 - (s + c);
3409
+ }
3410
+ }
3411
+ return t.height = Math.round(t.stopy - t.starty), m;
3412
+ }, "drawLoop"), drawBackgroundRect2 = /* @__PURE__ */ __name(function(e, t) {
3413
+ drawBackgroundRect(e, t);
3414
+ }, "drawBackgroundRect"), insertDatabaseIcon = /* @__PURE__ */ __name(function(e, t) {
3415
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3416
+ }, "insertDatabaseIcon"), insertComputerIcon = /* @__PURE__ */ __name(function(e, t) {
3417
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3418
+ }, "insertComputerIcon"), insertClockIcon = /* @__PURE__ */ __name(function(e, t) {
3419
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3420
+ }, "insertClockIcon"), insertArrowHead = /* @__PURE__ */ __name(function(e, t) {
3421
+ e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3422
+ }, "insertArrowHead"), insertArrowFilledHead = /* @__PURE__ */ __name(function(e, t) {
3423
+ e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
3424
+ }, "insertArrowFilledHead"), insertSequenceNumber = /* @__PURE__ */ __name(function(e, t) {
3425
+ e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3426
+ }, "insertSequenceNumber"), insertArrowCrossHead = /* @__PURE__ */ __name(function(e, t) {
3427
+ e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3428
+ }, "insertArrowCrossHead"), insertDropShadow = /* @__PURE__ */ __name(function(e, t) {
3429
+ let { theme: n } = t;
3430
+ e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
3431
+ }, "insertDropShadow"), getTextObj2 = /* @__PURE__ */ __name(function() {
3432
+ return {
3433
+ x: 0,
3434
+ y: 0,
3435
+ fill: void 0,
3436
+ anchor: void 0,
3437
+ style: "#666",
3438
+ width: void 0,
3439
+ height: void 0,
3440
+ textMargin: 0,
3441
+ rx: 0,
3442
+ ry: 0,
3443
+ tspan: true,
3444
+ valign: void 0
3445
+ };
3446
+ }, "getTextObj"), getNoteRect2 = /* @__PURE__ */ __name(function() {
3447
+ return {
3448
+ x: 0,
3449
+ y: 0,
3450
+ fill: "#EDF2AE",
3451
+ stroke: "#666",
3452
+ width: 100,
3453
+ anchor: "start",
3454
+ height: 100,
3455
+ rx: 0,
3456
+ ry: 0
3457
+ };
3458
+ }, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
3459
+ function e(e2, t, n2, r2, i2, a, s) {
3460
+ o(t.append("text").attr("x", n2 + i2 / 2).attr("y", r2 + a / 2 + 5).style("text-anchor", "middle").text(e2), s);
3461
+ }
3462
+ __name(e, "byText");
3463
+ function n(e2, n2, r2, i2, a, s, c, l) {
3464
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = parseFontSize(u), h = e2.split(common_default.lineBreakRegex);
3465
+ for (let e3 = 0; e3 < h.length; e3++) {
3466
+ let t = e3 * p - p * (h.length - 1) / 2, l2 = n2.append("text").attr("x", r2 + a / 2).attr("y", i2).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3467
+ l2.append("tspan").attr("x", r2 + a / 2).attr("dy", t).text(h[e3]), l2.attr("y", i2 + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l2, c);
3468
+ }
3469
+ }
3470
+ __name(n, "byTspan");
3471
+ function r(e2, t, r2, i2, a, s, c, l) {
3472
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r2).attr("y", i2).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3473
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e2), n(e2, u, r2, i2, a, s, c, l), o(d, c);
3474
+ }
3475
+ __name(r, "byFo");
3476
+ async function i(e2, t, r2, i2, a, c, l, u) {
3477
+ let d = await calculateMathMLDimensions(e2, getConfig()), f = t.append("switch"), p = f.append("foreignObject").attr("x", r2 + a / 2 - d.width / 2).attr("y", i2 + c / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3478
+ p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(e2, getConfig())), n(e2, f, r2, i2, a, c, l, u), o(p, l);
3479
+ }
3480
+ __name(i, "byKatex");
3481
+ function o(e2, t) {
3482
+ for (let n2 in t) t.hasOwnProperty(n2) && e2.attr(n2, t[n2]);
3483
+ }
3484
+ return __name(o, "_setTextAttrs"), function(t, a = false) {
3485
+ return a ? i : t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3486
+ };
3487
+ })(), _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
3488
+ function e(e2, t2, n2, i, a, o, s) {
3489
+ r(t2.append("text").attr("x", n2).attr("y", i).style("text-anchor", "start").text(e2), s);
3490
+ }
3491
+ __name(e, "byText");
3492
+ function t(e2, t2, n2, i, a, o, s, c) {
3493
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e2.split(common_default.lineBreakRegex);
3494
+ for (let e3 = 0; e3 < f.length; e3++) {
3495
+ let a2 = e3 * l - l * (f.length - 1) / 2, c2 = t2.append("text").attr("x", n2).attr("y", i).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3496
+ c2.append("tspan").attr("x", n2).attr("dy", a2).text(f[e3]), c2.attr("y", i + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(c2, s);
3497
+ }
3498
+ }
3499
+ __name(t, "byTspan");
3500
+ function n(e2, n2, i, a, o, s, c, l) {
3501
+ let u = n2.append("switch"), d = u.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3502
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e2), t(e2, u, i, a, o, s, c, l), r(d, c);
3503
+ }
3504
+ __name(n, "byFo");
3505
+ function r(e2, t2) {
3506
+ for (let n2 in t2) t2.hasOwnProperty(n2) && e2.attr(n2, t2[n2]);
3507
+ }
3508
+ return __name(r, "_setTextAttrs"), function(r2) {
3509
+ return r2.textPlacement === "fo" ? n : r2.textPlacement === "old" ? e : t;
3510
+ };
3511
+ })(), svgDraw_default = {
3512
+ drawRect: drawRect2,
3513
+ drawText,
3514
+ drawLabel,
3515
+ drawActor,
3516
+ drawBox,
3517
+ drawPopup,
3518
+ anchorElement,
3519
+ drawActivation,
3520
+ drawLoop,
3521
+ drawBackgroundRect: drawBackgroundRect2,
3522
+ insertArrowHead,
3523
+ insertArrowFilledHead,
3524
+ insertSequenceNumber,
3525
+ insertArrowCrossHead,
3526
+ insertDatabaseIcon,
3527
+ insertComputerIcon,
3528
+ insertClockIcon,
3529
+ getTextObj: getTextObj2,
3530
+ getNoteRect: getNoteRect2,
3531
+ fixLifeLineHeights,
3532
+ sanitizeUrl: import_dist.sanitizeUrl,
3533
+ insertDropShadow,
3534
+ insertSolidTopArrowHead: /* @__PURE__ */ __name(function(e, t) {
3535
+ e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3536
+ }, "insertSolidTopArrowHead"),
3537
+ insertSolidBottomArrowHead: /* @__PURE__ */ __name(function(e, t) {
3538
+ e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", 0.75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3539
+ }, "insertSolidBottomArrowHead"),
3540
+ insertStickTopArrowHead: /* @__PURE__ */ __name(function(e, t) {
3541
+ e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3542
+ }, "insertStickTopArrowHead"),
3543
+ insertStickBottomArrowHead: /* @__PURE__ */ __name(function(e, t) {
3544
+ e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3545
+ }, "insertStickBottomArrowHead")
3546
+ }, conf = {}, bounds = {
3547
+ data: {
3548
+ startx: void 0,
3549
+ stopx: void 0,
3550
+ starty: void 0,
3551
+ stopy: void 0
3552
+ },
3553
+ verticalPos: 0,
3554
+ sequenceItems: [],
3555
+ activations: [],
3556
+ models: {
3557
+ getHeight: /* @__PURE__ */ __name(function() {
3558
+ return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3559
+ }, "getHeight"),
3560
+ clear: /* @__PURE__ */ __name(function() {
3561
+ this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3562
+ }, "clear"),
3563
+ addBox: /* @__PURE__ */ __name(function(e) {
3564
+ this.boxes.push(e);
3565
+ }, "addBox"),
3566
+ addActor: /* @__PURE__ */ __name(function(e) {
3567
+ this.actors.push(e);
3568
+ }, "addActor"),
3569
+ addLoop: /* @__PURE__ */ __name(function(e) {
3570
+ this.loops.push(e);
3571
+ }, "addLoop"),
3572
+ addMessage: /* @__PURE__ */ __name(function(e) {
3573
+ this.messages.push(e);
3574
+ }, "addMessage"),
3575
+ addNote: /* @__PURE__ */ __name(function(e) {
3576
+ this.notes.push(e);
3577
+ }, "addNote"),
3578
+ lastActor: /* @__PURE__ */ __name(function() {
3579
+ return this.actors[this.actors.length - 1];
3580
+ }, "lastActor"),
3581
+ lastLoop: /* @__PURE__ */ __name(function() {
3582
+ return this.loops[this.loops.length - 1];
3583
+ }, "lastLoop"),
3584
+ lastMessage: /* @__PURE__ */ __name(function() {
3585
+ return this.messages[this.messages.length - 1];
3586
+ }, "lastMessage"),
3587
+ lastNote: /* @__PURE__ */ __name(function() {
3588
+ return this.notes[this.notes.length - 1];
3589
+ }, "lastNote"),
3590
+ actors: [],
3591
+ boxes: [],
3592
+ loops: [],
3593
+ messages: [],
3594
+ notes: []
3595
+ },
3596
+ init: /* @__PURE__ */ __name(function() {
3597
+ this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3598
+ startx: void 0,
3599
+ stopx: void 0,
3600
+ starty: void 0,
3601
+ stopy: void 0
3602
+ }, this.verticalPos = 0, setConf(getConfig2());
3603
+ }, "init"),
3604
+ updateVal: /* @__PURE__ */ __name(function(e, t, n, r) {
3605
+ e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3606
+ }, "updateVal"),
3607
+ updateBounds: /* @__PURE__ */ __name(function(e, t, n, r) {
3608
+ let i = this, o = 0;
3609
+ function s(s2) {
3610
+ return /* @__PURE__ */ __name(function(a) {
3611
+ o++;
3612
+ let c = i.sequenceItems.length - o + 1;
3613
+ i.updateVal(a, "starty", t - c * conf.boxMargin, Math.min), i.updateVal(a, "stopy", r + c * conf.boxMargin, Math.max), i.updateVal(bounds.data, "startx", e - c * conf.boxMargin, Math.min), i.updateVal(bounds.data, "stopx", n + c * conf.boxMargin, Math.max), s2 !== "activation" && (i.updateVal(a, "startx", e - c * conf.boxMargin, Math.min), i.updateVal(a, "stopx", n + c * conf.boxMargin, Math.max), i.updateVal(bounds.data, "starty", t - c * conf.boxMargin, Math.min), i.updateVal(bounds.data, "stopy", r + c * conf.boxMargin, Math.max));
3614
+ }, "updateItemBounds");
3615
+ }
3616
+ __name(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3617
+ }, "updateBounds"),
3618
+ insert: /* @__PURE__ */ __name(function(e, t, n, r) {
3619
+ let i = common_default.getMin(e, n), a = common_default.getMax(e, n), o = common_default.getMin(t, r), s = common_default.getMax(t, r);
3620
+ this.updateVal(bounds.data, "startx", i, Math.min), this.updateVal(bounds.data, "starty", o, Math.min), this.updateVal(bounds.data, "stopx", a, Math.max), this.updateVal(bounds.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
3621
+ }, "insert"),
3622
+ newActivation: /* @__PURE__ */ __name(function(e, t, n) {
3623
+ let r = n.get(e.from), i = actorActivations(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * conf.activationWidth / 2;
3624
+ this.activations.push({
3625
+ startx: a,
3626
+ starty: this.verticalPos + 2,
3627
+ stopx: a + conf.activationWidth,
3628
+ stopy: void 0,
3629
+ actor: e.from,
3630
+ anchored: svgDraw_default.anchorElement(t)
3631
+ });
3632
+ }, "newActivation"),
3633
+ endActivation: /* @__PURE__ */ __name(function(e) {
3634
+ let t = this.activations.map(function(e2) {
3635
+ return e2.actor;
3636
+ }).lastIndexOf(e.from);
3637
+ return this.activations.splice(t, 1)[0];
3638
+ }, "endActivation"),
3639
+ createLoop: /* @__PURE__ */ __name(function(e = {
3640
+ message: void 0,
3641
+ wrap: false,
3642
+ width: void 0
3643
+ }, t) {
3644
+ return {
3645
+ startx: void 0,
3646
+ starty: this.verticalPos,
3647
+ stopx: void 0,
3648
+ stopy: void 0,
3649
+ title: e.message,
3650
+ wrap: e.wrap,
3651
+ width: e.width,
3652
+ height: 0,
3653
+ fill: t
3654
+ };
3655
+ }, "createLoop"),
3656
+ newLoop: /* @__PURE__ */ __name(function(e = {
3657
+ message: void 0,
3658
+ wrap: false,
3659
+ width: void 0
3660
+ }, t) {
3661
+ this.sequenceItems.push(this.createLoop(e, t));
3662
+ }, "newLoop"),
3663
+ endLoop: /* @__PURE__ */ __name(function() {
3664
+ return this.sequenceItems.pop();
3665
+ }, "endLoop"),
3666
+ isLoopOverlap: /* @__PURE__ */ __name(function() {
3667
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
3668
+ }, "isLoopOverlap"),
3669
+ addSectionToLoop: /* @__PURE__ */ __name(function(e) {
3670
+ let t = this.sequenceItems.pop();
3671
+ t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3672
+ y: bounds.getVerticalPos(),
3673
+ height: 0
3674
+ }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3675
+ }, "addSectionToLoop"),
3676
+ saveVerticalPos: /* @__PURE__ */ __name(function() {
3677
+ this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3678
+ }, "saveVerticalPos"),
3679
+ resetVerticalPos: /* @__PURE__ */ __name(function() {
3680
+ this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3681
+ }, "resetVerticalPos"),
3682
+ bumpVerticalPos: /* @__PURE__ */ __name(function(e) {
3683
+ this.verticalPos += e, this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
3684
+ }, "bumpVerticalPos"),
3685
+ getVerticalPos: /* @__PURE__ */ __name(function() {
3686
+ return this.verticalPos;
3687
+ }, "getVerticalPos"),
3688
+ getBounds: /* @__PURE__ */ __name(function() {
3689
+ return {
3690
+ bounds: this.data,
3691
+ models: this.models
3692
+ };
3693
+ }, "getBounds")
3694
+ }, drawNote = /* @__PURE__ */ __name(async function(e, t, n) {
3695
+ bounds.bumpVerticalPos(conf.boxMargin), t.height = conf.boxMargin, t.starty = bounds.getVerticalPos();
3696
+ let r = getNoteRect();
3697
+ r.x = t.startx, r.y = t.starty, r.width = t.width || conf.width, r.class = "note";
3698
+ let i = e.append("g");
3699
+ i.attr("data-et", "note"), i.attr("data-id", "i" + n);
3700
+ let a = svgDraw_default.drawRect(i, r), s = getTextObj();
3701
+ s.x = t.startx, s.y = t.starty, s.width = r.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = conf.noteFontFamily, s.fontSize = conf.noteFontSize, s.fontWeight = conf.noteFontWeight, s.anchor = conf.noteAlign, s.textMargin = conf.noteMargin, s.valign = "center";
3702
+ let c = hasKatex(s.text) ? await drawKatex(i, s) : drawText(i, s), l = Math.round(c.map((e2) => (e2._groups || e2)[0][0].getBBox().height).reduce((e2, t2) => e2 + t2));
3703
+ a.attr("height", l + 2 * conf.noteMargin), t.height += l + 2 * conf.noteMargin, bounds.bumpVerticalPos(l + 2 * conf.noteMargin), t.stopy = t.starty + l + 2 * conf.noteMargin, t.stopx = t.startx + r.width, bounds.insert(t.startx, t.starty, t.stopx, t.stopy), bounds.models.addNote(t);
3704
+ }, "drawNote"), drawCentralConnection = /* @__PURE__ */ __name(function(e, t, n, r, i, o, s) {
3705
+ let c = r.db.getActors(), l = c.get(t.from), u = c.get(t.to), d = n.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = isReverseArrowType(t, r), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ __name((e2, t2) => {
3706
+ let n2 = e2 ? _ : -_;
3707
+ return t2 ? -n2 : n2;
3708
+ }, "getCircleOffset"), y = /* @__PURE__ */ __name((e2) => {
3709
+ g.append("circle").attr("cx", e2).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3710
+ }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = r.db.LINETYPE;
3711
+ if (d) switch (t.centralConnection) {
3712
+ case b:
3713
+ h && (p += v(m, true));
3714
+ break;
3715
+ case x:
3716
+ h || (f += v(m, false));
3717
+ break;
3718
+ case S:
3719
+ h ? p += v(m, true) : f += v(m, false);
3720
+ break;
3721
+ }
3722
+ switch (t.centralConnection) {
3723
+ case b:
3724
+ y(p);
3725
+ break;
3726
+ case x:
3727
+ y(f);
3728
+ break;
3729
+ case S:
3730
+ y(f), y(p);
3731
+ break;
3732
+ }
3733
+ }, "drawCentralConnection"), messageFont = /* @__PURE__ */ __name((e) => ({
3734
+ fontFamily: e.messageFontFamily,
3735
+ fontSize: e.messageFontSize,
3736
+ fontWeight: e.messageFontWeight
3737
+ }), "messageFont"), noteFont = /* @__PURE__ */ __name((e) => ({
3738
+ fontFamily: e.noteFontFamily,
3739
+ fontSize: e.noteFontSize,
3740
+ fontWeight: e.noteFontWeight
3741
+ }), "noteFont"), actorFont = /* @__PURE__ */ __name((e) => ({
3742
+ fontFamily: e.actorFontFamily,
3743
+ fontSize: e.actorFontSize,
3744
+ fontWeight: e.actorFontWeight
3745
+ }), "actorFont");
3746
+ async function boundMessage(t, n) {
3747
+ bounds.bumpVerticalPos(10);
3748
+ let { startx: r, stopx: i, message: a } = n, s = common_default.splitBreaks(a).length, c = hasKatex(a), l = c ? await calculateMathMLDimensions(a, getConfig2()) : utils_default.calculateTextDimensions(a, messageFont(conf));
3749
+ if (!c) {
3750
+ let e = l.height / s;
3751
+ n.height += e, bounds.bumpVerticalPos(e);
3752
+ }
3753
+ let u, d = l.height - 10, f = l.width;
3754
+ if (r === i) {
3755
+ u = bounds.getVerticalPos() + d, conf.rightAngles || (d += conf.boxMargin, u = bounds.getVerticalPos() + d), d += 30;
3756
+ let e = common_default.getMax(f / 2, conf.width / 2);
3757
+ bounds.insert(r - e, bounds.getVerticalPos() - 10 + d, i + e, bounds.getVerticalPos() + 30 + d);
3758
+ } else d += conf.boxMargin, u = bounds.getVerticalPos() + d, bounds.insert(r, u - 10, i, u);
3759
+ return bounds.bumpVerticalPos(d), n.height += d, n.stopy = n.starty + n.height, bounds.insert(n.fromBounds, n.starty, n.toBounds, n.stopy), u;
3760
+ }
3761
+ __name(boundMessage, "boundMessage");
3762
+ var drawMessage = /* @__PURE__ */ __name(async function(t, n, r, i, a, s) {
3763
+ let { startx: c, stopx: l, starty: u, message: f, type: p, sequenceIndex: m, sequenceVisible: h } = n, g = utils_default.calculateTextDimensions(f, messageFont(conf)), _ = getTextObj();
3764
+ _.x = Math.min(c, l), _.y = u + 10, _.width = Math.abs(l - c), _.class = "messageText", _.dy = "1em", _.text = f, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = false, hasKatex(_.text) ? await drawKatex(t, _, {
3765
+ startx: c,
3766
+ stopx: l,
3767
+ starty: r
3768
+ }) : drawText(t, _);
3769
+ let y = g.width, b;
3770
+ if (c === l) {
3771
+ let e = h || conf.showSequenceNumbers, o = isReverseArrowType(a, i), s2 = isBidirectionalArrowType(a, i), u2 = c + (e && (o || s2) ? 10 : 0);
3772
+ b = conf.rightAngles ? t.append("path").attr("d", `M ${u2},${r} H ${c + common_default.getMax(conf.width / 2, y / 2)} V ${r + 25} H ${c}`) : t.append("path").attr("d", "M " + u2 + "," + r + " C " + (u2 + 60) + "," + (r - 10) + " " + (c + 60) + "," + (r + 30) + " " + c + "," + (r + 20)), hasCentralConnection(a, i) && drawCentralConnection(t, a, n, i, c, l, r);
3773
+ } else b = t.append("line"), b.attr("x1", c), b.attr("y1", r), b.attr("x2", l), b.attr("y2", r), hasCentralConnection(a, i) && drawCentralConnection(t, a, n, i, c, l, r);
3774
+ p === i.db.LINETYPE.DOTTED || p === i.db.LINETYPE.DOTTED_CROSS || p === i.db.LINETYPE.DOTTED_POINT || p === i.db.LINETYPE.DOTTED_OPEN || p === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || p === i.db.LINETYPE.SOLID_TOP_DOTTED || p === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || p === i.db.LINETYPE.STICK_TOP_DOTTED || p === i.db.LINETYPE.STICK_BOTTOM_DOTTED || p === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || p === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || p === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || p === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (b.style("stroke-dasharray", "3, 3"), b.attr("class", "messageLine1")) : b.attr("class", "messageLine0"), b.attr("data-et", "message"), b.attr("data-id", "i" + n.id), b.attr("data-from", n.from), b.attr("data-to", n.to);
3775
+ let x = "";
3776
+ if (conf.arrowMarkerAbsolute && (x = getUrl(true)), b.attr("stroke-width", 2), b.attr("stroke", "none"), b.style("fill", "none"), (p === i.db.LINETYPE.SOLID_TOP || p === i.db.LINETYPE.SOLID_TOP_DOTTED) && b.attr("marker-end", "url(" + x + "#" + s + "-solidTopArrowHead)"), (p === i.db.LINETYPE.SOLID_BOTTOM || p === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && b.attr("marker-end", "url(" + x + "#" + s + "-solidBottomArrowHead)"), (p === i.db.LINETYPE.STICK_TOP || p === i.db.LINETYPE.STICK_TOP_DOTTED) && b.attr("marker-end", "url(" + x + "#" + s + "-stickTopArrowHead)"), (p === i.db.LINETYPE.STICK_BOTTOM || p === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && b.attr("marker-end", "url(" + x + "#" + s + "-stickBottomArrowHead)"), (p === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || p === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && b.attr("marker-start", "url(" + x + "#" + s + "-solidBottomArrowHead)"), (p === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || p === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && b.attr("marker-start", "url(" + x + "#" + s + "-solidTopArrowHead)"), (p === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || p === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && b.attr("marker-start", "url(" + x + "#" + s + "-stickBottomArrowHead)"), (p === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || p === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && b.attr("marker-start", "url(" + x + "#" + s + "-stickTopArrowHead)"), (p === i.db.LINETYPE.SOLID || p === i.db.LINETYPE.DOTTED) && b.attr("marker-end", "url(" + x + "#" + s + "-arrowhead)"), (p === i.db.LINETYPE.BIDIRECTIONAL_SOLID || p === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (b.attr("marker-start", "url(" + x + "#" + s + "-arrowhead)"), b.attr("marker-end", "url(" + x + "#" + s + "-arrowhead)")), (p === i.db.LINETYPE.SOLID_POINT || p === i.db.LINETYPE.DOTTED_POINT) && b.attr("marker-end", "url(" + x + "#" + s + "-filled-head)"), (p === i.db.LINETYPE.SOLID_CROSS || p === i.db.LINETYPE.DOTTED_CROSS) && b.attr("marker-end", "url(" + x + "#" + s + "-crosshead)"), h || conf.showSequenceNumbers) {
3777
+ let e = p === i.db.LINETYPE.BIDIRECTIONAL_SOLID || p === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, o = p === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || p === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || p === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || p === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || p === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || p === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || p === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || p === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u2 = hasCentralConnection(a, i), d = c, f2 = l;
3778
+ e ? (c < l ? d = c + 12 : (d = c - 6 + (u2 ? -5 : 0), d += (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), b.attr("x1", d)) : o ? (l > c ? f2 = l - 12 : (f2 = l - 6, d += (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (a == null ? void 0 : a.centralConnection) === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), f2 += u2 ? 15 : 0, b.attr("x2", f2), b.attr("x1", d)) : b.attr("x1", c + 6);
3779
+ let h2 = 0, g2 = c === l, _2 = c <= l;
3780
+ h2 = g2 ? n.fromBounds + 1 : o ? _2 ? n.toBounds - 1 : n.fromBounds + 1 : _2 ? n.fromBounds + 1 : n.toBounds - 1;
3781
+ let v = "12px", y2 = m.toString().length;
3782
+ y2 > 5 ? v = "7px" : y2 > 3 && (v = "9px"), t.append("line").attr("x1", h2).attr("y1", r).attr("x2", h2).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + x + "#" + s + "-sequencenumber)"), t.append("text").attr("x", h2).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
3783
+ }
3784
+ }, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
3785
+ let s = 0, c = 0, l, u = 0;
3786
+ for (let e2 of r) {
3787
+ let r2 = t.get(e2), a2 = r2.box;
3788
+ l && l != a2 && (o || bounds.models.addBox(l), c += conf.boxMargin + l.margin), a2 && a2 != l && (o || (a2.x = s + c, a2.y = i), c += a2.margin), r2.width = common_default.getMax(r2.width || conf.width, conf.width), r2.height = common_default.getMax(r2.height || conf.height, conf.height), r2.margin = r2.margin || conf.actorMargin, u = common_default.getMax(u, r2.height), n.get(r2.name) && (c += r2.width / 2), r2.x = s + c, r2.starty = bounds.getVerticalPos(), bounds.insert(r2.x, i, r2.x + r2.width, r2.height), s += r2.width + c, r2.box && (r2.box.width = s + a2.margin - r2.box.x), c = r2.margin, l = r2.box, bounds.models.addActor(r2);
3789
+ }
3790
+ l && !o && bounds.models.addBox(l), bounds.bumpVerticalPos(u);
3791
+ }, "addActorRenderingData"), drawActors = /* @__PURE__ */ __name(async function(e, t, n, r, i, a, o) {
3792
+ if (r) {
3793
+ let r2 = 0;
3794
+ bounds.bumpVerticalPos(conf.boxMargin * 2);
3795
+ for (let s of n) {
3796
+ let n2 = t.get(s);
3797
+ n2.stopy || (n2.stopy = bounds.getVerticalPos());
3798
+ let c = await svgDraw_default.drawActor(e, n2, conf, true, i, a, o);
3799
+ r2 = common_default.getMax(r2, c);
3800
+ }
3801
+ bounds.bumpVerticalPos(r2 + conf.boxMargin);
3802
+ } else for (let r2 of n) {
3803
+ let n2 = t.get(r2);
3804
+ await svgDraw_default.drawActor(e, n2, conf, false, i, a, o);
3805
+ }
3806
+ }, "drawActors"), drawActorsPopup = /* @__PURE__ */ __name(function(e, t, n, r) {
3807
+ let i = 0, a = 0;
3808
+ for (let o of n) {
3809
+ let n2 = t.get(o), s = getRequiredPopupWidth(n2), c = svgDraw_default.drawPopup(e, n2, s, conf, conf.forceMenus, r);
3810
+ c.height > i && (i = c.height), c.width + n2.x > a && (a = c.width + n2.x);
3811
+ }
3812
+ return {
3813
+ maxHeight: i,
3814
+ maxWidth: a
3815
+ };
3816
+ }, "drawActorsPopup"), setConf = /* @__PURE__ */ __name(function(e) {
3817
+ assignWithDepth_default(conf, e), e.fontFamily && (conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = e.fontFamily), e.fontSize && (conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = e.fontSize), e.fontWeight && (conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = e.fontWeight);
3818
+ }, "setConf"), actorActivations = /* @__PURE__ */ __name(function(e) {
3819
+ return bounds.activations.filter(function(t) {
3820
+ return t.actor === e;
3821
+ });
3822
+ }, "actorActivations"), activationBounds = /* @__PURE__ */ __name(function(e, t) {
3823
+ let n = t.get(e), r = actorActivations(e);
3824
+ return [r.reduce(function(e2, t2) {
3825
+ return common_default.getMin(e2, t2.startx);
3826
+ }, n.x + n.width / 2 - 1), r.reduce(function(e2, t2) {
3827
+ return common_default.getMax(e2, t2.stopx);
3828
+ }, n.x + n.width / 2 + 1)];
3829
+ }, "activationBounds");
3830
+ function adjustLoopHeightForWrap(t, n, i, a, o) {
3831
+ bounds.bumpVerticalPos(i);
3832
+ let s = a;
3833
+ if (n.id && n.message && t[n.id]) {
3834
+ let i2 = t[n.id].width, o2 = messageFont(conf);
3835
+ n.message = utils_default.wrapLabel(`[${n.message}]`, i2 - 2 * conf.wrapPadding, o2), n.width = i2, n.wrap = true;
3836
+ let c = utils_default.calculateTextDimensions(n.message, o2), l = common_default.getMax(c.height, conf.labelBoxHeight);
3837
+ s = a + l, log.debug(`${l} - ${n.message}`);
3838
+ }
3839
+ o(n), bounds.bumpVerticalPos(s);
3840
+ }
3841
+ __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3842
+ function adjustCreatedDestroyedData(e, t, n, r, i, o, s) {
3843
+ function c(n2, r2) {
3844
+ n2.x < i.get(e.from).x ? (bounds.insert(t.stopx - r2, t.starty, t.startx, t.stopy + n2.height / 2 + conf.noteMargin), t.stopx += r2) : (bounds.insert(t.startx, t.starty, t.stopx + r2, t.stopy + n2.height / 2 + conf.noteMargin), t.stopx -= r2);
3845
+ }
3846
+ __name(c, "receiverAdjustment");
3847
+ function l(n2, r2) {
3848
+ n2.x < i.get(e.to).x ? (bounds.insert(t.startx - r2, t.starty, t.stopx, t.stopy + n2.height / 2 + conf.noteMargin), t.startx += r2) : (bounds.insert(t.stopx, t.starty, t.startx + r2, t.stopy + n2.height / 2 + conf.noteMargin), t.startx -= r2);
3849
+ }
3850
+ __name(l, "senderAdjustment");
3851
+ let u = [
3852
+ PARTICIPANT_TYPE.ACTOR,
3853
+ PARTICIPANT_TYPE.CONTROL,
3854
+ PARTICIPANT_TYPE.ENTITY,
3855
+ PARTICIPANT_TYPE.DATABASE
3856
+ ];
3857
+ if (o.get(e.to) == r) {
3858
+ let t2 = i.get(e.to);
3859
+ c(t2, u.includes(t2.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : t2.width / 2 + 3), t2.starty = n - t2.height / 2, bounds.bumpVerticalPos(t2.height / 2);
3860
+ } else if (s.get(e.from) == r) {
3861
+ let t2 = i.get(e.from);
3862
+ conf.mirrorActors && l(t2, u.includes(t2.type) ? ACTOR_TYPE_WIDTH / 2 : t2.width / 2), t2.stopy = n - t2.height / 2, bounds.bumpVerticalPos(t2.height / 2);
3863
+ } else if (s.get(e.to) == r) {
3864
+ let t2 = i.get(e.to);
3865
+ conf.mirrorActors && c(t2, u.includes(t2.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : t2.width / 2 + 3), t2.stopy = n - t2.height / 2, bounds.bumpVerticalPos(t2.height / 2);
3866
+ }
3867
+ }
3868
+ __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3869
+ var draw = /* @__PURE__ */ __name(async function(e, t, n, o) {
3870
+ let { securityLevel: s, sequence: c, look: l, themeVariables: u } = getConfig2();
3871
+ conf = c;
3872
+ let d;
3873
+ s === "sandbox" && (d = select_default("#i" + t));
3874
+ let f = select_default(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? d.nodes()[0].contentDocument : document;
3875
+ bounds.init(), log.debug(o.db);
3876
+ let m = s === "sandbox" ? f.select(`[id="${t}"]`) : select_default(`[id="${t}"]`), g = o.db.getActors(), _ = o.db.getCreatedActors(), v = o.db.getDestroyedActors(), y = o.db.getBoxes(), b = o.db.getActorKeys(), S = o.db.getMessages(), C = o.db.getDiagramTitle(), w = o.db.hasAtLeastOneBox(), T = o.db.hasAtLeastOneBoxWithTitle(), E = await getMaxMessageWidthPerActor(g, S, o);
3877
+ if (conf.height = await calculateActorMargins(g, E, y), svgDraw_default.insertComputerIcon(m, t), svgDraw_default.insertDatabaseIcon(m, t), svgDraw_default.insertClockIcon(m, t), w && (bounds.bumpVerticalPos(conf.boxMargin), T && bounds.bumpVerticalPos(y[0].textMaxHeight)), conf.hideUnusedParticipants === true) {
3878
+ let e2 = /* @__PURE__ */ new Set();
3879
+ S.forEach((t2) => {
3880
+ e2.add(t2.from), e2.add(t2.to);
3881
+ }), b = b.filter((t2) => e2.has(t2));
3882
+ }
3883
+ let D = new Map(b.map((e2, t2) => {
3884
+ var _a2;
3885
+ return [((_a2 = g.get(e2)) == null ? void 0 : _a2.name) ?? e2, t2];
3886
+ }));
3887
+ addActorRenderingData(m, g, _, b, 0, S, false);
3888
+ let O = await calculateLoopBounds(S, g, E, o);
3889
+ svgDraw_default.insertArrowHead(m, t), svgDraw_default.insertArrowCrossHead(m, t), svgDraw_default.insertArrowFilledHead(m, t), svgDraw_default.insertSequenceNumber(m, t), svgDraw_default.insertSolidTopArrowHead(m, t), svgDraw_default.insertSolidBottomArrowHead(m, t), svgDraw_default.insertStickTopArrowHead(m, t), svgDraw_default.insertStickBottomArrowHead(m, t), l === "neo" && svgDraw_default.insertDropShadow(m, conf);
3890
+ function k(e2, t2) {
3891
+ let n2 = bounds.endActivation(e2);
3892
+ n2.starty + 18 > t2 && (n2.starty = t2 - 6, t2 += 12), svgDraw_default.drawActivation(m, n2, t2, conf, actorActivations(e2.from).length, o, D), bounds.insert(n2.startx, t2 - 10, n2.stopx, t2);
3893
+ }
3894
+ __name(k, "activeEnd");
3895
+ let A = 1, j = 1, M = [], N = [], P = 0;
3896
+ for (let e2 of S) {
3897
+ let t2, n2, i;
3898
+ switch (e2.type) {
3899
+ case o.db.LINETYPE.NOTE:
3900
+ bounds.resetVerticalPos(), n2 = e2.noteModel, await drawNote(m, n2, e2.id);
3901
+ break;
3902
+ case o.db.LINETYPE.ACTIVE_START:
3903
+ bounds.newActivation(e2, m, g);
3904
+ break;
3905
+ case o.db.LINETYPE.CENTRAL_CONNECTION:
3906
+ bounds.newActivation(e2, m, g);
3907
+ break;
3908
+ case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3909
+ bounds.newActivation(e2, m, g);
3910
+ break;
3911
+ case o.db.LINETYPE.ACTIVE_END:
3912
+ k(e2, bounds.getVerticalPos());
3913
+ break;
3914
+ case o.db.LINETYPE.LOOP_START:
3915
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e3) => bounds.newLoop(e3));
3916
+ break;
3917
+ case o.db.LINETYPE.LOOP_END:
3918
+ t2 = bounds.endLoop(), await svgDraw_default.drawLoop(m, t2, "loop", conf, e2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos()), bounds.models.addLoop(t2);
3919
+ break;
3920
+ case o.db.LINETYPE.RECT_START:
3921
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin, (e3) => {
3922
+ let t3 = e3.message;
3923
+ t3 || (t3 = (u == null ? void 0 : u.rectBkgColor) || (u == null ? void 0 : u.actorBkg) || "rgba(128, 128, 128, 0.5)"), bounds.newLoop(void 0, t3);
3924
+ });
3925
+ break;
3926
+ case o.db.LINETYPE.RECT_END:
3927
+ t2 = bounds.endLoop(), N.push(t2), bounds.models.addLoop(t2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos());
3928
+ break;
3929
+ case o.db.LINETYPE.OPT_START:
3930
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e3) => bounds.newLoop(e3));
3931
+ break;
3932
+ case o.db.LINETYPE.OPT_END:
3933
+ t2 = bounds.endLoop(), await svgDraw_default.drawLoop(m, t2, "opt", conf, e2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos()), bounds.models.addLoop(t2);
3934
+ break;
3935
+ case o.db.LINETYPE.ALT_START:
3936
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e3) => bounds.newLoop(e3));
3937
+ break;
3938
+ case o.db.LINETYPE.ALT_ELSE:
3939
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e3) => bounds.addSectionToLoop(e3));
3940
+ break;
3941
+ case o.db.LINETYPE.ALT_END:
3942
+ t2 = bounds.endLoop(), await svgDraw_default.drawLoop(m, t2, "alt", conf, e2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos()), bounds.models.addLoop(t2);
3943
+ break;
3944
+ case o.db.LINETYPE.PAR_START:
3945
+ case o.db.LINETYPE.PAR_OVER_START:
3946
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e3) => bounds.newLoop(e3)), bounds.saveVerticalPos();
3947
+ break;
3948
+ case o.db.LINETYPE.PAR_AND:
3949
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e3) => bounds.addSectionToLoop(e3));
3950
+ break;
3951
+ case o.db.LINETYPE.PAR_END:
3952
+ t2 = bounds.endLoop(), await svgDraw_default.drawLoop(m, t2, "par", conf, e2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos()), bounds.models.addLoop(t2);
3953
+ break;
3954
+ case o.db.LINETYPE.AUTONUMBER:
3955
+ A = e2.message.start || A, j = e2.message.step || j, e2.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3956
+ break;
3957
+ case o.db.LINETYPE.CRITICAL_START:
3958
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e3) => bounds.newLoop(e3));
3959
+ break;
3960
+ case o.db.LINETYPE.CRITICAL_OPTION:
3961
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e3) => bounds.addSectionToLoop(e3));
3962
+ break;
3963
+ case o.db.LINETYPE.CRITICAL_END:
3964
+ t2 = bounds.endLoop(), await svgDraw_default.drawLoop(m, t2, "critical", conf, e2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos()), bounds.models.addLoop(t2);
3965
+ break;
3966
+ case o.db.LINETYPE.BREAK_START:
3967
+ adjustLoopHeightForWrap(O, e2, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e3) => bounds.newLoop(e3));
3968
+ break;
3969
+ case o.db.LINETYPE.BREAK_END:
3970
+ t2 = bounds.endLoop(), await svgDraw_default.drawLoop(m, t2, "break", conf, e2), bounds.bumpVerticalPos(t2.stopy - bounds.getVerticalPos()), bounds.models.addLoop(t2);
3971
+ break;
3972
+ default:
3973
+ try {
3974
+ i = e2.msgModel, i.starty = bounds.getVerticalPos(), i.sequenceIndex = A, i.sequenceVisible = o.db.showSequenceNumbers(), i.id = e2.id, i.from = e2.from, i.to = e2.to;
3975
+ let t3 = await boundMessage(m, i);
3976
+ adjustCreatedDestroyedData(e2, i, t3, P, g, _, v), M.push({
3977
+ messageModel: i,
3978
+ lineStartY: t3,
3979
+ msg: e2
3980
+ }), bounds.models.addMessage(i);
3981
+ } catch (e3) {
3982
+ log.error("error while drawing message", e3);
3983
+ }
3984
+ }
3985
+ [
3986
+ o.db.LINETYPE.SOLID_OPEN,
3987
+ o.db.LINETYPE.DOTTED_OPEN,
3988
+ o.db.LINETYPE.SOLID,
3989
+ o.db.LINETYPE.SOLID_TOP,
3990
+ o.db.LINETYPE.SOLID_BOTTOM,
3991
+ o.db.LINETYPE.STICK_TOP,
3992
+ o.db.LINETYPE.STICK_BOTTOM,
3993
+ o.db.LINETYPE.SOLID_TOP_DOTTED,
3994
+ o.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3995
+ o.db.LINETYPE.STICK_TOP_DOTTED,
3996
+ o.db.LINETYPE.STICK_BOTTOM_DOTTED,
3997
+ o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3998
+ o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3999
+ o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4000
+ o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4001
+ o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4002
+ o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4003
+ o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4004
+ o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4005
+ o.db.LINETYPE.DOTTED,
4006
+ o.db.LINETYPE.SOLID_CROSS,
4007
+ o.db.LINETYPE.DOTTED_CROSS,
4008
+ o.db.LINETYPE.SOLID_POINT,
4009
+ o.db.LINETYPE.DOTTED_POINT,
4010
+ o.db.LINETYPE.BIDIRECTIONAL_SOLID,
4011
+ o.db.LINETYPE.BIDIRECTIONAL_DOTTED
4012
+ ].includes(e2.type) && (A = Math.round((A + j) * 100) / 100), P++;
4013
+ }
4014
+ log.debug("createdActors", _), log.debug("destroyedActors", v), await drawActors(m, g, b, false, t, o, D);
4015
+ for (let e2 of M) await drawMessage(m, e2.messageModel, e2.lineStartY, o, e2.msg, t);
4016
+ conf.mirrorActors && await drawActors(m, g, b, true, t, o, D), N.forEach((e2) => svgDraw_default.drawBackgroundRect(m, e2)), fixLifeLineHeights(m, g, b, conf);
4017
+ for (let e2 of bounds.models.boxes) {
4018
+ e2.height = bounds.getVerticalPos() - e2.y, bounds.insert(e2.x, e2.y, e2.x + e2.width, e2.height);
4019
+ let t2 = conf.boxMargin * 2;
4020
+ e2.startx = e2.x - t2, e2.starty = e2.y - t2 * 0.25, e2.stopx = e2.startx + e2.width + 2 * t2, e2.stopy = e2.starty + e2.height + t2 * 0.75, e2.stroke = "rgb(0,0,0, 0.5)", svgDraw_default.drawBox(m, e2, conf);
4021
+ }
4022
+ w && bounds.bumpVerticalPos(conf.boxMargin);
4023
+ let F = drawActorsPopup(m, g, b, p), { bounds: I } = bounds.getBounds();
4024
+ I.startx === void 0 && (I.startx = 0), I.starty === void 0 && (I.starty = 0), I.stopx === void 0 && (I.stopx = 0), I.stopy === void 0 && (I.stopy = 0);
4025
+ let L = I.stopy - I.starty;
4026
+ L < F.maxHeight && (L = F.maxHeight);
4027
+ let R = L + 2 * conf.diagramMarginY;
4028
+ conf.mirrorActors && (R = R - conf.boxMargin + conf.bottomMarginAdj);
4029
+ let z = I.stopx - I.startx;
4030
+ z < F.maxWidth && (z = F.maxWidth);
4031
+ let B = z + 2 * conf.diagramMarginX;
4032
+ C && m.append("text").text(C).attr("x", (I.stopx - I.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25), configureSvgSize(m, R, B, conf.useMaxWidth);
4033
+ let V = C ? 40 : 0, H = g.size && l === "neo" ? 30 : 0;
4034
+ m.attr("viewBox", I.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + V) + " " + B + " " + (R + V + H)), log.debug("models:", bounds.models);
4035
+ }, "draw");
4036
+ async function getMaxMessageWidthPerActor(t, n, i) {
4037
+ let a = {};
4038
+ for (let r of n) if (t.get(r.to) && t.get(r.from)) {
4039
+ let n2 = t.get(r.to);
4040
+ if (r.placement === i.db.PLACEMENT.LEFTOF && !n2.prevActor || r.placement === i.db.PLACEMENT.RIGHTOF && !n2.nextActor) continue;
4041
+ let s = r.placement !== void 0, c = !s, l = s ? noteFont(conf) : messageFont(conf), u = r.wrap ? utils_default.wrapLabel(r.message, conf.width - 2 * conf.wrapPadding, l) : r.message, d = (hasKatex(u) ? await calculateMathMLDimensions(r.message, getConfig2()) : utils_default.calculateTextDimensions(u, l)).width + 2 * conf.wrapPadding;
4042
+ c && r.from === n2.nextActor ? a[r.to] = common_default.getMax(a[r.to] || 0, d) : c && r.from === n2.prevActor ? a[r.from] = common_default.getMax(a[r.from] || 0, d) : c && r.from === r.to ? (a[r.from] = common_default.getMax(a[r.from] || 0, d / 2), a[r.to] = common_default.getMax(a[r.to] || 0, d / 2)) : r.placement === i.db.PLACEMENT.RIGHTOF ? a[r.from] = common_default.getMax(a[r.from] || 0, d) : r.placement === i.db.PLACEMENT.LEFTOF ? a[n2.prevActor] = common_default.getMax(a[n2.prevActor] || 0, d) : r.placement === i.db.PLACEMENT.OVER && (n2.prevActor && (a[n2.prevActor] = common_default.getMax(a[n2.prevActor] || 0, d / 2)), n2.nextActor && (a[r.from] = common_default.getMax(a[r.from] || 0, d / 2)));
4043
+ }
4044
+ return log.debug("maxMessageWidthPerActor:", a), a;
4045
+ }
4046
+ __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
4047
+ var getRequiredPopupWidth = /* @__PURE__ */ __name(function(t) {
4048
+ let n = 0, r = actorFont(conf);
4049
+ for (let i in t.links) {
4050
+ let t2 = utils_default.calculateTextDimensions(i, r).width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
4051
+ n < t2 && (n = t2);
4052
+ }
4053
+ return n;
4054
+ }, "getRequiredPopupWidth");
4055
+ async function calculateActorMargins(t, n, r) {
4056
+ let i = 0;
4057
+ for (let n2 of t.keys()) {
4058
+ let r2 = t.get(n2);
4059
+ r2.wrap && (r2.description = utils_default.wrapLabel(r2.description, conf.width - 2 * conf.wrapPadding, actorFont(conf)));
4060
+ let a2 = hasKatex(r2.description) ? await calculateMathMLDimensions(r2.description, getConfig2()) : utils_default.calculateTextDimensions(r2.description, actorFont(conf));
4061
+ r2.width = r2.wrap ? conf.width : common_default.getMax(conf.width, a2.width + 2 * conf.wrapPadding), r2.height = r2.wrap ? common_default.getMax(a2.height, conf.height) : conf.height, i = common_default.getMax(i, r2.height);
4062
+ }
4063
+ for (let e in n) {
4064
+ let r2 = t.get(e);
4065
+ if (!r2) continue;
4066
+ let i2 = t.get(r2.nextActor);
4067
+ if (!i2) {
4068
+ let t2 = n[e] + conf.actorMargin - r2.width / 2;
4069
+ r2.margin = common_default.getMax(t2, conf.actorMargin);
4070
+ continue;
4071
+ }
4072
+ let a2 = n[e] + conf.actorMargin - r2.width / 2 - i2.width / 2;
4073
+ r2.margin = common_default.getMax(a2, conf.actorMargin);
4074
+ }
4075
+ let a = 0;
4076
+ return r.forEach((n2) => {
4077
+ let r2 = messageFont(conf), i2 = n2.actorKeys.reduce((e, n3) => e += t.get(n3).width + (t.get(n3).margin || 0), 0), o = conf.boxMargin * 8;
4078
+ i2 += o, i2 -= 2 * conf.boxTextMargin, n2.wrap && (n2.name = utils_default.wrapLabel(n2.name, i2 - 2 * conf.wrapPadding, r2));
4079
+ let s = utils_default.calculateTextDimensions(n2.name, r2);
4080
+ a = common_default.getMax(s.height, a);
4081
+ let c = common_default.getMax(i2, s.width + 2 * conf.wrapPadding);
4082
+ if (n2.margin = conf.boxTextMargin, i2 < c) {
4083
+ let e = (c - i2) / 2;
4084
+ n2.margin += e;
4085
+ }
4086
+ }), r.forEach((e) => e.textMaxHeight = a), common_default.getMax(i, conf.height);
4087
+ }
4088
+ __name(calculateActorMargins, "calculateActorMargins");
4089
+ var buildNoteModel = /* @__PURE__ */ __name(async function(t, n, i) {
4090
+ let a = n.get(t.from), s = n.get(t.to), c = a.x, l = s.x, u = t.wrap && t.message, d = hasKatex(t.message) ? await calculateMathMLDimensions(t.message, getConfig2()) : utils_default.calculateTextDimensions(u ? utils_default.wrapLabel(t.message, conf.width, noteFont(conf)) : t.message, noteFont(conf)), f = {
4091
+ width: u ? conf.width : common_default.getMax(conf.width, d.width + 2 * conf.noteMargin),
4092
+ height: 0,
4093
+ startx: a.x,
4094
+ stopx: 0,
4095
+ starty: 0,
4096
+ stopy: 0,
4097
+ message: t.message
4098
+ };
4099
+ return t.placement === i.db.PLACEMENT.RIGHTOF ? (f.width = u ? common_default.getMax(conf.width, d.width) : common_default.getMax(a.width / 2 + s.width / 2, d.width + 2 * conf.noteMargin), f.startx = c + (a.width + conf.actorMargin) / 2) : t.placement === i.db.PLACEMENT.LEFTOF ? (f.width = u ? common_default.getMax(conf.width, d.width + 2 * conf.noteMargin) : common_default.getMax(a.width / 2 + s.width / 2, d.width + 2 * conf.noteMargin), f.startx = c - f.width + (a.width - conf.actorMargin) / 2) : t.to === t.from ? (d = utils_default.calculateTextDimensions(u ? utils_default.wrapLabel(t.message, common_default.getMax(conf.width, a.width), noteFont(conf)) : t.message, noteFont(conf)), f.width = u ? common_default.getMax(conf.width, a.width) : common_default.getMax(a.width, conf.width, d.width + 2 * conf.noteMargin), f.startx = c + (a.width - f.width) / 2) : (f.width = Math.abs(c + a.width / 2 - (l + s.width / 2)) + conf.actorMargin, f.startx = c < l ? c + a.width / 2 - conf.actorMargin / 2 : l + s.width / 2 - conf.actorMargin / 2), u && (f.message = utils_default.wrapLabel(t.message, f.width - 2 * conf.wrapPadding, noteFont(conf))), log.debug(`NM:[${f.startx},${f.stopx},${f.starty},${f.stopy}:${f.width},${f.height}=${t.message}]`), f;
4100
+ }, "buildNoteModel"), CENTRAL_CONNECTION_BASE_OFFSET = 4, CENTRAL_CONNECTION_BIDIRECTIONAL_OFFSET = 6, hasCentralConnection = /* @__PURE__ */ __name(function(e, t) {
4101
+ let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
4102
+ return [
4103
+ n,
4104
+ r,
4105
+ i
4106
+ ].includes(e.centralConnection);
4107
+ }, "hasCentralConnection"), calculateCentralConnectionOffset = /* @__PURE__ */ __name(function(e, t, n) {
4108
+ let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
4109
+ return (e.centralConnection === r || e.centralConnection === i) && (s += CENTRAL_CONNECTION_BASE_OFFSET), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -CENTRAL_CONNECTION_BIDIRECTIONAL_OFFSET), s;
4110
+ }, "calculateCentralConnectionOffset"), isReverseArrowType = /* @__PURE__ */ __name(function(e, t) {
4111
+ let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
4112
+ return [
4113
+ n,
4114
+ r,
4115
+ i,
4116
+ a,
4117
+ o,
4118
+ s,
4119
+ c,
4120
+ l
4121
+ ].includes(e.type);
4122
+ }, "isReverseArrowType"), isBidirectionalArrowType = /* @__PURE__ */ __name(function(e, t) {
4123
+ let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4124
+ return [n, r].includes(e.type);
4125
+ }, "isBidirectionalArrowType"), buildMessageModel = /* @__PURE__ */ __name(function(t, n, r) {
4126
+ let { look: i } = getConfig2();
4127
+ if (![
4128
+ r.db.LINETYPE.SOLID_OPEN,
4129
+ r.db.LINETYPE.DOTTED_OPEN,
4130
+ r.db.LINETYPE.SOLID,
4131
+ r.db.LINETYPE.SOLID_TOP,
4132
+ r.db.LINETYPE.SOLID_BOTTOM,
4133
+ r.db.LINETYPE.STICK_TOP,
4134
+ r.db.LINETYPE.STICK_BOTTOM,
4135
+ r.db.LINETYPE.SOLID_TOP_DOTTED,
4136
+ r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4137
+ r.db.LINETYPE.STICK_TOP_DOTTED,
4138
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4139
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4140
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4141
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4142
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4143
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4144
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4145
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4146
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4147
+ r.db.LINETYPE.DOTTED,
4148
+ r.db.LINETYPE.SOLID_CROSS,
4149
+ r.db.LINETYPE.DOTTED_CROSS,
4150
+ r.db.LINETYPE.SOLID_POINT,
4151
+ r.db.LINETYPE.DOTTED_POINT,
4152
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4153
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4154
+ ].includes(t.type)) return {};
4155
+ let [o, s] = activationBounds(t.from, n), [c, l] = activationBounds(t.to, n), u = o <= c, d = u ? s : o, f = u ? c : l;
4156
+ i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (f += u ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (d += u ? 3 : -3)), d += calculateCentralConnectionOffset(t, r, u);
4157
+ let p = Math.abs(c - l) > 2, m = /* @__PURE__ */ __name((e) => u ? -e : e, "adjustValue");
4158
+ t.from === t.to ? f = d : (t.activate && !p && (f += m(conf.activationWidth / 2 - 1)), [
4159
+ r.db.LINETYPE.SOLID_OPEN,
4160
+ r.db.LINETYPE.DOTTED_OPEN,
4161
+ r.db.LINETYPE.STICK_TOP,
4162
+ r.db.LINETYPE.STICK_BOTTOM,
4163
+ r.db.LINETYPE.STICK_TOP_DOTTED,
4164
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4165
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4166
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4167
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4168
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4169
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4170
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4171
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4172
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4173
+ ].includes(t.type) || (f += m(3)), [
4174
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4175
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4176
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4177
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4178
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4179
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4180
+ ].includes(t.type) && (d -= m(3)));
4181
+ let h = [
4182
+ o,
4183
+ s,
4184
+ c,
4185
+ l
4186
+ ], g = Math.abs(d - f);
4187
+ t.wrap && t.message && (t.message = utils_default.wrapLabel(t.message, common_default.getMax(g + 2 * conf.wrapPadding, conf.width), messageFont(conf)));
4188
+ let _ = utils_default.calculateTextDimensions(t.message, messageFont(conf));
4189
+ return {
4190
+ width: common_default.getMax(t.wrap ? 0 : _.width + 2 * conf.wrapPadding, g + 2 * conf.wrapPadding, conf.width),
4191
+ height: 0,
4192
+ startx: d,
4193
+ stopx: f,
4194
+ starty: 0,
4195
+ stopy: 0,
4196
+ message: t.message,
4197
+ type: t.type,
4198
+ wrap: t.wrap,
4199
+ fromBounds: Math.min.apply(null, h),
4200
+ toBounds: Math.max.apply(null, h)
4201
+ };
4202
+ }, "buildMessageModel"), calculateLoopBounds = /* @__PURE__ */ __name(async function(e, t, n, i) {
4203
+ let a = {}, o = [], s, c, l;
4204
+ for (let n2 of e) {
4205
+ switch (n2.type) {
4206
+ case i.db.LINETYPE.LOOP_START:
4207
+ case i.db.LINETYPE.ALT_START:
4208
+ case i.db.LINETYPE.OPT_START:
4209
+ case i.db.LINETYPE.PAR_START:
4210
+ case i.db.LINETYPE.PAR_OVER_START:
4211
+ case i.db.LINETYPE.CRITICAL_START:
4212
+ case i.db.LINETYPE.BREAK_START:
4213
+ o.push({
4214
+ id: n2.id,
4215
+ msg: n2.message,
4216
+ from: 2 ** 53 - 1,
4217
+ to: -(2 ** 53 - 1),
4218
+ width: 0
4219
+ });
4220
+ break;
4221
+ case i.db.LINETYPE.ALT_ELSE:
4222
+ case i.db.LINETYPE.PAR_AND:
4223
+ case i.db.LINETYPE.CRITICAL_OPTION:
4224
+ n2.message && (s = o.pop(), a[s.id] = s, a[n2.id] = s, o.push(s));
4225
+ break;
4226
+ case i.db.LINETYPE.LOOP_END:
4227
+ case i.db.LINETYPE.ALT_END:
4228
+ case i.db.LINETYPE.OPT_END:
4229
+ case i.db.LINETYPE.PAR_END:
4230
+ case i.db.LINETYPE.CRITICAL_END:
4231
+ case i.db.LINETYPE.BREAK_END:
4232
+ s = o.pop(), a[s.id] = s;
4233
+ break;
4234
+ case i.db.LINETYPE.ACTIVE_START:
4235
+ {
4236
+ let e2 = t.get(n2.from ? n2.from : n2.to.actor), r = actorActivations(n2.from ? n2.from : n2.to.actor).length, i2 = e2.x + e2.width / 2 + (r - 1) * conf.activationWidth / 2, a2 = {
4237
+ startx: i2,
4238
+ stopx: i2 + conf.activationWidth,
4239
+ actor: n2.from,
4240
+ enabled: true
4241
+ };
4242
+ bounds.activations.push(a2);
4243
+ }
4244
+ break;
4245
+ case i.db.LINETYPE.ACTIVE_END:
4246
+ {
4247
+ let e2 = bounds.activations.map((e3) => e3.actor).lastIndexOf(n2.from);
4248
+ bounds.activations.splice(e2, 1).splice(0, 1);
4249
+ }
4250
+ break;
4251
+ }
4252
+ n2.placement === void 0 ? (l = buildMessageModel(n2, t, i), n2.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e2) => {
4253
+ if (s = e2, l.startx === l.stopx) {
4254
+ let e3 = t.get(n2.from), r = t.get(n2.to);
4255
+ s.from = common_default.getMin(e3.x - l.width / 2, e3.x - e3.width / 2, s.from), s.to = common_default.getMax(r.x + l.width / 2, r.x + e3.width / 2, s.to), s.width = common_default.getMax(s.width, Math.abs(s.to - s.from)) - conf.labelBoxWidth;
4256
+ } else s.from = common_default.getMin(l.startx, s.from), s.to = common_default.getMax(l.stopx, s.to), s.width = common_default.getMax(s.width, l.width) - conf.labelBoxWidth;
4257
+ })) : (c = await buildNoteModel(n2, t, i), n2.noteModel = c, o.forEach((e2) => {
4258
+ s = e2, s.from = common_default.getMin(s.from, c.startx), s.to = common_default.getMax(s.to, c.startx + c.width), s.width = common_default.getMax(s.width, Math.abs(s.from - s.to)) - conf.labelBoxWidth;
4259
+ }));
4260
+ }
4261
+ return bounds.activations = [], log.debug("Loop type widths:", a), a;
4262
+ }, "calculateLoopBounds"), diagram = {
4263
+ parser: sequenceDiagram_default,
4264
+ get db() {
4265
+ return new SequenceDB();
4266
+ },
4267
+ renderer: {
4268
+ bounds,
4269
+ drawActors,
4270
+ drawActorsPopup,
4271
+ setConf,
4272
+ draw
4273
+ },
4274
+ styles: styles_default,
4275
+ init: /* @__PURE__ */ __name((e) => {
4276
+ e.sequence || (e.sequence = {}), e.wrap && (e.sequence.wrap = e.wrap, setConfig2({ sequence: { wrap: e.wrap } }));
4277
+ }, "init")
4278
+ };
4279
+ export {
4280
+ diagram
4281
+ };