@kong-ui-public/documentation 1.8.13 → 1.8.14-pr.4048.7a10d83bb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/package.json +2 -2
  2. package/dist/abnfDiagram-VCTEODGH-Bzbg7AHk-DFERbIEu.js +0 -92
  3. package/dist/arc-CKhg5DVn-BIpMje7c.js +0 -80
  4. package/dist/architectureDiagram-5GKGNRK7-CqHVyBRI-CLWcRmoG.js +0 -4149
  5. package/dist/astro-DdQ3Kp7Q-BDE5qFXd.js +0 -18
  6. package/dist/blockDiagram-I7D4REHJ-DWFqHR0L-D8v5LhXM.js +0 -2029
  7. package/dist/c-lfOsiBpu-DMPKLUI8.js +0 -4
  8. package/dist/c4Diagram-7LVT6UL2-DXHigzTJ-BR9440iK.js +0 -3067
  9. package/dist/catppuccin-latte-D9NPLB7Y-sAlQrrP2.js +0 -4
  10. package/dist/channel-DUDXYB-g-BsX3Acdu.js +0 -5
  11. package/dist/chunk-2Q5K7J3B-CQFXhYzi-C3CTUgHo.js +0 -12
  12. package/dist/chunk-5VM5RSS4-DF_fkndM-uFSHkP_V.js +0 -19
  13. package/dist/chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js +0 -65
  14. package/dist/chunk-IMKFNOWR-DIsz_YLV-B6u2fLNJ.js +0 -2116
  15. package/dist/chunk-JWPE2WC7-DI69CthA-D_FsPQj-.js +0 -8
  16. package/dist/chunk-POPQ4Y6H-DycI9Jzm-BWixWzlU.js +0 -24
  17. package/dist/chunk-SHT3W25Y-CKxDgOBI-OOdqZuVE.js +0 -4307
  18. package/dist/chunk-SVP7TREG-tW_qYlvV-vP5bsK2H.js +0 -500
  19. package/dist/chunk-TICWLB2K-CuiDrX3P-WR-FPNea.js +0 -3451
  20. package/dist/chunk-XXDRQBXY-CSrEKR2C-C6SaSSCC.js +0 -8
  21. package/dist/classDiagram-ZZMXUADV-WzcguFxl-CKKn1Tfx.js +0 -17
  22. package/dist/classDiagram-v2-VYDZK3BY-jdAXYY7W-CKKn1Tfx.js +0 -17
  23. package/dist/cose-bilkent-JH36ORCC-DbS7GVMv-bbQOsy5Y.js +0 -2256
  24. package/dist/csharp-RRkgh3c4-lim_vKPd.js +0 -4
  25. package/dist/css-BbwcBM_4-B_2PRTA_.js +0 -4
  26. package/dist/csv-DFU5sVkH-BPWcOTV4.js +0 -4
  27. package/dist/cynefin-OW5HDTMX-CmxQwqmf-D_GdoNIu.js +0 -21781
  28. package/dist/cynefinDiagram-5FMLGOSQ-BNb88xpJ-DfS9O7P4.js +0 -351
  29. package/dist/cytoscape.esm-YSf_2rtb-CoO8mT3p.js +0 -18279
  30. package/dist/dagre-C9xJrfGe-Di-1Ikh0.js +0 -1667
  31. package/dist/dagre-GXQ25YYZ-uiXfyLw2-PU-qeT6_.js +0 -429
  32. package/dist/defaultLocale-TbxLDlcU-BrdwcF9K.js +0 -180
  33. package/dist/diagram-S7CK7UJ4-g67BXvGR-Cp9bzjGj.js +0 -303
  34. package/dist/diagram-UQ7AKVKN-DfJJIsVs-CC7ekguS.js +0 -210
  35. package/dist/diagram-VSXAHHWV-DmtFfqWN-C9ZLHKzj.js +0 -439
  36. package/dist/diagram-VX7I27RA--gfQ90BY-QNtwG6Ck.js +0 -477
  37. package/dist/diagram-Z3DM3KII-Cu_rSHu0-CCCsIuz4.js +0 -127
  38. package/dist/diff-D_LJiFgV-DenOJuyV.js +0 -4
  39. package/dist/docker-DMpUQ2UE-xX8PDoIv.js +0 -4
  40. package/dist/documentation.es.js +0 -7
  41. package/dist/documentation.umd.js +0 -3715
  42. package/dist/ebnfDiagram-PWID7BFC-B_qfACMJ-D_Xjruh2.js +0 -109
  43. package/dist/erDiagram-RLTQ6QDP-Dt9efGmz-BPS1Iwl5.js +0 -2042
  44. package/dist/flowDiagram-HODETNUW-sAcaB3rt-Ci8x-zG0.js +0 -6
  45. package/dist/ganttDiagram-EL5Y4UJY-CtWGP-hX-qar4oLEq.js +0 -3098
  46. package/dist/git-commit--2NDNcyW-Dw9_h8sQ.js +0 -5
  47. package/dist/git-rebase-CbNvxADk-DAgBrkyL.js +0 -5
  48. package/dist/gitGraphDiagram-WWUBYQGX-B7B7IG_5-x8UcOce8.js +0 -737
  49. package/dist/go-BEdBk4fh-DqSXHrGo.js +0 -4
  50. package/dist/graphql-BMuT9GwB-BP9pcQru.js +0 -14
  51. package/dist/haml-D3QmTYiV-BTaBXoPr.js +0 -10
  52. package/dist/handlebars-C_aYHp26-CWcrQHYv.js +0 -14
  53. package/dist/haskell-DSSJ-2AO-BlmVjKNy.js +0 -4
  54. package/dist/html-derivative-DgZQ_xNe-BAs__2u-.js +0 -5
  55. package/dist/html-zcQqUZxh-Dg8OkMBp.js +0 -10
  56. package/dist/http-BGkfDG8i-lqXytFlH.js +0 -14
  57. package/dist/index-BaAWoj3P.js +0 -43522
  58. package/dist/infoDiagram-27XIBGKW-DAx9hub5-CDUrF89O.js +0 -18
  59. package/dist/ini-CmgEGOBJ-70PBzbbb.js +0 -4
  60. package/dist/init-Cgg2UTSf-BsHkAom2.js +0 -15
  61. package/dist/ishikawaDiagram-5VMMS53U-CnBB9iXH-2YyZ3Nxy.js +0 -729
  62. package/dist/java-CaG1IqbK-D6YBp1XX.js +0 -4
  63. package/dist/javascript--0qAxhnA-BRPKgr3C.js +0 -4
  64. package/dist/journeyDiagram-3NMN7TZE-B0a4pOJX-CgtsuE-Y.js +0 -909
  65. package/dist/json-DVwBUiza-D8uacQj0.js +0 -4
  66. package/dist/json5-D2Eltym1-Biib5ALh.js +0 -4
  67. package/dist/jsonc-BPIJyZ7u-BZEKkMok.js +0 -4
  68. package/dist/jsonl-BGkjXns2-BG2V-IA2.js +0 -4
  69. package/dist/jsx-cVAJ0Z2c-Cl0AMtmu.js +0 -4
  70. package/dist/kanban-definition-UXKFOSKX-BGnOZMUl-CHT2EG_7.js +0 -1029
  71. package/dist/katex-Be3DWdAP-BWcdC2Xb.js +0 -22287
  72. package/dist/kotlin-CQsNEM2o-Dy_91eL4.js +0 -4
  73. package/dist/latex-g3NZbvcl-tKQf8TuW.js +0 -5
  74. package/dist/less-9LYkHheD-tcNg8M2_.js +0 -4
  75. package/dist/linear-Cf872ac2-BjGvLlX5.js +0 -254
  76. package/dist/liquid-CG3ph2-5-wZo8nDay.js +0 -14
  77. package/dist/lua-BdA7_iyX-Fg4s9W4F.js +0 -5
  78. package/dist/make-CE9Hryyp-CrUl7LOH.js +0 -4
  79. package/dist/markdown-Gqx6-FHJ-Bcqt-5kX.js +0 -4
  80. package/dist/material-theme-darker-DL4lHZSa-DMHCIvq5.js +0 -4
  81. package/dist/mdc-C-RLGlI2-DzcUIqJQ.js +0 -12
  82. package/dist/mdx-DswfiFg4-CK6jOqmu.js +0 -4
  83. package/dist/mermaid-CAl3BhSL-CpQh0Vft.js +0 -4
  84. package/dist/mindmap-definition-YA3MSWOX-D0iYuN9C-B3uI77eT.js +0 -1026
  85. package/dist/nginx-CokYOiS8-DjML3dpY.js +0 -5
  86. package/dist/objective-c-DK-EKgyd-C809HPrX.js +0 -4
  87. package/dist/ordinal-CNzaYghg-B_JXdapq.js +0 -63
  88. package/dist/pascal-CRtegPzh-a8whuidZ.js +0 -4
  89. package/dist/pegDiagram-XKGWAZYB-6oG4KeYC-CG27veJ_.js +0 -104
  90. package/dist/perl-C45KUBhP-Q6opd9qO.js +0 -16
  91. package/dist/php-COzTb61D-DW91EkjY.js +0 -18
  92. package/dist/pieDiagram-E7YTZNPT-DsNO0m7t-CMKObJlC.js +0 -191
  93. package/dist/plsql-Bx7tup_v-BJoF2Vrf.js +0 -4
  94. package/dist/postcss-DjDdOEzv-DaHMm3XW.js +0 -4
  95. package/dist/powershell-BeUvHe6o-BC3uPZPS.js +0 -4
  96. package/dist/proto-DGLklcji-w0B_itsp.js +0 -4
  97. package/dist/pug-BQ5MM2xz-DMZvJUHt.js +0 -12
  98. package/dist/python-C_6ySqsv-D_5pfY__.js +0 -4
  99. package/dist/quadrantDiagram-AXDQQJYC-B6Dc7fje-C23uvcHP.js +0 -2046
  100. package/dist/r-CNL4a0Qi-pixge7f9.js +0 -4
  101. package/dist/railroadDiagram-O6MQD6OU-D8qLcD4O-B_Hr3s-n.js +0 -80
  102. package/dist/reg-D6txjqBF-bHAwx9Pm.js +0 -4
  103. package/dist/requirementDiagram-BXWQKSXE-Cx28BZaS-Bu-h1fa9.js +0 -2283
  104. package/dist/rst-xmthoFSf-BdN-iqJu.js +0 -20
  105. package/dist/ruby-CmwqiOyg-B5qGUHPy.js +0 -44
  106. package/dist/rust-BrRMzTsN-CaZtBt24.js +0 -4
  107. package/dist/sankeyDiagram-P5KCCOFB-CqEXebJJ-BrChTi-e.js +0 -948
  108. package/dist/sass-CL6GLiPQ-pslLeRRb.js +0 -4
  109. package/dist/scss-CiLZCexj-CladYQkr.js +0 -5
  110. package/dist/sequenceDiagram-WJ2MYXX4-Bs_1V5D1-Da6JW3KG.js +0 -4263
  111. package/dist/shellscript-Dfpezy65-BtH46UX7.js +0 -4
  112. package/dist/shellsession-CRcAC04a-BFLTslz7.js +0 -5
  113. package/dist/sizeCapture-INFHLROL-Bc4fS2u3-DMniWWy4.js +0 -46
  114. package/dist/splunk-MGILMmew-BP8P7eWt.js +0 -4
  115. package/dist/sql-D_W5grEC-Dcn2WLbD.js +0 -4
  116. package/dist/ssh-config-CFmUyPR7-BB1rrGb9.js +0 -4
  117. package/dist/stateDiagram-D77RDMKH-oTiwIYVV-BphZk0uR.js +0 -210
  118. package/dist/stateDiagram-v2-MP3YSRHH-gbAY2cmo-D78HyGx1.js +0 -17
  119. package/dist/style.css +0 -1
  120. package/dist/stylus-Kh83dApl-DAu5PNZ9.js +0 -4
  121. package/dist/svelte-HVIHTyhe-BdPJXyv7.js +0 -14
  122. package/dist/swift-B7Z-rXzN-CQtmhAMw.js +0 -4
  123. package/dist/swimlanes-42K2YHIH-BSXAPn2j-C7pTnVuk.js +0 -4983
  124. package/dist/swimlanesDiagram-VR7AAH4N-Ror_0lre-Di8OVgei.js +0 -17
  125. package/dist/timeline-definition-24CTP7MA-gOHmAY1H-aIgAzo7s.js +0 -1096
  126. package/dist/toml-CIQJnU5u-DjT9Bjqu.js +0 -4
  127. package/dist/tsx-DiMnnori-B-5hSr15.js +0 -4
  128. package/dist/twig-BXXOiPVV-CmgmU-L-.js +0 -18
  129. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  130. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  131. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  132. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  133. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  134. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  135. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  136. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  137. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  138. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  139. package/dist/types/composables/index.d.ts +0 -6
  140. package/dist/types/composables/index.d.ts.map +0 -1
  141. package/dist/types/composables/useI18n.d.ts +0 -9
  142. package/dist/types/composables/useI18n.d.ts.map +0 -1
  143. package/dist/types/external-links.d.ts +0 -5
  144. package/dist/types/external-links.d.ts.map +0 -1
  145. package/dist/types/helpers.d.ts +0 -8
  146. package/dist/types/helpers.d.ts.map +0 -1
  147. package/dist/types/index.d.ts +0 -7
  148. package/dist/types/index.d.ts.map +0 -1
  149. package/dist/types/types/document-list.d.ts +0 -28
  150. package/dist/types/types/document-list.d.ts.map +0 -1
  151. package/dist/types/types/document-modal.d.ts +0 -8
  152. package/dist/types/types/document-modal.d.ts.map +0 -1
  153. package/dist/types/types/index.d.ts +0 -3
  154. package/dist/types/types/index.d.ts.map +0 -1
  155. package/dist/typescript-DFf19o_s-B0ag8pir.js +0 -4
  156. package/dist/v-DbYZLS97-CAPuTPjr.js +0 -4
  157. package/dist/vb-DRaXf86R-Bx9Rwnco.js +0 -4
  158. package/dist/vennDiagram-4TSXK5OY-Cr4BWMuk-BjBvyxCC.js +0 -1911
  159. package/dist/viml-DgaHry3T-BeYQ8dZh.js +0 -4
  160. package/dist/vue-DPI5F0qT-D-Ahkoja.js +0 -22
  161. package/dist/vue-html-D7FCsiW2-DLSUNIPr.js +0 -5
  162. package/dist/wardleyDiagram-VM6X3IG4-a6H91k9Q-CsH4gQQ0.js +0 -639
  163. package/dist/wasm-DXa1gtBd-CfuK9YWP.js +0 -4
  164. package/dist/wgsl-Vcm3Lg52-C2IZ7ENh.js +0 -4
  165. package/dist/xml-DnOpIvRK-C-akVYiK.js +0 -5
  166. package/dist/xsl-K_2BlT3G-D3eRZGNO.js +0 -5
  167. package/dist/xychartDiagram-S5SC5T6Z-7mX_nPmO-CoM4SG9q.js +0 -2218
  168. package/dist/yaml-BswqmnDe-X78l_Ibz.js +0 -4
