@kong-ui-public/documentation 1.7.21 → 1.7.22-pr.3646.2d80ddaf3.0

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