@countermeasure-platform/web-components 1.2.1 → 1.2.2-dev.8.1

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 (313) hide show
  1. package/dist/{arc-jVbrWVYZ.js → arc-DOJ9myHo.js} +21 -21
  2. package/dist/{arc-jVbrWVYZ.js.map → arc-DOJ9myHo.js.map} +1 -1
  3. package/dist/architecture-7EHR7CIX-RjIwnEbG.js +3 -0
  4. package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js → architectureDiagram-3BPJPVTR-cYFnhp15.js} +165 -152
  5. package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js.map → architectureDiagram-3BPJPVTR-cYFnhp15.js.map} +1 -1
  6. package/dist/{array-DXadUs1s.js → array-BLp0zq5K.js} +1 -1
  7. package/dist/{array-DXadUs1s.js.map → array-BLp0zq5K.js.map} +1 -1
  8. package/dist/{blockDiagram-WCTKOSBZ-BH3jwWeU.js → blockDiagram-GPEHLZMM-DNLPMFXL.js} +994 -864
  9. package/dist/blockDiagram-GPEHLZMM-DNLPMFXL.js.map +1 -0
  10. package/dist/{c4Diagram-IC4MRINW-OFLrunYI.js → c4Diagram-AAUBKEIU-G8g3OBBg.js} +232 -235
  11. package/dist/c4Diagram-AAUBKEIU-G8g3OBBg.js.map +1 -0
  12. package/dist/channel-MTYqUJFm.js +7 -0
  13. package/dist/{channel-LRbq43st.js.map → channel-MTYqUJFm.js.map} +1 -1
  14. package/dist/{chunk-KX2RTZJC-d9jFqUAY.js → chunk-2J33WTMH-BKsVIUnb.js} +4 -4
  15. package/dist/{chunk-KX2RTZJC-d9jFqUAY.js.map → chunk-2J33WTMH-BKsVIUnb.js.map} +1 -1
  16. package/dist/chunk-3OPIFGDE-CcNRL44h.js +3669 -0
  17. package/dist/chunk-3OPIFGDE-CcNRL44h.js.map +1 -0
  18. package/dist/{chunk-4BX2VUAB-BS9gpN-y.js → chunk-4BX2VUAB-BeLKo9Pn.js} +2 -2
  19. package/dist/{chunk-4BX2VUAB-BS9gpN-y.js.map → chunk-4BX2VUAB-BeLKo9Pn.js.map} +1 -1
  20. package/dist/{chunk-R5LLSJPH-c1IfaK5D.js → chunk-4EGX6M5U-Bh9as06l.js} +13 -13
  21. package/dist/chunk-4EGX6M5U-Bh9as06l.js.map +1 -0
  22. package/dist/{chunk-55IACEB6-DZ-UBhHX.js → chunk-55IACEB6-CuKbiO89.js} +3 -3
  23. package/dist/{chunk-55IACEB6-DZ-UBhHX.js.map → chunk-55IACEB6-CuKbiO89.js.map} +1 -1
  24. package/dist/chunk-5DO6E6H7-CAB8pWf5.js +25 -0
  25. package/dist/chunk-5DO6E6H7-CAB8pWf5.js.map +1 -0
  26. package/dist/{chunk-GEFDOKGD-DGJJEGSm.js → chunk-5ZQYHXKU-CjOcwRY6.js} +570 -326
  27. package/dist/chunk-5ZQYHXKU-CjOcwRY6.js.map +1 -0
  28. package/dist/{chunk-WL4C6EOR-BV-op7zg.js → chunk-727SXJPM-kowsFLrz.js} +724 -569
  29. package/dist/chunk-727SXJPM-kowsFLrz.js.map +1 -0
  30. package/dist/{chunk-NQ4KR5QH-C0nWShNk.js → chunk-AQP2D5EJ-Bc1gUIeA.js} +384 -362
  31. package/dist/chunk-AQP2D5EJ-Bc1gUIeA.js.map +1 -0
  32. package/dist/{chunk-OZEHJAEY-BsQ56PV-.js → chunk-BR22UD5L-BCFxmd5-.js} +16 -16
  33. package/dist/chunk-BR22UD5L-BCFxmd5-.js.map +1 -0
  34. package/dist/{chunk-MX3YWQON-D43mcq1f.js → chunk-BSJP7CBP-Bl94i3-1.js} +7 -5
  35. package/dist/chunk-BSJP7CBP-Bl94i3-1.js.map +1 -0
  36. package/dist/chunk-CSCIHK7Q-DyRIc27i.js +2868 -0
  37. package/dist/chunk-CSCIHK7Q-DyRIc27i.js.map +1 -0
  38. package/dist/chunk-FHYWG6QK-kLWdRarG.js +25 -0
  39. package/dist/chunk-FHYWG6QK-kLWdRarG.js.map +1 -0
  40. package/dist/{chunk-FMBD7UC4-1IxrpdPX.js → chunk-FMBD7UC4-IdpWVRCU.js} +2 -2
  41. package/dist/{chunk-FMBD7UC4-1IxrpdPX.js.map → chunk-FMBD7UC4-IdpWVRCU.js.map} +1 -1
  42. package/dist/chunk-KSCS5N6A-CVcDS9QV.js +563 -0
  43. package/dist/chunk-KSCS5N6A-CVcDS9QV.js.map +1 -0
  44. package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js → chunk-L5ZTLDWV-Day0EgsR.js} +9 -9
  45. package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js.map → chunk-L5ZTLDWV-Day0EgsR.js.map} +1 -1
  46. package/dist/chunk-LZXEDZCA-BO_GpQSR.js +51 -0
  47. package/dist/chunk-LZXEDZCA-BO_GpQSR.js.map +1 -0
  48. package/dist/chunk-MPE355IW-BkN6MrMO.js +25 -0
  49. package/dist/chunk-MPE355IW-BkN6MrMO.js.map +1 -0
  50. package/dist/chunk-MZUSXYTE-94iWO-dh.js +32 -0
  51. package/dist/chunk-MZUSXYTE-94iWO-dh.js.map +1 -0
  52. package/dist/chunk-N66VUXT2-QbIUkiJZ.js +56 -0
  53. package/dist/chunk-N66VUXT2-QbIUkiJZ.js.map +1 -0
  54. package/dist/{chunk-JSJVCQXG-Do17yYig.js → chunk-ND2GUHAM-Boh7GenS.js} +6 -6
  55. package/dist/{chunk-JSJVCQXG-Do17yYig.js.map → chunk-ND2GUHAM-Boh7GenS.js.map} +1 -1
  56. package/dist/chunk-NNHCCRGN-CNU0zvRn.js +20603 -0
  57. package/dist/chunk-NNHCCRGN-CNU0zvRn.js.map +1 -0
  58. package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js → chunk-NZK2D7GU-D4Ird7wv.js} +4 -4
  59. package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js.map → chunk-NZK2D7GU-D4Ird7wv.js.map} +1 -1
  60. package/dist/{chunk-PU5JKC2W-DNpn_Yik.js → chunk-O5CBEL6O-DThtyjPO.js} +85 -74
  61. package/dist/{chunk-PU5JKC2W-DNpn_Yik.js.map → chunk-O5CBEL6O-DThtyjPO.js.map} +1 -1
  62. package/dist/chunk-PUPMXCY4-DsO2K8st.js +25 -0
  63. package/dist/chunk-PUPMXCY4-DsO2K8st.js.map +1 -0
  64. package/dist/{chunk-QZHKN3VN-kDNdTVLo.js → chunk-QZHKN3VN-DC5aJQQT.js} +2 -2
  65. package/dist/{chunk-QZHKN3VN-kDNdTVLo.js.map → chunk-QZHKN3VN-DC5aJQQT.js.map} +1 -1
  66. package/dist/chunk-UIBZB4QT-Cu3IcTk1.js +25 -0
  67. package/dist/chunk-UIBZB4QT-Cu3IcTk1.js.map +1 -0
  68. package/dist/chunk-WCWK7LTN-DpMt57Ty.js +33 -0
  69. package/dist/chunk-WCWK7LTN-DpMt57Ty.js.map +1 -0
  70. package/dist/chunk-WU5MYG2G-mzocEmS2.js +12 -0
  71. package/dist/{chunk-HHEYEP7N-DJ1b-gA8.js.map → chunk-WU5MYG2G-mzocEmS2.js.map} +1 -1
  72. package/dist/{chunk-XPW4576I-BqiPnb3d.js → chunk-XPW4576I-BwxN5U1_.js} +2 -2
  73. package/dist/{chunk-XPW4576I-BqiPnb3d.js.map → chunk-XPW4576I-BwxN5U1_.js.map} +1 -1
  74. package/dist/classDiagram-4FO5ZUOK-CZv04EX-.js +31 -0
  75. package/dist/{classDiagram-VBA2DB6C-DZfC0xPM.js.map → classDiagram-4FO5ZUOK-CZv04EX-.js.map} +1 -1
  76. package/dist/classDiagram-v2-Q7XG4LA2-aOPSPoxt.js +31 -0
  77. package/dist/{classDiagram-v2-RAHNMMFH-CtWRD1ax.js.map → classDiagram-v2-Q7XG4LA2-aOPSPoxt.js.map} +1 -1
  78. package/dist/component-CBXhVCNE.js +163 -0
  79. package/dist/component-CBXhVCNE.js.map +1 -0
  80. package/dist/components/brand/index.d.ts +8 -2
  81. package/dist/components/brand/index.d.ts.map +1 -1
  82. package/dist/components/brand/index.js +58 -31
  83. package/dist/components/brand/index.js.map +1 -1
  84. package/dist/components/brand/types.d.ts +8 -0
  85. package/dist/components/brand/types.d.ts.map +1 -1
  86. package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js → cose-bilkent-S5V4N54A-D_hwzCJc.js} +7 -8
  87. package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js.map → cose-bilkent-S5V4N54A-D_hwzCJc.js.map} +1 -1
  88. package/dist/{cytoscape.esm-2vKMh7AJ.js → cytoscape.esm-C85eXBIz.js} +1 -1
  89. package/dist/{cytoscape.esm-2vKMh7AJ.js.map → cytoscape.esm-C85eXBIz.js.map} +1 -1
  90. package/dist/dagre-BM42HDAG-DBqY2dVf.js +299 -0
  91. package/dist/dagre-BM42HDAG-DBqY2dVf.js.map +1 -0
  92. package/dist/dagre-IxFkiJHF.js +1938 -0
  93. package/dist/dagre-IxFkiJHF.js.map +1 -0
  94. package/dist/{defaultLocale-PLHpRrsr.js → defaultLocale-DSDxELFN.js} +1 -1
  95. package/dist/{defaultLocale-PLHpRrsr.js.map → defaultLocale-DSDxELFN.js.map} +1 -1
  96. package/dist/{diagram-IFDJBPK2-D-Enf1mK.js → diagram-2AECGRRQ-BwC5Qbme.js} +39 -39
  97. package/dist/{diagram-IFDJBPK2-D-Enf1mK.js.map → diagram-2AECGRRQ-BwC5Qbme.js.map} +1 -1
  98. package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js +103 -0
  99. package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js.map +1 -0
  100. package/dist/diagram-KO2AKTUF-kSLn21uw.js +434 -0
  101. package/dist/diagram-KO2AKTUF-kSLn21uw.js.map +1 -0
  102. package/dist/{diagram-P4PSJMXO-O8g_RIkM.js → diagram-LMA3HP47-BRqyGMLP.js} +43 -43
  103. package/dist/{diagram-P4PSJMXO-O8g_RIkM.js.map → diagram-LMA3HP47-BRqyGMLP.js.map} +1 -1
  104. package/dist/{diagram-E7M64L7V-Co7O3gub.js → diagram-OG6HWLK6-BsskLXHm.js} +171 -174
  105. package/dist/diagram-OG6HWLK6-BsskLXHm.js.map +1 -0
  106. package/dist/{dist-BrNloUiz.js → dist-BScrlPBC.js} +32 -23
  107. package/dist/dist-BScrlPBC.js.map +1 -0
  108. package/dist/{erDiagram-INFDFZHY-C42JeR9I.js → erDiagram-TEJ5UH35-DzB7hnCi.js} +198 -164
  109. package/dist/erDiagram-TEJ5UH35-DzB7hnCi.js.map +1 -0
  110. package/dist/eventmodeling-FCH6USID-HcA67HMu.js +3 -0
  111. package/dist/{flowDiagram-PKNHOUZH-DInJjOz3.js → flowDiagram-I6XJVG4X-RYkPtPRG.js} +453 -469
  112. package/dist/flowDiagram-I6XJVG4X-RYkPtPRG.js.map +1 -0
  113. package/dist/{ganttDiagram-A5KZAMGK-Dgp-4Yss.js → ganttDiagram-6RSMTGT7-BfjlFVNd.js} +340 -333
  114. package/dist/ganttDiagram-6RSMTGT7-BfjlFVNd.js.map +1 -0
  115. package/dist/gitGraph-WXDBUCRP-D60yP8mT.js +3 -0
  116. package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js +731 -0
  117. package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js.map +1 -0
  118. package/dist/graphlib-k-wJtbbK.js +1268 -0
  119. package/dist/graphlib-k-wJtbbK.js.map +1 -0
  120. package/dist/icons/lucide.d.ts +1 -2
  121. package/dist/icons/lucide.d.ts.map +1 -1
  122. package/dist/icons/lucide.js.map +1 -1
  123. package/dist/info-J43DQDTF-DDmtkMBG.js +3 -0
  124. package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js → infoDiagram-5YYISTIA-C0TqWTrr.js} +7 -7
  125. package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js.map → infoDiagram-5YYISTIA-C0TqWTrr.js.map} +1 -1
  126. package/dist/{init-DcLTaNW1.js → init-CGzIZb6J.js} +1 -1
  127. package/dist/{init-DcLTaNW1.js.map → init-CGzIZb6J.js.map} +1 -1
  128. package/dist/{ishikawaDiagram-PHBUUO56-qHBJm2LT.js → ishikawaDiagram-YF4QCWOH-Cyk_Antz.js} +98 -97
  129. package/dist/ishikawaDiagram-YF4QCWOH-Cyk_Antz.js.map +1 -0
  130. package/dist/{journeyDiagram-4ABVD52K-PgfYdoDM.js → journeyDiagram-JHISSGLW-CTl8eDDe.js} +78 -78
  131. package/dist/journeyDiagram-JHISSGLW-CTl8eDDe.js.map +1 -0
  132. package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js → kanban-definition-UN3LZRKU-homeDoHF.js} +46 -44
  133. package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js.map → kanban-definition-UN3LZRKU-homeDoHF.js.map} +1 -1
  134. package/dist/{katex-BZdHnXin.js → katex-CgkxVokH.js} +1 -1
  135. package/dist/{katex-BZdHnXin.js.map → katex-CgkxVokH.js.map} +1 -1
  136. package/dist/line-k_aZSToM.js +36 -0
  137. package/dist/{line-Cq1AZT4f.js.map → line-k_aZSToM.js.map} +1 -1
  138. package/dist/{linear-BnJD01Xn.js → linear-Dpcbf4VP.js} +5 -5
  139. package/dist/{linear-BnJD01Xn.js.map → linear-Dpcbf4VP.js.map} +1 -1
  140. package/dist/{mermaid-parser.core-Dz5qv4CI.js → mermaid-parser.core-B_q76LYz.js} +32 -17
  141. package/dist/mermaid-parser.core-B_q76LYz.js.map +1 -0
  142. package/dist/mermaid.core-DAh-gNcn.js +997 -0
  143. package/dist/mermaid.core-DAh-gNcn.js.map +1 -0
  144. package/dist/{mindmap-definition-YRQLILUH-D95OPRMh.js → mindmap-definition-RKZ34NQL-Cjglmmr7.js} +153 -108
  145. package/dist/mindmap-definition-RKZ34NQL-Cjglmmr7.js.map +1 -0
  146. package/dist/{ordinal-CC9tfh_g.js → ordinal-DHGdAr1Y.js} +2 -2
  147. package/dist/{ordinal-CC9tfh_g.js.map → ordinal-DHGdAr1Y.js.map} +1 -1
  148. package/dist/packet-YPE3B663-Bo9N32Mb.js +3 -0
  149. package/dist/{path-y0uQCOMW.js → path-D-DDb3Wo.js} +1 -1
  150. package/dist/{path-y0uQCOMW.js.map → path-D-DDb3Wo.js.map} +1 -1
  151. package/dist/pie-LRSECV5Y-DndCyILX.js +3 -0
  152. package/dist/pieDiagram-4H26LBE5-Swbny_uk.js +167 -0
  153. package/dist/pieDiagram-4H26LBE5-Swbny_uk.js.map +1 -0
  154. package/dist/{quadrantDiagram-337W2JSQ-CcKc-h2o.js → quadrantDiagram-W4KKPZXB-kyt1iJkC.js} +359 -332
  155. package/dist/quadrantDiagram-W4KKPZXB-kyt1iJkC.js.map +1 -0
  156. package/dist/radar-GUYGQ44K-DpLG1fRN.js +3 -0
  157. package/dist/react/brand/index.d.ts +13 -1
  158. package/dist/react/brand/index.d.ts.map +1 -1
  159. package/dist/react/brand.js +28 -3
  160. package/dist/react/brand.js.map +1 -1
  161. package/dist/react/sidebar.d.ts +22 -1
  162. package/dist/react/sidebar.d.ts.map +1 -1
  163. package/dist/react/sidebar.js +26 -2
  164. package/dist/react/sidebar.js.map +1 -1
  165. package/dist/react/topology.js +1 -1
  166. package/dist/react.js +100 -100
  167. package/dist/{requirementDiagram-Z7DCOOCP-aPcaPduF.js → requirementDiagram-4Y6WPE33-DWRks7dz.js} +153 -133
  168. package/dist/requirementDiagram-4Y6WPE33-DWRks7dz.js.map +1 -0
  169. package/dist/{rough.esm-C9rQ9YkE.js → rough.esm-C7tiDdBn.js} +1 -1
  170. package/dist/{rough.esm-C9rQ9YkE.js.map → rough.esm-C7tiDdBn.js.map} +1 -1
  171. package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js → sankeyDiagram-5OEKKPKP-J_SVMd-0.js} +125 -76
  172. package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js.map → sankeyDiagram-5OEKKPKP-J_SVMd-0.js.map} +1 -1
  173. package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js +4167 -0
  174. package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js.map +1 -0
  175. package/dist/sidebar/component.d.ts +5 -0
  176. package/dist/sidebar/component.d.ts.map +1 -1
  177. package/dist/sidebar/index.d.ts +1 -1
  178. package/dist/sidebar/index.d.ts.map +1 -1
  179. package/dist/sidebar/index.js +1 -1
  180. package/dist/sidebar/index.js.map +1 -1
  181. package/dist/sidebar/types.d.ts +59 -0
  182. package/dist/sidebar/types.d.ts.map +1 -1
  183. package/dist/{src-D1EMXotX.js → src-CWnvxuyh.js} +603 -591
  184. package/dist/{src-D1EMXotX.js.map → src-CWnvxuyh.js.map} +1 -1
  185. package/dist/{src-BhNgmpel.js → src-DngnQkx_.js} +4 -5
  186. package/dist/{src-BhNgmpel.js.map → src-DngnQkx_.js.map} +1 -1
  187. package/dist/stateDiagram-AJRCARHV-x4JHehDk.js +220 -0
  188. package/dist/stateDiagram-AJRCARHV-x4JHehDk.js.map +1 -0
  189. package/dist/stateDiagram-v2-BHNVJYJU-CO93vpHl.js +29 -0
  190. package/dist/{stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js.map → stateDiagram-v2-BHNVJYJU-CO93vpHl.js.map} +1 -1
  191. package/dist/styles/components/brand.css +30 -0
  192. package/dist/styles/sidebar.css +568 -0
  193. package/dist/styles/tenant-ui.css +3 -4
  194. package/dist/styles/threat-library.css +0 -1
  195. package/dist/styles/tokens.css +0 -1
  196. package/dist/{timeline-definition-YZTLITO2-CjxxCuOg.js → timeline-definition-PNZ67QCA-rsiMN1-p.js} +517 -279
  197. package/dist/timeline-definition-PNZ67QCA-rsiMN1-p.js.map +1 -0
  198. package/dist/{topology-C8cyIHlB.js → topology-B9Lv-y1-.js} +181 -182
  199. package/dist/{topology-C8cyIHlB.js.map → topology-B9Lv-y1-.js.map} +1 -1
  200. package/dist/treeView-BLDUP644-mJdM3Q6x.js +3 -0
  201. package/dist/treemap-LRROVOQU-BbNMhR6z.js +3 -0
  202. package/dist/{value-gSPnIECy.js → value-CnwEagIg.js} +2 -2
  203. package/dist/{value-gSPnIECy.js.map → value-CnwEagIg.js.map} +1 -1
  204. package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js → vennDiagram-CIIHVFJN-JUCgWboO.js} +98 -98
  205. package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js.map → vennDiagram-CIIHVFJN-JUCgWboO.js.map} +1 -1
  206. package/dist/visualization/mermaid-diagram/index.js +1 -1
  207. package/dist/wardley-L42UT6IY-DB53GwcN.js +3 -0
  208. package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js +646 -0
  209. package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js.map +1 -0
  210. package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js → xychartDiagram-2RQKCTM6-D3ufsY0S.js} +146 -143
  211. package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js.map → xychartDiagram-2RQKCTM6-D3ufsY0S.js.map} +1 -1
  212. package/package.json +1 -1
  213. package/src/components/brand/index.ts +63 -0
  214. package/src/components/brand/types.ts +9 -0
  215. package/src/components/theme/theme-studio-review.test.ts +34 -0
  216. package/src/icons/lucide.ts +1 -2
  217. package/src/react/brand/index.test.tsx +28 -0
  218. package/src/react/brand/index.tsx +38 -0
  219. package/src/react/sidebar.test.tsx +30 -0
  220. package/src/react/sidebar.tsx +52 -1
  221. package/src/sidebar/component.test.ts +109 -0
  222. package/src/sidebar/component.ts +231 -42
  223. package/src/sidebar/index.ts +1 -0
  224. package/src/sidebar/types.ts +60 -0
  225. package/src/styles/components/brand.css +30 -0
  226. package/src/styles/sidebar.css +568 -0
  227. package/src/styles/tenant-ui.css +3 -4
  228. package/src/styles/threat-library.css +0 -1
  229. package/src/styles/tokens.css +0 -1
  230. package/dist/_basePickBy-BQMPE4-n.js +0 -168
  231. package/dist/_basePickBy-BQMPE4-n.js.map +0 -1
  232. package/dist/_baseUniq-Bdp_vFUv.js +0 -684
  233. package/dist/_baseUniq-Bdp_vFUv.js.map +0 -1
  234. package/dist/architecture-PBZL5I3N-Zk3GmKE8.js +0 -3
  235. package/dist/blockDiagram-WCTKOSBZ-BH3jwWeU.js.map +0 -1
  236. package/dist/c4Diagram-IC4MRINW-OFLrunYI.js.map +0 -1
  237. package/dist/channel-LRbq43st.js +0 -7
  238. package/dist/chunk-7E7YKBS2-BsywoVTt.js +0 -25
  239. package/dist/chunk-7E7YKBS2-BsywoVTt.js.map +0 -1
  240. package/dist/chunk-7R4GIKGN-DJmroLCH.js +0 -2054
  241. package/dist/chunk-7R4GIKGN-DJmroLCH.js.map +0 -1
  242. package/dist/chunk-C72U2L5F-BwPwVDcP.js +0 -25
  243. package/dist/chunk-C72U2L5F-BwPwVDcP.js.map +0 -1
  244. package/dist/chunk-EGIJ26TM-DKd5cEgn.js +0 -25
  245. package/dist/chunk-EGIJ26TM-DKd5cEgn.js.map +0 -1
  246. package/dist/chunk-GEFDOKGD-DGJJEGSm.js.map +0 -1
  247. package/dist/chunk-GLR3WWYH-BDwmgwCA.js +0 -43
  248. package/dist/chunk-GLR3WWYH-BDwmgwCA.js.map +0 -1
  249. package/dist/chunk-HHEYEP7N-DJ1b-gA8.js +0 -12
  250. package/dist/chunk-KYZI473N-BXYCe83A.js +0 -3437
  251. package/dist/chunk-KYZI473N-BXYCe83A.js.map +0 -1
  252. package/dist/chunk-L3YUKLVL-Y5k8UNMf.js +0 -25
  253. package/dist/chunk-L3YUKLVL-Y5k8UNMf.js.map +0 -1
  254. package/dist/chunk-MX3YWQON-D43mcq1f.js.map +0 -1
  255. package/dist/chunk-NBPlniwU.js +0 -23
  256. package/dist/chunk-NQ4KR5QH-C0nWShNk.js.map +0 -1
  257. package/dist/chunk-O4XLMI2P-DtGEm9QX.js +0 -514
  258. package/dist/chunk-O4XLMI2P-DtGEm9QX.js.map +0 -1
  259. package/dist/chunk-OZEHJAEY-BsQ56PV-.js.map +0 -1
  260. package/dist/chunk-R5LLSJPH-c1IfaK5D.js.map +0 -1
  261. package/dist/chunk-WL4C6EOR-BV-op7zg.js.map +0 -1
  262. package/dist/chunk-XIRO2GV7-Bv1hlNLi.js +0 -32
  263. package/dist/chunk-XIRO2GV7-Bv1hlNLi.js.map +0 -1
  264. package/dist/chunk-XZSTWKYB-C7maKWEr.js +0 -15799
  265. package/dist/chunk-XZSTWKYB-C7maKWEr.js.map +0 -1
  266. package/dist/classDiagram-VBA2DB6C-DZfC0xPM.js +0 -31
  267. package/dist/classDiagram-v2-RAHNMMFH-CtWRD1ax.js +0 -31
  268. package/dist/clone-CliVdNc8.js +0 -10
  269. package/dist/clone-CliVdNc8.js.map +0 -1
  270. package/dist/component-C1Jiz1Ki.js +0 -103
  271. package/dist/component-C1Jiz1Ki.js.map +0 -1
  272. package/dist/dagre-BqC9mhMk.js +0 -1485
  273. package/dist/dagre-BqC9mhMk.js.map +0 -1
  274. package/dist/dagre-KLK3FWXG-DTKcsol6.js +0 -296
  275. package/dist/dagre-KLK3FWXG-DTKcsol6.js.map +0 -1
  276. package/dist/diagram-E7M64L7V-Co7O3gub.js.map +0 -1
  277. package/dist/dist-BrNloUiz.js.map +0 -1
  278. package/dist/erDiagram-INFDFZHY-C42JeR9I.js.map +0 -1
  279. package/dist/flowDiagram-PKNHOUZH-DInJjOz3.js.map +0 -1
  280. package/dist/ganttDiagram-A5KZAMGK-Dgp-4Yss.js.map +0 -1
  281. package/dist/gitGraph-HDMCJU4V-D_QsK6Rt.js +0 -3
  282. package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js +0 -628
  283. package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js.map +0 -1
  284. package/dist/graphlib-ecencZTG.js +0 -227
  285. package/dist/graphlib-ecencZTG.js.map +0 -1
  286. package/dist/info-3K5VOQVL-BbLiZXwn.js +0 -3
  287. package/dist/isArrayLikeObject-Bjsxaqj7.js +0 -580
  288. package/dist/isArrayLikeObject-Bjsxaqj7.js.map +0 -1
  289. package/dist/isEmpty-CeZZUVts.js +0 -37
  290. package/dist/isEmpty-CeZZUVts.js.map +0 -1
  291. package/dist/ishikawaDiagram-PHBUUO56-qHBJm2LT.js.map +0 -1
  292. package/dist/journeyDiagram-4ABVD52K-PgfYdoDM.js.map +0 -1
  293. package/dist/line-Cq1AZT4f.js +0 -36
  294. package/dist/math-D4gdAuwG.js +0 -12
  295. package/dist/math-D4gdAuwG.js.map +0 -1
  296. package/dist/mermaid-parser.core-Dz5qv4CI.js.map +0 -1
  297. package/dist/mermaid.core-DTiIXVKa.js +0 -923
  298. package/dist/mermaid.core-DTiIXVKa.js.map +0 -1
  299. package/dist/mindmap-definition-YRQLILUH-D95OPRMh.js.map +0 -1
  300. package/dist/packet-RMMSAZCW-D72DRs1N.js +0 -3
  301. package/dist/pie-UPGHQEXC-C8RDLrEi.js +0 -3
  302. package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js +0 -167
  303. package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js.map +0 -1
  304. package/dist/quadrantDiagram-337W2JSQ-CcKc-h2o.js.map +0 -1
  305. package/dist/radar-KQ55EAFF-DhmvjiyN.js +0 -3
  306. package/dist/requirementDiagram-Z7DCOOCP-aPcaPduF.js.map +0 -1
  307. package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js +0 -4112
  308. package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js.map +0 -1
  309. package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js +0 -220
  310. package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js.map +0 -1
  311. package/dist/stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js +0 -29
  312. package/dist/timeline-definition-YZTLITO2-CjxxCuOg.js.map +0 -1
  313. package/dist/treemap-KZPCXAKY-BvLvHb2t.js +0 -3