@@ -1,3067 +0,0 @@
1
- import { n as Le, r as Ie, t as $e, e as Me, a as u, c as vt, m as ue, V as Be, R as Ye, J as Pt, v as je, Q as _e, G as Gt, D as Ue, b as Jt, q as de } from "./index-BaAWoj3P.js";
2
- import { a as Fe } from "./chunk-F27PBJKO-Bf2CKIqN-CUI4z39H.js";
3
- var jt = (function() {
4
- var t = /* @__PURE__ */ u(function(_, O, E, b) {
5
- for (E ||= {}, b = _.length; b--; E[_[b]] = O) ;
6
- return E;
7
- }, "o"), e = [1, 24], i = [1, 25], o = [1, 26], h = [1, 27], r = [1, 28], n = [1, 63], l = [1, 64], s = [1, 65], p = [1, 66], y = [1, 67], f = [1, 68], g = [1, 69], m = [1, 29], A = [1, 30], D = [1, 31], v = [1, 32], P = [1, 33], B = [1, 34], X = [1, 35], q = [1, 36], W = [1, 37], Q = [1, 38], V = [1, 39], H = [1, 40], G = [1, 41], K = [1, 42], J = [1, 43], Z = [1, 44], tt = [1, 45], et = [1, 46], nt = [1, 47], st = [1, 48], it = [1, 50], at = [1, 51], rt = [1, 52], lt = [1, 53], ot = [1, 54], ct = [1, 55], ht = [1, 56], ut = [1, 57], dt = [1, 58], pt = [1, 59], yt = [1, 60], Tt = [14, 42], zt = [
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
- ], Ot = [
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
- ], S = [1, 82], T = [1, 83], k = [1, 84], C = [1, 85], R = [
91
- 12,
92
- 14,
93
- 42
94
- ], ae = [
95
- 12,
96
- 14,
97
- 33,
98
- 42
99
- ], It = [
100
- 12,
101
- 14,
102
- 33,
103
- 42,
104
- 76,
105
- 77,
106
- 79,
107
- 80
108
- ], gt = [12, 33], Xt = [
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__ */ u(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__ */ u(function(_, O, E, b, w, a, wt) {
380
- var d = a.length - 1;
381
- switch (w) {
382
- case 3:
383
- b.setDirection("TB");
384
- break;
385
- case 4:
386
- b.setDirection("BT");
387
- break;
388
- case 5:
389
- b.setDirection("RL");
390
- break;
391
- case 6:
392
- b.setDirection("LR");
393
- break;
394
- case 8:
395
- case 9:
396
- case 10:
397
- case 11:
398
- case 12:
399
- b.setC4Type(a[d - 3]);
400
- break;
401
- case 19:
402
- b.setTitle(a[d].substring(6)), this.$ = a[d].substring(6);
403
- break;
404
- case 20:
405
- b.setAccDescription(a[d].substring(15)), this.$ = a[d].substring(15);
406
- break;
407
- case 21:
408
- this.$ = a[d].trim(), b.setTitle(this.$);
409
- break;
410
- case 22:
411
- case 23:
412
- this.$ = a[d].trim(), b.setAccDescription(this.$);
413
- break;
414
- case 28:
415
- a[d].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...a[d]), this.$ = a[d];
416
- break;
417
- case 29:
418
- a[d].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...a[d]), this.$ = a[d];
419
- break;
420
- case 30:
421
- b.addPersonOrSystemBoundary(...a[d]), this.$ = a[d];
422
- break;
423
- case 31:
424
- a[d].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...a[d]), this.$ = a[d];
425
- break;
426
- case 32:
427
- b.addDeploymentNode("node", ...a[d]), this.$ = a[d];
428
- break;
429
- case 33:
430
- b.addDeploymentNode("nodeL", ...a[d]), this.$ = a[d];
431
- break;
432
- case 34:
433
- b.addDeploymentNode("nodeR", ...a[d]), this.$ = a[d];
434
- break;
435
- case 35:
436
- b.popBoundaryParseStack();
437
- break;
438
- case 39:
439
- b.addPersonOrSystem("person", ...a[d]), this.$ = a[d];
440
- break;
441
- case 40:
442
- b.addPersonOrSystem("external_person", ...a[d]), this.$ = a[d];
443
- break;
444
- case 41:
445
- b.addPersonOrSystem("system", ...a[d]), this.$ = a[d];
446
- break;
447
- case 42:
448
- b.addPersonOrSystem("system_db", ...a[d]), this.$ = a[d];
449
- break;
450
- case 43:
451
- b.addPersonOrSystem("system_queue", ...a[d]), this.$ = a[d];
452
- break;
453
- case 44:
454
- b.addPersonOrSystem("external_system", ...a[d]), this.$ = a[d];
455
- break;
456
- case 45:
457
- b.addPersonOrSystem("external_system_db", ...a[d]), this.$ = a[d];
458
- break;
459
- case 46:
460
- b.addPersonOrSystem("external_system_queue", ...a[d]), this.$ = a[d];
461
- break;
462
- case 47:
463
- b.addContainer("container", ...a[d]), this.$ = a[d];
464
- break;
465
- case 48:
466
- b.addContainer("container_db", ...a[d]), this.$ = a[d];
467
- break;
468
- case 49:
469
- b.addContainer("container_queue", ...a[d]), this.$ = a[d];
470
- break;
471
- case 50:
472
- b.addContainer("external_container", ...a[d]), this.$ = a[d];
473
- break;
474
- case 51:
475
- b.addContainer("external_container_db", ...a[d]), this.$ = a[d];
476
- break;
477
- case 52:
478
- b.addContainer("external_container_queue", ...a[d]), this.$ = a[d];
479
- break;
480
- case 53:
481
- b.addComponent("component", ...a[d]), this.$ = a[d];
482
- break;
483
- case 54:
484
- b.addComponent("component_db", ...a[d]), this.$ = a[d];
485
- break;
486
- case 55:
487
- b.addComponent("component_queue", ...a[d]), this.$ = a[d];
488
- break;
489
- case 56:
490
- b.addComponent("external_component", ...a[d]), this.$ = a[d];
491
- break;
492
- case 57:
493
- b.addComponent("external_component_db", ...a[d]), this.$ = a[d];
494
- break;
495
- case 58:
496
- b.addComponent("external_component_queue", ...a[d]), this.$ = a[d];
497
- break;
498
- case 60:
499
- b.addRel("rel", ...a[d]), this.$ = a[d];
500
- break;
501
- case 61:
502
- b.addRel("birel", ...a[d]), this.$ = a[d];
503
- break;
504
- case 62:
505
- b.addRel("rel_u", ...a[d]), this.$ = a[d];
506
- break;
507
- case 63:
508
- b.addRel("rel_d", ...a[d]), this.$ = a[d];
509
- break;
510
- case 64:
511
- b.addRel("rel_l", ...a[d]), this.$ = a[d];
512
- break;
513
- case 65:
514
- b.addRel("rel_r", ...a[d]), this.$ = a[d];
515
- break;
516
- case 66:
517
- b.addRel("rel_b", ...a[d]), this.$ = a[d];
518
- break;
519
- case 67:
520
- a[d].splice(0, 1), b.addRel("rel", ...a[d]), this.$ = a[d];
521
- break;
522
- case 68:
523
- b.updateElStyle("update_el_style", ...a[d]), this.$ = a[d];
524
- break;
525
- case 69:
526
- b.updateRelStyle("update_rel_style", ...a[d]), this.$ = a[d];
527
- break;
528
- case 70:
529
- b.updateLayoutConfig("update_layout_config", ...a[d]), this.$ = a[d];
530
- break;
531
- case 71:
532
- this.$ = [a[d]];
533
- break;
534
- case 72:
535
- a[d].unshift(a[d - 1]), this.$ = a[d];
536
- break;
537
- case 73:
538
- case 75:
539
- this.$ = a[d].trim();
540
- break;
541
- case 74:
542
- let mt = {};
543
- mt[a[d - 1].trim()] = a[d].trim(), this.$ = mt;
544
- break;
545
- case 76:
546
- this.$ = "";
547
- }
548
- }, "anonymous"),
549
- table: [
550
- {
551
- 3: 1,
552
- 4: 2,
553
- 5: 3,
554
- 6: [1, 5],
555
- 7: [1, 6],
556
- 8: [1, 7],
557
- 9: [1, 8],
558
- 10: 4,
559
- 11: [1, 9],
560
- 15: [1, 10],
561
- 16: [1, 11],
562
- 17: [1, 12],
563
- 18: [1, 13]
564
- },
565
- { 1: [3] },
566
- { 1: [2, 1] },
567
- { 1: [2, 2] },
568
- { 1: [2, 7] },
569
- { 1: [2, 3] },
570
- { 1: [2, 4] },
571
- { 1: [2, 5] },
572
- { 1: [2, 6] },
573
- { 12: [1, 14] },
574
- { 12: [1, 15] },
575
- { 12: [1, 16] },
576
- { 12: [1, 17] },
577
- { 12: [1, 18] },
578
- {
579
- 13: 19,
580
- 19: 20,
581
- 20: 21,
582
- 21: 22,
583
- 22: e,
584
- 23: i,
585
- 24: o,
586
- 26: h,
587
- 28: r,
588
- 29: 49,
589
- 30: 61,
590
- 32: 62,
591
- 34: n,
592
- 36: l,
593
- 37: s,
594
- 38: p,
595
- 39: y,
596
- 40: f,
597
- 41: g,
598
- 43: 23,
599
- 44: m,
600
- 45: A,
601
- 46: D,
602
- 47: v,
603
- 48: P,
604
- 49: B,
605
- 50: X,
606
- 51: q,
607
- 52: W,
608
- 53: Q,
609
- 54: V,
610
- 55: H,
611
- 56: G,
612
- 57: K,
613
- 58: J,
614
- 59: Z,
615
- 60: tt,
616
- 61: et,
617
- 62: nt,
618
- 63: st,
619
- 64: it,
620
- 65: at,
621
- 66: rt,
622
- 67: lt,
623
- 68: ot,
624
- 69: ct,
625
- 70: ht,
626
- 71: ut,
627
- 72: dt,
628
- 73: pt,
629
- 74: yt
630
- },
631
- {
632
- 13: 70,
633
- 19: 20,
634
- 20: 21,
635
- 21: 22,
636
- 22: e,
637
- 23: i,
638
- 24: o,
639
- 26: h,
640
- 28: r,
641
- 29: 49,
642
- 30: 61,
643
- 32: 62,
644
- 34: n,
645
- 36: l,
646
- 37: s,
647
- 38: p,
648
- 39: y,
649
- 40: f,
650
- 41: g,
651
- 43: 23,
652
- 44: m,
653
- 45: A,
654
- 46: D,
655
- 47: v,
656
- 48: P,
657
- 49: B,
658
- 50: X,
659
- 51: q,
660
- 52: W,
661
- 53: Q,
662
- 54: V,
663
- 55: H,
664
- 56: G,
665
- 57: K,
666
- 58: J,
667
- 59: Z,
668
- 60: tt,
669
- 61: et,
670
- 62: nt,
671
- 63: st,
672
- 64: it,
673
- 65: at,
674
- 66: rt,
675
- 67: lt,
676
- 68: ot,
677
- 69: ct,
678
- 70: ht,
679
- 71: ut,
680
- 72: dt,
681
- 73: pt,
682
- 74: yt
683
- },
684
- {
685
- 13: 71,
686
- 19: 20,
687
- 20: 21,
688
- 21: 22,
689
- 22: e,
690
- 23: i,
691
- 24: o,
692
- 26: h,
693
- 28: r,
694
- 29: 49,
695
- 30: 61,
696
- 32: 62,
697
- 34: n,
698
- 36: l,
699
- 37: s,
700
- 38: p,
701
- 39: y,
702
- 40: f,
703
- 41: g,
704
- 43: 23,
705
- 44: m,
706
- 45: A,
707
- 46: D,
708
- 47: v,
709
- 48: P,
710
- 49: B,
711
- 50: X,
712
- 51: q,
713
- 52: W,
714
- 53: Q,
715
- 54: V,
716
- 55: H,
717
- 56: G,
718
- 57: K,
719
- 58: J,
720
- 59: Z,
721
- 60: tt,
722
- 61: et,
723
- 62: nt,
724
- 63: st,
725
- 64: it,
726
- 65: at,
727
- 66: rt,
728
- 67: lt,
729
- 68: ot,
730
- 69: ct,
731
- 70: ht,
732
- 71: ut,
733
- 72: dt,
734
- 73: pt,
735
- 74: yt
736
- },
737
- {
738
- 13: 72,
739
- 19: 20,
740
- 20: 21,
741
- 21: 22,
742
- 22: e,
743
- 23: i,
744
- 24: o,
745
- 26: h,
746
- 28: r,
747
- 29: 49,
748
- 30: 61,
749
- 32: 62,
750
- 34: n,
751
- 36: l,
752
- 37: s,
753
- 38: p,
754
- 39: y,
755
- 40: f,
756
- 41: g,
757
- 43: 23,
758
- 44: m,
759
- 45: A,
760
- 46: D,
761
- 47: v,
762
- 48: P,
763
- 49: B,
764
- 50: X,
765
- 51: q,
766
- 52: W,
767
- 53: Q,
768
- 54: V,
769
- 55: H,
770
- 56: G,
771
- 57: K,
772
- 58: J,
773
- 59: Z,
774
- 60: tt,
775
- 61: et,
776
- 62: nt,
777
- 63: st,
778
- 64: it,
779
- 65: at,
780
- 66: rt,
781
- 67: lt,
782
- 68: ot,
783
- 69: ct,
784
- 70: ht,
785
- 71: ut,
786
- 72: dt,
787
- 73: pt,
788
- 74: yt
789
- },
790
- {
791
- 13: 73,
792
- 19: 20,
793
- 20: 21,
794
- 21: 22,
795
- 22: e,
796
- 23: i,
797
- 24: o,
798
- 26: h,
799
- 28: r,
800
- 29: 49,
801
- 30: 61,
802
- 32: 62,
803
- 34: n,
804
- 36: l,
805
- 37: s,
806
- 38: p,
807
- 39: y,
808
- 40: f,
809
- 41: g,
810
- 43: 23,
811
- 44: m,
812
- 45: A,
813
- 46: D,
814
- 47: v,
815
- 48: P,
816
- 49: B,
817
- 50: X,
818
- 51: q,
819
- 52: W,
820
- 53: Q,
821
- 54: V,
822
- 55: H,
823
- 56: G,
824
- 57: K,
825
- 58: J,
826
- 59: Z,
827
- 60: tt,
828
- 61: et,
829
- 62: nt,
830
- 63: st,
831
- 64: it,
832
- 65: at,
833
- 66: rt,
834
- 67: lt,
835
- 68: ot,
836
- 69: ct,
837
- 70: ht,
838
- 71: ut,
839
- 72: dt,
840
- 73: pt,
841
- 74: yt
842
- },
843
- { 14: [1, 74] },
844
- t(Tt, [2, 13], {
845
- 43: 23,
846
- 29: 49,
847
- 30: 61,
848
- 32: 62,
849
- 20: 75,
850
- 34: n,
851
- 36: l,
852
- 37: s,
853
- 38: p,
854
- 39: y,
855
- 40: f,
856
- 41: g,
857
- 44: m,
858
- 45: A,
859
- 46: D,
860
- 47: v,
861
- 48: P,
862
- 49: B,
863
- 50: X,
864
- 51: q,
865
- 52: W,
866
- 53: Q,
867
- 54: V,
868
- 55: H,
869
- 56: G,
870
- 57: K,
871
- 58: J,
872
- 59: Z,
873
- 60: tt,
874
- 61: et,
875
- 62: nt,
876
- 63: st,
877
- 64: it,
878
- 65: at,
879
- 66: rt,
880
- 67: lt,
881
- 68: ot,
882
- 69: ct,
883
- 70: ht,
884
- 71: ut,
885
- 72: dt,
886
- 73: pt,
887
- 74: yt
888
- }),
889
- t(Tt, [2, 14]),
890
- t(zt, [2, 16], { 12: [1, 76] }),
891
- t(Tt, [2, 36], { 12: [1, 77] }),
892
- t(Ot, [2, 19]),
893
- t(Ot, [2, 20]),
894
- { 25: [1, 78] },
895
- { 27: [1, 79] },
896
- t(Ot, [2, 23]),
897
- {
898
- 35: 80,
899
- 75: 81,
900
- 76: S,
901
- 77: T,
902
- 79: k,
903
- 80: C
904
- },
905
- {
906
- 35: 86,
907
- 75: 81,
908
- 76: S,
909
- 77: T,
910
- 79: k,
911
- 80: C
912
- },
913
- {
914
- 35: 87,
915
- 75: 81,
916
- 76: S,
917
- 77: T,
918
- 79: k,
919
- 80: C
920
- },
921
- {
922
- 35: 88,
923
- 75: 81,
924
- 76: S,
925
- 77: T,
926
- 79: k,
927
- 80: C
928
- },
929
- {
930
- 35: 89,
931
- 75: 81,
932
- 76: S,
933
- 77: T,
934
- 79: k,
935
- 80: C
936
- },
937
- {
938
- 35: 90,
939
- 75: 81,
940
- 76: S,
941
- 77: T,
942
- 79: k,
943
- 80: C
944
- },
945
- {
946
- 35: 91,
947
- 75: 81,
948
- 76: S,
949
- 77: T,
950
- 79: k,
951
- 80: C
952
- },
953
- {
954
- 35: 92,
955
- 75: 81,
956
- 76: S,
957
- 77: T,
958
- 79: k,
959
- 80: C
960
- },
961
- {
962
- 35: 93,
963
- 75: 81,
964
- 76: S,
965
- 77: T,
966
- 79: k,
967
- 80: C
968
- },
969
- {
970
- 35: 94,
971
- 75: 81,
972
- 76: S,
973
- 77: T,
974
- 79: k,
975
- 80: C
976
- },
977
- {
978
- 35: 95,
979
- 75: 81,
980
- 76: S,
981
- 77: T,
982
- 79: k,
983
- 80: C
984
- },
985
- {
986
- 35: 96,
987
- 75: 81,
988
- 76: S,
989
- 77: T,
990
- 79: k,
991
- 80: C
992
- },
993
- {
994
- 35: 97,
995
- 75: 81,
996
- 76: S,
997
- 77: T,
998
- 79: k,
999
- 80: C
1000
- },
1001
- {
1002
- 35: 98,
1003
- 75: 81,
1004
- 76: S,
1005
- 77: T,
1006
- 79: k,
1007
- 80: C
1008
- },
1009
- {
1010
- 35: 99,
1011
- 75: 81,
1012
- 76: S,
1013
- 77: T,
1014
- 79: k,
1015
- 80: C
1016
- },
1017
- {
1018
- 35: 100,
1019
- 75: 81,
1020
- 76: S,
1021
- 77: T,
1022
- 79: k,
1023
- 80: C
1024
- },
1025
- {
1026
- 35: 101,
1027
- 75: 81,
1028
- 76: S,
1029
- 77: T,
1030
- 79: k,
1031
- 80: C
1032
- },
1033
- {
1034
- 35: 102,
1035
- 75: 81,
1036
- 76: S,
1037
- 77: T,
1038
- 79: k,
1039
- 80: C
1040
- },
1041
- {
1042
- 35: 103,
1043
- 75: 81,
1044
- 76: S,
1045
- 77: T,
1046
- 79: k,
1047
- 80: C
1048
- },
1049
- {
1050
- 35: 104,
1051
- 75: 81,
1052
- 76: S,
1053
- 77: T,
1054
- 79: k,
1055
- 80: C
1056
- },
1057
- t(R, [2, 59]),
1058
- {
1059
- 35: 105,
1060
- 75: 81,
1061
- 76: S,
1062
- 77: T,
1063
- 79: k,
1064
- 80: C
1065
- },
1066
- {
1067
- 35: 106,
1068
- 75: 81,
1069
- 76: S,
1070
- 77: T,
1071
- 79: k,
1072
- 80: C
1073
- },
1074
- {
1075
- 35: 107,
1076
- 75: 81,
1077
- 76: S,
1078
- 77: T,
1079
- 79: k,
1080
- 80: C
1081
- },
1082
- {
1083
- 35: 108,
1084
- 75: 81,
1085
- 76: S,
1086
- 77: T,
1087
- 79: k,
1088
- 80: C
1089
- },
1090
- {
1091
- 35: 109,
1092
- 75: 81,
1093
- 76: S,
1094
- 77: T,
1095
- 79: k,
1096
- 80: C
1097
- },
1098
- {
1099
- 35: 110,
1100
- 75: 81,
1101
- 76: S,
1102
- 77: T,
1103
- 79: k,
1104
- 80: C
1105
- },
1106
- {
1107
- 35: 111,
1108
- 75: 81,
1109
- 76: S,
1110
- 77: T,
1111
- 79: k,
1112
- 80: C
1113
- },
1114
- {
1115
- 35: 112,
1116
- 75: 81,
1117
- 76: S,
1118
- 77: T,
1119
- 79: k,
1120
- 80: C
1121
- },
1122
- {
1123
- 35: 113,
1124
- 75: 81,
1125
- 76: S,
1126
- 77: T,
1127
- 79: k,
1128
- 80: C
1129
- },
1130
- {
1131
- 35: 114,
1132
- 75: 81,
1133
- 76: S,
1134
- 77: T,
1135
- 79: k,
1136
- 80: C
1137
- },
1138
- {
1139
- 35: 115,
1140
- 75: 81,
1141
- 76: S,
1142
- 77: T,
1143
- 79: k,
1144
- 80: C
1145
- },
1146
- {
1147
- 20: 116,
1148
- 29: 49,
1149
- 30: 61,
1150
- 32: 62,
1151
- 34: n,
1152
- 36: l,
1153
- 37: s,
1154
- 38: p,
1155
- 39: y,
1156
- 40: f,
1157
- 41: g,
1158
- 43: 23,
1159
- 44: m,
1160
- 45: A,
1161
- 46: D,
1162
- 47: v,
1163
- 48: P,
1164
- 49: B,
1165
- 50: X,
1166
- 51: q,
1167
- 52: W,
1168
- 53: Q,
1169
- 54: V,
1170
- 55: H,
1171
- 56: G,
1172
- 57: K,
1173
- 58: J,
1174
- 59: Z,
1175
- 60: tt,
1176
- 61: et,
1177
- 62: nt,
1178
- 63: st,
1179
- 64: it,
1180
- 65: at,
1181
- 66: rt,
1182
- 67: lt,
1183
- 68: ot,
1184
- 69: ct,
1185
- 70: ht,
1186
- 71: ut,
1187
- 72: dt,
1188
- 73: pt,
1189
- 74: yt
1190
- },
1191
- {
1192
- 12: [1, 118],
1193
- 33: [1, 117]
1194
- },
1195
- {
1196
- 35: 119,
1197
- 75: 81,
1198
- 76: S,
1199
- 77: T,
1200
- 79: k,
1201
- 80: C
1202
- },
1203
- {
1204
- 35: 120,
1205
- 75: 81,
1206
- 76: S,
1207
- 77: T,
1208
- 79: k,
1209
- 80: C
1210
- },
1211
- {
1212
- 35: 121,
1213
- 75: 81,
1214
- 76: S,
1215
- 77: T,
1216
- 79: k,
1217
- 80: C
1218
- },
1219
- {
1220
- 35: 122,
1221
- 75: 81,
1222
- 76: S,
1223
- 77: T,
1224
- 79: k,
1225
- 80: C
1226
- },
1227
- {
1228
- 35: 123,
1229
- 75: 81,
1230
- 76: S,
1231
- 77: T,
1232
- 79: k,
1233
- 80: C
1234
- },
1235
- {
1236
- 35: 124,
1237
- 75: 81,
1238
- 76: S,
1239
- 77: T,
1240
- 79: k,
1241
- 80: C
1242
- },
1243
- {
1244
- 35: 125,
1245
- 75: 81,
1246
- 76: S,
1247
- 77: T,
1248
- 79: k,
1249
- 80: C
1250
- },
1251
- { 14: [1, 126] },
1252
- { 14: [1, 127] },
1253
- { 14: [1, 128] },
1254
- { 14: [1, 129] },
1255
- { 1: [2, 8] },
1256
- t(Tt, [2, 15]),
1257
- t(zt, [2, 17], {
1258
- 21: 22,
1259
- 19: 130,
1260
- 22: e,
1261
- 23: i,
1262
- 24: o,
1263
- 26: h,
1264
- 28: r
1265
- }),
1266
- t(Tt, [2, 37], {
1267
- 19: 20,
1268
- 20: 21,
1269
- 21: 22,
1270
- 43: 23,
1271
- 29: 49,
1272
- 30: 61,
1273
- 32: 62,
1274
- 13: 131,
1275
- 22: e,
1276
- 23: i,
1277
- 24: o,
1278
- 26: h,
1279
- 28: r,
1280
- 34: n,
1281
- 36: l,
1282
- 37: s,
1283
- 38: p,
1284
- 39: y,
1285
- 40: f,
1286
- 41: g,
1287
- 44: m,
1288
- 45: A,
1289
- 46: D,
1290
- 47: v,
1291
- 48: P,
1292
- 49: B,
1293
- 50: X,
1294
- 51: q,
1295
- 52: W,
1296
- 53: Q,
1297
- 54: V,
1298
- 55: H,
1299
- 56: G,
1300
- 57: K,
1301
- 58: J,
1302
- 59: Z,
1303
- 60: tt,
1304
- 61: et,
1305
- 62: nt,
1306
- 63: st,
1307
- 64: it,
1308
- 65: at,
1309
- 66: rt,
1310
- 67: lt,
1311
- 68: ot,
1312
- 69: ct,
1313
- 70: ht,
1314
- 71: ut,
1315
- 72: dt,
1316
- 73: pt,
1317
- 74: yt
1318
- }),
1319
- t(Ot, [2, 21]),
1320
- t(Ot, [2, 22]),
1321
- t(R, [2, 39]),
1322
- t(ae, [2, 71], {
1323
- 75: 81,
1324
- 35: 132,
1325
- 76: S,
1326
- 77: T,
1327
- 79: k,
1328
- 80: C
1329
- }),
1330
- t(It, [2, 73]),
1331
- { 78: [1, 133] },
1332
- t(It, [2, 75]),
1333
- t(It, [2, 76]),
1334
- t(R, [2, 40]),
1335
- t(R, [2, 41]),
1336
- t(R, [2, 42]),
1337
- t(R, [2, 43]),
1338
- t(R, [2, 44]),
1339
- t(R, [2, 45]),
1340
- t(R, [2, 46]),
1341
- t(R, [2, 47]),
1342
- t(R, [2, 48]),
1343
- t(R, [2, 49]),
1344
- t(R, [2, 50]),
1345
- t(R, [2, 51]),
1346
- t(R, [2, 52]),
1347
- t(R, [2, 53]),
1348
- t(R, [2, 54]),
1349
- t(R, [2, 55]),
1350
- t(R, [2, 56]),
1351
- t(R, [2, 57]),
1352
- t(R, [2, 58]),
1353
- t(R, [2, 60]),
1354
- t(R, [2, 61]),
1355
- t(R, [2, 62]),
1356
- t(R, [2, 63]),
1357
- t(R, [2, 64]),
1358
- t(R, [2, 65]),
1359
- t(R, [2, 66]),
1360
- t(R, [2, 67]),
1361
- t(R, [2, 68]),
1362
- t(R, [2, 69]),
1363
- t(R, [2, 70]),
1364
- {
1365
- 31: 134,
1366
- 42: [1, 135]
1367
- },
1368
- { 12: [1, 136] },
1369
- { 33: [1, 137] },
1370
- t(gt, [2, 28]),
1371
- t(gt, [2, 29]),
1372
- t(gt, [2, 30]),
1373
- t(gt, [2, 31]),
1374
- t(gt, [2, 32]),
1375
- t(gt, [2, 33]),
1376
- t(gt, [2, 34]),
1377
- { 1: [2, 9] },
1378
- { 1: [2, 10] },
1379
- { 1: [2, 11] },
1380
- { 1: [2, 12] },
1381
- t(zt, [2, 18]),
1382
- t(Tt, [2, 38]),
1383
- t(ae, [2, 72]),
1384
- t(It, [2, 74]),
1385
- t(R, [2, 24]),
1386
- t(R, [2, 35]),
1387
- t(Xt, [2, 25]),
1388
- t(Xt, [2, 26], { 12: [1, 138] }),
1389
- t(Xt, [2, 27])
1390
- ],
1391
- defaultActions: {
1392
- 2: [2, 1],
1393
- 3: [2, 2],
1394
- 4: [2, 7],
1395
- 5: [2, 3],
1396
- 6: [2, 4],
1397
- 7: [2, 5],
1398
- 8: [2, 6],
1399
- 74: [2, 8],
1400
- 126: [2, 9],
1401
- 127: [2, 10],
1402
- 128: [2, 11],
1403
- 129: [2, 12]
1404
- },
1405
- parseError: /* @__PURE__ */ u(function(_, O) {
1406
- if (O.recoverable) this.trace(_);
1407
- else {
1408
- var E = Error(_);
1409
- throw E.hash = O, E;
1410
- }
1411
- }, "parseError"),
1412
- parse: /* @__PURE__ */ u(function(_) {
1413
- var O = this, E = [0], b = [], w = [null], a = [], wt = this.table, d = "", mt = 0, re = 0, we = 0, Pe = 2, le = 1, De = a.slice.call(arguments, 1), N = Object.create(this.lexer), xt = { yy: {} };
1414
- for (var Wt in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Wt) && (xt.yy[Wt] = this.yy[Wt]);
1415
- N.setInput(_, xt.yy), xt.yy.lexer = N, xt.yy.parser = this, N.yylloc === void 0 && (N.yylloc = {});
1416
- var Qt = N.yylloc;
1417
- a.push(Qt);
1418
- var Ne = N.options && N.options.ranges;
1419
- this.parseError = typeof xt.yy.parseError == "function" ? xt.yy.parseError : Object.getPrototypeOf(this).parseError;
1420
- function Ae(M) {
1421
- E.length -= 2 * M, w.length -= M, a.length -= M;
1422
- }
1423
- u(Ae, "popStack");
1424
- function oe() {
1425
- var M = b.pop() || N.lex() || le;
1426
- return typeof M != "number" && (M instanceof Array && (b = M, M = b.pop()), M = O.symbols_[M] || M), M;
1427
- }
1428
- u(oe, "lex");
1429
- for (var I, Vt, Et, $, Ht, kt = {}, Mt, F, ce, Bt; ; ) {
1430
- if (Et = E[E.length - 1], this.defaultActions[Et] ? $ = this.defaultActions[Et] : (I ??= oe(), $ = wt[Et] && wt[Et][I]), $ === void 0 || !$.length || !$[0]) {
1431
- var he = "";
1432
- for (Mt in Bt = [], wt[Et]) this.terminals_[Mt] && Mt > Pe && Bt.push("'" + this.terminals_[Mt] + "'");
1433
- he = N.showPosition ? "Parse error on line " + (mt + 1) + `:
1434
- ` + N.showPosition() + `
1435
- Expecting ` + Bt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : "Parse error on line " + (mt + 1) + ": Unexpected " + (I == le ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(he, {
1436
- text: N.match,
1437
- token: this.terminals_[I] || I,
1438
- line: N.yylineno,
1439
- loc: Qt,
1440
- expected: Bt
1441
- });
1442
- }
1443
- if ($[0] instanceof Array && $.length > 1) throw Error("Parse Error: multiple actions possible at state: " + Et + ", token: " + I);
1444
- switch ($[0]) {
1445
- case 1:
1446
- E.push(I), w.push(N.yytext), a.push(N.yylloc), E.push($[1]), I = null, Vt ? (I = Vt, Vt = null) : (re = N.yyleng, d = N.yytext, mt = N.yylineno, Qt = N.yylloc, we > 0);
1447
- break;
1448
- case 2:
1449
- if (F = this.productions_[$[1]][1], kt.$ = w[w.length - F], kt._$ = {
1450
- first_line: a[a.length - (F || 1)].first_line,
1451
- last_line: a[a.length - 1].last_line,
1452
- first_column: a[a.length - (F || 1)].first_column,
1453
- last_column: a[a.length - 1].last_column
1454
- }, Ne && (kt._$.range = [a[a.length - (F || 1)].range[0], a[a.length - 1].range[1]]), Ht = this.performAction.apply(kt, [
1455
- d,
1456
- re,
1457
- mt,
1458
- xt.yy,
1459
- $[1],
1460
- w,
1461
- a
1462
- ].concat(De)), Ht !== void 0) return Ht;
1463
- F && (E = E.slice(0, -1 * F * 2), w = w.slice(0, -1 * F), a = a.slice(0, -1 * F)), E.push(this.productions_[$[1]][0]), w.push(kt.$), a.push(kt._$), ce = wt[E[E.length - 2]][E[E.length - 1]], E.push(ce);
1464
- break;
1465
- case 3:
1466
- return !0;
1467
- }
1468
- }
1469
- return !0;
1470
- }, "parse")
1471
- };
1472
- qt.lexer = /* @__PURE__ */ (function() {
1473
- return {
1474
- EOF: 1,
1475
- parseError: /* @__PURE__ */ u(function(_, O) {
1476
- if (this.yy.parser) this.yy.parser.parseError(_, O);
1477
- else throw Error(_);
1478
- }, "parseError"),
1479
- setInput: /* @__PURE__ */ u(function(_, O) {
1480
- 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 = {
1481
- first_line: 1,
1482
- first_column: 0,
1483
- last_line: 1,
1484
- last_column: 0
1485
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1486
- }, "setInput"),
1487
- input: /* @__PURE__ */ u(function() {
1488
- var _ = this._input[0];
1489
- 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), _;
1490
- }, "input"),
1491
- unput: /* @__PURE__ */ u(function(_) {
1492
- var O = _.length, E = _.split(/(?:\r\n?|\n)/g);
1493
- this._input = _ + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - O), this.offset -= O;
1494
- var b = this.match.split(/(?:\r\n?|\n)/g);
1495
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), E.length - 1 && (this.yylineno -= E.length - 1);
1496
- var w = this.yylloc.range;
1497
- return this.yylloc = {
1498
- first_line: this.yylloc.first_line,
1499
- last_line: this.yylineno + 1,
1500
- first_column: this.yylloc.first_column,
1501
- last_column: E ? (E.length === b.length ? this.yylloc.first_column : 0) + b[b.length - E.length].length - E[0].length : this.yylloc.first_column - O
1502
- }, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - O]), this.yyleng = this.yytext.length, this;
1503
- }, "unput"),
1504
- more: /* @__PURE__ */ u(function() {
1505
- return this._more = !0, this;
1506
- }, "more"),
1507
- reject: /* @__PURE__ */ u(function() {
1508
- if (this.options.backtrack_lexer) this._backtrack = !0;
1509
- 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).
1510
- ` + this.showPosition(), {
1511
- text: "",
1512
- token: null,
1513
- line: this.yylineno
1514
- });
1515
- return this;
1516
- }, "reject"),
1517
- less: /* @__PURE__ */ u(function(_) {
1518
- this.unput(this.match.slice(_));
1519
- }, "less"),
1520
- pastInput: /* @__PURE__ */ u(function() {
1521
- var _ = this.matched.substr(0, this.matched.length - this.match.length);
1522
- return (_.length > 20 ? "..." : "") + _.substr(-20).replace(/\n/g, "");
1523
- }, "pastInput"),
1524
- upcomingInput: /* @__PURE__ */ u(function() {
1525
- var _ = this.match;
1526
- return _.length < 20 && (_ += this._input.substr(0, 20 - _.length)), (_.substr(0, 20) + (_.length > 20 ? "..." : "")).replace(/\n/g, "");
1527
- }, "upcomingInput"),
1528
- showPosition: /* @__PURE__ */ u(function() {
1529
- var _ = this.pastInput(), O = Array(_.length + 1).join("-");
1530
- return _ + this.upcomingInput() + `
1531
- ` + O + "^";
1532
- }, "showPosition"),
1533
- test_match: /* @__PURE__ */ u(function(_, O) {
1534
- var E, b, w;
1535
- if (this.options.backtrack_lexer && (w = {
1536
- yylineno: this.yylineno,
1537
- yylloc: {
1538
- first_line: this.yylloc.first_line,
1539
- last_line: this.last_line,
1540
- first_column: this.yylloc.first_column,
1541
- last_column: this.yylloc.last_column
1542
- },
1543
- yytext: this.yytext,
1544
- match: this.match,
1545
- matches: this.matches,
1546
- matched: this.matched,
1547
- yyleng: this.yyleng,
1548
- offset: this.offset,
1549
- _more: this._more,
1550
- _input: this._input,
1551
- yy: this.yy,
1552
- conditionStack: this.conditionStack.slice(0),
1553
- done: this.done
1554
- }, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), b = _[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
1555
- first_line: this.yylloc.last_line,
1556
- last_line: this.yylineno + 1,
1557
- first_column: this.yylloc.last_column,
1558
- last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + _[0].length
1559
- }, 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], E = this.performAction.call(this, this.yy, this, O, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), E) return E;
1560
- if (this._backtrack) {
1561
- for (var a in w) this[a] = w[a];
1562
- return !1;
1563
- }
1564
- return !1;
1565
- }, "test_match"),
1566
- next: /* @__PURE__ */ u(function() {
1567
- if (this.done) return this.EOF;
1568
- this._input || (this.done = !0);
1569
- var _, O, E, b;
1570
- this._more || (this.yytext = "", this.match = "");
1571
- for (var w = this._currentRules(), a = 0; a < w.length; a++) if (E = this._input.match(this.rules[w[a]]), E && (!O || E[0].length > O[0].length)) {
1572
- if (O = E, b = a, this.options.backtrack_lexer) {
1573
- if (_ = this.test_match(E, w[a]), _ !== !1) return _;
1574
- if (this._backtrack) {
1575
- O = !1;
1576
- continue;
1577
- }
1578
- return !1;
1579
- }
1580
- if (!this.options.flex) break;
1581
- }
1582
- return O ? (_ = this.test_match(O, w[b]), _ !== !1 && _) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1583
- ` + this.showPosition(), {
1584
- text: "",
1585
- token: null,
1586
- line: this.yylineno
1587
- });
1588
- }, "next"),
1589
- lex: /* @__PURE__ */ u(function() {
1590
- return this.next() || this.lex();
1591
- }, "lex"),
1592
- begin: /* @__PURE__ */ u(function(_) {
1593
- this.conditionStack.push(_);
1594
- }, "begin"),
1595
- popState: /* @__PURE__ */ u(function() {
1596
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1597
- }, "popState"),
1598
- _currentRules: /* @__PURE__ */ u(function() {
1599
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1600
- }, "_currentRules"),
1601
- topState: /* @__PURE__ */ u(function(_) {
1602
- return _ = this.conditionStack.length - 1 - Math.abs(_ || 0), _ >= 0 ? this.conditionStack[_] : "INITIAL";
1603
- }, "topState"),
1604
- pushState: /* @__PURE__ */ u(function(_) {
1605
- this.begin(_);
1606
- }, "pushState"),
1607
- stateStackSize: /* @__PURE__ */ u(function() {
1608
- return this.conditionStack.length;
1609
- }, "stateStackSize"),
1610
- options: {},
1611
- performAction: /* @__PURE__ */ u(function(_, O, E, b) {
1612
- switch (E) {
1613
- case 0:
1614
- return 6;
1615
- case 1:
1616
- return 7;
1617
- case 2:
1618
- return 8;
1619
- case 3:
1620
- return 9;
1621
- case 4:
1622
- return 22;
1623
- case 5:
1624
- return 23;
1625
- case 6:
1626
- return this.begin("acc_title"), 24;
1627
- case 7:
1628
- return this.popState(), "acc_title_value";
1629
- case 8:
1630
- return this.begin("acc_descr"), 26;
1631
- case 9:
1632
- return this.popState(), "acc_descr_value";
1633
- case 10:
1634
- this.begin("acc_descr_multiline");
1635
- break;
1636
- case 11:
1637
- this.popState();
1638
- break;
1639
- case 12:
1640
- return "acc_descr_multiline_value";
1641
- case 13:
1642
- break;
1643
- case 14:
1644
- c;
1645
- break;
1646
- case 15:
1647
- return 12;
1648
- case 16:
1649
- break;
1650
- case 17:
1651
- return 11;
1652
- case 18:
1653
- return 15;
1654
- case 19:
1655
- return 16;
1656
- case 20:
1657
- return 17;
1658
- case 21:
1659
- return 18;
1660
- case 22:
1661
- return this.begin("person_ext"), 45;
1662
- case 23:
1663
- return this.begin("person"), 44;
1664
- case 24:
1665
- return this.begin("system_ext_queue"), 51;
1666
- case 25:
1667
- return this.begin("system_ext_db"), 50;
1668
- case 26:
1669
- return this.begin("system_ext"), 49;
1670
- case 27:
1671
- return this.begin("system_queue"), 48;
1672
- case 28:
1673
- return this.begin("system_db"), 47;
1674
- case 29:
1675
- return this.begin("system"), 46;
1676
- case 30:
1677
- return this.begin("boundary"), 37;
1678
- case 31:
1679
- return this.begin("enterprise_boundary"), 34;
1680
- case 32:
1681
- return this.begin("system_boundary"), 36;
1682
- case 33:
1683
- return this.begin("container_ext_queue"), 57;
1684
- case 34:
1685
- return this.begin("container_ext_db"), 56;
1686
- case 35:
1687
- return this.begin("container_ext"), 55;
1688
- case 36:
1689
- return this.begin("container_queue"), 54;
1690
- case 37:
1691
- return this.begin("container_db"), 53;
1692
- case 38:
1693
- return this.begin("container"), 52;
1694
- case 39:
1695
- return this.begin("container_boundary"), 38;
1696
- case 40:
1697
- return this.begin("component_ext_queue"), 63;
1698
- case 41:
1699
- return this.begin("component_ext_db"), 62;
1700
- case 42:
1701
- return this.begin("component_ext"), 61;
1702
- case 43:
1703
- return this.begin("component_queue"), 60;
1704
- case 44:
1705
- return this.begin("component_db"), 59;
1706
- case 45:
1707
- return this.begin("component"), 58;
1708
- case 46:
1709
- return this.begin("node"), 39;
1710
- case 47:
1711
- return this.begin("node"), 39;
1712
- case 48:
1713
- return this.begin("node_l"), 40;
1714
- case 49:
1715
- return this.begin("node_r"), 41;
1716
- case 50:
1717
- return this.begin("rel"), 64;
1718
- case 51:
1719
- return this.begin("birel"), 65;
1720
- case 52:
1721
- return this.begin("rel_u"), 66;
1722
- case 53:
1723
- return this.begin("rel_u"), 66;
1724
- case 54:
1725
- return this.begin("rel_d"), 67;
1726
- case 55:
1727
- return this.begin("rel_d"), 67;
1728
- case 56:
1729
- return this.begin("rel_l"), 68;
1730
- case 57:
1731
- return this.begin("rel_l"), 68;
1732
- case 58:
1733
- return this.begin("rel_r"), 69;
1734
- case 59:
1735
- return this.begin("rel_r"), 69;
1736
- case 60:
1737
- return this.begin("rel_b"), 70;
1738
- case 61:
1739
- return this.begin("rel_index"), 71;
1740
- case 62:
1741
- return this.begin("update_el_style"), 72;
1742
- case 63:
1743
- return this.begin("update_rel_style"), 73;
1744
- case 64:
1745
- return this.begin("update_layout_config"), 74;
1746
- case 65:
1747
- return "EOF_IN_STRUCT";
1748
- case 66:
1749
- return this.begin("attribute"), "ATTRIBUTE_EMPTY";
1750
- case 67:
1751
- this.begin("attribute");
1752
- break;
1753
- case 68:
1754
- this.popState(), this.popState();
1755
- break;
1756
- case 69:
1757
- return 80;
1758
- case 70:
1759
- break;
1760
- case 71:
1761
- return 80;
1762
- case 72:
1763
- this.begin("string");
1764
- break;
1765
- case 73:
1766
- this.popState();
1767
- break;
1768
- case 74:
1769
- return "STR";
1770
- case 75:
1771
- this.begin("string_kv");
1772
- break;
1773
- case 76:
1774
- return this.begin("string_kv_key"), "STR_KEY";
1775
- case 77:
1776
- this.popState(), this.begin("string_kv_value");
1777
- break;
1778
- case 78:
1779
- return "STR_VALUE";
1780
- case 79:
1781
- this.popState(), this.popState();
1782
- break;
1783
- case 80:
1784
- return "STR";
1785
- case 81:
1786
- return "LBRACE";
1787
- case 82:
1788
- return "RBRACE";
1789
- case 83:
1790
- return "SPACE";
1791
- case 84:
1792
- return "EOL";
1793
- case 85:
1794
- return 14;
1795
- }
1796
- }, "anonymous"),
1797
- rules: [
1798
- /^(?:.*direction\s+TB[^\n]*)/,
1799
- /^(?:.*direction\s+BT[^\n]*)/,
1800
- /^(?:.*direction\s+RL[^\n]*)/,
1801
- /^(?:.*direction\s+LR[^\n]*)/,
1802
- /^(?:title\s[^#\n;]+)/,
1803
- /^(?:accDescription\s[^#\n;]+)/,
1804
- /^(?:accTitle\s*:\s*)/,
1805
- /^(?:(?!\n||)*[^\n]*)/,
1806
- /^(?:accDescr\s*:\s*)/,
1807
- /^(?:(?!\n||)*[^\n]*)/,
1808
- /^(?:accDescr\s*\{\s*)/,
1809
- /^(?:[\}])/,
1810
- /^(?:[^\}]*)/,
1811
- /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1812
- /^(?:%%[^\n]*(\r?\n)*)/,
1813
- /^(?:\s*(\r?\n)+)/,
1814
- /^(?:\s+)/,
1815
- /^(?:C4Context\b)/,
1816
- /^(?:C4Container\b)/,
1817
- /^(?:C4Component\b)/,
1818
- /^(?:C4Dynamic\b)/,
1819
- /^(?:C4Deployment\b)/,
1820
- /^(?:Person_Ext\b)/,
1821
- /^(?:Person\b)/,
1822
- /^(?:SystemQueue_Ext\b)/,
1823
- /^(?:SystemDb_Ext\b)/,
1824
- /^(?:System_Ext\b)/,
1825
- /^(?:SystemQueue\b)/,
1826
- /^(?:SystemDb\b)/,
1827
- /^(?:System\b)/,
1828
- /^(?:Boundary\b)/,
1829
- /^(?:Enterprise_Boundary\b)/,
1830
- /^(?:System_Boundary\b)/,
1831
- /^(?:ContainerQueue_Ext\b)/,
1832
- /^(?:ContainerDb_Ext\b)/,
1833
- /^(?:Container_Ext\b)/,
1834
- /^(?:ContainerQueue\b)/,
1835
- /^(?:ContainerDb\b)/,
1836
- /^(?:Container\b)/,
1837
- /^(?:Container_Boundary\b)/,
1838
- /^(?:ComponentQueue_Ext\b)/,
1839
- /^(?:ComponentDb_Ext\b)/,
1840
- /^(?:Component_Ext\b)/,
1841
- /^(?:ComponentQueue\b)/,
1842
- /^(?:ComponentDb\b)/,
1843
- /^(?:Component\b)/,
1844
- /^(?:Deployment_Node\b)/,
1845
- /^(?:Node\b)/,
1846
- /^(?:Node_L\b)/,
1847
- /^(?:Node_R\b)/,
1848
- /^(?:Rel\b)/,
1849
- /^(?:BiRel\b)/,
1850
- /^(?:Rel_Up\b)/,
1851
- /^(?:Rel_U\b)/,
1852
- /^(?:Rel_Down\b)/,
1853
- /^(?:Rel_D\b)/,
1854
- /^(?:Rel_Left\b)/,
1855
- /^(?:Rel_L\b)/,
1856
- /^(?:Rel_Right\b)/,
1857
- /^(?:Rel_R\b)/,
1858
- /^(?:Rel_Back\b)/,
1859
- /^(?:RelIndex\b)/,
1860
- /^(?:UpdateElementStyle\b)/,
1861
- /^(?:UpdateRelStyle\b)/,
1862
- /^(?:UpdateLayoutConfig\b)/,
1863
- /^(?:$)/,
1864
- /^(?:[(][ ]*[,])/,
1865
- /^(?:[(])/,
1866
- /^(?:[)])/,
1867
- /^(?:,,)/,
1868
- /^(?:,)/,
1869
- /^(?:[ ]*["]["])/,
1870
- /^(?:[ ]*["])/,
1871
- /^(?:["])/,
1872
- /^(?:[^"]*)/,
1873
- /^(?:[ ]*[\$])/,
1874
- /^(?:[^=]*)/,
1875
- /^(?:[=][ ]*["])/,
1876
- /^(?:[^"]+)/,
1877
- /^(?:["])/,
1878
- /^(?:[^,]+)/,
1879
- /^(?:\{)/,
1880
- /^(?:\})/,
1881
- /^(?:[\s]+)/,
1882
- /^(?:[\n\r]+)/,
1883
- /^(?:$)/
1884
- ],
1885
- conditions: {
1886
- acc_descr_multiline: {
1887
- rules: [11, 12],
1888
- inclusive: !1
1889
- },
1890
- acc_descr: {
1891
- rules: [9],
1892
- inclusive: !1
1893
- },
1894
- acc_title: {
1895
- rules: [7],
1896
- inclusive: !1
1897
- },
1898
- string_kv_value: {
1899
- rules: [78, 79],
1900
- inclusive: !1
1901
- },
1902
- string_kv_key: {
1903
- rules: [77],
1904
- inclusive: !1
1905
- },
1906
- string_kv: {
1907
- rules: [76],
1908
- inclusive: !1
1909
- },
1910
- string: {
1911
- rules: [73, 74],
1912
- inclusive: !1
1913
- },
1914
- attribute: {
1915
- rules: [
1916
- 68,
1917
- 69,
1918
- 70,
1919
- 71,
1920
- 72,
1921
- 75,
1922
- 80
1923
- ],
1924
- inclusive: !1
1925
- },
1926
- update_layout_config: {
1927
- rules: [
1928
- 65,
1929
- 66,
1930
- 67,
1931
- 68
1932
- ],
1933
- inclusive: !1
1934
- },
1935
- update_rel_style: {
1936
- rules: [
1937
- 65,
1938
- 66,
1939
- 67,
1940
- 68
1941
- ],
1942
- inclusive: !1
1943
- },
1944
- update_el_style: {
1945
- rules: [
1946
- 65,
1947
- 66,
1948
- 67,
1949
- 68
1950
- ],
1951
- inclusive: !1
1952
- },
1953
- rel_b: {
1954
- rules: [
1955
- 65,
1956
- 66,
1957
- 67,
1958
- 68
1959
- ],
1960
- inclusive: !1
1961
- },
1962
- rel_r: {
1963
- rules: [
1964
- 65,
1965
- 66,
1966
- 67,
1967
- 68
1968
- ],
1969
- inclusive: !1
1970
- },
1971
- rel_l: {
1972
- rules: [
1973
- 65,
1974
- 66,
1975
- 67,
1976
- 68
1977
- ],
1978
- inclusive: !1
1979
- },
1980
- rel_d: {
1981
- rules: [
1982
- 65,
1983
- 66,
1984
- 67,
1985
- 68
1986
- ],
1987
- inclusive: !1
1988
- },
1989
- rel_u: {
1990
- rules: [
1991
- 65,
1992
- 66,
1993
- 67,
1994
- 68
1995
- ],
1996
- inclusive: !1
1997
- },
1998
- rel_bi: {
1999
- rules: [],
2000
- inclusive: !1
2001
- },
2002
- rel: {
2003
- rules: [
2004
- 65,
2005
- 66,
2006
- 67,
2007
- 68
2008
- ],
2009
- inclusive: !1
2010
- },
2011
- node_r: {
2012
- rules: [
2013
- 65,
2014
- 66,
2015
- 67,
2016
- 68
2017
- ],
2018
- inclusive: !1
2019
- },
2020
- node_l: {
2021
- rules: [
2022
- 65,
2023
- 66,
2024
- 67,
2025
- 68
2026
- ],
2027
- inclusive: !1
2028
- },
2029
- node: {
2030
- rules: [
2031
- 65,
2032
- 66,
2033
- 67,
2034
- 68
2035
- ],
2036
- inclusive: !1
2037
- },
2038
- index: {
2039
- rules: [],
2040
- inclusive: !1
2041
- },
2042
- rel_index: {
2043
- rules: [
2044
- 65,
2045
- 66,
2046
- 67,
2047
- 68
2048
- ],
2049
- inclusive: !1
2050
- },
2051
- component_ext_queue: {
2052
- rules: [
2053
- 65,
2054
- 66,
2055
- 67,
2056
- 68
2057
- ],
2058
- inclusive: !1
2059
- },
2060
- component_ext_db: {
2061
- rules: [
2062
- 65,
2063
- 66,
2064
- 67,
2065
- 68
2066
- ],
2067
- inclusive: !1
2068
- },
2069
- component_ext: {
2070
- rules: [
2071
- 65,
2072
- 66,
2073
- 67,
2074
- 68
2075
- ],
2076
- inclusive: !1
2077
- },
2078
- component_queue: {
2079
- rules: [
2080
- 65,
2081
- 66,
2082
- 67,
2083
- 68
2084
- ],
2085
- inclusive: !1
2086
- },
2087
- component_db: {
2088
- rules: [
2089
- 65,
2090
- 66,
2091
- 67,
2092
- 68
2093
- ],
2094
- inclusive: !1
2095
- },
2096
- component: {
2097
- rules: [
2098
- 65,
2099
- 66,
2100
- 67,
2101
- 68
2102
- ],
2103
- inclusive: !1
2104
- },
2105
- container_boundary: {
2106
- rules: [
2107
- 65,
2108
- 66,
2109
- 67,
2110
- 68
2111
- ],
2112
- inclusive: !1
2113
- },
2114
- container_ext_queue: {
2115
- rules: [
2116
- 65,
2117
- 66,
2118
- 67,
2119
- 68
2120
- ],
2121
- inclusive: !1
2122
- },
2123
- container_ext_db: {
2124
- rules: [
2125
- 65,
2126
- 66,
2127
- 67,
2128
- 68
2129
- ],
2130
- inclusive: !1
2131
- },
2132
- container_ext: {
2133
- rules: [
2134
- 65,
2135
- 66,
2136
- 67,
2137
- 68
2138
- ],
2139
- inclusive: !1
2140
- },
2141
- container_queue: {
2142
- rules: [
2143
- 65,
2144
- 66,
2145
- 67,
2146
- 68
2147
- ],
2148
- inclusive: !1
2149
- },
2150
- container_db: {
2151
- rules: [
2152
- 65,
2153
- 66,
2154
- 67,
2155
- 68
2156
- ],
2157
- inclusive: !1
2158
- },
2159
- container: {
2160
- rules: [
2161
- 65,
2162
- 66,
2163
- 67,
2164
- 68
2165
- ],
2166
- inclusive: !1
2167
- },
2168
- birel: {
2169
- rules: [
2170
- 65,
2171
- 66,
2172
- 67,
2173
- 68
2174
- ],
2175
- inclusive: !1
2176
- },
2177
- system_boundary: {
2178
- rules: [
2179
- 65,
2180
- 66,
2181
- 67,
2182
- 68
2183
- ],
2184
- inclusive: !1
2185
- },
2186
- enterprise_boundary: {
2187
- rules: [
2188
- 65,
2189
- 66,
2190
- 67,
2191
- 68
2192
- ],
2193
- inclusive: !1
2194
- },
2195
- boundary: {
2196
- rules: [
2197
- 65,
2198
- 66,
2199
- 67,
2200
- 68
2201
- ],
2202
- inclusive: !1
2203
- },
2204
- system_ext_queue: {
2205
- rules: [
2206
- 65,
2207
- 66,
2208
- 67,
2209
- 68
2210
- ],
2211
- inclusive: !1
2212
- },
2213
- system_ext_db: {
2214
- rules: [
2215
- 65,
2216
- 66,
2217
- 67,
2218
- 68
2219
- ],
2220
- inclusive: !1
2221
- },
2222
- system_ext: {
2223
- rules: [
2224
- 65,
2225
- 66,
2226
- 67,
2227
- 68
2228
- ],
2229
- inclusive: !1
2230
- },
2231
- system_queue: {
2232
- rules: [
2233
- 65,
2234
- 66,
2235
- 67,
2236
- 68
2237
- ],
2238
- inclusive: !1
2239
- },
2240
- system_db: {
2241
- rules: [
2242
- 65,
2243
- 66,
2244
- 67,
2245
- 68
2246
- ],
2247
- inclusive: !1
2248
- },
2249
- system: {
2250
- rules: [
2251
- 65,
2252
- 66,
2253
- 67,
2254
- 68
2255
- ],
2256
- inclusive: !1
2257
- },
2258
- person_ext: {
2259
- rules: [
2260
- 65,
2261
- 66,
2262
- 67,
2263
- 68
2264
- ],
2265
- inclusive: !1
2266
- },
2267
- person: {
2268
- rules: [
2269
- 65,
2270
- 66,
2271
- 67,
2272
- 68
2273
- ],
2274
- inclusive: !1
2275
- },
2276
- INITIAL: {
2277
- rules: [
2278
- 0,
2279
- 1,
2280
- 2,
2281
- 3,
2282
- 4,
2283
- 5,
2284
- 6,
2285
- 8,
2286
- 10,
2287
- 13,
2288
- 14,
2289
- 15,
2290
- 16,
2291
- 17,
2292
- 18,
2293
- 19,
2294
- 20,
2295
- 21,
2296
- 22,
2297
- 23,
2298
- 24,
2299
- 25,
2300
- 26,
2301
- 27,
2302
- 28,
2303
- 29,
2304
- 30,
2305
- 31,
2306
- 32,
2307
- 33,
2308
- 34,
2309
- 35,
2310
- 36,
2311
- 37,
2312
- 38,
2313
- 39,
2314
- 40,
2315
- 41,
2316
- 42,
2317
- 43,
2318
- 44,
2319
- 45,
2320
- 46,
2321
- 47,
2322
- 48,
2323
- 49,
2324
- 50,
2325
- 51,
2326
- 52,
2327
- 53,
2328
- 54,
2329
- 55,
2330
- 56,
2331
- 57,
2332
- 58,
2333
- 59,
2334
- 60,
2335
- 61,
2336
- 62,
2337
- 63,
2338
- 64,
2339
- 81,
2340
- 82,
2341
- 83,
2342
- 84,
2343
- 85
2344
- ],
2345
- inclusive: !0
2346
- }
2347
- }
2348
- };
2349
- })();
2350
- function $t() {
2351
- this.yy = {};
2352
- }
2353
- return u($t, "Parser"), $t.prototype = qt, qt.Parser = $t, new $t();
2354
- })();
2355
- jt.parser = jt;
2356
- var ze = jt, ge = /* @__PURE__ */ u((t) => vt()[t], "getRequiredConfig"), St = /* @__PURE__ */ u((t, e) => {
2357
- for (let [i, o] of Object.entries(e)) if (o !== void 0)
2358
- if (typeof o == "object") {
2359
- let [h, r] = Object.entries(o)[0];
2360
- t[h] = r;
2361
- } else t[i] = o;
2362
- }, "assignAttributes"), me = /* @__PURE__ */ u(() => ({
2363
- alias: "global",
2364
- label: { text: "global" },
2365
- type: { text: "global" },
2366
- tags: null,
2367
- link: null,
2368
- parentBoundary: ""
2369
- }), "createGlobalBoundary"), j = [], ft = [""], L = "global", Y = "", U = [me()], Lt = [], Zt = "", se = !1, Ut = 4, Ft = 2, xe, Xe = /* @__PURE__ */ u(function() {
2370
- return xe;
2371
- }, "getC4Type"), qe = /* @__PURE__ */ u(function(t) {
2372
- xe = _e(t, vt());
2373
- }, "setC4Type"), We = /* @__PURE__ */ u(function(t, e, i, o, h, r, n, l, s) {
2374
- if (t == null || e == null || i == null || o == null) return;
2375
- let p = {}, y = Lt.find((f) => f.from === e && f.to === i);
2376
- if (y ? p = y : Lt.push(p), p.type = t, p.from = e, p.to = i, p.label = { text: o }, h == null) p.techn = { text: "" };
2377
- else if (typeof h == "object") {
2378
- let [f, g] = Object.entries(h)[0];
2379
- p[f] = { text: g };
2380
- } else p.techn = { text: h };
2381
- if (r == null) p.descr = { text: "" };
2382
- else if (typeof r == "object") {
2383
- let [f, g] = Object.entries(r)[0];
2384
- p[f] = { text: g };
2385
- } else p.descr = { text: r };
2386
- St(p, {
2387
- sprite: n,
2388
- tags: l,
2389
- link: s
2390
- }), p.wrap = _t();
2391
- }, "addRel"), Qe = /* @__PURE__ */ u(function(t, e, i, o, h, r, n) {
2392
- if (e === null || i === null) return;
2393
- let l = {}, s = j.find((p) => p.alias === e);
2394
- if (s && e === s.alias ? l = s : (l.alias = e, j.push(l)), i == null ? l.label = { text: "" } : l.label = { text: i }, o == null) l.descr = { text: "" };
2395
- else if (typeof o == "object") {
2396
- let [p, y] = Object.entries(o)[0];
2397
- l[p] = { text: y };
2398
- } else l.descr = { text: o };
2399
- St(l, {
2400
- sprite: h,
2401
- tags: r,
2402
- link: n
2403
- }), l.typeC4Shape = { text: t }, l.parentBoundary = L, l.wrap = _t();
2404
- }, "addPersonOrSystem"), Ve = /* @__PURE__ */ u(function(t, e, i, o, h, r, n, l) {
2405
- if (e === null || i === null) return;
2406
- let s = {}, p = j.find((y) => y.alias === e);
2407
- if (p && e === p.alias ? s = p : (s.alias = e, j.push(s)), i == null ? s.label = { text: "" } : s.label = { text: i }, o == null) s.techn = { text: "" };
2408
- else if (typeof o == "object") {
2409
- let [y, f] = Object.entries(o)[0];
2410
- s[y] = { text: f };
2411
- } else s.techn = { text: o };
2412
- if (h == null) s.descr = { text: "" };
2413
- else if (typeof h == "object") {
2414
- let [y, f] = Object.entries(h)[0];
2415
- s[y] = { text: f };
2416
- } else s.descr = { text: h };
2417
- St(s, {
2418
- sprite: r,
2419
- tags: n,
2420
- link: l
2421
- }), s.wrap = _t(), s.typeC4Shape = { text: t }, s.parentBoundary = L;
2422
- }, "addContainer"), He = /* @__PURE__ */ u(function(t, e, i, o, h, r, n, l) {
2423
- if (e === null || i === null) return;
2424
- let s = {}, p = j.find((y) => y.alias === e);
2425
- if (p && e === p.alias ? s = p : (s.alias = e, j.push(s)), i == null ? s.label = { text: "" } : s.label = { text: i }, o == null) s.techn = { text: "" };
2426
- else if (typeof o == "object") {
2427
- let [y, f] = Object.entries(o)[0];
2428
- s[y] = { text: f };
2429
- } else s.techn = { text: o };
2430
- if (h == null) s.descr = { text: "" };
2431
- else if (typeof h == "object") {
2432
- let [y, f] = Object.entries(h)[0];
2433
- s[y] = { text: f };
2434
- } else s.descr = { text: h };
2435
- St(s, {
2436
- sprite: r,
2437
- tags: n,
2438
- link: l
2439
- }), s.wrap = _t(), s.typeC4Shape = { text: t }, s.parentBoundary = L;
2440
- }, "addComponent"), Ge = /* @__PURE__ */ u(function(t, e, i, o, h) {
2441
- if (t === null || e === null) return;
2442
- let r = {}, n = U.find((l) => l.alias === t);
2443
- if (n && t === n.alias ? r = n : (r.alias = t, U.push(r)), e == null ? r.label = { text: "" } : r.label = { text: e }, i == null) r.type = { text: "system" };
2444
- else if (typeof i == "object") {
2445
- let [l, s] = Object.entries(i)[0];
2446
- r[l] = { text: s };
2447
- } else r.type = { text: i };
2448
- St(r, {
2449
- tags: o,
2450
- link: h
2451
- }), r.parentBoundary = L, r.wrap = _t(), Y = L, L = t, ft.push(Y);
2452
- }, "addPersonOrSystemBoundary"), Ke = /* @__PURE__ */ u(function(t, e, i, o, h) {
2453
- if (t === null || e === null) return;
2454
- let r = {}, n = U.find((l) => l.alias === t);
2455
- if (n && t === n.alias ? r = n : (r.alias = t, U.push(r)), e == null ? r.label = { text: "" } : r.label = { text: e }, i == null) r.type = { text: "container" };
2456
- else if (typeof i == "object") {
2457
- let [l, s] = Object.entries(i)[0];
2458
- r[l] = { text: s };
2459
- } else r.type = { text: i };
2460
- St(r, {
2461
- tags: o,
2462
- link: h
2463
- }), r.parentBoundary = L, r.wrap = _t(), Y = L, L = t, ft.push(Y);
2464
- }, "addContainerBoundary"), Je = /* @__PURE__ */ u(function(t, e, i, o, h, r, n, l) {
2465
- if (e === null || i === null) return;
2466
- let s = {}, p = U.find((y) => y.alias === e);
2467
- if (p && e === p.alias ? s = p : (s.alias = e, U.push(s)), i == null ? s.label = { text: "" } : s.label = { text: i }, o == null) s.type = { text: "node" };
2468
- else if (typeof o == "object") {
2469
- let [y, f] = Object.entries(o)[0];
2470
- s[y] = { text: f };
2471
- } else s.type = { text: o };
2472
- if (h == null) s.descr = { text: "" };
2473
- else if (typeof h == "object") {
2474
- let [y, f] = Object.entries(h)[0];
2475
- s[y] = { text: f };
2476
- } else s.descr = { text: h };
2477
- St(s, {
2478
- tags: n,
2479
- link: l
2480
- }), s.nodeType = t, s.parentBoundary = L, s.wrap = _t(), Y = L, L = e, ft.push(Y);
2481
- }, "addDeploymentNode"), Ze = /* @__PURE__ */ u(function() {
2482
- L = Y, ft.pop(), Y = ft.pop(), ft.push(Y);
2483
- }, "popBoundaryParseStack"), t0 = /* @__PURE__ */ u(function(t, e, i, o, h, r, n, l, s, p, y) {
2484
- let f = j.find((g) => g.alias === e);
2485
- if (!(f === void 0 && (f = U.find((g) => g.alias === e), f === void 0))) {
2486
- if (i != null)
2487
- if (typeof i == "object") {
2488
- let [g, m] = Object.entries(i)[0];
2489
- f[g] = m;
2490
- } else f.bgColor = i;
2491
- if (o != null)
2492
- if (typeof o == "object") {
2493
- let [g, m] = Object.entries(o)[0];
2494
- f[g] = m;
2495
- } else f.fontColor = o;
2496
- if (h != null)
2497
- if (typeof h == "object") {
2498
- let [g, m] = Object.entries(h)[0];
2499
- f[g] = m;
2500
- } else f.borderColor = h;
2501
- if (r != null)
2502
- if (typeof r == "object") {
2503
- let [g, m] = Object.entries(r)[0];
2504
- f[g] = m;
2505
- } else f.shadowing = r;
2506
- if (n != null)
2507
- if (typeof n == "object") {
2508
- let [g, m] = Object.entries(n)[0];
2509
- f[g] = m;
2510
- } else f.shape = n;
2511
- if (l != null)
2512
- if (typeof l == "object") {
2513
- let [g, m] = Object.entries(l)[0];
2514
- f[g] = m;
2515
- } else f.sprite = l;
2516
- if (s != null)
2517
- if (typeof s == "object") {
2518
- let [g, m] = Object.entries(s)[0];
2519
- f[g] = m;
2520
- } else f.techn = s;
2521
- if (p != null)
2522
- if (typeof p == "object") {
2523
- let [g, m] = Object.entries(p)[0];
2524
- f[g] = m;
2525
- } else f.legendText = p;
2526
- if (y != null)
2527
- if (typeof y == "object") {
2528
- let [g, m] = Object.entries(y)[0];
2529
- f[g] = m;
2530
- } else f.legendSprite = y;
2531
- }
2532
- }, "updateElStyle"), e0 = /* @__PURE__ */ u(function(t, e, i, o, h, r, n) {
2533
- let l = Lt.find((s) => s.from === e && s.to === i);
2534
- if (l !== void 0) {
2535
- if (o != null)
2536
- if (typeof o == "object") {
2537
- let [s, p] = Object.entries(o)[0];
2538
- l[s] = p;
2539
- } else l.textColor = o;
2540
- if (h != null)
2541
- if (typeof h == "object") {
2542
- let [s, p] = Object.entries(h)[0];
2543
- l[s] = p;
2544
- } else l.lineColor = h;
2545
- if (r != null)
2546
- if (typeof r == "object") {
2547
- let [s, p] = Object.entries(r)[0];
2548
- l[s] = parseInt(p);
2549
- } else l.offsetX = parseInt(r);
2550
- if (n != null)
2551
- if (typeof n == "object") {
2552
- let [s, p] = Object.entries(n)[0];
2553
- l[s] = parseInt(p);
2554
- } else l.offsetY = parseInt(n);
2555
- }
2556
- }, "updateRelStyle"), n0 = /* @__PURE__ */ u(function(t, e, i) {
2557
- let o = Ut, h = Ft;
2558
- if (typeof e == "object") {
2559
- let r = Object.values(e)[0];
2560
- o = parseInt(r);
2561
- } else o = parseInt(e);
2562
- if (typeof i == "object") {
2563
- let r = Object.values(i)[0];
2564
- h = parseInt(r);
2565
- } else h = parseInt(i);
2566
- o >= 1 && (Ut = o), h >= 1 && (Ft = h);
2567
- }, "updateLayoutConfig"), s0 = /* @__PURE__ */ u(function() {
2568
- return Ut;
2569
- }, "getC4ShapeInRow"), i0 = /* @__PURE__ */ u(function() {
2570
- return Ft;
2571
- }, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ u(function() {
2572
- return L;
2573
- }, "getCurrentBoundaryParse"), r0 = /* @__PURE__ */ u(function() {
2574
- return Y;
2575
- }, "getParentBoundaryParse"), Ee = /* @__PURE__ */ u(function(t) {
2576
- return t == null ? j : j.filter((e) => e.parentBoundary === t);
2577
- }, "getC4ShapeArray"), l0 = /* @__PURE__ */ u(function(t) {
2578
- return j.find((e) => e.alias === t);
2579
- }, "getC4Shape"), o0 = /* @__PURE__ */ u(function(t) {
2580
- return Object.keys(Ee(t));
2581
- }, "getC4ShapeKeys"), Se = /* @__PURE__ */ u(function(t) {
2582
- return t == null ? U : U.filter((e) => e.parentBoundary === t);
2583
- }, "getBoundaries"), c0 = Se, h0 = /* @__PURE__ */ u(function() {
2584
- return Lt;
2585
- }, "getRels"), u0 = /* @__PURE__ */ u(function() {
2586
- return Zt;
2587
- }, "getTitle"), d0 = /* @__PURE__ */ u(function(t) {
2588
- se = t;
2589
- }, "setWrap"), _t = /* @__PURE__ */ u(function() {
2590
- return se;
2591
- }, "autoWrap"), te = {
2592
- addPersonOrSystem: Qe,
2593
- addPersonOrSystemBoundary: Ge,
2594
- addContainer: Ve,
2595
- addContainerBoundary: Ke,
2596
- addComponent: He,
2597
- addDeploymentNode: Je,
2598
- popBoundaryParseStack: Ze,
2599
- addRel: We,
2600
- updateElStyle: t0,
2601
- updateRelStyle: e0,
2602
- updateLayoutConfig: n0,
2603
- autoWrap: _t,
2604
- setWrap: d0,
2605
- getC4ShapeArray: Ee,
2606
- getC4Shape: l0,
2607
- getC4ShapeKeys: o0,
2608
- getBoundaries: Se,
2609
- getBoundarys: c0,
2610
- getCurrentBoundaryParse: a0,
2611
- getParentBoundaryParse: r0,
2612
- getRels: h0,
2613
- getTitle: u0,
2614
- getC4Type: Xe,
2615
- getC4ShapeInRow: s0,
2616
- getC4BoundaryInRow: i0,
2617
- setAccTitle: Me,
2618
- getAccTitle: $e,
2619
- getAccDescription: Ie,
2620
- setAccDescription: Le,
2621
- getConfig: /* @__PURE__ */ u(() => ge("c4"), "getConfig"),
2622
- clear: /* @__PURE__ */ u(function() {
2623
- j = [], U = [me()], Y = "", L = "global", ft = [""], Lt = [], ft = [""], Zt = "", se = !1, Ut = 4, Ft = 2;
2624
- }, "clear"),
2625
- LINETYPE: {
2626
- SOLID: 0,
2627
- DOTTED: 1,
2628
- NOTE: 2,
2629
- SOLID_CROSS: 3,
2630
- DOTTED_CROSS: 4,
2631
- SOLID_OPEN: 5,
2632
- DOTTED_OPEN: 6,
2633
- LOOP_START: 10,
2634
- LOOP_END: 11,
2635
- ALT_START: 12,
2636
- ALT_ELSE: 13,
2637
- ALT_END: 14,
2638
- OPT_START: 15,
2639
- OPT_END: 16,
2640
- ACTIVE_START: 17,
2641
- ACTIVE_END: 18,
2642
- PAR_START: 19,
2643
- PAR_AND: 20,
2644
- PAR_END: 21,
2645
- RECT_START: 22,
2646
- RECT_END: 23,
2647
- SOLID_POINT: 24,
2648
- DOTTED_POINT: 25
2649
- },
2650
- ARROWTYPE: {
2651
- FILLED: 0,
2652
- OPEN: 1
2653
- },
2654
- PLACEMENT: {
2655
- LEFTOF: 0,
2656
- RIGHTOF: 1,
2657
- OVER: 2
2658
- },
2659
- setTitle: /* @__PURE__ */ u(function(t) {
2660
- Zt = _e(t, vt());
2661
- }, "setTitle"),
2662
- setC4Type: qe
2663
- }, Te = /* @__PURE__ */ u(function(t, e) {
2664
- return Fe(t, e);
2665
- }, "drawRect"), p0 = /* @__PURE__ */ u((t, e, i, o) => {
2666
- let h = t.append("g"), r = 0;
2667
- for (let n of e) {
2668
- let l = n.textColor ? n.textColor : "#444444", s = n.lineColor ? n.lineColor : "#444444", p = n.offsetX ? parseInt(String(n.offsetX)) : 0, y = n.offsetY ? parseInt(String(n.offsetY)) : 0;
2669
- if (r === 0) {
2670
- let m = h.append("line");
2671
- m.attr("x1", n.startPoint.x), m.attr("y1", n.startPoint.y), m.attr("x2", n.endPoint.x), m.attr("y2", n.endPoint.y), m.attr("stroke-width", "1"), m.attr("stroke", s), m.style("fill", "none"), n.type !== "rel_b" && m.attr("marker-end", "url(#" + o + "-arrowhead)"), (n.type === "birel" || n.type === "rel_b") && m.attr("marker-start", "url(#" + o + "-arrowend)"), r = -1;
2672
- } else {
2673
- let m = h.append("path");
2674
- m.attr("fill", "none").attr("stroke-width", "1").attr("stroke", s).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", n.startPoint.x).replaceAll("starty", n.startPoint.y).replaceAll("controlx", n.startPoint.x + (n.endPoint.x - n.startPoint.x) / 2 - (n.endPoint.x - n.startPoint.x) / 4).replaceAll("controly", n.startPoint.y + (n.endPoint.y - n.startPoint.y) / 2).replaceAll("stopx", n.endPoint.x).replaceAll("stopy", n.endPoint.y)), n.type !== "rel_b" && m.attr("marker-end", "url(#" + o + "-arrowhead)"), (n.type === "birel" || n.type === "rel_b") && m.attr("marker-start", "url(#" + o + "-arrowend)");
2675
- }
2676
- let f = n.label.width, g = i.messageFont();
2677
- Dt(i)(n.label.text, h, Math.min(n.startPoint.x, n.endPoint.x) + Math.abs(n.endPoint.x - n.startPoint.x) / 2 + p, Math.min(n.startPoint.y, n.endPoint.y) + Math.abs(n.endPoint.y - n.startPoint.y) / 2 + y, f, n.label.height, { fill: l }, g), n.techn && n.techn.text !== "" && (g = i.messageFont(), Dt(i)("[" + n.techn.text + "]", h, Math.min(n.startPoint.x, n.endPoint.x) + Math.abs(n.endPoint.x - n.startPoint.x) / 2 + p, Math.min(n.startPoint.y, n.endPoint.y) + Math.abs(n.endPoint.y - n.startPoint.y) / 2 + i.messageFontSize + 5 + y, Math.max(f, n.techn.width), n.techn.height, {
2678
- fill: l,
2679
- "font-style": "italic"
2680
- }, g));
2681
- }
2682
- }, "drawRels"), y0 = /* @__PURE__ */ u(function(t, e, i) {
2683
- let o = t.append("g"), h = e.bgColor ? e.bgColor : "none", r = e.borderColor ? e.borderColor : "#444444", n = e.fontColor ? e.fontColor : "black", l = {
2684
- "stroke-width": 1,
2685
- "stroke-dasharray": "7.0,7.0"
2686
- };
2687
- e.nodeType && (l = { "stroke-width": 1 }), Te(o, {
2688
- x: e.x,
2689
- y: e.y,
2690
- fill: h,
2691
- stroke: r,
2692
- width: e.width,
2693
- height: e.height,
2694
- rx: 2.5,
2695
- ry: 2.5,
2696
- attrs: l
2697
- });
2698
- let s = i.boundaryFont();
2699
- s.fontWeight = "bold", s.fontSize += 2, s.fontColor = n, Dt(i)(e.label.text, o, e.x, e.y + e.label.Y, e.width, e.height, { fill: "#444444" }, s), e.type && e.type.text !== "" && (s = i.boundaryFont(), s.fontColor = n, Dt(i)(e.type.text, o, e.x, e.y + e.type.Y, e.width, e.height, { fill: "#444444" }, s)), e.descr && e.descr.text !== "" && (s = i.boundaryFont(), s.fontSize -= 2, s.fontColor = n, Dt(i)(e.descr.text, o, e.x, e.y + e.descr.Y, e.width, e.height, { fill: "#444444" }, s));
2700
- }, "drawBoundary"), f0 = /* @__PURE__ */ u(function(t, e) {
2701
- t.append("defs").append("symbol").attr("id", e + "-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");
2702
- }, "insertDatabaseIcon"), b0 = /* @__PURE__ */ u(function(t, e) {
2703
- t.append("defs").append("symbol").attr("id", e + "-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");
2704
- }, "insertComputerIcon"), _0 = /* @__PURE__ */ u(function(t, e) {
2705
- t.append("defs").append("symbol").attr("id", e + "-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");
2706
- }, "insertClockIcon"), g0 = /* @__PURE__ */ u(function(t, e) {
2707
- t.append("defs").append("marker").attr("id", e + "-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");
2708
- }, "insertArrowHead"), m0 = /* @__PURE__ */ u(function(t, e) {
2709
- t.append("defs").append("marker").attr("id", e + "-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");
2710
- }, "insertArrowEnd"), x0 = /* @__PURE__ */ u(function(t, e) {
2711
- t.append("defs").append("marker").attr("id", e + "-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");
2712
- }, "insertArrowFilledHead"), E0 = /* @__PURE__ */ u(function(t, e) {
2713
- let i = t.append("defs").append("marker").attr("id", e + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2714
- i.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"), i.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");
2715
- }, "insertArrowCrossHead"), Dt = /* @__PURE__ */ (function() {
2716
- function t(h, r, n, l, s, p, y) {
2717
- o(r.append("text").attr("x", n + s / 2).attr("y", l + p / 2 + 5).style("text-anchor", "middle").text(h), y);
2718
- }
2719
- u(t, "byText");
2720
- function e(h, r, n, l, s, p, y, f) {
2721
- let { fontSize: g, fontFamily: m, fontWeight: A } = f, D = h.split(Jt.lineBreakRegex);
2722
- for (let v = 0; v < D.length; v++) {
2723
- let P = v * g - g * (D.length - 1) / 2, B = r.append("text").attr("x", n + s / 2).attr("y", l).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", g).style("font-weight", A).style("font-family", m);
2724
- B.append("tspan").attr("dy", P).text(D[v]).attr("alignment-baseline", "mathematical"), o(B, y);
2725
- }
2726
- }
2727
- u(e, "byTspan");
2728
- function i(h, r, n, l, s, p, y, f) {
2729
- let g = r.append("switch"), m = g.append("foreignObject").attr("x", n).attr("y", l).attr("width", s).attr("height", p).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2730
- m.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(h), e(h, g, n, l, s, p, y, f), o(m, y);
2731
- }
2732
- u(i, "byFo");
2733
- function o(h, r) {
2734
- for (let n in r) r.hasOwnProperty(n) && h.attr(n, r[n]);
2735
- }
2736
- return u(o, "_setTextAttrs"), function(h) {
2737
- return h.textPlacement === "fo" ? i : h.textPlacement === "old" ? t : e;
2738
- };
2739
- })(), z = {
2740
- drawRect: Te,
2741
- drawBoundary: y0,
2742
- drawRels: p0,
2743
- insertArrowHead: g0,
2744
- insertArrowEnd: m0,
2745
- insertArrowFilledHead: x0,
2746
- insertArrowCrossHead: E0,
2747
- insertDatabaseIcon: f0,
2748
- insertComputerIcon: b0,
2749
- insertClockIcon: _0
2750
- }, S0 = /* @__PURE__ */ u((t, e) => {
2751
- if (e === "sandbox") {
2752
- let i = Gt("#i" + t).node()?.contentDocument;
2753
- if (!i) throw Error(`Sandbox iframe #i${t} is missing its content document`);
2754
- return {
2755
- root: Gt(i.body),
2756
- doc: i
2757
- };
2758
- }
2759
- return {
2760
- root: Gt("body"),
2761
- doc: document
2762
- };
2763
- }, "getDiagramRoot"), T0 = /* @__PURE__ */ new Set([
2764
- "system_queue",
2765
- "external_system_queue",
2766
- "container_queue",
2767
- "external_container_queue",
2768
- "component_queue",
2769
- "external_component_queue"
2770
- ]), k0 = /* @__PURE__ */ new Set([
2771
- "system_db",
2772
- "external_system_db",
2773
- "container_db",
2774
- "external_container_db",
2775
- "component_db",
2776
- "external_component_db"
2777
- ]), C0 = {
2778
- person: "person",
2779
- box: "rounded",
2780
- rounded: "rounded",
2781
- cylinder: "cylinder",
2782
- database: "cylinder",
2783
- db: "cylinder",
2784
- queue: "h-cyl",
2785
- pipe: "h-cyl",
2786
- component: "fr-rect"
2787
- }, Kt = /* @__PURE__ */ u((t) => t ? C0[t.toLowerCase()] : void 0, "keywordShape"), R0 = /* @__PURE__ */ u((t) => {
2788
- let e = Kt(t.shape) ?? Kt(t.sprite);
2789
- if (e) return e;
2790
- if (t.tags) for (let o of t.tags.split(",")) {
2791
- let h = Kt(o.trim());
2792
- if (h) return h;
2793
- }
2794
- let i = t.typeC4Shape.text;
2795
- return i === "person" || i === "external_person" ? "person" : k0.has(i) ? "cylinder" : T0.has(i) ? "h-cyl" : "rounded";
2796
- }, "resolveNodeShape"), v0 = {
2797
- person: "Person",
2798
- system: "Software System",
2799
- container: "Container",
2800
- component: "Component"
2801
- }, O0 = /* @__PURE__ */ u((t) => {
2802
- let e = t.replace(/^external_/, "").replace(/_(db|queue)$/, "");
2803
- return v0[e] ?? e.replace(/_/g, " ");
2804
- }, "stereotypeLabel"), w0 = /* @__PURE__ */ u((t) => t.startsWith("external_"), "isExternal"), P0 = /* @__PURE__ */ u((t) => {
2805
- let e = O0(t.typeC4Shape.text);
2806
- return t.techn?.text ? `[${e}: ${t.techn.text}]` : `[${e}]`;
2807
- }, "stereotypeText"), ke = [
2808
- "person",
2809
- "system",
2810
- "system_db",
2811
- "system_queue",
2812
- "container",
2813
- "container_db",
2814
- "container_queue",
2815
- "component",
2816
- "component_db",
2817
- "component_queue"
2818
- ].flatMap((t) => [t, `external_${t}`]), D0 = new Set(ke), pe = /* @__PURE__ */ u((t) => D0.has(t), "isC4ElementType"), N0 = /* @__PURE__ */ u((t, e) => {
2819
- let i = t.typeC4Shape.text, o = t.bgColor ?? (pe(i) && e[`${i}_bg_color`]), h = t.borderColor ?? (pe(i) && e[`${i}_border_color`]), r = [];
2820
- return o && r.push(`fill:${o}`), h && r.push(`stroke:${h}`), r.push(`color:${t.fontColor ?? "#FFFFFF"}`), r;
2821
- }, "elementCssStyles"), ye = /* @__PURE__ */ u((t, e, i, o, h) => {
2822
- let r = t.typeC4Shape.text, n = ["c4-shape", `c4-${r}`];
2823
- w0(r) && n.push("c4-external");
2824
- let l = R0(t), s = N0(t, e);
2825
- return (l === "rounded" || l === "fr-rect") && s.push("rx:12px", "ry:12px"), {
2826
- id: t.alias,
2827
- label: t.label.text,
2828
- stereotype: P0(t),
2829
- description: t.descr?.text ? [t.descr.text] : void 0,
2830
- labelType: "string",
2831
- isGroup: !1,
2832
- shape: l,
2833
- cssClasses: n.join(" "),
2834
- cssStyles: s,
2835
- padding: i,
2836
- look: o,
2837
- useHtmlLabels: !1,
2838
- width: h
2839
- };
2840
- }, "buildC4Node"), Nt = 0, At = 0, Ce = 4, ee = 2;
2841
- jt.yy = te;
2842
- var x = {}, Ct, Re = (Ct = class {
2843
- constructor(e) {
2844
- 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, ne(e.db.getConfig());
2845
- }
2846
- setData(e, i, o, h) {
2847
- this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = i, this.nextData.starty = this.data.starty = o, this.nextData.stopy = this.data.stopy = h;
2848
- }
2849
- updateVal(e, i, o, h) {
2850
- e[i] = e[i] === void 0 ? o : h(o, e[i]);
2851
- }
2852
- insert(e) {
2853
- this.nextData.cnt = this.nextData.cnt + 1;
2854
- let i = this.nextData.stopx, o = this.data.widthLimit, h = this.nextData.startx === this.nextData.stopx ? i + e.margin : i + e.margin * 2, r = h + e.width, n = this.nextData.starty + e.margin * 2, l = n + e.height;
2855
- (h >= o || r >= o || this.nextData.cnt > Ce) && (h = this.nextData.startx + e.margin + x.nextLinePaddingX, n = this.nextData.stopy + e.margin * 2, this.nextData.stopx = r = h + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = l = n + e.height, this.nextData.cnt = 1), e.x = h, e.y = n, this.updateVal(this.data, "startx", h, Math.min), this.updateVal(this.data, "starty", n, Math.min), this.updateVal(this.data, "stopx", r, Math.max), this.updateVal(this.data, "stopy", l, Math.max), this.updateVal(this.nextData, "startx", h, Math.min), this.updateVal(this.nextData, "starty", n, Math.min), this.updateVal(this.nextData, "stopx", r, Math.max), this.updateVal(this.nextData, "stopy", l, Math.max);
2856
- }
2857
- init(e) {
2858
- this.name = "", this.data = {
2859
- startx: void 0,
2860
- stopx: void 0,
2861
- starty: void 0,
2862
- stopy: void 0,
2863
- widthLimit: void 0
2864
- }, this.nextData = {
2865
- startx: void 0,
2866
- stopx: void 0,
2867
- starty: void 0,
2868
- stopy: void 0,
2869
- cnt: 0
2870
- }, ne(e.db.getConfig());
2871
- }
2872
- bumpLastMargin(e) {
2873
- this.data.stopx += e, this.data.stopy += e;
2874
- }
2875
- }, u(Ct, "Bounds"), Ct), ne = /* @__PURE__ */ u(function(t) {
2876
- Ye(x, t), t?.fontFamily && (x.personFontFamily = x.systemFontFamily = x.messageFontFamily = t.fontFamily), t?.fontSize && (x.personFontSize = x.systemFontSize = x.messageFontSize = t.fontSize), t?.fontWeight && (x.personFontWeight = x.systemFontWeight = x.messageFontWeight = t.fontWeight);
2877
- }, "setConf"), Yt = /* @__PURE__ */ u((t) => ({
2878
- fontFamily: t.boundaryFontFamily,
2879
- fontSize: t.boundaryFontSize,
2880
- fontWeight: t.boundaryFontWeight
2881
- }), "boundaryFont"), A0 = /* @__PURE__ */ u((t) => ({
2882
- fontFamily: t.messageFontFamily,
2883
- fontSize: t.messageFontSize,
2884
- fontWeight: t.messageFontWeight
2885
- }), "messageFont");
2886
- function bt(t, e, i, o, h) {
2887
- let r = e[t];
2888
- if (!r.width)
2889
- if (i) r.text = Ue(r.text, h, o), r.textLines = r.text.split(Jt.lineBreakRegex).length, r.width = h, r.height = de(r.text, o);
2890
- else {
2891
- let n = r.text.split(Jt.lineBreakRegex);
2892
- r.textLines = n.length;
2893
- let l = 0;
2894
- r.height = 0, r.width = 0;
2895
- for (let s of n) r.width = Math.max(Pt(s, o), r.width), l = de(s, o), r.height += l;
2896
- }
2897
- return r;
2898
- }
2899
- u(bt, "calcC4ShapeTextWH");
2900
- var ve = /* @__PURE__ */ u(function(t, e, i) {
2901
- let o = i.data.startx, h = i.data.starty;
2902
- e.x = o, e.y = h, e.width = i.data.stopx - o, e.height = i.data.stopy - h, e.label.y = x.c4ShapeMargin - 35;
2903
- let r = e.wrap && x.wrap, n = Yt(x);
2904
- n.fontSize += 2, n.fontWeight = "bold", bt("label", e, r, n, Pt(e.label.text, n)), z.drawBoundary(t, e, x);
2905
- }, "drawBoundary"), Oe = /* @__PURE__ */ u(async function(t, e, i, o) {
2906
- let h = vt(), r = h.look ?? "classic", n = { config: h }, l = e.attr("id") ?? "", s = o.map((y) => i[Number(y)]), p = /* @__PURE__ */ u((y) => {
2907
- let f = y.shape ? je[y.shape] : void 0;
2908
- if (!f) throw Error(`C4: no shape handler for "${y.shape}"`);
2909
- return f;
2910
- }, "shapeHandlerFor");
2911
- await Promise.all(s.map(async (y) => {
2912
- let f = ye(y, x, x.c4ShapePadding, r, x.width);
2913
- f.domId = `${l}-${f.id}`;
2914
- let g = await p(f)(e, f, n);
2915
- y.width = f.width ?? x.width, y.height = f.height ?? x.height, y.margin = x.c4ShapeMargin, g.remove();
2916
- }));
2917
- for (let y of s) t.insert(y);
2918
- await Promise.all(s.map(async (y) => {
2919
- let f = ye(y, x, x.c4ShapePadding, r, x.width);
2920
- f.domId = `${l}-${f.id}`, f.x = y.x + y.width / 2, f.y = y.y + y.height / 2;
2921
- let g = e.append("g").attr("transform", `translate(${y.x + y.width / 2}, ${y.y + y.height / 2})`);
2922
- await p(f)(g, f, n), y.intersect = f.intersect;
2923
- })), t.bumpLastMargin(x.c4ShapeMargin);
2924
- }, "drawC4ShapeArray"), Rt, L0 = (Rt = class {
2925
- constructor(e, i) {
2926
- this.x = e, this.y = i;
2927
- }
2928
- }, u(Rt, "Point"), Rt), fe = /* @__PURE__ */ u(function(t, e) {
2929
- if (!t.intersect) throw Error(`C4 shape "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
2930
- let { x: i, y: o } = t.intersect(e);
2931
- return new L0(i, o);
2932
- }, "getIntersectPoint"), I0 = /* @__PURE__ */ u(function(t, e) {
2933
- let i = {
2934
- x: 0,
2935
- y: 0
2936
- };
2937
- i.x = e.x + e.width / 2, i.y = e.y + e.height / 2;
2938
- let o = fe(t, i);
2939
- return i.x = t.x + t.width / 2, i.y = t.y + t.height / 2, {
2940
- startPoint: o,
2941
- endPoint: fe(e, i)
2942
- };
2943
- }, "getIntersectPoints"), $0 = /* @__PURE__ */ u(function(t, e, i, o, h) {
2944
- let r = o.db.getC4Type(), n = 0;
2945
- for (let l of e) {
2946
- n += 1;
2947
- let s = l.wrap && x.wrap, p = A0(x);
2948
- r === "C4Dynamic" && (l.label.text = n + ": " + l.label.text);
2949
- let y = Pt(l.label.text, p);
2950
- bt("label", l, s, p, y), l.techn && l.techn.text !== "" && (y = Pt(l.techn.text, p), bt("techn", l, s, p, y)), l.descr && l.descr.text !== "" && (y = Pt(l.descr.text, p), bt("descr", l, s, p, y));
2951
- let f = i(l.from), g = i(l.to);
2952
- if (!f || !g) throw Error(`C4 rel "${l.from}" -> "${l.to}" references an unknown shape`);
2953
- let m = I0(f, g);
2954
- if (!m.startPoint || !m.endPoint) throw Error(`Could not calculate intersection points for rel "${l.from}" -> "${l.to}"`);
2955
- l.startPoint = m.startPoint, l.endPoint = m.endPoint;
2956
- }
2957
- z.drawRels(t, e, x, h);
2958
- }, "drawRels");
2959
- async function ie(t, e, i, o, h) {
2960
- let r = h.db, n = new Re(h);
2961
- n.data.widthLimit = i.data.widthLimit / Math.min(ee, o.length);
2962
- for (let [l, s] of o.entries()) {
2963
- let p = 0;
2964
- s.image = {
2965
- width: 0,
2966
- height: 0,
2967
- Y: 0
2968
- }, s.sprite && (s.image.width = 48, s.image.height = 48, s.image.Y = p, p = s.image.Y + s.image.height);
2969
- let y = s.wrap && x.wrap, f = Yt(x);
2970
- f.fontSize += 2, f.fontWeight = "bold";
2971
- let g = bt("label", s, y, f, n.data.widthLimit);
2972
- if (g.Y = p + 8, p = g.Y + g.height, s.type && s.type.text !== "") {
2973
- s.type.text = "[" + s.type.text + "]";
2974
- let v = bt("type", s, y, Yt(x), n.data.widthLimit);
2975
- v.Y = p + 5, p = v.Y + v.height;
2976
- }
2977
- if (s.descr && s.descr.text !== "") {
2978
- let v = Yt(x);
2979
- v.fontSize -= 2;
2980
- let P = bt("descr", s, y, v, n.data.widthLimit);
2981
- P.Y = p + 20, p = P.Y + P.height;
2982
- }
2983
- if (l == 0 || l % ee === 0) {
2984
- let v = i.data.startx + x.diagramMarginX, P = i.data.stopy + x.diagramMarginY + p;
2985
- n.setData(v, v, P, P);
2986
- } else {
2987
- let v = n.data.stopx === n.data.startx ? n.data.startx : n.data.stopx + x.diagramMarginX, P = n.data.starty;
2988
- n.setData(v, v, P, P);
2989
- }
2990
- n.name = s.alias;
2991
- let m = r.getC4ShapeArray(s.alias), A = r.getC4ShapeKeys(s.alias);
2992
- A.length > 0 && await Oe(n, t, m, A), e = s.alias;
2993
- let D = r.getBoundaries(e);
2994
- D.length > 0 && await ie(t, e, n, D, h), s.alias !== "global" && ve(t, s, n), i.data.stopy = Math.max(n.data.stopy + x.c4ShapeMargin, i.data.stopy), i.data.stopx = Math.max(n.data.stopx + x.c4ShapeMargin, i.data.stopx), Nt = Math.max(Nt, i.data.stopx), At = Math.max(At, i.data.stopy);
2995
- }
2996
- }
2997
- u(ie, "drawInsideBoundary");
2998
- var be = {
2999
- drawPersonOrSystemArray: Oe,
3000
- drawBoundary: ve,
3001
- setConf: ne,
3002
- draw: /* @__PURE__ */ u(async function(t, e, i, o) {
3003
- x = ge("c4");
3004
- let h = vt().securityLevel, { root: r } = S0(e, h), n = o.db;
3005
- n.setWrap(x.wrap), Ce = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), ue.debug(`C:${JSON.stringify(x, null, 2)}`);
3006
- let l = r.select(`[id="${e}"]`);
3007
- z.insertComputerIcon(l, e), z.insertDatabaseIcon(l, e), z.insertClockIcon(l, e);
3008
- let s = new Re(o);
3009
- s.setData(x.diagramMarginX, x.diagramMarginX, x.diagramMarginY, x.diagramMarginY), s.data.widthLimit = screen.availWidth, Nt = x.diagramMarginX, At = x.diagramMarginY;
3010
- let p = n.getTitle();
3011
- await ie(l, "", s, n.getBoundaries(""), o), z.insertArrowHead(l, e), z.insertArrowEnd(l, e), z.insertArrowCrossHead(l, e), z.insertArrowFilledHead(l, e), $0(l, n.getRels(), n.getC4Shape, o, e), s.data.stopx = Nt, s.data.stopy = At;
3012
- let y = s.data, f = y.startx, g = y.starty, m = At - g + 2 * x.diagramMarginY, A = Nt - f, D = A + 2 * x.diagramMarginX;
3013
- p && l.append("text").text(p).attr("x", A / 2 - 4 * x.diagramMarginX).attr("y", g + x.diagramMarginY), Be(l, m, D, x.useMaxWidth);
3014
- let v = p ? 60 : 0;
3015
- l.attr("viewBox", f - x.diagramMarginX + " -" + (x.diagramMarginY + v) + " " + D + " " + (m + v)), ue.debug("models:", y);
3016
- }, "draw")
3017
- }, M0 = /* @__PURE__ */ u(() => {
3018
- let t = vt().c4 ?? {}, e = new CSSStyleSheet();
3019
- for (let i of ke) {
3020
- let o = e.cssRules[e.insertRule(`.c4-shape.c4-${i} .label {}`, e.cssRules.length)], h = t[`${i}FontFamily`], r = t[`${i}FontSize`], n = t[`${i}FontWeight`];
3021
- h && o.style.setProperty("font-family", h), r && o.style.setProperty("font-size", typeof r == "number" ? `${r}px` : r), n && o.style.setProperty("font-weight", String(n));
3022
- }
3023
- return [...e.cssRules].filter((i) => i.style.length > 0).map((i) => ` ${i.cssText}`).join(`
3024
- `);
3025
- }, "elementFontStyles"), j0 = {
3026
- parser: ze,
3027
- db: te,
3028
- renderer: be,
3029
- styles: /* @__PURE__ */ u((t) => `.person {
3030
- stroke: ${t.personBorder};
3031
- fill: ${t.personBkg};
3032
- }
3033
- ${M0()}
3034
-
3035
- /* The element font colour is set inline per element (default white); the
3036
- label text takes it via currentColor. */
3037
- .c4-shape .label,
3038
- .c4-shape .label text {
3039
- color: inherit;
3040
- fill: currentColor;
3041
- }
3042
- /* Structurizr typography: bold name, smaller stereotype/type and description lines. */
3043
- .c4-shape .label .c4-name {
3044
- font-weight: bold;
3045
- }
3046
- .c4-shape .label .c4-type {
3047
- font-size: 0.75em;
3048
- }
3049
- .c4-shape .label .c4-descr {
3050
- font-size: 0.82em;
3051
- }
3052
- .c4-shape .basic,
3053
- .c4-shape rect,
3054
- .c4-shape path,
3055
- .c4-shape circle,
3056
- .c4-shape ellipse,
3057
- .c4-shape line {
3058
- stroke-width: 2px;
3059
- }
3060
- `, "getStyles"),
3061
- init: /* @__PURE__ */ u(({ c4: t, wrap: e }) => {
3062
- be.setConf(t), te.setWrap(e);
3063
- }, "init")
3064
- };
3065
- export {
3066
- j0 as diagram
3067
- };