@kong-ui-public/documentation 1.7.40-pr.3869.e876c8c8a.0 → 1.7.40

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/dist/arc-DZdQjcG8-CduayE88.js +79 -0
  2. package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +4065 -0
  3. package/dist/astro-D8QEIUE9-nzvtSwAQ.js +18 -0
  4. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
  5. package/dist/c-GOwUpV7U-DMPKLUI8.js +4 -0
  6. package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +3035 -0
  7. package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +4 -0
  8. package/dist/channel-DM9j7IFL-DxqBUxfY.js +5 -0
  9. package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +24 -0
  10. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
  11. package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +8 -0
  12. package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +3445 -0
  13. package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +2096 -0
  14. package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +19 -0
  15. package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +65 -0
  16. package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +12 -0
  17. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
  18. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
  19. package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +2260 -0
  20. package/dist/csharp-Cy04UeDC-OaGPefhL.js +4 -0
  21. package/dist/css-CJQ-rcMF-B_2PRTA_.js +4 -0
  22. package/dist/csv-Bx_Umlp--BPWcOTV4.js +4 -0
  23. package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +18220 -0
  24. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
  25. package/dist/dagre-DJxg_nfI-hVOVexz-.js +1687 -0
  26. package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +182 -0
  27. package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +210 -0
  28. package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +99 -0
  29. package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +439 -0
  30. package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +127 -0
  31. package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +475 -0
  32. package/dist/diff-DZRtXnMG-DenOJuyV.js +4 -0
  33. package/dist/docker-DQBBDNmU-xX8PDoIv.js +4 -0
  34. package/dist/documentation.es.js +7 -0
  35. package/dist/documentation.umd.js +3474 -0
  36. package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +1773 -0
  37. package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +4258 -0
  38. package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +3099 -0
  39. package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +5 -0
  40. package/dist/git-rebase-0v-YFIjP-D701iWbX.js +5 -0
  41. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
  42. package/dist/go-DpaXbCNA-DqSXHrGo.js +4 -0
  43. package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +1071 -0
  44. package/dist/graphql-BSO8hVnT-C6Okg5tI.js +14 -0
  45. package/dist/haml-DizLz-gS-BWwS-eha.js +10 -0
  46. package/dist/handlebars-tnt1-4s--xVtJSIx5.js +14 -0
  47. package/dist/haskell-BDLr0yXS-BlmVjKNy.js +4 -0
  48. package/dist/html-DdIT5Pi9-C35UyBqr.js +10 -0
  49. package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +5 -0
  50. package/dist/http-DRk-iX-V-DQ76ihB0.js +14 -0
  51. package/dist/index-DfVKdDwj.js +40029 -0
  52. package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +18 -0
  53. package/dist/ini-D-uG5DCC-70PBzbbb.js +4 -0
  54. package/dist/init-8lPFe2y8-B2MlpiqM.js +16 -0
  55. package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +728 -0
  56. package/dist/java-CQQr73XR-D6YBp1XX.js +4 -0
  57. package/dist/javascript-CXmFGv-C-BRPKgr3C.js +4 -0
  58. package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +908 -0
  59. package/dist/json-BXFRNzj8-D8uacQj0.js +4 -0
  60. package/dist/json5-B5-J7v9w-Biib5ALh.js +4 -0
  61. package/dist/jsonc-CeA7x8NU-BZEKkMok.js +4 -0
  62. package/dist/jsonl-BBlxch9W-BG2V-IA2.js +4 -0
  63. package/dist/jsx-DucQCby8-Cl0AMtmu.js +4 -0
  64. package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +1028 -0
  65. package/dist/katex-D7tFlpqA-BOSQxXe1.js +22315 -0
  66. package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +4 -0
  67. package/dist/latex-COX74REd-l1quglTx.js +5 -0
  68. package/dist/less-QqooI0UQ-tcNg8M2_.js +4 -0
  69. package/dist/linear-1MXhYum8-9C1jno9G.js +255 -0
  70. package/dist/liquid-CsynDTV--Bdhb3gsJ.js +14 -0
  71. package/dist/lua-B3xrKnOz-Coo0MCwO.js +5 -0
  72. package/dist/make-eFBmESRY-CrUl7LOH.js +4 -0
  73. package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +4 -0
  74. package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +4 -0
  75. package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +12 -0
  76. package/dist/mdx-CjbEMaEg-CK6jOqmu.js +4 -0
  77. package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +4 -0
  78. package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +1026 -0
  79. package/dist/nginx-DQrs__jO-BS9Jcr4V.js +5 -0
  80. package/dist/objective-c-CXg1TPY9-C809HPrX.js +4 -0
  81. package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +63 -0
  82. package/dist/pascal-C6L9Tn1x-a8whuidZ.js +4 -0
  83. package/dist/perl-Dbi-SlHs-DsZjIGqU.js +16 -0
  84. package/dist/php-J5w8HAya-DnRg4f-g.js +18 -0
  85. package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +153 -0
  86. package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +4 -0
  87. package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +4 -0
  88. package/dist/powershell-CKvM5hOe-Box9VSDW.js +4 -0
  89. package/dist/proto-iweZN-Ks-w0B_itsp.js +4 -0
  90. package/dist/pug-DUPsoXbW-BFHDRSax.js +12 -0
  91. package/dist/python-MxhgNM12-D_5pfY__.js +4 -0
  92. package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +2046 -0
  93. package/dist/r-CoGPXt5G-BrbXTU3W.js +4 -0
  94. package/dist/reg-CHAl2UuA-bHAwx9Pm.js +4 -0
  95. package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +2281 -0
  96. package/dist/rst-D-Zcnz0t-C3PGnqgH.js +20 -0
  97. package/dist/ruby-CQp7mk0v-B3KpG-9E.js +46 -0
  98. package/dist/rust-W9HETclW-CaZtBt24.js +4 -0
  99. package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +946 -0
  100. package/dist/sass-DzGfEb5u-pslLeRRb.js +4 -0
  101. package/dist/scss-cWHTb1-d-DN6jMR75.js +5 -0
  102. package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +4266 -0
  103. package/dist/shellscript-BvJBBLP1-BtH46UX7.js +4 -0
  104. package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +5 -0
  105. package/dist/splunk-TtOhH_8h-BP8P7eWt.js +4 -0
  106. package/dist/sql-B-h_q34g-uWwuAxg_.js +4 -0
  107. package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +4 -0
  108. package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +210 -0
  109. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
  110. package/dist/style.css +1 -0
  111. package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +4 -0
  112. package/dist/svelte-CYqtuUsn-Cf97VB5J.js +14 -0
  113. package/dist/swift-CzsQqA0L-BPF2ddNF.js +4 -0
  114. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
  115. package/dist/toml-CRTROHRr-DjT9Bjqu.js +4 -0
  116. package/dist/tsx-CE8dfKwK-B-5hSr15.js +4 -0
  117. package/dist/twig-Bst4uh7S-C3aA9tng.js +18 -0
  118. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +35 -0
  119. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +1 -0
  120. package/dist/types/components/DocumentationContent.vue.d.ts +186 -0
  121. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
  122. package/dist/types/components/DocumentationDisplay.vue.d.ts +105 -0
  123. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
  124. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +31 -0
  125. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
  126. package/dist/types/components/ProductDocumentModal.vue.d.ts +72 -0
  127. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
  128. package/dist/types/composables/index.d.ts +6 -0
  129. package/dist/types/composables/index.d.ts.map +1 -0
  130. package/dist/types/composables/useI18n.d.ts +9 -0
  131. package/dist/types/composables/useI18n.d.ts.map +1 -0
  132. package/dist/types/external-links.d.ts +5 -0
  133. package/dist/types/external-links.d.ts.map +1 -0
  134. package/dist/types/helpers.d.ts +8 -0
  135. package/dist/types/helpers.d.ts.map +1 -0
  136. package/dist/types/index.d.ts +7 -0
  137. package/dist/types/index.d.ts.map +1 -0
  138. package/dist/types/types/document-list.d.ts +28 -0
  139. package/dist/types/types/document-list.d.ts.map +1 -0
  140. package/dist/types/types/document-modal.d.ts +8 -0
  141. package/dist/types/types/document-modal.d.ts.map +1 -0
  142. package/dist/types/types/index.d.ts +3 -0
  143. package/dist/types/types/index.d.ts.map +1 -0
  144. package/dist/typescript-8ogSSNer-B0ag8pir.js +4 -0
  145. package/dist/v-NeSnRB8V-CYSa2rJN.js +4 -0
  146. package/dist/vb-Dz72yc4q-B6FpM2Kc.js +4 -0
  147. package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +1889 -0
  148. package/dist/viml-DB1flIhL-BeYQ8dZh.js +4 -0
  149. package/dist/vue-Bq4JA_WT-CGBUDahs.js +22 -0
  150. package/dist/vue-html-BygQzR-9-BPez-Otx.js +5 -0
  151. package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +20731 -0
  152. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
  153. package/dist/wasm-BmZuu1vu-CfuK9YWP.js +4 -0
  154. package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +4 -0
  155. package/dist/xml-juAhGoTG-khG3jjDl.js +5 -0
  156. package/dist/xsl-CHgyQG2O-CiMa9sUf.js +5 -0
  157. package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +2055 -0
  158. package/dist/yaml-BK_xXVzk-X78l_Ibz.js +4 -0
  159. package/package.json +2 -2
