@webskill/sdk 0.21.0 → 0.23.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.
- package/dist/abnfDiagram-O67JEVCF-DtYFjfqO.js +109 -0
- package/dist/agent.d.ts +3 -3
- package/dist/agent.js +1174 -169
- package/dist/{approval-DwN2o2QG.js → approval-7CuZS3Z4.js} +104 -18
- package/dist/arc-8U_6NQWm.js +130 -0
- package/dist/architecture-7GRP2DOG-RTw1wpAq.js +4 -0
- package/dist/architectureDiagram-NJMV4G6O-XmmXrJAK.js +7473 -0
- package/dist/array-DQfpQNY8.js +8 -0
- package/dist/blockDiagram-BEXU5L5S-D4yjnCD1.js +2582 -0
- package/dist/browser.d.ts +455 -49
- package/dist/browser.js +2134 -138
- package/dist/c4Diagram-YGBWAQC7-BLmA_JSd.js +3668 -0
- package/dist/channel-CZxxLrG7.js +9 -0
- package/dist/chunk-2Q5K7J3B-Ck03gkFR.js +21 -0
- package/dist/chunk-3FUC2YCW-tr6jmbQf.js +530 -0
- package/dist/chunk-5DYCD2WN-Bt97YGTd.js +58 -0
- package/dist/chunk-5VM5RSS4-BBxa48HL.js +21 -0
- package/dist/chunk-6AEJRKK7-JXK89I-O.js +14 -0
- package/dist/chunk-742MDFTN-CPmgCGwC.js +466 -0
- package/dist/chunk-7INBJB4K-C9jq9o66.js +6552 -0
- package/dist/chunk-7M6MHVWA-BrKCWcR1.js +4894 -0
- package/dist/chunk-7PRAP22T-BHED6GVs.js +95 -0
- package/dist/chunk-DUW6YSOI-DoZj78PO.js +19 -0
- package/dist/chunk-FOHPRMQF-Dkbp819z.js +27189 -0
- package/dist/chunk-GNY47TPC-Bpvq1T49.js +87 -0
- package/dist/chunk-GTNCS2PH-CLmh4I2c.js +686 -0
- package/dist/chunk-GWA4HPMP-B6vN3fkL.js +95 -0
- package/dist/chunk-J5ZVWO5B-Bi_Pcobw.js +26 -0
- package/dist/chunk-JWPE2WC7-D1rC79GS.js +12 -0
- package/dist/chunk-LNGE3PJU-D5OIoe3Z.js +2582 -0
- package/dist/chunk-MBY4JIJT-C34L7a4f.js +2276 -0
- package/dist/chunk-NETBCI7D-Cg84k8N8.js +321 -0
- package/dist/chunk-O7XYJQB3-B6K0KOSL.js +8846 -0
- package/dist/chunk-UA2S7LBM-DxHM29_K.js +612 -0
- package/dist/chunk-WEXAMYUT-Ba6jFWhB.js +33 -0
- package/dist/chunk-XXDRQBXY-DPbSy4kg.js +12 -0
- package/dist/chunk-Y2CYZVJY-U3QOMqrW.js +15 -0
- package/dist/chunk-Z7XXMR3K-oLg1h8F3.js +1038 -0
- package/dist/chunk-ZIGJFQKS-DqEFBuHR.js +2215 -0
- package/dist/classDiagram-v2-NBCMYWYE-BqnOWIUt.js +3845 -0
- package/dist/cose-bilkent-JH36ORCC-C0dTAHVK.js +4270 -0
- package/dist/cynefin-OW5HDTMX-B2QvgEQj.js +4 -0
- package/dist/cynefinDiagram-VND7K2PF-yAWc6Z3W.js +479 -0
- package/dist/cytoscape.esm-C64mRh9B.js +28325 -0
- package/dist/dagre-6A5THRUB-D0w2W27v.js +4816 -0
- package/dist/defaultLocale-B_EoOkSF.js +249 -0
- package/dist/diagram-22UHCM2B-DvgzhUzP.js +6115 -0
- package/dist/diagram-3UASUU5V-DWgUB-ef.js +795 -0
- package/dist/diagram-ATOU4E4O-P1olqwIs.js +553 -0
- package/dist/diagram-CDSNMT55-BUlZuLUe.js +402 -0
- package/dist/diagram-MLGK6HIB-6w5qmkGt.js +186 -0
- package/dist/diagram-MPIPVDR6-DEFiSo8o.js +289 -0
- package/dist/dist-UajCDt3n.js +92 -0
- package/dist/ebnfDiagram-ZINNZB2B-CI8liCfR.js +123 -0
- package/dist/elk-276RUBZZ-3SvW6OAK.js +90034 -0
- package/dist/erDiagram-OPXOYQCR-CPTbKhwP.js +2301 -0
- package/dist/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
- package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
- package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
- package/dist/{toolSource-C9oNuKmr.js → geometry-CRhuySKV.js} +169 -12
- package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
- package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
- package/dist/governance.d.ts +22 -4
- package/dist/governance.js +100 -10
- package/dist/graphlib-tk9gQYuN.js +4194 -0
- package/dist/{index-DHopiH_m.d.ts → index-7No55dRb.d.ts} +161 -11
- package/dist/{index-B8Tgmpwh.d.ts → index-ShvCB5I9.d.ts} +2 -2
- package/dist/{index-CYLt5u4L.d.ts → index-V76_OFj2.d.ts} +789 -21
- package/dist/index.d.ts +4 -4
- package/dist/index.js +11 -9
- package/dist/info-A6RAGUB7-CxRAt9S9.js +4 -0
- package/dist/infoDiagram-VRGFBTTK-pRspGfjZ.js +25 -0
- package/dist/init-CMOIWdg-.js +16 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DKerAPAg.js +975 -0
- package/dist/journeyDiagram-ZHPQQLJL-C4MK-YO5.js +1227 -0
- package/dist/kanban-definition-PNTS6WVX-BqsZpMXx.js +1244 -0
- package/dist/katex-BcRRvyh_.js +26465 -0
- package/dist/{kind-DaKqLX2F.js → kind-Dc8x0HWz.js} +54 -7
- package/dist/line-LgV8iVMV.js +48 -0
- package/dist/linear-BWKR0Tqd.js +393 -0
- package/dist/linkedDocument-CZZOl9cO.js +456 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/{memoryArtifactStore-D6dLeY55.js → memoryArtifactStore-Bs7glPqm.js} +14 -0
- package/dist/mermaid-parser.core-pYR5siSx.js +754 -0
- package/dist/mermaid.core-DMtwGCHy.js +1756 -0
- package/dist/mindmap-definition-NLK3R4M7-CXbD-myG.js +1312 -0
- package/dist/node.d.ts +3 -3
- package/dist/node.js +12 -5
- package/dist/{openUiLibrary-b0i7F_oZ.js → openUiLibrary-B7j3rLrm.js} +1 -1
- package/dist/{openUiSpecLang-CLXJEeRU.js → openUiSpecLang-BSYYnjay.js} +1 -1
- package/dist/ordinal-CxA6GHQS.js +84 -0
- package/dist/packet-AYTQ26CC-BOm08cxl.js +4 -0
- package/dist/path-C27Z2Bjv.js +106 -0
- package/dist/{pathSecurity-B1owvJAF.js → pathSecurity-CirkQwWP.js} +12 -1
- package/dist/pegDiagram-GJSIUBJH-BLGJOewQ.js +115 -0
- package/dist/pie-WAS4IAKB-Dvg7glpk.js +4 -0
- package/dist/pieDiagram-5QR66LMP-laoaV_PB.js +298 -0
- package/dist/quadrantDiagram-O4NWA36T-Db_wFBkT.js +2236 -0
- package/dist/radar-RG4KPBEZ-BZDaTu06.js +4 -0
- package/dist/railroad-74A4TZTK-C-UhjkOy.js +4 -0
- package/dist/railroad-abnf-HS5TGJTU-dUKVA4OS.js +4 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzQumk18.js +4 -0
- package/dist/railroad-peg-WCYAUIDC-B3vvTWed.js +4 -0
- package/dist/railroadDiagram-XR7U4H2S-BY0sTM4X.js +89 -0
- package/dist/requirementDiagram-PLB6GJNP-3rkQfEhs.js +2474 -0
- package/dist/rough.cjs-AmDd_NQk.js +1395 -0
- package/dist/sankeyDiagram-IPEJSGJF-CGAJhyG2.js +3578 -0
- package/dist/sequenceDiagram-PO4LG4MO-9FJjFX06.js +5522 -0
- package/dist/sizeCapture-INFHLROL-D8PWxdOn.js +56 -0
- package/dist/{skill-CAJMsLod.js → skill-WSUDp6A1.js} +1 -1
- package/dist/{skillVersionStore-B24Jjjry-BkOk9wI_.d.ts → skillVersionStore-S4_HJ_Fl-Cvy9LqVu.d.ts} +35 -4
- package/dist/src-NkhI3UMl.js +2653 -0
- package/dist/stateDiagram-v2-GCMORJYK-B0O3wc1-.js +2715 -0
- package/dist/swimlanes-2SLR337P-D4EOnrpu.js +6637 -0
- package/dist/swimlanesDiagram-TC7HE7FX-BUx29EJ9.js +30 -0
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +1 -1
- package/dist/timeline-definition-EJHVYXUP-CrgiiB4C.js +1513 -0
- package/dist/treeView-Q6P3EWNA-C1by-Gzc.js +4 -0
- package/dist/treemap-WGGIJYW6-mC2NZ6ad.js +4 -0
- package/dist/{types-BvTV_05--BW8zDuEk.d.ts → types-CpDRZ0rA-BiZBXGm4.d.ts} +66 -8
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +3746 -96
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/usecaseDiagram-POWQR4AR-BUt_TQOY.js +14397 -0
- package/dist/vennDiagram-UO4OBE2U-CwXr0wjA.js +2808 -0
- package/dist/wardley-WFR3VGLG-CVSYjq_S.js +4 -0
- package/dist/wardleyDiagram-VNRHLVJA-Cpfd47dQ.js +874 -0
- package/dist/{webSkillApi-Cib6G-94.js → webSkillApi-D5VMUnrv.js} +2 -2
- package/dist/{webskillLitCatalog-W06npwej.js → webskillLitCatalog-D5BCiMCU.js} +1 -1
- package/dist/xychartDiagram-PMCCYNJV-e1TeVoc6.js +2704 -0
- package/package.json +1 -1
- package/dist/linkedDocument-C0gj1sMq.js +0 -245
|
@@ -0,0 +1,3668 @@
|
|
|
1
|
+
import { n as __name } from "./chunk-Y2CYZVJY-U3QOMqrW.js";
|
|
2
|
+
import { m as log, p as select_default } from "./src-NkhI3UMl.js";
|
|
3
|
+
import { H as setAccDescription, U as setAccTitle, c as configureSvgSize, r as assignWithDepth_default, s as common_default, v as getAccDescription, x as getConfig2, y as getAccTitle, z as sanitizeText } from "./chunk-O7XYJQB3-B6K0KOSL.js";
|
|
4
|
+
import { _ as wrapLabel, n as calculateTextHeight, r as calculateTextWidth } from "./chunk-ZIGJFQKS-DqEFBuHR.js";
|
|
5
|
+
import "./chunk-742MDFTN-CPmgCGwC.js";
|
|
6
|
+
import "./chunk-MBY4JIJT-C34L7a4f.js";
|
|
7
|
+
import "./chunk-7PRAP22T-BHED6GVs.js";
|
|
8
|
+
import { r as intersect_default, s as shapes } from "./chunk-7INBJB4K-C9jq9o66.js";
|
|
9
|
+
import { a as drawRect } from "./chunk-GWA4HPMP-B6vN3fkL.js";
|
|
10
|
+
|
|
11
|
+
//#region ../../node_modules/.pnpm/mermaid@12.0.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YGBWAQC7.mjs
|
|
12
|
+
var parser = (function() {
|
|
13
|
+
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
14
|
+
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v);
|
|
15
|
+
return o2;
|
|
16
|
+
}, "o"), $V0 = [1, 24], $V1 = [1, 25], $V2 = [1, 26], $V3 = [1, 27], $V4 = [1, 28], $V5 = [1, 63], $V6 = [1, 64], $V7 = [1, 65], $V8 = [1, 66], $V9 = [1, 67], $Va = [1, 68], $Vb = [1, 69], $Vc = [1, 29], $Vd = [1, 30], $Ve = [1, 31], $Vf = [1, 32], $Vg = [1, 33], $Vh = [1, 34], $Vi = [1, 35], $Vj = [1, 36], $Vk = [1, 37], $Vl = [1, 38], $Vm = [1, 39], $Vn = [1, 40], $Vo = [1, 41], $Vp = [1, 42], $Vq = [1, 43], $Vr = [1, 44], $Vs = [1, 45], $Vt = [1, 46], $Vu = [1, 47], $Vv = [1, 48], $Vw = [1, 50], $Vx = [1, 51], $Vy = [1, 52], $Vz = [1, 53], $VA = [1, 54], $VB = [1, 55], $VC = [1, 56], $VD = [1, 57], $VE = [1, 58], $VF = [1, 59], $VG = [1, 60], $VH = [14, 42], $VI = [
|
|
17
|
+
14,
|
|
18
|
+
34,
|
|
19
|
+
36,
|
|
20
|
+
37,
|
|
21
|
+
38,
|
|
22
|
+
39,
|
|
23
|
+
40,
|
|
24
|
+
41,
|
|
25
|
+
42,
|
|
26
|
+
44,
|
|
27
|
+
45,
|
|
28
|
+
46,
|
|
29
|
+
47,
|
|
30
|
+
48,
|
|
31
|
+
49,
|
|
32
|
+
50,
|
|
33
|
+
51,
|
|
34
|
+
52,
|
|
35
|
+
53,
|
|
36
|
+
54,
|
|
37
|
+
55,
|
|
38
|
+
56,
|
|
39
|
+
57,
|
|
40
|
+
58,
|
|
41
|
+
59,
|
|
42
|
+
60,
|
|
43
|
+
61,
|
|
44
|
+
62,
|
|
45
|
+
63,
|
|
46
|
+
64,
|
|
47
|
+
65,
|
|
48
|
+
66,
|
|
49
|
+
67,
|
|
50
|
+
68,
|
|
51
|
+
69,
|
|
52
|
+
70,
|
|
53
|
+
71,
|
|
54
|
+
72,
|
|
55
|
+
73,
|
|
56
|
+
74
|
|
57
|
+
], $VJ = [
|
|
58
|
+
12,
|
|
59
|
+
14,
|
|
60
|
+
34,
|
|
61
|
+
36,
|
|
62
|
+
37,
|
|
63
|
+
38,
|
|
64
|
+
39,
|
|
65
|
+
40,
|
|
66
|
+
41,
|
|
67
|
+
42,
|
|
68
|
+
44,
|
|
69
|
+
45,
|
|
70
|
+
46,
|
|
71
|
+
47,
|
|
72
|
+
48,
|
|
73
|
+
49,
|
|
74
|
+
50,
|
|
75
|
+
51,
|
|
76
|
+
52,
|
|
77
|
+
53,
|
|
78
|
+
54,
|
|
79
|
+
55,
|
|
80
|
+
56,
|
|
81
|
+
57,
|
|
82
|
+
58,
|
|
83
|
+
59,
|
|
84
|
+
60,
|
|
85
|
+
61,
|
|
86
|
+
62,
|
|
87
|
+
63,
|
|
88
|
+
64,
|
|
89
|
+
65,
|
|
90
|
+
66,
|
|
91
|
+
67,
|
|
92
|
+
68,
|
|
93
|
+
69,
|
|
94
|
+
70,
|
|
95
|
+
71,
|
|
96
|
+
72,
|
|
97
|
+
73,
|
|
98
|
+
74
|
|
99
|
+
], $VK = [1, 82], $VL = [1, 83], $VM = [1, 84], $VN = [1, 85], $VO = [
|
|
100
|
+
12,
|
|
101
|
+
14,
|
|
102
|
+
42
|
|
103
|
+
], $VP = [
|
|
104
|
+
12,
|
|
105
|
+
14,
|
|
106
|
+
33,
|
|
107
|
+
42
|
|
108
|
+
], $VQ = [
|
|
109
|
+
12,
|
|
110
|
+
14,
|
|
111
|
+
33,
|
|
112
|
+
42,
|
|
113
|
+
76,
|
|
114
|
+
77,
|
|
115
|
+
79,
|
|
116
|
+
80
|
|
117
|
+
], $VR = [12, 33], $VS = [
|
|
118
|
+
34,
|
|
119
|
+
36,
|
|
120
|
+
37,
|
|
121
|
+
38,
|
|
122
|
+
39,
|
|
123
|
+
40,
|
|
124
|
+
41,
|
|
125
|
+
44,
|
|
126
|
+
45,
|
|
127
|
+
46,
|
|
128
|
+
47,
|
|
129
|
+
48,
|
|
130
|
+
49,
|
|
131
|
+
50,
|
|
132
|
+
51,
|
|
133
|
+
52,
|
|
134
|
+
53,
|
|
135
|
+
54,
|
|
136
|
+
55,
|
|
137
|
+
56,
|
|
138
|
+
57,
|
|
139
|
+
58,
|
|
140
|
+
59,
|
|
141
|
+
60,
|
|
142
|
+
61,
|
|
143
|
+
62,
|
|
144
|
+
63,
|
|
145
|
+
64,
|
|
146
|
+
65,
|
|
147
|
+
66,
|
|
148
|
+
67,
|
|
149
|
+
68,
|
|
150
|
+
69,
|
|
151
|
+
70,
|
|
152
|
+
71,
|
|
153
|
+
72,
|
|
154
|
+
73,
|
|
155
|
+
74
|
|
156
|
+
];
|
|
157
|
+
var parser2 = {
|
|
158
|
+
trace: /* @__PURE__ */ __name(function trace() {}, "trace"),
|
|
159
|
+
yy: {},
|
|
160
|
+
symbols_: {
|
|
161
|
+
"error": 2,
|
|
162
|
+
"start": 3,
|
|
163
|
+
"mermaidDoc": 4,
|
|
164
|
+
"direction": 5,
|
|
165
|
+
"direction_tb": 6,
|
|
166
|
+
"direction_bt": 7,
|
|
167
|
+
"direction_rl": 8,
|
|
168
|
+
"direction_lr": 9,
|
|
169
|
+
"graphConfig": 10,
|
|
170
|
+
"C4_CONTEXT": 11,
|
|
171
|
+
"NEWLINE": 12,
|
|
172
|
+
"statements": 13,
|
|
173
|
+
"EOF": 14,
|
|
174
|
+
"C4_CONTAINER": 15,
|
|
175
|
+
"C4_COMPONENT": 16,
|
|
176
|
+
"C4_DYNAMIC": 17,
|
|
177
|
+
"C4_DEPLOYMENT": 18,
|
|
178
|
+
"otherStatements": 19,
|
|
179
|
+
"diagramStatements": 20,
|
|
180
|
+
"otherStatement": 21,
|
|
181
|
+
"title": 22,
|
|
182
|
+
"accDescription": 23,
|
|
183
|
+
"acc_title": 24,
|
|
184
|
+
"acc_title_value": 25,
|
|
185
|
+
"acc_descr": 26,
|
|
186
|
+
"acc_descr_value": 27,
|
|
187
|
+
"acc_descr_multiline_value": 28,
|
|
188
|
+
"boundaryStatement": 29,
|
|
189
|
+
"boundaryStartStatement": 30,
|
|
190
|
+
"boundaryStopStatement": 31,
|
|
191
|
+
"boundaryStart": 32,
|
|
192
|
+
"LBRACE": 33,
|
|
193
|
+
"ENTERPRISE_BOUNDARY": 34,
|
|
194
|
+
"attributes": 35,
|
|
195
|
+
"SYSTEM_BOUNDARY": 36,
|
|
196
|
+
"BOUNDARY": 37,
|
|
197
|
+
"CONTAINER_BOUNDARY": 38,
|
|
198
|
+
"NODE": 39,
|
|
199
|
+
"NODE_L": 40,
|
|
200
|
+
"NODE_R": 41,
|
|
201
|
+
"RBRACE": 42,
|
|
202
|
+
"diagramStatement": 43,
|
|
203
|
+
"PERSON": 44,
|
|
204
|
+
"PERSON_EXT": 45,
|
|
205
|
+
"SYSTEM": 46,
|
|
206
|
+
"SYSTEM_DB": 47,
|
|
207
|
+
"SYSTEM_QUEUE": 48,
|
|
208
|
+
"SYSTEM_EXT": 49,
|
|
209
|
+
"SYSTEM_EXT_DB": 50,
|
|
210
|
+
"SYSTEM_EXT_QUEUE": 51,
|
|
211
|
+
"CONTAINER": 52,
|
|
212
|
+
"CONTAINER_DB": 53,
|
|
213
|
+
"CONTAINER_QUEUE": 54,
|
|
214
|
+
"CONTAINER_EXT": 55,
|
|
215
|
+
"CONTAINER_EXT_DB": 56,
|
|
216
|
+
"CONTAINER_EXT_QUEUE": 57,
|
|
217
|
+
"COMPONENT": 58,
|
|
218
|
+
"COMPONENT_DB": 59,
|
|
219
|
+
"COMPONENT_QUEUE": 60,
|
|
220
|
+
"COMPONENT_EXT": 61,
|
|
221
|
+
"COMPONENT_EXT_DB": 62,
|
|
222
|
+
"COMPONENT_EXT_QUEUE": 63,
|
|
223
|
+
"REL": 64,
|
|
224
|
+
"BIREL": 65,
|
|
225
|
+
"REL_U": 66,
|
|
226
|
+
"REL_D": 67,
|
|
227
|
+
"REL_L": 68,
|
|
228
|
+
"REL_R": 69,
|
|
229
|
+
"REL_B": 70,
|
|
230
|
+
"REL_INDEX": 71,
|
|
231
|
+
"UPDATE_EL_STYLE": 72,
|
|
232
|
+
"UPDATE_REL_STYLE": 73,
|
|
233
|
+
"UPDATE_LAYOUT_CONFIG": 74,
|
|
234
|
+
"attribute": 75,
|
|
235
|
+
"STR": 76,
|
|
236
|
+
"STR_KEY": 77,
|
|
237
|
+
"STR_VALUE": 78,
|
|
238
|
+
"ATTRIBUTE": 79,
|
|
239
|
+
"ATTRIBUTE_EMPTY": 80,
|
|
240
|
+
"$accept": 0,
|
|
241
|
+
"$end": 1
|
|
242
|
+
},
|
|
243
|
+
terminals_: {
|
|
244
|
+
2: "error",
|
|
245
|
+
6: "direction_tb",
|
|
246
|
+
7: "direction_bt",
|
|
247
|
+
8: "direction_rl",
|
|
248
|
+
9: "direction_lr",
|
|
249
|
+
11: "C4_CONTEXT",
|
|
250
|
+
12: "NEWLINE",
|
|
251
|
+
14: "EOF",
|
|
252
|
+
15: "C4_CONTAINER",
|
|
253
|
+
16: "C4_COMPONENT",
|
|
254
|
+
17: "C4_DYNAMIC",
|
|
255
|
+
18: "C4_DEPLOYMENT",
|
|
256
|
+
22: "title",
|
|
257
|
+
23: "accDescription",
|
|
258
|
+
24: "acc_title",
|
|
259
|
+
25: "acc_title_value",
|
|
260
|
+
26: "acc_descr",
|
|
261
|
+
27: "acc_descr_value",
|
|
262
|
+
28: "acc_descr_multiline_value",
|
|
263
|
+
33: "LBRACE",
|
|
264
|
+
34: "ENTERPRISE_BOUNDARY",
|
|
265
|
+
36: "SYSTEM_BOUNDARY",
|
|
266
|
+
37: "BOUNDARY",
|
|
267
|
+
38: "CONTAINER_BOUNDARY",
|
|
268
|
+
39: "NODE",
|
|
269
|
+
40: "NODE_L",
|
|
270
|
+
41: "NODE_R",
|
|
271
|
+
42: "RBRACE",
|
|
272
|
+
44: "PERSON",
|
|
273
|
+
45: "PERSON_EXT",
|
|
274
|
+
46: "SYSTEM",
|
|
275
|
+
47: "SYSTEM_DB",
|
|
276
|
+
48: "SYSTEM_QUEUE",
|
|
277
|
+
49: "SYSTEM_EXT",
|
|
278
|
+
50: "SYSTEM_EXT_DB",
|
|
279
|
+
51: "SYSTEM_EXT_QUEUE",
|
|
280
|
+
52: "CONTAINER",
|
|
281
|
+
53: "CONTAINER_DB",
|
|
282
|
+
54: "CONTAINER_QUEUE",
|
|
283
|
+
55: "CONTAINER_EXT",
|
|
284
|
+
56: "CONTAINER_EXT_DB",
|
|
285
|
+
57: "CONTAINER_EXT_QUEUE",
|
|
286
|
+
58: "COMPONENT",
|
|
287
|
+
59: "COMPONENT_DB",
|
|
288
|
+
60: "COMPONENT_QUEUE",
|
|
289
|
+
61: "COMPONENT_EXT",
|
|
290
|
+
62: "COMPONENT_EXT_DB",
|
|
291
|
+
63: "COMPONENT_EXT_QUEUE",
|
|
292
|
+
64: "REL",
|
|
293
|
+
65: "BIREL",
|
|
294
|
+
66: "REL_U",
|
|
295
|
+
67: "REL_D",
|
|
296
|
+
68: "REL_L",
|
|
297
|
+
69: "REL_R",
|
|
298
|
+
70: "REL_B",
|
|
299
|
+
71: "REL_INDEX",
|
|
300
|
+
72: "UPDATE_EL_STYLE",
|
|
301
|
+
73: "UPDATE_REL_STYLE",
|
|
302
|
+
74: "UPDATE_LAYOUT_CONFIG",
|
|
303
|
+
76: "STR",
|
|
304
|
+
77: "STR_KEY",
|
|
305
|
+
78: "STR_VALUE",
|
|
306
|
+
79: "ATTRIBUTE",
|
|
307
|
+
80: "ATTRIBUTE_EMPTY"
|
|
308
|
+
},
|
|
309
|
+
productions_: [
|
|
310
|
+
0,
|
|
311
|
+
[3, 1],
|
|
312
|
+
[3, 1],
|
|
313
|
+
[5, 1],
|
|
314
|
+
[5, 1],
|
|
315
|
+
[5, 1],
|
|
316
|
+
[5, 1],
|
|
317
|
+
[4, 1],
|
|
318
|
+
[10, 4],
|
|
319
|
+
[10, 4],
|
|
320
|
+
[10, 4],
|
|
321
|
+
[10, 4],
|
|
322
|
+
[10, 4],
|
|
323
|
+
[13, 1],
|
|
324
|
+
[13, 1],
|
|
325
|
+
[13, 2],
|
|
326
|
+
[19, 1],
|
|
327
|
+
[19, 2],
|
|
328
|
+
[19, 3],
|
|
329
|
+
[21, 1],
|
|
330
|
+
[21, 1],
|
|
331
|
+
[21, 2],
|
|
332
|
+
[21, 2],
|
|
333
|
+
[21, 1],
|
|
334
|
+
[29, 3],
|
|
335
|
+
[30, 3],
|
|
336
|
+
[30, 3],
|
|
337
|
+
[30, 4],
|
|
338
|
+
[32, 2],
|
|
339
|
+
[32, 2],
|
|
340
|
+
[32, 2],
|
|
341
|
+
[32, 2],
|
|
342
|
+
[32, 2],
|
|
343
|
+
[32, 2],
|
|
344
|
+
[32, 2],
|
|
345
|
+
[31, 1],
|
|
346
|
+
[20, 1],
|
|
347
|
+
[20, 2],
|
|
348
|
+
[20, 3],
|
|
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, 2],
|
|
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, 1],
|
|
370
|
+
[43, 2],
|
|
371
|
+
[43, 2],
|
|
372
|
+
[43, 2],
|
|
373
|
+
[43, 2],
|
|
374
|
+
[43, 2],
|
|
375
|
+
[43, 2],
|
|
376
|
+
[43, 2],
|
|
377
|
+
[43, 2],
|
|
378
|
+
[43, 2],
|
|
379
|
+
[43, 2],
|
|
380
|
+
[43, 2],
|
|
381
|
+
[35, 1],
|
|
382
|
+
[35, 2],
|
|
383
|
+
[75, 1],
|
|
384
|
+
[75, 2],
|
|
385
|
+
[75, 1],
|
|
386
|
+
[75, 1]
|
|
387
|
+
],
|
|
388
|
+
performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
389
|
+
var $0 = $$.length - 1;
|
|
390
|
+
switch (yystate) {
|
|
391
|
+
case 3:
|
|
392
|
+
yy.setDirection("TB");
|
|
393
|
+
break;
|
|
394
|
+
case 4:
|
|
395
|
+
yy.setDirection("BT");
|
|
396
|
+
break;
|
|
397
|
+
case 5:
|
|
398
|
+
yy.setDirection("RL");
|
|
399
|
+
break;
|
|
400
|
+
case 6:
|
|
401
|
+
yy.setDirection("LR");
|
|
402
|
+
break;
|
|
403
|
+
case 8:
|
|
404
|
+
case 9:
|
|
405
|
+
case 10:
|
|
406
|
+
case 11:
|
|
407
|
+
case 12:
|
|
408
|
+
yy.setC4Type($$[$0 - 3]);
|
|
409
|
+
break;
|
|
410
|
+
case 19:
|
|
411
|
+
yy.setTitle($$[$0].substring(6));
|
|
412
|
+
this.$ = $$[$0].substring(6);
|
|
413
|
+
break;
|
|
414
|
+
case 20:
|
|
415
|
+
yy.setAccDescription($$[$0].substring(15));
|
|
416
|
+
this.$ = $$[$0].substring(15);
|
|
417
|
+
break;
|
|
418
|
+
case 21:
|
|
419
|
+
this.$ = $$[$0].trim();
|
|
420
|
+
yy.setTitle(this.$);
|
|
421
|
+
break;
|
|
422
|
+
case 22:
|
|
423
|
+
case 23:
|
|
424
|
+
this.$ = $$[$0].trim();
|
|
425
|
+
yy.setAccDescription(this.$);
|
|
426
|
+
break;
|
|
427
|
+
case 28:
|
|
428
|
+
$$[$0].splice(2, 0, "ENTERPRISE");
|
|
429
|
+
yy.addPersonOrSystemBoundary(...$$[$0]);
|
|
430
|
+
this.$ = $$[$0];
|
|
431
|
+
break;
|
|
432
|
+
case 29:
|
|
433
|
+
$$[$0].splice(2, 0, "SYSTEM");
|
|
434
|
+
yy.addPersonOrSystemBoundary(...$$[$0]);
|
|
435
|
+
this.$ = $$[$0];
|
|
436
|
+
break;
|
|
437
|
+
case 30:
|
|
438
|
+
yy.addPersonOrSystemBoundary(...$$[$0]);
|
|
439
|
+
this.$ = $$[$0];
|
|
440
|
+
break;
|
|
441
|
+
case 31:
|
|
442
|
+
$$[$0].splice(2, 0, "CONTAINER");
|
|
443
|
+
yy.addContainerBoundary(...$$[$0]);
|
|
444
|
+
this.$ = $$[$0];
|
|
445
|
+
break;
|
|
446
|
+
case 32:
|
|
447
|
+
yy.addDeploymentNode("node", ...$$[$0]);
|
|
448
|
+
this.$ = $$[$0];
|
|
449
|
+
break;
|
|
450
|
+
case 33:
|
|
451
|
+
yy.addDeploymentNode("nodeL", ...$$[$0]);
|
|
452
|
+
this.$ = $$[$0];
|
|
453
|
+
break;
|
|
454
|
+
case 34:
|
|
455
|
+
yy.addDeploymentNode("nodeR", ...$$[$0]);
|
|
456
|
+
this.$ = $$[$0];
|
|
457
|
+
break;
|
|
458
|
+
case 35:
|
|
459
|
+
yy.popBoundaryParseStack();
|
|
460
|
+
break;
|
|
461
|
+
case 39:
|
|
462
|
+
yy.addPersonOrSystem("person", ...$$[$0]);
|
|
463
|
+
this.$ = $$[$0];
|
|
464
|
+
break;
|
|
465
|
+
case 40:
|
|
466
|
+
yy.addPersonOrSystem("external_person", ...$$[$0]);
|
|
467
|
+
this.$ = $$[$0];
|
|
468
|
+
break;
|
|
469
|
+
case 41:
|
|
470
|
+
yy.addPersonOrSystem("system", ...$$[$0]);
|
|
471
|
+
this.$ = $$[$0];
|
|
472
|
+
break;
|
|
473
|
+
case 42:
|
|
474
|
+
yy.addPersonOrSystem("system_db", ...$$[$0]);
|
|
475
|
+
this.$ = $$[$0];
|
|
476
|
+
break;
|
|
477
|
+
case 43:
|
|
478
|
+
yy.addPersonOrSystem("system_queue", ...$$[$0]);
|
|
479
|
+
this.$ = $$[$0];
|
|
480
|
+
break;
|
|
481
|
+
case 44:
|
|
482
|
+
yy.addPersonOrSystem("external_system", ...$$[$0]);
|
|
483
|
+
this.$ = $$[$0];
|
|
484
|
+
break;
|
|
485
|
+
case 45:
|
|
486
|
+
yy.addPersonOrSystem("external_system_db", ...$$[$0]);
|
|
487
|
+
this.$ = $$[$0];
|
|
488
|
+
break;
|
|
489
|
+
case 46:
|
|
490
|
+
yy.addPersonOrSystem("external_system_queue", ...$$[$0]);
|
|
491
|
+
this.$ = $$[$0];
|
|
492
|
+
break;
|
|
493
|
+
case 47:
|
|
494
|
+
yy.addContainer("container", ...$$[$0]);
|
|
495
|
+
this.$ = $$[$0];
|
|
496
|
+
break;
|
|
497
|
+
case 48:
|
|
498
|
+
yy.addContainer("container_db", ...$$[$0]);
|
|
499
|
+
this.$ = $$[$0];
|
|
500
|
+
break;
|
|
501
|
+
case 49:
|
|
502
|
+
yy.addContainer("container_queue", ...$$[$0]);
|
|
503
|
+
this.$ = $$[$0];
|
|
504
|
+
break;
|
|
505
|
+
case 50:
|
|
506
|
+
yy.addContainer("external_container", ...$$[$0]);
|
|
507
|
+
this.$ = $$[$0];
|
|
508
|
+
break;
|
|
509
|
+
case 51:
|
|
510
|
+
yy.addContainer("external_container_db", ...$$[$0]);
|
|
511
|
+
this.$ = $$[$0];
|
|
512
|
+
break;
|
|
513
|
+
case 52:
|
|
514
|
+
yy.addContainer("external_container_queue", ...$$[$0]);
|
|
515
|
+
this.$ = $$[$0];
|
|
516
|
+
break;
|
|
517
|
+
case 53:
|
|
518
|
+
yy.addComponent("component", ...$$[$0]);
|
|
519
|
+
this.$ = $$[$0];
|
|
520
|
+
break;
|
|
521
|
+
case 54:
|
|
522
|
+
yy.addComponent("component_db", ...$$[$0]);
|
|
523
|
+
this.$ = $$[$0];
|
|
524
|
+
break;
|
|
525
|
+
case 55:
|
|
526
|
+
yy.addComponent("component_queue", ...$$[$0]);
|
|
527
|
+
this.$ = $$[$0];
|
|
528
|
+
break;
|
|
529
|
+
case 56:
|
|
530
|
+
yy.addComponent("external_component", ...$$[$0]);
|
|
531
|
+
this.$ = $$[$0];
|
|
532
|
+
break;
|
|
533
|
+
case 57:
|
|
534
|
+
yy.addComponent("external_component_db", ...$$[$0]);
|
|
535
|
+
this.$ = $$[$0];
|
|
536
|
+
break;
|
|
537
|
+
case 58:
|
|
538
|
+
yy.addComponent("external_component_queue", ...$$[$0]);
|
|
539
|
+
this.$ = $$[$0];
|
|
540
|
+
break;
|
|
541
|
+
case 60:
|
|
542
|
+
yy.addRel("rel", ...$$[$0]);
|
|
543
|
+
this.$ = $$[$0];
|
|
544
|
+
break;
|
|
545
|
+
case 61:
|
|
546
|
+
yy.addRel("birel", ...$$[$0]);
|
|
547
|
+
this.$ = $$[$0];
|
|
548
|
+
break;
|
|
549
|
+
case 62:
|
|
550
|
+
yy.addRel("rel_u", ...$$[$0]);
|
|
551
|
+
this.$ = $$[$0];
|
|
552
|
+
break;
|
|
553
|
+
case 63:
|
|
554
|
+
yy.addRel("rel_d", ...$$[$0]);
|
|
555
|
+
this.$ = $$[$0];
|
|
556
|
+
break;
|
|
557
|
+
case 64:
|
|
558
|
+
yy.addRel("rel_l", ...$$[$0]);
|
|
559
|
+
this.$ = $$[$0];
|
|
560
|
+
break;
|
|
561
|
+
case 65:
|
|
562
|
+
yy.addRel("rel_r", ...$$[$0]);
|
|
563
|
+
this.$ = $$[$0];
|
|
564
|
+
break;
|
|
565
|
+
case 66:
|
|
566
|
+
yy.addRel("rel_b", ...$$[$0]);
|
|
567
|
+
this.$ = $$[$0];
|
|
568
|
+
break;
|
|
569
|
+
case 67:
|
|
570
|
+
$$[$0].splice(0, 1);
|
|
571
|
+
yy.addRel("rel", ...$$[$0]);
|
|
572
|
+
this.$ = $$[$0];
|
|
573
|
+
break;
|
|
574
|
+
case 68:
|
|
575
|
+
yy.updateElStyle("update_el_style", ...$$[$0]);
|
|
576
|
+
this.$ = $$[$0];
|
|
577
|
+
break;
|
|
578
|
+
case 69:
|
|
579
|
+
yy.updateRelStyle("update_rel_style", ...$$[$0]);
|
|
580
|
+
this.$ = $$[$0];
|
|
581
|
+
break;
|
|
582
|
+
case 70:
|
|
583
|
+
yy.updateLayoutConfig("update_layout_config", ...$$[$0]);
|
|
584
|
+
this.$ = $$[$0];
|
|
585
|
+
break;
|
|
586
|
+
case 71:
|
|
587
|
+
this.$ = [$$[$0]];
|
|
588
|
+
break;
|
|
589
|
+
case 72:
|
|
590
|
+
$$[$0].unshift($$[$0 - 1]);
|
|
591
|
+
this.$ = $$[$0];
|
|
592
|
+
break;
|
|
593
|
+
case 73:
|
|
594
|
+
case 75:
|
|
595
|
+
this.$ = $$[$0].trim();
|
|
596
|
+
break;
|
|
597
|
+
case 74:
|
|
598
|
+
let kv = {};
|
|
599
|
+
kv[$$[$0 - 1].trim()] = $$[$0].trim();
|
|
600
|
+
this.$ = kv;
|
|
601
|
+
break;
|
|
602
|
+
case 76:
|
|
603
|
+
this.$ = "";
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
}, "anonymous"),
|
|
607
|
+
table: [
|
|
608
|
+
{
|
|
609
|
+
3: 1,
|
|
610
|
+
4: 2,
|
|
611
|
+
5: 3,
|
|
612
|
+
6: [1, 5],
|
|
613
|
+
7: [1, 6],
|
|
614
|
+
8: [1, 7],
|
|
615
|
+
9: [1, 8],
|
|
616
|
+
10: 4,
|
|
617
|
+
11: [1, 9],
|
|
618
|
+
15: [1, 10],
|
|
619
|
+
16: [1, 11],
|
|
620
|
+
17: [1, 12],
|
|
621
|
+
18: [1, 13]
|
|
622
|
+
},
|
|
623
|
+
{ 1: [3] },
|
|
624
|
+
{ 1: [2, 1] },
|
|
625
|
+
{ 1: [2, 2] },
|
|
626
|
+
{ 1: [2, 7] },
|
|
627
|
+
{ 1: [2, 3] },
|
|
628
|
+
{ 1: [2, 4] },
|
|
629
|
+
{ 1: [2, 5] },
|
|
630
|
+
{ 1: [2, 6] },
|
|
631
|
+
{ 12: [1, 14] },
|
|
632
|
+
{ 12: [1, 15] },
|
|
633
|
+
{ 12: [1, 16] },
|
|
634
|
+
{ 12: [1, 17] },
|
|
635
|
+
{ 12: [1, 18] },
|
|
636
|
+
{
|
|
637
|
+
13: 19,
|
|
638
|
+
19: 20,
|
|
639
|
+
20: 21,
|
|
640
|
+
21: 22,
|
|
641
|
+
22: $V0,
|
|
642
|
+
23: $V1,
|
|
643
|
+
24: $V2,
|
|
644
|
+
26: $V3,
|
|
645
|
+
28: $V4,
|
|
646
|
+
29: 49,
|
|
647
|
+
30: 61,
|
|
648
|
+
32: 62,
|
|
649
|
+
34: $V5,
|
|
650
|
+
36: $V6,
|
|
651
|
+
37: $V7,
|
|
652
|
+
38: $V8,
|
|
653
|
+
39: $V9,
|
|
654
|
+
40: $Va,
|
|
655
|
+
41: $Vb,
|
|
656
|
+
43: 23,
|
|
657
|
+
44: $Vc,
|
|
658
|
+
45: $Vd,
|
|
659
|
+
46: $Ve,
|
|
660
|
+
47: $Vf,
|
|
661
|
+
48: $Vg,
|
|
662
|
+
49: $Vh,
|
|
663
|
+
50: $Vi,
|
|
664
|
+
51: $Vj,
|
|
665
|
+
52: $Vk,
|
|
666
|
+
53: $Vl,
|
|
667
|
+
54: $Vm,
|
|
668
|
+
55: $Vn,
|
|
669
|
+
56: $Vo,
|
|
670
|
+
57: $Vp,
|
|
671
|
+
58: $Vq,
|
|
672
|
+
59: $Vr,
|
|
673
|
+
60: $Vs,
|
|
674
|
+
61: $Vt,
|
|
675
|
+
62: $Vu,
|
|
676
|
+
63: $Vv,
|
|
677
|
+
64: $Vw,
|
|
678
|
+
65: $Vx,
|
|
679
|
+
66: $Vy,
|
|
680
|
+
67: $Vz,
|
|
681
|
+
68: $VA,
|
|
682
|
+
69: $VB,
|
|
683
|
+
70: $VC,
|
|
684
|
+
71: $VD,
|
|
685
|
+
72: $VE,
|
|
686
|
+
73: $VF,
|
|
687
|
+
74: $VG
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
13: 70,
|
|
691
|
+
19: 20,
|
|
692
|
+
20: 21,
|
|
693
|
+
21: 22,
|
|
694
|
+
22: $V0,
|
|
695
|
+
23: $V1,
|
|
696
|
+
24: $V2,
|
|
697
|
+
26: $V3,
|
|
698
|
+
28: $V4,
|
|
699
|
+
29: 49,
|
|
700
|
+
30: 61,
|
|
701
|
+
32: 62,
|
|
702
|
+
34: $V5,
|
|
703
|
+
36: $V6,
|
|
704
|
+
37: $V7,
|
|
705
|
+
38: $V8,
|
|
706
|
+
39: $V9,
|
|
707
|
+
40: $Va,
|
|
708
|
+
41: $Vb,
|
|
709
|
+
43: 23,
|
|
710
|
+
44: $Vc,
|
|
711
|
+
45: $Vd,
|
|
712
|
+
46: $Ve,
|
|
713
|
+
47: $Vf,
|
|
714
|
+
48: $Vg,
|
|
715
|
+
49: $Vh,
|
|
716
|
+
50: $Vi,
|
|
717
|
+
51: $Vj,
|
|
718
|
+
52: $Vk,
|
|
719
|
+
53: $Vl,
|
|
720
|
+
54: $Vm,
|
|
721
|
+
55: $Vn,
|
|
722
|
+
56: $Vo,
|
|
723
|
+
57: $Vp,
|
|
724
|
+
58: $Vq,
|
|
725
|
+
59: $Vr,
|
|
726
|
+
60: $Vs,
|
|
727
|
+
61: $Vt,
|
|
728
|
+
62: $Vu,
|
|
729
|
+
63: $Vv,
|
|
730
|
+
64: $Vw,
|
|
731
|
+
65: $Vx,
|
|
732
|
+
66: $Vy,
|
|
733
|
+
67: $Vz,
|
|
734
|
+
68: $VA,
|
|
735
|
+
69: $VB,
|
|
736
|
+
70: $VC,
|
|
737
|
+
71: $VD,
|
|
738
|
+
72: $VE,
|
|
739
|
+
73: $VF,
|
|
740
|
+
74: $VG
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
13: 71,
|
|
744
|
+
19: 20,
|
|
745
|
+
20: 21,
|
|
746
|
+
21: 22,
|
|
747
|
+
22: $V0,
|
|
748
|
+
23: $V1,
|
|
749
|
+
24: $V2,
|
|
750
|
+
26: $V3,
|
|
751
|
+
28: $V4,
|
|
752
|
+
29: 49,
|
|
753
|
+
30: 61,
|
|
754
|
+
32: 62,
|
|
755
|
+
34: $V5,
|
|
756
|
+
36: $V6,
|
|
757
|
+
37: $V7,
|
|
758
|
+
38: $V8,
|
|
759
|
+
39: $V9,
|
|
760
|
+
40: $Va,
|
|
761
|
+
41: $Vb,
|
|
762
|
+
43: 23,
|
|
763
|
+
44: $Vc,
|
|
764
|
+
45: $Vd,
|
|
765
|
+
46: $Ve,
|
|
766
|
+
47: $Vf,
|
|
767
|
+
48: $Vg,
|
|
768
|
+
49: $Vh,
|
|
769
|
+
50: $Vi,
|
|
770
|
+
51: $Vj,
|
|
771
|
+
52: $Vk,
|
|
772
|
+
53: $Vl,
|
|
773
|
+
54: $Vm,
|
|
774
|
+
55: $Vn,
|
|
775
|
+
56: $Vo,
|
|
776
|
+
57: $Vp,
|
|
777
|
+
58: $Vq,
|
|
778
|
+
59: $Vr,
|
|
779
|
+
60: $Vs,
|
|
780
|
+
61: $Vt,
|
|
781
|
+
62: $Vu,
|
|
782
|
+
63: $Vv,
|
|
783
|
+
64: $Vw,
|
|
784
|
+
65: $Vx,
|
|
785
|
+
66: $Vy,
|
|
786
|
+
67: $Vz,
|
|
787
|
+
68: $VA,
|
|
788
|
+
69: $VB,
|
|
789
|
+
70: $VC,
|
|
790
|
+
71: $VD,
|
|
791
|
+
72: $VE,
|
|
792
|
+
73: $VF,
|
|
793
|
+
74: $VG
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
13: 72,
|
|
797
|
+
19: 20,
|
|
798
|
+
20: 21,
|
|
799
|
+
21: 22,
|
|
800
|
+
22: $V0,
|
|
801
|
+
23: $V1,
|
|
802
|
+
24: $V2,
|
|
803
|
+
26: $V3,
|
|
804
|
+
28: $V4,
|
|
805
|
+
29: 49,
|
|
806
|
+
30: 61,
|
|
807
|
+
32: 62,
|
|
808
|
+
34: $V5,
|
|
809
|
+
36: $V6,
|
|
810
|
+
37: $V7,
|
|
811
|
+
38: $V8,
|
|
812
|
+
39: $V9,
|
|
813
|
+
40: $Va,
|
|
814
|
+
41: $Vb,
|
|
815
|
+
43: 23,
|
|
816
|
+
44: $Vc,
|
|
817
|
+
45: $Vd,
|
|
818
|
+
46: $Ve,
|
|
819
|
+
47: $Vf,
|
|
820
|
+
48: $Vg,
|
|
821
|
+
49: $Vh,
|
|
822
|
+
50: $Vi,
|
|
823
|
+
51: $Vj,
|
|
824
|
+
52: $Vk,
|
|
825
|
+
53: $Vl,
|
|
826
|
+
54: $Vm,
|
|
827
|
+
55: $Vn,
|
|
828
|
+
56: $Vo,
|
|
829
|
+
57: $Vp,
|
|
830
|
+
58: $Vq,
|
|
831
|
+
59: $Vr,
|
|
832
|
+
60: $Vs,
|
|
833
|
+
61: $Vt,
|
|
834
|
+
62: $Vu,
|
|
835
|
+
63: $Vv,
|
|
836
|
+
64: $Vw,
|
|
837
|
+
65: $Vx,
|
|
838
|
+
66: $Vy,
|
|
839
|
+
67: $Vz,
|
|
840
|
+
68: $VA,
|
|
841
|
+
69: $VB,
|
|
842
|
+
70: $VC,
|
|
843
|
+
71: $VD,
|
|
844
|
+
72: $VE,
|
|
845
|
+
73: $VF,
|
|
846
|
+
74: $VG
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
13: 73,
|
|
850
|
+
19: 20,
|
|
851
|
+
20: 21,
|
|
852
|
+
21: 22,
|
|
853
|
+
22: $V0,
|
|
854
|
+
23: $V1,
|
|
855
|
+
24: $V2,
|
|
856
|
+
26: $V3,
|
|
857
|
+
28: $V4,
|
|
858
|
+
29: 49,
|
|
859
|
+
30: 61,
|
|
860
|
+
32: 62,
|
|
861
|
+
34: $V5,
|
|
862
|
+
36: $V6,
|
|
863
|
+
37: $V7,
|
|
864
|
+
38: $V8,
|
|
865
|
+
39: $V9,
|
|
866
|
+
40: $Va,
|
|
867
|
+
41: $Vb,
|
|
868
|
+
43: 23,
|
|
869
|
+
44: $Vc,
|
|
870
|
+
45: $Vd,
|
|
871
|
+
46: $Ve,
|
|
872
|
+
47: $Vf,
|
|
873
|
+
48: $Vg,
|
|
874
|
+
49: $Vh,
|
|
875
|
+
50: $Vi,
|
|
876
|
+
51: $Vj,
|
|
877
|
+
52: $Vk,
|
|
878
|
+
53: $Vl,
|
|
879
|
+
54: $Vm,
|
|
880
|
+
55: $Vn,
|
|
881
|
+
56: $Vo,
|
|
882
|
+
57: $Vp,
|
|
883
|
+
58: $Vq,
|
|
884
|
+
59: $Vr,
|
|
885
|
+
60: $Vs,
|
|
886
|
+
61: $Vt,
|
|
887
|
+
62: $Vu,
|
|
888
|
+
63: $Vv,
|
|
889
|
+
64: $Vw,
|
|
890
|
+
65: $Vx,
|
|
891
|
+
66: $Vy,
|
|
892
|
+
67: $Vz,
|
|
893
|
+
68: $VA,
|
|
894
|
+
69: $VB,
|
|
895
|
+
70: $VC,
|
|
896
|
+
71: $VD,
|
|
897
|
+
72: $VE,
|
|
898
|
+
73: $VF,
|
|
899
|
+
74: $VG
|
|
900
|
+
},
|
|
901
|
+
{ 14: [1, 74] },
|
|
902
|
+
o($VH, [2, 13], {
|
|
903
|
+
43: 23,
|
|
904
|
+
29: 49,
|
|
905
|
+
30: 61,
|
|
906
|
+
32: 62,
|
|
907
|
+
20: 75,
|
|
908
|
+
34: $V5,
|
|
909
|
+
36: $V6,
|
|
910
|
+
37: $V7,
|
|
911
|
+
38: $V8,
|
|
912
|
+
39: $V9,
|
|
913
|
+
40: $Va,
|
|
914
|
+
41: $Vb,
|
|
915
|
+
44: $Vc,
|
|
916
|
+
45: $Vd,
|
|
917
|
+
46: $Ve,
|
|
918
|
+
47: $Vf,
|
|
919
|
+
48: $Vg,
|
|
920
|
+
49: $Vh,
|
|
921
|
+
50: $Vi,
|
|
922
|
+
51: $Vj,
|
|
923
|
+
52: $Vk,
|
|
924
|
+
53: $Vl,
|
|
925
|
+
54: $Vm,
|
|
926
|
+
55: $Vn,
|
|
927
|
+
56: $Vo,
|
|
928
|
+
57: $Vp,
|
|
929
|
+
58: $Vq,
|
|
930
|
+
59: $Vr,
|
|
931
|
+
60: $Vs,
|
|
932
|
+
61: $Vt,
|
|
933
|
+
62: $Vu,
|
|
934
|
+
63: $Vv,
|
|
935
|
+
64: $Vw,
|
|
936
|
+
65: $Vx,
|
|
937
|
+
66: $Vy,
|
|
938
|
+
67: $Vz,
|
|
939
|
+
68: $VA,
|
|
940
|
+
69: $VB,
|
|
941
|
+
70: $VC,
|
|
942
|
+
71: $VD,
|
|
943
|
+
72: $VE,
|
|
944
|
+
73: $VF,
|
|
945
|
+
74: $VG
|
|
946
|
+
}),
|
|
947
|
+
o($VH, [2, 14]),
|
|
948
|
+
o($VI, [2, 16], { 12: [1, 76] }),
|
|
949
|
+
o($VH, [2, 36], { 12: [1, 77] }),
|
|
950
|
+
o($VJ, [2, 19]),
|
|
951
|
+
o($VJ, [2, 20]),
|
|
952
|
+
{ 25: [1, 78] },
|
|
953
|
+
{ 27: [1, 79] },
|
|
954
|
+
o($VJ, [2, 23]),
|
|
955
|
+
{
|
|
956
|
+
35: 80,
|
|
957
|
+
75: 81,
|
|
958
|
+
76: $VK,
|
|
959
|
+
77: $VL,
|
|
960
|
+
79: $VM,
|
|
961
|
+
80: $VN
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
35: 86,
|
|
965
|
+
75: 81,
|
|
966
|
+
76: $VK,
|
|
967
|
+
77: $VL,
|
|
968
|
+
79: $VM,
|
|
969
|
+
80: $VN
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
35: 87,
|
|
973
|
+
75: 81,
|
|
974
|
+
76: $VK,
|
|
975
|
+
77: $VL,
|
|
976
|
+
79: $VM,
|
|
977
|
+
80: $VN
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
35: 88,
|
|
981
|
+
75: 81,
|
|
982
|
+
76: $VK,
|
|
983
|
+
77: $VL,
|
|
984
|
+
79: $VM,
|
|
985
|
+
80: $VN
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
35: 89,
|
|
989
|
+
75: 81,
|
|
990
|
+
76: $VK,
|
|
991
|
+
77: $VL,
|
|
992
|
+
79: $VM,
|
|
993
|
+
80: $VN
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
35: 90,
|
|
997
|
+
75: 81,
|
|
998
|
+
76: $VK,
|
|
999
|
+
77: $VL,
|
|
1000
|
+
79: $VM,
|
|
1001
|
+
80: $VN
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
35: 91,
|
|
1005
|
+
75: 81,
|
|
1006
|
+
76: $VK,
|
|
1007
|
+
77: $VL,
|
|
1008
|
+
79: $VM,
|
|
1009
|
+
80: $VN
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
35: 92,
|
|
1013
|
+
75: 81,
|
|
1014
|
+
76: $VK,
|
|
1015
|
+
77: $VL,
|
|
1016
|
+
79: $VM,
|
|
1017
|
+
80: $VN
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
35: 93,
|
|
1021
|
+
75: 81,
|
|
1022
|
+
76: $VK,
|
|
1023
|
+
77: $VL,
|
|
1024
|
+
79: $VM,
|
|
1025
|
+
80: $VN
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
35: 94,
|
|
1029
|
+
75: 81,
|
|
1030
|
+
76: $VK,
|
|
1031
|
+
77: $VL,
|
|
1032
|
+
79: $VM,
|
|
1033
|
+
80: $VN
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
35: 95,
|
|
1037
|
+
75: 81,
|
|
1038
|
+
76: $VK,
|
|
1039
|
+
77: $VL,
|
|
1040
|
+
79: $VM,
|
|
1041
|
+
80: $VN
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
35: 96,
|
|
1045
|
+
75: 81,
|
|
1046
|
+
76: $VK,
|
|
1047
|
+
77: $VL,
|
|
1048
|
+
79: $VM,
|
|
1049
|
+
80: $VN
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
35: 97,
|
|
1053
|
+
75: 81,
|
|
1054
|
+
76: $VK,
|
|
1055
|
+
77: $VL,
|
|
1056
|
+
79: $VM,
|
|
1057
|
+
80: $VN
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
35: 98,
|
|
1061
|
+
75: 81,
|
|
1062
|
+
76: $VK,
|
|
1063
|
+
77: $VL,
|
|
1064
|
+
79: $VM,
|
|
1065
|
+
80: $VN
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
35: 99,
|
|
1069
|
+
75: 81,
|
|
1070
|
+
76: $VK,
|
|
1071
|
+
77: $VL,
|
|
1072
|
+
79: $VM,
|
|
1073
|
+
80: $VN
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
35: 100,
|
|
1077
|
+
75: 81,
|
|
1078
|
+
76: $VK,
|
|
1079
|
+
77: $VL,
|
|
1080
|
+
79: $VM,
|
|
1081
|
+
80: $VN
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
35: 101,
|
|
1085
|
+
75: 81,
|
|
1086
|
+
76: $VK,
|
|
1087
|
+
77: $VL,
|
|
1088
|
+
79: $VM,
|
|
1089
|
+
80: $VN
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
35: 102,
|
|
1093
|
+
75: 81,
|
|
1094
|
+
76: $VK,
|
|
1095
|
+
77: $VL,
|
|
1096
|
+
79: $VM,
|
|
1097
|
+
80: $VN
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
35: 103,
|
|
1101
|
+
75: 81,
|
|
1102
|
+
76: $VK,
|
|
1103
|
+
77: $VL,
|
|
1104
|
+
79: $VM,
|
|
1105
|
+
80: $VN
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
35: 104,
|
|
1109
|
+
75: 81,
|
|
1110
|
+
76: $VK,
|
|
1111
|
+
77: $VL,
|
|
1112
|
+
79: $VM,
|
|
1113
|
+
80: $VN
|
|
1114
|
+
},
|
|
1115
|
+
o($VO, [2, 59]),
|
|
1116
|
+
{
|
|
1117
|
+
35: 105,
|
|
1118
|
+
75: 81,
|
|
1119
|
+
76: $VK,
|
|
1120
|
+
77: $VL,
|
|
1121
|
+
79: $VM,
|
|
1122
|
+
80: $VN
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
35: 106,
|
|
1126
|
+
75: 81,
|
|
1127
|
+
76: $VK,
|
|
1128
|
+
77: $VL,
|
|
1129
|
+
79: $VM,
|
|
1130
|
+
80: $VN
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
35: 107,
|
|
1134
|
+
75: 81,
|
|
1135
|
+
76: $VK,
|
|
1136
|
+
77: $VL,
|
|
1137
|
+
79: $VM,
|
|
1138
|
+
80: $VN
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
35: 108,
|
|
1142
|
+
75: 81,
|
|
1143
|
+
76: $VK,
|
|
1144
|
+
77: $VL,
|
|
1145
|
+
79: $VM,
|
|
1146
|
+
80: $VN
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
35: 109,
|
|
1150
|
+
75: 81,
|
|
1151
|
+
76: $VK,
|
|
1152
|
+
77: $VL,
|
|
1153
|
+
79: $VM,
|
|
1154
|
+
80: $VN
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
35: 110,
|
|
1158
|
+
75: 81,
|
|
1159
|
+
76: $VK,
|
|
1160
|
+
77: $VL,
|
|
1161
|
+
79: $VM,
|
|
1162
|
+
80: $VN
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
35: 111,
|
|
1166
|
+
75: 81,
|
|
1167
|
+
76: $VK,
|
|
1168
|
+
77: $VL,
|
|
1169
|
+
79: $VM,
|
|
1170
|
+
80: $VN
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
35: 112,
|
|
1174
|
+
75: 81,
|
|
1175
|
+
76: $VK,
|
|
1176
|
+
77: $VL,
|
|
1177
|
+
79: $VM,
|
|
1178
|
+
80: $VN
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
35: 113,
|
|
1182
|
+
75: 81,
|
|
1183
|
+
76: $VK,
|
|
1184
|
+
77: $VL,
|
|
1185
|
+
79: $VM,
|
|
1186
|
+
80: $VN
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
35: 114,
|
|
1190
|
+
75: 81,
|
|
1191
|
+
76: $VK,
|
|
1192
|
+
77: $VL,
|
|
1193
|
+
79: $VM,
|
|
1194
|
+
80: $VN
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
35: 115,
|
|
1198
|
+
75: 81,
|
|
1199
|
+
76: $VK,
|
|
1200
|
+
77: $VL,
|
|
1201
|
+
79: $VM,
|
|
1202
|
+
80: $VN
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
20: 116,
|
|
1206
|
+
29: 49,
|
|
1207
|
+
30: 61,
|
|
1208
|
+
32: 62,
|
|
1209
|
+
34: $V5,
|
|
1210
|
+
36: $V6,
|
|
1211
|
+
37: $V7,
|
|
1212
|
+
38: $V8,
|
|
1213
|
+
39: $V9,
|
|
1214
|
+
40: $Va,
|
|
1215
|
+
41: $Vb,
|
|
1216
|
+
43: 23,
|
|
1217
|
+
44: $Vc,
|
|
1218
|
+
45: $Vd,
|
|
1219
|
+
46: $Ve,
|
|
1220
|
+
47: $Vf,
|
|
1221
|
+
48: $Vg,
|
|
1222
|
+
49: $Vh,
|
|
1223
|
+
50: $Vi,
|
|
1224
|
+
51: $Vj,
|
|
1225
|
+
52: $Vk,
|
|
1226
|
+
53: $Vl,
|
|
1227
|
+
54: $Vm,
|
|
1228
|
+
55: $Vn,
|
|
1229
|
+
56: $Vo,
|
|
1230
|
+
57: $Vp,
|
|
1231
|
+
58: $Vq,
|
|
1232
|
+
59: $Vr,
|
|
1233
|
+
60: $Vs,
|
|
1234
|
+
61: $Vt,
|
|
1235
|
+
62: $Vu,
|
|
1236
|
+
63: $Vv,
|
|
1237
|
+
64: $Vw,
|
|
1238
|
+
65: $Vx,
|
|
1239
|
+
66: $Vy,
|
|
1240
|
+
67: $Vz,
|
|
1241
|
+
68: $VA,
|
|
1242
|
+
69: $VB,
|
|
1243
|
+
70: $VC,
|
|
1244
|
+
71: $VD,
|
|
1245
|
+
72: $VE,
|
|
1246
|
+
73: $VF,
|
|
1247
|
+
74: $VG
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
12: [1, 118],
|
|
1251
|
+
33: [1, 117]
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
35: 119,
|
|
1255
|
+
75: 81,
|
|
1256
|
+
76: $VK,
|
|
1257
|
+
77: $VL,
|
|
1258
|
+
79: $VM,
|
|
1259
|
+
80: $VN
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
35: 120,
|
|
1263
|
+
75: 81,
|
|
1264
|
+
76: $VK,
|
|
1265
|
+
77: $VL,
|
|
1266
|
+
79: $VM,
|
|
1267
|
+
80: $VN
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
35: 121,
|
|
1271
|
+
75: 81,
|
|
1272
|
+
76: $VK,
|
|
1273
|
+
77: $VL,
|
|
1274
|
+
79: $VM,
|
|
1275
|
+
80: $VN
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
35: 122,
|
|
1279
|
+
75: 81,
|
|
1280
|
+
76: $VK,
|
|
1281
|
+
77: $VL,
|
|
1282
|
+
79: $VM,
|
|
1283
|
+
80: $VN
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
35: 123,
|
|
1287
|
+
75: 81,
|
|
1288
|
+
76: $VK,
|
|
1289
|
+
77: $VL,
|
|
1290
|
+
79: $VM,
|
|
1291
|
+
80: $VN
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
35: 124,
|
|
1295
|
+
75: 81,
|
|
1296
|
+
76: $VK,
|
|
1297
|
+
77: $VL,
|
|
1298
|
+
79: $VM,
|
|
1299
|
+
80: $VN
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
35: 125,
|
|
1303
|
+
75: 81,
|
|
1304
|
+
76: $VK,
|
|
1305
|
+
77: $VL,
|
|
1306
|
+
79: $VM,
|
|
1307
|
+
80: $VN
|
|
1308
|
+
},
|
|
1309
|
+
{ 14: [1, 126] },
|
|
1310
|
+
{ 14: [1, 127] },
|
|
1311
|
+
{ 14: [1, 128] },
|
|
1312
|
+
{ 14: [1, 129] },
|
|
1313
|
+
{ 1: [2, 8] },
|
|
1314
|
+
o($VH, [2, 15]),
|
|
1315
|
+
o($VI, [2, 17], {
|
|
1316
|
+
21: 22,
|
|
1317
|
+
19: 130,
|
|
1318
|
+
22: $V0,
|
|
1319
|
+
23: $V1,
|
|
1320
|
+
24: $V2,
|
|
1321
|
+
26: $V3,
|
|
1322
|
+
28: $V4
|
|
1323
|
+
}),
|
|
1324
|
+
o($VH, [2, 37], {
|
|
1325
|
+
19: 20,
|
|
1326
|
+
20: 21,
|
|
1327
|
+
21: 22,
|
|
1328
|
+
43: 23,
|
|
1329
|
+
29: 49,
|
|
1330
|
+
30: 61,
|
|
1331
|
+
32: 62,
|
|
1332
|
+
13: 131,
|
|
1333
|
+
22: $V0,
|
|
1334
|
+
23: $V1,
|
|
1335
|
+
24: $V2,
|
|
1336
|
+
26: $V3,
|
|
1337
|
+
28: $V4,
|
|
1338
|
+
34: $V5,
|
|
1339
|
+
36: $V6,
|
|
1340
|
+
37: $V7,
|
|
1341
|
+
38: $V8,
|
|
1342
|
+
39: $V9,
|
|
1343
|
+
40: $Va,
|
|
1344
|
+
41: $Vb,
|
|
1345
|
+
44: $Vc,
|
|
1346
|
+
45: $Vd,
|
|
1347
|
+
46: $Ve,
|
|
1348
|
+
47: $Vf,
|
|
1349
|
+
48: $Vg,
|
|
1350
|
+
49: $Vh,
|
|
1351
|
+
50: $Vi,
|
|
1352
|
+
51: $Vj,
|
|
1353
|
+
52: $Vk,
|
|
1354
|
+
53: $Vl,
|
|
1355
|
+
54: $Vm,
|
|
1356
|
+
55: $Vn,
|
|
1357
|
+
56: $Vo,
|
|
1358
|
+
57: $Vp,
|
|
1359
|
+
58: $Vq,
|
|
1360
|
+
59: $Vr,
|
|
1361
|
+
60: $Vs,
|
|
1362
|
+
61: $Vt,
|
|
1363
|
+
62: $Vu,
|
|
1364
|
+
63: $Vv,
|
|
1365
|
+
64: $Vw,
|
|
1366
|
+
65: $Vx,
|
|
1367
|
+
66: $Vy,
|
|
1368
|
+
67: $Vz,
|
|
1369
|
+
68: $VA,
|
|
1370
|
+
69: $VB,
|
|
1371
|
+
70: $VC,
|
|
1372
|
+
71: $VD,
|
|
1373
|
+
72: $VE,
|
|
1374
|
+
73: $VF,
|
|
1375
|
+
74: $VG
|
|
1376
|
+
}),
|
|
1377
|
+
o($VJ, [2, 21]),
|
|
1378
|
+
o($VJ, [2, 22]),
|
|
1379
|
+
o($VO, [2, 39]),
|
|
1380
|
+
o($VP, [2, 71], {
|
|
1381
|
+
75: 81,
|
|
1382
|
+
35: 132,
|
|
1383
|
+
76: $VK,
|
|
1384
|
+
77: $VL,
|
|
1385
|
+
79: $VM,
|
|
1386
|
+
80: $VN
|
|
1387
|
+
}),
|
|
1388
|
+
o($VQ, [2, 73]),
|
|
1389
|
+
{ 78: [1, 133] },
|
|
1390
|
+
o($VQ, [2, 75]),
|
|
1391
|
+
o($VQ, [2, 76]),
|
|
1392
|
+
o($VO, [2, 40]),
|
|
1393
|
+
o($VO, [2, 41]),
|
|
1394
|
+
o($VO, [2, 42]),
|
|
1395
|
+
o($VO, [2, 43]),
|
|
1396
|
+
o($VO, [2, 44]),
|
|
1397
|
+
o($VO, [2, 45]),
|
|
1398
|
+
o($VO, [2, 46]),
|
|
1399
|
+
o($VO, [2, 47]),
|
|
1400
|
+
o($VO, [2, 48]),
|
|
1401
|
+
o($VO, [2, 49]),
|
|
1402
|
+
o($VO, [2, 50]),
|
|
1403
|
+
o($VO, [2, 51]),
|
|
1404
|
+
o($VO, [2, 52]),
|
|
1405
|
+
o($VO, [2, 53]),
|
|
1406
|
+
o($VO, [2, 54]),
|
|
1407
|
+
o($VO, [2, 55]),
|
|
1408
|
+
o($VO, [2, 56]),
|
|
1409
|
+
o($VO, [2, 57]),
|
|
1410
|
+
o($VO, [2, 58]),
|
|
1411
|
+
o($VO, [2, 60]),
|
|
1412
|
+
o($VO, [2, 61]),
|
|
1413
|
+
o($VO, [2, 62]),
|
|
1414
|
+
o($VO, [2, 63]),
|
|
1415
|
+
o($VO, [2, 64]),
|
|
1416
|
+
o($VO, [2, 65]),
|
|
1417
|
+
o($VO, [2, 66]),
|
|
1418
|
+
o($VO, [2, 67]),
|
|
1419
|
+
o($VO, [2, 68]),
|
|
1420
|
+
o($VO, [2, 69]),
|
|
1421
|
+
o($VO, [2, 70]),
|
|
1422
|
+
{
|
|
1423
|
+
31: 134,
|
|
1424
|
+
42: [1, 135]
|
|
1425
|
+
},
|
|
1426
|
+
{ 12: [1, 136] },
|
|
1427
|
+
{ 33: [1, 137] },
|
|
1428
|
+
o($VR, [2, 28]),
|
|
1429
|
+
o($VR, [2, 29]),
|
|
1430
|
+
o($VR, [2, 30]),
|
|
1431
|
+
o($VR, [2, 31]),
|
|
1432
|
+
o($VR, [2, 32]),
|
|
1433
|
+
o($VR, [2, 33]),
|
|
1434
|
+
o($VR, [2, 34]),
|
|
1435
|
+
{ 1: [2, 9] },
|
|
1436
|
+
{ 1: [2, 10] },
|
|
1437
|
+
{ 1: [2, 11] },
|
|
1438
|
+
{ 1: [2, 12] },
|
|
1439
|
+
o($VI, [2, 18]),
|
|
1440
|
+
o($VH, [2, 38]),
|
|
1441
|
+
o($VP, [2, 72]),
|
|
1442
|
+
o($VQ, [2, 74]),
|
|
1443
|
+
o($VO, [2, 24]),
|
|
1444
|
+
o($VO, [2, 35]),
|
|
1445
|
+
o($VS, [2, 25]),
|
|
1446
|
+
o($VS, [2, 26], { 12: [1, 138] }),
|
|
1447
|
+
o($VS, [2, 27])
|
|
1448
|
+
],
|
|
1449
|
+
defaultActions: {
|
|
1450
|
+
2: [2, 1],
|
|
1451
|
+
3: [2, 2],
|
|
1452
|
+
4: [2, 7],
|
|
1453
|
+
5: [2, 3],
|
|
1454
|
+
6: [2, 4],
|
|
1455
|
+
7: [2, 5],
|
|
1456
|
+
8: [2, 6],
|
|
1457
|
+
74: [2, 8],
|
|
1458
|
+
126: [2, 9],
|
|
1459
|
+
127: [2, 10],
|
|
1460
|
+
128: [2, 11],
|
|
1461
|
+
129: [2, 12]
|
|
1462
|
+
},
|
|
1463
|
+
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
1464
|
+
if (hash.recoverable) this.trace(str);
|
|
1465
|
+
else {
|
|
1466
|
+
var error = new Error(str);
|
|
1467
|
+
error.hash = hash;
|
|
1468
|
+
throw error;
|
|
1469
|
+
}
|
|
1470
|
+
}, "parseError"),
|
|
1471
|
+
parse: /* @__PURE__ */ __name(function parse(input) {
|
|
1472
|
+
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
1473
|
+
var args = lstack.slice.call(arguments, 1);
|
|
1474
|
+
var lexer2 = Object.create(this.lexer);
|
|
1475
|
+
var sharedState = { yy: {} };
|
|
1476
|
+
for (var k in this.yy) if (Object.prototype.hasOwnProperty.call(this.yy, k)) sharedState.yy[k] = this.yy[k];
|
|
1477
|
+
lexer2.setInput(input, sharedState.yy);
|
|
1478
|
+
sharedState.yy.lexer = lexer2;
|
|
1479
|
+
sharedState.yy.parser = this;
|
|
1480
|
+
if (typeof lexer2.yylloc == "undefined") lexer2.yylloc = {};
|
|
1481
|
+
var yyloc = lexer2.yylloc;
|
|
1482
|
+
lstack.push(yyloc);
|
|
1483
|
+
var ranges = lexer2.options && lexer2.options.ranges;
|
|
1484
|
+
if (typeof sharedState.yy.parseError === "function") this.parseError = sharedState.yy.parseError;
|
|
1485
|
+
else this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1486
|
+
function popStack(n) {
|
|
1487
|
+
stack.length = stack.length - 2 * n;
|
|
1488
|
+
vstack.length = vstack.length - n;
|
|
1489
|
+
lstack.length = lstack.length - n;
|
|
1490
|
+
}
|
|
1491
|
+
__name(popStack, "popStack");
|
|
1492
|
+
function lex() {
|
|
1493
|
+
var token = tstack.pop() || lexer2.lex() || EOF;
|
|
1494
|
+
if (typeof token !== "number") {
|
|
1495
|
+
if (token instanceof Array) {
|
|
1496
|
+
tstack = token;
|
|
1497
|
+
token = tstack.pop();
|
|
1498
|
+
}
|
|
1499
|
+
token = self.symbols_[token] || token;
|
|
1500
|
+
}
|
|
1501
|
+
return token;
|
|
1502
|
+
}
|
|
1503
|
+
__name(lex, "lex");
|
|
1504
|
+
var symbol, preErrorSymbol, state, action, r, yyval = {}, p, len, newState, expected;
|
|
1505
|
+
while (true) {
|
|
1506
|
+
state = stack[stack.length - 1];
|
|
1507
|
+
if (this.defaultActions[state]) action = this.defaultActions[state];
|
|
1508
|
+
else {
|
|
1509
|
+
if (symbol === null || typeof symbol == "undefined") symbol = lex();
|
|
1510
|
+
action = table[state] && table[state][symbol];
|
|
1511
|
+
}
|
|
1512
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
1513
|
+
var errStr = "";
|
|
1514
|
+
expected = [];
|
|
1515
|
+
for (p in table[state]) if (this.terminals_[p] && p > TERROR) expected.push("'" + this.terminals_[p] + "'");
|
|
1516
|
+
if (lexer2.showPosition) errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
1517
|
+
else errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
1518
|
+
this.parseError(errStr, {
|
|
1519
|
+
text: lexer2.match,
|
|
1520
|
+
token: this.terminals_[symbol] || symbol,
|
|
1521
|
+
line: lexer2.yylineno,
|
|
1522
|
+
loc: yyloc,
|
|
1523
|
+
expected
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
if (action[0] instanceof Array && action.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
1527
|
+
switch (action[0]) {
|
|
1528
|
+
case 1:
|
|
1529
|
+
stack.push(symbol);
|
|
1530
|
+
vstack.push(lexer2.yytext);
|
|
1531
|
+
lstack.push(lexer2.yylloc);
|
|
1532
|
+
stack.push(action[1]);
|
|
1533
|
+
symbol = null;
|
|
1534
|
+
if (!preErrorSymbol) {
|
|
1535
|
+
yyleng = lexer2.yyleng;
|
|
1536
|
+
yytext = lexer2.yytext;
|
|
1537
|
+
yylineno = lexer2.yylineno;
|
|
1538
|
+
yyloc = lexer2.yylloc;
|
|
1539
|
+
if (recovering > 0) recovering--;
|
|
1540
|
+
} else {
|
|
1541
|
+
symbol = preErrorSymbol;
|
|
1542
|
+
preErrorSymbol = null;
|
|
1543
|
+
}
|
|
1544
|
+
break;
|
|
1545
|
+
case 2:
|
|
1546
|
+
len = this.productions_[action[1]][1];
|
|
1547
|
+
yyval.$ = vstack[vstack.length - len];
|
|
1548
|
+
yyval._$ = {
|
|
1549
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
1550
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
1551
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
1552
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
1553
|
+
};
|
|
1554
|
+
if (ranges) yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
|
1555
|
+
r = this.performAction.apply(yyval, [
|
|
1556
|
+
yytext,
|
|
1557
|
+
yyleng,
|
|
1558
|
+
yylineno,
|
|
1559
|
+
sharedState.yy,
|
|
1560
|
+
action[1],
|
|
1561
|
+
vstack,
|
|
1562
|
+
lstack
|
|
1563
|
+
].concat(args));
|
|
1564
|
+
if (typeof r !== "undefined") return r;
|
|
1565
|
+
if (len) {
|
|
1566
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
1567
|
+
vstack = vstack.slice(0, -1 * len);
|
|
1568
|
+
lstack = lstack.slice(0, -1 * len);
|
|
1569
|
+
}
|
|
1570
|
+
stack.push(this.productions_[action[1]][0]);
|
|
1571
|
+
vstack.push(yyval.$);
|
|
1572
|
+
lstack.push(yyval._$);
|
|
1573
|
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
1574
|
+
stack.push(newState);
|
|
1575
|
+
break;
|
|
1576
|
+
case 3: return true;
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
return true;
|
|
1580
|
+
}, "parse")
|
|
1581
|
+
};
|
|
1582
|
+
parser2.lexer = /* @__PURE__ */ (function() {
|
|
1583
|
+
return {
|
|
1584
|
+
EOF: 1,
|
|
1585
|
+
parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
|
|
1586
|
+
if (this.yy.parser) this.yy.parser.parseError(str, hash);
|
|
1587
|
+
else throw new Error(str);
|
|
1588
|
+
}, "parseError"),
|
|
1589
|
+
setInput: /* @__PURE__ */ __name(function(input, yy) {
|
|
1590
|
+
this.yy = yy || this.yy || {};
|
|
1591
|
+
this._input = input;
|
|
1592
|
+
this._more = this._backtrack = this.done = false;
|
|
1593
|
+
this.yylineno = this.yyleng = 0;
|
|
1594
|
+
this.yytext = this.matched = this.match = "";
|
|
1595
|
+
this.conditionStack = ["INITIAL"];
|
|
1596
|
+
this.yylloc = {
|
|
1597
|
+
first_line: 1,
|
|
1598
|
+
first_column: 0,
|
|
1599
|
+
last_line: 1,
|
|
1600
|
+
last_column: 0
|
|
1601
|
+
};
|
|
1602
|
+
if (this.options.ranges) this.yylloc.range = [0, 0];
|
|
1603
|
+
this.offset = 0;
|
|
1604
|
+
return this;
|
|
1605
|
+
}, "setInput"),
|
|
1606
|
+
input: /* @__PURE__ */ __name(function() {
|
|
1607
|
+
var ch = this._input[0];
|
|
1608
|
+
this.yytext += ch;
|
|
1609
|
+
this.yyleng++;
|
|
1610
|
+
this.offset++;
|
|
1611
|
+
this.match += ch;
|
|
1612
|
+
this.matched += ch;
|
|
1613
|
+
if (ch.match(/(?:\r\n?|\n).*/g)) {
|
|
1614
|
+
this.yylineno++;
|
|
1615
|
+
this.yylloc.last_line++;
|
|
1616
|
+
} else this.yylloc.last_column++;
|
|
1617
|
+
if (this.options.ranges) this.yylloc.range[1]++;
|
|
1618
|
+
this._input = this._input.slice(1);
|
|
1619
|
+
return ch;
|
|
1620
|
+
}, "input"),
|
|
1621
|
+
unput: /* @__PURE__ */ __name(function(ch) {
|
|
1622
|
+
var len = ch.length;
|
|
1623
|
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
1624
|
+
this._input = ch + this._input;
|
|
1625
|
+
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
1626
|
+
this.offset -= len;
|
|
1627
|
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
1628
|
+
this.match = this.match.substr(0, this.match.length - 1);
|
|
1629
|
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
1630
|
+
if (lines.length - 1) this.yylineno -= lines.length - 1;
|
|
1631
|
+
var r = this.yylloc.range;
|
|
1632
|
+
this.yylloc = {
|
|
1633
|
+
first_line: this.yylloc.first_line,
|
|
1634
|
+
last_line: this.yylineno + 1,
|
|
1635
|
+
first_column: this.yylloc.first_column,
|
|
1636
|
+
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
1637
|
+
};
|
|
1638
|
+
if (this.options.ranges) this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
1639
|
+
this.yyleng = this.yytext.length;
|
|
1640
|
+
return this;
|
|
1641
|
+
}, "unput"),
|
|
1642
|
+
more: /* @__PURE__ */ __name(function() {
|
|
1643
|
+
this._more = true;
|
|
1644
|
+
return this;
|
|
1645
|
+
}, "more"),
|
|
1646
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
1647
|
+
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
1648
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
1649
|
+
text: "",
|
|
1650
|
+
token: null,
|
|
1651
|
+
line: this.yylineno
|
|
1652
|
+
});
|
|
1653
|
+
return this;
|
|
1654
|
+
}, "reject"),
|
|
1655
|
+
less: /* @__PURE__ */ __name(function(n) {
|
|
1656
|
+
this.unput(this.match.slice(n));
|
|
1657
|
+
}, "less"),
|
|
1658
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
1659
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1660
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
1661
|
+
}, "pastInput"),
|
|
1662
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
1663
|
+
var next = this.match;
|
|
1664
|
+
if (next.length < 20) next += this._input.substr(0, 20 - next.length);
|
|
1665
|
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1666
|
+
}, "upcomingInput"),
|
|
1667
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
1668
|
+
var pre = this.pastInput();
|
|
1669
|
+
var c2 = new Array(pre.length + 1).join("-");
|
|
1670
|
+
return pre + this.upcomingInput() + "\n" + c2 + "^";
|
|
1671
|
+
}, "showPosition"),
|
|
1672
|
+
test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
|
|
1673
|
+
var token, lines, backup;
|
|
1674
|
+
if (this.options.backtrack_lexer) {
|
|
1675
|
+
backup = {
|
|
1676
|
+
yylineno: this.yylineno,
|
|
1677
|
+
yylloc: {
|
|
1678
|
+
first_line: this.yylloc.first_line,
|
|
1679
|
+
last_line: this.last_line,
|
|
1680
|
+
first_column: this.yylloc.first_column,
|
|
1681
|
+
last_column: this.yylloc.last_column
|
|
1682
|
+
},
|
|
1683
|
+
yytext: this.yytext,
|
|
1684
|
+
match: this.match,
|
|
1685
|
+
matches: this.matches,
|
|
1686
|
+
matched: this.matched,
|
|
1687
|
+
yyleng: this.yyleng,
|
|
1688
|
+
offset: this.offset,
|
|
1689
|
+
_more: this._more,
|
|
1690
|
+
_input: this._input,
|
|
1691
|
+
yy: this.yy,
|
|
1692
|
+
conditionStack: this.conditionStack.slice(0),
|
|
1693
|
+
done: this.done
|
|
1694
|
+
};
|
|
1695
|
+
if (this.options.ranges) backup.yylloc.range = this.yylloc.range.slice(0);
|
|
1696
|
+
}
|
|
1697
|
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
1698
|
+
if (lines) this.yylineno += lines.length;
|
|
1699
|
+
this.yylloc = {
|
|
1700
|
+
first_line: this.yylloc.last_line,
|
|
1701
|
+
last_line: this.yylineno + 1,
|
|
1702
|
+
first_column: this.yylloc.last_column,
|
|
1703
|
+
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
1704
|
+
};
|
|
1705
|
+
this.yytext += match[0];
|
|
1706
|
+
this.match += match[0];
|
|
1707
|
+
this.matches = match;
|
|
1708
|
+
this.yyleng = this.yytext.length;
|
|
1709
|
+
if (this.options.ranges) this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
1710
|
+
this._more = false;
|
|
1711
|
+
this._backtrack = false;
|
|
1712
|
+
this._input = this._input.slice(match[0].length);
|
|
1713
|
+
this.matched += match[0];
|
|
1714
|
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
1715
|
+
if (this.done && this._input) this.done = false;
|
|
1716
|
+
if (token) return token;
|
|
1717
|
+
else if (this._backtrack) {
|
|
1718
|
+
for (var k in backup) this[k] = backup[k];
|
|
1719
|
+
return false;
|
|
1720
|
+
}
|
|
1721
|
+
return false;
|
|
1722
|
+
}, "test_match"),
|
|
1723
|
+
next: /* @__PURE__ */ __name(function() {
|
|
1724
|
+
if (this.done) return this.EOF;
|
|
1725
|
+
if (!this._input) this.done = true;
|
|
1726
|
+
var token, match, tempMatch, index;
|
|
1727
|
+
if (!this._more) {
|
|
1728
|
+
this.yytext = "";
|
|
1729
|
+
this.match = "";
|
|
1730
|
+
}
|
|
1731
|
+
var rules = this._currentRules();
|
|
1732
|
+
for (var i = 0; i < rules.length; i++) {
|
|
1733
|
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
1734
|
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
1735
|
+
match = tempMatch;
|
|
1736
|
+
index = i;
|
|
1737
|
+
if (this.options.backtrack_lexer) {
|
|
1738
|
+
token = this.test_match(tempMatch, rules[i]);
|
|
1739
|
+
if (token !== false) return token;
|
|
1740
|
+
else if (this._backtrack) {
|
|
1741
|
+
match = false;
|
|
1742
|
+
continue;
|
|
1743
|
+
} else return false;
|
|
1744
|
+
} else if (!this.options.flex) break;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
if (match) {
|
|
1748
|
+
token = this.test_match(match, rules[index]);
|
|
1749
|
+
if (token !== false) return token;
|
|
1750
|
+
return false;
|
|
1751
|
+
}
|
|
1752
|
+
if (this._input === "") return this.EOF;
|
|
1753
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1754
|
+
text: "",
|
|
1755
|
+
token: null,
|
|
1756
|
+
line: this.yylineno
|
|
1757
|
+
});
|
|
1758
|
+
}, "next"),
|
|
1759
|
+
lex: /* @__PURE__ */ __name(function lex() {
|
|
1760
|
+
var r = this.next();
|
|
1761
|
+
if (r) return r;
|
|
1762
|
+
else return this.lex();
|
|
1763
|
+
}, "lex"),
|
|
1764
|
+
begin: /* @__PURE__ */ __name(function begin(condition) {
|
|
1765
|
+
this.conditionStack.push(condition);
|
|
1766
|
+
}, "begin"),
|
|
1767
|
+
popState: /* @__PURE__ */ __name(function popState() {
|
|
1768
|
+
if (this.conditionStack.length - 1 > 0) return this.conditionStack.pop();
|
|
1769
|
+
else return this.conditionStack[0];
|
|
1770
|
+
}, "popState"),
|
|
1771
|
+
_currentRules: /* @__PURE__ */ __name(function _currentRules() {
|
|
1772
|
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
1773
|
+
else return this.conditions["INITIAL"].rules;
|
|
1774
|
+
}, "_currentRules"),
|
|
1775
|
+
topState: /* @__PURE__ */ __name(function topState(n) {
|
|
1776
|
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
1777
|
+
if (n >= 0) return this.conditionStack[n];
|
|
1778
|
+
else return "INITIAL";
|
|
1779
|
+
}, "topState"),
|
|
1780
|
+
pushState: /* @__PURE__ */ __name(function pushState(condition) {
|
|
1781
|
+
this.begin(condition);
|
|
1782
|
+
}, "pushState"),
|
|
1783
|
+
stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
|
|
1784
|
+
return this.conditionStack.length;
|
|
1785
|
+
}, "stateStackSize"),
|
|
1786
|
+
options: {},
|
|
1787
|
+
performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
1788
|
+
switch ($avoiding_name_collisions) {
|
|
1789
|
+
case 0: return 6;
|
|
1790
|
+
case 1: return 7;
|
|
1791
|
+
case 2: return 8;
|
|
1792
|
+
case 3: return 9;
|
|
1793
|
+
case 4: return 22;
|
|
1794
|
+
case 5: return 23;
|
|
1795
|
+
case 6:
|
|
1796
|
+
this.begin("acc_title");
|
|
1797
|
+
return 24;
|
|
1798
|
+
case 7:
|
|
1799
|
+
this.popState();
|
|
1800
|
+
return "acc_title_value";
|
|
1801
|
+
case 8:
|
|
1802
|
+
this.begin("acc_descr");
|
|
1803
|
+
return 26;
|
|
1804
|
+
case 9:
|
|
1805
|
+
this.popState();
|
|
1806
|
+
return "acc_descr_value";
|
|
1807
|
+
case 10:
|
|
1808
|
+
this.begin("acc_descr_multiline");
|
|
1809
|
+
break;
|
|
1810
|
+
case 11:
|
|
1811
|
+
this.popState();
|
|
1812
|
+
break;
|
|
1813
|
+
case 12: return "acc_descr_multiline_value";
|
|
1814
|
+
case 13: break;
|
|
1815
|
+
case 14:
|
|
1816
|
+
c;
|
|
1817
|
+
break;
|
|
1818
|
+
case 15: return 12;
|
|
1819
|
+
case 16: break;
|
|
1820
|
+
case 17: return 11;
|
|
1821
|
+
case 18: return 15;
|
|
1822
|
+
case 19: return 16;
|
|
1823
|
+
case 20: return 17;
|
|
1824
|
+
case 21: return 18;
|
|
1825
|
+
case 22:
|
|
1826
|
+
this.begin("person_ext");
|
|
1827
|
+
return 45;
|
|
1828
|
+
case 23:
|
|
1829
|
+
this.begin("person");
|
|
1830
|
+
return 44;
|
|
1831
|
+
case 24:
|
|
1832
|
+
this.begin("system_ext_queue");
|
|
1833
|
+
return 51;
|
|
1834
|
+
case 25:
|
|
1835
|
+
this.begin("system_ext_db");
|
|
1836
|
+
return 50;
|
|
1837
|
+
case 26:
|
|
1838
|
+
this.begin("system_ext");
|
|
1839
|
+
return 49;
|
|
1840
|
+
case 27:
|
|
1841
|
+
this.begin("system_queue");
|
|
1842
|
+
return 48;
|
|
1843
|
+
case 28:
|
|
1844
|
+
this.begin("system_db");
|
|
1845
|
+
return 47;
|
|
1846
|
+
case 29:
|
|
1847
|
+
this.begin("system");
|
|
1848
|
+
return 46;
|
|
1849
|
+
case 30:
|
|
1850
|
+
this.begin("boundary");
|
|
1851
|
+
return 37;
|
|
1852
|
+
case 31:
|
|
1853
|
+
this.begin("enterprise_boundary");
|
|
1854
|
+
return 34;
|
|
1855
|
+
case 32:
|
|
1856
|
+
this.begin("system_boundary");
|
|
1857
|
+
return 36;
|
|
1858
|
+
case 33:
|
|
1859
|
+
this.begin("container_ext_queue");
|
|
1860
|
+
return 57;
|
|
1861
|
+
case 34:
|
|
1862
|
+
this.begin("container_ext_db");
|
|
1863
|
+
return 56;
|
|
1864
|
+
case 35:
|
|
1865
|
+
this.begin("container_ext");
|
|
1866
|
+
return 55;
|
|
1867
|
+
case 36:
|
|
1868
|
+
this.begin("container_queue");
|
|
1869
|
+
return 54;
|
|
1870
|
+
case 37:
|
|
1871
|
+
this.begin("container_db");
|
|
1872
|
+
return 53;
|
|
1873
|
+
case 38:
|
|
1874
|
+
this.begin("container");
|
|
1875
|
+
return 52;
|
|
1876
|
+
case 39:
|
|
1877
|
+
this.begin("container_boundary");
|
|
1878
|
+
return 38;
|
|
1879
|
+
case 40:
|
|
1880
|
+
this.begin("component_ext_queue");
|
|
1881
|
+
return 63;
|
|
1882
|
+
case 41:
|
|
1883
|
+
this.begin("component_ext_db");
|
|
1884
|
+
return 62;
|
|
1885
|
+
case 42:
|
|
1886
|
+
this.begin("component_ext");
|
|
1887
|
+
return 61;
|
|
1888
|
+
case 43:
|
|
1889
|
+
this.begin("component_queue");
|
|
1890
|
+
return 60;
|
|
1891
|
+
case 44:
|
|
1892
|
+
this.begin("component_db");
|
|
1893
|
+
return 59;
|
|
1894
|
+
case 45:
|
|
1895
|
+
this.begin("component");
|
|
1896
|
+
return 58;
|
|
1897
|
+
case 46:
|
|
1898
|
+
this.begin("node");
|
|
1899
|
+
return 39;
|
|
1900
|
+
case 47:
|
|
1901
|
+
this.begin("node");
|
|
1902
|
+
return 39;
|
|
1903
|
+
case 48:
|
|
1904
|
+
this.begin("node_l");
|
|
1905
|
+
return 40;
|
|
1906
|
+
case 49:
|
|
1907
|
+
this.begin("node_r");
|
|
1908
|
+
return 41;
|
|
1909
|
+
case 50:
|
|
1910
|
+
this.begin("rel");
|
|
1911
|
+
return 64;
|
|
1912
|
+
case 51:
|
|
1913
|
+
this.begin("birel");
|
|
1914
|
+
return 65;
|
|
1915
|
+
case 52:
|
|
1916
|
+
this.begin("rel_u");
|
|
1917
|
+
return 66;
|
|
1918
|
+
case 53:
|
|
1919
|
+
this.begin("rel_u");
|
|
1920
|
+
return 66;
|
|
1921
|
+
case 54:
|
|
1922
|
+
this.begin("rel_d");
|
|
1923
|
+
return 67;
|
|
1924
|
+
case 55:
|
|
1925
|
+
this.begin("rel_d");
|
|
1926
|
+
return 67;
|
|
1927
|
+
case 56:
|
|
1928
|
+
this.begin("rel_l");
|
|
1929
|
+
return 68;
|
|
1930
|
+
case 57:
|
|
1931
|
+
this.begin("rel_l");
|
|
1932
|
+
return 68;
|
|
1933
|
+
case 58:
|
|
1934
|
+
this.begin("rel_r");
|
|
1935
|
+
return 69;
|
|
1936
|
+
case 59:
|
|
1937
|
+
this.begin("rel_r");
|
|
1938
|
+
return 69;
|
|
1939
|
+
case 60:
|
|
1940
|
+
this.begin("rel_b");
|
|
1941
|
+
return 70;
|
|
1942
|
+
case 61:
|
|
1943
|
+
this.begin("rel_index");
|
|
1944
|
+
return 71;
|
|
1945
|
+
case 62:
|
|
1946
|
+
this.begin("update_el_style");
|
|
1947
|
+
return 72;
|
|
1948
|
+
case 63:
|
|
1949
|
+
this.begin("update_rel_style");
|
|
1950
|
+
return 73;
|
|
1951
|
+
case 64:
|
|
1952
|
+
this.begin("update_layout_config");
|
|
1953
|
+
return 74;
|
|
1954
|
+
case 65: return "EOF_IN_STRUCT";
|
|
1955
|
+
case 66:
|
|
1956
|
+
this.begin("attribute");
|
|
1957
|
+
return "ATTRIBUTE_EMPTY";
|
|
1958
|
+
case 67:
|
|
1959
|
+
this.begin("attribute");
|
|
1960
|
+
break;
|
|
1961
|
+
case 68:
|
|
1962
|
+
this.popState();
|
|
1963
|
+
this.popState();
|
|
1964
|
+
break;
|
|
1965
|
+
case 69: return 80;
|
|
1966
|
+
case 70: break;
|
|
1967
|
+
case 71: return 80;
|
|
1968
|
+
case 72:
|
|
1969
|
+
this.begin("string");
|
|
1970
|
+
break;
|
|
1971
|
+
case 73:
|
|
1972
|
+
this.popState();
|
|
1973
|
+
break;
|
|
1974
|
+
case 74: return "STR";
|
|
1975
|
+
case 75:
|
|
1976
|
+
this.begin("string_kv");
|
|
1977
|
+
break;
|
|
1978
|
+
case 76:
|
|
1979
|
+
this.begin("string_kv_key");
|
|
1980
|
+
return "STR_KEY";
|
|
1981
|
+
case 77:
|
|
1982
|
+
this.popState();
|
|
1983
|
+
this.begin("string_kv_value");
|
|
1984
|
+
break;
|
|
1985
|
+
case 78: return "STR_VALUE";
|
|
1986
|
+
case 79:
|
|
1987
|
+
this.popState();
|
|
1988
|
+
this.popState();
|
|
1989
|
+
break;
|
|
1990
|
+
case 80: return "STR";
|
|
1991
|
+
case 81: return "LBRACE";
|
|
1992
|
+
case 82: return "RBRACE";
|
|
1993
|
+
case 83: return "SPACE";
|
|
1994
|
+
case 84: return "EOL";
|
|
1995
|
+
case 85: return 14;
|
|
1996
|
+
}
|
|
1997
|
+
}, "anonymous"),
|
|
1998
|
+
rules: [
|
|
1999
|
+
/^(?:.*direction\s+TB[^\n]*)/,
|
|
2000
|
+
/^(?:.*direction\s+BT[^\n]*)/,
|
|
2001
|
+
/^(?:.*direction\s+RL[^\n]*)/,
|
|
2002
|
+
/^(?:.*direction\s+LR[^\n]*)/,
|
|
2003
|
+
/^(?:title\s[^#\n;]+)/,
|
|
2004
|
+
/^(?:accDescription\s[^#\n;]+)/,
|
|
2005
|
+
/^(?:accTitle\s*:\s*)/,
|
|
2006
|
+
/^(?:(?!\n||)*[^\n]*)/,
|
|
2007
|
+
/^(?:accDescr\s*:\s*)/,
|
|
2008
|
+
/^(?:(?!\n||)*[^\n]*)/,
|
|
2009
|
+
/^(?:accDescr\s*\{\s*)/,
|
|
2010
|
+
/^(?:[\}])/,
|
|
2011
|
+
/^(?:[^\}]*)/,
|
|
2012
|
+
/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
|
|
2013
|
+
/^(?:%%[^\n]*(\r?\n)*)/,
|
|
2014
|
+
/^(?:\s*(\r?\n)+)/,
|
|
2015
|
+
/^(?:\s+)/,
|
|
2016
|
+
/^(?:C4Context\b)/,
|
|
2017
|
+
/^(?:C4Container\b)/,
|
|
2018
|
+
/^(?:C4Component\b)/,
|
|
2019
|
+
/^(?:C4Dynamic\b)/,
|
|
2020
|
+
/^(?:C4Deployment\b)/,
|
|
2021
|
+
/^(?:Person_Ext\b)/,
|
|
2022
|
+
/^(?:Person\b)/,
|
|
2023
|
+
/^(?:SystemQueue_Ext\b)/,
|
|
2024
|
+
/^(?:SystemDb_Ext\b)/,
|
|
2025
|
+
/^(?:System_Ext\b)/,
|
|
2026
|
+
/^(?:SystemQueue\b)/,
|
|
2027
|
+
/^(?:SystemDb\b)/,
|
|
2028
|
+
/^(?:System\b)/,
|
|
2029
|
+
/^(?:Boundary\b)/,
|
|
2030
|
+
/^(?:Enterprise_Boundary\b)/,
|
|
2031
|
+
/^(?:System_Boundary\b)/,
|
|
2032
|
+
/^(?:ContainerQueue_Ext\b)/,
|
|
2033
|
+
/^(?:ContainerDb_Ext\b)/,
|
|
2034
|
+
/^(?:Container_Ext\b)/,
|
|
2035
|
+
/^(?:ContainerQueue\b)/,
|
|
2036
|
+
/^(?:ContainerDb\b)/,
|
|
2037
|
+
/^(?:Container\b)/,
|
|
2038
|
+
/^(?:Container_Boundary\b)/,
|
|
2039
|
+
/^(?:ComponentQueue_Ext\b)/,
|
|
2040
|
+
/^(?:ComponentDb_Ext\b)/,
|
|
2041
|
+
/^(?:Component_Ext\b)/,
|
|
2042
|
+
/^(?:ComponentQueue\b)/,
|
|
2043
|
+
/^(?:ComponentDb\b)/,
|
|
2044
|
+
/^(?:Component\b)/,
|
|
2045
|
+
/^(?:Deployment_Node\b)/,
|
|
2046
|
+
/^(?:Node\b)/,
|
|
2047
|
+
/^(?:Node_L\b)/,
|
|
2048
|
+
/^(?:Node_R\b)/,
|
|
2049
|
+
/^(?:Rel\b)/,
|
|
2050
|
+
/^(?:BiRel\b)/,
|
|
2051
|
+
/^(?:Rel_Up\b)/,
|
|
2052
|
+
/^(?:Rel_U\b)/,
|
|
2053
|
+
/^(?:Rel_Down\b)/,
|
|
2054
|
+
/^(?:Rel_D\b)/,
|
|
2055
|
+
/^(?:Rel_Left\b)/,
|
|
2056
|
+
/^(?:Rel_L\b)/,
|
|
2057
|
+
/^(?:Rel_Right\b)/,
|
|
2058
|
+
/^(?:Rel_R\b)/,
|
|
2059
|
+
/^(?:Rel_Back\b)/,
|
|
2060
|
+
/^(?:RelIndex\b)/,
|
|
2061
|
+
/^(?:UpdateElementStyle\b)/,
|
|
2062
|
+
/^(?:UpdateRelStyle\b)/,
|
|
2063
|
+
/^(?:UpdateLayoutConfig\b)/,
|
|
2064
|
+
/^(?:$)/,
|
|
2065
|
+
/^(?:[(][ ]*[,])/,
|
|
2066
|
+
/^(?:[(])/,
|
|
2067
|
+
/^(?:[)])/,
|
|
2068
|
+
/^(?:,,)/,
|
|
2069
|
+
/^(?:,)/,
|
|
2070
|
+
/^(?:[ ]*["]["])/,
|
|
2071
|
+
/^(?:[ ]*["])/,
|
|
2072
|
+
/^(?:["])/,
|
|
2073
|
+
/^(?:[^"]*)/,
|
|
2074
|
+
/^(?:[ ]*[\$])/,
|
|
2075
|
+
/^(?:[^=]*)/,
|
|
2076
|
+
/^(?:[=][ ]*["])/,
|
|
2077
|
+
/^(?:[^"]+)/,
|
|
2078
|
+
/^(?:["])/,
|
|
2079
|
+
/^(?:[^,]+)/,
|
|
2080
|
+
/^(?:\{)/,
|
|
2081
|
+
/^(?:\})/,
|
|
2082
|
+
/^(?:[\s]+)/,
|
|
2083
|
+
/^(?:[\n\r]+)/,
|
|
2084
|
+
/^(?:$)/
|
|
2085
|
+
],
|
|
2086
|
+
conditions: {
|
|
2087
|
+
"acc_descr_multiline": {
|
|
2088
|
+
"rules": [11, 12],
|
|
2089
|
+
"inclusive": false
|
|
2090
|
+
},
|
|
2091
|
+
"acc_descr": {
|
|
2092
|
+
"rules": [9],
|
|
2093
|
+
"inclusive": false
|
|
2094
|
+
},
|
|
2095
|
+
"acc_title": {
|
|
2096
|
+
"rules": [7],
|
|
2097
|
+
"inclusive": false
|
|
2098
|
+
},
|
|
2099
|
+
"string_kv_value": {
|
|
2100
|
+
"rules": [78, 79],
|
|
2101
|
+
"inclusive": false
|
|
2102
|
+
},
|
|
2103
|
+
"string_kv_key": {
|
|
2104
|
+
"rules": [77],
|
|
2105
|
+
"inclusive": false
|
|
2106
|
+
},
|
|
2107
|
+
"string_kv": {
|
|
2108
|
+
"rules": [76],
|
|
2109
|
+
"inclusive": false
|
|
2110
|
+
},
|
|
2111
|
+
"string": {
|
|
2112
|
+
"rules": [73, 74],
|
|
2113
|
+
"inclusive": false
|
|
2114
|
+
},
|
|
2115
|
+
"attribute": {
|
|
2116
|
+
"rules": [
|
|
2117
|
+
68,
|
|
2118
|
+
69,
|
|
2119
|
+
70,
|
|
2120
|
+
71,
|
|
2121
|
+
72,
|
|
2122
|
+
75,
|
|
2123
|
+
80
|
|
2124
|
+
],
|
|
2125
|
+
"inclusive": false
|
|
2126
|
+
},
|
|
2127
|
+
"update_layout_config": {
|
|
2128
|
+
"rules": [
|
|
2129
|
+
65,
|
|
2130
|
+
66,
|
|
2131
|
+
67,
|
|
2132
|
+
68
|
|
2133
|
+
],
|
|
2134
|
+
"inclusive": false
|
|
2135
|
+
},
|
|
2136
|
+
"update_rel_style": {
|
|
2137
|
+
"rules": [
|
|
2138
|
+
65,
|
|
2139
|
+
66,
|
|
2140
|
+
67,
|
|
2141
|
+
68
|
|
2142
|
+
],
|
|
2143
|
+
"inclusive": false
|
|
2144
|
+
},
|
|
2145
|
+
"update_el_style": {
|
|
2146
|
+
"rules": [
|
|
2147
|
+
65,
|
|
2148
|
+
66,
|
|
2149
|
+
67,
|
|
2150
|
+
68
|
|
2151
|
+
],
|
|
2152
|
+
"inclusive": false
|
|
2153
|
+
},
|
|
2154
|
+
"rel_b": {
|
|
2155
|
+
"rules": [
|
|
2156
|
+
65,
|
|
2157
|
+
66,
|
|
2158
|
+
67,
|
|
2159
|
+
68
|
|
2160
|
+
],
|
|
2161
|
+
"inclusive": false
|
|
2162
|
+
},
|
|
2163
|
+
"rel_r": {
|
|
2164
|
+
"rules": [
|
|
2165
|
+
65,
|
|
2166
|
+
66,
|
|
2167
|
+
67,
|
|
2168
|
+
68
|
|
2169
|
+
],
|
|
2170
|
+
"inclusive": false
|
|
2171
|
+
},
|
|
2172
|
+
"rel_l": {
|
|
2173
|
+
"rules": [
|
|
2174
|
+
65,
|
|
2175
|
+
66,
|
|
2176
|
+
67,
|
|
2177
|
+
68
|
|
2178
|
+
],
|
|
2179
|
+
"inclusive": false
|
|
2180
|
+
},
|
|
2181
|
+
"rel_d": {
|
|
2182
|
+
"rules": [
|
|
2183
|
+
65,
|
|
2184
|
+
66,
|
|
2185
|
+
67,
|
|
2186
|
+
68
|
|
2187
|
+
],
|
|
2188
|
+
"inclusive": false
|
|
2189
|
+
},
|
|
2190
|
+
"rel_u": {
|
|
2191
|
+
"rules": [
|
|
2192
|
+
65,
|
|
2193
|
+
66,
|
|
2194
|
+
67,
|
|
2195
|
+
68
|
|
2196
|
+
],
|
|
2197
|
+
"inclusive": false
|
|
2198
|
+
},
|
|
2199
|
+
"rel_bi": {
|
|
2200
|
+
"rules": [],
|
|
2201
|
+
"inclusive": false
|
|
2202
|
+
},
|
|
2203
|
+
"rel": {
|
|
2204
|
+
"rules": [
|
|
2205
|
+
65,
|
|
2206
|
+
66,
|
|
2207
|
+
67,
|
|
2208
|
+
68
|
|
2209
|
+
],
|
|
2210
|
+
"inclusive": false
|
|
2211
|
+
},
|
|
2212
|
+
"node_r": {
|
|
2213
|
+
"rules": [
|
|
2214
|
+
65,
|
|
2215
|
+
66,
|
|
2216
|
+
67,
|
|
2217
|
+
68
|
|
2218
|
+
],
|
|
2219
|
+
"inclusive": false
|
|
2220
|
+
},
|
|
2221
|
+
"node_l": {
|
|
2222
|
+
"rules": [
|
|
2223
|
+
65,
|
|
2224
|
+
66,
|
|
2225
|
+
67,
|
|
2226
|
+
68
|
|
2227
|
+
],
|
|
2228
|
+
"inclusive": false
|
|
2229
|
+
},
|
|
2230
|
+
"node": {
|
|
2231
|
+
"rules": [
|
|
2232
|
+
65,
|
|
2233
|
+
66,
|
|
2234
|
+
67,
|
|
2235
|
+
68
|
|
2236
|
+
],
|
|
2237
|
+
"inclusive": false
|
|
2238
|
+
},
|
|
2239
|
+
"index": {
|
|
2240
|
+
"rules": [],
|
|
2241
|
+
"inclusive": false
|
|
2242
|
+
},
|
|
2243
|
+
"rel_index": {
|
|
2244
|
+
"rules": [
|
|
2245
|
+
65,
|
|
2246
|
+
66,
|
|
2247
|
+
67,
|
|
2248
|
+
68
|
|
2249
|
+
],
|
|
2250
|
+
"inclusive": false
|
|
2251
|
+
},
|
|
2252
|
+
"component_ext_queue": {
|
|
2253
|
+
"rules": [
|
|
2254
|
+
65,
|
|
2255
|
+
66,
|
|
2256
|
+
67,
|
|
2257
|
+
68
|
|
2258
|
+
],
|
|
2259
|
+
"inclusive": false
|
|
2260
|
+
},
|
|
2261
|
+
"component_ext_db": {
|
|
2262
|
+
"rules": [
|
|
2263
|
+
65,
|
|
2264
|
+
66,
|
|
2265
|
+
67,
|
|
2266
|
+
68
|
|
2267
|
+
],
|
|
2268
|
+
"inclusive": false
|
|
2269
|
+
},
|
|
2270
|
+
"component_ext": {
|
|
2271
|
+
"rules": [
|
|
2272
|
+
65,
|
|
2273
|
+
66,
|
|
2274
|
+
67,
|
|
2275
|
+
68
|
|
2276
|
+
],
|
|
2277
|
+
"inclusive": false
|
|
2278
|
+
},
|
|
2279
|
+
"component_queue": {
|
|
2280
|
+
"rules": [
|
|
2281
|
+
65,
|
|
2282
|
+
66,
|
|
2283
|
+
67,
|
|
2284
|
+
68
|
|
2285
|
+
],
|
|
2286
|
+
"inclusive": false
|
|
2287
|
+
},
|
|
2288
|
+
"component_db": {
|
|
2289
|
+
"rules": [
|
|
2290
|
+
65,
|
|
2291
|
+
66,
|
|
2292
|
+
67,
|
|
2293
|
+
68
|
|
2294
|
+
],
|
|
2295
|
+
"inclusive": false
|
|
2296
|
+
},
|
|
2297
|
+
"component": {
|
|
2298
|
+
"rules": [
|
|
2299
|
+
65,
|
|
2300
|
+
66,
|
|
2301
|
+
67,
|
|
2302
|
+
68
|
|
2303
|
+
],
|
|
2304
|
+
"inclusive": false
|
|
2305
|
+
},
|
|
2306
|
+
"container_boundary": {
|
|
2307
|
+
"rules": [
|
|
2308
|
+
65,
|
|
2309
|
+
66,
|
|
2310
|
+
67,
|
|
2311
|
+
68
|
|
2312
|
+
],
|
|
2313
|
+
"inclusive": false
|
|
2314
|
+
},
|
|
2315
|
+
"container_ext_queue": {
|
|
2316
|
+
"rules": [
|
|
2317
|
+
65,
|
|
2318
|
+
66,
|
|
2319
|
+
67,
|
|
2320
|
+
68
|
|
2321
|
+
],
|
|
2322
|
+
"inclusive": false
|
|
2323
|
+
},
|
|
2324
|
+
"container_ext_db": {
|
|
2325
|
+
"rules": [
|
|
2326
|
+
65,
|
|
2327
|
+
66,
|
|
2328
|
+
67,
|
|
2329
|
+
68
|
|
2330
|
+
],
|
|
2331
|
+
"inclusive": false
|
|
2332
|
+
},
|
|
2333
|
+
"container_ext": {
|
|
2334
|
+
"rules": [
|
|
2335
|
+
65,
|
|
2336
|
+
66,
|
|
2337
|
+
67,
|
|
2338
|
+
68
|
|
2339
|
+
],
|
|
2340
|
+
"inclusive": false
|
|
2341
|
+
},
|
|
2342
|
+
"container_queue": {
|
|
2343
|
+
"rules": [
|
|
2344
|
+
65,
|
|
2345
|
+
66,
|
|
2346
|
+
67,
|
|
2347
|
+
68
|
|
2348
|
+
],
|
|
2349
|
+
"inclusive": false
|
|
2350
|
+
},
|
|
2351
|
+
"container_db": {
|
|
2352
|
+
"rules": [
|
|
2353
|
+
65,
|
|
2354
|
+
66,
|
|
2355
|
+
67,
|
|
2356
|
+
68
|
|
2357
|
+
],
|
|
2358
|
+
"inclusive": false
|
|
2359
|
+
},
|
|
2360
|
+
"container": {
|
|
2361
|
+
"rules": [
|
|
2362
|
+
65,
|
|
2363
|
+
66,
|
|
2364
|
+
67,
|
|
2365
|
+
68
|
|
2366
|
+
],
|
|
2367
|
+
"inclusive": false
|
|
2368
|
+
},
|
|
2369
|
+
"birel": {
|
|
2370
|
+
"rules": [
|
|
2371
|
+
65,
|
|
2372
|
+
66,
|
|
2373
|
+
67,
|
|
2374
|
+
68
|
|
2375
|
+
],
|
|
2376
|
+
"inclusive": false
|
|
2377
|
+
},
|
|
2378
|
+
"system_boundary": {
|
|
2379
|
+
"rules": [
|
|
2380
|
+
65,
|
|
2381
|
+
66,
|
|
2382
|
+
67,
|
|
2383
|
+
68
|
|
2384
|
+
],
|
|
2385
|
+
"inclusive": false
|
|
2386
|
+
},
|
|
2387
|
+
"enterprise_boundary": {
|
|
2388
|
+
"rules": [
|
|
2389
|
+
65,
|
|
2390
|
+
66,
|
|
2391
|
+
67,
|
|
2392
|
+
68
|
|
2393
|
+
],
|
|
2394
|
+
"inclusive": false
|
|
2395
|
+
},
|
|
2396
|
+
"boundary": {
|
|
2397
|
+
"rules": [
|
|
2398
|
+
65,
|
|
2399
|
+
66,
|
|
2400
|
+
67,
|
|
2401
|
+
68
|
|
2402
|
+
],
|
|
2403
|
+
"inclusive": false
|
|
2404
|
+
},
|
|
2405
|
+
"system_ext_queue": {
|
|
2406
|
+
"rules": [
|
|
2407
|
+
65,
|
|
2408
|
+
66,
|
|
2409
|
+
67,
|
|
2410
|
+
68
|
|
2411
|
+
],
|
|
2412
|
+
"inclusive": false
|
|
2413
|
+
},
|
|
2414
|
+
"system_ext_db": {
|
|
2415
|
+
"rules": [
|
|
2416
|
+
65,
|
|
2417
|
+
66,
|
|
2418
|
+
67,
|
|
2419
|
+
68
|
|
2420
|
+
],
|
|
2421
|
+
"inclusive": false
|
|
2422
|
+
},
|
|
2423
|
+
"system_ext": {
|
|
2424
|
+
"rules": [
|
|
2425
|
+
65,
|
|
2426
|
+
66,
|
|
2427
|
+
67,
|
|
2428
|
+
68
|
|
2429
|
+
],
|
|
2430
|
+
"inclusive": false
|
|
2431
|
+
},
|
|
2432
|
+
"system_queue": {
|
|
2433
|
+
"rules": [
|
|
2434
|
+
65,
|
|
2435
|
+
66,
|
|
2436
|
+
67,
|
|
2437
|
+
68
|
|
2438
|
+
],
|
|
2439
|
+
"inclusive": false
|
|
2440
|
+
},
|
|
2441
|
+
"system_db": {
|
|
2442
|
+
"rules": [
|
|
2443
|
+
65,
|
|
2444
|
+
66,
|
|
2445
|
+
67,
|
|
2446
|
+
68
|
|
2447
|
+
],
|
|
2448
|
+
"inclusive": false
|
|
2449
|
+
},
|
|
2450
|
+
"system": {
|
|
2451
|
+
"rules": [
|
|
2452
|
+
65,
|
|
2453
|
+
66,
|
|
2454
|
+
67,
|
|
2455
|
+
68
|
|
2456
|
+
],
|
|
2457
|
+
"inclusive": false
|
|
2458
|
+
},
|
|
2459
|
+
"person_ext": {
|
|
2460
|
+
"rules": [
|
|
2461
|
+
65,
|
|
2462
|
+
66,
|
|
2463
|
+
67,
|
|
2464
|
+
68
|
|
2465
|
+
],
|
|
2466
|
+
"inclusive": false
|
|
2467
|
+
},
|
|
2468
|
+
"person": {
|
|
2469
|
+
"rules": [
|
|
2470
|
+
65,
|
|
2471
|
+
66,
|
|
2472
|
+
67,
|
|
2473
|
+
68
|
|
2474
|
+
],
|
|
2475
|
+
"inclusive": false
|
|
2476
|
+
},
|
|
2477
|
+
"INITIAL": {
|
|
2478
|
+
"rules": [
|
|
2479
|
+
0,
|
|
2480
|
+
1,
|
|
2481
|
+
2,
|
|
2482
|
+
3,
|
|
2483
|
+
4,
|
|
2484
|
+
5,
|
|
2485
|
+
6,
|
|
2486
|
+
8,
|
|
2487
|
+
10,
|
|
2488
|
+
13,
|
|
2489
|
+
14,
|
|
2490
|
+
15,
|
|
2491
|
+
16,
|
|
2492
|
+
17,
|
|
2493
|
+
18,
|
|
2494
|
+
19,
|
|
2495
|
+
20,
|
|
2496
|
+
21,
|
|
2497
|
+
22,
|
|
2498
|
+
23,
|
|
2499
|
+
24,
|
|
2500
|
+
25,
|
|
2501
|
+
26,
|
|
2502
|
+
27,
|
|
2503
|
+
28,
|
|
2504
|
+
29,
|
|
2505
|
+
30,
|
|
2506
|
+
31,
|
|
2507
|
+
32,
|
|
2508
|
+
33,
|
|
2509
|
+
34,
|
|
2510
|
+
35,
|
|
2511
|
+
36,
|
|
2512
|
+
37,
|
|
2513
|
+
38,
|
|
2514
|
+
39,
|
|
2515
|
+
40,
|
|
2516
|
+
41,
|
|
2517
|
+
42,
|
|
2518
|
+
43,
|
|
2519
|
+
44,
|
|
2520
|
+
45,
|
|
2521
|
+
46,
|
|
2522
|
+
47,
|
|
2523
|
+
48,
|
|
2524
|
+
49,
|
|
2525
|
+
50,
|
|
2526
|
+
51,
|
|
2527
|
+
52,
|
|
2528
|
+
53,
|
|
2529
|
+
54,
|
|
2530
|
+
55,
|
|
2531
|
+
56,
|
|
2532
|
+
57,
|
|
2533
|
+
58,
|
|
2534
|
+
59,
|
|
2535
|
+
60,
|
|
2536
|
+
61,
|
|
2537
|
+
62,
|
|
2538
|
+
63,
|
|
2539
|
+
64,
|
|
2540
|
+
81,
|
|
2541
|
+
82,
|
|
2542
|
+
83,
|
|
2543
|
+
84,
|
|
2544
|
+
85
|
|
2545
|
+
],
|
|
2546
|
+
"inclusive": true
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
};
|
|
2550
|
+
})();
|
|
2551
|
+
function Parser() {
|
|
2552
|
+
this.yy = {};
|
|
2553
|
+
}
|
|
2554
|
+
__name(Parser, "Parser");
|
|
2555
|
+
Parser.prototype = parser2;
|
|
2556
|
+
parser2.Parser = Parser;
|
|
2557
|
+
return new Parser();
|
|
2558
|
+
})();
|
|
2559
|
+
parser.parser = parser;
|
|
2560
|
+
var c4Diagram_default = parser;
|
|
2561
|
+
var getRequiredConfig = /* @__PURE__ */ __name((section) => getConfig2()[section], "getRequiredConfig");
|
|
2562
|
+
var TEXT_FIELDS = /* @__PURE__ */ new Set([
|
|
2563
|
+
"label",
|
|
2564
|
+
"descr",
|
|
2565
|
+
"techn",
|
|
2566
|
+
"type"
|
|
2567
|
+
]);
|
|
2568
|
+
var assignAttributes = /* @__PURE__ */ __name((bag, attrs) => {
|
|
2569
|
+
for (const [field, value] of Object.entries(attrs)) {
|
|
2570
|
+
if (value === void 0) continue;
|
|
2571
|
+
if (typeof value === "object") {
|
|
2572
|
+
const [key, val] = Object.entries(value)[0];
|
|
2573
|
+
bag[key] = TEXT_FIELDS.has(key) ? { text: val } : val;
|
|
2574
|
+
} else bag[field] = value;
|
|
2575
|
+
}
|
|
2576
|
+
}, "assignAttributes");
|
|
2577
|
+
var createGlobalBoundary = /* @__PURE__ */ __name(() => ({
|
|
2578
|
+
alias: "global",
|
|
2579
|
+
label: { text: "global" },
|
|
2580
|
+
type: { text: "global" },
|
|
2581
|
+
tags: null,
|
|
2582
|
+
link: null,
|
|
2583
|
+
parentBoundary: ""
|
|
2584
|
+
}), "createGlobalBoundary");
|
|
2585
|
+
var c4ShapeArray = [];
|
|
2586
|
+
var boundaryParseStack = [""];
|
|
2587
|
+
var currentBoundaryParse = "global";
|
|
2588
|
+
var parentBoundaryParse = "";
|
|
2589
|
+
var boundaries = [createGlobalBoundary()];
|
|
2590
|
+
var rels = [];
|
|
2591
|
+
var title = "";
|
|
2592
|
+
var wrapEnabled = false;
|
|
2593
|
+
var c4ShapeInRow = 4;
|
|
2594
|
+
var c4BoundaryInRow = 2;
|
|
2595
|
+
var c4Type;
|
|
2596
|
+
var getC4Type = /* @__PURE__ */ __name(function() {
|
|
2597
|
+
return c4Type;
|
|
2598
|
+
}, "getC4Type");
|
|
2599
|
+
var setC4Type = /* @__PURE__ */ __name(function(c4TypeParam) {
|
|
2600
|
+
c4Type = sanitizeText(c4TypeParam, getConfig2());
|
|
2601
|
+
}, "setC4Type");
|
|
2602
|
+
var addRel = /* @__PURE__ */ __name(function(type, from, to, label, techn, descr, sprite, tags, link) {
|
|
2603
|
+
if (type === void 0 || type === null || from === void 0 || from === null || to === void 0 || to === null || label === void 0 || label === null) return;
|
|
2604
|
+
let rel = {};
|
|
2605
|
+
const old = rels.find((rel2) => rel2.from === from && rel2.to === to);
|
|
2606
|
+
if (old) rel = old;
|
|
2607
|
+
else rels.push(rel);
|
|
2608
|
+
rel.type = type;
|
|
2609
|
+
rel.from = from;
|
|
2610
|
+
rel.to = to;
|
|
2611
|
+
rel.label = { text: label };
|
|
2612
|
+
if (techn === void 0 || techn === null) rel.techn ??= { text: "" };
|
|
2613
|
+
else if (typeof techn === "object") {
|
|
2614
|
+
const [key, value] = Object.entries(techn)[0];
|
|
2615
|
+
rel[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2616
|
+
} else rel.techn = { text: techn };
|
|
2617
|
+
if (descr === void 0 || descr === null) rel.descr ??= { text: "" };
|
|
2618
|
+
else if (typeof descr === "object") {
|
|
2619
|
+
const [key, value] = Object.entries(descr)[0];
|
|
2620
|
+
rel[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2621
|
+
} else rel.descr = { text: descr };
|
|
2622
|
+
assignAttributes(rel, {
|
|
2623
|
+
sprite,
|
|
2624
|
+
tags,
|
|
2625
|
+
link
|
|
2626
|
+
});
|
|
2627
|
+
rel.wrap = autoWrap();
|
|
2628
|
+
}, "addRel");
|
|
2629
|
+
var addPersonOrSystem = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, descr, sprite, tags, link) {
|
|
2630
|
+
if (alias === null || label === null) return;
|
|
2631
|
+
let personOrSystem = {};
|
|
2632
|
+
const old = c4ShapeArray.find((personOrSystem2) => personOrSystem2.alias === alias);
|
|
2633
|
+
if (old && alias === old.alias) personOrSystem = old;
|
|
2634
|
+
else {
|
|
2635
|
+
personOrSystem.alias = alias;
|
|
2636
|
+
c4ShapeArray.push(personOrSystem);
|
|
2637
|
+
}
|
|
2638
|
+
if (label === void 0 || label === null) personOrSystem.label = { text: "" };
|
|
2639
|
+
else personOrSystem.label = { text: label };
|
|
2640
|
+
if (descr === void 0 || descr === null) personOrSystem.descr ??= { text: "" };
|
|
2641
|
+
else if (typeof descr === "object") {
|
|
2642
|
+
const [key, value] = Object.entries(descr)[0];
|
|
2643
|
+
personOrSystem[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2644
|
+
} else personOrSystem.descr = { text: descr };
|
|
2645
|
+
assignAttributes(personOrSystem, {
|
|
2646
|
+
sprite,
|
|
2647
|
+
tags,
|
|
2648
|
+
link
|
|
2649
|
+
});
|
|
2650
|
+
personOrSystem.typeC4Shape = { text: typeC4Shape };
|
|
2651
|
+
personOrSystem.parentBoundary = currentBoundaryParse;
|
|
2652
|
+
personOrSystem.wrap = autoWrap();
|
|
2653
|
+
}, "addPersonOrSystem");
|
|
2654
|
+
var addContainer = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
|
|
2655
|
+
if (alias === null || label === null) return;
|
|
2656
|
+
let container = {};
|
|
2657
|
+
const old = c4ShapeArray.find((container2) => container2.alias === alias);
|
|
2658
|
+
if (old && alias === old.alias) container = old;
|
|
2659
|
+
else {
|
|
2660
|
+
container.alias = alias;
|
|
2661
|
+
c4ShapeArray.push(container);
|
|
2662
|
+
}
|
|
2663
|
+
if (label === void 0 || label === null) container.label = { text: "" };
|
|
2664
|
+
else container.label = { text: label };
|
|
2665
|
+
if (techn === void 0 || techn === null) container.techn ??= { text: "" };
|
|
2666
|
+
else if (typeof techn === "object") {
|
|
2667
|
+
const [key, value] = Object.entries(techn)[0];
|
|
2668
|
+
container[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2669
|
+
} else container.techn = { text: techn };
|
|
2670
|
+
if (descr === void 0 || descr === null) container.descr ??= { text: "" };
|
|
2671
|
+
else if (typeof descr === "object") {
|
|
2672
|
+
const [key, value] = Object.entries(descr)[0];
|
|
2673
|
+
container[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2674
|
+
} else container.descr = { text: descr };
|
|
2675
|
+
assignAttributes(container, {
|
|
2676
|
+
sprite,
|
|
2677
|
+
tags,
|
|
2678
|
+
link
|
|
2679
|
+
});
|
|
2680
|
+
container.wrap = autoWrap();
|
|
2681
|
+
container.typeC4Shape = { text: typeC4Shape };
|
|
2682
|
+
container.parentBoundary = currentBoundaryParse;
|
|
2683
|
+
}, "addContainer");
|
|
2684
|
+
var addComponent = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
|
|
2685
|
+
if (alias === null || label === null) return;
|
|
2686
|
+
let component = {};
|
|
2687
|
+
const old = c4ShapeArray.find((component2) => component2.alias === alias);
|
|
2688
|
+
if (old && alias === old.alias) component = old;
|
|
2689
|
+
else {
|
|
2690
|
+
component.alias = alias;
|
|
2691
|
+
c4ShapeArray.push(component);
|
|
2692
|
+
}
|
|
2693
|
+
if (label === void 0 || label === null) component.label = { text: "" };
|
|
2694
|
+
else component.label = { text: label };
|
|
2695
|
+
if (techn === void 0 || techn === null) component.techn ??= { text: "" };
|
|
2696
|
+
else if (typeof techn === "object") {
|
|
2697
|
+
const [key, value] = Object.entries(techn)[0];
|
|
2698
|
+
component[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2699
|
+
} else component.techn = { text: techn };
|
|
2700
|
+
if (descr === void 0 || descr === null) component.descr ??= { text: "" };
|
|
2701
|
+
else if (typeof descr === "object") {
|
|
2702
|
+
const [key, value] = Object.entries(descr)[0];
|
|
2703
|
+
component[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2704
|
+
} else component.descr = { text: descr };
|
|
2705
|
+
assignAttributes(component, {
|
|
2706
|
+
sprite,
|
|
2707
|
+
tags,
|
|
2708
|
+
link
|
|
2709
|
+
});
|
|
2710
|
+
component.wrap = autoWrap();
|
|
2711
|
+
component.typeC4Shape = { text: typeC4Shape };
|
|
2712
|
+
component.parentBoundary = currentBoundaryParse;
|
|
2713
|
+
}, "addComponent");
|
|
2714
|
+
var addPersonOrSystemBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
|
|
2715
|
+
if (alias === null || label === null) return;
|
|
2716
|
+
let boundary = {};
|
|
2717
|
+
const old = boundaries.find((boundary2) => boundary2.alias === alias);
|
|
2718
|
+
if (old && alias === old.alias) boundary = old;
|
|
2719
|
+
else {
|
|
2720
|
+
boundary.alias = alias;
|
|
2721
|
+
boundaries.push(boundary);
|
|
2722
|
+
}
|
|
2723
|
+
if (label === void 0 || label === null) boundary.label = { text: "" };
|
|
2724
|
+
else boundary.label = { text: label };
|
|
2725
|
+
if (type === void 0 || type === null) boundary.type = { text: "system" };
|
|
2726
|
+
else if (typeof type === "object") {
|
|
2727
|
+
const [key, value] = Object.entries(type)[0];
|
|
2728
|
+
boundary[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2729
|
+
} else boundary.type = { text: type };
|
|
2730
|
+
assignAttributes(boundary, {
|
|
2731
|
+
tags,
|
|
2732
|
+
link
|
|
2733
|
+
});
|
|
2734
|
+
boundary.parentBoundary = currentBoundaryParse;
|
|
2735
|
+
boundary.wrap = autoWrap();
|
|
2736
|
+
parentBoundaryParse = currentBoundaryParse;
|
|
2737
|
+
currentBoundaryParse = alias;
|
|
2738
|
+
boundaryParseStack.push(parentBoundaryParse);
|
|
2739
|
+
}, "addPersonOrSystemBoundary");
|
|
2740
|
+
var addContainerBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
|
|
2741
|
+
if (alias === null || label === null) return;
|
|
2742
|
+
let boundary = {};
|
|
2743
|
+
const old = boundaries.find((boundary2) => boundary2.alias === alias);
|
|
2744
|
+
if (old && alias === old.alias) boundary = old;
|
|
2745
|
+
else {
|
|
2746
|
+
boundary.alias = alias;
|
|
2747
|
+
boundaries.push(boundary);
|
|
2748
|
+
}
|
|
2749
|
+
if (label === void 0 || label === null) boundary.label = { text: "" };
|
|
2750
|
+
else boundary.label = { text: label };
|
|
2751
|
+
if (type === void 0 || type === null) boundary.type = { text: "container" };
|
|
2752
|
+
else if (typeof type === "object") {
|
|
2753
|
+
const [key, value] = Object.entries(type)[0];
|
|
2754
|
+
boundary[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2755
|
+
} else boundary.type = { text: type };
|
|
2756
|
+
assignAttributes(boundary, {
|
|
2757
|
+
tags,
|
|
2758
|
+
link
|
|
2759
|
+
});
|
|
2760
|
+
boundary.parentBoundary = currentBoundaryParse;
|
|
2761
|
+
boundary.wrap = autoWrap();
|
|
2762
|
+
parentBoundaryParse = currentBoundaryParse;
|
|
2763
|
+
currentBoundaryParse = alias;
|
|
2764
|
+
boundaryParseStack.push(parentBoundaryParse);
|
|
2765
|
+
}, "addContainerBoundary");
|
|
2766
|
+
var addDeploymentNode = /* @__PURE__ */ __name(function(nodeType, alias, label, type, descr, sprite, tags, link) {
|
|
2767
|
+
if (alias === null || label === null) return;
|
|
2768
|
+
let boundary = {};
|
|
2769
|
+
const old = boundaries.find((boundary2) => boundary2.alias === alias);
|
|
2770
|
+
if (old && alias === old.alias) boundary = old;
|
|
2771
|
+
else {
|
|
2772
|
+
boundary.alias = alias;
|
|
2773
|
+
boundaries.push(boundary);
|
|
2774
|
+
}
|
|
2775
|
+
if (label === void 0 || label === null) boundary.label = { text: "" };
|
|
2776
|
+
else boundary.label = { text: label };
|
|
2777
|
+
if (type === void 0 || type === null) boundary.type = { text: "node" };
|
|
2778
|
+
else if (typeof type === "object") {
|
|
2779
|
+
const [key, value] = Object.entries(type)[0];
|
|
2780
|
+
boundary[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2781
|
+
} else boundary.type = { text: type };
|
|
2782
|
+
if (descr === void 0 || descr === null) boundary.descr ??= { text: "" };
|
|
2783
|
+
else if (typeof descr === "object") {
|
|
2784
|
+
const [key, value] = Object.entries(descr)[0];
|
|
2785
|
+
boundary[key] = TEXT_FIELDS.has(key) ? { text: value } : value;
|
|
2786
|
+
} else boundary.descr = { text: descr };
|
|
2787
|
+
assignAttributes(boundary, {
|
|
2788
|
+
tags,
|
|
2789
|
+
link
|
|
2790
|
+
});
|
|
2791
|
+
boundary.nodeType = nodeType;
|
|
2792
|
+
boundary.parentBoundary = currentBoundaryParse;
|
|
2793
|
+
boundary.wrap = autoWrap();
|
|
2794
|
+
parentBoundaryParse = currentBoundaryParse;
|
|
2795
|
+
currentBoundaryParse = alias;
|
|
2796
|
+
boundaryParseStack.push(parentBoundaryParse);
|
|
2797
|
+
}, "addDeploymentNode");
|
|
2798
|
+
var popBoundaryParseStack = /* @__PURE__ */ __name(function() {
|
|
2799
|
+
currentBoundaryParse = parentBoundaryParse;
|
|
2800
|
+
boundaryParseStack.pop();
|
|
2801
|
+
parentBoundaryParse = boundaryParseStack.pop();
|
|
2802
|
+
boundaryParseStack.push(parentBoundaryParse);
|
|
2803
|
+
}, "popBoundaryParseStack");
|
|
2804
|
+
var updateElStyle = /* @__PURE__ */ __name(function(typeC4Shape, elementName, bgColor, fontColor, borderColor, shadowing, shape, sprite, techn, legendText, legendSprite) {
|
|
2805
|
+
let old = c4ShapeArray.find((element) => element.alias === elementName);
|
|
2806
|
+
if (old === void 0) {
|
|
2807
|
+
old = boundaries.find((element) => element.alias === elementName);
|
|
2808
|
+
if (old === void 0) return;
|
|
2809
|
+
}
|
|
2810
|
+
if (bgColor !== void 0 && bgColor !== null) if (typeof bgColor === "object") {
|
|
2811
|
+
const [key, value] = Object.entries(bgColor)[0];
|
|
2812
|
+
old[key] = value;
|
|
2813
|
+
} else old.bgColor = bgColor;
|
|
2814
|
+
if (fontColor !== void 0 && fontColor !== null) if (typeof fontColor === "object") {
|
|
2815
|
+
const [key, value] = Object.entries(fontColor)[0];
|
|
2816
|
+
old[key] = value;
|
|
2817
|
+
} else old.fontColor = fontColor;
|
|
2818
|
+
if (borderColor !== void 0 && borderColor !== null) if (typeof borderColor === "object") {
|
|
2819
|
+
const [key, value] = Object.entries(borderColor)[0];
|
|
2820
|
+
old[key] = value;
|
|
2821
|
+
} else old.borderColor = borderColor;
|
|
2822
|
+
if (shadowing !== void 0 && shadowing !== null) if (typeof shadowing === "object") {
|
|
2823
|
+
const [key, value] = Object.entries(shadowing)[0];
|
|
2824
|
+
old[key] = value;
|
|
2825
|
+
} else old.shadowing = shadowing;
|
|
2826
|
+
if (shape !== void 0 && shape !== null) if (typeof shape === "object") {
|
|
2827
|
+
const [key, value] = Object.entries(shape)[0];
|
|
2828
|
+
old[key] = value;
|
|
2829
|
+
} else old.shape = shape;
|
|
2830
|
+
if (sprite !== void 0 && sprite !== null) if (typeof sprite === "object") {
|
|
2831
|
+
const [key, value] = Object.entries(sprite)[0];
|
|
2832
|
+
old[key] = value;
|
|
2833
|
+
} else old.sprite = sprite;
|
|
2834
|
+
if (techn !== void 0 && techn !== null) if (typeof techn === "object") {
|
|
2835
|
+
const [key, value] = Object.entries(techn)[0];
|
|
2836
|
+
old[key] = value;
|
|
2837
|
+
} else old.techn = techn;
|
|
2838
|
+
if (legendText !== void 0 && legendText !== null) if (typeof legendText === "object") {
|
|
2839
|
+
const [key, value] = Object.entries(legendText)[0];
|
|
2840
|
+
old[key] = value;
|
|
2841
|
+
} else old.legendText = legendText;
|
|
2842
|
+
if (legendSprite !== void 0 && legendSprite !== null) if (typeof legendSprite === "object") {
|
|
2843
|
+
const [key, value] = Object.entries(legendSprite)[0];
|
|
2844
|
+
old[key] = value;
|
|
2845
|
+
} else old.legendSprite = legendSprite;
|
|
2846
|
+
}, "updateElStyle");
|
|
2847
|
+
var updateRelStyle = /* @__PURE__ */ __name(function(typeC4Shape, from, to, textColor, lineColor, offsetX, offsetY) {
|
|
2848
|
+
const old = rels.find((rel) => rel.from === from && rel.to === to);
|
|
2849
|
+
if (old === void 0) return;
|
|
2850
|
+
if (textColor !== void 0 && textColor !== null) if (typeof textColor === "object") {
|
|
2851
|
+
const [key, value] = Object.entries(textColor)[0];
|
|
2852
|
+
old[key] = value;
|
|
2853
|
+
} else old.textColor = textColor;
|
|
2854
|
+
if (lineColor !== void 0 && lineColor !== null) if (typeof lineColor === "object") {
|
|
2855
|
+
const [key, value] = Object.entries(lineColor)[0];
|
|
2856
|
+
old[key] = value;
|
|
2857
|
+
} else old.lineColor = lineColor;
|
|
2858
|
+
if (offsetX !== void 0 && offsetX !== null) if (typeof offsetX === "object") {
|
|
2859
|
+
const [key, value] = Object.entries(offsetX)[0];
|
|
2860
|
+
old[key] = parseInt(value);
|
|
2861
|
+
} else old.offsetX = parseInt(offsetX);
|
|
2862
|
+
if (offsetY !== void 0 && offsetY !== null) if (typeof offsetY === "object") {
|
|
2863
|
+
const [key, value] = Object.entries(offsetY)[0];
|
|
2864
|
+
old[key] = parseInt(value);
|
|
2865
|
+
} else old.offsetY = parseInt(offsetY);
|
|
2866
|
+
}, "updateRelStyle");
|
|
2867
|
+
var updateLayoutConfig = /* @__PURE__ */ __name(function(typeC4Shape, c4ShapeInRowParam, c4BoundaryInRowParam) {
|
|
2868
|
+
let c4ShapeInRowValue = c4ShapeInRow;
|
|
2869
|
+
let c4BoundaryInRowValue = c4BoundaryInRow;
|
|
2870
|
+
if (typeof c4ShapeInRowParam === "object") {
|
|
2871
|
+
const value = Object.values(c4ShapeInRowParam)[0];
|
|
2872
|
+
c4ShapeInRowValue = parseInt(value);
|
|
2873
|
+
} else c4ShapeInRowValue = parseInt(c4ShapeInRowParam);
|
|
2874
|
+
if (typeof c4BoundaryInRowParam === "object") {
|
|
2875
|
+
const value = Object.values(c4BoundaryInRowParam)[0];
|
|
2876
|
+
c4BoundaryInRowValue = parseInt(value);
|
|
2877
|
+
} else c4BoundaryInRowValue = parseInt(c4BoundaryInRowParam);
|
|
2878
|
+
if (c4ShapeInRowValue >= 1) c4ShapeInRow = c4ShapeInRowValue;
|
|
2879
|
+
if (c4BoundaryInRowValue >= 1) c4BoundaryInRow = c4BoundaryInRowValue;
|
|
2880
|
+
}, "updateLayoutConfig");
|
|
2881
|
+
var getC4ShapeInRow = /* @__PURE__ */ __name(function() {
|
|
2882
|
+
return c4ShapeInRow;
|
|
2883
|
+
}, "getC4ShapeInRow");
|
|
2884
|
+
var getC4BoundaryInRow = /* @__PURE__ */ __name(function() {
|
|
2885
|
+
return c4BoundaryInRow;
|
|
2886
|
+
}, "getC4BoundaryInRow");
|
|
2887
|
+
var getCurrentBoundaryParse = /* @__PURE__ */ __name(function() {
|
|
2888
|
+
return currentBoundaryParse;
|
|
2889
|
+
}, "getCurrentBoundaryParse");
|
|
2890
|
+
var getParentBoundaryParse = /* @__PURE__ */ __name(function() {
|
|
2891
|
+
return parentBoundaryParse;
|
|
2892
|
+
}, "getParentBoundaryParse");
|
|
2893
|
+
var getC4ShapeArray = /* @__PURE__ */ __name(function(parentBoundary) {
|
|
2894
|
+
if (parentBoundary === void 0 || parentBoundary === null) return c4ShapeArray;
|
|
2895
|
+
else return c4ShapeArray.filter((personOrSystem) => {
|
|
2896
|
+
return personOrSystem.parentBoundary === parentBoundary;
|
|
2897
|
+
});
|
|
2898
|
+
}, "getC4ShapeArray");
|
|
2899
|
+
var getC4Shape = /* @__PURE__ */ __name(function(alias) {
|
|
2900
|
+
return c4ShapeArray.find((personOrSystem) => personOrSystem.alias === alias) ?? boundaries.find((boundary) => boundary.alias === alias);
|
|
2901
|
+
}, "getC4Shape");
|
|
2902
|
+
var getC4ShapeKeys = /* @__PURE__ */ __name(function(parentBoundary) {
|
|
2903
|
+
return Object.keys(getC4ShapeArray(parentBoundary));
|
|
2904
|
+
}, "getC4ShapeKeys");
|
|
2905
|
+
var getBoundaries = /* @__PURE__ */ __name(function(parentBoundary) {
|
|
2906
|
+
if (parentBoundary === void 0 || parentBoundary === null) return boundaries;
|
|
2907
|
+
else return boundaries.filter((boundary) => boundary.parentBoundary === parentBoundary);
|
|
2908
|
+
}, "getBoundaries");
|
|
2909
|
+
var getBoundarys = getBoundaries;
|
|
2910
|
+
var getRels = /* @__PURE__ */ __name(function() {
|
|
2911
|
+
return rels;
|
|
2912
|
+
}, "getRels");
|
|
2913
|
+
var getTitle = /* @__PURE__ */ __name(function() {
|
|
2914
|
+
return title;
|
|
2915
|
+
}, "getTitle");
|
|
2916
|
+
var setWrap = /* @__PURE__ */ __name(function(wrapSetting) {
|
|
2917
|
+
wrapEnabled = wrapSetting;
|
|
2918
|
+
}, "setWrap");
|
|
2919
|
+
var autoWrap = /* @__PURE__ */ __name(function() {
|
|
2920
|
+
return wrapEnabled;
|
|
2921
|
+
}, "autoWrap");
|
|
2922
|
+
var c4Db_default = {
|
|
2923
|
+
addPersonOrSystem,
|
|
2924
|
+
addPersonOrSystemBoundary,
|
|
2925
|
+
addContainer,
|
|
2926
|
+
addContainerBoundary,
|
|
2927
|
+
addComponent,
|
|
2928
|
+
addDeploymentNode,
|
|
2929
|
+
popBoundaryParseStack,
|
|
2930
|
+
addRel,
|
|
2931
|
+
updateElStyle,
|
|
2932
|
+
updateRelStyle,
|
|
2933
|
+
updateLayoutConfig,
|
|
2934
|
+
autoWrap,
|
|
2935
|
+
setWrap,
|
|
2936
|
+
getC4ShapeArray,
|
|
2937
|
+
getC4Shape,
|
|
2938
|
+
getC4ShapeKeys,
|
|
2939
|
+
getBoundaries,
|
|
2940
|
+
getBoundarys,
|
|
2941
|
+
getCurrentBoundaryParse,
|
|
2942
|
+
getParentBoundaryParse,
|
|
2943
|
+
getRels,
|
|
2944
|
+
getTitle,
|
|
2945
|
+
getC4Type,
|
|
2946
|
+
getC4ShapeInRow,
|
|
2947
|
+
getC4BoundaryInRow,
|
|
2948
|
+
setAccTitle,
|
|
2949
|
+
getAccTitle,
|
|
2950
|
+
getAccDescription,
|
|
2951
|
+
setAccDescription,
|
|
2952
|
+
getConfig: /* @__PURE__ */ __name(() => getRequiredConfig("c4"), "getConfig"),
|
|
2953
|
+
clear: /* @__PURE__ */ __name(function() {
|
|
2954
|
+
c4ShapeArray = [];
|
|
2955
|
+
boundaries = [createGlobalBoundary()];
|
|
2956
|
+
parentBoundaryParse = "";
|
|
2957
|
+
currentBoundaryParse = "global";
|
|
2958
|
+
boundaryParseStack = [""];
|
|
2959
|
+
rels = [];
|
|
2960
|
+
boundaryParseStack = [""];
|
|
2961
|
+
title = "";
|
|
2962
|
+
wrapEnabled = false;
|
|
2963
|
+
c4ShapeInRow = 4;
|
|
2964
|
+
c4BoundaryInRow = 2;
|
|
2965
|
+
}, "clear"),
|
|
2966
|
+
LINETYPE: {
|
|
2967
|
+
SOLID: 0,
|
|
2968
|
+
DOTTED: 1,
|
|
2969
|
+
NOTE: 2,
|
|
2970
|
+
SOLID_CROSS: 3,
|
|
2971
|
+
DOTTED_CROSS: 4,
|
|
2972
|
+
SOLID_OPEN: 5,
|
|
2973
|
+
DOTTED_OPEN: 6,
|
|
2974
|
+
LOOP_START: 10,
|
|
2975
|
+
LOOP_END: 11,
|
|
2976
|
+
ALT_START: 12,
|
|
2977
|
+
ALT_ELSE: 13,
|
|
2978
|
+
ALT_END: 14,
|
|
2979
|
+
OPT_START: 15,
|
|
2980
|
+
OPT_END: 16,
|
|
2981
|
+
ACTIVE_START: 17,
|
|
2982
|
+
ACTIVE_END: 18,
|
|
2983
|
+
PAR_START: 19,
|
|
2984
|
+
PAR_AND: 20,
|
|
2985
|
+
PAR_END: 21,
|
|
2986
|
+
RECT_START: 22,
|
|
2987
|
+
RECT_END: 23,
|
|
2988
|
+
SOLID_POINT: 24,
|
|
2989
|
+
DOTTED_POINT: 25
|
|
2990
|
+
},
|
|
2991
|
+
ARROWTYPE: {
|
|
2992
|
+
FILLED: 0,
|
|
2993
|
+
OPEN: 1
|
|
2994
|
+
},
|
|
2995
|
+
PLACEMENT: {
|
|
2996
|
+
LEFTOF: 0,
|
|
2997
|
+
RIGHTOF: 1,
|
|
2998
|
+
OVER: 2
|
|
2999
|
+
},
|
|
3000
|
+
setTitle: /* @__PURE__ */ __name(function(txt) {
|
|
3001
|
+
title = sanitizeText(txt, getConfig2());
|
|
3002
|
+
}, "setTitle"),
|
|
3003
|
+
setC4Type
|
|
3004
|
+
};
|
|
3005
|
+
var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
|
|
3006
|
+
return drawRect(elem, rectData);
|
|
3007
|
+
}, "drawRect");
|
|
3008
|
+
var drawRels = /* @__PURE__ */ __name((elem, rels2, conf2, diagramId) => {
|
|
3009
|
+
const relsElem = elem.append("g");
|
|
3010
|
+
let i = 0;
|
|
3011
|
+
for (const rel of rels2) {
|
|
3012
|
+
const textColor = rel.textColor ? rel.textColor : "#444444";
|
|
3013
|
+
const strokeColor = rel.lineColor ? rel.lineColor : "#444444";
|
|
3014
|
+
const offsetX = rel.offsetX ? parseInt(String(rel.offsetX)) : 0;
|
|
3015
|
+
const offsetY = rel.offsetY ? parseInt(String(rel.offsetY)) : 0;
|
|
3016
|
+
if (i === 0) {
|
|
3017
|
+
const line = relsElem.append("line");
|
|
3018
|
+
line.attr("x1", rel.startPoint.x);
|
|
3019
|
+
line.attr("y1", rel.startPoint.y);
|
|
3020
|
+
line.attr("x2", rel.endPoint.x);
|
|
3021
|
+
line.attr("y2", rel.endPoint.y);
|
|
3022
|
+
line.attr("stroke-width", "1");
|
|
3023
|
+
line.attr("stroke", strokeColor);
|
|
3024
|
+
line.style("fill", "none");
|
|
3025
|
+
if (rel.type !== "rel_b") line.attr("marker-end", "url(#" + diagramId + "-arrowhead)");
|
|
3026
|
+
if (rel.type === "birel" || rel.type === "rel_b") line.attr("marker-start", "url(#" + diagramId + "-arrowend)");
|
|
3027
|
+
i = -1;
|
|
3028
|
+
} else {
|
|
3029
|
+
const line = relsElem.append("path");
|
|
3030
|
+
line.attr("fill", "none").attr("stroke-width", "1").attr("stroke", strokeColor).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", rel.startPoint.x).replaceAll("starty", rel.startPoint.y).replaceAll("controlx", rel.startPoint.x + (rel.endPoint.x - rel.startPoint.x) / 2 - (rel.endPoint.x - rel.startPoint.x) / 4).replaceAll("controly", rel.startPoint.y + (rel.endPoint.y - rel.startPoint.y) / 2).replaceAll("stopx", rel.endPoint.x).replaceAll("stopy", rel.endPoint.y));
|
|
3031
|
+
if (rel.type !== "rel_b") line.attr("marker-end", "url(#" + diagramId + "-arrowhead)");
|
|
3032
|
+
if (rel.type === "birel" || rel.type === "rel_b") line.attr("marker-start", "url(#" + diagramId + "-arrowend)");
|
|
3033
|
+
}
|
|
3034
|
+
const labelWidth = rel.label.width;
|
|
3035
|
+
let messageConf = conf2.messageFont();
|
|
3036
|
+
_drawTextCandidateFunc(conf2)(rel.label.text, relsElem, Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX, Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + offsetY, labelWidth, rel.label.height, { fill: textColor }, messageConf);
|
|
3037
|
+
if (rel.techn && rel.techn.text !== "") {
|
|
3038
|
+
messageConf = conf2.messageFont();
|
|
3039
|
+
_drawTextCandidateFunc(conf2)("[" + rel.techn.text + "]", relsElem, Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX, Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + conf2.messageFontSize + 5 + offsetY, Math.max(labelWidth, rel.techn.width), rel.techn.height, {
|
|
3040
|
+
fill: textColor,
|
|
3041
|
+
"font-style": "italic"
|
|
3042
|
+
}, messageConf);
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
}, "drawRels");
|
|
3046
|
+
var drawBoundary = /* @__PURE__ */ __name(function(elem, boundary, conf2) {
|
|
3047
|
+
const boundaryElem = elem.append("g");
|
|
3048
|
+
const fillColor = boundary.bgColor ? boundary.bgColor : "none";
|
|
3049
|
+
const strokeColor = boundary.borderColor ? boundary.borderColor : "#444444";
|
|
3050
|
+
const fontColor = boundary.fontColor ? boundary.fontColor : "black";
|
|
3051
|
+
let attrsValue = {
|
|
3052
|
+
"stroke-width": 1,
|
|
3053
|
+
"stroke-dasharray": "7.0,7.0"
|
|
3054
|
+
};
|
|
3055
|
+
if (boundary.nodeType) attrsValue = { "stroke-width": 1 };
|
|
3056
|
+
drawRect2(boundaryElem, {
|
|
3057
|
+
x: boundary.x,
|
|
3058
|
+
y: boundary.y,
|
|
3059
|
+
fill: fillColor,
|
|
3060
|
+
stroke: strokeColor,
|
|
3061
|
+
width: boundary.width,
|
|
3062
|
+
height: boundary.height,
|
|
3063
|
+
rx: 2.5,
|
|
3064
|
+
ry: 2.5,
|
|
3065
|
+
attrs: attrsValue
|
|
3066
|
+
});
|
|
3067
|
+
let boundaryConf = conf2.boundaryFont();
|
|
3068
|
+
boundaryConf.fontWeight = "bold";
|
|
3069
|
+
boundaryConf.fontSize = boundaryConf.fontSize + 2;
|
|
3070
|
+
boundaryConf.fontColor = fontColor;
|
|
3071
|
+
_drawTextCandidateFunc(conf2)(boundary.label.text, boundaryElem, boundary.x, boundary.y + boundary.label.Y, boundary.width, boundary.height, { fill: "#444444" }, boundaryConf);
|
|
3072
|
+
if (boundary.type && boundary.type.text !== "") {
|
|
3073
|
+
boundaryConf = conf2.boundaryFont();
|
|
3074
|
+
boundaryConf.fontColor = fontColor;
|
|
3075
|
+
_drawTextCandidateFunc(conf2)(boundary.type.text, boundaryElem, boundary.x, boundary.y + boundary.type.Y, boundary.width, boundary.height, { fill: "#444444" }, boundaryConf);
|
|
3076
|
+
}
|
|
3077
|
+
if (boundary.descr && boundary.descr.text !== "") {
|
|
3078
|
+
boundaryConf = conf2.boundaryFont();
|
|
3079
|
+
boundaryConf.fontSize = boundaryConf.fontSize - 2;
|
|
3080
|
+
boundaryConf.fontColor = fontColor;
|
|
3081
|
+
_drawTextCandidateFunc(conf2)(boundary.descr.text, boundaryElem, boundary.x, boundary.y + boundary.descr.Y, boundary.width, boundary.height, { fill: "#444444" }, boundaryConf);
|
|
3082
|
+
}
|
|
3083
|
+
}, "drawBoundary");
|
|
3084
|
+
var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem, id) {
|
|
3085
|
+
elem.append("defs").append("symbol").attr("id", id + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
|
|
3086
|
+
}, "insertDatabaseIcon");
|
|
3087
|
+
var insertComputerIcon = /* @__PURE__ */ __name(function(elem, id) {
|
|
3088
|
+
elem.append("defs").append("symbol").attr("id", id + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
|
|
3089
|
+
}, "insertComputerIcon");
|
|
3090
|
+
var insertClockIcon = /* @__PURE__ */ __name(function(elem, id) {
|
|
3091
|
+
elem.append("defs").append("symbol").attr("id", id + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
|
|
3092
|
+
}, "insertClockIcon");
|
|
3093
|
+
var insertArrowHead = /* @__PURE__ */ __name(function(elem, id) {
|
|
3094
|
+
elem.append("defs").append("marker").attr("id", id + "-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");
|
|
3095
|
+
}, "insertArrowHead");
|
|
3096
|
+
var insertArrowEnd = /* @__PURE__ */ __name(function(elem, id) {
|
|
3097
|
+
elem.append("defs").append("marker").attr("id", id + "-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");
|
|
3098
|
+
}, "insertArrowEnd");
|
|
3099
|
+
var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem, id) {
|
|
3100
|
+
elem.append("defs").append("marker").attr("id", id + "-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");
|
|
3101
|
+
}, "insertArrowFilledHead");
|
|
3102
|
+
var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem, id) {
|
|
3103
|
+
const marker = elem.append("defs").append("marker").attr("id", id + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
|
|
3104
|
+
marker.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");
|
|
3105
|
+
marker.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");
|
|
3106
|
+
}, "insertArrowCrossHead");
|
|
3107
|
+
var _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
3108
|
+
function byText(content, g, x, y, width, height, textAttrs) {
|
|
3109
|
+
_setTextAttrs(g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content), textAttrs);
|
|
3110
|
+
}
|
|
3111
|
+
__name(byText, "byText");
|
|
3112
|
+
function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
|
|
3113
|
+
const { fontSize, fontFamily, fontWeight } = conf2;
|
|
3114
|
+
const lines = content.split(common_default.lineBreakRegex);
|
|
3115
|
+
for (let i = 0; i < lines.length; i++) {
|
|
3116
|
+
const dy = i * fontSize - fontSize * (lines.length - 1) / 2;
|
|
3117
|
+
const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", fontSize).style("font-weight", fontWeight).style("font-family", fontFamily);
|
|
3118
|
+
text.append("tspan").attr("dy", dy).text(lines[i]).attr("alignment-baseline", "mathematical");
|
|
3119
|
+
_setTextAttrs(text, textAttrs);
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
__name(byTspan, "byTspan");
|
|
3123
|
+
function byFo(content, g, x, y, width, height, textAttrs, conf2) {
|
|
3124
|
+
const s = g.append("switch");
|
|
3125
|
+
const text = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3126
|
+
text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
|
|
3127
|
+
byTspan(content, s, x, y, width, height, textAttrs, conf2);
|
|
3128
|
+
_setTextAttrs(text, textAttrs);
|
|
3129
|
+
}
|
|
3130
|
+
__name(byFo, "byFo");
|
|
3131
|
+
function _setTextAttrs(toText, fromTextAttrsDict) {
|
|
3132
|
+
for (const key in fromTextAttrsDict) if (fromTextAttrsDict.hasOwnProperty(key)) toText.attr(key, fromTextAttrsDict[key]);
|
|
3133
|
+
}
|
|
3134
|
+
__name(_setTextAttrs, "_setTextAttrs");
|
|
3135
|
+
return function(conf2) {
|
|
3136
|
+
return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
|
|
3137
|
+
};
|
|
3138
|
+
})();
|
|
3139
|
+
var svgDraw_default = {
|
|
3140
|
+
drawRect: drawRect2,
|
|
3141
|
+
drawBoundary,
|
|
3142
|
+
drawRels,
|
|
3143
|
+
insertArrowHead,
|
|
3144
|
+
insertArrowEnd,
|
|
3145
|
+
insertArrowFilledHead,
|
|
3146
|
+
insertArrowCrossHead,
|
|
3147
|
+
insertDatabaseIcon,
|
|
3148
|
+
insertComputerIcon,
|
|
3149
|
+
insertClockIcon
|
|
3150
|
+
};
|
|
3151
|
+
var getDiagramRoot = /* @__PURE__ */ __name((id, securityLevel) => {
|
|
3152
|
+
if (securityLevel === "sandbox") {
|
|
3153
|
+
const doc = select_default("#i" + id).node()?.contentDocument;
|
|
3154
|
+
if (!doc) throw new Error(`Sandbox iframe #i${id} is missing its content document`);
|
|
3155
|
+
return {
|
|
3156
|
+
root: select_default(doc.body),
|
|
3157
|
+
doc
|
|
3158
|
+
};
|
|
3159
|
+
}
|
|
3160
|
+
return {
|
|
3161
|
+
root: select_default("body"),
|
|
3162
|
+
doc: document
|
|
3163
|
+
};
|
|
3164
|
+
}, "getDiagramRoot");
|
|
3165
|
+
var QUEUE_SHAPES = /* @__PURE__ */ new Set([
|
|
3166
|
+
"system_queue",
|
|
3167
|
+
"external_system_queue",
|
|
3168
|
+
"container_queue",
|
|
3169
|
+
"external_container_queue",
|
|
3170
|
+
"component_queue",
|
|
3171
|
+
"external_component_queue"
|
|
3172
|
+
]);
|
|
3173
|
+
var DB_SHAPES = /* @__PURE__ */ new Set([
|
|
3174
|
+
"system_db",
|
|
3175
|
+
"external_system_db",
|
|
3176
|
+
"container_db",
|
|
3177
|
+
"external_container_db",
|
|
3178
|
+
"component_db",
|
|
3179
|
+
"external_component_db"
|
|
3180
|
+
]);
|
|
3181
|
+
var SHAPE_KEYWORDS = {
|
|
3182
|
+
person: "person",
|
|
3183
|
+
box: "rounded",
|
|
3184
|
+
rounded: "rounded",
|
|
3185
|
+
cylinder: "cylinder",
|
|
3186
|
+
database: "cylinder",
|
|
3187
|
+
db: "cylinder",
|
|
3188
|
+
queue: "h-cyl",
|
|
3189
|
+
pipe: "h-cyl",
|
|
3190
|
+
component: "fr-rect"
|
|
3191
|
+
};
|
|
3192
|
+
var keywordShape = /* @__PURE__ */ __name((value) => value ? SHAPE_KEYWORDS[value.toLowerCase()] : void 0, "keywordShape");
|
|
3193
|
+
var resolveNodeShape = /* @__PURE__ */ __name((shape) => {
|
|
3194
|
+
const explicit = keywordShape(shape.shape) ?? keywordShape(shape.sprite);
|
|
3195
|
+
if (explicit) return explicit;
|
|
3196
|
+
if (shape.tags) for (const tag of shape.tags.split(",")) {
|
|
3197
|
+
const tagged = keywordShape(tag.trim());
|
|
3198
|
+
if (tagged) return tagged;
|
|
3199
|
+
}
|
|
3200
|
+
const typeC4Shape = shape.typeC4Shape.text;
|
|
3201
|
+
if (typeC4Shape === "person" || typeC4Shape === "external_person") return "person";
|
|
3202
|
+
if (DB_SHAPES.has(typeC4Shape)) return "cylinder";
|
|
3203
|
+
if (QUEUE_SHAPES.has(typeC4Shape)) return "h-cyl";
|
|
3204
|
+
return "rounded";
|
|
3205
|
+
}, "resolveNodeShape");
|
|
3206
|
+
var STEREOTYPE_NAMES = {
|
|
3207
|
+
person: "Person",
|
|
3208
|
+
system: "Software System",
|
|
3209
|
+
container: "Container",
|
|
3210
|
+
component: "Component"
|
|
3211
|
+
};
|
|
3212
|
+
var stereotypeLabel = /* @__PURE__ */ __name((typeC4Shape) => {
|
|
3213
|
+
const base = typeC4Shape.replace(/^external_/, "").replace(/_(db|queue)$/, "");
|
|
3214
|
+
return STEREOTYPE_NAMES[base] ?? base.replace(/_/g, " ");
|
|
3215
|
+
}, "stereotypeLabel");
|
|
3216
|
+
var isExternal = /* @__PURE__ */ __name((typeC4Shape) => typeC4Shape.startsWith("external_"), "isExternal");
|
|
3217
|
+
var stereotypeText = /* @__PURE__ */ __name((shape) => {
|
|
3218
|
+
const stereotype = stereotypeLabel(shape.typeC4Shape.text);
|
|
3219
|
+
return shape.techn?.text ? `[${stereotype}: ${shape.techn.text}]` : `[${stereotype}]`;
|
|
3220
|
+
}, "stereotypeText");
|
|
3221
|
+
var C4_ELEMENT_TYPES = [
|
|
3222
|
+
"person",
|
|
3223
|
+
"system",
|
|
3224
|
+
"system_db",
|
|
3225
|
+
"system_queue",
|
|
3226
|
+
"container",
|
|
3227
|
+
"container_db",
|
|
3228
|
+
"container_queue",
|
|
3229
|
+
"component",
|
|
3230
|
+
"component_db",
|
|
3231
|
+
"component_queue"
|
|
3232
|
+
].flatMap((type) => [type, `external_${type}`]);
|
|
3233
|
+
var C4_ELEMENT_TYPE_SET = new Set(C4_ELEMENT_TYPES);
|
|
3234
|
+
var isC4ElementType = /* @__PURE__ */ __name((value) => C4_ELEMENT_TYPE_SET.has(value), "isC4ElementType");
|
|
3235
|
+
var elementCssStyles = /* @__PURE__ */ __name((shape, config) => {
|
|
3236
|
+
const elementType = shape.typeC4Shape.text;
|
|
3237
|
+
const fill = shape.bgColor ?? (isC4ElementType(elementType) && config[`${elementType}_bg_color`]);
|
|
3238
|
+
const stroke = shape.borderColor ?? (isC4ElementType(elementType) && config[`${elementType}_border_color`]);
|
|
3239
|
+
const styles = [];
|
|
3240
|
+
if (fill) styles.push(`fill:${fill}`);
|
|
3241
|
+
if (stroke) styles.push(`stroke:${stroke}`);
|
|
3242
|
+
styles.push(`color:${shape.fontColor ?? "#FFFFFF"}`);
|
|
3243
|
+
return styles;
|
|
3244
|
+
}, "elementCssStyles");
|
|
3245
|
+
var buildC4Node = /* @__PURE__ */ __name((shape, config, padding, look, elementWidth) => {
|
|
3246
|
+
const typeC4Shape = shape.typeC4Shape.text;
|
|
3247
|
+
const cssClasses = ["c4-shape", `c4-${typeC4Shape}`];
|
|
3248
|
+
if (isExternal(typeC4Shape)) cssClasses.push("c4-external");
|
|
3249
|
+
const nodeShape = resolveNodeShape(shape);
|
|
3250
|
+
const cssStyles = elementCssStyles(shape, config);
|
|
3251
|
+
if (nodeShape === "rounded" || nodeShape === "fr-rect") cssStyles.push("rx:12px", "ry:12px");
|
|
3252
|
+
return {
|
|
3253
|
+
id: shape.alias,
|
|
3254
|
+
label: shape.label.text,
|
|
3255
|
+
stereotype: stereotypeText(shape),
|
|
3256
|
+
description: shape.descr?.text ? [shape.descr.text] : void 0,
|
|
3257
|
+
labelType: "string",
|
|
3258
|
+
isGroup: false,
|
|
3259
|
+
shape: nodeShape,
|
|
3260
|
+
cssClasses: cssClasses.join(" "),
|
|
3261
|
+
cssStyles,
|
|
3262
|
+
padding,
|
|
3263
|
+
look,
|
|
3264
|
+
useHtmlLabels: false,
|
|
3265
|
+
width: elementWidth
|
|
3266
|
+
};
|
|
3267
|
+
}, "buildC4Node");
|
|
3268
|
+
var globalBoundaryMaxX = 0;
|
|
3269
|
+
var globalBoundaryMaxY = 0;
|
|
3270
|
+
var c4ShapeInRow2 = 4;
|
|
3271
|
+
var c4BoundaryInRow2 = 2;
|
|
3272
|
+
parser.yy = c4Db_default;
|
|
3273
|
+
var conf = {};
|
|
3274
|
+
var Bounds = class {
|
|
3275
|
+
static {
|
|
3276
|
+
__name(this, "Bounds");
|
|
3277
|
+
}
|
|
3278
|
+
constructor(diagObj) {
|
|
3279
|
+
this.name = "";
|
|
3280
|
+
this.data = {};
|
|
3281
|
+
this.data.startx = void 0;
|
|
3282
|
+
this.data.stopx = void 0;
|
|
3283
|
+
this.data.starty = void 0;
|
|
3284
|
+
this.data.stopy = void 0;
|
|
3285
|
+
this.data.widthLimit = void 0;
|
|
3286
|
+
this.nextData = {};
|
|
3287
|
+
this.nextData.startx = void 0;
|
|
3288
|
+
this.nextData.stopx = void 0;
|
|
3289
|
+
this.nextData.starty = void 0;
|
|
3290
|
+
this.nextData.stopy = void 0;
|
|
3291
|
+
this.nextData.cnt = 0;
|
|
3292
|
+
setConf(diagObj.db.getConfig());
|
|
3293
|
+
}
|
|
3294
|
+
setData(startx, stopx, starty, stopy) {
|
|
3295
|
+
this.nextData.startx = this.data.startx = startx;
|
|
3296
|
+
this.nextData.stopx = this.data.stopx = stopx;
|
|
3297
|
+
this.nextData.starty = this.data.starty = starty;
|
|
3298
|
+
this.nextData.stopy = this.data.stopy = stopy;
|
|
3299
|
+
}
|
|
3300
|
+
updateVal(obj, key, val, fun) {
|
|
3301
|
+
if (obj[key] === void 0) obj[key] = val;
|
|
3302
|
+
else obj[key] = fun(val, obj[key]);
|
|
3303
|
+
}
|
|
3304
|
+
insert(c4Shape) {
|
|
3305
|
+
this.nextData.cnt = this.nextData.cnt + 1;
|
|
3306
|
+
const nextStopx = this.nextData.stopx;
|
|
3307
|
+
const widthLimit = this.data.widthLimit;
|
|
3308
|
+
let _startx = this.nextData.startx === this.nextData.stopx ? nextStopx + c4Shape.margin : nextStopx + c4Shape.margin * 2;
|
|
3309
|
+
let _stopx = _startx + c4Shape.width;
|
|
3310
|
+
let _starty = this.nextData.starty + c4Shape.margin * 2;
|
|
3311
|
+
let _stopy = _starty + c4Shape.height;
|
|
3312
|
+
if (_startx >= widthLimit || _stopx >= widthLimit || this.nextData.cnt > c4ShapeInRow2) {
|
|
3313
|
+
_startx = this.nextData.startx + c4Shape.margin + conf.nextLinePaddingX;
|
|
3314
|
+
_starty = this.nextData.stopy + c4Shape.margin * 2;
|
|
3315
|
+
this.nextData.stopx = _stopx = _startx + c4Shape.width;
|
|
3316
|
+
this.nextData.starty = this.nextData.stopy;
|
|
3317
|
+
this.nextData.stopy = _stopy = _starty + c4Shape.height;
|
|
3318
|
+
this.nextData.cnt = 1;
|
|
3319
|
+
}
|
|
3320
|
+
c4Shape.x = _startx;
|
|
3321
|
+
c4Shape.y = _starty;
|
|
3322
|
+
this.updateVal(this.data, "startx", _startx, Math.min);
|
|
3323
|
+
this.updateVal(this.data, "starty", _starty, Math.min);
|
|
3324
|
+
this.updateVal(this.data, "stopx", _stopx, Math.max);
|
|
3325
|
+
this.updateVal(this.data, "stopy", _stopy, Math.max);
|
|
3326
|
+
this.updateVal(this.nextData, "startx", _startx, Math.min);
|
|
3327
|
+
this.updateVal(this.nextData, "starty", _starty, Math.min);
|
|
3328
|
+
this.updateVal(this.nextData, "stopx", _stopx, Math.max);
|
|
3329
|
+
this.updateVal(this.nextData, "stopy", _stopy, Math.max);
|
|
3330
|
+
}
|
|
3331
|
+
init(diagObj) {
|
|
3332
|
+
this.name = "";
|
|
3333
|
+
this.data = {
|
|
3334
|
+
startx: void 0,
|
|
3335
|
+
stopx: void 0,
|
|
3336
|
+
starty: void 0,
|
|
3337
|
+
stopy: void 0,
|
|
3338
|
+
widthLimit: void 0
|
|
3339
|
+
};
|
|
3340
|
+
this.nextData = {
|
|
3341
|
+
startx: void 0,
|
|
3342
|
+
stopx: void 0,
|
|
3343
|
+
starty: void 0,
|
|
3344
|
+
stopy: void 0,
|
|
3345
|
+
cnt: 0
|
|
3346
|
+
};
|
|
3347
|
+
setConf(diagObj.db.getConfig());
|
|
3348
|
+
}
|
|
3349
|
+
bumpLastMargin(margin) {
|
|
3350
|
+
this.data.stopx += margin;
|
|
3351
|
+
this.data.stopy += margin;
|
|
3352
|
+
}
|
|
3353
|
+
};
|
|
3354
|
+
var setConf = /* @__PURE__ */ __name(function(cnf) {
|
|
3355
|
+
assignWithDepth_default(conf, cnf);
|
|
3356
|
+
if (cnf?.fontFamily) conf.personFontFamily = conf.systemFontFamily = conf.messageFontFamily = cnf.fontFamily;
|
|
3357
|
+
if (cnf?.fontSize) conf.personFontSize = conf.systemFontSize = conf.messageFontSize = cnf.fontSize;
|
|
3358
|
+
if (cnf?.fontWeight) conf.personFontWeight = conf.systemFontWeight = conf.messageFontWeight = cnf.fontWeight;
|
|
3359
|
+
}, "setConf");
|
|
3360
|
+
var boundaryFont = /* @__PURE__ */ __name((cnf) => {
|
|
3361
|
+
return {
|
|
3362
|
+
fontFamily: cnf.boundaryFontFamily,
|
|
3363
|
+
fontSize: cnf.boundaryFontSize,
|
|
3364
|
+
fontWeight: cnf.boundaryFontWeight
|
|
3365
|
+
};
|
|
3366
|
+
}, "boundaryFont");
|
|
3367
|
+
var messageFont = /* @__PURE__ */ __name((cnf) => {
|
|
3368
|
+
return {
|
|
3369
|
+
fontFamily: cnf.messageFontFamily,
|
|
3370
|
+
fontSize: cnf.messageFontSize,
|
|
3371
|
+
fontWeight: cnf.messageFontWeight
|
|
3372
|
+
};
|
|
3373
|
+
}, "messageFont");
|
|
3374
|
+
function calcC4ShapeTextWH(textType, c4Shape, c4ShapeTextWrap, textConf, textLimitWidth) {
|
|
3375
|
+
const textElement = c4Shape[textType];
|
|
3376
|
+
if (!textElement.width) if (c4ShapeTextWrap) {
|
|
3377
|
+
textElement.text = wrapLabel(textElement.text, textLimitWidth, textConf);
|
|
3378
|
+
textElement.textLines = textElement.text.split(common_default.lineBreakRegex).length;
|
|
3379
|
+
textElement.width = textLimitWidth;
|
|
3380
|
+
textElement.height = calculateTextHeight(textElement.text, textConf);
|
|
3381
|
+
} else {
|
|
3382
|
+
const lines = textElement.text.split(common_default.lineBreakRegex);
|
|
3383
|
+
textElement.textLines = lines.length;
|
|
3384
|
+
let lineHeight = 0;
|
|
3385
|
+
textElement.height = 0;
|
|
3386
|
+
textElement.width = 0;
|
|
3387
|
+
for (const line of lines) {
|
|
3388
|
+
textElement.width = Math.max(calculateTextWidth(line, textConf), textElement.width);
|
|
3389
|
+
lineHeight = calculateTextHeight(line, textConf);
|
|
3390
|
+
textElement.height = textElement.height + lineHeight;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
return textElement;
|
|
3394
|
+
}
|
|
3395
|
+
__name(calcC4ShapeTextWH, "calcC4ShapeTextWH");
|
|
3396
|
+
var drawBoundary2 = /* @__PURE__ */ __name(function(diagram2, boundary, bounds) {
|
|
3397
|
+
const startx = bounds.data.startx;
|
|
3398
|
+
const starty = bounds.data.starty;
|
|
3399
|
+
boundary.x = startx;
|
|
3400
|
+
boundary.y = starty;
|
|
3401
|
+
boundary.width = bounds.data.stopx - startx;
|
|
3402
|
+
boundary.height = bounds.data.stopy - starty;
|
|
3403
|
+
boundary.intersect = (point) => intersect_default.rect({
|
|
3404
|
+
x: boundary.x + boundary.width / 2,
|
|
3405
|
+
y: boundary.y + boundary.height / 2,
|
|
3406
|
+
width: boundary.width,
|
|
3407
|
+
height: boundary.height
|
|
3408
|
+
}, point);
|
|
3409
|
+
boundary.label.y = conf.c4ShapeMargin - 35;
|
|
3410
|
+
const boundaryTextWrap = boundary.wrap && conf.wrap;
|
|
3411
|
+
const boundaryLabelConf = boundaryFont(conf);
|
|
3412
|
+
boundaryLabelConf.fontSize = boundaryLabelConf.fontSize + 2;
|
|
3413
|
+
boundaryLabelConf.fontWeight = "bold";
|
|
3414
|
+
calcC4ShapeTextWH("label", boundary, boundaryTextWrap, boundaryLabelConf, calculateTextWidth(boundary.label.text, boundaryLabelConf));
|
|
3415
|
+
svgDraw_default.drawBoundary(diagram2, boundary, conf);
|
|
3416
|
+
}, "drawBoundary");
|
|
3417
|
+
var drawC4ShapeArray = /* @__PURE__ */ __name(async function(currentBounds, diagram2, c4ShapeArray2, c4ShapeKeys) {
|
|
3418
|
+
const mermaidConfig = getConfig2();
|
|
3419
|
+
const look = mermaidConfig.look ?? "classic";
|
|
3420
|
+
const renderOptions = { config: mermaidConfig };
|
|
3421
|
+
const diagramId = diagram2.attr("id") ?? "";
|
|
3422
|
+
const c4Shapes = c4ShapeKeys.map((key) => c4ShapeArray2[Number(key)]);
|
|
3423
|
+
const shapeHandlerFor = /* @__PURE__ */ __name((node) => {
|
|
3424
|
+
const handler = node.shape ? shapes[node.shape] : void 0;
|
|
3425
|
+
if (!handler) throw new Error(`C4: no shape handler for "${node.shape}"`);
|
|
3426
|
+
return handler;
|
|
3427
|
+
}, "shapeHandlerFor");
|
|
3428
|
+
await Promise.all(c4Shapes.map(async (c4Shape) => {
|
|
3429
|
+
const node = buildC4Node(c4Shape, conf, conf.c4ShapePadding, look, conf.width);
|
|
3430
|
+
node.domId = `${diagramId}-${node.id}`;
|
|
3431
|
+
const measured = await shapeHandlerFor(node)(diagram2, node, renderOptions);
|
|
3432
|
+
c4Shape.width = node.width ?? conf.width;
|
|
3433
|
+
c4Shape.height = node.height ?? conf.height;
|
|
3434
|
+
c4Shape.margin = conf.c4ShapeMargin;
|
|
3435
|
+
measured.remove();
|
|
3436
|
+
}));
|
|
3437
|
+
for (const c4Shape of c4Shapes) currentBounds.insert(c4Shape);
|
|
3438
|
+
await Promise.all(c4Shapes.map(async (c4Shape) => {
|
|
3439
|
+
const node = buildC4Node(c4Shape, conf, conf.c4ShapePadding, look, conf.width);
|
|
3440
|
+
node.domId = `${diagramId}-${node.id}`;
|
|
3441
|
+
node.x = c4Shape.x + c4Shape.width / 2;
|
|
3442
|
+
node.y = c4Shape.y + c4Shape.height / 2;
|
|
3443
|
+
const positioned = diagram2.append("g").attr("transform", `translate(${c4Shape.x + c4Shape.width / 2}, ${c4Shape.y + c4Shape.height / 2})`);
|
|
3444
|
+
await shapeHandlerFor(node)(positioned, node, renderOptions);
|
|
3445
|
+
c4Shape.intersect = node.intersect;
|
|
3446
|
+
}));
|
|
3447
|
+
currentBounds.bumpLastMargin(conf.c4ShapeMargin);
|
|
3448
|
+
}, "drawC4ShapeArray");
|
|
3449
|
+
var Point = class {
|
|
3450
|
+
static {
|
|
3451
|
+
__name(this, "Point");
|
|
3452
|
+
}
|
|
3453
|
+
constructor(x, y) {
|
|
3454
|
+
this.x = x;
|
|
3455
|
+
this.y = y;
|
|
3456
|
+
}
|
|
3457
|
+
};
|
|
3458
|
+
var getIntersectPoint = /* @__PURE__ */ __name(function(fromNode, endPoint) {
|
|
3459
|
+
if (!fromNode.intersect) throw new Error(`C4 element "${fromNode.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
|
|
3460
|
+
const { x, y } = fromNode.intersect(endPoint);
|
|
3461
|
+
return new Point(x, y);
|
|
3462
|
+
}, "getIntersectPoint");
|
|
3463
|
+
var getIntersectPoints = /* @__PURE__ */ __name(function(fromNode, endNode) {
|
|
3464
|
+
const endIntersectPoint = {
|
|
3465
|
+
x: 0,
|
|
3466
|
+
y: 0
|
|
3467
|
+
};
|
|
3468
|
+
endIntersectPoint.x = endNode.x + endNode.width / 2;
|
|
3469
|
+
endIntersectPoint.y = endNode.y + endNode.height / 2;
|
|
3470
|
+
const startPoint = getIntersectPoint(fromNode, endIntersectPoint);
|
|
3471
|
+
endIntersectPoint.x = fromNode.x + fromNode.width / 2;
|
|
3472
|
+
endIntersectPoint.y = fromNode.y + fromNode.height / 2;
|
|
3473
|
+
return {
|
|
3474
|
+
startPoint,
|
|
3475
|
+
endPoint: getIntersectPoint(endNode, endIntersectPoint)
|
|
3476
|
+
};
|
|
3477
|
+
}, "getIntersectPoints");
|
|
3478
|
+
var drawRels2 = /* @__PURE__ */ __name(function(diagram2, rels2, getC4ShapeObj, diagObj, diagramId) {
|
|
3479
|
+
const diagramType = diagObj.db.getC4Type();
|
|
3480
|
+
let i = 0;
|
|
3481
|
+
for (const rel of rels2) {
|
|
3482
|
+
i = i + 1;
|
|
3483
|
+
const relTextWrap = rel.wrap && conf.wrap;
|
|
3484
|
+
const relConf = messageFont(conf);
|
|
3485
|
+
if (diagramType === "C4Dynamic") rel.label.text = i + ": " + rel.label.text;
|
|
3486
|
+
let textLimitWidth = calculateTextWidth(rel.label.text, relConf);
|
|
3487
|
+
calcC4ShapeTextWH("label", rel, relTextWrap, relConf, textLimitWidth);
|
|
3488
|
+
if (rel.techn && rel.techn.text !== "") {
|
|
3489
|
+
textLimitWidth = calculateTextWidth(rel.techn.text, relConf);
|
|
3490
|
+
calcC4ShapeTextWH("techn", rel, relTextWrap, relConf, textLimitWidth);
|
|
3491
|
+
}
|
|
3492
|
+
if (rel.descr && rel.descr.text !== "") {
|
|
3493
|
+
textLimitWidth = calculateTextWidth(rel.descr.text, relConf);
|
|
3494
|
+
calcC4ShapeTextWH("descr", rel, relTextWrap, relConf, textLimitWidth);
|
|
3495
|
+
}
|
|
3496
|
+
const fromNode = getC4ShapeObj(rel.from);
|
|
3497
|
+
const endNode = getC4ShapeObj(rel.to);
|
|
3498
|
+
if (!fromNode || !endNode) throw new Error(`C4 rel "${rel.from}" -> "${rel.to}" references an unknown shape or boundary`);
|
|
3499
|
+
const points = getIntersectPoints(fromNode, endNode);
|
|
3500
|
+
if (!points.startPoint || !points.endPoint) throw new Error(`Could not calculate intersection points for rel "${rel.from}" -> "${rel.to}"`);
|
|
3501
|
+
rel.startPoint = points.startPoint;
|
|
3502
|
+
rel.endPoint = points.endPoint;
|
|
3503
|
+
}
|
|
3504
|
+
svgDraw_default.drawRels(diagram2, rels2, conf, diagramId);
|
|
3505
|
+
}, "drawRels");
|
|
3506
|
+
async function drawInsideBoundary(diagram2, parentBoundaryAlias, parentBounds, currentBoundaries, diagObj) {
|
|
3507
|
+
const db = diagObj.db;
|
|
3508
|
+
const currentBounds = new Bounds(diagObj);
|
|
3509
|
+
currentBounds.data.widthLimit = parentBounds.data.widthLimit / Math.min(c4BoundaryInRow2, currentBoundaries.length);
|
|
3510
|
+
for (const [i, currentBoundary] of currentBoundaries.entries()) {
|
|
3511
|
+
let Y = 0;
|
|
3512
|
+
currentBoundary.image = {
|
|
3513
|
+
width: 0,
|
|
3514
|
+
height: 0,
|
|
3515
|
+
Y: 0
|
|
3516
|
+
};
|
|
3517
|
+
if (currentBoundary.sprite) {
|
|
3518
|
+
currentBoundary.image.width = 48;
|
|
3519
|
+
currentBoundary.image.height = 48;
|
|
3520
|
+
currentBoundary.image.Y = Y;
|
|
3521
|
+
Y = currentBoundary.image.Y + currentBoundary.image.height;
|
|
3522
|
+
}
|
|
3523
|
+
const currentBoundaryTextWrap = currentBoundary.wrap && conf.wrap;
|
|
3524
|
+
const currentBoundaryLabelConf = boundaryFont(conf);
|
|
3525
|
+
currentBoundaryLabelConf.fontSize = currentBoundaryLabelConf.fontSize + 2;
|
|
3526
|
+
currentBoundaryLabelConf.fontWeight = "bold";
|
|
3527
|
+
const label = calcC4ShapeTextWH("label", currentBoundary, currentBoundaryTextWrap, currentBoundaryLabelConf, currentBounds.data.widthLimit);
|
|
3528
|
+
label.Y = Y + 8;
|
|
3529
|
+
Y = label.Y + label.height;
|
|
3530
|
+
if (currentBoundary.type && currentBoundary.type.text !== "") {
|
|
3531
|
+
currentBoundary.type.text = "[" + currentBoundary.type.text + "]";
|
|
3532
|
+
const type = calcC4ShapeTextWH("type", currentBoundary, currentBoundaryTextWrap, boundaryFont(conf), currentBounds.data.widthLimit);
|
|
3533
|
+
type.Y = Y + 5;
|
|
3534
|
+
Y = type.Y + type.height;
|
|
3535
|
+
}
|
|
3536
|
+
if (currentBoundary.descr && currentBoundary.descr.text !== "") {
|
|
3537
|
+
const currentBoundaryDescrConf = boundaryFont(conf);
|
|
3538
|
+
currentBoundaryDescrConf.fontSize = currentBoundaryDescrConf.fontSize - 2;
|
|
3539
|
+
const descr = calcC4ShapeTextWH("descr", currentBoundary, currentBoundaryTextWrap, currentBoundaryDescrConf, currentBounds.data.widthLimit);
|
|
3540
|
+
descr.Y = Y + 20;
|
|
3541
|
+
Y = descr.Y + descr.height;
|
|
3542
|
+
}
|
|
3543
|
+
if (i == 0 || i % c4BoundaryInRow2 === 0) {
|
|
3544
|
+
const _x = parentBounds.data.startx + conf.diagramMarginX;
|
|
3545
|
+
const _y = parentBounds.data.stopy + conf.diagramMarginY + Y;
|
|
3546
|
+
currentBounds.setData(_x, _x, _y, _y);
|
|
3547
|
+
} else {
|
|
3548
|
+
const _x = currentBounds.data.stopx !== currentBounds.data.startx ? currentBounds.data.stopx + conf.diagramMarginX : currentBounds.data.startx;
|
|
3549
|
+
const _y = currentBounds.data.starty;
|
|
3550
|
+
currentBounds.setData(_x, _x, _y, _y);
|
|
3551
|
+
}
|
|
3552
|
+
currentBounds.name = currentBoundary.alias;
|
|
3553
|
+
const currentPersonOrSystemArray = db.getC4ShapeArray(currentBoundary.alias);
|
|
3554
|
+
const currentPersonOrSystemKeys = db.getC4ShapeKeys(currentBoundary.alias);
|
|
3555
|
+
if (currentPersonOrSystemKeys.length > 0) await drawC4ShapeArray(currentBounds, diagram2, currentPersonOrSystemArray, currentPersonOrSystemKeys);
|
|
3556
|
+
parentBoundaryAlias = currentBoundary.alias;
|
|
3557
|
+
const nextCurrentBoundaries = db.getBoundaries(parentBoundaryAlias);
|
|
3558
|
+
if (nextCurrentBoundaries.length > 0) await drawInsideBoundary(diagram2, parentBoundaryAlias, currentBounds, nextCurrentBoundaries, diagObj);
|
|
3559
|
+
if (currentBoundary.alias !== "global") drawBoundary2(diagram2, currentBoundary, currentBounds);
|
|
3560
|
+
parentBounds.data.stopy = Math.max(currentBounds.data.stopy + conf.c4ShapeMargin, parentBounds.data.stopy);
|
|
3561
|
+
parentBounds.data.stopx = Math.max(currentBounds.data.stopx + conf.c4ShapeMargin, parentBounds.data.stopx);
|
|
3562
|
+
globalBoundaryMaxX = Math.max(globalBoundaryMaxX, parentBounds.data.stopx);
|
|
3563
|
+
globalBoundaryMaxY = Math.max(globalBoundaryMaxY, parentBounds.data.stopy);
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
__name(drawInsideBoundary, "drawInsideBoundary");
|
|
3567
|
+
var c4Renderer_default = {
|
|
3568
|
+
drawPersonOrSystemArray: drawC4ShapeArray,
|
|
3569
|
+
drawBoundary: drawBoundary2,
|
|
3570
|
+
setConf,
|
|
3571
|
+
draw: /* @__PURE__ */ __name(async function(_text, id, _version, diagObj) {
|
|
3572
|
+
conf = getRequiredConfig("c4");
|
|
3573
|
+
const securityLevel = getConfig2().securityLevel;
|
|
3574
|
+
const { root } = getDiagramRoot(id, securityLevel);
|
|
3575
|
+
const db = diagObj.db;
|
|
3576
|
+
db.setWrap(conf.wrap);
|
|
3577
|
+
c4ShapeInRow2 = db.getC4ShapeInRow();
|
|
3578
|
+
c4BoundaryInRow2 = db.getC4BoundaryInRow();
|
|
3579
|
+
log.debug(`C:${JSON.stringify(conf, null, 2)}`);
|
|
3580
|
+
const diagram2 = root.select(`[id="${id}"]`);
|
|
3581
|
+
svgDraw_default.insertComputerIcon(diagram2, id);
|
|
3582
|
+
svgDraw_default.insertDatabaseIcon(diagram2, id);
|
|
3583
|
+
svgDraw_default.insertClockIcon(diagram2, id);
|
|
3584
|
+
const screenBounds = new Bounds(diagObj);
|
|
3585
|
+
screenBounds.setData(conf.diagramMarginX, conf.diagramMarginX, conf.diagramMarginY, conf.diagramMarginY);
|
|
3586
|
+
screenBounds.data.widthLimit = screen.availWidth;
|
|
3587
|
+
globalBoundaryMaxX = conf.diagramMarginX;
|
|
3588
|
+
globalBoundaryMaxY = conf.diagramMarginY;
|
|
3589
|
+
const title2 = db.getTitle();
|
|
3590
|
+
await drawInsideBoundary(diagram2, "", screenBounds, db.getBoundaries(""), diagObj);
|
|
3591
|
+
svgDraw_default.insertArrowHead(diagram2, id);
|
|
3592
|
+
svgDraw_default.insertArrowEnd(diagram2, id);
|
|
3593
|
+
svgDraw_default.insertArrowCrossHead(diagram2, id);
|
|
3594
|
+
svgDraw_default.insertArrowFilledHead(diagram2, id);
|
|
3595
|
+
drawRels2(diagram2, db.getRels(), db.getC4Shape, diagObj, id);
|
|
3596
|
+
screenBounds.data.stopx = globalBoundaryMaxX;
|
|
3597
|
+
screenBounds.data.stopy = globalBoundaryMaxY;
|
|
3598
|
+
const box = screenBounds.data;
|
|
3599
|
+
const boxStartx = box.startx;
|
|
3600
|
+
const boxStarty = box.starty;
|
|
3601
|
+
const height = globalBoundaryMaxY - boxStarty + 2 * conf.diagramMarginY;
|
|
3602
|
+
const boxWidth = globalBoundaryMaxX - boxStartx;
|
|
3603
|
+
const width = boxWidth + 2 * conf.diagramMarginX;
|
|
3604
|
+
if (title2) diagram2.append("text").text(title2).attr("x", boxWidth / 2 - 4 * conf.diagramMarginX).attr("y", boxStarty + conf.diagramMarginY);
|
|
3605
|
+
configureSvgSize(diagram2, height, width, conf.useMaxWidth);
|
|
3606
|
+
const extraVertForTitle = title2 ? 60 : 0;
|
|
3607
|
+
diagram2.attr("viewBox", boxStartx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle));
|
|
3608
|
+
log.debug(`models:`, box);
|
|
3609
|
+
}, "draw")
|
|
3610
|
+
};
|
|
3611
|
+
var elementFontStyles = /* @__PURE__ */ __name(() => {
|
|
3612
|
+
const c4 = getConfig2().c4 ?? {};
|
|
3613
|
+
const sheet = new CSSStyleSheet();
|
|
3614
|
+
for (const type of C4_ELEMENT_TYPES) {
|
|
3615
|
+
const rule = sheet.cssRules[sheet.insertRule(`.c4-shape.c4-${type} .label {}`, sheet.cssRules.length)];
|
|
3616
|
+
const fontFamily = c4[`${type}FontFamily`];
|
|
3617
|
+
const fontSize = c4[`${type}FontSize`];
|
|
3618
|
+
const fontWeight = c4[`${type}FontWeight`];
|
|
3619
|
+
if (fontFamily) rule.style.setProperty("font-family", fontFamily);
|
|
3620
|
+
if (fontSize) rule.style.setProperty("font-size", typeof fontSize === "number" ? `${fontSize}px` : fontSize);
|
|
3621
|
+
if (fontWeight) rule.style.setProperty("font-weight", String(fontWeight));
|
|
3622
|
+
}
|
|
3623
|
+
return [...sheet.cssRules].filter((rule) => rule.style.length > 0).map((rule) => ` ${rule.cssText}`).join("\n");
|
|
3624
|
+
}, "elementFontStyles");
|
|
3625
|
+
var diagram = {
|
|
3626
|
+
parser: c4Diagram_default,
|
|
3627
|
+
db: c4Db_default,
|
|
3628
|
+
renderer: c4Renderer_default,
|
|
3629
|
+
styles: /* @__PURE__ */ __name((options) => `.person {
|
|
3630
|
+
stroke: ${options.personBorder};
|
|
3631
|
+
fill: ${options.personBkg};
|
|
3632
|
+
}
|
|
3633
|
+
${elementFontStyles()}
|
|
3634
|
+
|
|
3635
|
+
/* The element font colour is set inline per element (default white); the
|
|
3636
|
+
label text takes it via currentColor. */
|
|
3637
|
+
.c4-shape .label,
|
|
3638
|
+
.c4-shape .label text {
|
|
3639
|
+
color: inherit;
|
|
3640
|
+
fill: currentColor;
|
|
3641
|
+
}
|
|
3642
|
+
/* Structurizr typography: bold name, smaller stereotype/type and description lines. */
|
|
3643
|
+
.c4-shape .label .c4-name {
|
|
3644
|
+
font-weight: bold;
|
|
3645
|
+
}
|
|
3646
|
+
.c4-shape .label .c4-type {
|
|
3647
|
+
font-size: 0.75em;
|
|
3648
|
+
}
|
|
3649
|
+
.c4-shape .label .c4-descr {
|
|
3650
|
+
font-size: 0.82em;
|
|
3651
|
+
}
|
|
3652
|
+
.c4-shape .basic,
|
|
3653
|
+
.c4-shape rect,
|
|
3654
|
+
.c4-shape path,
|
|
3655
|
+
.c4-shape circle,
|
|
3656
|
+
.c4-shape ellipse,
|
|
3657
|
+
.c4-shape line {
|
|
3658
|
+
stroke-width: 2px;
|
|
3659
|
+
}
|
|
3660
|
+
`, "getStyles"),
|
|
3661
|
+
init: /* @__PURE__ */ __name(({ c4, wrap }) => {
|
|
3662
|
+
c4Renderer_default.setConf(c4);
|
|
3663
|
+
c4Db_default.setWrap(wrap);
|
|
3664
|
+
}, "init")
|
|
3665
|
+
};
|
|
3666
|
+
|
|
3667
|
+
//#endregion
|
|
3668
|
+
export { diagram };
|