@@ -1,4112 +0,0 @@
1
- import { w as e } from "./src-D1EMXotX.js";
2
- import { f as t, h as n } from "./chunk-GEFDOKGD-DGJJEGSm.js";
3
- import { n as r, r as i } from "./src-BhNgmpel.js";
4
- import { B as a, C as o, D as s, L as c, P as l, U as u, V as d, W as f, _ as p, a as m, b as h, c as g, i as _, k as v, r as y, s as b, v as x, y as S } from "./chunk-7R4GIKGN-DJmroLCH.js";
5
- import { t as C } from "./dist-BrNloUiz.js";
6
- import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-JSJVCQXG-Do17yYig.js";
7
- import { n as A, t as j } from "./chunk-XPW4576I-BqiPnb3d.js";
8
- import { t as M } from "./chunk-QZHKN3VN-kDNdTVLo.js";
9
- //#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-2WXFIKYE.mjs
10
- var N = C(), P = (function() {
11
- var e = /* @__PURE__ */ r(function(e, t, n, r) {
12
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
13
- return n;
14
- }, "o"), t = [1, 2], n = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
15
- 1,
16
- 4,
17
- 5,
18
- 10,
19
- 14,
20
- 15,
21
- 17,
22
- 19,
23
- 22,
24
- 24,
25
- 30,
26
- 31,
27
- 32,
28
- 34,
29
- 36,
30
- 37,
31
- 38,
32
- 39,
33
- 40,
34
- 42,
35
- 44,
36
- 45,
37
- 47,
38
- 48,
39
- 49,
40
- 50,
41
- 51,
42
- 53,
43
- 54,
44
- 56,
45
- 61,
46
- 62,
47
- 63,
48
- 64,
49
- 73
50
- ], ee = [1, 74], te = [1, 80], ne = [1, 81], re = [1, 82], ie = [1, 83], L = [1, 84], R = [1, 85], z = [1, 86], ae = [1, 87], B = [1, 88], V = [1, 89], oe = [1, 90], H = [1, 91], U = [1, 92], W = [1, 93], se = [1, 94], G = [1, 95], ce = [1, 96], le = [1, 97], ue = [1, 98], de = [1, 99], fe = [1, 100], pe = [1, 101], me = [1, 102], he = [1, 103], ge = [1, 104], _e = [1, 105], ve = [2, 78], ye = [
51
- 4,
52
- 5,
53
- 17,
54
- 51,
55
- 53,
56
- 54
57
- ], be = [
58
- 4,
59
- 5,
60
- 10,
61
- 14,
62
- 15,
63
- 17,
64
- 19,
65
- 22,
66
- 24,
67
- 30,
68
- 31,
69
- 32,
70
- 34,
71
- 36,
72
- 37,
73
- 38,
74
- 39,
75
- 40,
76
- 42,
77
- 44,
78
- 45,
79
- 47,
80
- 51,
81
- 53,
82
- 54,
83
- 56,
84
- 61,
85
- 62,
86
- 63,
87
- 64,
88
- 73
89
- ], xe = [
90
- 4,
91
- 5,
92
- 10,
93
- 14,
94
- 15,
95
- 17,
96
- 19,
97
- 22,
98
- 24,
99
- 30,
100
- 31,
101
- 32,
102
- 34,
103
- 36,
104
- 37,
105
- 38,
106
- 39,
107
- 40,
108
- 42,
109
- 44,
110
- 45,
111
- 47,
112
- 50,
113
- 51,
114
- 53,
115
- 54,
116
- 56,
117
- 61,
118
- 62,
119
- 63,
120
- 64,
121
- 73
122
- ], Se = [
123
- 4,
124
- 5,
125
- 10,
126
- 14,
127
- 15,
128
- 17,
129
- 19,
130
- 22,
131
- 24,
132
- 30,
133
- 31,
134
- 32,
135
- 34,
136
- 36,
137
- 37,
138
- 38,
139
- 39,
140
- 40,
141
- 42,
142
- 44,
143
- 45,
144
- 47,
145
- 49,
146
- 51,
147
- 53,
148
- 54,
149
- 56,
150
- 61,
151
- 62,
152
- 63,
153
- 64,
154
- 73
155
- ], Ce = [
156
- 4,
157
- 5,
158
- 10,
159
- 14,
160
- 15,
161
- 17,
162
- 19,
163
- 22,
164
- 24,
165
- 30,
166
- 31,
167
- 32,
168
- 34,
169
- 36,
170
- 37,
171
- 38,
172
- 39,
173
- 40,
174
- 42,
175
- 44,
176
- 45,
177
- 47,
178
- 48,
179
- 51,
180
- 53,
181
- 54,
182
- 56,
183
- 61,
184
- 62,
185
- 63,
186
- 64,
187
- 73
188
- ], we = [5, 52], K = [
189
- 70,
190
- 71,
191
- 72,
192
- 73
193
- ], q = [1, 151], Te = {
194
- trace: /* @__PURE__ */ r(function() {}, "trace"),
195
- yy: {},
196
- symbols_: {
197
- error: 2,
198
- start: 3,
199
- SPACE: 4,
200
- NEWLINE: 5,
201
- SD: 6,
202
- document: 7,
203
- line: 8,
204
- statement: 9,
205
- INVALID: 10,
206
- box_section: 11,
207
- box_line: 12,
208
- participant_statement: 13,
209
- create: 14,
210
- box: 15,
211
- restOfLine: 16,
212
- end: 17,
213
- signal: 18,
214
- autonumber: 19,
215
- NUM: 20,
216
- off: 21,
217
- activate: 22,
218
- actor: 23,
219
- deactivate: 24,
220
- note_statement: 25,
221
- links_statement: 26,
222
- link_statement: 27,
223
- properties_statement: 28,
224
- details_statement: 29,
225
- title: 30,
226
- legacy_title: 31,
227
- acc_title: 32,
228
- acc_title_value: 33,
229
- acc_descr: 34,
230
- acc_descr_value: 35,
231
- acc_descr_multiline_value: 36,
232
- loop: 37,
233
- rect: 38,
234
- opt: 39,
235
- alt: 40,
236
- else_sections: 41,
237
- par: 42,
238
- par_sections: 43,
239
- par_over: 44,
240
- critical: 45,
241
- option_sections: 46,
242
- break: 47,
243
- option: 48,
244
- and: 49,
245
- else: 50,
246
- participant: 51,
247
- AS: 52,
248
- participant_actor: 53,
249
- destroy: 54,
250
- actor_with_config: 55,
251
- note: 56,
252
- placement: 57,
253
- text2: 58,
254
- over: 59,
255
- actor_pair: 60,
256
- links: 61,
257
- link: 62,
258
- properties: 63,
259
- details: 64,
260
- spaceList: 65,
261
- ",": 66,
262
- left_of: 67,
263
- right_of: 68,
264
- signaltype: 69,
265
- "+": 70,
266
- "-": 71,
267
- "()": 72,
268
- ACTOR: 73,
269
- config_object: 74,
270
- CONFIG_START: 75,
271
- CONFIG_CONTENT: 76,
272
- CONFIG_END: 77,
273
- SOLID_OPEN_ARROW: 78,
274
- DOTTED_OPEN_ARROW: 79,
275
- SOLID_ARROW: 80,
276
- SOLID_ARROW_TOP: 81,
277
- SOLID_ARROW_BOTTOM: 82,
278
- STICK_ARROW_TOP: 83,
279
- STICK_ARROW_BOTTOM: 84,
280
- SOLID_ARROW_TOP_DOTTED: 85,
281
- SOLID_ARROW_BOTTOM_DOTTED: 86,
282
- STICK_ARROW_TOP_DOTTED: 87,
283
- STICK_ARROW_BOTTOM_DOTTED: 88,
284
- SOLID_ARROW_TOP_REVERSE: 89,
285
- SOLID_ARROW_BOTTOM_REVERSE: 90,
286
- STICK_ARROW_TOP_REVERSE: 91,
287
- STICK_ARROW_BOTTOM_REVERSE: 92,
288
- SOLID_ARROW_TOP_REVERSE_DOTTED: 93,
289
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94,
290
- STICK_ARROW_TOP_REVERSE_DOTTED: 95,
291
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96,
292
- BIDIRECTIONAL_SOLID_ARROW: 97,
293
- DOTTED_ARROW: 98,
294
- BIDIRECTIONAL_DOTTED_ARROW: 99,
295
- SOLID_CROSS: 100,
296
- DOTTED_CROSS: 101,
297
- SOLID_POINT: 102,
298
- DOTTED_POINT: 103,
299
- TXT: 104,
300
- $accept: 0,
301
- $end: 1
302
- },
303
- terminals_: {
304
- 2: "error",
305
- 4: "SPACE",
306
- 5: "NEWLINE",
307
- 6: "SD",
308
- 10: "INVALID",
309
- 14: "create",
310
- 15: "box",
311
- 16: "restOfLine",
312
- 17: "end",
313
- 19: "autonumber",
314
- 20: "NUM",
315
- 21: "off",
316
- 22: "activate",
317
- 24: "deactivate",
318
- 30: "title",
319
- 31: "legacy_title",
320
- 32: "acc_title",
321
- 33: "acc_title_value",
322
- 34: "acc_descr",
323
- 35: "acc_descr_value",
324
- 36: "acc_descr_multiline_value",
325
- 37: "loop",
326
- 38: "rect",
327
- 39: "opt",
328
- 40: "alt",
329
- 42: "par",
330
- 44: "par_over",
331
- 45: "critical",
332
- 47: "break",
333
- 48: "option",
334
- 49: "and",
335
- 50: "else",
336
- 51: "participant",
337
- 52: "AS",
338
- 53: "participant_actor",
339
- 54: "destroy",
340
- 56: "note",
341
- 59: "over",
342
- 61: "links",
343
- 62: "link",
344
- 63: "properties",
345
- 64: "details",
346
- 66: ",",
347
- 67: "left_of",
348
- 68: "right_of",
349
- 70: "+",
350
- 71: "-",
351
- 72: "()",
352
- 73: "ACTOR",
353
- 75: "CONFIG_START",
354
- 76: "CONFIG_CONTENT",
355
- 77: "CONFIG_END",
356
- 78: "SOLID_OPEN_ARROW",
357
- 79: "DOTTED_OPEN_ARROW",
358
- 80: "SOLID_ARROW",
359
- 81: "SOLID_ARROW_TOP",
360
- 82: "SOLID_ARROW_BOTTOM",
361
- 83: "STICK_ARROW_TOP",
362
- 84: "STICK_ARROW_BOTTOM",
363
- 85: "SOLID_ARROW_TOP_DOTTED",
364
- 86: "SOLID_ARROW_BOTTOM_DOTTED",
365
- 87: "STICK_ARROW_TOP_DOTTED",
366
- 88: "STICK_ARROW_BOTTOM_DOTTED",
367
- 89: "SOLID_ARROW_TOP_REVERSE",
368
- 90: "SOLID_ARROW_BOTTOM_REVERSE",
369
- 91: "STICK_ARROW_TOP_REVERSE",
370
- 92: "STICK_ARROW_BOTTOM_REVERSE",
371
- 93: "SOLID_ARROW_TOP_REVERSE_DOTTED",
372
- 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED",
373
- 95: "STICK_ARROW_TOP_REVERSE_DOTTED",
374
- 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED",
375
- 97: "BIDIRECTIONAL_SOLID_ARROW",
376
- 98: "DOTTED_ARROW",
377
- 99: "BIDIRECTIONAL_DOTTED_ARROW",
378
- 100: "SOLID_CROSS",
379
- 101: "DOTTED_CROSS",
380
- 102: "SOLID_POINT",
381
- 103: "DOTTED_POINT",
382
- 104: "TXT"
383
- },
384
- productions_: [
385
- 0,
386
- [3, 2],
387
- [3, 2],
388
- [3, 2],
389
- [7, 0],
390
- [7, 2],
391
- [8, 2],
392
- [8, 1],
393
- [8, 1],
394
- [8, 1],
395
- [11, 0],
396
- [11, 2],
397
- [12, 2],
398
- [12, 1],
399
- [12, 1],
400
- [9, 1],
401
- [9, 2],
402
- [9, 4],
403
- [9, 2],
404
- [9, 4],
405
- [9, 3],
406
- [9, 3],
407
- [9, 2],
408
- [9, 3],
409
- [9, 3],
410
- [9, 2],
411
- [9, 2],
412
- [9, 2],
413
- [9, 2],
414
- [9, 2],
415
- [9, 1],
416
- [9, 1],
417
- [9, 2],
418
- [9, 2],
419
- [9, 1],
420
- [9, 4],
421
- [9, 4],
422
- [9, 4],
423
- [9, 4],
424
- [9, 4],
425
- [9, 4],
426
- [9, 4],
427
- [9, 4],
428
- [46, 1],
429
- [46, 4],
430
- [43, 1],
431
- [43, 4],
432
- [41, 1],
433
- [41, 4],
434
- [13, 5],
435
- [13, 3],
436
- [13, 5],
437
- [13, 3],
438
- [13, 3],
439
- [13, 5],
440
- [13, 3],
441
- [13, 5],
442
- [13, 3],
443
- [25, 4],
444
- [25, 4],
445
- [26, 3],
446
- [27, 3],
447
- [28, 3],
448
- [29, 3],
449
- [65, 2],
450
- [65, 1],
451
- [60, 3],
452
- [60, 1],
453
- [57, 1],
454
- [57, 1],
455
- [18, 5],
456
- [18, 5],
457
- [18, 5],
458
- [18, 5],
459
- [18, 6],
460
- [18, 4],
461
- [55, 2],
462
- [74, 3],
463
- [23, 1],
464
- [69, 1],
465
- [69, 1],
466
- [69, 1],
467
- [69, 1],
468
- [69, 1],
469
- [69, 1],
470
- [69, 1],
471
- [69, 1],
472
- [69, 1],
473
- [69, 1],
474
- [69, 1],
475
- [69, 1],
476
- [69, 1],
477
- [69, 1],
478
- [69, 1],
479
- [69, 1],
480
- [69, 1],
481
- [69, 1],
482
- [69, 1],
483
- [69, 1],
484
- [69, 1],
485
- [69, 1],
486
- [69, 1],
487
- [69, 1],
488
- [69, 1],
489
- [69, 1],
490
- [58, 1]
491
- ],
492
- performAction: /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
493
- var s = a.length - 1;
494
- switch (i) {
495
- case 3: return r.apply(a[s]), a[s];
496
- case 4:
497
- case 10:
498
- this.$ = [];
499
- break;
500
- case 5:
501
- case 11:
502
- a[s - 1].push(a[s]), this.$ = a[s - 1];
503
- break;
504
- case 6:
505
- case 7:
506
- case 12:
507
- case 13:
508
- this.$ = a[s];
509
- break;
510
- case 8:
511
- case 9:
512
- case 14:
513
- this.$ = [];
514
- break;
515
- case 16:
516
- a[s].type = "createParticipant", this.$ = a[s];
517
- break;
518
- case 17:
519
- a[s - 1].unshift({
520
- type: "boxStart",
521
- boxData: r.parseBoxData(a[s - 2])
522
- }), a[s - 1].push({
523
- type: "boxEnd",
524
- boxText: a[s - 2]
525
- }), this.$ = a[s - 1];
526
- break;
527
- case 19:
528
- this.$ = {
529
- type: "sequenceIndex",
530
- sequenceIndex: Number(a[s - 2]),
531
- sequenceIndexStep: Number(a[s - 1]),
532
- sequenceVisible: !0,
533
- signalType: r.LINETYPE.AUTONUMBER
534
- };
535
- break;
536
- case 20:
537
- this.$ = {
538
- type: "sequenceIndex",
539
- sequenceIndex: Number(a[s - 1]),
540
- sequenceIndexStep: 1,
541
- sequenceVisible: !0,
542
- signalType: r.LINETYPE.AUTONUMBER
543
- };
544
- break;
545
- case 21:
546
- this.$ = {
547
- type: "sequenceIndex",
548
- sequenceVisible: !1,
549
- signalType: r.LINETYPE.AUTONUMBER
550
- };
551
- break;
552
- case 22:
553
- this.$ = {
554
- type: "sequenceIndex",
555
- sequenceVisible: !0,
556
- signalType: r.LINETYPE.AUTONUMBER
557
- };
558
- break;
559
- case 23:
560
- this.$ = {
561
- type: "activeStart",
562
- signalType: r.LINETYPE.ACTIVE_START,
563
- actor: a[s - 1].actor
564
- };
565
- break;
566
- case 24:
567
- this.$ = {
568
- type: "activeEnd",
569
- signalType: r.LINETYPE.ACTIVE_END,
570
- actor: a[s - 1].actor
571
- };
572
- break;
573
- case 30:
574
- r.setDiagramTitle(a[s].substring(6)), this.$ = a[s].substring(6);
575
- break;
576
- case 31:
577
- r.setDiagramTitle(a[s].substring(7)), this.$ = a[s].substring(7);
578
- break;
579
- case 32:
580
- this.$ = a[s].trim(), r.setAccTitle(this.$);
581
- break;
582
- case 33:
583
- case 34:
584
- this.$ = a[s].trim(), r.setAccDescription(this.$);
585
- break;
586
- case 35:
587
- a[s - 1].unshift({
588
- type: "loopStart",
589
- loopText: r.parseMessage(a[s - 2]),
590
- signalType: r.LINETYPE.LOOP_START
591
- }), a[s - 1].push({
592
- type: "loopEnd",
593
- loopText: a[s - 2],
594
- signalType: r.LINETYPE.LOOP_END
595
- }), this.$ = a[s - 1];
596
- break;
597
- case 36:
598
- a[s - 1].unshift({
599
- type: "rectStart",
600
- color: r.parseMessage(a[s - 2]),
601
- signalType: r.LINETYPE.RECT_START
602
- }), a[s - 1].push({
603
- type: "rectEnd",
604
- color: r.parseMessage(a[s - 2]),
605
- signalType: r.LINETYPE.RECT_END
606
- }), this.$ = a[s - 1];
607
- break;
608
- case 37:
609
- a[s - 1].unshift({
610
- type: "optStart",
611
- optText: r.parseMessage(a[s - 2]),
612
- signalType: r.LINETYPE.OPT_START
613
- }), a[s - 1].push({
614
- type: "optEnd",
615
- optText: r.parseMessage(a[s - 2]),
616
- signalType: r.LINETYPE.OPT_END
617
- }), this.$ = a[s - 1];
618
- break;
619
- case 38:
620
- a[s - 1].unshift({
621
- type: "altStart",
622
- altText: r.parseMessage(a[s - 2]),
623
- signalType: r.LINETYPE.ALT_START
624
- }), a[s - 1].push({
625
- type: "altEnd",
626
- signalType: r.LINETYPE.ALT_END
627
- }), this.$ = a[s - 1];
628
- break;
629
- case 39:
630
- a[s - 1].unshift({
631
- type: "parStart",
632
- parText: r.parseMessage(a[s - 2]),
633
- signalType: r.LINETYPE.PAR_START
634
- }), a[s - 1].push({
635
- type: "parEnd",
636
- signalType: r.LINETYPE.PAR_END
637
- }), this.$ = a[s - 1];
638
- break;
639
- case 40:
640
- a[s - 1].unshift({
641
- type: "parStart",
642
- parText: r.parseMessage(a[s - 2]),
643
- signalType: r.LINETYPE.PAR_OVER_START
644
- }), a[s - 1].push({
645
- type: "parEnd",
646
- signalType: r.LINETYPE.PAR_END
647
- }), this.$ = a[s - 1];
648
- break;
649
- case 41:
650
- a[s - 1].unshift({
651
- type: "criticalStart",
652
- criticalText: r.parseMessage(a[s - 2]),
653
- signalType: r.LINETYPE.CRITICAL_START
654
- }), a[s - 1].push({
655
- type: "criticalEnd",
656
- signalType: r.LINETYPE.CRITICAL_END
657
- }), this.$ = a[s - 1];
658
- break;
659
- case 42:
660
- a[s - 1].unshift({
661
- type: "breakStart",
662
- breakText: r.parseMessage(a[s - 2]),
663
- signalType: r.LINETYPE.BREAK_START
664
- }), a[s - 1].push({
665
- type: "breakEnd",
666
- optText: r.parseMessage(a[s - 2]),
667
- signalType: r.LINETYPE.BREAK_END
668
- }), this.$ = a[s - 1];
669
- break;
670
- case 44:
671
- this.$ = a[s - 3].concat([{
672
- type: "option",
673
- optionText: r.parseMessage(a[s - 1]),
674
- signalType: r.LINETYPE.CRITICAL_OPTION
675
- }, a[s]]);
676
- break;
677
- case 46:
678
- this.$ = a[s - 3].concat([{
679
- type: "and",
680
- parText: r.parseMessage(a[s - 1]),
681
- signalType: r.LINETYPE.PAR_AND
682
- }, a[s]]);
683
- break;
684
- case 48:
685
- this.$ = a[s - 3].concat([{
686
- type: "else",
687
- altText: r.parseMessage(a[s - 1]),
688
- signalType: r.LINETYPE.ALT_ELSE
689
- }, a[s]]);
690
- break;
691
- case 49:
692
- a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
693
- break;
694
- case 50:
695
- a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
696
- break;
697
- case 51:
698
- a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
699
- break;
700
- case 52:
701
- case 57:
702
- a[s - 1].draw = "actor", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
703
- break;
704
- case 53:
705
- a[s - 1].type = "destroyParticipant", this.$ = a[s - 1];
706
- break;
707
- case 54:
708
- a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
709
- break;
710
- case 55:
711
- a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
712
- break;
713
- case 56:
714
- a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
715
- break;
716
- case 58:
717
- this.$ = [a[s - 1], {
718
- type: "addNote",
719
- placement: a[s - 2],
720
- actor: a[s - 1].actor,
721
- text: a[s]
722
- }];
723
- break;
724
- case 59:
725
- a[s - 2] = [].concat(a[s - 1], a[s - 1]).slice(0, 2), a[s - 2][0] = a[s - 2][0].actor, a[s - 2][1] = a[s - 2][1].actor, this.$ = [a[s - 1], {
726
- type: "addNote",
727
- placement: r.PLACEMENT.OVER,
728
- actor: a[s - 2].slice(0, 2),
729
- text: a[s]
730
- }];
731
- break;
732
- case 60:
733
- this.$ = [a[s - 1], {
734
- type: "addLinks",
735
- actor: a[s - 1].actor,
736
- text: a[s]
737
- }];
738
- break;
739
- case 61:
740
- this.$ = [a[s - 1], {
741
- type: "addALink",
742
- actor: a[s - 1].actor,
743
- text: a[s]
744
- }];
745
- break;
746
- case 62:
747
- this.$ = [a[s - 1], {
748
- type: "addProperties",
749
- actor: a[s - 1].actor,
750
- text: a[s]
751
- }];
752
- break;
753
- case 63:
754
- this.$ = [a[s - 1], {
755
- type: "addDetails",
756
- actor: a[s - 1].actor,
757
- text: a[s]
758
- }];
759
- break;
760
- case 66:
761
- this.$ = [a[s - 2], a[s]];
762
- break;
763
- case 67:
764
- this.$ = a[s];
765
- break;
766
- case 68:
767
- this.$ = r.PLACEMENT.LEFTOF;
768
- break;
769
- case 69:
770
- this.$ = r.PLACEMENT.RIGHTOF;
771
- break;
772
- case 70:
773
- this.$ = [
774
- a[s - 4],
775
- a[s - 1],
776
- {
777
- type: "addMessage",
778
- from: a[s - 4].actor,
779
- to: a[s - 1].actor,
780
- signalType: a[s - 3],
781
- msg: a[s],
782
- activate: !0
783
- },
784
- {
785
- type: "activeStart",
786
- signalType: r.LINETYPE.ACTIVE_START,
787
- actor: a[s - 1].actor
788
- }
789
- ];
790
- break;
791
- case 71:
792
- this.$ = [
793
- a[s - 4],
794
- a[s - 1],
795
- {
796
- type: "addMessage",
797
- from: a[s - 4].actor,
798
- to: a[s - 1].actor,
799
- signalType: a[s - 3],
800
- msg: a[s]
801
- },
802
- {
803
- type: "activeEnd",
804
- signalType: r.LINETYPE.ACTIVE_END,
805
- actor: a[s - 4].actor
806
- }
807
- ];
808
- break;
809
- case 72:
810
- this.$ = [
811
- a[s - 4],
812
- a[s - 1],
813
- {
814
- type: "addMessage",
815
- from: a[s - 4].actor,
816
- to: a[s - 1].actor,
817
- signalType: a[s - 3],
818
- msg: a[s],
819
- activate: !0,
820
- centralConnection: r.LINETYPE.CENTRAL_CONNECTION
821
- },
822
- {
823
- type: "centralConnection",
824
- signalType: r.LINETYPE.CENTRAL_CONNECTION,
825
- actor: a[s - 1].actor
826
- }
827
- ];
828
- break;
829
- case 73:
830
- this.$ = [
831
- a[s - 4],
832
- a[s - 1],
833
- {
834
- type: "addMessage",
835
- from: a[s - 4].actor,
836
- to: a[s - 1].actor,
837
- signalType: a[s - 2],
838
- msg: a[s],
839
- activate: !1,
840
- centralConnection: r.LINETYPE.CENTRAL_CONNECTION_REVERSE
841
- },
842
- {
843
- type: "centralConnectionReverse",
844
- signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
845
- actor: a[s - 4].actor
846
- }
847
- ];
848
- break;
849
- case 74:
850
- this.$ = [
851
- a[s - 5],
852
- a[s - 1],
853
- {
854
- type: "addMessage",
855
- from: a[s - 5].actor,
856
- to: a[s - 1].actor,
857
- signalType: a[s - 3],
858
- msg: a[s],
859
- activate: !0,
860
- centralConnection: r.LINETYPE.CENTRAL_CONNECTION_DUAL
861
- },
862
- {
863
- type: "centralConnection",
864
- signalType: r.LINETYPE.CENTRAL_CONNECTION,
865
- actor: a[s - 1].actor
866
- },
867
- {
868
- type: "centralConnectionReverse",
869
- signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
870
- actor: a[s - 5].actor
871
- }
872
- ];
873
- break;
874
- case 75:
875
- this.$ = [
876
- a[s - 3],
877
- a[s - 1],
878
- {
879
- type: "addMessage",
880
- from: a[s - 3].actor,
881
- to: a[s - 1].actor,
882
- signalType: a[s - 2],
883
- msg: a[s]
884
- }
885
- ];
886
- break;
887
- case 76:
888
- this.$ = {
889
- type: "addParticipant",
890
- actor: a[s - 1],
891
- config: a[s]
892
- };
893
- break;
894
- case 77:
895
- this.$ = a[s - 1].trim();
896
- break;
897
- case 78:
898
- this.$ = {
899
- type: "addParticipant",
900
- actor: a[s]
901
- };
902
- break;
903
- case 79:
904
- this.$ = r.LINETYPE.SOLID_OPEN;
905
- break;
906
- case 80:
907
- this.$ = r.LINETYPE.DOTTED_OPEN;
908
- break;
909
- case 81:
910
- this.$ = r.LINETYPE.SOLID;
911
- break;
912
- case 82:
913
- this.$ = r.LINETYPE.SOLID_TOP;
914
- break;
915
- case 83:
916
- this.$ = r.LINETYPE.SOLID_BOTTOM;
917
- break;
918
- case 84:
919
- this.$ = r.LINETYPE.STICK_TOP;
920
- break;
921
- case 85:
922
- this.$ = r.LINETYPE.STICK_BOTTOM;
923
- break;
924
- case 86:
925
- this.$ = r.LINETYPE.SOLID_TOP_DOTTED;
926
- break;
927
- case 87:
928
- this.$ = r.LINETYPE.SOLID_BOTTOM_DOTTED;
929
- break;
930
- case 88:
931
- this.$ = r.LINETYPE.STICK_TOP_DOTTED;
932
- break;
933
- case 89:
934
- this.$ = r.LINETYPE.STICK_BOTTOM_DOTTED;
935
- break;
936
- case 90:
937
- this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE;
938
- break;
939
- case 91:
940
- this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
941
- break;
942
- case 92:
943
- this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE;
944
- break;
945
- case 93:
946
- this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
947
- break;
948
- case 94:
949
- this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
950
- break;
951
- case 95:
952
- this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
953
- break;
954
- case 96:
955
- this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
956
- break;
957
- case 97:
958
- this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
959
- break;
960
- case 98:
961
- this.$ = r.LINETYPE.BIDIRECTIONAL_SOLID;
962
- break;
963
- case 99:
964
- this.$ = r.LINETYPE.DOTTED;
965
- break;
966
- case 100:
967
- this.$ = r.LINETYPE.BIDIRECTIONAL_DOTTED;
968
- break;
969
- case 101:
970
- this.$ = r.LINETYPE.SOLID_CROSS;
971
- break;
972
- case 102:
973
- this.$ = r.LINETYPE.DOTTED_CROSS;
974
- break;
975
- case 103:
976
- this.$ = r.LINETYPE.SOLID_POINT;
977
- break;
978
- case 104:
979
- this.$ = r.LINETYPE.DOTTED_POINT;
980
- break;
981
- case 105:
982
- this.$ = r.parseMessage(a[s].trim().substring(1));
983
- break;
984
- }
985
- }, "anonymous"),
986
- table: [
987
- {
988
- 3: 1,
989
- 4: t,
990
- 5: n,
991
- 6: i
992
- },
993
- { 1: [3] },
994
- {
995
- 3: 5,
996
- 4: t,
997
- 5: n,
998
- 6: i
999
- },
1000
- {
1001
- 3: 6,
1002
- 4: t,
1003
- 5: n,
1004
- 6: i
1005
- },
1006
- e([
1007
- 1,
1008
- 4,
1009
- 5,
1010
- 10,
1011
- 14,
1012
- 15,
1013
- 19,
1014
- 22,
1015
- 24,
1016
- 30,
1017
- 31,
1018
- 32,
1019
- 34,
1020
- 36,
1021
- 37,
1022
- 38,
1023
- 39,
1024
- 40,
1025
- 42,
1026
- 44,
1027
- 45,
1028
- 47,
1029
- 51,
1030
- 53,
1031
- 54,
1032
- 56,
1033
- 61,
1034
- 62,
1035
- 63,
1036
- 64,
1037
- 73
1038
- ], a, { 7: 7 }),
1039
- { 1: [2, 1] },
1040
- { 1: [2, 2] },
1041
- {
1042
- 1: [2, 3],
1043
- 4: o,
1044
- 5: s,
1045
- 8: 8,
1046
- 9: 10,
1047
- 10: c,
1048
- 13: 13,
1049
- 14: l,
1050
- 15: u,
1051
- 18: 16,
1052
- 19: d,
1053
- 22: f,
1054
- 23: 41,
1055
- 24: p,
1056
- 25: 20,
1057
- 26: 21,
1058
- 27: 22,
1059
- 28: 23,
1060
- 29: 24,
1061
- 30: m,
1062
- 31: h,
1063
- 32: g,
1064
- 34: _,
1065
- 36: v,
1066
- 37: y,
1067
- 38: b,
1068
- 39: x,
1069
- 40: S,
1070
- 42: C,
1071
- 44: w,
1072
- 45: T,
1073
- 47: E,
1074
- 51: D,
1075
- 53: O,
1076
- 54: k,
1077
- 56: A,
1078
- 61: j,
1079
- 62: M,
1080
- 63: N,
1081
- 64: P,
1082
- 73: F
1083
- },
1084
- e(I, [2, 5]),
1085
- {
1086
- 9: 48,
1087
- 13: 13,
1088
- 14: l,
1089
- 15: u,
1090
- 18: 16,
1091
- 19: d,
1092
- 22: f,
1093
- 23: 41,
1094
- 24: p,
1095
- 25: 20,
1096
- 26: 21,
1097
- 27: 22,
1098
- 28: 23,
1099
- 29: 24,
1100
- 30: m,
1101
- 31: h,
1102
- 32: g,
1103
- 34: _,
1104
- 36: v,
1105
- 37: y,
1106
- 38: b,
1107
- 39: x,
1108
- 40: S,
1109
- 42: C,
1110
- 44: w,
1111
- 45: T,
1112
- 47: E,
1113
- 51: D,
1114
- 53: O,
1115
- 54: k,
1116
- 56: A,
1117
- 61: j,
1118
- 62: M,
1119
- 63: N,
1120
- 64: P,
1121
- 73: F
1122
- },
1123
- e(I, [2, 7]),
1124
- e(I, [2, 8]),
1125
- e(I, [2, 9]),
1126
- e(I, [2, 15]),
1127
- {
1128
- 13: 49,
1129
- 51: D,
1130
- 53: O,
1131
- 54: k
1132
- },
1133
- { 16: [1, 50] },
1134
- { 5: [1, 51] },
1135
- {
1136
- 5: [1, 54],
1137
- 20: [1, 52],
1138
- 21: [1, 53]
1139
- },
1140
- {
1141
- 23: 55,
1142
- 73: F
1143
- },
1144
- {
1145
- 23: 56,
1146
- 73: F
1147
- },
1148
- { 5: [1, 57] },
1149
- { 5: [1, 58] },
1150
- { 5: [1, 59] },
1151
- { 5: [1, 60] },
1152
- { 5: [1, 61] },
1153
- e(I, [2, 30]),
1154
- e(I, [2, 31]),
1155
- { 33: [1, 62] },
1156
- { 35: [1, 63] },
1157
- e(I, [2, 34]),
1158
- { 16: [1, 64] },
1159
- { 16: [1, 65] },
1160
- { 16: [1, 66] },
1161
- { 16: [1, 67] },
1162
- { 16: [1, 68] },
1163
- { 16: [1, 69] },
1164
- { 16: [1, 70] },
1165
- { 16: [1, 71] },
1166
- {
1167
- 23: 72,
1168
- 55: 73,
1169
- 73: ee
1170
- },
1171
- {
1172
- 23: 75,
1173
- 55: 76,
1174
- 73: ee
1175
- },
1176
- {
1177
- 23: 77,
1178
- 73: F
1179
- },
1180
- {
1181
- 69: 78,
1182
- 72: [1, 79],
1183
- 78: te,
1184
- 79: ne,
1185
- 80: re,
1186
- 81: ie,
1187
- 82: L,
1188
- 83: R,
1189
- 84: z,
1190
- 85: ae,
1191
- 86: B,
1192
- 87: V,
1193
- 88: oe,
1194
- 89: H,
1195
- 90: U,
1196
- 91: W,
1197
- 92: se,
1198
- 93: G,
1199
- 94: ce,
1200
- 95: le,
1201
- 96: ue,
1202
- 97: de,
1203
- 98: fe,
1204
- 99: pe,
1205
- 100: me,
1206
- 101: he,
1207
- 102: ge,
1208
- 103: _e
1209
- },
1210
- {
1211
- 57: 106,
1212
- 59: [1, 107],
1213
- 67: [1, 108],
1214
- 68: [1, 109]
1215
- },
1216
- {
1217
- 23: 110,
1218
- 73: F
1219
- },
1220
- {
1221
- 23: 111,
1222
- 73: F
1223
- },
1224
- {
1225
- 23: 112,
1226
- 73: F
1227
- },
1228
- {
1229
- 23: 113,
1230
- 73: F
1231
- },
1232
- e([
1233
- 5,
1234
- 66,
1235
- 72,
1236
- 78,
1237
- 79,
1238
- 80,
1239
- 81,
1240
- 82,
1241
- 83,
1242
- 84,
1243
- 85,
1244
- 86,
1245
- 87,
1246
- 88,
1247
- 89,
1248
- 90,
1249
- 91,
1250
- 92,
1251
- 93,
1252
- 94,
1253
- 95,
1254
- 96,
1255
- 97,
1256
- 98,
1257
- 99,
1258
- 100,
1259
- 101,
1260
- 102,
1261
- 103,
1262
- 104
1263
- ], ve),
1264
- e(I, [2, 6]),
1265
- e(I, [2, 16]),
1266
- e(ye, [2, 10], { 11: 114 }),
1267
- e(I, [2, 18]),
1268
- {
1269
- 5: [1, 116],
1270
- 20: [1, 115]
1271
- },
1272
- { 5: [1, 117] },
1273
- e(I, [2, 22]),
1274
- { 5: [1, 118] },
1275
- { 5: [1, 119] },
1276
- e(I, [2, 25]),
1277
- e(I, [2, 26]),
1278
- e(I, [2, 27]),
1279
- e(I, [2, 28]),
1280
- e(I, [2, 29]),
1281
- e(I, [2, 32]),
1282
- e(I, [2, 33]),
1283
- e(be, a, { 7: 120 }),
1284
- e(be, a, { 7: 121 }),
1285
- e(be, a, { 7: 122 }),
1286
- e(xe, a, {
1287
- 41: 123,
1288
- 7: 124
1289
- }),
1290
- e(Se, a, {
1291
- 43: 125,
1292
- 7: 126
1293
- }),
1294
- e(Se, a, {
1295
- 7: 126,
1296
- 43: 127
1297
- }),
1298
- e(Ce, a, {
1299
- 46: 128,
1300
- 7: 129
1301
- }),
1302
- e(be, a, { 7: 130 }),
1303
- {
1304
- 5: [1, 132],
1305
- 52: [1, 131]
1306
- },
1307
- {
1308
- 5: [1, 134],
1309
- 52: [1, 133]
1310
- },
1311
- e(we, ve, {
1312
- 74: 135,
1313
- 75: [1, 136]
1314
- }),
1315
- {
1316
- 5: [1, 138],
1317
- 52: [1, 137]
1318
- },
1319
- {
1320
- 5: [1, 140],
1321
- 52: [1, 139]
1322
- },
1323
- { 5: [1, 141] },
1324
- {
1325
- 23: 145,
1326
- 70: [1, 142],
1327
- 71: [1, 143],
1328
- 72: [1, 144],
1329
- 73: F
1330
- },
1331
- {
1332
- 69: 146,
1333
- 78: te,
1334
- 79: ne,
1335
- 80: re,
1336
- 81: ie,
1337
- 82: L,
1338
- 83: R,
1339
- 84: z,
1340
- 85: ae,
1341
- 86: B,
1342
- 87: V,
1343
- 88: oe,
1344
- 89: H,
1345
- 90: U,
1346
- 91: W,
1347
- 92: se,
1348
- 93: G,
1349
- 94: ce,
1350
- 95: le,
1351
- 96: ue,
1352
- 97: de,
1353
- 98: fe,
1354
- 99: pe,
1355
- 100: me,
1356
- 101: he,
1357
- 102: ge,
1358
- 103: _e
1359
- },
1360
- e(K, [2, 79]),
1361
- e(K, [2, 80]),
1362
- e(K, [2, 81]),
1363
- e(K, [2, 82]),
1364
- e(K, [2, 83]),
1365
- e(K, [2, 84]),
1366
- e(K, [2, 85]),
1367
- e(K, [2, 86]),
1368
- e(K, [2, 87]),
1369
- e(K, [2, 88]),
1370
- e(K, [2, 89]),
1371
- e(K, [2, 90]),
1372
- e(K, [2, 91]),
1373
- e(K, [2, 92]),
1374
- e(K, [2, 93]),
1375
- e(K, [2, 94]),
1376
- e(K, [2, 95]),
1377
- e(K, [2, 96]),
1378
- e(K, [2, 97]),
1379
- e(K, [2, 98]),
1380
- e(K, [2, 99]),
1381
- e(K, [2, 100]),
1382
- e(K, [2, 101]),
1383
- e(K, [2, 102]),
1384
- e(K, [2, 103]),
1385
- e(K, [2, 104]),
1386
- {
1387
- 23: 147,
1388
- 73: F
1389
- },
1390
- {
1391
- 23: 149,
1392
- 60: 148,
1393
- 73: F
1394
- },
1395
- { 73: [2, 68] },
1396
- { 73: [2, 69] },
1397
- {
1398
- 58: 150,
1399
- 104: q
1400
- },
1401
- {
1402
- 58: 152,
1403
- 104: q
1404
- },
1405
- {
1406
- 58: 153,
1407
- 104: q
1408
- },
1409
- {
1410
- 58: 154,
1411
- 104: q
1412
- },
1413
- {
1414
- 4: [1, 157],
1415
- 5: [1, 159],
1416
- 12: 156,
1417
- 13: 158,
1418
- 17: [1, 155],
1419
- 51: D,
1420
- 53: O,
1421
- 54: k
1422
- },
1423
- { 5: [1, 160] },
1424
- e(I, [2, 20]),
1425
- e(I, [2, 21]),
1426
- e(I, [2, 23]),
1427
- e(I, [2, 24]),
1428
- {
1429
- 4: o,
1430
- 5: s,
1431
- 8: 8,
1432
- 9: 10,
1433
- 10: c,
1434
- 13: 13,
1435
- 14: l,
1436
- 15: u,
1437
- 17: [1, 161],
1438
- 18: 16,
1439
- 19: d,
1440
- 22: f,
1441
- 23: 41,
1442
- 24: p,
1443
- 25: 20,
1444
- 26: 21,
1445
- 27: 22,
1446
- 28: 23,
1447
- 29: 24,
1448
- 30: m,
1449
- 31: h,
1450
- 32: g,
1451
- 34: _,
1452
- 36: v,
1453
- 37: y,
1454
- 38: b,
1455
- 39: x,
1456
- 40: S,
1457
- 42: C,
1458
- 44: w,
1459
- 45: T,
1460
- 47: E,
1461
- 51: D,
1462
- 53: O,
1463
- 54: k,
1464
- 56: A,
1465
- 61: j,
1466
- 62: M,
1467
- 63: N,
1468
- 64: P,
1469
- 73: F
1470
- },
1471
- {
1472
- 4: o,
1473
- 5: s,
1474
- 8: 8,
1475
- 9: 10,
1476
- 10: c,
1477
- 13: 13,
1478
- 14: l,
1479
- 15: u,
1480
- 17: [1, 162],
1481
- 18: 16,
1482
- 19: d,
1483
- 22: f,
1484
- 23: 41,
1485
- 24: p,
1486
- 25: 20,
1487
- 26: 21,
1488
- 27: 22,
1489
- 28: 23,
1490
- 29: 24,
1491
- 30: m,
1492
- 31: h,
1493
- 32: g,
1494
- 34: _,
1495
- 36: v,
1496
- 37: y,
1497
- 38: b,
1498
- 39: x,
1499
- 40: S,
1500
- 42: C,
1501
- 44: w,
1502
- 45: T,
1503
- 47: E,
1504
- 51: D,
1505
- 53: O,
1506
- 54: k,
1507
- 56: A,
1508
- 61: j,
1509
- 62: M,
1510
- 63: N,
1511
- 64: P,
1512
- 73: F
1513
- },
1514
- {
1515
- 4: o,
1516
- 5: s,
1517
- 8: 8,
1518
- 9: 10,
1519
- 10: c,
1520
- 13: 13,
1521
- 14: l,
1522
- 15: u,
1523
- 17: [1, 163],
1524
- 18: 16,
1525
- 19: d,
1526
- 22: f,
1527
- 23: 41,
1528
- 24: p,
1529
- 25: 20,
1530
- 26: 21,
1531
- 27: 22,
1532
- 28: 23,
1533
- 29: 24,
1534
- 30: m,
1535
- 31: h,
1536
- 32: g,
1537
- 34: _,
1538
- 36: v,
1539
- 37: y,
1540
- 38: b,
1541
- 39: x,
1542
- 40: S,
1543
- 42: C,
1544
- 44: w,
1545
- 45: T,
1546
- 47: E,
1547
- 51: D,
1548
- 53: O,
1549
- 54: k,
1550
- 56: A,
1551
- 61: j,
1552
- 62: M,
1553
- 63: N,
1554
- 64: P,
1555
- 73: F
1556
- },
1557
- { 17: [1, 164] },
1558
- {
1559
- 4: o,
1560
- 5: s,
1561
- 8: 8,
1562
- 9: 10,
1563
- 10: c,
1564
- 13: 13,
1565
- 14: l,
1566
- 15: u,
1567
- 17: [2, 47],
1568
- 18: 16,
1569
- 19: d,
1570
- 22: f,
1571
- 23: 41,
1572
- 24: p,
1573
- 25: 20,
1574
- 26: 21,
1575
- 27: 22,
1576
- 28: 23,
1577
- 29: 24,
1578
- 30: m,
1579
- 31: h,
1580
- 32: g,
1581
- 34: _,
1582
- 36: v,
1583
- 37: y,
1584
- 38: b,
1585
- 39: x,
1586
- 40: S,
1587
- 42: C,
1588
- 44: w,
1589
- 45: T,
1590
- 47: E,
1591
- 50: [1, 165],
1592
- 51: D,
1593
- 53: O,
1594
- 54: k,
1595
- 56: A,
1596
- 61: j,
1597
- 62: M,
1598
- 63: N,
1599
- 64: P,
1600
- 73: F
1601
- },
1602
- { 17: [1, 166] },
1603
- {
1604
- 4: o,
1605
- 5: s,
1606
- 8: 8,
1607
- 9: 10,
1608
- 10: c,
1609
- 13: 13,
1610
- 14: l,
1611
- 15: u,
1612
- 17: [2, 45],
1613
- 18: 16,
1614
- 19: d,
1615
- 22: f,
1616
- 23: 41,
1617
- 24: p,
1618
- 25: 20,
1619
- 26: 21,
1620
- 27: 22,
1621
- 28: 23,
1622
- 29: 24,
1623
- 30: m,
1624
- 31: h,
1625
- 32: g,
1626
- 34: _,
1627
- 36: v,
1628
- 37: y,
1629
- 38: b,
1630
- 39: x,
1631
- 40: S,
1632
- 42: C,
1633
- 44: w,
1634
- 45: T,
1635
- 47: E,
1636
- 49: [1, 167],
1637
- 51: D,
1638
- 53: O,
1639
- 54: k,
1640
- 56: A,
1641
- 61: j,
1642
- 62: M,
1643
- 63: N,
1644
- 64: P,
1645
- 73: F
1646
- },
1647
- { 17: [1, 168] },
1648
- { 17: [1, 169] },
1649
- {
1650
- 4: o,
1651
- 5: s,
1652
- 8: 8,
1653
- 9: 10,
1654
- 10: c,
1655
- 13: 13,
1656
- 14: l,
1657
- 15: u,
1658
- 17: [2, 43],
1659
- 18: 16,
1660
- 19: d,
1661
- 22: f,
1662
- 23: 41,
1663
- 24: p,
1664
- 25: 20,
1665
- 26: 21,
1666
- 27: 22,
1667
- 28: 23,
1668
- 29: 24,
1669
- 30: m,
1670
- 31: h,
1671
- 32: g,
1672
- 34: _,
1673
- 36: v,
1674
- 37: y,
1675
- 38: b,
1676
- 39: x,
1677
- 40: S,
1678
- 42: C,
1679
- 44: w,
1680
- 45: T,
1681
- 47: E,
1682
- 48: [1, 170],
1683
- 51: D,
1684
- 53: O,
1685
- 54: k,
1686
- 56: A,
1687
- 61: j,
1688
- 62: M,
1689
- 63: N,
1690
- 64: P,
1691
- 73: F
1692
- },
1693
- {
1694
- 4: o,
1695
- 5: s,
1696
- 8: 8,
1697
- 9: 10,
1698
- 10: c,
1699
- 13: 13,
1700
- 14: l,
1701
- 15: u,
1702
- 17: [1, 171],
1703
- 18: 16,
1704
- 19: d,
1705
- 22: f,
1706
- 23: 41,
1707
- 24: p,
1708
- 25: 20,
1709
- 26: 21,
1710
- 27: 22,
1711
- 28: 23,
1712
- 29: 24,
1713
- 30: m,
1714
- 31: h,
1715
- 32: g,
1716
- 34: _,
1717
- 36: v,
1718
- 37: y,
1719
- 38: b,
1720
- 39: x,
1721
- 40: S,
1722
- 42: C,
1723
- 44: w,
1724
- 45: T,
1725
- 47: E,
1726
- 51: D,
1727
- 53: O,
1728
- 54: k,
1729
- 56: A,
1730
- 61: j,
1731
- 62: M,
1732
- 63: N,
1733
- 64: P,
1734
- 73: F
1735
- },
1736
- { 16: [1, 172] },
1737
- e(I, [2, 50]),
1738
- { 16: [1, 173] },
1739
- e(I, [2, 55]),
1740
- e(we, [2, 76]),
1741
- { 76: [1, 174] },
1742
- { 16: [1, 175] },
1743
- e(I, [2, 52]),
1744
- { 16: [1, 176] },
1745
- e(I, [2, 57]),
1746
- e(I, [2, 53]),
1747
- {
1748
- 23: 177,
1749
- 73: F
1750
- },
1751
- {
1752
- 23: 178,
1753
- 73: F
1754
- },
1755
- {
1756
- 23: 179,
1757
- 73: F
1758
- },
1759
- {
1760
- 58: 180,
1761
- 104: q
1762
- },
1763
- {
1764
- 23: 181,
1765
- 72: [1, 182],
1766
- 73: F
1767
- },
1768
- {
1769
- 58: 183,
1770
- 104: q
1771
- },
1772
- {
1773
- 58: 184,
1774
- 104: q
1775
- },
1776
- {
1777
- 66: [1, 185],
1778
- 104: [2, 67]
1779
- },
1780
- { 5: [2, 60] },
1781
- { 5: [2, 105] },
1782
- { 5: [2, 61] },
1783
- { 5: [2, 62] },
1784
- { 5: [2, 63] },
1785
- e(I, [2, 17]),
1786
- e(ye, [2, 11]),
1787
- {
1788
- 13: 186,
1789
- 51: D,
1790
- 53: O,
1791
- 54: k
1792
- },
1793
- e(ye, [2, 13]),
1794
- e(ye, [2, 14]),
1795
- e(I, [2, 19]),
1796
- e(I, [2, 35]),
1797
- e(I, [2, 36]),
1798
- e(I, [2, 37]),
1799
- e(I, [2, 38]),
1800
- { 16: [1, 187] },
1801
- e(I, [2, 39]),
1802
- { 16: [1, 188] },
1803
- e(I, [2, 40]),
1804
- e(I, [2, 41]),
1805
- { 16: [1, 189] },
1806
- e(I, [2, 42]),
1807
- { 5: [1, 190] },
1808
- { 5: [1, 191] },
1809
- { 77: [1, 192] },
1810
- { 5: [1, 193] },
1811
- { 5: [1, 194] },
1812
- {
1813
- 58: 195,
1814
- 104: q
1815
- },
1816
- {
1817
- 58: 196,
1818
- 104: q
1819
- },
1820
- {
1821
- 58: 197,
1822
- 104: q
1823
- },
1824
- { 5: [2, 75] },
1825
- {
1826
- 58: 198,
1827
- 104: q
1828
- },
1829
- {
1830
- 23: 199,
1831
- 73: F
1832
- },
1833
- { 5: [2, 58] },
1834
- { 5: [2, 59] },
1835
- {
1836
- 23: 200,
1837
- 73: F
1838
- },
1839
- e(ye, [2, 12]),
1840
- e(xe, a, {
1841
- 7: 124,
1842
- 41: 201
1843
- }),
1844
- e(Se, a, {
1845
- 7: 126,
1846
- 43: 202
1847
- }),
1848
- e(Ce, a, {
1849
- 7: 129,
1850
- 46: 203
1851
- }),
1852
- e(I, [2, 49]),
1853
- e(I, [2, 54]),
1854
- e(we, [2, 77]),
1855
- e(I, [2, 51]),
1856
- e(I, [2, 56]),
1857
- { 5: [2, 70] },
1858
- { 5: [2, 71] },
1859
- { 5: [2, 72] },
1860
- { 5: [2, 73] },
1861
- {
1862
- 58: 204,
1863
- 104: q
1864
- },
1865
- { 104: [2, 66] },
1866
- { 17: [2, 48] },
1867
- { 17: [2, 46] },
1868
- { 17: [2, 44] },
1869
- { 5: [2, 74] }
1870
- ],
1871
- defaultActions: {
1872
- 5: [2, 1],
1873
- 6: [2, 2],
1874
- 108: [2, 68],
1875
- 109: [2, 69],
1876
- 150: [2, 60],
1877
- 151: [2, 105],
1878
- 152: [2, 61],
1879
- 153: [2, 62],
1880
- 154: [2, 63],
1881
- 180: [2, 75],
1882
- 183: [2, 58],
1883
- 184: [2, 59],
1884
- 195: [2, 70],
1885
- 196: [2, 71],
1886
- 197: [2, 72],
1887
- 198: [2, 73],
1888
- 200: [2, 66],
1889
- 201: [2, 48],
1890
- 202: [2, 46],
1891
- 203: [2, 44],
1892
- 204: [2, 74]
1893
- },
1894
- parseError: /* @__PURE__ */ r(function(e, t) {
1895
- if (t.recoverable) this.trace(e);
1896
- else {
1897
- var n = Error(e);
1898
- throw n.hash = t, n;
1899
- }
1900
- }, "parseError"),
1901
- parse: /* @__PURE__ */ r(function(e) {
1902
- var t = this, n = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1903
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1904
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1905
- var v = h.yylloc;
1906
- o.push(v);
1907
- var y = h.options && h.options.ranges;
1908
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1909
- function b(e) {
1910
- n.length -= 2 * e, a.length -= e, o.length -= e;
1911
- }
1912
- r(b, "popStack");
1913
- function x() {
1914
- var e = i.pop() || h.lex() || p;
1915
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1916
- }
1917
- r(x, "lex");
1918
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1919
- if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1920
- var M = "";
1921
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1922
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1923
- text: h.match,
1924
- token: this.terminals_[S] || S,
1925
- line: h.yylineno,
1926
- loc: v,
1927
- expected: j
1928
- });
1929
- }
1930
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1931
- switch (T[0]) {
1932
- case 1:
1933
- n.push(S), a.push(h.yytext), o.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1934
- break;
1935
- case 2:
1936
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1937
- first_line: o[o.length - (k || 1)].first_line,
1938
- last_line: o[o.length - 1].last_line,
1939
- first_column: o[o.length - (k || 1)].first_column,
1940
- last_column: o[o.length - 1].last_column
1941
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1942
- c,
1943
- u,
1944
- l,
1945
- g.yy,
1946
- T[1],
1947
- a,
1948
- o
1949
- ].concat(m)), E !== void 0) return E;
1950
- k && (n = n.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[n[n.length - 2]][n[n.length - 1]], n.push(A);
1951
- break;
1952
- case 3: return !0;
1953
- }
1954
- }
1955
- return !0;
1956
- }, "parse")
1957
- };
1958
- Te.lexer = /* @__PURE__ */ (function() {
1959
- return {
1960
- EOF: 1,
1961
- parseError: /* @__PURE__ */ r(function(e, t) {
1962
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1963
- else throw Error(e);
1964
- }, "parseError"),
1965
- setInput: /* @__PURE__ */ r(function(e, t) {
1966
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1967
- first_line: 1,
1968
- first_column: 0,
1969
- last_line: 1,
1970
- last_column: 0
1971
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1972
- }, "setInput"),
1973
- input: /* @__PURE__ */ r(function() {
1974
- var e = this._input[0];
1975
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1976
- }, "input"),
1977
- unput: /* @__PURE__ */ r(function(e) {
1978
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1979
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1980
- var r = this.match.split(/(?:\r\n?|\n)/g);
1981
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1982
- var i = this.yylloc.range;
1983
- return this.yylloc = {
1984
- first_line: this.yylloc.first_line,
1985
- last_line: this.yylineno + 1,
1986
- first_column: this.yylloc.first_column,
1987
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1988
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1989
- }, "unput"),
1990
- more: /* @__PURE__ */ r(function() {
1991
- return this._more = !0, this;
1992
- }, "more"),
1993
- reject: /* @__PURE__ */ r(function() {
1994
- if (this.options.backtrack_lexer) this._backtrack = !0;
1995
- else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1996
- text: "",
1997
- token: null,
1998
- line: this.yylineno
1999
- });
2000
- return this;
2001
- }, "reject"),
2002
- less: /* @__PURE__ */ r(function(e) {
2003
- this.unput(this.match.slice(e));
2004
- }, "less"),
2005
- pastInput: /* @__PURE__ */ r(function() {
2006
- var e = this.matched.substr(0, this.matched.length - this.match.length);
2007
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2008
- }, "pastInput"),
2009
- upcomingInput: /* @__PURE__ */ r(function() {
2010
- var e = this.match;
2011
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2012
- }, "upcomingInput"),
2013
- showPosition: /* @__PURE__ */ r(function() {
2014
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
2015
- return e + this.upcomingInput() + "\n" + t + "^";
2016
- }, "showPosition"),
2017
- test_match: /* @__PURE__ */ r(function(e, t) {
2018
- var n, r, i;
2019
- if (this.options.backtrack_lexer && (i = {
2020
- yylineno: this.yylineno,
2021
- yylloc: {
2022
- first_line: this.yylloc.first_line,
2023
- last_line: this.last_line,
2024
- first_column: this.yylloc.first_column,
2025
- last_column: this.yylloc.last_column
2026
- },
2027
- yytext: this.yytext,
2028
- match: this.match,
2029
- matches: this.matches,
2030
- matched: this.matched,
2031
- yyleng: this.yyleng,
2032
- offset: this.offset,
2033
- _more: this._more,
2034
- _input: this._input,
2035
- yy: this.yy,
2036
- conditionStack: this.conditionStack.slice(0),
2037
- done: this.done
2038
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
2039
- first_line: this.yylloc.last_line,
2040
- last_line: this.yylineno + 1,
2041
- first_column: this.yylloc.last_column,
2042
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
2043
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
2044
- if (this._backtrack) {
2045
- for (var a in i) this[a] = i[a];
2046
- return !1;
2047
- }
2048
- return !1;
2049
- }, "test_match"),
2050
- next: /* @__PURE__ */ r(function() {
2051
- if (this.done) return this.EOF;
2052
- this._input || (this.done = !0);
2053
- var e, t, n, r;
2054
- this._more || (this.yytext = "", this.match = "");
2055
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
2056
- if (t = n, r = a, this.options.backtrack_lexer) {
2057
- if (e = this.test_match(n, i[a]), e !== !1) return e;
2058
- if (this._backtrack) {
2059
- t = !1;
2060
- continue;
2061
- } else return !1;
2062
- } else if (!this.options.flex) break;
2063
- }
2064
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2065
- text: "",
2066
- token: null,
2067
- line: this.yylineno
2068
- });
2069
- }, "next"),
2070
- lex: /* @__PURE__ */ r(function() {
2071
- return this.next() || this.lex();
2072
- }, "lex"),
2073
- begin: /* @__PURE__ */ r(function(e) {
2074
- this.conditionStack.push(e);
2075
- }, "begin"),
2076
- popState: /* @__PURE__ */ r(function() {
2077
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2078
- }, "popState"),
2079
- _currentRules: /* @__PURE__ */ r(function() {
2080
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2081
- }, "_currentRules"),
2082
- topState: /* @__PURE__ */ r(function(e) {
2083
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2084
- }, "topState"),
2085
- pushState: /* @__PURE__ */ r(function(e) {
2086
- this.begin(e);
2087
- }, "pushState"),
2088
- stateStackSize: /* @__PURE__ */ r(function() {
2089
- return this.conditionStack.length;
2090
- }, "stateStackSize"),
2091
- options: { "case-insensitive": !0 },
2092
- performAction: /* @__PURE__ */ r(function(e, t, n, r) {
2093
- switch (n) {
2094
- case 0: return 5;
2095
- case 1: break;
2096
- case 2: break;
2097
- case 3: break;
2098
- case 4: break;
2099
- case 5: break;
2100
- case 6: return 20;
2101
- case 7: return this.begin("CONFIG"), 75;
2102
- case 8: return 76;
2103
- case 9: return this.popState(), this.begin("ALIAS"), 77;
2104
- case 10: return this.popState(), this.popState(), 77;
2105
- case 11: return t.yytext = t.yytext.trim(), 73;
2106
- case 12: return t.yytext = t.yytext.trim(), this.begin("ALIAS"), 73;
2107
- case 13: return t.yytext = t.yytext.trim(), this.popState(), 73;
2108
- case 14: return this.popState(), 10;
2109
- case 15: return this.begin("LINE"), 15;
2110
- case 16: return this.begin("ID"), 51;
2111
- case 17: return this.begin("ID"), 53;
2112
- case 18: return 14;
2113
- case 19: return this.begin("ID"), 54;
2114
- case 20: return this.popState(), this.popState(), this.begin("LINE"), 52;
2115
- case 21: return this.popState(), this.popState(), 5;
2116
- case 22: return this.begin("LINE"), 37;
2117
- case 23: return this.begin("LINE"), 38;
2118
- case 24: return this.begin("LINE"), 39;
2119
- case 25: return this.begin("LINE"), 40;
2120
- case 26: return this.begin("LINE"), 50;
2121
- case 27: return this.begin("LINE"), 42;
2122
- case 28: return this.begin("LINE"), 44;
2123
- case 29: return this.begin("LINE"), 49;
2124
- case 30: return this.begin("LINE"), 45;
2125
- case 31: return this.begin("LINE"), 48;
2126
- case 32: return this.begin("LINE"), 47;
2127
- case 33: return this.popState(), 16;
2128
- case 34: return 17;
2129
- case 35: return 67;
2130
- case 36: return 68;
2131
- case 37: return 61;
2132
- case 38: return 62;
2133
- case 39: return 63;
2134
- case 40: return 64;
2135
- case 41: return 59;
2136
- case 42: return 56;
2137
- case 43: return this.begin("ID"), 22;
2138
- case 44: return this.begin("ID"), 24;
2139
- case 45: return 30;
2140
- case 46: return 31;
2141
- case 47: return this.begin("acc_title"), 32;
2142
- case 48: return this.popState(), "acc_title_value";
2143
- case 49: return this.begin("acc_descr"), 34;
2144
- case 50: return this.popState(), "acc_descr_value";
2145
- case 51:
2146
- this.begin("acc_descr_multiline");
2147
- break;
2148
- case 52:
2149
- this.popState();
2150
- break;
2151
- case 53: return "acc_descr_multiline_value";
2152
- case 54: return 6;
2153
- case 55: return 19;
2154
- case 56: return 21;
2155
- case 57: return 66;
2156
- case 58: return 5;
2157
- case 59: return t.yytext = t.yytext.trim(), 73;
2158
- case 60: return 80;
2159
- case 61: return 97;
2160
- case 62: return 98;
2161
- case 63: return 99;
2162
- case 64: return 78;
2163
- case 65: return 79;
2164
- case 66: return 100;
2165
- case 67: return 101;
2166
- case 68: return 102;
2167
- case 69: return 103;
2168
- case 70: return 85;
2169
- case 71: return 86;
2170
- case 72: return 87;
2171
- case 73: return 88;
2172
- case 74: return 93;
2173
- case 75: return 94;
2174
- case 76: return 95;
2175
- case 77: return 96;
2176
- case 78: return 81;
2177
- case 79: return 82;
2178
- case 80: return 83;
2179
- case 81: return 84;
2180
- case 82: return 89;
2181
- case 83: return 90;
2182
- case 84: return 91;
2183
- case 85: return 92;
2184
- case 86: return 104;
2185
- case 87: return 104;
2186
- case 88: return 70;
2187
- case 89: return 71;
2188
- case 90: return 72;
2189
- case 91: return 5;
2190
- case 92: return 10;
2191
- }
2192
- }, "anonymous"),
2193
- rules: [
2194
- /^(?:[\n]+)/i,
2195
- /^(?:\s+)/i,
2196
- /^(?:((?!\n)\s)+)/i,
2197
- /^(?:#[^\n]*)/i,
2198
- /^(?:%(?!\{)[^\n]*)/i,
2199
- /^(?:[^\}]%%[^\n]*)/i,
2200
- /^(?:[0-9]+(?=[ \n]+))/i,
2201
- /^(?:@\{)/i,
2202
- /^(?:[^\}]+)/i,
2203
- /^(?:\}(?=\s+as\s))/i,
2204
- /^(?:\})/i,
2205
- /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2206
- /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2207
- /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2208
- /^(?:[^<>:\n,;@]*<[^\n]*)/i,
2209
- /^(?:box\b)/i,
2210
- /^(?:participant\b)/i,
2211
- /^(?:actor\b)/i,
2212
- /^(?:create\b)/i,
2213
- /^(?:destroy\b)/i,
2214
- /^(?:as\b)/i,
2215
- /^(?:(?:))/i,
2216
- /^(?:loop\b)/i,
2217
- /^(?:rect\b)/i,
2218
- /^(?:opt\b)/i,
2219
- /^(?:alt\b)/i,
2220
- /^(?:else\b)/i,
2221
- /^(?:par\b)/i,
2222
- /^(?:par_over\b)/i,
2223
- /^(?:and\b)/i,
2224
- /^(?:critical\b)/i,
2225
- /^(?:option\b)/i,
2226
- /^(?:break\b)/i,
2227
- /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
2228
- /^(?:end\b)/i,
2229
- /^(?:left of\b)/i,
2230
- /^(?:right of\b)/i,
2231
- /^(?:links\b)/i,
2232
- /^(?:link\b)/i,
2233
- /^(?:properties\b)/i,
2234
- /^(?:details\b)/i,
2235
- /^(?:over\b)/i,
2236
- /^(?:note\b)/i,
2237
- /^(?:activate\b)/i,
2238
- /^(?:deactivate\b)/i,
2239
- /^(?:title\s[^#\n;]+)/i,
2240
- /^(?:title:\s[^#\n;]+)/i,
2241
- /^(?:accTitle\s*:\s*)/i,
2242
- /^(?:(?!\n||)*[^\n]*)/i,
2243
- /^(?:accDescr\s*:\s*)/i,
2244
- /^(?:(?!\n||)*[^\n]*)/i,
2245
- /^(?:accDescr\s*\{\s*)/i,
2246
- /^(?:[\}])/i,
2247
- /^(?:[^\}]*)/i,
2248
- /^(?:sequenceDiagram\b)/i,
2249
- /^(?:autonumber\b)/i,
2250
- /^(?:off\b)/i,
2251
- /^(?:,)/i,
2252
- /^(?:;)/i,
2253
- /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
2254
- /^(?:->>)/i,
2255
- /^(?:<<->>)/i,
2256
- /^(?:-->>)/i,
2257
- /^(?:<<-->>)/i,
2258
- /^(?:->)/i,
2259
- /^(?:-->)/i,
2260
- /^(?:-[x])/i,
2261
- /^(?:--[x])/i,
2262
- /^(?:-[\)])/i,
2263
- /^(?:--[\)])/i,
2264
- /^(?:--\|\\)/i,
2265
- /^(?:--\|\/)/i,
2266
- /^(?:--\\\\)/i,
2267
- /^(?:--\/\/)/i,
2268
- /^(?:\/\|--)/i,
2269
- /^(?:\\\|--)/i,
2270
- /^(?:\/\/--)/i,
2271
- /^(?:\\\\--)/i,
2272
- /^(?:-\|\\)/i,
2273
- /^(?:-\|\/)/i,
2274
- /^(?:-\\\\)/i,
2275
- /^(?:-\/\/)/i,
2276
- /^(?:\/\|-)/i,
2277
- /^(?:\\\|-)/i,
2278
- /^(?:\/\/-)/i,
2279
- /^(?:\\\\-)/i,
2280
- /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
2281
- /^(?::)/i,
2282
- /^(?:\+)/i,
2283
- /^(?:-)/i,
2284
- /^(?:\(\))/i,
2285
- /^(?:$)/i,
2286
- /^(?:.)/i
2287
- ],
2288
- conditions: {
2289
- acc_descr_multiline: {
2290
- rules: [52, 53],
2291
- inclusive: !1
2292
- },
2293
- acc_descr: {
2294
- rules: [50],
2295
- inclusive: !1
2296
- },
2297
- acc_title: {
2298
- rules: [48],
2299
- inclusive: !1
2300
- },
2301
- ID: {
2302
- rules: [
2303
- 2,
2304
- 3,
2305
- 7,
2306
- 11,
2307
- 12,
2308
- 13,
2309
- 14
2310
- ],
2311
- inclusive: !1
2312
- },
2313
- ALIAS: {
2314
- rules: [
2315
- 2,
2316
- 3,
2317
- 20,
2318
- 21
2319
- ],
2320
- inclusive: !1
2321
- },
2322
- LINE: {
2323
- rules: [
2324
- 2,
2325
- 3,
2326
- 33
2327
- ],
2328
- inclusive: !1
2329
- },
2330
- CONFIG: {
2331
- rules: [
2332
- 8,
2333
- 9,
2334
- 10
2335
- ],
2336
- inclusive: !1
2337
- },
2338
- CONFIG_DATA: {
2339
- rules: [],
2340
- inclusive: !1
2341
- },
2342
- INITIAL: {
2343
- rules: [
2344
- 0,
2345
- 1,
2346
- 3,
2347
- 4,
2348
- 5,
2349
- 6,
2350
- 15,
2351
- 16,
2352
- 17,
2353
- 18,
2354
- 19,
2355
- 22,
2356
- 23,
2357
- 24,
2358
- 25,
2359
- 26,
2360
- 27,
2361
- 28,
2362
- 29,
2363
- 30,
2364
- 31,
2365
- 32,
2366
- 34,
2367
- 35,
2368
- 36,
2369
- 37,
2370
- 38,
2371
- 39,
2372
- 40,
2373
- 41,
2374
- 42,
2375
- 43,
2376
- 44,
2377
- 45,
2378
- 46,
2379
- 47,
2380
- 49,
2381
- 51,
2382
- 54,
2383
- 55,
2384
- 56,
2385
- 57,
2386
- 58,
2387
- 59,
2388
- 60,
2389
- 61,
2390
- 62,
2391
- 63,
2392
- 64,
2393
- 65,
2394
- 66,
2395
- 67,
2396
- 68,
2397
- 69,
2398
- 70,
2399
- 71,
2400
- 72,
2401
- 73,
2402
- 74,
2403
- 75,
2404
- 76,
2405
- 77,
2406
- 78,
2407
- 79,
2408
- 80,
2409
- 81,
2410
- 82,
2411
- 83,
2412
- 84,
2413
- 85,
2414
- 86,
2415
- 87,
2416
- 88,
2417
- 89,
2418
- 90,
2419
- 91,
2420
- 92
2421
- ],
2422
- inclusive: !0
2423
- }
2424
- }
2425
- };
2426
- })();
2427
- function Ee() {
2428
- this.yy = {};
2429
- }
2430
- return r(Ee, "Parser"), Ee.prototype = Te, Te.Parser = Ee, new Ee();
2431
- })();
2432
- P.parser = P;
2433
- var F = P, I = {
2434
- SOLID: 0,
2435
- DOTTED: 1,
2436
- NOTE: 2,
2437
- SOLID_CROSS: 3,
2438
- DOTTED_CROSS: 4,
2439
- SOLID_OPEN: 5,
2440
- DOTTED_OPEN: 6,
2441
- LOOP_START: 10,
2442
- LOOP_END: 11,
2443
- ALT_START: 12,
2444
- ALT_ELSE: 13,
2445
- ALT_END: 14,
2446
- OPT_START: 15,
2447
- OPT_END: 16,
2448
- ACTIVE_START: 17,
2449
- ACTIVE_END: 18,
2450
- PAR_START: 19,
2451
- PAR_AND: 20,
2452
- PAR_END: 21,
2453
- RECT_START: 22,
2454
- RECT_END: 23,
2455
- SOLID_POINT: 24,
2456
- DOTTED_POINT: 25,
2457
- AUTONUMBER: 26,
2458
- CRITICAL_START: 27,
2459
- CRITICAL_OPTION: 28,
2460
- CRITICAL_END: 29,
2461
- BREAK_START: 30,
2462
- BREAK_END: 31,
2463
- PAR_OVER_START: 32,
2464
- BIDIRECTIONAL_SOLID: 33,
2465
- BIDIRECTIONAL_DOTTED: 34,
2466
- SOLID_TOP: 41,
2467
- SOLID_BOTTOM: 42,
2468
- STICK_TOP: 43,
2469
- STICK_BOTTOM: 44,
2470
- SOLID_ARROW_TOP_REVERSE: 45,
2471
- SOLID_ARROW_BOTTOM_REVERSE: 46,
2472
- STICK_ARROW_TOP_REVERSE: 47,
2473
- STICK_ARROW_BOTTOM_REVERSE: 48,
2474
- SOLID_TOP_DOTTED: 51,
2475
- SOLID_BOTTOM_DOTTED: 52,
2476
- STICK_TOP_DOTTED: 53,
2477
- STICK_BOTTOM_DOTTED: 54,
2478
- SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
2479
- SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
2480
- STICK_ARROW_TOP_REVERSE_DOTTED: 57,
2481
- STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
2482
- CENTRAL_CONNECTION: 59,
2483
- CENTRAL_CONNECTION_REVERSE: 60,
2484
- CENTRAL_CONNECTION_DUAL: 61
2485
- }, ee = {
2486
- FILLED: 0,
2487
- OPEN: 1
2488
- }, te = {
2489
- LEFTOF: 0,
2490
- RIGHTOF: 1,
2491
- OVER: 2
2492
- }, ne = {
2493
- ACTOR: "actor",
2494
- BOUNDARY: "boundary",
2495
- COLLECTIONS: "collections",
2496
- CONTROL: "control",
2497
- DATABASE: "database",
2498
- ENTITY: "entity",
2499
- PARTICIPANT: "participant",
2500
- QUEUE: "queue"
2501
- }, re = class {
2502
- constructor() {
2503
- this.state = new M(() => ({
2504
- prevActor: void 0,
2505
- actors: /* @__PURE__ */ new Map(),
2506
- createdActors: /* @__PURE__ */ new Map(),
2507
- destroyedActors: /* @__PURE__ */ new Map(),
2508
- boxes: [],
2509
- messages: [],
2510
- notes: [],
2511
- sequenceNumbersEnabled: !1,
2512
- wrapEnabled: void 0,
2513
- currentBox: void 0,
2514
- lastCreated: void 0,
2515
- lastDestroyed: void 0
2516
- })), this.setAccTitle = d, this.setAccDescription = a, this.setDiagramTitle = f, this.getAccTitle = x, this.getAccDescription = p, this.getDiagramTitle = o, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(h().wrap), this.LINETYPE = I, this.ARROWTYPE = ee, this.PLACEMENT = te;
2517
- }
2518
- static {
2519
- r(this, "SequenceDB");
2520
- }
2521
- addBox(e) {
2522
- this.state.records.boxes.push({
2523
- name: e.text,
2524
- wrap: e.wrap ?? this.autoWrap(),
2525
- fill: e.color,
2526
- actorKeys: []
2527
- }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2528
- }
2529
- addActor(e, t, n, r, i) {
2530
- let a = this.state.records.currentBox, o;
2531
- if (i !== void 0) {
2532
- let e;
2533
- e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = A(e, { schema: j });
2534
- }
2535
- r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
2536
- text: o.alias,
2537
- wrap: n?.wrap,
2538
- type: r
2539
- });
2540
- let s = this.state.records.actors.get(e);
2541
- if (s) {
2542
- 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.`);
2543
- if (a = s.box ? s.box : this.state.records.currentBox, s.box = a, s && t === s.name && n == null) return;
2544
- }
2545
- if (n?.text ?? (n = {
2546
- text: t,
2547
- type: r
2548
- }), (r == null || n.text == null) && (n = {
2549
- text: t,
2550
- type: r
2551
- }), this.state.records.actors.set(e, {
2552
- box: a,
2553
- name: t,
2554
- description: n.text,
2555
- wrap: n.wrap ?? this.autoWrap(),
2556
- prevActor: this.state.records.prevActor,
2557
- links: {},
2558
- properties: {},
2559
- actorCnt: null,
2560
- rectData: null,
2561
- type: r ?? "participant"
2562
- }), this.state.records.prevActor) {
2563
- let t = this.state.records.actors.get(this.state.records.prevActor);
2564
- t && (t.nextActor = e);
2565
- }
2566
- this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
2567
- }
2568
- activationCount(e) {
2569
- let t, n = 0;
2570
- if (!e) return 0;
2571
- 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--;
2572
- return n;
2573
- }
2574
- addMessage(e, t, n, r) {
2575
- this.state.records.messages.push({
2576
- id: this.state.records.messages.length.toString(),
2577
- from: e,
2578
- to: t,
2579
- message: n.text,
2580
- wrap: n.wrap ?? this.autoWrap(),
2581
- answer: r
2582
- });
2583
- }
2584
- addSignal(e, t, n, r, i = !1, a) {
2585
- if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
2586
- let t = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + e + ")");
2587
- throw t.hash = {
2588
- text: "->>-",
2589
- token: "->>-",
2590
- line: "1",
2591
- loc: {
2592
- first_line: 1,
2593
- last_line: 1,
2594
- first_column: 1,
2595
- last_column: 1
2596
- },
2597
- expected: ["'ACTIVE_PARTICIPANT'"]
2598
- }, t;
2599
- }
2600
- return this.state.records.messages.push({
2601
- id: this.state.records.messages.length.toString(),
2602
- from: e,
2603
- to: t,
2604
- message: n?.text ?? "",
2605
- wrap: n?.wrap ?? this.autoWrap(),
2606
- type: r,
2607
- activate: i,
2608
- centralConnection: a ?? 0
2609
- }), !0;
2610
- }
2611
- hasAtLeastOneBox() {
2612
- return this.state.records.boxes.length > 0;
2613
- }
2614
- hasAtLeastOneBoxWithTitle() {
2615
- return this.state.records.boxes.some((e) => e.name);
2616
- }
2617
- getMessages() {
2618
- return this.state.records.messages;
2619
- }
2620
- getBoxes() {
2621
- return this.state.records.boxes;
2622
- }
2623
- getActors() {
2624
- return this.state.records.actors;
2625
- }
2626
- getCreatedActors() {
2627
- return this.state.records.createdActors;
2628
- }
2629
- getDestroyedActors() {
2630
- return this.state.records.destroyedActors;
2631
- }
2632
- getActor(e) {
2633
- return this.state.records.actors.get(e);
2634
- }
2635
- getActorKeys() {
2636
- return [...this.state.records.actors.keys()];
2637
- }
2638
- enableSequenceNumbers() {
2639
- this.state.records.sequenceNumbersEnabled = !0;
2640
- }
2641
- disableSequenceNumbers() {
2642
- this.state.records.sequenceNumbersEnabled = !1;
2643
- }
2644
- showSequenceNumbers() {
2645
- return this.state.records.sequenceNumbersEnabled;
2646
- }
2647
- setWrap(e) {
2648
- this.state.records.wrapEnabled = e;
2649
- }
2650
- extractWrap(e) {
2651
- if (e === void 0) return {};
2652
- e = e.trim();
2653
- let t = /^:?wrap:/.exec(e) === null ? /^:?nowrap:/.exec(e) === null ? void 0 : !1 : !0;
2654
- return {
2655
- cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
2656
- wrap: t
2657
- };
2658
- }
2659
- autoWrap() {
2660
- return this.state.records.wrapEnabled === void 0 ? h().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2661
- }
2662
- clear() {
2663
- this.state.reset(), m();
2664
- }
2665
- parseMessage(e) {
2666
- let t = e.trim(), { wrap: n, cleanedText: r } = this.extractWrap(t), a = {
2667
- text: r,
2668
- wrap: n
2669
- };
2670
- return i.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2671
- }
2672
- parseBoxData(e) {
2673
- let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
2674
- if (window?.CSS) window.CSS.supports("color", n) || (n = "transparent", r = e.trim());
2675
- else {
2676
- let t = new Option().style;
2677
- t.color = n, t.color !== n && (n = "transparent", r = e.trim());
2678
- }
2679
- let { wrap: i, cleanedText: a } = this.extractWrap(r);
2680
- return {
2681
- text: a ? c(a, h()) : void 0,
2682
- color: n,
2683
- wrap: i
2684
- };
2685
- }
2686
- addNote(e, t, n) {
2687
- let r = {
2688
- actor: e,
2689
- placement: t,
2690
- message: n.text,
2691
- wrap: n.wrap ?? this.autoWrap()
2692
- }, i = [].concat(e, e);
2693
- this.state.records.notes.push(r), this.state.records.messages.push({
2694
- id: this.state.records.messages.length.toString(),
2695
- from: i[0],
2696
- to: i[1],
2697
- message: n.text,
2698
- wrap: n.wrap ?? this.autoWrap(),
2699
- type: this.LINETYPE.NOTE,
2700
- placement: t
2701
- });
2702
- }
2703
- addLinks(e, t) {
2704
- let n = this.getActor(e);
2705
- try {
2706
- let e = c(t.text, h());
2707
- e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2708
- let r = JSON.parse(e);
2709
- this.insertLinks(n, r);
2710
- } catch (e) {
2711
- i.error("error while parsing actor link text", e);
2712
- }
2713
- }
2714
- addALink(e, t) {
2715
- let n = this.getActor(e);
2716
- try {
2717
- let e = {}, r = c(t.text, h()), i = r.indexOf("@");
2718
- r = r.replace(/&equals;/g, "="), r = r.replace(/&amp;/g, "&");
2719
- let a = r.slice(0, i - 1).trim();
2720
- e[a] = r.slice(i + 1).trim(), this.insertLinks(n, e);
2721
- } catch (e) {
2722
- i.error("error while parsing actor link text", e);
2723
- }
2724
- }
2725
- insertLinks(e, t) {
2726
- if (e.links == null) e.links = t;
2727
- else for (let n in t) e.links[n] = t[n];
2728
- }
2729
- addProperties(e, t) {
2730
- let n = this.getActor(e);
2731
- try {
2732
- let e = c(t.text, h()), r = JSON.parse(e);
2733
- this.insertProperties(n, r);
2734
- } catch (e) {
2735
- i.error("error while parsing actor properties text", e);
2736
- }
2737
- }
2738
- insertProperties(e, t) {
2739
- if (e.properties == null) e.properties = t;
2740
- else for (let n in t) e.properties[n] = t[n];
2741
- }
2742
- boxEnd() {
2743
- this.state.records.currentBox = void 0;
2744
- }
2745
- addDetails(e, t) {
2746
- let n = this.getActor(e), r = document.getElementById(t.text);
2747
- try {
2748
- let e = r.innerHTML, t = JSON.parse(e);
2749
- t.properties && this.insertProperties(n, t.properties), t.links && this.insertLinks(n, t.links);
2750
- } catch (e) {
2751
- i.error("error while parsing actor details text", e);
2752
- }
2753
- }
2754
- getActorProperty(e, t) {
2755
- if (e?.properties !== void 0) return e.properties[t];
2756
- }
2757
- apply(e) {
2758
- if (Array.isArray(e)) e.forEach((e) => {
2759
- this.apply(e);
2760
- });
2761
- else switch (e.type) {
2762
- case "sequenceIndex":
2763
- this.state.records.messages.push({
2764
- id: this.state.records.messages.length.toString(),
2765
- from: void 0,
2766
- to: void 0,
2767
- message: {
2768
- start: e.sequenceIndex,
2769
- step: e.sequenceIndexStep,
2770
- visible: e.sequenceVisible
2771
- },
2772
- wrap: !1,
2773
- type: e.signalType
2774
- });
2775
- break;
2776
- case "addParticipant":
2777
- this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
2778
- break;
2779
- case "createParticipant":
2780
- 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");
2781
- 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);
2782
- break;
2783
- case "destroyParticipant":
2784
- this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
2785
- break;
2786
- case "activeStart":
2787
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2788
- break;
2789
- case "centralConnection":
2790
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2791
- break;
2792
- case "centralConnectionReverse":
2793
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2794
- break;
2795
- case "activeEnd":
2796
- this.addSignal(e.actor, void 0, void 0, e.signalType);
2797
- break;
2798
- case "addNote":
2799
- this.addNote(e.actor, e.placement, e.text);
2800
- break;
2801
- case "addLinks":
2802
- this.addLinks(e.actor, e.text);
2803
- break;
2804
- case "addALink":
2805
- this.addALink(e.actor, e.text);
2806
- break;
2807
- case "addProperties":
2808
- this.addProperties(e.actor, e.text);
2809
- break;
2810
- case "addDetails":
2811
- this.addDetails(e.actor, e.text);
2812
- break;
2813
- case "addMessage":
2814
- if (this.state.records.lastCreated) {
2815
- 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.");
2816
- this.state.records.lastCreated = void 0;
2817
- } else if (this.state.records.lastDestroyed) {
2818
- 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.");
2819
- this.state.records.lastDestroyed = void 0;
2820
- }
2821
- this.addSignal(e.from, e.to, e.msg, e.signalType, e.activate, e.centralConnection);
2822
- break;
2823
- case "boxStart":
2824
- this.addBox(e.boxData);
2825
- break;
2826
- case "boxEnd":
2827
- this.boxEnd();
2828
- break;
2829
- case "loopStart":
2830
- this.addSignal(void 0, void 0, e.loopText, e.signalType);
2831
- break;
2832
- case "loopEnd":
2833
- this.addSignal(void 0, void 0, void 0, e.signalType);
2834
- break;
2835
- case "rectStart":
2836
- this.addSignal(void 0, void 0, e.color, e.signalType);
2837
- break;
2838
- case "rectEnd":
2839
- this.addSignal(void 0, void 0, void 0, e.signalType);
2840
- break;
2841
- case "optStart":
2842
- this.addSignal(void 0, void 0, e.optText, e.signalType);
2843
- break;
2844
- case "optEnd":
2845
- this.addSignal(void 0, void 0, void 0, e.signalType);
2846
- break;
2847
- case "altStart":
2848
- this.addSignal(void 0, void 0, e.altText, e.signalType);
2849
- break;
2850
- case "else":
2851
- this.addSignal(void 0, void 0, e.altText, e.signalType);
2852
- break;
2853
- case "altEnd":
2854
- this.addSignal(void 0, void 0, void 0, e.signalType);
2855
- break;
2856
- case "setAccTitle":
2857
- d(e.text);
2858
- break;
2859
- case "parStart":
2860
- this.addSignal(void 0, void 0, e.parText, e.signalType);
2861
- break;
2862
- case "and":
2863
- this.addSignal(void 0, void 0, e.parText, e.signalType);
2864
- break;
2865
- case "parEnd":
2866
- this.addSignal(void 0, void 0, void 0, e.signalType);
2867
- break;
2868
- case "criticalStart":
2869
- this.addSignal(void 0, void 0, e.criticalText, e.signalType);
2870
- break;
2871
- case "option":
2872
- this.addSignal(void 0, void 0, e.optionText, e.signalType);
2873
- break;
2874
- case "criticalEnd":
2875
- this.addSignal(void 0, void 0, void 0, e.signalType);
2876
- break;
2877
- case "breakStart":
2878
- this.addSignal(void 0, void 0, e.breakText, e.signalType);
2879
- break;
2880
- case "breakEnd":
2881
- this.addSignal(void 0, void 0, void 0, e.signalType);
2882
- break;
2883
- }
2884
- }
2885
- getConfig() {
2886
- return h().sequence;
2887
- }
2888
- }, ie = /* @__PURE__ */ r((e) => `.actor {
2889
- stroke: ${e.actorBorder};
2890
- fill: ${e.actorBkg};
2891
- }
2892
-
2893
- text.actor > tspan {
2894
- fill: ${e.actorTextColor};
2895
- stroke: none;
2896
- }
2897
-
2898
- .actor-line {
2899
- stroke: ${e.actorLineColor};
2900
- }
2901
-
2902
- .innerArc {
2903
- stroke-width: 1.5;
2904
- stroke-dasharray: none;
2905
- }
2906
-
2907
- .messageLine0 {
2908
- stroke-width: 1.5;
2909
- stroke-dasharray: none;
2910
- stroke: ${e.signalColor};
2911
- }
2912
-
2913
- .messageLine1 {
2914
- stroke-width: 1.5;
2915
- stroke-dasharray: 2, 2;
2916
- stroke: ${e.signalColor};
2917
- }
2918
-
2919
- #arrowhead path {
2920
- fill: ${e.signalColor};
2921
- stroke: ${e.signalColor};
2922
- }
2923
-
2924
- .sequenceNumber {
2925
- fill: ${e.sequenceNumberColor};
2926
- }
2927
-
2928
- #sequencenumber {
2929
- fill: ${e.signalColor};
2930
- }
2931
-
2932
- #crosshead path {
2933
- fill: ${e.signalColor};
2934
- stroke: ${e.signalColor};
2935
- }
2936
-
2937
- .messageText {
2938
- fill: ${e.signalTextColor};
2939
- stroke: none;
2940
- }
2941
-
2942
- .labelBox {
2943
- stroke: ${e.labelBoxBorderColor};
2944
- fill: ${e.labelBoxBkgColor};
2945
- }
2946
-
2947
- .labelText, .labelText > tspan {
2948
- fill: ${e.labelTextColor};
2949
- stroke: none;
2950
- }
2951
-
2952
- .loopText, .loopText > tspan {
2953
- fill: ${e.loopTextColor};
2954
- stroke: none;
2955
- }
2956
-
2957
- .loopLine {
2958
- stroke-width: 2px;
2959
- stroke-dasharray: 2, 2;
2960
- stroke: ${e.labelBoxBorderColor};
2961
- fill: ${e.labelBoxBorderColor};
2962
- }
2963
-
2964
- .note {
2965
- //stroke: #decc93;
2966
- stroke: ${e.noteBorderColor};
2967
- fill: ${e.noteBkgColor};
2968
- }
2969
-
2970
- .noteText, .noteText > tspan {
2971
- fill: ${e.noteTextColor};
2972
- stroke: none;
2973
- }
2974
-
2975
- .activation0 {
2976
- fill: ${e.activationBkgColor};
2977
- stroke: ${e.activationBorderColor};
2978
- }
2979
-
2980
- .activation1 {
2981
- fill: ${e.activationBkgColor};
2982
- stroke: ${e.activationBorderColor};
2983
- }
2984
-
2985
- .activation2 {
2986
- fill: ${e.activationBkgColor};
2987
- stroke: ${e.activationBorderColor};
2988
- }
2989
-
2990
- .actorPopupMenu {
2991
- position: absolute;
2992
- }
2993
-
2994
- .actorPopupMenuPanel {
2995
- position: absolute;
2996
- fill: ${e.actorBkg};
2997
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
2998
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
2999
- }
3000
- .actor-man line {
3001
- stroke: ${e.actorBorder};
3002
- fill: ${e.actorBkg};
3003
- }
3004
- .actor-man circle, line {
3005
- stroke: ${e.actorBorder};
3006
- fill: ${e.actorBkg};
3007
- stroke-width: 2px;
3008
- }
3009
-
3010
- `, "getStyles"), L = 36, R = "actor-top", z = "actor-bottom", ae = "actor-box", B = "actor-man", V = /* @__PURE__ */ r(function(e, t) {
3011
- return w(e, t);
3012
- }, "drawRect"), oe = /* @__PURE__ */ r(function(e, t, n, r, i) {
3013
- if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3014
- height: 0,
3015
- width: 0
3016
- };
3017
- let a = t.links, o = t.actorCnt, s = t.rectData;
3018
- var c = "none";
3019
- i && (c = "block !important");
3020
- let l = e.append("g");
3021
- l.attr("id", "actor" + o + "_popup"), l.attr("class", "actorPopupMenu"), l.attr("display", c);
3022
- var u = "";
3023
- s.class !== void 0 && (u = " " + s.class);
3024
- let d = s.width > n ? s.width : n, f = l.append("rect");
3025
- 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) {
3026
- var p = 20;
3027
- for (let e in a) {
3028
- var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
3029
- m.attr("xlink:href", h), m.attr("target", "_blank"), Ae(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3030
- }
3031
- }
3032
- return f.attr("height", p), {
3033
- height: s.height + p,
3034
- width: d
3035
- };
3036
- }, "drawPopup"), H = /* @__PURE__ */ r(function(e) {
3037
- return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3038
- }, "popupMenuToggle"), U = /* @__PURE__ */ r(async function(e, t, n = null) {
3039
- let r = e.append("foreignObject"), i = await l(t.text, S()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3040
- if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3041
- let n = e.node().firstChild;
3042
- n.setAttribute("height", a.height + 2 * t.textMargin);
3043
- let i = n.getBBox();
3044
- r.attr("x", Math.round(i.x + i.width / 2 - a.width / 2)).attr("y", Math.round(i.y + i.height / 2 - a.height / 2));
3045
- } else if (n) {
3046
- let { startx: e, stopx: i, starty: o } = n;
3047
- if (e > i) {
3048
- let t = e;
3049
- e = i, i = t;
3050
- }
3051
- r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
3052
- }
3053
- return [r];
3054
- }, "drawKatex"), W = /* @__PURE__ */ r(function(e, n) {
3055
- let i = 0, a = 0, o = n.text.split(b.lineBreakRegex), [s, c] = t(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ r(() => n.y, "yfunc");
3056
- if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3057
- case "top":
3058
- case "start":
3059
- d = /* @__PURE__ */ r(() => Math.round(n.y + n.textMargin), "yfunc");
3060
- break;
3061
- case "middle":
3062
- case "center":
3063
- d = /* @__PURE__ */ r(() => Math.round(n.y + (i + a + n.textMargin) / 2), "yfunc");
3064
- break;
3065
- case "bottom":
3066
- case "end":
3067
- d = /* @__PURE__ */ r(() => Math.round(n.y + (i + a + 2 * n.textMargin) - n.textMargin), "yfunc");
3068
- break;
3069
- }
3070
- if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3071
- case "left":
3072
- case "start":
3073
- n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3074
- break;
3075
- case "middle":
3076
- case "center":
3077
- n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3078
- break;
3079
- case "right":
3080
- case "end":
3081
- n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3082
- break;
3083
- }
3084
- for (let [t, r] of o.entries()) {
3085
- n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = t * s);
3086
- let o = e.append("text");
3087
- o.attr("x", n.x), o.attr("y", d()), n.anchor !== void 0 && o.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && o.style("font-family", n.fontFamily), c !== void 0 && o.style("font-size", c), n.fontWeight !== void 0 && o.style("font-weight", n.fontWeight), n.fill !== void 0 && o.attr("fill", n.fill), n.class !== void 0 && o.attr("class", n.class), n.dy === void 0 ? u !== 0 && o.attr("dy", u) : o.attr("dy", n.dy);
3088
- let f = r || "​";
3089
- if (n.tspan) {
3090
- let e = o.append("tspan");
3091
- e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
3092
- } else o.text(f);
3093
- n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (a += (o._groups || o)[0][0].getBBox().height, i = a), l.push(o);
3094
- }
3095
- return l;
3096
- }, "drawText"), se = /* @__PURE__ */ r(function(e, t) {
3097
- function n(e, t, n, r, i) {
3098
- return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3099
- }
3100
- r(n, "genPoints");
3101
- let i = e.append("polygon");
3102
- return i.attr("points", n(t.x, t.y, t.width, t.height, 7)), i.attr("class", "labelBox"), t.y += t.height / 2, W(e, t), i;
3103
- }, "drawLabel"), G = -1, ce = /* @__PURE__ */ r((e, t, n, r) => {
3104
- e.select && n.forEach((n) => {
3105
- let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3106
- !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3107
- });
3108
- }, "fixLifeLineHeights"), le = /* @__PURE__ */ r(function(e, t, n, r) {
3109
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
3110
- var c = s;
3111
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3112
- let l = k();
3113
- var u = "actor";
3114
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.rx = 3, l.ry = 3, l.name = t.name;
3115
- let d = V(c, l);
3116
- if (t.rectData = l, t.properties?.icon) {
3117
- let e = t.properties.icon.trim();
3118
- e.charAt(0) === "@" ? O(c, l.x + l.width - 20, l.y + 10, e.substr(1)) : E(c, l.x + l.width - 20, l.y + 10, e);
3119
- }
3120
- J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${ae}` }, n);
3121
- let f = t.height;
3122
- if (d.node) {
3123
- let e = d.node().getBBox();
3124
- t.height = e.height, f = e.height;
3125
- }
3126
- return f;
3127
- }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ r(function(e, t, n, r) {
3128
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower();
3129
- var c = s;
3130
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3131
- let l = k();
3132
- var u = "actor";
3133
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
3134
- let d = {
3135
- ...l,
3136
- x: l.x + -6,
3137
- y: l.y + 6,
3138
- class: "actor"
3139
- }, f = V(c, l);
3140
- if (V(c, d), t.rectData = l, t.properties?.icon) {
3141
- let e = t.properties.icon.trim();
3142
- e.charAt(0) === "@" ? O(c, l.x + l.width - 20, l.y + 10, e.substr(1)) : E(c, l.x + l.width - 20, l.y + 10, e);
3143
- }
3144
- J(n, v(t.description))(t.description, c, l.x - 6, l.y + 6, l.width, l.height, { class: `actor ${ae}` }, n);
3145
- let p = t.height;
3146
- if (f.node) {
3147
- let e = f.node().getBBox();
3148
- t.height = e.height, p = e.height;
3149
- }
3150
- return p;
3151
- }, "drawActorTypeCollections"), de = /* @__PURE__ */ r(function(e, t, n, r) {
3152
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height, s = e.append("g").lower(), c = s;
3153
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3154
- let l = k(), u = "actor";
3155
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name;
3156
- let d = l.height / 2, f = d / (2.5 + l.height / 50), p = c.append("g"), m = c.append("g");
3157
- if (p.append("path").attr("d", `M ${l.x},${l.y + d}
3158
- a ${f},${d} 0 0 0 0,${l.height}
3159
- h ${l.width - 2 * f}
3160
- a ${f},${d} 0 0 0 0,-${l.height}
3161
- Z
3162
- `).attr("class", u), m.append("path").attr("d", `M ${l.x},${l.y + d}
3163
- a ${f},${d} 0 0 0 0,${l.height}`).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", u), p.attr("transform", `translate(${f}, ${-(l.height / 2)})`), m.attr("transform", `translate(${l.width - f}, ${-l.height / 2})`), t.rectData = l, t.properties?.icon) {
3164
- let e = t.properties.icon.trim(), n = l.x + l.width - 20, r = l.y + 10;
3165
- e.charAt(0) === "@" ? O(c, n, r, e.substr(1)) : E(c, n, r, e);
3166
- }
3167
- J(n, v(t.description))(t.description, c, l.x, l.y, l.width, l.height, { class: `actor ${ae}` }, n);
3168
- let h = t.height, g = p.select("path:last-child");
3169
- if (g.node()) {
3170
- let e = g.node().getBBox();
3171
- t.height = e.height, h = e.height;
3172
- }
3173
- return h;
3174
- }, "drawActorTypeQueue"), fe = /* @__PURE__ */ r(function(e, t, n, r) {
3175
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower();
3176
- r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3177
- let c = e.append("g"), l = B;
3178
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3179
- let u = k();
3180
- u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
3181
- let d = t.x + t.width / 2, f = i + 32;
3182
- return c.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2), c.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${d}, ${f - 22})`), t.height = c.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 22 + (r ? 5 : 12), u.width, u.height, { class: `actor ${B}` }, n), t.height;
3183
- }, "drawActorTypeControl"), pe = /* @__PURE__ */ r(function(e, t, n, r) {
3184
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 75, s = e.append("g").lower(), c = e.append("g"), l = "actor";
3185
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3186
- let u = k();
3187
- u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor";
3188
- let d = t.x + t.width / 2, f = i + (r ? 10 : 25);
3189
- return c.append("circle").attr("cx", d).attr("cy", f).attr("r", 22).attr("width", t.width).attr("height", t.height), c.append("line").attr("x1", d - 22).attr("x2", d + 22).attr("y1", f + 22).attr("y2", f + 22).attr("stroke-width", 2), t.height = c.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G), J(n, v(t.description))(t.description, c, u.x, u.y + (r ? 15 : 30), u.width, u.height, { class: `actor ${B}` }, n), r ? c.attr("transform", "translate(0, 22)") : c.attr("transform", `translate(0, ${22 / 2 - 5})`), t.height;
3190
- }, "drawActorTypeEntity"), me = /* @__PURE__ */ r(function(e, t, n, r) {
3191
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + t.height + 2 * n.boxTextMargin, s = e.append("g").lower(), c = s;
3192
- r || (G++, Object.keys(t.links || {}).length && !n.forceMenus && c.attr("onclick", H(`actor${G}_popup`)).attr("cursor", "pointer"), c.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), c = s.append("g"), t.actorCnt = G, t.links != null && c.attr("id", "root-" + G));
3193
- let l = k(), u = "actor";
3194
- t.properties?.class ? u = t.properties.class : l.fill = "#eaeaea", r ? u += ` ${z}` : u += ` ${R}`, l.x = t.x, l.y = i, l.width = t.width, l.height = t.height, l.class = u, l.name = t.name, l.x = t.x, l.y = i;
3195
- let d = l.width / 3, f = l.width / 3, p = d / 2, m = p / (2.5 + d / 50), h = c.append("g"), g = `
3196
- M ${l.x},${l.y + m}
3197
- a ${p},${m} 0 0 0 ${d},0
3198
- a ${p},${m} 0 0 0 -${d},0
3199
- l 0,${f - 2 * m}
3200
- a ${p},${m} 0 0 0 ${d},0
3201
- l 0,-${f - 2 * m}
3202
- `;
3203
- h.append("path").attr("d", g).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", u), h.attr("transform", `translate(${d}, ${m})`), t.rectData = l, J(n, v(t.description))(t.description, c, l.x, l.y + 35, l.width, l.height, { class: `actor ${ae}` }, n);
3204
- let _ = h.select("path:last-child");
3205
- return _.node() && (t.height = _.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), t.height;
3206
- }, "drawActorTypeDatabase"), he = /* @__PURE__ */ r(function(e, t, n, r) {
3207
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
3208
- r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3209
- let c = e.append("g"), l = B;
3210
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3211
- let u = k();
3212
- return u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", c.append("line").attr("id", "actor-man-torso" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", i + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", i + 12), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", i + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", i + 22), c.append("circle").attr("cx", t.x + t.width / 2).attr("cy", i + 12).attr("r", 22), t.height = c.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), J(n, v(t.description))(t.description, c, u.x, u.y + 15, u.width, u.height, { class: `actor ${B}` }, n), c.attr("transform", "translate(0,21)"), t.height;
3213
- }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ r(function(e, t, n, r) {
3214
- let i = r ? t.stopy : t.starty, a = t.x + t.width / 2, o = i + 80, s = e.append("g").lower();
3215
- r || (G++, s.append("line").attr("id", "actor" + G).attr("x1", a).attr("y1", o).attr("x2", a).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name), t.actorCnt = G);
3216
- let c = e.append("g"), l = B;
3217
- r ? l += ` ${z}` : l += ` ${R}`, c.attr("class", l), c.attr("name", t.name);
3218
- let u = k();
3219
- u.x = t.x, u.y = i, u.fill = "#eaeaea", u.width = t.width, u.height = t.height, u.class = "actor", u.rx = 3, u.ry = 3, c.append("line").attr("id", "actor-man-torso" + G).attr("x1", a).attr("y1", i + 25).attr("x2", a).attr("y2", i + 45), c.append("line").attr("id", "actor-man-arms" + G).attr("x1", a - L / 2).attr("y1", i + 33).attr("x2", a + L / 2).attr("y2", i + 33), c.append("line").attr("x1", a - L / 2).attr("y1", i + 60).attr("x2", a).attr("y2", i + 45), c.append("line").attr("x1", a).attr("y1", i + 45).attr("x2", a + L / 2 - 2).attr("y2", i + 60);
3220
- let d = c.append("circle");
3221
- return d.attr("cx", t.x + t.width / 2), d.attr("cy", i + 10), d.attr("r", 15), d.attr("width", t.width), d.attr("height", t.height), t.height = c.node().getBBox().height, J(n, v(t.description))(t.description, c, u.x, u.y + 35, u.width, u.height, { class: `actor ${B}` }, n), t.height;
3222
- }, "drawActorTypeActor"), _e = /* @__PURE__ */ r(async function(e, t, n, r) {
3223
- switch (t.type) {
3224
- case "actor": return await ge(e, t, n, r);
3225
- case "participant": return await le(e, t, n, r);
3226
- case "boundary": return await he(e, t, n, r);
3227
- case "control": return await fe(e, t, n, r);
3228
- case "entity": return await pe(e, t, n, r);
3229
- case "database": return await me(e, t, n, r);
3230
- case "collections": return await ue(e, t, n, r);
3231
- case "queue": return await de(e, t, n, r);
3232
- }
3233
- }, "drawActor"), ve = /* @__PURE__ */ r(function(e, t, n) {
3234
- let r = e.append("g");
3235
- Se(r, t), t.name && J(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3236
- }, "drawBox"), ye = /* @__PURE__ */ r(function(e) {
3237
- return e.append("g");
3238
- }, "anchorElement"), be = /* @__PURE__ */ r(function(e, t, n, r, i) {
3239
- let a = k(), o = t.anchored;
3240
- a.x = t.startx, a.y = t.starty, a.class = "activation" + i % 3, a.width = t.stopx - t.startx, a.height = n - t.starty, V(o, a);
3241
- }, "drawActivation"), xe = /* @__PURE__ */ r(async function(e, t, n, i) {
3242
- let { boxMargin: a, boxTextMargin: o, labelBoxHeight: s, labelBoxWidth: c, messageFontFamily: l, messageFontSize: u, messageFontWeight: d } = i, f = e.append("g"), p = /* @__PURE__ */ r(function(e, t, n, r) {
3243
- return f.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3244
- }, "drawLoopLine");
3245
- p(t.startx, t.starty, t.stopx, t.starty), p(t.stopx, t.starty, t.stopx, t.stopy), p(t.startx, t.stopy, t.stopx, t.stopy), p(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e) {
3246
- p(t.startx, e.y, t.stopx, e.y).style("stroke-dasharray", "3, 3");
3247
- });
3248
- let m = T();
3249
- m.text = n, m.x = t.startx, m.y = t.starty, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.width = c || 50, m.height = s || 20, m.textMargin = o, m.class = "labelText", se(f, m), m = Oe(), m.text = t.title, m.x = t.startx + c / 2 + (t.stopx - t.startx) / 2, m.y = t.starty + a + o, m.anchor = "middle", m.valign = "middle", m.textMargin = o, m.class = "loopText", m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = !0;
3250
- let h = v(m.text) ? await U(f, m, t) : W(f, m);
3251
- if (t.sectionTitles !== void 0) {
3252
- for (let [e, n] of Object.entries(t.sectionTitles)) if (n.message) {
3253
- m.text = n.message, m.x = t.startx + (t.stopx - t.startx) / 2, m.y = t.sections[e].y + a + o, m.class = "loopText", m.anchor = "middle", m.valign = "middle", m.tspan = !1, m.fontFamily = l, m.fontSize = u, m.fontWeight = d, m.wrap = t.wrap, v(m.text) ? (t.starty = t.sections[e].y, await U(f, m, t)) : W(f, m);
3254
- let r = Math.round(h.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3255
- t.sections[e].height += r - (a + o);
3256
- }
3257
- }
3258
- return t.height = Math.round(t.stopy - t.starty), f;
3259
- }, "drawLoop"), Se = /* @__PURE__ */ r(function(e, t) {
3260
- D(e, t);
3261
- }, "drawBackgroundRect"), Ce = /* @__PURE__ */ r(function(e) {
3262
- e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3263
- }, "insertDatabaseIcon"), we = /* @__PURE__ */ r(function(e) {
3264
- e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3265
- }, "insertComputerIcon"), K = /* @__PURE__ */ r(function(e) {
3266
- e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3267
- }, "insertClockIcon"), q = /* @__PURE__ */ r(function(e) {
3268
- e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3269
- }, "insertArrowHead"), Te = /* @__PURE__ */ r(function(e) {
3270
- e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
3271
- }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ r(function(e) {
3272
- e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3273
- }, "insertSequenceNumber"), De = /* @__PURE__ */ r(function(e) {
3274
- e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3275
- }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ r(function() {
3276
- return {
3277
- x: 0,
3278
- y: 0,
3279
- fill: void 0,
3280
- anchor: void 0,
3281
- style: "#666",
3282
- width: void 0,
3283
- height: void 0,
3284
- textMargin: 0,
3285
- rx: 0,
3286
- ry: 0,
3287
- tspan: !0,
3288
- valign: void 0
3289
- };
3290
- }, "getTextObj"), ke = /* @__PURE__ */ r(function() {
3291
- return {
3292
- x: 0,
3293
- y: 0,
3294
- fill: "#EDF2AE",
3295
- stroke: "#666",
3296
- width: 100,
3297
- anchor: "start",
3298
- height: 100,
3299
- rx: 0,
3300
- ry: 0
3301
- };
3302
- }, "getNoteRect"), J = /* @__PURE__ */ (function() {
3303
- function e(e, t, n, r, i, a, s) {
3304
- o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
3305
- }
3306
- r(e, "byText");
3307
- function n(e, n, r, i, a, s, c, l) {
3308
- let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = t(u), h = e.split(b.lineBreakRegex);
3309
- for (let e = 0; e < h.length; e++) {
3310
- let t = e * p - p * (h.length - 1) / 2, l = n.append("text").attr("x", r + a / 2).attr("y", i).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3311
- l.append("tspan").attr("x", r + a / 2).attr("dy", t).text(h[e]), l.attr("y", i + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, c);
3312
- }
3313
- }
3314
- r(n, "byTspan");
3315
- function i(e, t, r, i, a, s, c, l) {
3316
- let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3317
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
3318
- }
3319
- r(i, "byFo");
3320
- async function a(e, t, r, i, a, s, c, u) {
3321
- let d = await _(e, S()), f = t.append("switch"), p = f.append("foreignObject").attr("x", r + a / 2 - d.width / 2).attr("y", i + s / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3322
- p.append("div").style("text-align", "center").style("vertical-align", "middle").html(await l(e, S())), n(e, f, r, i, a, s, c, u), o(p, c);
3323
- }
3324
- r(a, "byKatex");
3325
- function o(e, t) {
3326
- for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3327
- }
3328
- return r(o, "_setTextAttrs"), function(t, r = !1) {
3329
- return r ? a : t.textPlacement === "fo" ? i : t.textPlacement === "old" ? e : n;
3330
- };
3331
- })(), Ae = /* @__PURE__ */ (function() {
3332
- function e(e, t, n, r, a, o, s) {
3333
- i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3334
- }
3335
- r(e, "byText");
3336
- function t(e, t, n, r, a, o, s, c) {
3337
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(b.lineBreakRegex);
3338
- for (let e = 0; e < f.length; e++) {
3339
- let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3340
- c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
3341
- }
3342
- }
3343
- r(t, "byTspan");
3344
- function n(e, n, r, a, o, s, c, l) {
3345
- let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3346
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, a, o, s, c, l), i(d, c);
3347
- }
3348
- r(n, "byFo");
3349
- function i(e, t) {
3350
- for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3351
- }
3352
- return r(i, "_setTextAttrs"), function(r) {
3353
- return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
3354
- };
3355
- })(), Y = {
3356
- drawRect: V,
3357
- drawText: W,
3358
- drawLabel: se,
3359
- drawActor: _e,
3360
- drawBox: ve,
3361
- drawPopup: oe,
3362
- anchorElement: ye,
3363
- drawActivation: be,
3364
- drawLoop: xe,
3365
- drawBackgroundRect: Se,
3366
- insertArrowHead: q,
3367
- insertArrowFilledHead: Te,
3368
- insertSequenceNumber: Ee,
3369
- insertArrowCrossHead: De,
3370
- insertDatabaseIcon: Ce,
3371
- insertComputerIcon: we,
3372
- insertClockIcon: K,
3373
- getTextObj: Oe,
3374
- getNoteRect: ke,
3375
- fixLifeLineHeights: ce,
3376
- sanitizeUrl: N.sanitizeUrl,
3377
- insertSolidTopArrowHead: /* @__PURE__ */ r(function(e) {
3378
- e.append("defs").append("marker").attr("id", "solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3379
- }, "insertSolidTopArrowHead"),
3380
- insertSolidBottomArrowHead: /* @__PURE__ */ r(function(e) {
3381
- e.append("defs").append("marker").attr("id", "solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3382
- }, "insertSolidBottomArrowHead"),
3383
- insertStickTopArrowHead: /* @__PURE__ */ r(function(e) {
3384
- e.append("defs").append("marker").attr("id", "stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3385
- }, "insertStickTopArrowHead"),
3386
- insertStickBottomArrowHead: /* @__PURE__ */ r(function(e) {
3387
- e.append("defs").append("marker").attr("id", "stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3388
- }, "insertStickBottomArrowHead")
3389
- }, X = {}, Z = {
3390
- data: {
3391
- startx: void 0,
3392
- stopx: void 0,
3393
- starty: void 0,
3394
- stopy: void 0
3395
- },
3396
- verticalPos: 0,
3397
- sequenceItems: [],
3398
- activations: [],
3399
- models: {
3400
- getHeight: /* @__PURE__ */ r(function() {
3401
- 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));
3402
- }, "getHeight"),
3403
- clear: /* @__PURE__ */ r(function() {
3404
- this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3405
- }, "clear"),
3406
- addBox: /* @__PURE__ */ r(function(e) {
3407
- this.boxes.push(e);
3408
- }, "addBox"),
3409
- addActor: /* @__PURE__ */ r(function(e) {
3410
- this.actors.push(e);
3411
- }, "addActor"),
3412
- addLoop: /* @__PURE__ */ r(function(e) {
3413
- this.loops.push(e);
3414
- }, "addLoop"),
3415
- addMessage: /* @__PURE__ */ r(function(e) {
3416
- this.messages.push(e);
3417
- }, "addMessage"),
3418
- addNote: /* @__PURE__ */ r(function(e) {
3419
- this.notes.push(e);
3420
- }, "addNote"),
3421
- lastActor: /* @__PURE__ */ r(function() {
3422
- return this.actors[this.actors.length - 1];
3423
- }, "lastActor"),
3424
- lastLoop: /* @__PURE__ */ r(function() {
3425
- return this.loops[this.loops.length - 1];
3426
- }, "lastLoop"),
3427
- lastMessage: /* @__PURE__ */ r(function() {
3428
- return this.messages[this.messages.length - 1];
3429
- }, "lastMessage"),
3430
- lastNote: /* @__PURE__ */ r(function() {
3431
- return this.notes[this.notes.length - 1];
3432
- }, "lastNote"),
3433
- actors: [],
3434
- boxes: [],
3435
- loops: [],
3436
- messages: [],
3437
- notes: []
3438
- },
3439
- init: /* @__PURE__ */ r(function() {
3440
- this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3441
- startx: void 0,
3442
- stopx: void 0,
3443
- starty: void 0,
3444
- stopy: void 0
3445
- }, this.verticalPos = 0, Be(h());
3446
- }, "init"),
3447
- updateVal: /* @__PURE__ */ r(function(e, t, n, r) {
3448
- e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3449
- }, "updateVal"),
3450
- updateBounds: /* @__PURE__ */ r(function(e, t, n, i) {
3451
- let a = this, o = 0;
3452
- function s(s) {
3453
- return /* @__PURE__ */ r(function(r) {
3454
- o++;
3455
- let c = a.sequenceItems.length - o + 1;
3456
- a.updateVal(r, "starty", t - c * X.boxMargin, Math.min), a.updateVal(r, "stopy", i + c * X.boxMargin, Math.max), a.updateVal(Z.data, "startx", e - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopx", n + c * X.boxMargin, Math.max), s !== "activation" && (a.updateVal(r, "startx", e - c * X.boxMargin, Math.min), a.updateVal(r, "stopx", n + c * X.boxMargin, Math.max), a.updateVal(Z.data, "starty", t - c * X.boxMargin, Math.min), a.updateVal(Z.data, "stopy", i + c * X.boxMargin, Math.max));
3457
- }, "updateItemBounds");
3458
- }
3459
- r(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3460
- }, "updateBounds"),
3461
- insert: /* @__PURE__ */ r(function(e, t, n, r) {
3462
- let i = b.getMin(e, n), a = b.getMax(e, n), o = b.getMin(t, r), s = b.getMax(t, r);
3463
- this.updateVal(Z.data, "startx", i, Math.min), this.updateVal(Z.data, "starty", o, Math.min), this.updateVal(Z.data, "stopx", a, Math.max), this.updateVal(Z.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
3464
- }, "insert"),
3465
- newActivation: /* @__PURE__ */ r(function(e, t, n) {
3466
- let r = n.get(e.from), i = Ve(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * X.activationWidth / 2;
3467
- this.activations.push({
3468
- startx: a,
3469
- starty: this.verticalPos + 2,
3470
- stopx: a + X.activationWidth,
3471
- stopy: void 0,
3472
- actor: e.from,
3473
- anchored: Y.anchorElement(t)
3474
- });
3475
- }, "newActivation"),
3476
- endActivation: /* @__PURE__ */ r(function(e) {
3477
- let t = this.activations.map(function(e) {
3478
- return e.actor;
3479
- }).lastIndexOf(e.from);
3480
- return this.activations.splice(t, 1)[0];
3481
- }, "endActivation"),
3482
- createLoop: /* @__PURE__ */ r(function(e = {
3483
- message: void 0,
3484
- wrap: !1,
3485
- width: void 0
3486
- }, t) {
3487
- return {
3488
- startx: void 0,
3489
- starty: this.verticalPos,
3490
- stopx: void 0,
3491
- stopy: void 0,
3492
- title: e.message,
3493
- wrap: e.wrap,
3494
- width: e.width,
3495
- height: 0,
3496
- fill: t
3497
- };
3498
- }, "createLoop"),
3499
- newLoop: /* @__PURE__ */ r(function(e = {
3500
- message: void 0,
3501
- wrap: !1,
3502
- width: void 0
3503
- }, t) {
3504
- this.sequenceItems.push(this.createLoop(e, t));
3505
- }, "newLoop"),
3506
- endLoop: /* @__PURE__ */ r(function() {
3507
- return this.sequenceItems.pop();
3508
- }, "endLoop"),
3509
- isLoopOverlap: /* @__PURE__ */ r(function() {
3510
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3511
- }, "isLoopOverlap"),
3512
- addSectionToLoop: /* @__PURE__ */ r(function(e) {
3513
- let t = this.sequenceItems.pop();
3514
- t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3515
- y: Z.getVerticalPos(),
3516
- height: 0
3517
- }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3518
- }, "addSectionToLoop"),
3519
- saveVerticalPos: /* @__PURE__ */ r(function() {
3520
- this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3521
- }, "saveVerticalPos"),
3522
- resetVerticalPos: /* @__PURE__ */ r(function() {
3523
- this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3524
- }, "resetVerticalPos"),
3525
- bumpVerticalPos: /* @__PURE__ */ r(function(e) {
3526
- this.verticalPos += e, this.data.stopy = b.getMax(this.data.stopy, this.verticalPos);
3527
- }, "bumpVerticalPos"),
3528
- getVerticalPos: /* @__PURE__ */ r(function() {
3529
- return this.verticalPos;
3530
- }, "getVerticalPos"),
3531
- getBounds: /* @__PURE__ */ r(function() {
3532
- return {
3533
- bounds: this.data,
3534
- models: this.models
3535
- };
3536
- }, "getBounds")
3537
- }, je = /* @__PURE__ */ r(async function(e, t) {
3538
- Z.bumpVerticalPos(X.boxMargin), t.height = X.boxMargin, t.starty = Z.getVerticalPos();
3539
- let n = k();
3540
- n.x = t.startx, n.y = t.starty, n.width = t.width || X.width, n.class = "note";
3541
- let r = e.append("g"), i = Y.drawRect(r, n), a = T();
3542
- a.x = t.startx, a.y = t.starty, a.width = n.width, a.dy = "1em", a.text = t.message, a.class = "noteText", a.fontFamily = X.noteFontFamily, a.fontSize = X.noteFontSize, a.fontWeight = X.noteFontWeight, a.anchor = X.noteAlign, a.textMargin = X.noteMargin, a.valign = "center";
3543
- let o = v(a.text) ? await U(r, a) : W(r, a), s = Math.round(o.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3544
- i.attr("height", s + 2 * X.noteMargin), t.height += s + 2 * X.noteMargin, Z.bumpVerticalPos(s + 2 * X.noteMargin), t.stopy = t.starty + s + 2 * X.noteMargin, t.stopx = t.startx + n.width, Z.insert(t.startx, t.starty, t.stopx, t.stopy), Z.models.addNote(t);
3545
- }, "drawNote"), Me = /* @__PURE__ */ r(function(e, t, n, i, a, o, s) {
3546
- let c = i.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 = $e(t, i), g = e.append("g"), _ = 16.5, v = /* @__PURE__ */ r((e, t) => {
3547
- let n = e ? _ : -_;
3548
- return t ? -n : n;
3549
- }, "getCircleOffset"), y = /* @__PURE__ */ r((e) => {
3550
- g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3551
- }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3552
- if (d) switch (t.centralConnection) {
3553
- case b:
3554
- h && (p += v(m, !0));
3555
- break;
3556
- case x:
3557
- h || (f += v(m, !1));
3558
- break;
3559
- case S:
3560
- h ? p += v(m, !0) : f += v(m, !1);
3561
- break;
3562
- }
3563
- switch (t.centralConnection) {
3564
- case b:
3565
- y(p);
3566
- break;
3567
- case x:
3568
- y(f);
3569
- break;
3570
- case S:
3571
- y(f), y(p);
3572
- break;
3573
- }
3574
- }, "drawCentralConnection"), Q = /* @__PURE__ */ r((e) => ({
3575
- fontFamily: e.messageFontFamily,
3576
- fontSize: e.messageFontSize,
3577
- fontWeight: e.messageFontWeight
3578
- }), "messageFont"), Ne = /* @__PURE__ */ r((e) => ({
3579
- fontFamily: e.noteFontFamily,
3580
- fontSize: e.noteFontSize,
3581
- fontWeight: e.noteFontWeight
3582
- }), "noteFont"), Pe = /* @__PURE__ */ r((e) => ({
3583
- fontFamily: e.actorFontFamily,
3584
- fontSize: e.actorFontSize,
3585
- fontWeight: e.actorFontWeight
3586
- }), "actorFont");
3587
- async function Fe(e, t) {
3588
- Z.bumpVerticalPos(10);
3589
- let { startx: r, stopx: i, message: a } = t, o = b.splitBreaks(a).length, s = v(a), c = s ? await _(a, h()) : n.calculateTextDimensions(a, Q(X));
3590
- if (!s) {
3591
- let e = c.height / o;
3592
- t.height += e, Z.bumpVerticalPos(e);
3593
- }
3594
- let l, u = c.height - 10, d = c.width;
3595
- if (r === i) {
3596
- l = Z.getVerticalPos() + u, X.rightAngles || (u += X.boxMargin, l = Z.getVerticalPos() + u), u += 30;
3597
- let e = b.getMax(d / 2, X.width / 2);
3598
- Z.insert(r - e, Z.getVerticalPos() - 10 + u, i + e, Z.getVerticalPos() + 30 + u);
3599
- } else u += X.boxMargin, l = Z.getVerticalPos() + u, Z.insert(r, l - 10, i, l);
3600
- return Z.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Z.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
3601
- }
3602
- r(Fe, "boundMessage");
3603
- var Ie = /* @__PURE__ */ r(async function(e, t, r, i, a) {
3604
- let { startx: o, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = t, m = n.calculateTextDimensions(u, Q(X)), h = T();
3605
- h.x = o, h.y = l + 10, h.width = c - o, h.class = "messageText", h.dy = "1em", h.text = u, h.fontFamily = X.messageFontFamily, h.fontSize = X.messageFontSize, h.fontWeight = X.messageFontWeight, h.anchor = X.messageAlign, h.valign = "center", h.textMargin = X.wrapPadding, h.tspan = !1, v(h.text) ? await U(e, h, {
3606
- startx: o,
3607
- stopx: c,
3608
- starty: r
3609
- }) : W(e, h);
3610
- let g = m.width, _;
3611
- if (o === c) {
3612
- let t = p || X.showSequenceNumbers, n = $e(a, i), s = et(a, i), c = o + (t && (n || s) ? 10 : 0);
3613
- _ = X.rightAngles ? e.append("path").attr("d", `M ${c},${r} H ${o + b.getMax(X.width / 2, g / 2)} V ${r + 25} H ${o}`) : e.append("path").attr("d", "M " + c + "," + r + " C " + (c + 60) + "," + (r - 10) + " " + (o + 60) + "," + (r + 30) + " " + o + "," + (r + 20));
3614
- } else _ = e.append("line"), _.attr("x1", o), _.attr("y1", r), _.attr("x2", c), _.attr("y2", r), Ze(a, i) && Me(e, a, t, i, o, c, r);
3615
- d === i.db.LINETYPE.DOTTED || d === i.db.LINETYPE.DOTTED_CROSS || d === i.db.LINETYPE.DOTTED_POINT || d === i.db.LINETYPE.DOTTED_OPEN || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === i.db.LINETYPE.SOLID_TOP_DOTTED || d === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === i.db.LINETYPE.STICK_TOP_DOTTED || d === i.db.LINETYPE.STICK_BOTTOM_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (_.style("stroke-dasharray", "3, 3"), _.attr("class", "messageLine1")) : _.attr("class", "messageLine0");
3616
- let y = "";
3617
- if (X.arrowMarkerAbsolute && (y = s(!0)), _.attr("stroke-width", 2), _.attr("stroke", "none"), _.style("fill", "none"), (d === i.db.LINETYPE.SOLID_TOP || d === i.db.LINETYPE.SOLID_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#solidTopArrowHead)"), (d === i.db.LINETYPE.SOLID_BOTTOM || d === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#solidBottomArrowHead)"), (d === i.db.LINETYPE.STICK_TOP || d === i.db.LINETYPE.STICK_TOP_DOTTED) && _.attr("marker-end", "url(" + y + "#stickTopArrowHead)"), (d === i.db.LINETYPE.STICK_BOTTOM || d === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && _.attr("marker-end", "url(" + y + "#stickBottomArrowHead)"), (d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidBottomArrowHead)"), (d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#solidTopArrowHead)"), (d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickBottomArrowHead)"), (d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && _.attr("marker-start", "url(" + y + "#stickTopArrowHead)"), (d === i.db.LINETYPE.SOLID || d === i.db.LINETYPE.DOTTED) && _.attr("marker-end", "url(" + y + "#arrowhead)"), (d === i.db.LINETYPE.BIDIRECTIONAL_SOLID || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (_.attr("marker-start", "url(" + y + "#arrowhead)"), _.attr("marker-end", "url(" + y + "#arrowhead)")), (d === i.db.LINETYPE.SOLID_POINT || d === i.db.LINETYPE.DOTTED_POINT) && _.attr("marker-end", "url(" + y + "#filled-head)"), (d === i.db.LINETYPE.SOLID_CROSS || d === i.db.LINETYPE.DOTTED_CROSS) && _.attr("marker-end", "url(" + y + "#crosshead)"), p || X.showSequenceNumbers) {
3618
- let n = d === i.db.LINETYPE.BIDIRECTIONAL_SOLID || d === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, s = d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, l = Ze(a, i), u = o, p = c;
3619
- n ? (o < c ? u = o + 12 : (u = o - 6 + (l ? -5 : 0), u += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), _.attr("x1", u)) : s ? (c > o ? p = c - 12 : (p = c - 6, u += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += l ? 15 : 0, _.attr("x2", p), _.attr("x1", u)) : _.attr("x1", o + 6);
3620
- let m = 0, h = o === c, g = o <= c;
3621
- m = h ? t.fromBounds + 1 : s ? g ? t.toBounds - 1 : t.fromBounds + 1 : g ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", m).attr("y1", r).attr("x2", m).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + y + "#sequencenumber)"), e.append("text").attr("x", m).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(f);
3622
- }
3623
- }, "drawMessage"), Le = /* @__PURE__ */ r(function(e, t, n, r, i, a, o) {
3624
- let s = 0, c = 0, l, u = 0;
3625
- for (let e of r) {
3626
- let r = t.get(e), a = r.box;
3627
- l && l != a && (o || Z.models.addBox(l), c += X.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = r.width || X.width, r.height = b.getMax(r.height || X.height, X.height), r.margin = r.margin || X.actorMargin, u = b.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Z.getVerticalPos(), Z.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Z.models.addActor(r);
3628
- }
3629
- l && !o && Z.models.addBox(l), Z.bumpVerticalPos(u);
3630
- }, "addActorRenderingData"), Re = /* @__PURE__ */ r(async function(e, t, n, r) {
3631
- if (r) {
3632
- let r = 0;
3633
- Z.bumpVerticalPos(X.boxMargin * 2);
3634
- for (let i of n) {
3635
- let n = t.get(i);
3636
- n.stopy ||= Z.getVerticalPos();
3637
- let a = await Y.drawActor(e, n, X, !0);
3638
- r = b.getMax(r, a);
3639
- }
3640
- Z.bumpVerticalPos(r + X.boxMargin);
3641
- } else for (let r of n) {
3642
- let n = t.get(r);
3643
- await Y.drawActor(e, n, X, !1);
3644
- }
3645
- }, "drawActors"), ze = /* @__PURE__ */ r(function(e, t, n, r) {
3646
- let i = 0, a = 0;
3647
- for (let o of n) {
3648
- let n = t.get(o), s = Ke(n), c = Y.drawPopup(e, n, s, X, X.forceMenus, r);
3649
- c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
3650
- }
3651
- return {
3652
- maxHeight: i,
3653
- maxWidth: a
3654
- };
3655
- }, "drawActorsPopup"), Be = /* @__PURE__ */ r(function(e) {
3656
- y(X, e), e.fontFamily && (X.actorFontFamily = X.noteFontFamily = X.messageFontFamily = e.fontFamily), e.fontSize && (X.actorFontSize = X.noteFontSize = X.messageFontSize = e.fontSize), e.fontWeight && (X.actorFontWeight = X.noteFontWeight = X.messageFontWeight = e.fontWeight);
3657
- }, "setConf"), Ve = /* @__PURE__ */ r(function(e) {
3658
- return Z.activations.filter(function(t) {
3659
- return t.actor === e;
3660
- });
3661
- }, "actorActivations"), He = /* @__PURE__ */ r(function(e, t) {
3662
- let n = t.get(e), r = Ve(e);
3663
- return [r.reduce(function(e, t) {
3664
- return b.getMin(e, t.startx);
3665
- }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3666
- return b.getMax(e, t.stopx);
3667
- }, n.x + n.width / 2 + 1)];
3668
- }, "activationBounds");
3669
- function $(e, t, r, a, o) {
3670
- Z.bumpVerticalPos(r);
3671
- let s = a;
3672
- if (t.id && t.message && e[t.id]) {
3673
- let r = e[t.id].width, o = Q(X);
3674
- t.message = n.wrapLabel(`[${t.message}]`, r - 2 * X.wrapPadding, o), t.width = r, t.wrap = !0;
3675
- let c = n.calculateTextDimensions(t.message, o), l = b.getMax(c.height, X.labelBoxHeight);
3676
- s = a + l, i.debug(`${l} - ${t.message}`);
3677
- }
3678
- o(t), Z.bumpVerticalPos(s);
3679
- }
3680
- r($, "adjustLoopHeightForWrap");
3681
- function Ue(e, t, n, i, a, o, s) {
3682
- function c(n, r) {
3683
- n.x < a.get(e.from).x ? (Z.insert(t.stopx - r, t.starty, t.startx, t.stopy + n.height / 2 + X.noteMargin), t.stopx += r) : (Z.insert(t.startx, t.starty, t.stopx + r, t.stopy + n.height / 2 + X.noteMargin), t.stopx -= r);
3684
- }
3685
- r(c, "receiverAdjustment");
3686
- function l(n, r) {
3687
- n.x < a.get(e.to).x ? (Z.insert(t.startx - r, t.starty, t.stopx, t.stopy + n.height / 2 + X.noteMargin), t.startx += r) : (Z.insert(t.stopx, t.starty, t.startx + r, t.stopy + n.height / 2 + X.noteMargin), t.startx -= r);
3688
- }
3689
- r(l, "senderAdjustment");
3690
- let u = [
3691
- ne.ACTOR,
3692
- ne.CONTROL,
3693
- ne.ENTITY,
3694
- ne.DATABASE
3695
- ];
3696
- if (o.get(e.to) == i) {
3697
- let t = a.get(e.to);
3698
- c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.starty = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3699
- } else if (s.get(e.from) == i) {
3700
- let t = a.get(e.from);
3701
- X.mirrorActors && l(t, u.includes(t.type) ? L / 2 : t.width / 2), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3702
- } else if (s.get(e.to) == i) {
3703
- let t = a.get(e.to);
3704
- X.mirrorActors && c(t, u.includes(t.type) ? L / 2 + 3 : t.width / 2 + 3), t.stopy = n - t.height / 2, Z.bumpVerticalPos(t.height / 2);
3705
- }
3706
- }
3707
- r(Ue, "adjustCreatedDestroyedData");
3708
- var We = /* @__PURE__ */ r(async function(t, n, a, o) {
3709
- let { securityLevel: s, sequence: c } = h();
3710
- X = c;
3711
- let l;
3712
- s === "sandbox" && (l = e("#i" + n));
3713
- let u = e(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), d = s === "sandbox" ? l.nodes()[0].contentDocument : document;
3714
- Z.init(), i.debug(o.db);
3715
- let f = s === "sandbox" ? u.select(`[id="${n}"]`) : e(`[id="${n}"]`), p = o.db.getActors(), m = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), v = o.db.getBoxes(), y = o.db.getActorKeys(), b = o.db.getMessages(), x = o.db.getDiagramTitle(), S = o.db.hasAtLeastOneBox(), C = o.db.hasAtLeastOneBoxWithTitle(), w = await Ge(p, b, o);
3716
- if (X.height = await qe(p, w, v), Y.insertComputerIcon(f), Y.insertDatabaseIcon(f), Y.insertClockIcon(f), S && (Z.bumpVerticalPos(X.boxMargin), C && Z.bumpVerticalPos(v[0].textMaxHeight)), X.hideUnusedParticipants === !0) {
3717
- let e = /* @__PURE__ */ new Set();
3718
- b.forEach((t) => {
3719
- e.add(t.from), e.add(t.to);
3720
- }), y = y.filter((t) => e.has(t));
3721
- }
3722
- Le(f, p, m, y, 0, b, !1);
3723
- let T = await nt(b, p, w, o);
3724
- Y.insertArrowHead(f), Y.insertArrowCrossHead(f), Y.insertArrowFilledHead(f), Y.insertSequenceNumber(f), Y.insertSolidTopArrowHead(f), Y.insertSolidBottomArrowHead(f), Y.insertStickTopArrowHead(f), Y.insertStickBottomArrowHead(f);
3725
- function E(e, t) {
3726
- let n = Z.endActivation(e);
3727
- n.starty + 18 > t && (n.starty = t - 6, t += 12), Y.drawActivation(f, n, t, X, Ve(e.from).length), Z.insert(n.startx, t - 10, n.stopx, t);
3728
- }
3729
- r(E, "activeEnd");
3730
- let D = 1, O = 1, k = [], A = [], j = 0;
3731
- for (let e of b) {
3732
- let t, n, r;
3733
- switch (e.type) {
3734
- case o.db.LINETYPE.NOTE:
3735
- Z.resetVerticalPos(), n = e.noteModel, await je(f, n);
3736
- break;
3737
- case o.db.LINETYPE.ACTIVE_START:
3738
- Z.newActivation(e, f, p);
3739
- break;
3740
- case o.db.LINETYPE.CENTRAL_CONNECTION:
3741
- Z.newActivation(e, f, p);
3742
- break;
3743
- case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3744
- Z.newActivation(e, f, p);
3745
- break;
3746
- case o.db.LINETYPE.ACTIVE_END:
3747
- E(e, Z.getVerticalPos());
3748
- break;
3749
- case o.db.LINETYPE.LOOP_START:
3750
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3751
- break;
3752
- case o.db.LINETYPE.LOOP_END:
3753
- t = Z.endLoop(), await Y.drawLoop(f, t, "loop", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3754
- break;
3755
- case o.db.LINETYPE.RECT_START:
3756
- $(T, e, X.boxMargin, X.boxMargin, (e) => Z.newLoop(void 0, e.message));
3757
- break;
3758
- case o.db.LINETYPE.RECT_END:
3759
- t = Z.endLoop(), A.push(t), Z.models.addLoop(t), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos());
3760
- break;
3761
- case o.db.LINETYPE.OPT_START:
3762
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3763
- break;
3764
- case o.db.LINETYPE.OPT_END:
3765
- t = Z.endLoop(), await Y.drawLoop(f, t, "opt", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3766
- break;
3767
- case o.db.LINETYPE.ALT_START:
3768
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3769
- break;
3770
- case o.db.LINETYPE.ALT_ELSE:
3771
- $(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3772
- break;
3773
- case o.db.LINETYPE.ALT_END:
3774
- t = Z.endLoop(), await Y.drawLoop(f, t, "alt", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3775
- break;
3776
- case o.db.LINETYPE.PAR_START:
3777
- case o.db.LINETYPE.PAR_OVER_START:
3778
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e)), Z.saveVerticalPos();
3779
- break;
3780
- case o.db.LINETYPE.PAR_AND:
3781
- $(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3782
- break;
3783
- case o.db.LINETYPE.PAR_END:
3784
- t = Z.endLoop(), await Y.drawLoop(f, t, "par", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3785
- break;
3786
- case o.db.LINETYPE.AUTONUMBER:
3787
- D = e.message.start || D, O = e.message.step || O, e.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3788
- break;
3789
- case o.db.LINETYPE.CRITICAL_START:
3790
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3791
- break;
3792
- case o.db.LINETYPE.CRITICAL_OPTION:
3793
- $(T, e, X.boxMargin + X.boxTextMargin, X.boxMargin, (e) => Z.addSectionToLoop(e));
3794
- break;
3795
- case o.db.LINETYPE.CRITICAL_END:
3796
- t = Z.endLoop(), await Y.drawLoop(f, t, "critical", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3797
- break;
3798
- case o.db.LINETYPE.BREAK_START:
3799
- $(T, e, X.boxMargin, X.boxMargin + X.boxTextMargin, (e) => Z.newLoop(e));
3800
- break;
3801
- case o.db.LINETYPE.BREAK_END:
3802
- t = Z.endLoop(), await Y.drawLoop(f, t, "break", X), Z.bumpVerticalPos(t.stopy - Z.getVerticalPos()), Z.models.addLoop(t);
3803
- break;
3804
- default: try {
3805
- r = e.msgModel, r.starty = Z.getVerticalPos(), r.sequenceIndex = D, r.sequenceVisible = o.db.showSequenceNumbers();
3806
- let t = await Fe(f, r);
3807
- Ue(e, r, t, j, p, m, _), k.push({
3808
- messageModel: r,
3809
- lineStartY: t,
3810
- msg: e
3811
- }), Z.models.addMessage(r);
3812
- } catch (e) {
3813
- i.error("error while drawing message", e);
3814
- }
3815
- }
3816
- [
3817
- o.db.LINETYPE.SOLID_OPEN,
3818
- o.db.LINETYPE.DOTTED_OPEN,
3819
- o.db.LINETYPE.SOLID,
3820
- o.db.LINETYPE.SOLID_TOP,
3821
- o.db.LINETYPE.SOLID_BOTTOM,
3822
- o.db.LINETYPE.STICK_TOP,
3823
- o.db.LINETYPE.STICK_BOTTOM,
3824
- o.db.LINETYPE.SOLID_TOP_DOTTED,
3825
- o.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3826
- o.db.LINETYPE.STICK_TOP_DOTTED,
3827
- o.db.LINETYPE.STICK_BOTTOM_DOTTED,
3828
- o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3829
- o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3830
- o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3831
- o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3832
- o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3833
- o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3834
- o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3835
- o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3836
- o.db.LINETYPE.DOTTED,
3837
- o.db.LINETYPE.SOLID_CROSS,
3838
- o.db.LINETYPE.DOTTED_CROSS,
3839
- o.db.LINETYPE.SOLID_POINT,
3840
- o.db.LINETYPE.DOTTED_POINT,
3841
- o.db.LINETYPE.BIDIRECTIONAL_SOLID,
3842
- o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3843
- ].includes(e.type) && (D += O), j++;
3844
- }
3845
- i.debug("createdActors", m), i.debug("destroyedActors", _), await Re(f, p, y, !1);
3846
- for (let e of k) await Ie(f, e.messageModel, e.lineStartY, o, e.msg);
3847
- X.mirrorActors && await Re(f, p, y, !0), A.forEach((e) => Y.drawBackgroundRect(f, e)), ce(f, p, y, X);
3848
- for (let e of Z.models.boxes) {
3849
- e.height = Z.getVerticalPos() - e.y, Z.insert(e.x, e.y, e.x + e.width, e.height);
3850
- let t = X.boxMargin * 2;
3851
- e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", Y.drawBox(f, e, X);
3852
- }
3853
- S && Z.bumpVerticalPos(X.boxMargin);
3854
- let M = ze(f, p, y, d), { bounds: N } = Z.getBounds();
3855
- N.startx === void 0 && (N.startx = 0), N.starty === void 0 && (N.starty = 0), N.stopx === void 0 && (N.stopx = 0), N.stopy === void 0 && (N.stopy = 0);
3856
- let P = N.stopy - N.starty;
3857
- P < M.maxHeight && (P = M.maxHeight);
3858
- let F = P + 2 * X.diagramMarginY;
3859
- X.mirrorActors && (F = F - X.boxMargin + X.bottomMarginAdj);
3860
- let I = N.stopx - N.startx;
3861
- I < M.maxWidth && (I = M.maxWidth);
3862
- let ee = I + 2 * X.diagramMarginX;
3863
- x && f.append("text").text(x).attr("x", (N.stopx - N.startx) / 2 - 2 * X.diagramMarginX).attr("y", -25), g(f, F, ee, X.useMaxWidth);
3864
- let te = x ? 40 : 0;
3865
- f.attr("viewBox", N.startx - X.diagramMarginX + " -" + (X.diagramMarginY + te) + " " + ee + " " + (F + te)), i.debug("models:", Z.models);
3866
- }, "draw");
3867
- async function Ge(e, t, r) {
3868
- let a = {};
3869
- for (let i of t) if (e.get(i.to) && e.get(i.from)) {
3870
- let t = e.get(i.to);
3871
- if (i.placement === r.db.PLACEMENT.LEFTOF && !t.prevActor || i.placement === r.db.PLACEMENT.RIGHTOF && !t.nextActor) continue;
3872
- let o = i.placement !== void 0, s = !o, c = o ? Ne(X) : Q(X), l = i.wrap ? n.wrapLabel(i.message, X.width - 2 * X.wrapPadding, c) : i.message, u = (v(l) ? await _(i.message, h()) : n.calculateTextDimensions(l, c)).width + 2 * X.wrapPadding;
3873
- s && i.from === t.nextActor ? a[i.to] = b.getMax(a[i.to] || 0, u) : s && i.from === t.prevActor ? a[i.from] = b.getMax(a[i.from] || 0, u) : s && i.from === i.to ? (a[i.from] = b.getMax(a[i.from] || 0, u / 2), a[i.to] = b.getMax(a[i.to] || 0, u / 2)) : i.placement === r.db.PLACEMENT.RIGHTOF ? a[i.from] = b.getMax(a[i.from] || 0, u) : i.placement === r.db.PLACEMENT.LEFTOF ? a[t.prevActor] = b.getMax(a[t.prevActor] || 0, u) : i.placement === r.db.PLACEMENT.OVER && (t.prevActor && (a[t.prevActor] = b.getMax(a[t.prevActor] || 0, u / 2)), t.nextActor && (a[i.from] = b.getMax(a[i.from] || 0, u / 2)));
3874
- }
3875
- return i.debug("maxMessageWidthPerActor:", a), a;
3876
- }
3877
- r(Ge, "getMaxMessageWidthPerActor");
3878
- var Ke = /* @__PURE__ */ r(function(e) {
3879
- let t = 0, r = Pe(X);
3880
- for (let i in e.links) {
3881
- let e = n.calculateTextDimensions(i, r).width + 2 * X.wrapPadding + 2 * X.boxMargin;
3882
- t < e && (t = e);
3883
- }
3884
- return t;
3885
- }, "getRequiredPopupWidth");
3886
- async function qe(e, t, r) {
3887
- let i = 0;
3888
- for (let t of e.keys()) {
3889
- let r = e.get(t);
3890
- r.wrap && (r.description = n.wrapLabel(r.description, X.width - 2 * X.wrapPadding, Pe(X)));
3891
- let a = v(r.description) ? await _(r.description, h()) : n.calculateTextDimensions(r.description, Pe(X));
3892
- r.width = r.wrap ? X.width : b.getMax(X.width, a.width + 2 * X.wrapPadding), r.height = r.wrap ? b.getMax(a.height, X.height) : X.height, i = b.getMax(i, r.height);
3893
- }
3894
- for (let n in t) {
3895
- let r = e.get(n);
3896
- if (!r) continue;
3897
- let i = e.get(r.nextActor);
3898
- if (!i) {
3899
- let e = t[n] + X.actorMargin - r.width / 2;
3900
- r.margin = b.getMax(e, X.actorMargin);
3901
- continue;
3902
- }
3903
- let a = t[n] + X.actorMargin - r.width / 2 - i.width / 2;
3904
- r.margin = b.getMax(a, X.actorMargin);
3905
- }
3906
- let a = 0;
3907
- return r.forEach((t) => {
3908
- let r = Q(X), i = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), o = X.boxMargin * 8;
3909
- i += o, i -= 2 * X.boxTextMargin, t.wrap && (t.name = n.wrapLabel(t.name, i - 2 * X.wrapPadding, r));
3910
- let s = n.calculateTextDimensions(t.name, r);
3911
- a = b.getMax(s.height, a);
3912
- let c = b.getMax(i, s.width + 2 * X.wrapPadding);
3913
- if (t.margin = X.boxTextMargin, i < c) {
3914
- let e = (c - i) / 2;
3915
- t.margin += e;
3916
- }
3917
- }), r.forEach((e) => e.textMaxHeight = a), b.getMax(i, X.height);
3918
- }
3919
- r(qe, "calculateActorMargins");
3920
- var Je = /* @__PURE__ */ r(async function(e, t, r) {
3921
- let a = t.get(e.from), o = t.get(e.to), s = a.x, c = o.x, l = e.wrap && e.message, u = v(e.message) ? await _(e.message, h()) : n.calculateTextDimensions(l ? n.wrapLabel(e.message, X.width, Ne(X)) : e.message, Ne(X)), d = {
3922
- width: l ? X.width : b.getMax(X.width, u.width + 2 * X.noteMargin),
3923
- height: 0,
3924
- startx: a.x,
3925
- stopx: 0,
3926
- starty: 0,
3927
- stopy: 0,
3928
- message: e.message
3929
- };
3930
- return e.placement === r.db.PLACEMENT.RIGHTOF ? (d.width = l ? b.getMax(X.width, u.width) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s + (a.width + X.actorMargin) / 2) : e.placement === r.db.PLACEMENT.LEFTOF ? (d.width = l ? b.getMax(X.width, u.width + 2 * X.noteMargin) : b.getMax(a.width / 2 + o.width / 2, u.width + 2 * X.noteMargin), d.startx = s - d.width + (a.width - X.actorMargin) / 2) : e.to === e.from ? (u = n.calculateTextDimensions(l ? n.wrapLabel(e.message, b.getMax(X.width, a.width), Ne(X)) : e.message, Ne(X)), d.width = l ? b.getMax(X.width, a.width) : b.getMax(a.width, X.width, u.width + 2 * X.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + X.actorMargin, d.startx = s < c ? s + a.width / 2 - X.actorMargin / 2 : c + o.width / 2 - X.actorMargin / 2), l && (d.message = n.wrapLabel(e.message, d.width - 2 * X.wrapPadding, Ne(X))), i.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
3931
- }, "buildNoteModel"), Ye = 4, Xe = 6, Ze = /* @__PURE__ */ r(function(e, t) {
3932
- let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3933
- return [
3934
- n,
3935
- r,
3936
- i
3937
- ].includes(e.centralConnection);
3938
- }, "hasCentralConnection"), Qe = /* @__PURE__ */ r(function(e, t, n) {
3939
- let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3940
- return (e.centralConnection === r || e.centralConnection === i) && (s += Ye), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Xe), s;
3941
- }, "calculateCentralConnectionOffset"), $e = /* @__PURE__ */ r(function(e, t) {
3942
- 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;
3943
- return [
3944
- n,
3945
- r,
3946
- i,
3947
- a,
3948
- o,
3949
- s,
3950
- c,
3951
- l
3952
- ].includes(e.type);
3953
- }, "isReverseArrowType"), et = /* @__PURE__ */ r(function(e, t) {
3954
- let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
3955
- return [n, r].includes(e.type);
3956
- }, "isBidirectionalArrowType"), tt = /* @__PURE__ */ r(function(e, t, i) {
3957
- if (![
3958
- i.db.LINETYPE.SOLID_OPEN,
3959
- i.db.LINETYPE.DOTTED_OPEN,
3960
- i.db.LINETYPE.SOLID,
3961
- i.db.LINETYPE.SOLID_TOP,
3962
- i.db.LINETYPE.SOLID_BOTTOM,
3963
- i.db.LINETYPE.STICK_TOP,
3964
- i.db.LINETYPE.STICK_BOTTOM,
3965
- i.db.LINETYPE.SOLID_TOP_DOTTED,
3966
- i.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3967
- i.db.LINETYPE.STICK_TOP_DOTTED,
3968
- i.db.LINETYPE.STICK_BOTTOM_DOTTED,
3969
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3970
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3971
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3972
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3973
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3974
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3975
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3976
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3977
- i.db.LINETYPE.DOTTED,
3978
- i.db.LINETYPE.SOLID_CROSS,
3979
- i.db.LINETYPE.DOTTED_CROSS,
3980
- i.db.LINETYPE.SOLID_POINT,
3981
- i.db.LINETYPE.DOTTED_POINT,
3982
- i.db.LINETYPE.BIDIRECTIONAL_SOLID,
3983
- i.db.LINETYPE.BIDIRECTIONAL_DOTTED
3984
- ].includes(e.type)) return {};
3985
- let [a, o] = He(e.from, t), [s, c] = He(e.to, t), l = a <= s, u = l ? o : a, d = l ? s : c;
3986
- u += Qe(e, i, l);
3987
- let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ r((e) => l ? -e : e, "adjustValue");
3988
- e.from === e.to ? d = u : (e.activate && !f && (d += p(X.activationWidth / 2 - 1)), [
3989
- i.db.LINETYPE.SOLID_OPEN,
3990
- i.db.LINETYPE.DOTTED_OPEN,
3991
- i.db.LINETYPE.STICK_TOP,
3992
- i.db.LINETYPE.STICK_BOTTOM,
3993
- i.db.LINETYPE.STICK_TOP_DOTTED,
3994
- i.db.LINETYPE.STICK_BOTTOM_DOTTED,
3995
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3996
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3997
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3998
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3999
- i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4000
- i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4001
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4002
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4003
- ].includes(e.type) || (d += p(3)), [
4004
- i.db.LINETYPE.BIDIRECTIONAL_SOLID,
4005
- i.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4006
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4007
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4008
- i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4009
- i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4010
- ].includes(e.type) && (u -= p(3)));
4011
- let m = [
4012
- a,
4013
- o,
4014
- s,
4015
- c
4016
- ], h = Math.abs(u - d);
4017
- e.wrap && e.message && (e.message = n.wrapLabel(e.message, b.getMax(h + 2 * X.wrapPadding, X.width), Q(X)));
4018
- let g = n.calculateTextDimensions(e.message, Q(X));
4019
- return {
4020
- width: b.getMax(e.wrap ? 0 : g.width + 2 * X.wrapPadding, h + 2 * X.wrapPadding, X.width),
4021
- height: 0,
4022
- startx: u,
4023
- stopx: d,
4024
- starty: 0,
4025
- stopy: 0,
4026
- message: e.message,
4027
- type: e.type,
4028
- wrap: e.wrap,
4029
- fromBounds: Math.min.apply(null, m),
4030
- toBounds: Math.max.apply(null, m)
4031
- };
4032
- }, "buildMessageModel"), nt = /* @__PURE__ */ r(async function(e, t, n, r) {
4033
- let a = {}, o = [], s, c, l;
4034
- for (let n of e) {
4035
- switch (n.type) {
4036
- case r.db.LINETYPE.LOOP_START:
4037
- case r.db.LINETYPE.ALT_START:
4038
- case r.db.LINETYPE.OPT_START:
4039
- case r.db.LINETYPE.PAR_START:
4040
- case r.db.LINETYPE.PAR_OVER_START:
4041
- case r.db.LINETYPE.CRITICAL_START:
4042
- case r.db.LINETYPE.BREAK_START:
4043
- o.push({
4044
- id: n.id,
4045
- msg: n.message,
4046
- from: 2 ** 53 - 1,
4047
- to: -(2 ** 53 - 1),
4048
- width: 0
4049
- });
4050
- break;
4051
- case r.db.LINETYPE.ALT_ELSE:
4052
- case r.db.LINETYPE.PAR_AND:
4053
- case r.db.LINETYPE.CRITICAL_OPTION:
4054
- n.message && (s = o.pop(), a[s.id] = s, a[n.id] = s, o.push(s));
4055
- break;
4056
- case r.db.LINETYPE.LOOP_END:
4057
- case r.db.LINETYPE.ALT_END:
4058
- case r.db.LINETYPE.OPT_END:
4059
- case r.db.LINETYPE.PAR_END:
4060
- case r.db.LINETYPE.CRITICAL_END:
4061
- case r.db.LINETYPE.BREAK_END:
4062
- s = o.pop(), a[s.id] = s;
4063
- break;
4064
- case r.db.LINETYPE.ACTIVE_START:
4065
- {
4066
- let e = t.get(n.from ? n.from : n.to.actor), r = Ve(n.from ? n.from : n.to.actor).length, i = e.x + e.width / 2 + (r - 1) * X.activationWidth / 2, a = {
4067
- startx: i,
4068
- stopx: i + X.activationWidth,
4069
- actor: n.from,
4070
- enabled: !0
4071
- };
4072
- Z.activations.push(a);
4073
- }
4074
- break;
4075
- case r.db.LINETYPE.ACTIVE_END:
4076
- {
4077
- let e = Z.activations.map((e) => e.actor).lastIndexOf(n.from);
4078
- Z.activations.splice(e, 1).splice(0, 1);
4079
- }
4080
- break;
4081
- }
4082
- n.placement === void 0 ? (l = tt(n, t, r), n.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4083
- if (s = e, l.startx === l.stopx) {
4084
- let e = t.get(n.from), r = t.get(n.to);
4085
- s.from = b.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = b.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = b.getMax(s.width, Math.abs(s.to - s.from)) - X.labelBoxWidth;
4086
- } else s.from = b.getMin(l.startx, s.from), s.to = b.getMax(l.stopx, s.to), s.width = b.getMax(s.width, l.width) - X.labelBoxWidth;
4087
- })) : (c = await Je(n, t, r), n.noteModel = c, o.forEach((e) => {
4088
- s = e, s.from = b.getMin(s.from, c.startx), s.to = b.getMax(s.to, c.startx + c.width), s.width = b.getMax(s.width, Math.abs(s.from - s.to)) - X.labelBoxWidth;
4089
- }));
4090
- }
4091
- return Z.activations = [], i.debug("Loop type widths:", a), a;
4092
- }, "calculateLoopBounds"), rt = {
4093
- parser: F,
4094
- get db() {
4095
- return new re();
4096
- },
4097
- renderer: {
4098
- bounds: Z,
4099
- drawActors: Re,
4100
- drawActorsPopup: ze,
4101
- setConf: Be,
4102
- draw: We
4103
- },
4104
- styles: ie,
4105
- init: /* @__PURE__ */ r((e) => {
4106
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, u({ sequence: { wrap: e.wrap } }));
4107
- }, "init")
4108
- };
4109
- //#endregion
4110
- export { rt as diagram };
4111
-
4112
- //# sourceMappingURL=sequenceDiagram-2WXFIKYE-D7Vh1Zld.js.map