@@ -0,0 +1,3035 @@
1
+ import { G as Re, K as De, W as Ne, U as Pe, p as f, Z as Nt, q as Kt, g as ue, A as Be, B as Ie, J as wt, c as be, D as je, a as Jt, b as pe, h as Me } from "./index-DfVKdDwj.js";
2
+ import { u as Le, a as Ye } from "./chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js";
3
+ var Ue = Me(), Yt = (function() {
4
+ var a = /* @__PURE__ */ f(function(_, O, m, g) {
5
+ for (m ||= {}, g = _.length; g--; m[_[g]] = O) ;
6
+ return m;
7
+ }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], r = [1, 28], e = [1, 63], i = [1, 64], n = [1, 65], u = [1, 66], d = [1, 67], p = [1, 68], b = [1, 69], k = [1, 29], v = [1, 30], R = [1, 31], P = [1, 32], X = [1, 33], Y = [1, 34], q = [1, 35], H = [1, 36], V = [1, 37], G = [1, 38], K = [1, 39], J = [1, 40], Z = [1, 41], tt = [1, 42], et = [1, 43], at = [1, 44], nt = [1, 45], it = [1, 46], st = [1, 47], rt = [1, 48], lt = [1, 50], ot = [1, 51], ct = [1, 52], ht = [1, 53], dt = [1, 54], ut = [1, 55], pt = [1, 56], yt = [1, 57], ft = [1, 58], bt = [1, 59], gt = [1, 60], Ct = [14, 42], $t = [
8
+ 14,
9
+ 34,
10
+ 36,
11
+ 37,
12
+ 38,
13
+ 39,
14
+ 40,
15
+ 41,
16
+ 42,
17
+ 44,
18
+ 45,
19
+ 46,
20
+ 47,
21
+ 48,
22
+ 49,
23
+ 50,
24
+ 51,
25
+ 52,
26
+ 53,
27
+ 54,
28
+ 55,
29
+ 56,
30
+ 57,
31
+ 58,
32
+ 59,
33
+ 60,
34
+ 61,
35
+ 62,
36
+ 63,
37
+ 64,
38
+ 65,
39
+ 66,
40
+ 67,
41
+ 68,
42
+ 69,
43
+ 70,
44
+ 71,
45
+ 72,
46
+ 73,
47
+ 74
48
+ ], vt = [
49
+ 12,
50
+ 14,
51
+ 34,
52
+ 36,
53
+ 37,
54
+ 38,
55
+ 39,
56
+ 40,
57
+ 41,
58
+ 42,
59
+ 44,
60
+ 45,
61
+ 46,
62
+ 47,
63
+ 48,
64
+ 49,
65
+ 50,
66
+ 51,
67
+ 52,
68
+ 53,
69
+ 54,
70
+ 55,
71
+ 56,
72
+ 57,
73
+ 58,
74
+ 59,
75
+ 60,
76
+ 61,
77
+ 62,
78
+ 63,
79
+ 64,
80
+ 65,
81
+ 66,
82
+ 67,
83
+ 68,
84
+ 69,
85
+ 70,
86
+ 71,
87
+ 72,
88
+ 73,
89
+ 74
90
+ ], E = [1, 82], S = [1, 83], A = [1, 84], C = [1, 85], w = [
91
+ 12,
92
+ 14,
93
+ 42
94
+ ], re = [
95
+ 12,
96
+ 14,
97
+ 33,
98
+ 42
99
+ ], Bt = [
100
+ 12,
101
+ 14,
102
+ 33,
103
+ 42,
104
+ 76,
105
+ 77,
106
+ 79,
107
+ 80
108
+ ], mt = [12, 33], zt = [
109
+ 34,
110
+ 36,
111
+ 37,
112
+ 38,
113
+ 39,
114
+ 40,
115
+ 41,
116
+ 44,
117
+ 45,
118
+ 46,
119
+ 47,
120
+ 48,
121
+ 49,
122
+ 50,
123
+ 51,
124
+ 52,
125
+ 53,
126
+ 54,
127
+ 55,
128
+ 56,
129
+ 57,
130
+ 58,
131
+ 59,
132
+ 60,
133
+ 61,
134
+ 62,
135
+ 63,
136
+ 64,
137
+ 65,
138
+ 66,
139
+ 67,
140
+ 68,
141
+ 69,
142
+ 70,
143
+ 71,
144
+ 72,
145
+ 73,
146
+ 74
147
+ ], Qt = {
148
+ trace: /* @__PURE__ */ f(function() {
149
+ }, "trace"),
150
+ yy: {},
151
+ symbols_: {
152
+ error: 2,
153
+ start: 3,
154
+ mermaidDoc: 4,
155
+ direction: 5,
156
+ direction_tb: 6,
157
+ direction_bt: 7,
158
+ direction_rl: 8,
159
+ direction_lr: 9,
160
+ graphConfig: 10,
161
+ C4_CONTEXT: 11,
162
+ NEWLINE: 12,
163
+ statements: 13,
164
+ EOF: 14,
165
+ C4_CONTAINER: 15,
166
+ C4_COMPONENT: 16,
167
+ C4_DYNAMIC: 17,
168
+ C4_DEPLOYMENT: 18,
169
+ otherStatements: 19,
170
+ diagramStatements: 20,
171
+ otherStatement: 21,
172
+ title: 22,
173
+ accDescription: 23,
174
+ acc_title: 24,
175
+ acc_title_value: 25,
176
+ acc_descr: 26,
177
+ acc_descr_value: 27,
178
+ acc_descr_multiline_value: 28,
179
+ boundaryStatement: 29,
180
+ boundaryStartStatement: 30,
181
+ boundaryStopStatement: 31,
182
+ boundaryStart: 32,
183
+ LBRACE: 33,
184
+ ENTERPRISE_BOUNDARY: 34,
185
+ attributes: 35,
186
+ SYSTEM_BOUNDARY: 36,
187
+ BOUNDARY: 37,
188
+ CONTAINER_BOUNDARY: 38,
189
+ NODE: 39,
190
+ NODE_L: 40,
191
+ NODE_R: 41,
192
+ RBRACE: 42,
193
+ diagramStatement: 43,
194
+ PERSON: 44,
195
+ PERSON_EXT: 45,
196
+ SYSTEM: 46,
197
+ SYSTEM_DB: 47,
198
+ SYSTEM_QUEUE: 48,
199
+ SYSTEM_EXT: 49,
200
+ SYSTEM_EXT_DB: 50,
201
+ SYSTEM_EXT_QUEUE: 51,
202
+ CONTAINER: 52,
203
+ CONTAINER_DB: 53,
204
+ CONTAINER_QUEUE: 54,
205
+ CONTAINER_EXT: 55,
206
+ CONTAINER_EXT_DB: 56,
207
+ CONTAINER_EXT_QUEUE: 57,
208
+ COMPONENT: 58,
209
+ COMPONENT_DB: 59,
210
+ COMPONENT_QUEUE: 60,
211
+ COMPONENT_EXT: 61,
212
+ COMPONENT_EXT_DB: 62,
213
+ COMPONENT_EXT_QUEUE: 63,
214
+ REL: 64,
215
+ BIREL: 65,
216
+ REL_U: 66,
217
+ REL_D: 67,
218
+ REL_L: 68,
219
+ REL_R: 69,
220
+ REL_B: 70,
221
+ REL_INDEX: 71,
222
+ UPDATE_EL_STYLE: 72,
223
+ UPDATE_REL_STYLE: 73,
224
+ UPDATE_LAYOUT_CONFIG: 74,
225
+ attribute: 75,
226
+ STR: 76,
227
+ STR_KEY: 77,
228
+ STR_VALUE: 78,
229
+ ATTRIBUTE: 79,
230
+ ATTRIBUTE_EMPTY: 80,
231
+ $accept: 0,
232
+ $end: 1
233
+ },
234
+ terminals_: {
235
+ 2: "error",
236
+ 6: "direction_tb",
237
+ 7: "direction_bt",
238
+ 8: "direction_rl",
239
+ 9: "direction_lr",
240
+ 11: "C4_CONTEXT",
241
+ 12: "NEWLINE",
242
+ 14: "EOF",
243
+ 15: "C4_CONTAINER",
244
+ 16: "C4_COMPONENT",
245
+ 17: "C4_DYNAMIC",
246
+ 18: "C4_DEPLOYMENT",
247
+ 22: "title",
248
+ 23: "accDescription",
249
+ 24: "acc_title",
250
+ 25: "acc_title_value",
251
+ 26: "acc_descr",
252
+ 27: "acc_descr_value",
253
+ 28: "acc_descr_multiline_value",
254
+ 33: "LBRACE",
255
+ 34: "ENTERPRISE_BOUNDARY",
256
+ 36: "SYSTEM_BOUNDARY",
257
+ 37: "BOUNDARY",
258
+ 38: "CONTAINER_BOUNDARY",
259
+ 39: "NODE",
260
+ 40: "NODE_L",
261
+ 41: "NODE_R",
262
+ 42: "RBRACE",
263
+ 44: "PERSON",
264
+ 45: "PERSON_EXT",
265
+ 46: "SYSTEM",
266
+ 47: "SYSTEM_DB",
267
+ 48: "SYSTEM_QUEUE",
268
+ 49: "SYSTEM_EXT",
269
+ 50: "SYSTEM_EXT_DB",
270
+ 51: "SYSTEM_EXT_QUEUE",
271
+ 52: "CONTAINER",
272
+ 53: "CONTAINER_DB",
273
+ 54: "CONTAINER_QUEUE",
274
+ 55: "CONTAINER_EXT",
275
+ 56: "CONTAINER_EXT_DB",
276
+ 57: "CONTAINER_EXT_QUEUE",
277
+ 58: "COMPONENT",
278
+ 59: "COMPONENT_DB",
279
+ 60: "COMPONENT_QUEUE",
280
+ 61: "COMPONENT_EXT",
281
+ 62: "COMPONENT_EXT_DB",
282
+ 63: "COMPONENT_EXT_QUEUE",
283
+ 64: "REL",
284
+ 65: "BIREL",
285
+ 66: "REL_U",
286
+ 67: "REL_D",
287
+ 68: "REL_L",
288
+ 69: "REL_R",
289
+ 70: "REL_B",
290
+ 71: "REL_INDEX",
291
+ 72: "UPDATE_EL_STYLE",
292
+ 73: "UPDATE_REL_STYLE",
293
+ 74: "UPDATE_LAYOUT_CONFIG",
294
+ 76: "STR",
295
+ 77: "STR_KEY",
296
+ 78: "STR_VALUE",
297
+ 79: "ATTRIBUTE",
298
+ 80: "ATTRIBUTE_EMPTY"
299
+ },
300
+ productions_: [
301
+ 0,
302
+ [3, 1],
303
+ [3, 1],
304
+ [5, 1],
305
+ [5, 1],
306
+ [5, 1],
307
+ [5, 1],
308
+ [4, 1],
309
+ [10, 4],
310
+ [10, 4],
311
+ [10, 4],
312
+ [10, 4],
313
+ [10, 4],
314
+ [13, 1],
315
+ [13, 1],
316
+ [13, 2],
317
+ [19, 1],
318
+ [19, 2],
319
+ [19, 3],
320
+ [21, 1],
321
+ [21, 1],
322
+ [21, 2],
323
+ [21, 2],
324
+ [21, 1],
325
+ [29, 3],
326
+ [30, 3],
327
+ [30, 3],
328
+ [30, 4],
329
+ [32, 2],
330
+ [32, 2],
331
+ [32, 2],
332
+ [32, 2],
333
+ [32, 2],
334
+ [32, 2],
335
+ [32, 2],
336
+ [31, 1],
337
+ [20, 1],
338
+ [20, 2],
339
+ [20, 3],
340
+ [43, 2],
341
+ [43, 2],
342
+ [43, 2],
343
+ [43, 2],
344
+ [43, 2],
345
+ [43, 2],
346
+ [43, 2],
347
+ [43, 2],
348
+ [43, 2],
349
+ [43, 2],
350
+ [43, 2],
351
+ [43, 2],
352
+ [43, 2],
353
+ [43, 2],
354
+ [43, 2],
355
+ [43, 2],
356
+ [43, 2],
357
+ [43, 2],
358
+ [43, 2],
359
+ [43, 2],
360
+ [43, 1],
361
+ [43, 2],
362
+ [43, 2],
363
+ [43, 2],
364
+ [43, 2],
365
+ [43, 2],
366
+ [43, 2],
367
+ [43, 2],
368
+ [43, 2],
369
+ [43, 2],
370
+ [43, 2],
371
+ [43, 2],
372
+ [35, 1],
373
+ [35, 2],
374
+ [75, 1],
375
+ [75, 2],
376
+ [75, 1],
377
+ [75, 1]
378
+ ],
379
+ performAction: /* @__PURE__ */ f(function(_, O, m, g, T, h, Rt) {
380
+ var y = h.length - 1;
381
+ switch (T) {
382
+ case 3:
383
+ g.setDirection("TB");
384
+ break;
385
+ case 4:
386
+ g.setDirection("BT");
387
+ break;
388
+ case 5:
389
+ g.setDirection("RL");
390
+ break;
391
+ case 6:
392
+ g.setDirection("LR");
393
+ break;
394
+ case 8:
395
+ case 9:
396
+ case 10:
397
+ case 11:
398
+ case 12:
399
+ g.setC4Type(h[y - 3]);
400
+ break;
401
+ case 19:
402
+ g.setTitle(h[y].substring(6)), this.$ = h[y].substring(6);
403
+ break;
404
+ case 20:
405
+ g.setAccDescription(h[y].substring(15)), this.$ = h[y].substring(15);
406
+ break;
407
+ case 21:
408
+ this.$ = h[y].trim(), g.setTitle(this.$);
409
+ break;
410
+ case 22:
411
+ case 23:
412
+ this.$ = h[y].trim(), g.setAccDescription(this.$);
413
+ break;
414
+ case 28:
415
+ h[y].splice(2, 0, "ENTERPRISE"), g.addPersonOrSystemBoundary(...h[y]), this.$ = h[y];
416
+ break;
417
+ case 29:
418
+ h[y].splice(2, 0, "SYSTEM"), g.addPersonOrSystemBoundary(...h[y]), this.$ = h[y];
419
+ break;
420
+ case 30:
421
+ g.addPersonOrSystemBoundary(...h[y]), this.$ = h[y];
422
+ break;
423
+ case 31:
424
+ h[y].splice(2, 0, "CONTAINER"), g.addContainerBoundary(...h[y]), this.$ = h[y];
425
+ break;
426
+ case 32:
427
+ g.addDeploymentNode("node", ...h[y]), this.$ = h[y];
428
+ break;
429
+ case 33:
430
+ g.addDeploymentNode("nodeL", ...h[y]), this.$ = h[y];
431
+ break;
432
+ case 34:
433
+ g.addDeploymentNode("nodeR", ...h[y]), this.$ = h[y];
434
+ break;
435
+ case 35:
436
+ g.popBoundaryParseStack();
437
+ break;
438
+ case 39:
439
+ g.addPersonOrSystem("person", ...h[y]), this.$ = h[y];
440
+ break;
441
+ case 40:
442
+ g.addPersonOrSystem("external_person", ...h[y]), this.$ = h[y];
443
+ break;
444
+ case 41:
445
+ g.addPersonOrSystem("system", ...h[y]), this.$ = h[y];
446
+ break;
447
+ case 42:
448
+ g.addPersonOrSystem("system_db", ...h[y]), this.$ = h[y];
449
+ break;
450
+ case 43:
451
+ g.addPersonOrSystem("system_queue", ...h[y]), this.$ = h[y];
452
+ break;
453
+ case 44:
454
+ g.addPersonOrSystem("external_system", ...h[y]), this.$ = h[y];
455
+ break;
456
+ case 45:
457
+ g.addPersonOrSystem("external_system_db", ...h[y]), this.$ = h[y];
458
+ break;
459
+ case 46:
460
+ g.addPersonOrSystem("external_system_queue", ...h[y]), this.$ = h[y];
461
+ break;
462
+ case 47:
463
+ g.addContainer("container", ...h[y]), this.$ = h[y];
464
+ break;
465
+ case 48:
466
+ g.addContainer("container_db", ...h[y]), this.$ = h[y];
467
+ break;
468
+ case 49:
469
+ g.addContainer("container_queue", ...h[y]), this.$ = h[y];
470
+ break;
471
+ case 50:
472
+ g.addContainer("external_container", ...h[y]), this.$ = h[y];
473
+ break;
474
+ case 51:
475
+ g.addContainer("external_container_db", ...h[y]), this.$ = h[y];
476
+ break;
477
+ case 52:
478
+ g.addContainer("external_container_queue", ...h[y]), this.$ = h[y];
479
+ break;
480
+ case 53:
481
+ g.addComponent("component", ...h[y]), this.$ = h[y];
482
+ break;
483
+ case 54:
484
+ g.addComponent("component_db", ...h[y]), this.$ = h[y];
485
+ break;
486
+ case 55:
487
+ g.addComponent("component_queue", ...h[y]), this.$ = h[y];
488
+ break;
489
+ case 56:
490
+ g.addComponent("external_component", ...h[y]), this.$ = h[y];
491
+ break;
492
+ case 57:
493
+ g.addComponent("external_component_db", ...h[y]), this.$ = h[y];
494
+ break;
495
+ case 58:
496
+ g.addComponent("external_component_queue", ...h[y]), this.$ = h[y];
497
+ break;
498
+ case 60:
499
+ g.addRel("rel", ...h[y]), this.$ = h[y];
500
+ break;
501
+ case 61:
502
+ g.addRel("birel", ...h[y]), this.$ = h[y];
503
+ break;
504
+ case 62:
505
+ g.addRel("rel_u", ...h[y]), this.$ = h[y];
506
+ break;
507
+ case 63:
508
+ g.addRel("rel_d", ...h[y]), this.$ = h[y];
509
+ break;
510
+ case 64:
511
+ g.addRel("rel_l", ...h[y]), this.$ = h[y];
512
+ break;
513
+ case 65:
514
+ g.addRel("rel_r", ...h[y]), this.$ = h[y];
515
+ break;
516
+ case 66:
517
+ g.addRel("rel_b", ...h[y]), this.$ = h[y];
518
+ break;
519
+ case 67:
520
+ h[y].splice(0, 1), g.addRel("rel", ...h[y]), this.$ = h[y];
521
+ break;
522
+ case 68:
523
+ g.updateElStyle("update_el_style", ...h[y]), this.$ = h[y];
524
+ break;
525
+ case 69:
526
+ g.updateRelStyle("update_rel_style", ...h[y]), this.$ = h[y];
527
+ break;
528
+ case 70:
529
+ g.updateLayoutConfig("update_layout_config", ...h[y]), this.$ = h[y];
530
+ break;
531
+ case 71:
532
+ this.$ = [h[y]];
533
+ break;
534
+ case 72:
535
+ h[y].unshift(h[y - 1]), this.$ = h[y];
536
+ break;
537
+ case 73:
538
+ case 75:
539
+ this.$ = h[y].trim();
540
+ break;
541
+ case 74:
542
+ let Et = {};
543
+ Et[h[y - 1].trim()] = h[y].trim(), this.$ = Et;
544
+ break;
545
+ case 76:
546
+ this.$ = "";
547
+ break;
548
+ }
549
+ }, "anonymous"),
550
+ table: [
551
+ {
552
+ 3: 1,
553
+ 4: 2,
554
+ 5: 3,
555
+ 6: [1, 5],
556
+ 7: [1, 6],
557
+ 8: [1, 7],
558
+ 9: [1, 8],
559
+ 10: 4,
560
+ 11: [1, 9],
561
+ 15: [1, 10],
562
+ 16: [1, 11],
563
+ 17: [1, 12],
564
+ 18: [1, 13]
565
+ },
566
+ { 1: [3] },
567
+ { 1: [2, 1] },
568
+ { 1: [2, 2] },
569
+ { 1: [2, 7] },
570
+ { 1: [2, 3] },
571
+ { 1: [2, 4] },
572
+ { 1: [2, 5] },
573
+ { 1: [2, 6] },
574
+ { 12: [1, 14] },
575
+ { 12: [1, 15] },
576
+ { 12: [1, 16] },
577
+ { 12: [1, 17] },
578
+ { 12: [1, 18] },
579
+ {
580
+ 13: 19,
581
+ 19: 20,
582
+ 20: 21,
583
+ 21: 22,
584
+ 22: t,
585
+ 23: s,
586
+ 24: o,
587
+ 26: l,
588
+ 28: r,
589
+ 29: 49,
590
+ 30: 61,
591
+ 32: 62,
592
+ 34: e,
593
+ 36: i,
594
+ 37: n,
595
+ 38: u,
596
+ 39: d,
597
+ 40: p,
598
+ 41: b,
599
+ 43: 23,
600
+ 44: k,
601
+ 45: v,
602
+ 46: R,
603
+ 47: P,
604
+ 48: X,
605
+ 49: Y,
606
+ 50: q,
607
+ 51: H,
608
+ 52: V,
609
+ 53: G,
610
+ 54: K,
611
+ 55: J,
612
+ 56: Z,
613
+ 57: tt,
614
+ 58: et,
615
+ 59: at,
616
+ 60: nt,
617
+ 61: it,
618
+ 62: st,
619
+ 63: rt,
620
+ 64: lt,
621
+ 65: ot,
622
+ 66: ct,
623
+ 67: ht,
624
+ 68: dt,
625
+ 69: ut,
626
+ 70: pt,
627
+ 71: yt,
628
+ 72: ft,
629
+ 73: bt,
630
+ 74: gt
631
+ },
632
+ {
633
+ 13: 70,
634
+ 19: 20,
635
+ 20: 21,
636
+ 21: 22,
637
+ 22: t,
638
+ 23: s,
639
+ 24: o,
640
+ 26: l,
641
+ 28: r,
642
+ 29: 49,
643
+ 30: 61,
644
+ 32: 62,
645
+ 34: e,
646
+ 36: i,
647
+ 37: n,
648
+ 38: u,
649
+ 39: d,
650
+ 40: p,
651
+ 41: b,
652
+ 43: 23,
653
+ 44: k,
654
+ 45: v,
655
+ 46: R,
656
+ 47: P,
657
+ 48: X,
658
+ 49: Y,
659
+ 50: q,
660
+ 51: H,
661
+ 52: V,
662
+ 53: G,
663
+ 54: K,
664
+ 55: J,
665
+ 56: Z,
666
+ 57: tt,
667
+ 58: et,
668
+ 59: at,
669
+ 60: nt,
670
+ 61: it,
671
+ 62: st,
672
+ 63: rt,
673
+ 64: lt,
674
+ 65: ot,
675
+ 66: ct,
676
+ 67: ht,
677
+ 68: dt,
678
+ 69: ut,
679
+ 70: pt,
680
+ 71: yt,
681
+ 72: ft,
682
+ 73: bt,
683
+ 74: gt
684
+ },
685
+ {
686
+ 13: 71,
687
+ 19: 20,
688
+ 20: 21,
689
+ 21: 22,
690
+ 22: t,
691
+ 23: s,
692
+ 24: o,
693
+ 26: l,
694
+ 28: r,
695
+ 29: 49,
696
+ 30: 61,
697
+ 32: 62,
698
+ 34: e,
699
+ 36: i,
700
+ 37: n,
701
+ 38: u,
702
+ 39: d,
703
+ 40: p,
704
+ 41: b,
705
+ 43: 23,
706
+ 44: k,
707
+ 45: v,
708
+ 46: R,
709
+ 47: P,
710
+ 48: X,
711
+ 49: Y,
712
+ 50: q,
713
+ 51: H,
714
+ 52: V,
715
+ 53: G,
716
+ 54: K,
717
+ 55: J,
718
+ 56: Z,
719
+ 57: tt,
720
+ 58: et,
721
+ 59: at,
722
+ 60: nt,
723
+ 61: it,
724
+ 62: st,
725
+ 63: rt,
726
+ 64: lt,
727
+ 65: ot,
728
+ 66: ct,
729
+ 67: ht,
730
+ 68: dt,
731
+ 69: ut,
732
+ 70: pt,
733
+ 71: yt,
734
+ 72: ft,
735
+ 73: bt,
736
+ 74: gt
737
+ },
738
+ {
739
+ 13: 72,
740
+ 19: 20,
741
+ 20: 21,
742
+ 21: 22,
743
+ 22: t,
744
+ 23: s,
745
+ 24: o,
746
+ 26: l,
747
+ 28: r,
748
+ 29: 49,
749
+ 30: 61,
750
+ 32: 62,
751
+ 34: e,
752
+ 36: i,
753
+ 37: n,
754
+ 38: u,
755
+ 39: d,
756
+ 40: p,
757
+ 41: b,
758
+ 43: 23,
759
+ 44: k,
760
+ 45: v,
761
+ 46: R,
762
+ 47: P,
763
+ 48: X,
764
+ 49: Y,
765
+ 50: q,
766
+ 51: H,
767
+ 52: V,
768
+ 53: G,
769
+ 54: K,
770
+ 55: J,
771
+ 56: Z,
772
+ 57: tt,
773
+ 58: et,
774
+ 59: at,
775
+ 60: nt,
776
+ 61: it,
777
+ 62: st,
778
+ 63: rt,
779
+ 64: lt,
780
+ 65: ot,
781
+ 66: ct,
782
+ 67: ht,
783
+ 68: dt,
784
+ 69: ut,
785
+ 70: pt,
786
+ 71: yt,
787
+ 72: ft,
788
+ 73: bt,
789
+ 74: gt
790
+ },
791
+ {
792
+ 13: 73,
793
+ 19: 20,
794
+ 20: 21,
795
+ 21: 22,
796
+ 22: t,
797
+ 23: s,
798
+ 24: o,
799
+ 26: l,
800
+ 28: r,
801
+ 29: 49,
802
+ 30: 61,
803
+ 32: 62,
804
+ 34: e,
805
+ 36: i,
806
+ 37: n,
807
+ 38: u,
808
+ 39: d,
809
+ 40: p,
810
+ 41: b,
811
+ 43: 23,
812
+ 44: k,
813
+ 45: v,
814
+ 46: R,
815
+ 47: P,
816
+ 48: X,
817
+ 49: Y,
818
+ 50: q,
819
+ 51: H,
820
+ 52: V,
821
+ 53: G,
822
+ 54: K,
823
+ 55: J,
824
+ 56: Z,
825
+ 57: tt,
826
+ 58: et,
827
+ 59: at,
828
+ 60: nt,
829
+ 61: it,
830
+ 62: st,
831
+ 63: rt,
832
+ 64: lt,
833
+ 65: ot,
834
+ 66: ct,
835
+ 67: ht,
836
+ 68: dt,
837
+ 69: ut,
838
+ 70: pt,
839
+ 71: yt,
840
+ 72: ft,
841
+ 73: bt,
842
+ 74: gt
843
+ },
844
+ { 14: [1, 74] },
845
+ a(Ct, [2, 13], {
846
+ 43: 23,
847
+ 29: 49,
848
+ 30: 61,
849
+ 32: 62,
850
+ 20: 75,
851
+ 34: e,
852
+ 36: i,
853
+ 37: n,
854
+ 38: u,
855
+ 39: d,
856
+ 40: p,
857
+ 41: b,
858
+ 44: k,
859
+ 45: v,
860
+ 46: R,
861
+ 47: P,
862
+ 48: X,
863
+ 49: Y,
864
+ 50: q,
865
+ 51: H,
866
+ 52: V,
867
+ 53: G,
868
+ 54: K,
869
+ 55: J,
870
+ 56: Z,
871
+ 57: tt,
872
+ 58: et,
873
+ 59: at,
874
+ 60: nt,
875
+ 61: it,
876
+ 62: st,
877
+ 63: rt,
878
+ 64: lt,
879
+ 65: ot,
880
+ 66: ct,
881
+ 67: ht,
882
+ 68: dt,
883
+ 69: ut,
884
+ 70: pt,
885
+ 71: yt,
886
+ 72: ft,
887
+ 73: bt,
888
+ 74: gt
889
+ }),
890
+ a(Ct, [2, 14]),
891
+ a($t, [2, 16], { 12: [1, 76] }),
892
+ a(Ct, [2, 36], { 12: [1, 77] }),
893
+ a(vt, [2, 19]),
894
+ a(vt, [2, 20]),
895
+ { 25: [1, 78] },
896
+ { 27: [1, 79] },
897
+ a(vt, [2, 23]),
898
+ {
899
+ 35: 80,
900
+ 75: 81,
901
+ 76: E,
902
+ 77: S,
903
+ 79: A,
904
+ 80: C
905
+ },
906
+ {
907
+ 35: 86,
908
+ 75: 81,
909
+ 76: E,
910
+ 77: S,
911
+ 79: A,
912
+ 80: C
913
+ },
914
+ {
915
+ 35: 87,
916
+ 75: 81,
917
+ 76: E,
918
+ 77: S,
919
+ 79: A,
920
+ 80: C
921
+ },
922
+ {
923
+ 35: 88,
924
+ 75: 81,
925
+ 76: E,
926
+ 77: S,
927
+ 79: A,
928
+ 80: C
929
+ },
930
+ {
931
+ 35: 89,
932
+ 75: 81,
933
+ 76: E,
934
+ 77: S,
935
+ 79: A,
936
+ 80: C
937
+ },
938
+ {
939
+ 35: 90,
940
+ 75: 81,
941
+ 76: E,
942
+ 77: S,
943
+ 79: A,
944
+ 80: C
945
+ },
946
+ {
947
+ 35: 91,
948
+ 75: 81,
949
+ 76: E,
950
+ 77: S,
951
+ 79: A,
952
+ 80: C
953
+ },
954
+ {
955
+ 35: 92,
956
+ 75: 81,
957
+ 76: E,
958
+ 77: S,
959
+ 79: A,
960
+ 80: C
961
+ },
962
+ {
963
+ 35: 93,
964
+ 75: 81,
965
+ 76: E,
966
+ 77: S,
967
+ 79: A,
968
+ 80: C
969
+ },
970
+ {
971
+ 35: 94,
972
+ 75: 81,
973
+ 76: E,
974
+ 77: S,
975
+ 79: A,
976
+ 80: C
977
+ },
978
+ {
979
+ 35: 95,
980
+ 75: 81,
981
+ 76: E,
982
+ 77: S,
983
+ 79: A,
984
+ 80: C
985
+ },
986
+ {
987
+ 35: 96,
988
+ 75: 81,
989
+ 76: E,
990
+ 77: S,
991
+ 79: A,
992
+ 80: C
993
+ },
994
+ {
995
+ 35: 97,
996
+ 75: 81,
997
+ 76: E,
998
+ 77: S,
999
+ 79: A,
1000
+ 80: C
1001
+ },
1002
+ {
1003
+ 35: 98,
1004
+ 75: 81,
1005
+ 76: E,
1006
+ 77: S,
1007
+ 79: A,
1008
+ 80: C
1009
+ },
1010
+ {
1011
+ 35: 99,
1012
+ 75: 81,
1013
+ 76: E,
1014
+ 77: S,
1015
+ 79: A,
1016
+ 80: C
1017
+ },
1018
+ {
1019
+ 35: 100,
1020
+ 75: 81,
1021
+ 76: E,
1022
+ 77: S,
1023
+ 79: A,
1024
+ 80: C
1025
+ },
1026
+ {
1027
+ 35: 101,
1028
+ 75: 81,
1029
+ 76: E,
1030
+ 77: S,
1031
+ 79: A,
1032
+ 80: C
1033
+ },
1034
+ {
1035
+ 35: 102,
1036
+ 75: 81,
1037
+ 76: E,
1038
+ 77: S,
1039
+ 79: A,
1040
+ 80: C
1041
+ },
1042
+ {
1043
+ 35: 103,
1044
+ 75: 81,
1045
+ 76: E,
1046
+ 77: S,
1047
+ 79: A,
1048
+ 80: C
1049
+ },
1050
+ {
1051
+ 35: 104,
1052
+ 75: 81,
1053
+ 76: E,
1054
+ 77: S,
1055
+ 79: A,
1056
+ 80: C
1057
+ },
1058
+ a(w, [2, 59]),
1059
+ {
1060
+ 35: 105,
1061
+ 75: 81,
1062
+ 76: E,
1063
+ 77: S,
1064
+ 79: A,
1065
+ 80: C
1066
+ },
1067
+ {
1068
+ 35: 106,
1069
+ 75: 81,
1070
+ 76: E,
1071
+ 77: S,
1072
+ 79: A,
1073
+ 80: C
1074
+ },
1075
+ {
1076
+ 35: 107,
1077
+ 75: 81,
1078
+ 76: E,
1079
+ 77: S,
1080
+ 79: A,
1081
+ 80: C
1082
+ },
1083
+ {
1084
+ 35: 108,
1085
+ 75: 81,
1086
+ 76: E,
1087
+ 77: S,
1088
+ 79: A,
1089
+ 80: C
1090
+ },
1091
+ {
1092
+ 35: 109,
1093
+ 75: 81,
1094
+ 76: E,
1095
+ 77: S,
1096
+ 79: A,
1097
+ 80: C
1098
+ },
1099
+ {
1100
+ 35: 110,
1101
+ 75: 81,
1102
+ 76: E,
1103
+ 77: S,
1104
+ 79: A,
1105
+ 80: C
1106
+ },
1107
+ {
1108
+ 35: 111,
1109
+ 75: 81,
1110
+ 76: E,
1111
+ 77: S,
1112
+ 79: A,
1113
+ 80: C
1114
+ },
1115
+ {
1116
+ 35: 112,
1117
+ 75: 81,
1118
+ 76: E,
1119
+ 77: S,
1120
+ 79: A,
1121
+ 80: C
1122
+ },
1123
+ {
1124
+ 35: 113,
1125
+ 75: 81,
1126
+ 76: E,
1127
+ 77: S,
1128
+ 79: A,
1129
+ 80: C
1130
+ },
1131
+ {
1132
+ 35: 114,
1133
+ 75: 81,
1134
+ 76: E,
1135
+ 77: S,
1136
+ 79: A,
1137
+ 80: C
1138
+ },
1139
+ {
1140
+ 35: 115,
1141
+ 75: 81,
1142
+ 76: E,
1143
+ 77: S,
1144
+ 79: A,
1145
+ 80: C
1146
+ },
1147
+ {
1148
+ 20: 116,
1149
+ 29: 49,
1150
+ 30: 61,
1151
+ 32: 62,
1152
+ 34: e,
1153
+ 36: i,
1154
+ 37: n,
1155
+ 38: u,
1156
+ 39: d,
1157
+ 40: p,
1158
+ 41: b,
1159
+ 43: 23,
1160
+ 44: k,
1161
+ 45: v,
1162
+ 46: R,
1163
+ 47: P,
1164
+ 48: X,
1165
+ 49: Y,
1166
+ 50: q,
1167
+ 51: H,
1168
+ 52: V,
1169
+ 53: G,
1170
+ 54: K,
1171
+ 55: J,
1172
+ 56: Z,
1173
+ 57: tt,
1174
+ 58: et,
1175
+ 59: at,
1176
+ 60: nt,
1177
+ 61: it,
1178
+ 62: st,
1179
+ 63: rt,
1180
+ 64: lt,
1181
+ 65: ot,
1182
+ 66: ct,
1183
+ 67: ht,
1184
+ 68: dt,
1185
+ 69: ut,
1186
+ 70: pt,
1187
+ 71: yt,
1188
+ 72: ft,
1189
+ 73: bt,
1190
+ 74: gt
1191
+ },
1192
+ {
1193
+ 12: [1, 118],
1194
+ 33: [1, 117]
1195
+ },
1196
+ {
1197
+ 35: 119,
1198
+ 75: 81,
1199
+ 76: E,
1200
+ 77: S,
1201
+ 79: A,
1202
+ 80: C
1203
+ },
1204
+ {
1205
+ 35: 120,
1206
+ 75: 81,
1207
+ 76: E,
1208
+ 77: S,
1209
+ 79: A,
1210
+ 80: C
1211
+ },
1212
+ {
1213
+ 35: 121,
1214
+ 75: 81,
1215
+ 76: E,
1216
+ 77: S,
1217
+ 79: A,
1218
+ 80: C
1219
+ },
1220
+ {
1221
+ 35: 122,
1222
+ 75: 81,
1223
+ 76: E,
1224
+ 77: S,
1225
+ 79: A,
1226
+ 80: C
1227
+ },
1228
+ {
1229
+ 35: 123,
1230
+ 75: 81,
1231
+ 76: E,
1232
+ 77: S,
1233
+ 79: A,
1234
+ 80: C
1235
+ },
1236
+ {
1237
+ 35: 124,
1238
+ 75: 81,
1239
+ 76: E,
1240
+ 77: S,
1241
+ 79: A,
1242
+ 80: C
1243
+ },
1244
+ {
1245
+ 35: 125,
1246
+ 75: 81,
1247
+ 76: E,
1248
+ 77: S,
1249
+ 79: A,
1250
+ 80: C
1251
+ },
1252
+ { 14: [1, 126] },
1253
+ { 14: [1, 127] },
1254
+ { 14: [1, 128] },
1255
+ { 14: [1, 129] },
1256
+ { 1: [2, 8] },
1257
+ a(Ct, [2, 15]),
1258
+ a($t, [2, 17], {
1259
+ 21: 22,
1260
+ 19: 130,
1261
+ 22: t,
1262
+ 23: s,
1263
+ 24: o,
1264
+ 26: l,
1265
+ 28: r
1266
+ }),
1267
+ a(Ct, [2, 37], {
1268
+ 19: 20,
1269
+ 20: 21,
1270
+ 21: 22,
1271
+ 43: 23,
1272
+ 29: 49,
1273
+ 30: 61,
1274
+ 32: 62,
1275
+ 13: 131,
1276
+ 22: t,
1277
+ 23: s,
1278
+ 24: o,
1279
+ 26: l,
1280
+ 28: r,
1281
+ 34: e,
1282
+ 36: i,
1283
+ 37: n,
1284
+ 38: u,
1285
+ 39: d,
1286
+ 40: p,
1287
+ 41: b,
1288
+ 44: k,
1289
+ 45: v,
1290
+ 46: R,
1291
+ 47: P,
1292
+ 48: X,
1293
+ 49: Y,
1294
+ 50: q,
1295
+ 51: H,
1296
+ 52: V,
1297
+ 53: G,
1298
+ 54: K,
1299
+ 55: J,
1300
+ 56: Z,
1301
+ 57: tt,
1302
+ 58: et,
1303
+ 59: at,
1304
+ 60: nt,
1305
+ 61: it,
1306
+ 62: st,
1307
+ 63: rt,
1308
+ 64: lt,
1309
+ 65: ot,
1310
+ 66: ct,
1311
+ 67: ht,
1312
+ 68: dt,
1313
+ 69: ut,
1314
+ 70: pt,
1315
+ 71: yt,
1316
+ 72: ft,
1317
+ 73: bt,
1318
+ 74: gt
1319
+ }),
1320
+ a(vt, [2, 21]),
1321
+ a(vt, [2, 22]),
1322
+ a(w, [2, 39]),
1323
+ a(re, [2, 71], {
1324
+ 75: 81,
1325
+ 35: 132,
1326
+ 76: E,
1327
+ 77: S,
1328
+ 79: A,
1329
+ 80: C
1330
+ }),
1331
+ a(Bt, [2, 73]),
1332
+ { 78: [1, 133] },
1333
+ a(Bt, [2, 75]),
1334
+ a(Bt, [2, 76]),
1335
+ a(w, [2, 40]),
1336
+ a(w, [2, 41]),
1337
+ a(w, [2, 42]),
1338
+ a(w, [2, 43]),
1339
+ a(w, [2, 44]),
1340
+ a(w, [2, 45]),
1341
+ a(w, [2, 46]),
1342
+ a(w, [2, 47]),
1343
+ a(w, [2, 48]),
1344
+ a(w, [2, 49]),
1345
+ a(w, [2, 50]),
1346
+ a(w, [2, 51]),
1347
+ a(w, [2, 52]),
1348
+ a(w, [2, 53]),
1349
+ a(w, [2, 54]),
1350
+ a(w, [2, 55]),
1351
+ a(w, [2, 56]),
1352
+ a(w, [2, 57]),
1353
+ a(w, [2, 58]),
1354
+ a(w, [2, 60]),
1355
+ a(w, [2, 61]),
1356
+ a(w, [2, 62]),
1357
+ a(w, [2, 63]),
1358
+ a(w, [2, 64]),
1359
+ a(w, [2, 65]),
1360
+ a(w, [2, 66]),
1361
+ a(w, [2, 67]),
1362
+ a(w, [2, 68]),
1363
+ a(w, [2, 69]),
1364
+ a(w, [2, 70]),
1365
+ {
1366
+ 31: 134,
1367
+ 42: [1, 135]
1368
+ },
1369
+ { 12: [1, 136] },
1370
+ { 33: [1, 137] },
1371
+ a(mt, [2, 28]),
1372
+ a(mt, [2, 29]),
1373
+ a(mt, [2, 30]),
1374
+ a(mt, [2, 31]),
1375
+ a(mt, [2, 32]),
1376
+ a(mt, [2, 33]),
1377
+ a(mt, [2, 34]),
1378
+ { 1: [2, 9] },
1379
+ { 1: [2, 10] },
1380
+ { 1: [2, 11] },
1381
+ { 1: [2, 12] },
1382
+ a($t, [2, 18]),
1383
+ a(Ct, [2, 38]),
1384
+ a(re, [2, 72]),
1385
+ a(Bt, [2, 74]),
1386
+ a(w, [2, 24]),
1387
+ a(w, [2, 35]),
1388
+ a(zt, [2, 25]),
1389
+ a(zt, [2, 26], { 12: [1, 138] }),
1390
+ a(zt, [2, 27])
1391
+ ],
1392
+ defaultActions: {
1393
+ 2: [2, 1],
1394
+ 3: [2, 2],
1395
+ 4: [2, 7],
1396
+ 5: [2, 3],
1397
+ 6: [2, 4],
1398
+ 7: [2, 5],
1399
+ 8: [2, 6],
1400
+ 74: [2, 8],
1401
+ 126: [2, 9],
1402
+ 127: [2, 10],
1403
+ 128: [2, 11],
1404
+ 129: [2, 12]
1405
+ },
1406
+ parseError: /* @__PURE__ */ f(function(_, O) {
1407
+ if (O.recoverable) this.trace(_);
1408
+ else {
1409
+ var m = Error(_);
1410
+ throw m.hash = O, m;
1411
+ }
1412
+ }, "parseError"),
1413
+ parse: /* @__PURE__ */ f(function(_) {
1414
+ var O = this, m = [0], g = [], T = [null], h = [], Rt = this.table, y = "", Et = 0, le = 0, ke = 0, we = 2, oe = 1, Oe = h.slice.call(arguments, 1), D = Object.create(this.lexer), St = { yy: {} };
1415
+ for (var qt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, qt) && (St.yy[qt] = this.yy[qt]);
1416
+ D.setInput(_, St.yy), St.yy.lexer = D, St.yy.parser = this, D.yylloc === void 0 && (D.yylloc = {});
1417
+ var Ht = D.yylloc;
1418
+ h.push(Ht);
1419
+ var Te = D.options && D.options.ranges;
1420
+ typeof St.yy.parseError == "function" ? this.parseError = St.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1421
+ function ve(j) {
1422
+ m.length -= 2 * j, T.length -= j, h.length -= j;
1423
+ }
1424
+ f(ve, "popStack");
1425
+ function ce() {
1426
+ var j = g.pop() || D.lex() || oe;
1427
+ return typeof j != "number" && (j instanceof Array && (g = j, j = g.pop()), j = O.symbols_[j] || j), j;
1428
+ }
1429
+ f(ce, "lex");
1430
+ for (var B, Vt, At, I, Gt, kt = {}, jt, z, he, Mt; ; ) {
1431
+ if (At = m[m.length - 1], this.defaultActions[At] ? I = this.defaultActions[At] : (B ??= ce(), I = Rt[At] && Rt[At][B]), I === void 0 || !I.length || !I[0]) {
1432
+ var de = "";
1433
+ for (jt in Mt = [], Rt[At]) this.terminals_[jt] && jt > we && Mt.push("'" + this.terminals_[jt] + "'");
1434
+ de = D.showPosition ? "Parse error on line " + (Et + 1) + `:
1435
+ ` + D.showPosition() + `
1436
+ Expecting ` + Mt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : "Parse error on line " + (Et + 1) + ": Unexpected " + (B == oe ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(de, {
1437
+ text: D.match,
1438
+ token: this.terminals_[B] || B,
1439
+ line: D.yylineno,
1440
+ loc: Ht,
1441
+ expected: Mt
1442
+ });
1443
+ }
1444
+ if (I[0] instanceof Array && I.length > 1) throw Error("Parse Error: multiple actions possible at state: " + At + ", token: " + B);
1445
+ switch (I[0]) {
1446
+ case 1:
1447
+ m.push(B), T.push(D.yytext), h.push(D.yylloc), m.push(I[1]), B = null, Vt ? (B = Vt, Vt = null) : (le = D.yyleng, y = D.yytext, Et = D.yylineno, Ht = D.yylloc, ke > 0);
1448
+ break;
1449
+ case 2:
1450
+ if (z = this.productions_[I[1]][1], kt.$ = T[T.length - z], kt._$ = {
1451
+ first_line: h[h.length - (z || 1)].first_line,
1452
+ last_line: h[h.length - 1].last_line,
1453
+ first_column: h[h.length - (z || 1)].first_column,
1454
+ last_column: h[h.length - 1].last_column
1455
+ }, Te && (kt._$.range = [h[h.length - (z || 1)].range[0], h[h.length - 1].range[1]]), Gt = this.performAction.apply(kt, [
1456
+ y,
1457
+ le,
1458
+ Et,
1459
+ St.yy,
1460
+ I[1],
1461
+ T,
1462
+ h
1463
+ ].concat(Oe)), Gt !== void 0) return Gt;
1464
+ z && (m = m.slice(0, -1 * z * 2), T = T.slice(0, -1 * z), h = h.slice(0, -1 * z)), m.push(this.productions_[I[1]][0]), T.push(kt.$), h.push(kt._$), he = Rt[m[m.length - 2]][m[m.length - 1]], m.push(he);
1465
+ break;
1466
+ case 3:
1467
+ return !0;
1468
+ }
1469
+ }
1470
+ return !0;
1471
+ }, "parse")
1472
+ };
1473
+ Qt.lexer = /* @__PURE__ */ (function() {
1474
+ return {
1475
+ EOF: 1,
1476
+ parseError: /* @__PURE__ */ f(function(_, O) {
1477
+ if (this.yy.parser) this.yy.parser.parseError(_, O);
1478
+ else throw Error(_);
1479
+ }, "parseError"),
1480
+ setInput: /* @__PURE__ */ f(function(_, O) {
1481
+ return this.yy = O || this.yy || {}, this._input = _, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1482
+ first_line: 1,
1483
+ first_column: 0,
1484
+ last_line: 1,
1485
+ last_column: 0
1486
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1487
+ }, "setInput"),
1488
+ input: /* @__PURE__ */ f(function() {
1489
+ var _ = this._input[0];
1490
+ return this.yytext += _, this.yyleng++, this.offset++, this.match += _, this.matched += _, _.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), _;
1491
+ }, "input"),
1492
+ unput: /* @__PURE__ */ f(function(_) {
1493
+ var O = _.length, m = _.split(/(?:\r\n?|\n)/g);
1494
+ this._input = _ + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - O), this.offset -= O;
1495
+ var g = this.match.split(/(?:\r\n?|\n)/g);
1496
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), m.length - 1 && (this.yylineno -= m.length - 1);
1497
+ var T = this.yylloc.range;
1498
+ return this.yylloc = {
1499
+ first_line: this.yylloc.first_line,
1500
+ last_line: this.yylineno + 1,
1501
+ first_column: this.yylloc.first_column,
1502
+ last_column: m ? (m.length === g.length ? this.yylloc.first_column : 0) + g[g.length - m.length].length - m[0].length : this.yylloc.first_column - O
1503
+ }, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - O]), this.yyleng = this.yytext.length, this;
1504
+ }, "unput"),
1505
+ more: /* @__PURE__ */ f(function() {
1506
+ return this._more = !0, this;
1507
+ }, "more"),
1508
+ reject: /* @__PURE__ */ f(function() {
1509
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1510
+ 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).
1511
+ ` + this.showPosition(), {
1512
+ text: "",
1513
+ token: null,
1514
+ line: this.yylineno
1515
+ });
1516
+ return this;
1517
+ }, "reject"),
1518
+ less: /* @__PURE__ */ f(function(_) {
1519
+ this.unput(this.match.slice(_));
1520
+ }, "less"),
1521
+ pastInput: /* @__PURE__ */ f(function() {
1522
+ var _ = this.matched.substr(0, this.matched.length - this.match.length);
1523
+ return (_.length > 20 ? "..." : "") + _.substr(-20).replace(/\n/g, "");
1524
+ }, "pastInput"),
1525
+ upcomingInput: /* @__PURE__ */ f(function() {
1526
+ var _ = this.match;
1527
+ return _.length < 20 && (_ += this._input.substr(0, 20 - _.length)), (_.substr(0, 20) + (_.length > 20 ? "..." : "")).replace(/\n/g, "");
1528
+ }, "upcomingInput"),
1529
+ showPosition: /* @__PURE__ */ f(function() {
1530
+ var _ = this.pastInput(), O = Array(_.length + 1).join("-");
1531
+ return _ + this.upcomingInput() + `
1532
+ ` + O + "^";
1533
+ }, "showPosition"),
1534
+ test_match: /* @__PURE__ */ f(function(_, O) {
1535
+ var m, g, T;
1536
+ if (this.options.backtrack_lexer && (T = {
1537
+ yylineno: this.yylineno,
1538
+ yylloc: {
1539
+ first_line: this.yylloc.first_line,
1540
+ last_line: this.last_line,
1541
+ first_column: this.yylloc.first_column,
1542
+ last_column: this.yylloc.last_column
1543
+ },
1544
+ yytext: this.yytext,
1545
+ match: this.match,
1546
+ matches: this.matches,
1547
+ matched: this.matched,
1548
+ yyleng: this.yyleng,
1549
+ offset: this.offset,
1550
+ _more: this._more,
1551
+ _input: this._input,
1552
+ yy: this.yy,
1553
+ conditionStack: this.conditionStack.slice(0),
1554
+ done: this.done
1555
+ }, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), g = _[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
1556
+ first_line: this.yylloc.last_line,
1557
+ last_line: this.yylineno + 1,
1558
+ first_column: this.yylloc.last_column,
1559
+ last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + _[0].length
1560
+ }, this.yytext += _[0], this.match += _[0], this.matches = _, 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(_[0].length), this.matched += _[0], m = this.performAction.call(this, this.yy, this, O, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), m) return m;
1561
+ if (this._backtrack) {
1562
+ for (var h in T) this[h] = T[h];
1563
+ return !1;
1564
+ }
1565
+ return !1;
1566
+ }, "test_match"),
1567
+ next: /* @__PURE__ */ f(function() {
1568
+ if (this.done) return this.EOF;
1569
+ this._input || (this.done = !0);
1570
+ var _, O, m, g;
1571
+ this._more || (this.yytext = "", this.match = "");
1572
+ for (var T = this._currentRules(), h = 0; h < T.length; h++) if (m = this._input.match(this.rules[T[h]]), m && (!O || m[0].length > O[0].length)) {
1573
+ if (O = m, g = h, this.options.backtrack_lexer) {
1574
+ if (_ = this.test_match(m, T[h]), _ !== !1) return _;
1575
+ if (this._backtrack) {
1576
+ O = !1;
1577
+ continue;
1578
+ } else return !1;
1579
+ } else if (!this.options.flex) break;
1580
+ }
1581
+ return O ? (_ = this.test_match(O, T[g]), _ === !1 ? !1 : _) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1582
+ ` + this.showPosition(), {
1583
+ text: "",
1584
+ token: null,
1585
+ line: this.yylineno
1586
+ });
1587
+ }, "next"),
1588
+ lex: /* @__PURE__ */ f(function() {
1589
+ return this.next() || this.lex();
1590
+ }, "lex"),
1591
+ begin: /* @__PURE__ */ f(function(_) {
1592
+ this.conditionStack.push(_);
1593
+ }, "begin"),
1594
+ popState: /* @__PURE__ */ f(function() {
1595
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1596
+ }, "popState"),
1597
+ _currentRules: /* @__PURE__ */ f(function() {
1598
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1599
+ }, "_currentRules"),
1600
+ topState: /* @__PURE__ */ f(function(_) {
1601
+ return _ = this.conditionStack.length - 1 - Math.abs(_ || 0), _ >= 0 ? this.conditionStack[_] : "INITIAL";
1602
+ }, "topState"),
1603
+ pushState: /* @__PURE__ */ f(function(_) {
1604
+ this.begin(_);
1605
+ }, "pushState"),
1606
+ stateStackSize: /* @__PURE__ */ f(function() {
1607
+ return this.conditionStack.length;
1608
+ }, "stateStackSize"),
1609
+ options: {},
1610
+ performAction: /* @__PURE__ */ f(function(_, O, m, g) {
1611
+ switch (m) {
1612
+ case 0:
1613
+ return 6;
1614
+ case 1:
1615
+ return 7;
1616
+ case 2:
1617
+ return 8;
1618
+ case 3:
1619
+ return 9;
1620
+ case 4:
1621
+ return 22;
1622
+ case 5:
1623
+ return 23;
1624
+ case 6:
1625
+ return this.begin("acc_title"), 24;
1626
+ case 7:
1627
+ return this.popState(), "acc_title_value";
1628
+ case 8:
1629
+ return this.begin("acc_descr"), 26;
1630
+ case 9:
1631
+ return this.popState(), "acc_descr_value";
1632
+ case 10:
1633
+ this.begin("acc_descr_multiline");
1634
+ break;
1635
+ case 11:
1636
+ this.popState();
1637
+ break;
1638
+ case 12:
1639
+ return "acc_descr_multiline_value";
1640
+ case 13:
1641
+ break;
1642
+ case 14:
1643
+ c;
1644
+ break;
1645
+ case 15:
1646
+ return 12;
1647
+ case 16:
1648
+ break;
1649
+ case 17:
1650
+ return 11;
1651
+ case 18:
1652
+ return 15;
1653
+ case 19:
1654
+ return 16;
1655
+ case 20:
1656
+ return 17;
1657
+ case 21:
1658
+ return 18;
1659
+ case 22:
1660
+ return this.begin("person_ext"), 45;
1661
+ case 23:
1662
+ return this.begin("person"), 44;
1663
+ case 24:
1664
+ return this.begin("system_ext_queue"), 51;
1665
+ case 25:
1666
+ return this.begin("system_ext_db"), 50;
1667
+ case 26:
1668
+ return this.begin("system_ext"), 49;
1669
+ case 27:
1670
+ return this.begin("system_queue"), 48;
1671
+ case 28:
1672
+ return this.begin("system_db"), 47;
1673
+ case 29:
1674
+ return this.begin("system"), 46;
1675
+ case 30:
1676
+ return this.begin("boundary"), 37;
1677
+ case 31:
1678
+ return this.begin("enterprise_boundary"), 34;
1679
+ case 32:
1680
+ return this.begin("system_boundary"), 36;
1681
+ case 33:
1682
+ return this.begin("container_ext_queue"), 57;
1683
+ case 34:
1684
+ return this.begin("container_ext_db"), 56;
1685
+ case 35:
1686
+ return this.begin("container_ext"), 55;
1687
+ case 36:
1688
+ return this.begin("container_queue"), 54;
1689
+ case 37:
1690
+ return this.begin("container_db"), 53;
1691
+ case 38:
1692
+ return this.begin("container"), 52;
1693
+ case 39:
1694
+ return this.begin("container_boundary"), 38;
1695
+ case 40:
1696
+ return this.begin("component_ext_queue"), 63;
1697
+ case 41:
1698
+ return this.begin("component_ext_db"), 62;
1699
+ case 42:
1700
+ return this.begin("component_ext"), 61;
1701
+ case 43:
1702
+ return this.begin("component_queue"), 60;
1703
+ case 44:
1704
+ return this.begin("component_db"), 59;
1705
+ case 45:
1706
+ return this.begin("component"), 58;
1707
+ case 46:
1708
+ return this.begin("node"), 39;
1709
+ case 47:
1710
+ return this.begin("node"), 39;
1711
+ case 48:
1712
+ return this.begin("node_l"), 40;
1713
+ case 49:
1714
+ return this.begin("node_r"), 41;
1715
+ case 50:
1716
+ return this.begin("rel"), 64;
1717
+ case 51:
1718
+ return this.begin("birel"), 65;
1719
+ case 52:
1720
+ return this.begin("rel_u"), 66;
1721
+ case 53:
1722
+ return this.begin("rel_u"), 66;
1723
+ case 54:
1724
+ return this.begin("rel_d"), 67;
1725
+ case 55:
1726
+ return this.begin("rel_d"), 67;
1727
+ case 56:
1728
+ return this.begin("rel_l"), 68;
1729
+ case 57:
1730
+ return this.begin("rel_l"), 68;
1731
+ case 58:
1732
+ return this.begin("rel_r"), 69;
1733
+ case 59:
1734
+ return this.begin("rel_r"), 69;
1735
+ case 60:
1736
+ return this.begin("rel_b"), 70;
1737
+ case 61:
1738
+ return this.begin("rel_index"), 71;
1739
+ case 62:
1740
+ return this.begin("update_el_style"), 72;
1741
+ case 63:
1742
+ return this.begin("update_rel_style"), 73;
1743
+ case 64:
1744
+ return this.begin("update_layout_config"), 74;
1745
+ case 65:
1746
+ return "EOF_IN_STRUCT";
1747
+ case 66:
1748
+ return this.begin("attribute"), "ATTRIBUTE_EMPTY";
1749
+ case 67:
1750
+ this.begin("attribute");
1751
+ break;
1752
+ case 68:
1753
+ this.popState(), this.popState();
1754
+ break;
1755
+ case 69:
1756
+ return 80;
1757
+ case 70:
1758
+ break;
1759
+ case 71:
1760
+ return 80;
1761
+ case 72:
1762
+ this.begin("string");
1763
+ break;
1764
+ case 73:
1765
+ this.popState();
1766
+ break;
1767
+ case 74:
1768
+ return "STR";
1769
+ case 75:
1770
+ this.begin("string_kv");
1771
+ break;
1772
+ case 76:
1773
+ return this.begin("string_kv_key"), "STR_KEY";
1774
+ case 77:
1775
+ this.popState(), this.begin("string_kv_value");
1776
+ break;
1777
+ case 78:
1778
+ return "STR_VALUE";
1779
+ case 79:
1780
+ this.popState(), this.popState();
1781
+ break;
1782
+ case 80:
1783
+ return "STR";
1784
+ case 81:
1785
+ return "LBRACE";
1786
+ case 82:
1787
+ return "RBRACE";
1788
+ case 83:
1789
+ return "SPACE";
1790
+ case 84:
1791
+ return "EOL";
1792
+ case 85:
1793
+ return 14;
1794
+ }
1795
+ }, "anonymous"),
1796
+ rules: [
1797
+ /^(?:.*direction\s+TB[^\n]*)/,
1798
+ /^(?:.*direction\s+BT[^\n]*)/,
1799
+ /^(?:.*direction\s+RL[^\n]*)/,
1800
+ /^(?:.*direction\s+LR[^\n]*)/,
1801
+ /^(?:title\s[^#\n;]+)/,
1802
+ /^(?:accDescription\s[^#\n;]+)/,
1803
+ /^(?:accTitle\s*:\s*)/,
1804
+ /^(?:(?!\n||)*[^\n]*)/,
1805
+ /^(?:accDescr\s*:\s*)/,
1806
+ /^(?:(?!\n||)*[^\n]*)/,
1807
+ /^(?:accDescr\s*\{\s*)/,
1808
+ /^(?:[\}])/,
1809
+ /^(?:[^\}]*)/,
1810
+ /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1811
+ /^(?:%%[^\n]*(\r?\n)*)/,
1812
+ /^(?:\s*(\r?\n)+)/,
1813
+ /^(?:\s+)/,
1814
+ /^(?:C4Context\b)/,
1815
+ /^(?:C4Container\b)/,
1816
+ /^(?:C4Component\b)/,
1817
+ /^(?:C4Dynamic\b)/,
1818
+ /^(?:C4Deployment\b)/,
1819
+ /^(?:Person_Ext\b)/,
1820
+ /^(?:Person\b)/,
1821
+ /^(?:SystemQueue_Ext\b)/,
1822
+ /^(?:SystemDb_Ext\b)/,
1823
+ /^(?:System_Ext\b)/,
1824
+ /^(?:SystemQueue\b)/,
1825
+ /^(?:SystemDb\b)/,
1826
+ /^(?:System\b)/,
1827
+ /^(?:Boundary\b)/,
1828
+ /^(?:Enterprise_Boundary\b)/,
1829
+ /^(?:System_Boundary\b)/,
1830
+ /^(?:ContainerQueue_Ext\b)/,
1831
+ /^(?:ContainerDb_Ext\b)/,
1832
+ /^(?:Container_Ext\b)/,
1833
+ /^(?:ContainerQueue\b)/,
1834
+ /^(?:ContainerDb\b)/,
1835
+ /^(?:Container\b)/,
1836
+ /^(?:Container_Boundary\b)/,
1837
+ /^(?:ComponentQueue_Ext\b)/,
1838
+ /^(?:ComponentDb_Ext\b)/,
1839
+ /^(?:Component_Ext\b)/,
1840
+ /^(?:ComponentQueue\b)/,
1841
+ /^(?:ComponentDb\b)/,
1842
+ /^(?:Component\b)/,
1843
+ /^(?:Deployment_Node\b)/,
1844
+ /^(?:Node\b)/,
1845
+ /^(?:Node_L\b)/,
1846
+ /^(?:Node_R\b)/,
1847
+ /^(?:Rel\b)/,
1848
+ /^(?:BiRel\b)/,
1849
+ /^(?:Rel_Up\b)/,
1850
+ /^(?:Rel_U\b)/,
1851
+ /^(?:Rel_Down\b)/,
1852
+ /^(?:Rel_D\b)/,
1853
+ /^(?:Rel_Left\b)/,
1854
+ /^(?:Rel_L\b)/,
1855
+ /^(?:Rel_Right\b)/,
1856
+ /^(?:Rel_R\b)/,
1857
+ /^(?:Rel_Back\b)/,
1858
+ /^(?:RelIndex\b)/,
1859
+ /^(?:UpdateElementStyle\b)/,
1860
+ /^(?:UpdateRelStyle\b)/,
1861
+ /^(?:UpdateLayoutConfig\b)/,
1862
+ /^(?:$)/,
1863
+ /^(?:[(][ ]*[,])/,
1864
+ /^(?:[(])/,
1865
+ /^(?:[)])/,
1866
+ /^(?:,,)/,
1867
+ /^(?:,)/,
1868
+ /^(?:[ ]*["]["])/,
1869
+ /^(?:[ ]*["])/,
1870
+ /^(?:["])/,
1871
+ /^(?:[^"]*)/,
1872
+ /^(?:[ ]*[\$])/,
1873
+ /^(?:[^=]*)/,
1874
+ /^(?:[=][ ]*["])/,
1875
+ /^(?:[^"]+)/,
1876
+ /^(?:["])/,
1877
+ /^(?:[^,]+)/,
1878
+ /^(?:\{)/,
1879
+ /^(?:\})/,
1880
+ /^(?:[\s]+)/,
1881
+ /^(?:[\n\r]+)/,
1882
+ /^(?:$)/
1883
+ ],
1884
+ conditions: {
1885
+ acc_descr_multiline: {
1886
+ rules: [11, 12],
1887
+ inclusive: !1
1888
+ },
1889
+ acc_descr: {
1890
+ rules: [9],
1891
+ inclusive: !1
1892
+ },
1893
+ acc_title: {
1894
+ rules: [7],
1895
+ inclusive: !1
1896
+ },
1897
+ string_kv_value: {
1898
+ rules: [78, 79],
1899
+ inclusive: !1
1900
+ },
1901
+ string_kv_key: {
1902
+ rules: [77],
1903
+ inclusive: !1
1904
+ },
1905
+ string_kv: {
1906
+ rules: [76],
1907
+ inclusive: !1
1908
+ },
1909
+ string: {
1910
+ rules: [73, 74],
1911
+ inclusive: !1
1912
+ },
1913
+ attribute: {
1914
+ rules: [
1915
+ 68,
1916
+ 69,
1917
+ 70,
1918
+ 71,
1919
+ 72,
1920
+ 75,
1921
+ 80
1922
+ ],
1923
+ inclusive: !1
1924
+ },
1925
+ update_layout_config: {
1926
+ rules: [
1927
+ 65,
1928
+ 66,
1929
+ 67,
1930
+ 68
1931
+ ],
1932
+ inclusive: !1
1933
+ },
1934
+ update_rel_style: {
1935
+ rules: [
1936
+ 65,
1937
+ 66,
1938
+ 67,
1939
+ 68
1940
+ ],
1941
+ inclusive: !1
1942
+ },
1943
+ update_el_style: {
1944
+ rules: [
1945
+ 65,
1946
+ 66,
1947
+ 67,
1948
+ 68
1949
+ ],
1950
+ inclusive: !1
1951
+ },
1952
+ rel_b: {
1953
+ rules: [
1954
+ 65,
1955
+ 66,
1956
+ 67,
1957
+ 68
1958
+ ],
1959
+ inclusive: !1
1960
+ },
1961
+ rel_r: {
1962
+ rules: [
1963
+ 65,
1964
+ 66,
1965
+ 67,
1966
+ 68
1967
+ ],
1968
+ inclusive: !1
1969
+ },
1970
+ rel_l: {
1971
+ rules: [
1972
+ 65,
1973
+ 66,
1974
+ 67,
1975
+ 68
1976
+ ],
1977
+ inclusive: !1
1978
+ },
1979
+ rel_d: {
1980
+ rules: [
1981
+ 65,
1982
+ 66,
1983
+ 67,
1984
+ 68
1985
+ ],
1986
+ inclusive: !1
1987
+ },
1988
+ rel_u: {
1989
+ rules: [
1990
+ 65,
1991
+ 66,
1992
+ 67,
1993
+ 68
1994
+ ],
1995
+ inclusive: !1
1996
+ },
1997
+ rel_bi: {
1998
+ rules: [],
1999
+ inclusive: !1
2000
+ },
2001
+ rel: {
2002
+ rules: [
2003
+ 65,
2004
+ 66,
2005
+ 67,
2006
+ 68
2007
+ ],
2008
+ inclusive: !1
2009
+ },
2010
+ node_r: {
2011
+ rules: [
2012
+ 65,
2013
+ 66,
2014
+ 67,
2015
+ 68
2016
+ ],
2017
+ inclusive: !1
2018
+ },
2019
+ node_l: {
2020
+ rules: [
2021
+ 65,
2022
+ 66,
2023
+ 67,
2024
+ 68
2025
+ ],
2026
+ inclusive: !1
2027
+ },
2028
+ node: {
2029
+ rules: [
2030
+ 65,
2031
+ 66,
2032
+ 67,
2033
+ 68
2034
+ ],
2035
+ inclusive: !1
2036
+ },
2037
+ index: {
2038
+ rules: [],
2039
+ inclusive: !1
2040
+ },
2041
+ rel_index: {
2042
+ rules: [
2043
+ 65,
2044
+ 66,
2045
+ 67,
2046
+ 68
2047
+ ],
2048
+ inclusive: !1
2049
+ },
2050
+ component_ext_queue: {
2051
+ rules: [
2052
+ 65,
2053
+ 66,
2054
+ 67,
2055
+ 68
2056
+ ],
2057
+ inclusive: !1
2058
+ },
2059
+ component_ext_db: {
2060
+ rules: [
2061
+ 65,
2062
+ 66,
2063
+ 67,
2064
+ 68
2065
+ ],
2066
+ inclusive: !1
2067
+ },
2068
+ component_ext: {
2069
+ rules: [
2070
+ 65,
2071
+ 66,
2072
+ 67,
2073
+ 68
2074
+ ],
2075
+ inclusive: !1
2076
+ },
2077
+ component_queue: {
2078
+ rules: [
2079
+ 65,
2080
+ 66,
2081
+ 67,
2082
+ 68
2083
+ ],
2084
+ inclusive: !1
2085
+ },
2086
+ component_db: {
2087
+ rules: [
2088
+ 65,
2089
+ 66,
2090
+ 67,
2091
+ 68
2092
+ ],
2093
+ inclusive: !1
2094
+ },
2095
+ component: {
2096
+ rules: [
2097
+ 65,
2098
+ 66,
2099
+ 67,
2100
+ 68
2101
+ ],
2102
+ inclusive: !1
2103
+ },
2104
+ container_boundary: {
2105
+ rules: [
2106
+ 65,
2107
+ 66,
2108
+ 67,
2109
+ 68
2110
+ ],
2111
+ inclusive: !1
2112
+ },
2113
+ container_ext_queue: {
2114
+ rules: [
2115
+ 65,
2116
+ 66,
2117
+ 67,
2118
+ 68
2119
+ ],
2120
+ inclusive: !1
2121
+ },
2122
+ container_ext_db: {
2123
+ rules: [
2124
+ 65,
2125
+ 66,
2126
+ 67,
2127
+ 68
2128
+ ],
2129
+ inclusive: !1
2130
+ },
2131
+ container_ext: {
2132
+ rules: [
2133
+ 65,
2134
+ 66,
2135
+ 67,
2136
+ 68
2137
+ ],
2138
+ inclusive: !1
2139
+ },
2140
+ container_queue: {
2141
+ rules: [
2142
+ 65,
2143
+ 66,
2144
+ 67,
2145
+ 68
2146
+ ],
2147
+ inclusive: !1
2148
+ },
2149
+ container_db: {
2150
+ rules: [
2151
+ 65,
2152
+ 66,
2153
+ 67,
2154
+ 68
2155
+ ],
2156
+ inclusive: !1
2157
+ },
2158
+ container: {
2159
+ rules: [
2160
+ 65,
2161
+ 66,
2162
+ 67,
2163
+ 68
2164
+ ],
2165
+ inclusive: !1
2166
+ },
2167
+ birel: {
2168
+ rules: [
2169
+ 65,
2170
+ 66,
2171
+ 67,
2172
+ 68
2173
+ ],
2174
+ inclusive: !1
2175
+ },
2176
+ system_boundary: {
2177
+ rules: [
2178
+ 65,
2179
+ 66,
2180
+ 67,
2181
+ 68
2182
+ ],
2183
+ inclusive: !1
2184
+ },
2185
+ enterprise_boundary: {
2186
+ rules: [
2187
+ 65,
2188
+ 66,
2189
+ 67,
2190
+ 68
2191
+ ],
2192
+ inclusive: !1
2193
+ },
2194
+ boundary: {
2195
+ rules: [
2196
+ 65,
2197
+ 66,
2198
+ 67,
2199
+ 68
2200
+ ],
2201
+ inclusive: !1
2202
+ },
2203
+ system_ext_queue: {
2204
+ rules: [
2205
+ 65,
2206
+ 66,
2207
+ 67,
2208
+ 68
2209
+ ],
2210
+ inclusive: !1
2211
+ },
2212
+ system_ext_db: {
2213
+ rules: [
2214
+ 65,
2215
+ 66,
2216
+ 67,
2217
+ 68
2218
+ ],
2219
+ inclusive: !1
2220
+ },
2221
+ system_ext: {
2222
+ rules: [
2223
+ 65,
2224
+ 66,
2225
+ 67,
2226
+ 68
2227
+ ],
2228
+ inclusive: !1
2229
+ },
2230
+ system_queue: {
2231
+ rules: [
2232
+ 65,
2233
+ 66,
2234
+ 67,
2235
+ 68
2236
+ ],
2237
+ inclusive: !1
2238
+ },
2239
+ system_db: {
2240
+ rules: [
2241
+ 65,
2242
+ 66,
2243
+ 67,
2244
+ 68
2245
+ ],
2246
+ inclusive: !1
2247
+ },
2248
+ system: {
2249
+ rules: [
2250
+ 65,
2251
+ 66,
2252
+ 67,
2253
+ 68
2254
+ ],
2255
+ inclusive: !1
2256
+ },
2257
+ person_ext: {
2258
+ rules: [
2259
+ 65,
2260
+ 66,
2261
+ 67,
2262
+ 68
2263
+ ],
2264
+ inclusive: !1
2265
+ },
2266
+ person: {
2267
+ rules: [
2268
+ 65,
2269
+ 66,
2270
+ 67,
2271
+ 68
2272
+ ],
2273
+ inclusive: !1
2274
+ },
2275
+ INITIAL: {
2276
+ rules: [
2277
+ 0,
2278
+ 1,
2279
+ 2,
2280
+ 3,
2281
+ 4,
2282
+ 5,
2283
+ 6,
2284
+ 8,
2285
+ 10,
2286
+ 13,
2287
+ 14,
2288
+ 15,
2289
+ 16,
2290
+ 17,
2291
+ 18,
2292
+ 19,
2293
+ 20,
2294
+ 21,
2295
+ 22,
2296
+ 23,
2297
+ 24,
2298
+ 25,
2299
+ 26,
2300
+ 27,
2301
+ 28,
2302
+ 29,
2303
+ 30,
2304
+ 31,
2305
+ 32,
2306
+ 33,
2307
+ 34,
2308
+ 35,
2309
+ 36,
2310
+ 37,
2311
+ 38,
2312
+ 39,
2313
+ 40,
2314
+ 41,
2315
+ 42,
2316
+ 43,
2317
+ 44,
2318
+ 45,
2319
+ 46,
2320
+ 47,
2321
+ 48,
2322
+ 49,
2323
+ 50,
2324
+ 51,
2325
+ 52,
2326
+ 53,
2327
+ 54,
2328
+ 55,
2329
+ 56,
2330
+ 57,
2331
+ 58,
2332
+ 59,
2333
+ 60,
2334
+ 61,
2335
+ 62,
2336
+ 63,
2337
+ 64,
2338
+ 81,
2339
+ 82,
2340
+ 83,
2341
+ 84,
2342
+ 85
2343
+ ],
2344
+ inclusive: !0
2345
+ }
2346
+ }
2347
+ };
2348
+ })();
2349
+ function It() {
2350
+ this.yy = {};
2351
+ }
2352
+ return f(It, "Parser"), It.prototype = Qt, Qt.Parser = It, new It();
2353
+ })();
2354
+ Yt.parser = Yt;
2355
+ var Fe = Yt, F = [], _t = [""], N = "global", U = "", $ = [{
2356
+ alias: "global",
2357
+ label: { text: "global" },
2358
+ type: { text: "global" },
2359
+ tags: null,
2360
+ link: null,
2361
+ parentBoundary: ""
2362
+ }], Pt = [], Zt = "", ne = !1, Ut = 4, Ft = 2, ge, Xe = /* @__PURE__ */ f(function() {
2363
+ return ge;
2364
+ }, "getC4Type"), We = /* @__PURE__ */ f(function(a) {
2365
+ ge = be(a, Nt());
2366
+ }, "setC4Type"), $e = /* @__PURE__ */ f(function(a, t, s, o, l, r, e, i, n) {
2367
+ if (a == null || t == null || s == null || o == null) return;
2368
+ let u = {}, d = Pt.find((p) => p.from === t && p.to === s);
2369
+ if (d ? u = d : Pt.push(u), u.type = a, u.from = t, u.to = s, u.label = { text: o }, l == null) u.techn = { text: "" };
2370
+ else if (typeof l == "object") {
2371
+ let [p, b] = Object.entries(l)[0];
2372
+ u[p] = { text: b };
2373
+ } else u.techn = { text: l };
2374
+ if (r == null) u.descr = { text: "" };
2375
+ else if (typeof r == "object") {
2376
+ let [p, b] = Object.entries(r)[0];
2377
+ u[p] = { text: b };
2378
+ } else u.descr = { text: r };
2379
+ if (typeof e == "object") {
2380
+ let [p, b] = Object.entries(e)[0];
2381
+ u[p] = b;
2382
+ } else u.sprite = e;
2383
+ if (typeof i == "object") {
2384
+ let [p, b] = Object.entries(i)[0];
2385
+ u[p] = b;
2386
+ } else u.tags = i;
2387
+ if (typeof n == "object") {
2388
+ let [p, b] = Object.entries(n)[0];
2389
+ u[p] = b;
2390
+ } else u.link = n;
2391
+ u.wrap = xt();
2392
+ }, "addRel"), ze = /* @__PURE__ */ f(function(a, t, s, o, l, r, e) {
2393
+ if (t === null || s === null) return;
2394
+ let i = {}, n = F.find((u) => u.alias === t);
2395
+ if (n && t === n.alias ? i = n : (i.alias = t, F.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null) i.descr = { text: "" };
2396
+ else if (typeof o == "object") {
2397
+ let [u, d] = Object.entries(o)[0];
2398
+ i[u] = { text: d };
2399
+ } else i.descr = { text: o };
2400
+ if (typeof l == "object") {
2401
+ let [u, d] = Object.entries(l)[0];
2402
+ i[u] = d;
2403
+ } else i.sprite = l;
2404
+ if (typeof r == "object") {
2405
+ let [u, d] = Object.entries(r)[0];
2406
+ i[u] = d;
2407
+ } else i.tags = r;
2408
+ if (typeof e == "object") {
2409
+ let [u, d] = Object.entries(e)[0];
2410
+ i[u] = d;
2411
+ } else i.link = e;
2412
+ i.typeC4Shape = { text: a }, i.parentBoundary = N, i.wrap = xt();
2413
+ }, "addPersonOrSystem"), Qe = /* @__PURE__ */ f(function(a, t, s, o, l, r, e, i) {
2414
+ if (t === null || s === null) return;
2415
+ let n = {}, u = F.find((d) => d.alias === t);
2416
+ if (u && t === u.alias ? n = u : (n.alias = t, F.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null) n.techn = { text: "" };
2417
+ else if (typeof o == "object") {
2418
+ let [d, p] = Object.entries(o)[0];
2419
+ n[d] = { text: p };
2420
+ } else n.techn = { text: o };
2421
+ if (l == null) n.descr = { text: "" };
2422
+ else if (typeof l == "object") {
2423
+ let [d, p] = Object.entries(l)[0];
2424
+ n[d] = { text: p };
2425
+ } else n.descr = { text: l };
2426
+ if (typeof r == "object") {
2427
+ let [d, p] = Object.entries(r)[0];
2428
+ n[d] = p;
2429
+ } else n.sprite = r;
2430
+ if (typeof e == "object") {
2431
+ let [d, p] = Object.entries(e)[0];
2432
+ n[d] = p;
2433
+ } else n.tags = e;
2434
+ if (typeof i == "object") {
2435
+ let [d, p] = Object.entries(i)[0];
2436
+ n[d] = p;
2437
+ } else n.link = i;
2438
+ n.wrap = xt(), n.typeC4Shape = { text: a }, n.parentBoundary = N;
2439
+ }, "addContainer"), qe = /* @__PURE__ */ f(function(a, t, s, o, l, r, e, i) {
2440
+ if (t === null || s === null) return;
2441
+ let n = {}, u = F.find((d) => d.alias === t);
2442
+ if (u && t === u.alias ? n = u : (n.alias = t, F.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null) n.techn = { text: "" };
2443
+ else if (typeof o == "object") {
2444
+ let [d, p] = Object.entries(o)[0];
2445
+ n[d] = { text: p };
2446
+ } else n.techn = { text: o };
2447
+ if (l == null) n.descr = { text: "" };
2448
+ else if (typeof l == "object") {
2449
+ let [d, p] = Object.entries(l)[0];
2450
+ n[d] = { text: p };
2451
+ } else n.descr = { text: l };
2452
+ if (typeof r == "object") {
2453
+ let [d, p] = Object.entries(r)[0];
2454
+ n[d] = p;
2455
+ } else n.sprite = r;
2456
+ if (typeof e == "object") {
2457
+ let [d, p] = Object.entries(e)[0];
2458
+ n[d] = p;
2459
+ } else n.tags = e;
2460
+ if (typeof i == "object") {
2461
+ let [d, p] = Object.entries(i)[0];
2462
+ n[d] = p;
2463
+ } else n.link = i;
2464
+ n.wrap = xt(), n.typeC4Shape = { text: a }, n.parentBoundary = N;
2465
+ }, "addComponent"), He = /* @__PURE__ */ f(function(a, t, s, o, l) {
2466
+ if (a === null || t === null) return;
2467
+ let r = {}, e = $.find((i) => i.alias === a);
2468
+ if (e && a === e.alias ? r = e : (r.alias = a, $.push(r)), t == null ? r.label = { text: "" } : r.label = { text: t }, s == null) r.type = { text: "system" };
2469
+ else if (typeof s == "object") {
2470
+ let [i, n] = Object.entries(s)[0];
2471
+ r[i] = { text: n };
2472
+ } else r.type = { text: s };
2473
+ if (typeof o == "object") {
2474
+ let [i, n] = Object.entries(o)[0];
2475
+ r[i] = n;
2476
+ } else r.tags = o;
2477
+ if (typeof l == "object") {
2478
+ let [i, n] = Object.entries(l)[0];
2479
+ r[i] = n;
2480
+ } else r.link = l;
2481
+ r.parentBoundary = N, r.wrap = xt(), U = N, N = a, _t.push(U);
2482
+ }, "addPersonOrSystemBoundary"), Ve = /* @__PURE__ */ f(function(a, t, s, o, l) {
2483
+ if (a === null || t === null) return;
2484
+ let r = {}, e = $.find((i) => i.alias === a);
2485
+ if (e && a === e.alias ? r = e : (r.alias = a, $.push(r)), t == null ? r.label = { text: "" } : r.label = { text: t }, s == null) r.type = { text: "container" };
2486
+ else if (typeof s == "object") {
2487
+ let [i, n] = Object.entries(s)[0];
2488
+ r[i] = { text: n };
2489
+ } else r.type = { text: s };
2490
+ if (typeof o == "object") {
2491
+ let [i, n] = Object.entries(o)[0];
2492
+ r[i] = n;
2493
+ } else r.tags = o;
2494
+ if (typeof l == "object") {
2495
+ let [i, n] = Object.entries(l)[0];
2496
+ r[i] = n;
2497
+ } else r.link = l;
2498
+ r.parentBoundary = N, r.wrap = xt(), U = N, N = a, _t.push(U);
2499
+ }, "addContainerBoundary"), Ge = /* @__PURE__ */ f(function(a, t, s, o, l, r, e, i) {
2500
+ if (t === null || s === null) return;
2501
+ let n = {}, u = $.find((d) => d.alias === t);
2502
+ if (u && t === u.alias ? n = u : (n.alias = t, $.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null) n.type = { text: "node" };
2503
+ else if (typeof o == "object") {
2504
+ let [d, p] = Object.entries(o)[0];
2505
+ n[d] = { text: p };
2506
+ } else n.type = { text: o };
2507
+ if (l == null) n.descr = { text: "" };
2508
+ else if (typeof l == "object") {
2509
+ let [d, p] = Object.entries(l)[0];
2510
+ n[d] = { text: p };
2511
+ } else n.descr = { text: l };
2512
+ if (typeof e == "object") {
2513
+ let [d, p] = Object.entries(e)[0];
2514
+ n[d] = p;
2515
+ } else n.tags = e;
2516
+ if (typeof i == "object") {
2517
+ let [d, p] = Object.entries(i)[0];
2518
+ n[d] = p;
2519
+ } else n.link = i;
2520
+ n.nodeType = a, n.parentBoundary = N, n.wrap = xt(), U = N, N = t, _t.push(U);
2521
+ }, "addDeploymentNode"), Ke = /* @__PURE__ */ f(function() {
2522
+ N = U, _t.pop(), U = _t.pop(), _t.push(U);
2523
+ }, "popBoundaryParseStack"), Je = /* @__PURE__ */ f(function(a, t, s, o, l, r, e, i, n, u, d) {
2524
+ let p = F.find((b) => b.alias === t);
2525
+ if (!(p === void 0 && (p = $.find((b) => b.alias === t), p === void 0))) {
2526
+ if (s != null) if (typeof s == "object") {
2527
+ let [b, k] = Object.entries(s)[0];
2528
+ p[b] = k;
2529
+ } else p.bgColor = s;
2530
+ if (o != null) if (typeof o == "object") {
2531
+ let [b, k] = Object.entries(o)[0];
2532
+ p[b] = k;
2533
+ } else p.fontColor = o;
2534
+ if (l != null) if (typeof l == "object") {
2535
+ let [b, k] = Object.entries(l)[0];
2536
+ p[b] = k;
2537
+ } else p.borderColor = l;
2538
+ if (r != null) if (typeof r == "object") {
2539
+ let [b, k] = Object.entries(r)[0];
2540
+ p[b] = k;
2541
+ } else p.shadowing = r;
2542
+ if (e != null) if (typeof e == "object") {
2543
+ let [b, k] = Object.entries(e)[0];
2544
+ p[b] = k;
2545
+ } else p.shape = e;
2546
+ if (i != null) if (typeof i == "object") {
2547
+ let [b, k] = Object.entries(i)[0];
2548
+ p[b] = k;
2549
+ } else p.sprite = i;
2550
+ if (n != null) if (typeof n == "object") {
2551
+ let [b, k] = Object.entries(n)[0];
2552
+ p[b] = k;
2553
+ } else p.techn = n;
2554
+ if (u != null) if (typeof u == "object") {
2555
+ let [b, k] = Object.entries(u)[0];
2556
+ p[b] = k;
2557
+ } else p.legendText = u;
2558
+ if (d != null) if (typeof d == "object") {
2559
+ let [b, k] = Object.entries(d)[0];
2560
+ p[b] = k;
2561
+ } else p.legendSprite = d;
2562
+ }
2563
+ }, "updateElStyle"), Ze = /* @__PURE__ */ f(function(a, t, s, o, l, r, e) {
2564
+ let i = Pt.find((n) => n.from === t && n.to === s);
2565
+ if (i !== void 0) {
2566
+ if (o != null) if (typeof o == "object") {
2567
+ let [n, u] = Object.entries(o)[0];
2568
+ i[n] = u;
2569
+ } else i.textColor = o;
2570
+ if (l != null) if (typeof l == "object") {
2571
+ let [n, u] = Object.entries(l)[0];
2572
+ i[n] = u;
2573
+ } else i.lineColor = l;
2574
+ if (r != null) if (typeof r == "object") {
2575
+ let [n, u] = Object.entries(r)[0];
2576
+ i[n] = parseInt(u);
2577
+ } else i.offsetX = parseInt(r);
2578
+ if (e != null) if (typeof e == "object") {
2579
+ let [n, u] = Object.entries(e)[0];
2580
+ i[n] = parseInt(u);
2581
+ } else i.offsetY = parseInt(e);
2582
+ }
2583
+ }, "updateRelStyle"), t0 = /* @__PURE__ */ f(function(a, t, s) {
2584
+ let o = Ut, l = Ft;
2585
+ if (typeof t == "object") {
2586
+ let r = Object.values(t)[0];
2587
+ o = parseInt(r);
2588
+ } else o = parseInt(t);
2589
+ if (typeof s == "object") {
2590
+ let r = Object.values(s)[0];
2591
+ l = parseInt(r);
2592
+ } else l = parseInt(s);
2593
+ o >= 1 && (Ut = o), l >= 1 && (Ft = l);
2594
+ }, "updateLayoutConfig"), e0 = /* @__PURE__ */ f(function() {
2595
+ return Ut;
2596
+ }, "getC4ShapeInRow"), a0 = /* @__PURE__ */ f(function() {
2597
+ return Ft;
2598
+ }, "getC4BoundaryInRow"), n0 = /* @__PURE__ */ f(function() {
2599
+ return N;
2600
+ }, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ f(function() {
2601
+ return U;
2602
+ }, "getParentBoundaryParse"), _e = /* @__PURE__ */ f(function(a) {
2603
+ return a == null ? F : F.filter((t) => t.parentBoundary === a);
2604
+ }, "getC4ShapeArray"), s0 = /* @__PURE__ */ f(function(a) {
2605
+ return F.find((t) => t.alias === a);
2606
+ }, "getC4Shape"), r0 = /* @__PURE__ */ f(function(a) {
2607
+ return Object.keys(_e(a));
2608
+ }, "getC4ShapeKeys"), xe = /* @__PURE__ */ f(function(a) {
2609
+ return a == null ? $ : $.filter((t) => t.parentBoundary === a);
2610
+ }, "getBoundaries"), l0 = xe, o0 = /* @__PURE__ */ f(function() {
2611
+ return Pt;
2612
+ }, "getRels"), c0 = /* @__PURE__ */ f(function() {
2613
+ return Zt;
2614
+ }, "getTitle"), h0 = /* @__PURE__ */ f(function(a) {
2615
+ ne = a;
2616
+ }, "setWrap"), xt = /* @__PURE__ */ f(function() {
2617
+ return ne;
2618
+ }, "autoWrap"), te = {
2619
+ addPersonOrSystem: ze,
2620
+ addPersonOrSystemBoundary: He,
2621
+ addContainer: Qe,
2622
+ addContainerBoundary: Ve,
2623
+ addComponent: qe,
2624
+ addDeploymentNode: Ge,
2625
+ popBoundaryParseStack: Ke,
2626
+ addRel: $e,
2627
+ updateElStyle: Je,
2628
+ updateRelStyle: Ze,
2629
+ updateLayoutConfig: t0,
2630
+ autoWrap: xt,
2631
+ setWrap: h0,
2632
+ getC4ShapeArray: _e,
2633
+ getC4Shape: s0,
2634
+ getC4ShapeKeys: r0,
2635
+ getBoundaries: xe,
2636
+ getBoundarys: l0,
2637
+ getCurrentBoundaryParse: n0,
2638
+ getParentBoundaryParse: i0,
2639
+ getRels: o0,
2640
+ getTitle: c0,
2641
+ getC4Type: Xe,
2642
+ getC4ShapeInRow: e0,
2643
+ getC4BoundaryInRow: a0,
2644
+ setAccTitle: Pe,
2645
+ getAccTitle: Ne,
2646
+ getAccDescription: De,
2647
+ setAccDescription: Re,
2648
+ getConfig: /* @__PURE__ */ f(() => Nt().c4, "getConfig"),
2649
+ clear: /* @__PURE__ */ f(function() {
2650
+ F = [], $ = [{
2651
+ alias: "global",
2652
+ label: { text: "global" },
2653
+ type: { text: "global" },
2654
+ tags: null,
2655
+ link: null,
2656
+ parentBoundary: ""
2657
+ }], U = "", N = "global", _t = [""], Pt = [], _t = [""], Zt = "", ne = !1, Ut = 4, Ft = 2;
2658
+ }, "clear"),
2659
+ LINETYPE: {
2660
+ SOLID: 0,
2661
+ DOTTED: 1,
2662
+ NOTE: 2,
2663
+ SOLID_CROSS: 3,
2664
+ DOTTED_CROSS: 4,
2665
+ SOLID_OPEN: 5,
2666
+ DOTTED_OPEN: 6,
2667
+ LOOP_START: 10,
2668
+ LOOP_END: 11,
2669
+ ALT_START: 12,
2670
+ ALT_ELSE: 13,
2671
+ ALT_END: 14,
2672
+ OPT_START: 15,
2673
+ OPT_END: 16,
2674
+ ACTIVE_START: 17,
2675
+ ACTIVE_END: 18,
2676
+ PAR_START: 19,
2677
+ PAR_AND: 20,
2678
+ PAR_END: 21,
2679
+ RECT_START: 22,
2680
+ RECT_END: 23,
2681
+ SOLID_POINT: 24,
2682
+ DOTTED_POINT: 25
2683
+ },
2684
+ ARROWTYPE: {
2685
+ FILLED: 0,
2686
+ OPEN: 1
2687
+ },
2688
+ PLACEMENT: {
2689
+ LEFTOF: 0,
2690
+ RIGHTOF: 1,
2691
+ OVER: 2
2692
+ },
2693
+ setTitle: /* @__PURE__ */ f(function(a) {
2694
+ Zt = be(a, Nt());
2695
+ }, "setTitle"),
2696
+ setC4Type: We
2697
+ }, ie = /* @__PURE__ */ f(function(a, t) {
2698
+ return Ye(a, t);
2699
+ }, "drawRect"), me = /* @__PURE__ */ f(function(a, t, s, o, l, r) {
2700
+ let e = a.append("image");
2701
+ e.attr("width", t), e.attr("height", s), e.attr("x", o), e.attr("y", l);
2702
+ let i = r.startsWith("data:image/png;base64") ? r : (0, Ue.sanitizeUrl)(r);
2703
+ e.attr("xlink:href", i);
2704
+ }, "drawImage"), d0 = /* @__PURE__ */ f((a, t, s, o) => {
2705
+ let l = a.append("g"), r = 0;
2706
+ for (let e of t) {
2707
+ let i = e.textColor ? e.textColor : "#444444", n = e.lineColor ? e.lineColor : "#444444", u = e.offsetX ? parseInt(e.offsetX) : 0, d = e.offsetY ? parseInt(e.offsetY) : 0;
2708
+ if (r === 0) {
2709
+ let b = l.append("line");
2710
+ b.attr("x1", e.startPoint.x), b.attr("y1", e.startPoint.y), b.attr("x2", e.endPoint.x), b.attr("y2", e.endPoint.y), b.attr("stroke-width", "1"), b.attr("stroke", n), b.style("fill", "none"), e.type !== "rel_b" && b.attr("marker-end", "url(#" + o + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && b.attr("marker-start", "url(#" + o + "-arrowend)"), r = -1;
2711
+ } else {
2712
+ let b = l.append("path");
2713
+ b.attr("fill", "none").attr("stroke-width", "1").attr("stroke", n).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && b.attr("marker-end", "url(#" + o + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && b.attr("marker-start", "url(#" + o + "-arrowend)");
2714
+ }
2715
+ let p = s.messageFont();
2716
+ Q(s)(e.label.text, l, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + u, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + d, e.label.width, e.label.height, { fill: i }, p), e.techn && e.techn.text !== "" && (p = s.messageFont(), Q(s)("[" + e.techn.text + "]", l, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + u, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + s.messageFontSize + 5 + d, Math.max(e.label.width, e.techn.width), e.techn.height, {
2717
+ fill: i,
2718
+ "font-style": "italic"
2719
+ }, p));
2720
+ }
2721
+ }, "drawRels"), u0 = /* @__PURE__ */ f(function(a, t, s) {
2722
+ let o = a.append("g"), l = t.bgColor ? t.bgColor : "none", r = t.borderColor ? t.borderColor : "#444444", e = t.fontColor ? t.fontColor : "black", i = {
2723
+ "stroke-width": 1,
2724
+ "stroke-dasharray": "7.0,7.0"
2725
+ };
2726
+ t.nodeType && (i = { "stroke-width": 1 }), ie(o, {
2727
+ x: t.x,
2728
+ y: t.y,
2729
+ fill: l,
2730
+ stroke: r,
2731
+ width: t.width,
2732
+ height: t.height,
2733
+ rx: 2.5,
2734
+ ry: 2.5,
2735
+ attrs: i
2736
+ });
2737
+ let n = s.boundaryFont();
2738
+ n.fontWeight = "bold", n.fontSize += 2, n.fontColor = e, Q(s)(t.label.text, o, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, n), t.type && t.type.text !== "" && (n = s.boundaryFont(), n.fontColor = e, Q(s)(t.type.text, o, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, n)), t.descr && t.descr.text !== "" && (n = s.boundaryFont(), n.fontSize -= 2, n.fontColor = e, Q(s)(t.descr.text, o, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, n));
2739
+ }, "drawBoundary"), p0 = /* @__PURE__ */ f(function(a, t, s) {
2740
+ let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], l = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], r = t.fontColor ? t.fontColor : "#FFFFFF", e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2741
+ switch (t.typeC4Shape.text) {
2742
+ case "person":
2743
+ e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2744
+ break;
2745
+ case "external_person":
2746
+ e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
2747
+ break;
2748
+ }
2749
+ let i = a.append("g");
2750
+ i.attr("class", "person-man");
2751
+ let n = Le();
2752
+ switch (t.typeC4Shape.text) {
2753
+ case "person":
2754
+ case "external_person":
2755
+ case "system":
2756
+ case "external_system":
2757
+ case "container":
2758
+ case "external_container":
2759
+ case "component":
2760
+ case "external_component":
2761
+ n.x = t.x, n.y = t.y, n.fill = o, n.width = t.width, n.height = t.height, n.stroke = l, n.rx = 2.5, n.ry = 2.5, n.attrs = { "stroke-width": 0.5 }, ie(i, n);
2762
+ break;
2763
+ case "system_db":
2764
+ case "external_system_db":
2765
+ case "container_db":
2766
+ case "external_container_db":
2767
+ case "component_db":
2768
+ case "external_component_db":
2769
+ i.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)), i.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2));
2770
+ break;
2771
+ case "system_queue":
2772
+ case "external_system_queue":
2773
+ case "container_queue":
2774
+ case "external_container_queue":
2775
+ case "component_queue":
2776
+ case "external_component_queue":
2777
+ i.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)), i.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2));
2778
+ break;
2779
+ }
2780
+ let u = E0(s, t.typeC4Shape.text);
2781
+ switch (i.append("text").attr("fill", r).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
2782
+ case "person":
2783
+ case "external_person":
2784
+ me(i, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, e);
2785
+ break;
2786
+ }
2787
+ let d = s[t.typeC4Shape.text + "Font"]();
2788
+ return d.fontWeight = "bold", d.fontSize += 2, d.fontColor = r, Q(s)(t.label.text, i, t.x, t.y + t.label.Y, t.width, t.height, { fill: r }, d), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = r, t.techn && t.techn?.text !== "" ? Q(s)(t.techn.text, i, t.x, t.y + t.techn.Y, t.width, t.height, {
2789
+ fill: r,
2790
+ "font-style": "italic"
2791
+ }, d) : t.type && t.type.text !== "" && Q(s)(t.type.text, i, t.x, t.y + t.type.Y, t.width, t.height, {
2792
+ fill: r,
2793
+ "font-style": "italic"
2794
+ }, d), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = r, Q(s)(t.descr.text, i, t.x, t.y + t.descr.Y, t.width, t.height, { fill: r }, d)), t.height;
2795
+ }, "drawC4Shape"), y0 = /* @__PURE__ */ f(function(a, t) {
2796
+ a.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");
2797
+ }, "insertDatabaseIcon"), f0 = /* @__PURE__ */ f(function(a, t) {
2798
+ a.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");
2799
+ }, "insertComputerIcon"), b0 = /* @__PURE__ */ f(function(a, t) {
2800
+ a.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");
2801
+ }, "insertClockIcon"), g0 = /* @__PURE__ */ f(function(a, t) {
2802
+ a.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
2803
+ }, "insertArrowHead"), _0 = /* @__PURE__ */ f(function(a, t) {
2804
+ a.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
2805
+ }, "insertArrowEnd"), x0 = /* @__PURE__ */ f(function(a, t) {
2806
+ a.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).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");
2807
+ }, "insertArrowFilledHead"), m0 = /* @__PURE__ */ f(function(a, t) {
2808
+ let s = a.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2809
+ s.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), s.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2810
+ }, "insertArrowCrossHead"), E0 = /* @__PURE__ */ f((a, t) => ({
2811
+ fontFamily: a[t + "FontFamily"],
2812
+ fontSize: a[t + "FontSize"],
2813
+ fontWeight: a[t + "FontWeight"]
2814
+ }), "getC4ShapeFont"), Q = /* @__PURE__ */ (function() {
2815
+ function a(l, r, e, i, n, u, d) {
2816
+ o(r.append("text").attr("x", e + n / 2).attr("y", i + u / 2 + 5).style("text-anchor", "middle").text(l), d);
2817
+ }
2818
+ f(a, "byText");
2819
+ function t(l, r, e, i, n, u, d, p) {
2820
+ let { fontSize: b, fontFamily: k, fontWeight: v } = p, R = l.split(Jt.lineBreakRegex);
2821
+ for (let P = 0; P < R.length; P++) {
2822
+ let X = P * b - b * (R.length - 1) / 2, Y = r.append("text").attr("x", e + n / 2).attr("y", i).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", b).style("font-weight", v).style("font-family", k);
2823
+ Y.append("tspan").attr("dy", X).text(R[P]).attr("alignment-baseline", "mathematical"), o(Y, d);
2824
+ }
2825
+ }
2826
+ f(t, "byTspan");
2827
+ function s(l, r, e, i, n, u, d, p) {
2828
+ let b = r.append("switch"), k = b.append("foreignObject").attr("x", e).attr("y", i).attr("width", n).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2829
+ k.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, b, e, i, n, u, d, p), o(k, d);
2830
+ }
2831
+ f(s, "byFo");
2832
+ function o(l, r) {
2833
+ for (let e in r) r.hasOwnProperty(e) && l.attr(e, r[e]);
2834
+ }
2835
+ return f(o, "_setTextAttrs"), function(l) {
2836
+ return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? a : t;
2837
+ };
2838
+ })(), W = {
2839
+ drawRect: ie,
2840
+ drawBoundary: u0,
2841
+ drawC4Shape: p0,
2842
+ drawRels: d0,
2843
+ drawImage: me,
2844
+ insertArrowHead: g0,
2845
+ insertArrowEnd: _0,
2846
+ insertArrowFilledHead: x0,
2847
+ insertArrowCrossHead: m0,
2848
+ insertDatabaseIcon: y0,
2849
+ insertComputerIcon: f0,
2850
+ insertClockIcon: b0
2851
+ }, Xt = 0, Wt = 0, Ee = 4, ee = 2;
2852
+ Yt.yy = te;
2853
+ var x = {}, Ot, Se = (Ot = class {
2854
+ constructor(t) {
2855
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ae(t.db.getConfig());
2856
+ }
2857
+ setData(t, s, o, l) {
2858
+ this.nextData.startx = this.data.startx = t, this.nextData.stopx = this.data.stopx = s, this.nextData.starty = this.data.starty = o, this.nextData.stopy = this.data.stopy = l;
2859
+ }
2860
+ updateVal(t, s, o, l) {
2861
+ t[s] === void 0 ? t[s] = o : t[s] = l(o, t[s]);
2862
+ }
2863
+ insert(t) {
2864
+ this.nextData.cnt = this.nextData.cnt + 1;
2865
+ let s = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + t.margin : this.nextData.stopx + t.margin * 2, o = s + t.width, l = this.nextData.starty + t.margin * 2, r = l + t.height;
2866
+ (s >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt > Ee) && (s = this.nextData.startx + t.margin + x.nextLinePaddingX, l = this.nextData.stopy + t.margin * 2, this.nextData.stopx = o = s + t.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = r = l + t.height, this.nextData.cnt = 1), t.x = s, t.y = l, this.updateVal(this.data, "startx", s, Math.min), this.updateVal(this.data, "starty", l, Math.min), this.updateVal(this.data, "stopx", o, Math.max), this.updateVal(this.data, "stopy", r, Math.max), this.updateVal(this.nextData, "startx", s, Math.min), this.updateVal(this.nextData, "starty", l, Math.min), this.updateVal(this.nextData, "stopx", o, Math.max), this.updateVal(this.nextData, "stopy", r, Math.max);
2867
+ }
2868
+ init(t) {
2869
+ this.name = "", this.data = {
2870
+ startx: void 0,
2871
+ stopx: void 0,
2872
+ starty: void 0,
2873
+ stopy: void 0,
2874
+ widthLimit: void 0
2875
+ }, this.nextData = {
2876
+ startx: void 0,
2877
+ stopx: void 0,
2878
+ starty: void 0,
2879
+ stopy: void 0,
2880
+ cnt: 0
2881
+ }, ae(t.db.getConfig());
2882
+ }
2883
+ bumpLastMargin(t) {
2884
+ this.data.stopx += t, this.data.stopy += t;
2885
+ }
2886
+ }, f(Ot, "Bounds"), Ot), ae = /* @__PURE__ */ f(function(a) {
2887
+ Ie(x, a), a.fontFamily && (x.personFontFamily = x.systemFontFamily = x.messageFontFamily = a.fontFamily), a.fontSize && (x.personFontSize = x.systemFontSize = x.messageFontSize = a.fontSize), a.fontWeight && (x.personFontWeight = x.systemFontWeight = x.messageFontWeight = a.fontWeight);
2888
+ }, "setConf"), Dt = /* @__PURE__ */ f((a, t) => ({
2889
+ fontFamily: a[t + "FontFamily"],
2890
+ fontSize: a[t + "FontSize"],
2891
+ fontWeight: a[t + "FontWeight"]
2892
+ }), "c4ShapeFont"), Lt = /* @__PURE__ */ f((a) => ({
2893
+ fontFamily: a.boundaryFontFamily,
2894
+ fontSize: a.boundaryFontSize,
2895
+ fontWeight: a.boundaryFontWeight
2896
+ }), "boundaryFont"), S0 = /* @__PURE__ */ f((a) => ({
2897
+ fontFamily: a.messageFontFamily,
2898
+ fontSize: a.messageFontSize,
2899
+ fontWeight: a.messageFontWeight
2900
+ }), "messageFont");
2901
+ function L(a, t, s, o, l) {
2902
+ if (!t[a].width) if (s) t[a].text = je(t[a].text, l, o), t[a].textLines = t[a].text.split(Jt.lineBreakRegex).length, t[a].width = l, t[a].height = pe(t[a].text, o);
2903
+ else {
2904
+ let r = t[a].text.split(Jt.lineBreakRegex);
2905
+ t[a].textLines = r.length;
2906
+ let e = 0;
2907
+ t[a].height = 0, t[a].width = 0;
2908
+ for (let i of r) t[a].width = Math.max(wt(i, o), t[a].width), e = pe(i, o), t[a].height = t[a].height + e;
2909
+ }
2910
+ }
2911
+ f(L, "calcC4ShapeTextWH");
2912
+ var Ae = /* @__PURE__ */ f(function(a, t, s) {
2913
+ t.x = s.data.startx, t.y = s.data.starty, t.width = s.data.stopx - s.data.startx, t.height = s.data.stopy - s.data.starty, t.label.y = x.c4ShapeMargin - 35;
2914
+ let o = t.wrap && x.wrap, l = Lt(x);
2915
+ l.fontSize += 2, l.fontWeight = "bold", L("label", t, o, l, wt(t.label.text, l)), W.drawBoundary(a, t, x);
2916
+ }, "drawBoundary"), Ce = /* @__PURE__ */ f(function(a, t, s, o) {
2917
+ let l = 0;
2918
+ for (let r of o) {
2919
+ l = 0;
2920
+ let e = s[r], i = Dt(x, e.typeC4Shape.text);
2921
+ switch (i.fontSize -= 2, e.typeC4Shape.width = wt("«" + e.typeC4Shape.text + "»", i), e.typeC4Shape.height = i.fontSize + 2, e.typeC4Shape.Y = x.c4ShapePadding, l = e.typeC4Shape.Y + e.typeC4Shape.height - 4, e.image = {
2922
+ width: 0,
2923
+ height: 0,
2924
+ Y: 0
2925
+ }, e.typeC4Shape.text) {
2926
+ case "person":
2927
+ case "external_person":
2928
+ e.image.width = 48, e.image.height = 48, e.image.Y = l, l = e.image.Y + e.image.height;
2929
+ break;
2930
+ }
2931
+ e.sprite && (e.image.width = 48, e.image.height = 48, e.image.Y = l, l = e.image.Y + e.image.height);
2932
+ let n = e.wrap && x.wrap, u = x.width - x.c4ShapePadding * 2, d = Dt(x, e.typeC4Shape.text);
2933
+ d.fontSize += 2, d.fontWeight = "bold", L("label", e, n, d, u), e.label.Y = l + 8, l = e.label.Y + e.label.height, e.type && e.type.text !== "" ? (e.type.text = "[" + e.type.text + "]", L("type", e, n, Dt(x, e.typeC4Shape.text), u), e.type.Y = l + 5, l = e.type.Y + e.type.height) : e.techn && e.techn.text !== "" && (e.techn.text = "[" + e.techn.text + "]", L("techn", e, n, Dt(x, e.techn.text), u), e.techn.Y = l + 5, l = e.techn.Y + e.techn.height);
2934
+ let p = l, b = e.label.width;
2935
+ e.descr && e.descr.text !== "" && (L("descr", e, n, Dt(x, e.typeC4Shape.text), u), e.descr.Y = l + 20, l = e.descr.Y + e.descr.height, b = Math.max(e.label.width, e.descr.width), p = l - e.descr.textLines * 5), b += x.c4ShapePadding, e.width = Math.max(e.width || x.width, b, x.width), e.height = Math.max(e.height || x.height, p, x.height), e.margin = e.margin || x.c4ShapeMargin, a.insert(e), W.drawC4Shape(t, e, x);
2936
+ }
2937
+ a.bumpLastMargin(x.c4ShapeMargin);
2938
+ }, "drawC4ShapeArray"), Tt, M = (Tt = class {
2939
+ constructor(t, s) {
2940
+ this.x = t, this.y = s;
2941
+ }
2942
+ }, f(Tt, "Point"), Tt), ye = /* @__PURE__ */ f(function(a, t) {
2943
+ let s = a.x, o = a.y, l = t.x, r = t.y, e = s + a.width / 2, i = o + a.height / 2, n = Math.abs(s - l), u = Math.abs(o - r), d = u / n, p = a.height / a.width, b = null;
2944
+ return o == r && s < l ? b = new M(s + a.width, i) : o == r && s > l ? b = new M(s, i) : s == l && o < r ? b = new M(e, o + a.height) : s == l && o > r && (b = new M(e, o)), s > l && o < r ? b = p >= d ? new M(s, i + d * a.width / 2) : new M(e - n / u * a.height / 2, o + a.height) : s < l && o < r ? b = p >= d ? new M(s + a.width, i + d * a.width / 2) : new M(e + n / u * a.height / 2, o + a.height) : s < l && o > r ? b = p >= d ? new M(s + a.width, i - d * a.width / 2) : new M(e + a.height / 2 * n / u, o) : s > l && o > r && (b = p >= d ? new M(s, i - a.width / 2 * d) : new M(e - a.height / 2 * n / u, o)), b;
2945
+ }, "getIntersectPoint"), A0 = /* @__PURE__ */ f(function(a, t) {
2946
+ let s = {
2947
+ x: 0,
2948
+ y: 0
2949
+ };
2950
+ s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
2951
+ let o = ye(a, s);
2952
+ return s.x = a.x + a.width / 2, s.y = a.y + a.height / 2, {
2953
+ startPoint: o,
2954
+ endPoint: ye(t, s)
2955
+ };
2956
+ }, "getIntersectPoints"), C0 = /* @__PURE__ */ f(function(a, t, s, o, l) {
2957
+ let r = 0;
2958
+ for (let e of t) {
2959
+ r += 1;
2960
+ let i = e.wrap && x.wrap, n = S0(x);
2961
+ o.db.getC4Type() === "C4Dynamic" && (e.label.text = r + ": " + e.label.text);
2962
+ let u = wt(e.label.text, n);
2963
+ L("label", e, i, n, u), e.techn && e.techn.text !== "" && (u = wt(e.techn.text, n), L("techn", e, i, n, u)), e.descr && e.descr.text !== "" && (u = wt(e.descr.text, n), L("descr", e, i, n, u));
2964
+ let d = A0(s(e.from), s(e.to));
2965
+ e.startPoint = d.startPoint, e.endPoint = d.endPoint;
2966
+ }
2967
+ W.drawRels(a, t, x, l);
2968
+ }, "drawRels");
2969
+ function se(a, t, s, o, l) {
2970
+ let r = new Se(l);
2971
+ r.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
2972
+ for (let [e, i] of o.entries()) {
2973
+ let n = 0;
2974
+ i.image = {
2975
+ width: 0,
2976
+ height: 0,
2977
+ Y: 0
2978
+ }, i.sprite && (i.image.width = 48, i.image.height = 48, i.image.Y = n, n = i.image.Y + i.image.height);
2979
+ let u = i.wrap && x.wrap, d = Lt(x);
2980
+ if (d.fontSize += 2, d.fontWeight = "bold", L("label", i, u, d, r.data.widthLimit), i.label.Y = n + 8, n = i.label.Y + i.label.height, i.type && i.type.text !== "" && (i.type.text = "[" + i.type.text + "]", L("type", i, u, Lt(x), r.data.widthLimit), i.type.Y = n + 5, n = i.type.Y + i.type.height), i.descr && i.descr.text !== "") {
2981
+ let v = Lt(x);
2982
+ v.fontSize -= 2, L("descr", i, u, v, r.data.widthLimit), i.descr.Y = n + 20, n = i.descr.Y + i.descr.height;
2983
+ }
2984
+ if (e == 0 || e % ee === 0) {
2985
+ let v = s.data.startx + x.diagramMarginX, R = s.data.stopy + x.diagramMarginY + n;
2986
+ r.setData(v, v, R, R);
2987
+ } else {
2988
+ let v = r.data.stopx === r.data.startx ? r.data.startx : r.data.stopx + x.diagramMarginX, R = r.data.starty;
2989
+ r.setData(v, v, R, R);
2990
+ }
2991
+ r.name = i.alias;
2992
+ let p = l.db.getC4ShapeArray(i.alias), b = l.db.getC4ShapeKeys(i.alias);
2993
+ b.length > 0 && Ce(r, a, p, b), t = i.alias;
2994
+ let k = l.db.getBoundaries(t);
2995
+ k.length > 0 && se(a, t, r, k, l), i.alias !== "global" && Ae(a, i, r), s.data.stopy = Math.max(r.data.stopy + x.c4ShapeMargin, s.data.stopy), s.data.stopx = Math.max(r.data.stopx + x.c4ShapeMargin, s.data.stopx), Xt = Math.max(Xt, s.data.stopx), Wt = Math.max(Wt, s.data.stopy);
2996
+ }
2997
+ }
2998
+ f(se, "drawInsideBoundary");
2999
+ var fe = {
3000
+ drawPersonOrSystemArray: Ce,
3001
+ drawBoundary: Ae,
3002
+ setConf: ae,
3003
+ draw: /* @__PURE__ */ f(function(a, t, s, o) {
3004
+ x = Nt().c4;
3005
+ let l = Nt().securityLevel, r;
3006
+ l === "sandbox" && (r = Kt("#i" + t));
3007
+ let e = Kt(l === "sandbox" ? r.nodes()[0].contentDocument.body : "body"), i = o.db;
3008
+ o.db.setWrap(x.wrap), Ee = i.getC4ShapeInRow(), ee = i.getC4BoundaryInRow(), ue.debug(`C:${JSON.stringify(x, null, 2)}`);
3009
+ let n = l === "sandbox" ? e.select(`[id="${t}"]`) : Kt(`[id="${t}"]`);
3010
+ W.insertComputerIcon(n, t), W.insertDatabaseIcon(n, t), W.insertClockIcon(n, t);
3011
+ let u = new Se(o);
3012
+ u.setData(x.diagramMarginX, x.diagramMarginX, x.diagramMarginY, x.diagramMarginY), u.data.widthLimit = screen.availWidth, Xt = x.diagramMarginX, Wt = x.diagramMarginY;
3013
+ let d = o.db.getTitle();
3014
+ se(n, "", u, o.db.getBoundaries(""), o), W.insertArrowHead(n, t), W.insertArrowEnd(n, t), W.insertArrowCrossHead(n, t), W.insertArrowFilledHead(n, t), C0(n, o.db.getRels(), o.db.getC4Shape, o, t), u.data.stopx = Xt, u.data.stopy = Wt;
3015
+ let p = u.data, b = p.stopy - p.starty + 2 * x.diagramMarginY, k = p.stopx - p.startx + 2 * x.diagramMarginX;
3016
+ d && n.append("text").text(d).attr("x", (p.stopx - p.startx) / 2 - 4 * x.diagramMarginX).attr("y", p.starty + x.diagramMarginY), Be(n, b, k, x.useMaxWidth);
3017
+ let v = d ? 60 : 0;
3018
+ n.attr("viewBox", p.startx - x.diagramMarginX + " -" + (x.diagramMarginY + v) + " " + k + " " + (b + v)), ue.debug("models:", p);
3019
+ }, "draw")
3020
+ }, O0 = {
3021
+ parser: Fe,
3022
+ db: te,
3023
+ renderer: fe,
3024
+ styles: /* @__PURE__ */ f((a) => `.person {
3025
+ stroke: ${a.personBorder};
3026
+ fill: ${a.personBkg};
3027
+ }
3028
+ `, "getStyles"),
3029
+ init: /* @__PURE__ */ f(({ c4: a, wrap: t }) => {
3030
+ fe.setConf(a), te.setWrap(t);
3031
+ }, "init")
3032
+ };
3033
+ export {
3034
+ O0 as diagram
3035
+ };