@sourcegraph/amp 0.0.1749585689-g82b91d → 0.0.1749600114-g5c00b8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/architectureDiagram-RWNHDUBN-1v8WgxdD.js +4635 -0
  3. package/dist/blockDiagram-XZSR5OGQ-XFBYN-jB.js +2243 -0
  4. package/dist/c4Diagram-6R2MQUNL-B0L0pltn.js +1587 -0
  5. package/dist/chunk-COUQ6RZ3-qd4eG6tc.js +17852 -0
  6. package/dist/chunk-CRQPXCKQ-yjI467Bq.js +65 -0
  7. package/dist/chunk-EFPBJHX4-DdHmqd0M.js +1378 -0
  8. package/dist/chunk-EOAU2GW5-CpRNAcjo.js +253 -0
  9. package/dist/chunk-IHYUGLNO-DJcRQIf7.js +1365 -0
  10. package/dist/chunk-K2ZEYYM2-CbqHhUqy.js +9 -0
  11. package/dist/chunk-Q7VUVKE6-gBSSbdjU.js +24 -0
  12. package/dist/chunk-T2M37SMK-Br8mK30k.js +1411 -0
  13. package/dist/chunk-TGZYFRKZ-BYBLXoJz.js +1331 -0
  14. package/dist/chunk-YJGJQOYZ-BGiSkWF0.js +19 -0
  15. package/dist/classDiagram-LB37KKQG-DhFsEyDS.js +17 -0
  16. package/dist/classDiagram-v2-KFQJBC22-DhFsEyDS.js +17 -0
  17. package/dist/{client-C1WG2nEf.js → client-D-YAg8x6.js} +6 -6
  18. package/dist/{console-DK0gDzNQ.js → console-CoE5Qzyz.js} +41106 -22971
  19. package/dist/create_file.node-Co0Uh1F3.js +21 -0
  20. package/dist/dagre-CMTPJJKG-UDPzd9Iy.js +446 -0
  21. package/dist/diagram-BIPOGRU5-B7TV59-n.js +128 -0
  22. package/dist/diagram-YF4VECWA-LsAZsciQ.js +219 -0
  23. package/dist/{edit_file.node-BH524GkF.js → edit_file.node-CmTZeBc2.js} +11 -11
  24. package/dist/erDiagram-AK44R45H-BWpeEu7D.js +843 -0
  25. package/dist/{executable-5cBRGrsC.js → executable-BE7tfoX5.js} +1 -1
  26. package/dist/{files-CybxYgbE.js → files-DqpRf5q4.js} +10 -10
  27. package/dist/flowDiagram-XARHJDSH-DzpV02UB.js +1618 -0
  28. package/dist/ganttDiagram-H5QQZTZ5-C0BhJTzn.js +1605 -0
  29. package/dist/gitGraphDiagram-XHLTLO3W-0EiOmv44.js +701 -0
  30. package/dist/{glob.node-C6HbLuPt.js → glob.node-DNei8bFS.js} +11 -11
  31. package/dist/{index-C2wo7rRZ.js → index-BcjxaWOc.js} +31 -31
  32. package/dist/infoDiagram-TP2HPDHO-CQX5a0Fc.js +24 -0
  33. package/dist/journeyDiagram-VHRN44N3-C82dEe4G.js +809 -0
  34. package/dist/kanban-definition-K5J3OUUV-xilJcrom.js +718 -0
  35. package/dist/katex-5N2NCDMP-CAsrnb6_.js +11703 -0
  36. package/dist/{list_directory.node-ZQscizpi.js → list_directory.node-CMiNNbXP.js} +1 -1
  37. package/dist/{load-profile-BbmyxO_7.js → load-profile-Cg8XaTx6.js} +1 -1
  38. package/dist/{main-CiUaVPC2.js → main-Dy2VZM_S.js} +15 -15
  39. package/dist/mindmap-definition-TI5ONXTW-BNaRba4R.js +3221 -0
  40. package/dist/{node-DvmQAW7h.js → node-BtG1o_DD.js} +2 -2
  41. package/dist/{node-VrazB_nQ.js → node-BulbxvrV.js} +58 -58
  42. package/dist/{node-Cpbjmhrj.js → node-Cp3D7_hw.js} +71 -71
  43. package/dist/{node-GgocwWwI.js → node-CtoBdTQT.js} +3 -3
  44. package/dist/{node-CiFAW-F3.js → node-Ctw1i0nl.js} +12 -12
  45. package/dist/{node-CgVq0JJ9.js → node-D1zxOCuN.js} +1 -1
  46. package/dist/pieDiagram-FPR3CNQC-_30_tQz0.js +120 -0
  47. package/dist/quadrantDiagram-RLP5YTJ2-CTD43GTk.js +1028 -0
  48. package/dist/radar-MK3ICKWK-55CS4JTO-afihMdR4.js +14398 -0
  49. package/dist/{read_file.node-CIdAFiJ6.js → read_file.node-QZ0VCmB2.js} +1 -1
  50. package/dist/requirementDiagram-P5NVWGNK-Sd2_6g8e.js +853 -0
  51. package/dist/sankeyDiagram-C6NZRJHT-D1EcCYaw.js +864 -0
  52. package/dist/sequenceDiagram-6SLVIXKN-CghQTpGf.js +2283 -0
  53. package/dist/stateDiagram-WI5ZVJ5I-Bv21MlSK.js +272 -0
  54. package/dist/stateDiagram-v2-KVDSFUFK-BgP0D8xL.js +17 -0
  55. package/dist/{stdio-D9HyubOc.js → stdio-CCCGI3C7.js} +8 -8
  56. package/dist/storybook.js +7 -7
  57. package/dist/timeline-definition-65575674-BUqRZdJ-.js +800 -0
  58. package/dist/{undo_edit.node-VYuTxRwd.js → undo_edit.node-BkletvTZ.js} +5 -5
  59. package/dist/xychartDiagram-674MFTBU-DjBabATx.js +1291 -0
  60. package/package.json +1 -1
  61. package/dist/create_file.node-DtVTaHj5.js +0 -21
@@ -0,0 +1,1378 @@
1
+ #!/usr/bin/env node
2
+ import { g as Ze, s as $e } from "./chunk-Q7VUVKE6-gBSSbdjU.js";
3
+ import { _ as p, A as ve, y as D, Q as et, R as tt, S as Ie, z as q, x as st, w as it, u as at, v as nt, T as rt, U as ut, L as x, Z as lt, Y as ct, I as ot, aJ as M } from "./console-CoE5Qzyz.js";
4
+ var Oe = function() {
5
+ var e = /* @__PURE__ */ p(function(v, l, c, d) {
6
+ for (c = c || {}, d = v.length; d--; c[v[d]] = l) ;
7
+ return c;
8
+ }, "o"), i = [1, 18], r = [1, 19], u = [1, 20], a = [1, 41], o = [1, 42], A = [1, 26], f = [1, 24], T = [1, 25], B = [1, 32], he = [1, 33], de = [1, 34], C = [1, 45], pe = [1, 35], Ae = [1, 36], fe = [1, 37], ge = [1, 38], Ce = [1, 27], me = [1, 28], be = [1, 29], Ee = [1, 30], ye = [1, 31], m = [1, 44], b = [1, 46], E = [1, 43], k = [1, 47], Te = [1, 9], h = [1, 8, 9], J = [1, 58], Z = [1, 59], $ = [1, 60], ee = [1, 61], te = [1, 62], ke = [1, 63], De = [1, 64], se = [1, 8, 9, 41], we = [1, 76], V = [1, 8, 9, 12, 13, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], ie = [1, 8, 9, 12, 13, 17, 20, 22, 39, 41, 44, 48, 58, 66, 67, 68, 69, 70, 71, 72, 77, 79, 84, 99, 101, 102], ae = [13, 58, 84, 99, 101, 102], R = [13, 58, 71, 72, 84, 99, 101, 102], Ve = [13, 58, 66, 67, 68, 69, 70, 84, 99, 101, 102], Fe = [1, 98], G = [1, 115], U = [1, 107], z = [1, 113], K = [1, 108], Y = [1, 109], Q = [1, 110], W = [1, 111], j = [1, 112], X = [1, 114], Pe = [22, 58, 59, 80, 84, 85, 86, 87, 88, 89], _e = [1, 8, 9, 39, 41, 44], ne = [1, 8, 9, 22], Me = [1, 143], Re = [1, 8, 9, 59], N = [1, 8, 9, 22, 58, 59, 80, 84, 85, 86, 87, 88, 89], Be = {
9
+ trace: /* @__PURE__ */ p(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, DOT: 17, className: 18, classLiteralName: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, CLASS: 46, ANNOTATION_START: 47, ANNOTATION_END: 48, MEMBER: 49, SEPARATOR: 50, relation: 51, NOTE_FOR: 52, noteText: 53, NOTE: 54, CLASSDEF: 55, classList: 56, stylesOpt: 57, ALPHA: 58, COMMA: 59, direction_tb: 60, direction_bt: 61, direction_rl: 62, direction_lr: 63, relationType: 64, lineType: 65, AGGREGATION: 66, EXTENSION: 67, COMPOSITION: 68, DEPENDENCY: 69, LOLLIPOP: 70, LINE: 71, DOTTED_LINE: 72, CALLBACK: 73, LINK: 74, LINK_TARGET: 75, CLICK: 76, CALLBACK_NAME: 77, CALLBACK_ARGS: 78, HREF: 79, STYLE: 80, CSSCLASS: 81, style: 82, styleComponent: 83, NUM: 84, COLON: 85, UNIT: 86, SPACE: 87, BRKT: 88, PCT: 89, commentToken: 90, textToken: 91, graphCodeTokens: 92, textNoTagsToken: 93, TAGSTART: 94, TAGEND: 95, "==": 96, "--": 97, DEFAULT: 98, MINUS: 99, keywords: 100, UNICODE_TEXT: 101, BQUOTE_STR: 102, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 17: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "CLASS", 47: "ANNOTATION_START", 48: "ANNOTATION_END", 49: "MEMBER", 50: "SEPARATOR", 52: "NOTE_FOR", 54: "NOTE", 55: "CLASSDEF", 58: "ALPHA", 59: "COMMA", 60: "direction_tb", 61: "direction_bt", 62: "direction_rl", 63: "direction_lr", 66: "AGGREGATION", 67: "EXTENSION", 68: "COMPOSITION", 69: "DEPENDENCY", 70: "LOLLIPOP", 71: "LINE", 72: "DOTTED_LINE", 73: "CALLBACK", 74: "LINK", 75: "LINK_TARGET", 76: "CLICK", 77: "CALLBACK_NAME", 78: "CALLBACK_ARGS", 79: "HREF", 80: "STYLE", 81: "CSSCLASS", 84: "NUM", 85: "COLON", 86: "UNIT", 87: "SPACE", 88: "BRKT", 89: "PCT", 92: "graphCodeTokens", 94: "TAGSTART", 95: "TAGEND", 96: "==", 97: "--", 98: "DEFAULT", 99: "MINUS", 100: "keywords", 101: "UNICODE_TEXT", 102: "BQUOTE_STR" },
14
+ productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 3], [15, 2], [18, 1], [18, 3], [18, 1], [18, 2], [18, 2], [18, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 6], [43, 2], [43, 3], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [56, 1], [56, 3], [32, 1], [32, 1], [32, 1], [32, 1], [51, 3], [51, 2], [51, 2], [51, 1], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [57, 1], [57, 3], [82, 1], [82, 2], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [90, 1], [90, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [93, 1], [93, 1], [93, 1], [93, 1], [16, 1], [16, 1], [16, 1], [16, 1], [19, 1], [53, 1]],
15
+ performAction: /* @__PURE__ */ p(function(l, c, d, n, g, t, H) {
16
+ var s = t.length - 1;
17
+ switch (g) {
18
+ case 8:
19
+ this.$ = t[s - 1];
20
+ break;
21
+ case 9:
22
+ case 12:
23
+ case 14:
24
+ this.$ = t[s];
25
+ break;
26
+ case 10:
27
+ case 13:
28
+ this.$ = t[s - 2] + "." + t[s];
29
+ break;
30
+ case 11:
31
+ case 15:
32
+ this.$ = t[s - 1] + t[s];
33
+ break;
34
+ case 16:
35
+ case 17:
36
+ this.$ = t[s - 1] + "~" + t[s] + "~";
37
+ break;
38
+ case 18:
39
+ n.addRelation(t[s]);
40
+ break;
41
+ case 19:
42
+ t[s - 1].title = n.cleanupLabel(t[s]), n.addRelation(t[s - 1]);
43
+ break;
44
+ case 30:
45
+ this.$ = t[s].trim(), n.setAccTitle(this.$);
46
+ break;
47
+ case 31:
48
+ case 32:
49
+ this.$ = t[s].trim(), n.setAccDescription(this.$);
50
+ break;
51
+ case 33:
52
+ n.addClassesToNamespace(t[s - 3], t[s - 1]);
53
+ break;
54
+ case 34:
55
+ n.addClassesToNamespace(t[s - 4], t[s - 1]);
56
+ break;
57
+ case 35:
58
+ this.$ = t[s], n.addNamespace(t[s]);
59
+ break;
60
+ case 36:
61
+ this.$ = [t[s]];
62
+ break;
63
+ case 37:
64
+ this.$ = [t[s - 1]];
65
+ break;
66
+ case 38:
67
+ t[s].unshift(t[s - 2]), this.$ = t[s];
68
+ break;
69
+ case 40:
70
+ n.setCssClass(t[s - 2], t[s]);
71
+ break;
72
+ case 41:
73
+ n.addMembers(t[s - 3], t[s - 1]);
74
+ break;
75
+ case 42:
76
+ n.setCssClass(t[s - 5], t[s - 3]), n.addMembers(t[s - 5], t[s - 1]);
77
+ break;
78
+ case 43:
79
+ this.$ = t[s], n.addClass(t[s]);
80
+ break;
81
+ case 44:
82
+ this.$ = t[s - 1], n.addClass(t[s - 1]), n.setClassLabel(t[s - 1], t[s]);
83
+ break;
84
+ case 45:
85
+ n.addAnnotation(t[s], t[s - 2]);
86
+ break;
87
+ case 46:
88
+ case 59:
89
+ this.$ = [t[s]];
90
+ break;
91
+ case 47:
92
+ t[s].push(t[s - 1]), this.$ = t[s];
93
+ break;
94
+ case 48:
95
+ break;
96
+ case 49:
97
+ n.addMember(t[s - 1], n.cleanupLabel(t[s]));
98
+ break;
99
+ case 50:
100
+ break;
101
+ case 51:
102
+ break;
103
+ case 52:
104
+ this.$ = { id1: t[s - 2], id2: t[s], relation: t[s - 1], relationTitle1: "none", relationTitle2: "none" };
105
+ break;
106
+ case 53:
107
+ this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 1], relationTitle1: t[s - 2], relationTitle2: "none" };
108
+ break;
109
+ case 54:
110
+ this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 2], relationTitle1: "none", relationTitle2: t[s - 1] };
111
+ break;
112
+ case 55:
113
+ this.$ = { id1: t[s - 4], id2: t[s], relation: t[s - 2], relationTitle1: t[s - 3], relationTitle2: t[s - 1] };
114
+ break;
115
+ case 56:
116
+ n.addNote(t[s], t[s - 1]);
117
+ break;
118
+ case 57:
119
+ n.addNote(t[s]);
120
+ break;
121
+ case 58:
122
+ this.$ = t[s - 2], n.defineClass(t[s - 1], t[s]);
123
+ break;
124
+ case 60:
125
+ this.$ = t[s - 2].concat([t[s]]);
126
+ break;
127
+ case 61:
128
+ n.setDirection("TB");
129
+ break;
130
+ case 62:
131
+ n.setDirection("BT");
132
+ break;
133
+ case 63:
134
+ n.setDirection("RL");
135
+ break;
136
+ case 64:
137
+ n.setDirection("LR");
138
+ break;
139
+ case 65:
140
+ this.$ = { type1: t[s - 2], type2: t[s], lineType: t[s - 1] };
141
+ break;
142
+ case 66:
143
+ this.$ = { type1: "none", type2: t[s], lineType: t[s - 1] };
144
+ break;
145
+ case 67:
146
+ this.$ = { type1: t[s - 1], type2: "none", lineType: t[s] };
147
+ break;
148
+ case 68:
149
+ this.$ = { type1: "none", type2: "none", lineType: t[s] };
150
+ break;
151
+ case 69:
152
+ this.$ = n.relationType.AGGREGATION;
153
+ break;
154
+ case 70:
155
+ this.$ = n.relationType.EXTENSION;
156
+ break;
157
+ case 71:
158
+ this.$ = n.relationType.COMPOSITION;
159
+ break;
160
+ case 72:
161
+ this.$ = n.relationType.DEPENDENCY;
162
+ break;
163
+ case 73:
164
+ this.$ = n.relationType.LOLLIPOP;
165
+ break;
166
+ case 74:
167
+ this.$ = n.lineType.LINE;
168
+ break;
169
+ case 75:
170
+ this.$ = n.lineType.DOTTED_LINE;
171
+ break;
172
+ case 76:
173
+ case 82:
174
+ this.$ = t[s - 2], n.setClickEvent(t[s - 1], t[s]);
175
+ break;
176
+ case 77:
177
+ case 83:
178
+ this.$ = t[s - 3], n.setClickEvent(t[s - 2], t[s - 1]), n.setTooltip(t[s - 2], t[s]);
179
+ break;
180
+ case 78:
181
+ this.$ = t[s - 2], n.setLink(t[s - 1], t[s]);
182
+ break;
183
+ case 79:
184
+ this.$ = t[s - 3], n.setLink(t[s - 2], t[s - 1], t[s]);
185
+ break;
186
+ case 80:
187
+ this.$ = t[s - 3], n.setLink(t[s - 2], t[s - 1]), n.setTooltip(t[s - 2], t[s]);
188
+ break;
189
+ case 81:
190
+ this.$ = t[s - 4], n.setLink(t[s - 3], t[s - 2], t[s]), n.setTooltip(t[s - 3], t[s - 1]);
191
+ break;
192
+ case 84:
193
+ this.$ = t[s - 3], n.setClickEvent(t[s - 2], t[s - 1], t[s]);
194
+ break;
195
+ case 85:
196
+ this.$ = t[s - 4], n.setClickEvent(t[s - 3], t[s - 2], t[s - 1]), n.setTooltip(t[s - 3], t[s]);
197
+ break;
198
+ case 86:
199
+ this.$ = t[s - 3], n.setLink(t[s - 2], t[s]);
200
+ break;
201
+ case 87:
202
+ this.$ = t[s - 4], n.setLink(t[s - 3], t[s - 1], t[s]);
203
+ break;
204
+ case 88:
205
+ this.$ = t[s - 4], n.setLink(t[s - 3], t[s - 1]), n.setTooltip(t[s - 3], t[s]);
206
+ break;
207
+ case 89:
208
+ this.$ = t[s - 5], n.setLink(t[s - 4], t[s - 2], t[s]), n.setTooltip(t[s - 4], t[s - 1]);
209
+ break;
210
+ case 90:
211
+ this.$ = t[s - 2], n.setCssStyle(t[s - 1], t[s]);
212
+ break;
213
+ case 91:
214
+ n.setCssClass(t[s - 1], t[s]);
215
+ break;
216
+ case 92:
217
+ this.$ = [t[s]];
218
+ break;
219
+ case 93:
220
+ t[s - 2].push(t[s]), this.$ = t[s - 2];
221
+ break;
222
+ case 95:
223
+ this.$ = t[s - 1] + t[s];
224
+ break;
225
+ }
226
+ }, "anonymous"),
227
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: r, 37: u, 38: 22, 42: a, 43: 23, 46: o, 47: A, 49: f, 50: T, 52: B, 54: he, 55: de, 58: C, 60: pe, 61: Ae, 62: fe, 63: ge, 73: Ce, 74: me, 76: be, 80: Ee, 81: ye, 84: m, 99: b, 101: E, 102: k }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, e(Te, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, e(h, [2, 18], { 22: [1, 50] }), e(h, [2, 20]), e(h, [2, 21]), e(h, [2, 22]), e(h, [2, 23]), e(h, [2, 24]), e(h, [2, 25]), e(h, [2, 26]), e(h, [2, 27]), e(h, [2, 28]), e(h, [2, 29]), { 34: [1, 51] }, { 36: [1, 52] }, e(h, [2, 32]), e(h, [2, 48], { 51: 53, 64: 56, 65: 57, 13: [1, 54], 22: [1, 55], 66: J, 67: Z, 68: $, 69: ee, 70: te, 71: ke, 72: De }), { 39: [1, 65] }, e(se, [2, 39], { 39: [1, 67], 44: [1, 66] }), e(h, [2, 50]), e(h, [2, 51]), { 16: 68, 58: C, 84: m, 99: b, 101: E }, { 16: 39, 18: 69, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, { 16: 39, 18: 70, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, { 16: 39, 18: 71, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, { 58: [1, 72] }, { 13: [1, 73] }, { 16: 39, 18: 74, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, { 13: we, 53: 75 }, { 56: 77, 58: [1, 78] }, e(h, [2, 61]), e(h, [2, 62]), e(h, [2, 63]), e(h, [2, 64]), e(V, [2, 12], { 16: 39, 19: 40, 18: 80, 17: [1, 79], 20: [1, 81], 58: C, 84: m, 99: b, 101: E, 102: k }), e(V, [2, 14], { 20: [1, 82] }), { 15: 83, 16: 84, 58: C, 84: m, 99: b, 101: E }, { 16: 39, 18: 85, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, e(ie, [2, 118]), e(ie, [2, 119]), e(ie, [2, 120]), e(ie, [2, 121]), e([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], [2, 122]), e(Te, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 18: 21, 38: 22, 43: 23, 16: 39, 19: 40, 5: 86, 33: i, 35: r, 37: u, 42: a, 46: o, 47: A, 49: f, 50: T, 52: B, 54: he, 55: de, 58: C, 60: pe, 61: Ae, 62: fe, 63: ge, 73: Ce, 74: me, 76: be, 80: Ee, 81: ye, 84: m, 99: b, 101: E, 102: k }), { 5: 87, 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: r, 37: u, 38: 22, 42: a, 43: 23, 46: o, 47: A, 49: f, 50: T, 52: B, 54: he, 55: de, 58: C, 60: pe, 61: Ae, 62: fe, 63: ge, 73: Ce, 74: me, 76: be, 80: Ee, 81: ye, 84: m, 99: b, 101: E, 102: k }, e(h, [2, 19]), e(h, [2, 30]), e(h, [2, 31]), { 13: [1, 89], 16: 39, 18: 88, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, { 51: 90, 64: 56, 65: 57, 66: J, 67: Z, 68: $, 69: ee, 70: te, 71: ke, 72: De }, e(h, [2, 49]), { 65: 91, 71: ke, 72: De }, e(ae, [2, 68], { 64: 92, 66: J, 67: Z, 68: $, 69: ee, 70: te }), e(R, [2, 69]), e(R, [2, 70]), e(R, [2, 71]), e(R, [2, 72]), e(R, [2, 73]), e(Ve, [2, 74]), e(Ve, [2, 75]), { 8: [1, 94], 24: 95, 40: 93, 43: 23, 46: o }, { 16: 96, 58: C, 84: m, 99: b, 101: E }, { 45: 97, 49: Fe }, { 48: [1, 99] }, { 13: [1, 100] }, { 13: [1, 101] }, { 77: [1, 102], 79: [1, 103] }, { 22: G, 57: 104, 58: U, 80: z, 82: 105, 83: 106, 84: K, 85: Y, 86: Q, 87: W, 88: j, 89: X }, { 58: [1, 116] }, { 13: we, 53: 117 }, e(h, [2, 57]), e(h, [2, 123]), { 22: G, 57: 118, 58: U, 59: [1, 119], 80: z, 82: 105, 83: 106, 84: K, 85: Y, 86: Q, 87: W, 88: j, 89: X }, e(Pe, [2, 59]), { 16: 39, 18: 120, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, e(V, [2, 15]), e(V, [2, 16]), e(V, [2, 17]), { 39: [2, 35] }, { 15: 122, 16: 84, 17: [1, 121], 39: [2, 9], 58: C, 84: m, 99: b, 101: E }, e(_e, [2, 43], { 11: 123, 12: [1, 124] }), e(Te, [2, 7]), { 9: [1, 125] }, e(ne, [2, 52]), { 16: 39, 18: 126, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, { 13: [1, 128], 16: 39, 18: 127, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, e(ae, [2, 67], { 64: 129, 66: J, 67: Z, 68: $, 69: ee, 70: te }), e(ae, [2, 66]), { 41: [1, 130] }, { 24: 95, 40: 131, 43: 23, 46: o }, { 8: [1, 132], 41: [2, 36] }, e(se, [2, 40], { 39: [1, 133] }), { 41: [1, 134] }, { 41: [2, 46], 45: 135, 49: Fe }, { 16: 39, 18: 136, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, e(h, [2, 76], { 13: [1, 137] }), e(h, [2, 78], { 13: [1, 139], 75: [1, 138] }), e(h, [2, 82], { 13: [1, 140], 78: [1, 141] }), { 13: [1, 142] }, e(h, [2, 90], { 59: Me }), e(Re, [2, 92], { 83: 144, 22: G, 58: U, 80: z, 84: K, 85: Y, 86: Q, 87: W, 88: j, 89: X }), e(N, [2, 94]), e(N, [2, 96]), e(N, [2, 97]), e(N, [2, 98]), e(N, [2, 99]), e(N, [2, 100]), e(N, [2, 101]), e(N, [2, 102]), e(N, [2, 103]), e(N, [2, 104]), e(h, [2, 91]), e(h, [2, 56]), e(h, [2, 58], { 59: Me }), { 58: [1, 145] }, e(V, [2, 13]), { 15: 146, 16: 84, 58: C, 84: m, 99: b, 101: E }, { 39: [2, 11] }, e(_e, [2, 44]), { 13: [1, 147] }, { 1: [2, 4] }, e(ne, [2, 54]), e(ne, [2, 53]), { 16: 39, 18: 148, 19: 40, 58: C, 84: m, 99: b, 101: E, 102: k }, e(ae, [2, 65]), e(h, [2, 33]), { 41: [1, 149] }, { 24: 95, 40: 150, 41: [2, 37], 43: 23, 46: o }, { 45: 151, 49: Fe }, e(se, [2, 41]), { 41: [2, 47] }, e(h, [2, 45]), e(h, [2, 77]), e(h, [2, 79]), e(h, [2, 80], { 75: [1, 152] }), e(h, [2, 83]), e(h, [2, 84], { 13: [1, 153] }), e(h, [2, 86], { 13: [1, 155], 75: [1, 154] }), { 22: G, 58: U, 80: z, 82: 156, 83: 106, 84: K, 85: Y, 86: Q, 87: W, 88: j, 89: X }, e(N, [2, 95]), e(Pe, [2, 60]), { 39: [2, 10] }, { 14: [1, 157] }, e(ne, [2, 55]), e(h, [2, 34]), { 41: [2, 38] }, { 41: [1, 158] }, e(h, [2, 81]), e(h, [2, 85]), e(h, [2, 87]), e(h, [2, 88], { 75: [1, 159] }), e(Re, [2, 93], { 83: 144, 22: G, 58: U, 80: z, 84: K, 85: Y, 86: Q, 87: W, 88: j, 89: X }), e(_e, [2, 8]), e(se, [2, 42]), e(h, [2, 89])],
228
+ defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 35], 122: [2, 11], 125: [2, 4], 135: [2, 47], 146: [2, 10], 150: [2, 38] },
229
+ parseError: /* @__PURE__ */ p(function(l, c) {
230
+ if (c.recoverable)
231
+ this.trace(l);
232
+ else {
233
+ var d = new Error(l);
234
+ throw d.hash = c, d;
235
+ }
236
+ }, "parseError"),
237
+ parse: /* @__PURE__ */ p(function(l) {
238
+ var c = this, d = [0], n = [], g = [null], t = [], H = this.table, s = "", ue = 0, Ge = 0, Xe = 2, Ue = 1, He = t.slice.call(arguments, 1), y = Object.create(this.lexer), I = { yy: {} };
239
+ for (var Se in this.yy)
240
+ Object.prototype.hasOwnProperty.call(this.yy, Se) && (I.yy[Se] = this.yy[Se]);
241
+ y.setInput(l, I.yy), I.yy.lexer = y, I.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
242
+ var Ne = y.yylloc;
243
+ t.push(Ne);
244
+ var qe = y.options && y.options.ranges;
245
+ typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
246
+ function Je(_) {
247
+ d.length = d.length - 2 * _, g.length = g.length - _, t.length = t.length - _;
248
+ }
249
+ p(Je, "popStack");
250
+ function ze() {
251
+ var _;
252
+ return _ = n.pop() || y.lex() || Ue, typeof _ != "number" && (_ instanceof Array && (n = _, _ = n.pop()), _ = c.symbols_[_] || _), _;
253
+ }
254
+ p(ze, "lex");
255
+ for (var F, O, S, Le, P = {}, le, L, Ke, ce; ; ) {
256
+ if (O = d[d.length - 1], this.defaultActions[O] ? S = this.defaultActions[O] : ((F === null || typeof F > "u") && (F = ze()), S = H[O] && H[O][F]), typeof S > "u" || !S.length || !S[0]) {
257
+ var xe = "";
258
+ ce = [];
259
+ for (le in H[O])
260
+ this.terminals_[le] && le > Xe && ce.push("'" + this.terminals_[le] + "'");
261
+ y.showPosition ? xe = "Parse error on line " + (ue + 1) + `:
262
+ ` + y.showPosition() + `
263
+ Expecting ` + ce.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : xe = "Parse error on line " + (ue + 1) + ": Unexpected " + (F == Ue ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(xe, {
264
+ text: y.match,
265
+ token: this.terminals_[F] || F,
266
+ line: y.yylineno,
267
+ loc: Ne,
268
+ expected: ce
269
+ });
270
+ }
271
+ if (S[0] instanceof Array && S.length > 1)
272
+ throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + F);
273
+ switch (S[0]) {
274
+ case 1:
275
+ d.push(F), g.push(y.yytext), t.push(y.yylloc), d.push(S[1]), F = null, Ge = y.yyleng, s = y.yytext, ue = y.yylineno, Ne = y.yylloc;
276
+ break;
277
+ case 2:
278
+ if (L = this.productions_[S[1]][1], P.$ = g[g.length - L], P._$ = {
279
+ first_line: t[t.length - (L || 1)].first_line,
280
+ last_line: t[t.length - 1].last_line,
281
+ first_column: t[t.length - (L || 1)].first_column,
282
+ last_column: t[t.length - 1].last_column
283
+ }, qe && (P._$.range = [
284
+ t[t.length - (L || 1)].range[0],
285
+ t[t.length - 1].range[1]
286
+ ]), Le = this.performAction.apply(P, [
287
+ s,
288
+ Ge,
289
+ ue,
290
+ I.yy,
291
+ S[1],
292
+ g,
293
+ t
294
+ ].concat(He)), typeof Le < "u")
295
+ return Le;
296
+ L && (d = d.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), t = t.slice(0, -1 * L)), d.push(this.productions_[S[1]][0]), g.push(P.$), t.push(P._$), Ke = H[d[d.length - 2]][d[d.length - 1]], d.push(Ke);
297
+ break;
298
+ case 3:
299
+ return !0;
300
+ }
301
+ }
302
+ return !0;
303
+ }, "parse")
304
+ }, je = /* @__PURE__ */ function() {
305
+ var v = {
306
+ EOF: 1,
307
+ parseError: /* @__PURE__ */ p(function(c, d) {
308
+ if (this.yy.parser)
309
+ this.yy.parser.parseError(c, d);
310
+ else
311
+ throw new Error(c);
312
+ }, "parseError"),
313
+ // resets the lexer, sets new input
314
+ setInput: /* @__PURE__ */ p(function(l, c) {
315
+ return this.yy = c || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
316
+ first_line: 1,
317
+ first_column: 0,
318
+ last_line: 1,
319
+ last_column: 0
320
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
321
+ }, "setInput"),
322
+ // consumes and returns one char from the input
323
+ input: /* @__PURE__ */ p(function() {
324
+ var l = this._input[0];
325
+ this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
326
+ var c = l.match(/(?:\r\n?|\n).*/g);
327
+ return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
328
+ }, "input"),
329
+ // unshifts one char (or a string) into the input
330
+ unput: /* @__PURE__ */ p(function(l) {
331
+ var c = l.length, d = l.split(/(?:\r\n?|\n)/g);
332
+ this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
333
+ var n = this.match.split(/(?:\r\n?|\n)/g);
334
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
335
+ var g = this.yylloc.range;
336
+ return this.yylloc = {
337
+ first_line: this.yylloc.first_line,
338
+ last_line: this.yylineno + 1,
339
+ first_column: this.yylloc.first_column,
340
+ last_column: d ? (d.length === n.length ? this.yylloc.first_column : 0) + n[n.length - d.length].length - d[0].length : this.yylloc.first_column - c
341
+ }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
342
+ }, "unput"),
343
+ // When called from action, caches matched text and appends it on next action
344
+ more: /* @__PURE__ */ p(function() {
345
+ return this._more = !0, this;
346
+ }, "more"),
347
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
348
+ reject: /* @__PURE__ */ p(function() {
349
+ if (this.options.backtrack_lexer)
350
+ this._backtrack = !0;
351
+ else
352
+ 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).
353
+ ` + this.showPosition(), {
354
+ text: "",
355
+ token: null,
356
+ line: this.yylineno
357
+ });
358
+ return this;
359
+ }, "reject"),
360
+ // retain first n characters of the match
361
+ less: /* @__PURE__ */ p(function(l) {
362
+ this.unput(this.match.slice(l));
363
+ }, "less"),
364
+ // displays already matched input, i.e. for error messages
365
+ pastInput: /* @__PURE__ */ p(function() {
366
+ var l = this.matched.substr(0, this.matched.length - this.match.length);
367
+ return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
368
+ }, "pastInput"),
369
+ // displays upcoming input, i.e. for error messages
370
+ upcomingInput: /* @__PURE__ */ p(function() {
371
+ var l = this.match;
372
+ return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
373
+ }, "upcomingInput"),
374
+ // displays the character position where the lexing error occurred, i.e. for error messages
375
+ showPosition: /* @__PURE__ */ p(function() {
376
+ var l = this.pastInput(), c = new Array(l.length + 1).join("-");
377
+ return l + this.upcomingInput() + `
378
+ ` + c + "^";
379
+ }, "showPosition"),
380
+ // test the lexed token: return FALSE when not a match, otherwise return token
381
+ test_match: /* @__PURE__ */ p(function(l, c) {
382
+ var d, n, g;
383
+ if (this.options.backtrack_lexer && (g = {
384
+ yylineno: this.yylineno,
385
+ yylloc: {
386
+ first_line: this.yylloc.first_line,
387
+ last_line: this.last_line,
388
+ first_column: this.yylloc.first_column,
389
+ last_column: this.yylloc.last_column
390
+ },
391
+ yytext: this.yytext,
392
+ match: this.match,
393
+ matches: this.matches,
394
+ matched: this.matched,
395
+ yyleng: this.yyleng,
396
+ offset: this.offset,
397
+ _more: this._more,
398
+ _input: this._input,
399
+ yy: this.yy,
400
+ conditionStack: this.conditionStack.slice(0),
401
+ done: this.done
402
+ }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), n = l[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
403
+ first_line: this.yylloc.last_line,
404
+ last_line: this.yylineno + 1,
405
+ first_column: this.yylloc.last_column,
406
+ last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
407
+ }, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(l[0].length), this.matched += l[0], d = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
408
+ return d;
409
+ if (this._backtrack) {
410
+ for (var t in g)
411
+ this[t] = g[t];
412
+ return !1;
413
+ }
414
+ return !1;
415
+ }, "test_match"),
416
+ // return next match in input
417
+ next: /* @__PURE__ */ p(function() {
418
+ if (this.done)
419
+ return this.EOF;
420
+ this._input || (this.done = !0);
421
+ var l, c, d, n;
422
+ this._more || (this.yytext = "", this.match = "");
423
+ for (var g = this._currentRules(), t = 0; t < g.length; t++)
424
+ if (d = this._input.match(this.rules[g[t]]), d && (!c || d[0].length > c[0].length)) {
425
+ if (c = d, n = t, this.options.backtrack_lexer) {
426
+ if (l = this.test_match(d, g[t]), l !== !1)
427
+ return l;
428
+ if (this._backtrack) {
429
+ c = !1;
430
+ continue;
431
+ } else
432
+ return !1;
433
+ } else if (!this.options.flex)
434
+ break;
435
+ }
436
+ return c ? (l = this.test_match(c, g[n]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
437
+ ` + this.showPosition(), {
438
+ text: "",
439
+ token: null,
440
+ line: this.yylineno
441
+ });
442
+ }, "next"),
443
+ // return next match that has a token
444
+ lex: /* @__PURE__ */ p(function() {
445
+ var c = this.next();
446
+ return c || this.lex();
447
+ }, "lex"),
448
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
449
+ begin: /* @__PURE__ */ p(function(c) {
450
+ this.conditionStack.push(c);
451
+ }, "begin"),
452
+ // pop the previously active lexer condition state off the condition stack
453
+ popState: /* @__PURE__ */ p(function() {
454
+ var c = this.conditionStack.length - 1;
455
+ return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
456
+ }, "popState"),
457
+ // produce the lexer rule set which is active for the currently active lexer condition state
458
+ _currentRules: /* @__PURE__ */ p(function() {
459
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
460
+ }, "_currentRules"),
461
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
462
+ topState: /* @__PURE__ */ p(function(c) {
463
+ return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
464
+ }, "topState"),
465
+ // alias for begin(condition)
466
+ pushState: /* @__PURE__ */ p(function(c) {
467
+ this.begin(c);
468
+ }, "pushState"),
469
+ // return the number of states currently on the stack
470
+ stateStackSize: /* @__PURE__ */ p(function() {
471
+ return this.conditionStack.length;
472
+ }, "stateStackSize"),
473
+ options: {},
474
+ performAction: /* @__PURE__ */ p(function(c, d, n, g) {
475
+ switch (n) {
476
+ case 0:
477
+ return 60;
478
+ case 1:
479
+ return 61;
480
+ case 2:
481
+ return 62;
482
+ case 3:
483
+ return 63;
484
+ case 4:
485
+ break;
486
+ case 5:
487
+ break;
488
+ case 6:
489
+ return this.begin("acc_title"), 33;
490
+ case 7:
491
+ return this.popState(), "acc_title_value";
492
+ case 8:
493
+ return this.begin("acc_descr"), 35;
494
+ case 9:
495
+ return this.popState(), "acc_descr_value";
496
+ case 10:
497
+ this.begin("acc_descr_multiline");
498
+ break;
499
+ case 11:
500
+ this.popState();
501
+ break;
502
+ case 12:
503
+ return "acc_descr_multiline_value";
504
+ case 13:
505
+ return 8;
506
+ case 14:
507
+ break;
508
+ case 15:
509
+ return 7;
510
+ case 16:
511
+ return 7;
512
+ case 17:
513
+ return "EDGE_STATE";
514
+ case 18:
515
+ this.begin("callback_name");
516
+ break;
517
+ case 19:
518
+ this.popState();
519
+ break;
520
+ case 20:
521
+ this.popState(), this.begin("callback_args");
522
+ break;
523
+ case 21:
524
+ return 77;
525
+ case 22:
526
+ this.popState();
527
+ break;
528
+ case 23:
529
+ return 78;
530
+ case 24:
531
+ this.popState();
532
+ break;
533
+ case 25:
534
+ return "STR";
535
+ case 26:
536
+ this.begin("string");
537
+ break;
538
+ case 27:
539
+ return 80;
540
+ case 28:
541
+ return 55;
542
+ case 29:
543
+ return this.begin("namespace"), 42;
544
+ case 30:
545
+ return this.popState(), 8;
546
+ case 31:
547
+ break;
548
+ case 32:
549
+ return this.begin("namespace-body"), 39;
550
+ case 33:
551
+ return this.popState(), 41;
552
+ case 34:
553
+ return "EOF_IN_STRUCT";
554
+ case 35:
555
+ return 8;
556
+ case 36:
557
+ break;
558
+ case 37:
559
+ return "EDGE_STATE";
560
+ case 38:
561
+ return this.begin("class"), 46;
562
+ case 39:
563
+ return this.popState(), 8;
564
+ case 40:
565
+ break;
566
+ case 41:
567
+ return this.popState(), this.popState(), 41;
568
+ case 42:
569
+ return this.begin("class-body"), 39;
570
+ case 43:
571
+ return this.popState(), 41;
572
+ case 44:
573
+ return "EOF_IN_STRUCT";
574
+ case 45:
575
+ return "EDGE_STATE";
576
+ case 46:
577
+ return "OPEN_IN_STRUCT";
578
+ case 47:
579
+ break;
580
+ case 48:
581
+ return "MEMBER";
582
+ case 49:
583
+ return 81;
584
+ case 50:
585
+ return 73;
586
+ case 51:
587
+ return 74;
588
+ case 52:
589
+ return 76;
590
+ case 53:
591
+ return 52;
592
+ case 54:
593
+ return 54;
594
+ case 55:
595
+ return 47;
596
+ case 56:
597
+ return 48;
598
+ case 57:
599
+ return 79;
600
+ case 58:
601
+ this.popState();
602
+ break;
603
+ case 59:
604
+ return "GENERICTYPE";
605
+ case 60:
606
+ this.begin("generic");
607
+ break;
608
+ case 61:
609
+ this.popState();
610
+ break;
611
+ case 62:
612
+ return "BQUOTE_STR";
613
+ case 63:
614
+ this.begin("bqstring");
615
+ break;
616
+ case 64:
617
+ return 75;
618
+ case 65:
619
+ return 75;
620
+ case 66:
621
+ return 75;
622
+ case 67:
623
+ return 75;
624
+ case 68:
625
+ return 67;
626
+ case 69:
627
+ return 67;
628
+ case 70:
629
+ return 69;
630
+ case 71:
631
+ return 69;
632
+ case 72:
633
+ return 68;
634
+ case 73:
635
+ return 66;
636
+ case 74:
637
+ return 70;
638
+ case 75:
639
+ return 71;
640
+ case 76:
641
+ return 72;
642
+ case 77:
643
+ return 22;
644
+ case 78:
645
+ return 44;
646
+ case 79:
647
+ return 99;
648
+ case 80:
649
+ return 17;
650
+ case 81:
651
+ return "PLUS";
652
+ case 82:
653
+ return 85;
654
+ case 83:
655
+ return 59;
656
+ case 84:
657
+ return 88;
658
+ case 85:
659
+ return 88;
660
+ case 86:
661
+ return 89;
662
+ case 87:
663
+ return "EQUALS";
664
+ case 88:
665
+ return "EQUALS";
666
+ case 89:
667
+ return 58;
668
+ case 90:
669
+ return 12;
670
+ case 91:
671
+ return 14;
672
+ case 92:
673
+ return "PUNCTUATION";
674
+ case 93:
675
+ return 84;
676
+ case 94:
677
+ return 101;
678
+ case 95:
679
+ return 87;
680
+ case 96:
681
+ return 87;
682
+ case 97:
683
+ return 9;
684
+ }
685
+ }, "anonymous"),
686
+ rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
687
+ conditions: { "namespace-body": { rules: [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97], inclusive: !0 } }
688
+ };
689
+ return v;
690
+ }();
691
+ Be.lexer = je;
692
+ function re() {
693
+ this.yy = {};
694
+ }
695
+ return p(re, "Parser"), re.prototype = Be, Be.Parser = re, new re();
696
+ }();
697
+ Oe.parser = Oe;
698
+ var Ct = Oe, Ye = ["#", "+", "~", "-", ""], Qe = class {
699
+ static {
700
+ p(this, "ClassMember");
701
+ }
702
+ constructor(e, i) {
703
+ this.memberType = i, this.visibility = "", this.classifier = "", this.text = "";
704
+ const r = ot(e, D());
705
+ this.parseMember(r);
706
+ }
707
+ getDisplayDetails() {
708
+ let e = this.visibility + M(this.id);
709
+ this.memberType === "method" && (e += `(${M(this.parameters.trim())})`, this.returnType && (e += " : " + M(this.returnType))), e = e.trim();
710
+ const i = this.parseClassifier();
711
+ return {
712
+ displayText: e,
713
+ cssStyle: i
714
+ };
715
+ }
716
+ parseMember(e) {
717
+ let i = "";
718
+ if (this.memberType === "method") {
719
+ const a = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);
720
+ if (a) {
721
+ const o = a[1] ? a[1].trim() : "";
722
+ if (Ye.includes(o) && (this.visibility = o), this.id = a[2], this.parameters = a[3] ? a[3].trim() : "", i = a[4] ? a[4].trim() : "", this.returnType = a[5] ? a[5].trim() : "", i === "") {
723
+ const A = this.returnType.substring(this.returnType.length - 1);
724
+ /[$*]/.exec(A) && (i = A, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
725
+ }
726
+ }
727
+ } else {
728
+ const u = e.length, a = e.substring(0, 1), o = e.substring(u - 1);
729
+ Ye.includes(a) && (this.visibility = a), /[$*]/.exec(o) && (i = o), this.id = e.substring(
730
+ this.visibility === "" ? 0 : 1,
731
+ i === "" ? u : u - 1
732
+ );
733
+ }
734
+ this.classifier = i, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
735
+ const r = `${this.visibility ? "\\" + this.visibility : ""}${M(this.id)}${this.memberType === "method" ? `(${M(this.parameters)})${this.returnType ? " : " + M(this.returnType) : ""}` : ""}`;
736
+ this.text = r.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
737
+ }
738
+ parseClassifier() {
739
+ switch (this.classifier) {
740
+ case "*":
741
+ return "font-style:italic;";
742
+ case "$":
743
+ return "text-decoration:underline;";
744
+ default:
745
+ return "";
746
+ }
747
+ }
748
+ }, oe = "classId-", We = 0, w = /* @__PURE__ */ p((e) => x.sanitizeText(e, D()), "sanitizeText"), mt = class {
749
+ constructor() {
750
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
751
+ LINE: 0,
752
+ DOTTED_LINE: 1
753
+ }, this.relationType = {
754
+ AGGREGATION: 0,
755
+ EXTENSION: 1,
756
+ COMPOSITION: 2,
757
+ DEPENDENCY: 3,
758
+ LOLLIPOP: 4
759
+ }, this.setupToolTips = /* @__PURE__ */ p((e) => {
760
+ let i = q(".mermaidTooltip");
761
+ (i._groups || i)[0][0] === null && (i = q("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), q(e).select("svg").selectAll("g.node").on("mouseover", (a) => {
762
+ const o = q(a.currentTarget);
763
+ if (o.attr("title") === null)
764
+ return;
765
+ const f = this.getBoundingClientRect();
766
+ i.transition().duration(200).style("opacity", ".9"), i.text(o.attr("title")).style("left", window.scrollX + f.left + (f.right - f.left) / 2 + "px").style("top", window.scrollY + f.top - 14 + document.body.scrollTop + "px"), i.html(i.html().replace(/&lt;br\/&gt;/g, "<br/>")), o.classed("hover", !0);
767
+ }).on("mouseout", (a) => {
768
+ i.transition().duration(500).style("opacity", 0), q(a.currentTarget).classed("hover", !1);
769
+ });
770
+ }, "setupToolTips"), this.direction = "TB", this.setAccTitle = st, this.getAccTitle = it, this.setAccDescription = at, this.getAccDescription = nt, this.setDiagramTitle = rt, this.getDiagramTitle = ut, this.getConfig = /* @__PURE__ */ p(() => D().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
771
+ }
772
+ static {
773
+ p(this, "ClassDB");
774
+ }
775
+ splitClassNameAndType(e) {
776
+ const i = x.sanitizeText(e, D());
777
+ let r = "", u = i;
778
+ if (i.indexOf("~") > 0) {
779
+ const a = i.split("~");
780
+ u = w(a[0]), r = w(a[1]);
781
+ }
782
+ return { className: u, type: r };
783
+ }
784
+ setClassLabel(e, i) {
785
+ const r = x.sanitizeText(e, D());
786
+ i && (i = w(i));
787
+ const { className: u } = this.splitClassNameAndType(r);
788
+ this.classes.get(u).label = i, this.classes.get(u).text = `${i}${this.classes.get(u).type ? `<${this.classes.get(u).type}>` : ""}`;
789
+ }
790
+ /**
791
+ * Function called by parser when a node definition has been found.
792
+ *
793
+ * @param id - Id of the class to add
794
+ * @public
795
+ */
796
+ addClass(e) {
797
+ const i = x.sanitizeText(e, D()), { className: r, type: u } = this.splitClassNameAndType(i);
798
+ if (this.classes.has(r))
799
+ return;
800
+ const a = x.sanitizeText(r, D());
801
+ this.classes.set(a, {
802
+ id: a,
803
+ type: u,
804
+ label: a,
805
+ text: `${a}${u ? `&lt;${u}&gt;` : ""}`,
806
+ shape: "classBox",
807
+ cssClasses: "default",
808
+ methods: [],
809
+ members: [],
810
+ annotations: [],
811
+ styles: [],
812
+ domId: oe + a + "-" + We
813
+ }), We++;
814
+ }
815
+ addInterface(e, i) {
816
+ const r = {
817
+ id: `interface${this.interfaces.length}`,
818
+ label: e,
819
+ classId: i
820
+ };
821
+ this.interfaces.push(r);
822
+ }
823
+ /**
824
+ * Function to lookup domId from id in the graph definition.
825
+ *
826
+ * @param id - class ID to lookup
827
+ * @public
828
+ */
829
+ lookUpDomId(e) {
830
+ const i = x.sanitizeText(e, D());
831
+ if (this.classes.has(i))
832
+ return this.classes.get(i).domId;
833
+ throw new Error("Class not found: " + i);
834
+ }
835
+ clear() {
836
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", lt();
837
+ }
838
+ getClass(e) {
839
+ return this.classes.get(e);
840
+ }
841
+ getClasses() {
842
+ return this.classes;
843
+ }
844
+ getRelations() {
845
+ return this.relations;
846
+ }
847
+ getNotes() {
848
+ return this.notes;
849
+ }
850
+ addRelation(e) {
851
+ ve.debug("Adding relation: " + JSON.stringify(e));
852
+ const i = [
853
+ this.relationType.LOLLIPOP,
854
+ this.relationType.AGGREGATION,
855
+ this.relationType.COMPOSITION,
856
+ this.relationType.DEPENDENCY,
857
+ this.relationType.EXTENSION
858
+ ];
859
+ e.relation.type1 === this.relationType.LOLLIPOP && !i.includes(e.relation.type2) ? (this.addClass(e.id2), this.addInterface(e.id1, e.id2), e.id1 = `interface${this.interfaces.length - 1}`) : e.relation.type2 === this.relationType.LOLLIPOP && !i.includes(e.relation.type1) ? (this.addClass(e.id1), this.addInterface(e.id2, e.id1), e.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(e.id1), this.addClass(e.id2)), e.id1 = this.splitClassNameAndType(e.id1).className, e.id2 = this.splitClassNameAndType(e.id2).className, e.relationTitle1 = x.sanitizeText(
860
+ e.relationTitle1.trim(),
861
+ D()
862
+ ), e.relationTitle2 = x.sanitizeText(
863
+ e.relationTitle2.trim(),
864
+ D()
865
+ ), this.relations.push(e);
866
+ }
867
+ /**
868
+ * Adds an annotation to the specified class Annotations mark special properties of the given type
869
+ * (like 'interface' or 'service')
870
+ *
871
+ * @param className - The class name
872
+ * @param annotation - The name of the annotation without any brackets
873
+ * @public
874
+ */
875
+ addAnnotation(e, i) {
876
+ const r = this.splitClassNameAndType(e).className;
877
+ this.classes.get(r).annotations.push(i);
878
+ }
879
+ /**
880
+ * Adds a member to the specified class
881
+ *
882
+ * @param className - The class name
883
+ * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
884
+ * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
885
+ * method Otherwise the member will be treated as a normal property
886
+ * @public
887
+ */
888
+ addMember(e, i) {
889
+ this.addClass(e);
890
+ const r = this.splitClassNameAndType(e).className, u = this.classes.get(r);
891
+ if (typeof i == "string") {
892
+ const a = i.trim();
893
+ a.startsWith("<<") && a.endsWith(">>") ? u.annotations.push(w(a.substring(2, a.length - 2))) : a.indexOf(")") > 0 ? u.methods.push(new Qe(a, "method")) : a && u.members.push(new Qe(a, "attribute"));
894
+ }
895
+ }
896
+ addMembers(e, i) {
897
+ Array.isArray(i) && (i.reverse(), i.forEach((r) => this.addMember(e, r)));
898
+ }
899
+ addNote(e, i) {
900
+ const r = {
901
+ id: `note${this.notes.length}`,
902
+ class: i,
903
+ text: e
904
+ };
905
+ this.notes.push(r);
906
+ }
907
+ cleanupLabel(e) {
908
+ return e.startsWith(":") && (e = e.substring(1)), w(e.trim());
909
+ }
910
+ /**
911
+ * Called by parser when assigning cssClass to a class
912
+ *
913
+ * @param ids - Comma separated list of ids
914
+ * @param className - Class to add
915
+ */
916
+ setCssClass(e, i) {
917
+ e.split(",").forEach((r) => {
918
+ let u = r;
919
+ /\d/.exec(r[0]) && (u = oe + u);
920
+ const a = this.classes.get(u);
921
+ a && (a.cssClasses += " " + i);
922
+ });
923
+ }
924
+ defineClass(e, i) {
925
+ for (const r of e) {
926
+ let u = this.styleClasses.get(r);
927
+ u === void 0 && (u = { id: r, styles: [], textStyles: [] }, this.styleClasses.set(r, u)), i && i.forEach((a) => {
928
+ if (/color/.exec(a)) {
929
+ const o = a.replace("fill", "bgFill");
930
+ u.textStyles.push(o);
931
+ }
932
+ u.styles.push(a);
933
+ }), this.classes.forEach((a) => {
934
+ a.cssClasses.includes(r) && a.styles.push(...i.flatMap((o) => o.split(",")));
935
+ });
936
+ }
937
+ }
938
+ /**
939
+ * Called by parser when a tooltip is found, e.g. a clickable element.
940
+ *
941
+ * @param ids - Comma separated list of ids
942
+ * @param tooltip - Tooltip to add
943
+ */
944
+ setTooltip(e, i) {
945
+ e.split(",").forEach((r) => {
946
+ i !== void 0 && (this.classes.get(r).tooltip = w(i));
947
+ });
948
+ }
949
+ getTooltip(e, i) {
950
+ return i && this.namespaces.has(i) ? this.namespaces.get(i).classes.get(e).tooltip : this.classes.get(e).tooltip;
951
+ }
952
+ /**
953
+ * Called by parser when a link is found. Adds the URL to the vertex data.
954
+ *
955
+ * @param ids - Comma separated list of ids
956
+ * @param linkStr - URL to create a link for
957
+ * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
958
+ */
959
+ setLink(e, i, r) {
960
+ const u = D();
961
+ e.split(",").forEach((a) => {
962
+ let o = a;
963
+ /\d/.exec(a[0]) && (o = oe + o);
964
+ const A = this.classes.get(o);
965
+ A && (A.link = Ie.formatUrl(i, u), u.securityLevel === "sandbox" ? A.linkTarget = "_top" : typeof r == "string" ? A.linkTarget = w(r) : A.linkTarget = "_blank");
966
+ }), this.setCssClass(e, "clickable");
967
+ }
968
+ /**
969
+ * Called by parser when a click definition is found. Registers an event handler.
970
+ *
971
+ * @param ids - Comma separated list of ids
972
+ * @param functionName - Function to be called on click
973
+ * @param functionArgs - Function args the function should be called with
974
+ */
975
+ setClickEvent(e, i, r) {
976
+ e.split(",").forEach((u) => {
977
+ this.setClickFunc(u, i, r), this.classes.get(u).haveCallback = !0;
978
+ }), this.setCssClass(e, "clickable");
979
+ }
980
+ setClickFunc(e, i, r) {
981
+ const u = x.sanitizeText(e, D());
982
+ if (D().securityLevel !== "loose" || i === void 0)
983
+ return;
984
+ const o = u;
985
+ if (this.classes.has(o)) {
986
+ const A = this.lookUpDomId(o);
987
+ let f = [];
988
+ if (typeof r == "string") {
989
+ f = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
990
+ for (let T = 0; T < f.length; T++) {
991
+ let B = f[T].trim();
992
+ B.startsWith('"') && B.endsWith('"') && (B = B.substr(1, B.length - 2)), f[T] = B;
993
+ }
994
+ }
995
+ f.length === 0 && f.push(A), this.functions.push(() => {
996
+ const T = document.querySelector(`[id="${A}"]`);
997
+ T !== null && T.addEventListener(
998
+ "click",
999
+ () => {
1000
+ Ie.runFunc(i, ...f);
1001
+ },
1002
+ !1
1003
+ );
1004
+ });
1005
+ }
1006
+ }
1007
+ bindFunctions(e) {
1008
+ this.functions.forEach((i) => {
1009
+ i(e);
1010
+ });
1011
+ }
1012
+ getDirection() {
1013
+ return this.direction;
1014
+ }
1015
+ setDirection(e) {
1016
+ this.direction = e;
1017
+ }
1018
+ /**
1019
+ * Function called by parser when a namespace definition has been found.
1020
+ *
1021
+ * @param id - Id of the namespace to add
1022
+ * @public
1023
+ */
1024
+ addNamespace(e) {
1025
+ this.namespaces.has(e) || (this.namespaces.set(e, {
1026
+ id: e,
1027
+ classes: /* @__PURE__ */ new Map(),
1028
+ children: {},
1029
+ domId: oe + e + "-" + this.namespaceCounter
1030
+ }), this.namespaceCounter++);
1031
+ }
1032
+ getNamespace(e) {
1033
+ return this.namespaces.get(e);
1034
+ }
1035
+ getNamespaces() {
1036
+ return this.namespaces;
1037
+ }
1038
+ /**
1039
+ * Function called by parser when a namespace definition has been found.
1040
+ *
1041
+ * @param id - Id of the namespace to add
1042
+ * @param classNames - Ids of the class to add
1043
+ * @public
1044
+ */
1045
+ addClassesToNamespace(e, i) {
1046
+ if (this.namespaces.has(e))
1047
+ for (const r of i) {
1048
+ const { className: u } = this.splitClassNameAndType(r);
1049
+ this.classes.get(u).parent = e, this.namespaces.get(e).classes.set(u, this.classes.get(u));
1050
+ }
1051
+ }
1052
+ setCssStyle(e, i) {
1053
+ const r = this.classes.get(e);
1054
+ if (!(!i || !r))
1055
+ for (const u of i)
1056
+ u.includes(",") ? r.styles.push(...u.split(",")) : r.styles.push(u);
1057
+ }
1058
+ /**
1059
+ * Gets the arrow marker for a type index
1060
+ *
1061
+ * @param type - The type to look for
1062
+ * @returns The arrow marker
1063
+ */
1064
+ getArrowMarker(e) {
1065
+ let i;
1066
+ switch (e) {
1067
+ case 0:
1068
+ i = "aggregation";
1069
+ break;
1070
+ case 1:
1071
+ i = "extension";
1072
+ break;
1073
+ case 2:
1074
+ i = "composition";
1075
+ break;
1076
+ case 3:
1077
+ i = "dependency";
1078
+ break;
1079
+ case 4:
1080
+ i = "lollipop";
1081
+ break;
1082
+ default:
1083
+ i = "none";
1084
+ }
1085
+ return i;
1086
+ }
1087
+ getData() {
1088
+ const e = [], i = [], r = D();
1089
+ for (const a of this.namespaces.keys()) {
1090
+ const o = this.namespaces.get(a);
1091
+ if (o) {
1092
+ const A = {
1093
+ id: o.id,
1094
+ label: o.id,
1095
+ isGroup: !0,
1096
+ padding: r.class.padding ?? 16,
1097
+ // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1098
+ shape: "rect",
1099
+ cssStyles: ["fill: none", "stroke: black"],
1100
+ look: r.look
1101
+ };
1102
+ e.push(A);
1103
+ }
1104
+ }
1105
+ for (const a of this.classes.keys()) {
1106
+ const o = this.classes.get(a);
1107
+ if (o) {
1108
+ const A = o;
1109
+ A.parentId = o.parent, A.look = r.look, e.push(A);
1110
+ }
1111
+ }
1112
+ let u = 0;
1113
+ for (const a of this.notes) {
1114
+ u++;
1115
+ const o = {
1116
+ id: a.id,
1117
+ label: a.text,
1118
+ isGroup: !1,
1119
+ shape: "note",
1120
+ padding: r.class.padding ?? 6,
1121
+ cssStyles: [
1122
+ "text-align: left",
1123
+ "white-space: nowrap",
1124
+ `fill: ${r.themeVariables.noteBkgColor}`,
1125
+ `stroke: ${r.themeVariables.noteBorderColor}`
1126
+ ],
1127
+ look: r.look
1128
+ };
1129
+ e.push(o);
1130
+ const A = this.classes.get(a.class)?.id ?? "";
1131
+ if (A) {
1132
+ const f = {
1133
+ id: `edgeNote${u}`,
1134
+ start: a.id,
1135
+ end: A,
1136
+ type: "normal",
1137
+ thickness: "normal",
1138
+ classes: "relation",
1139
+ arrowTypeStart: "none",
1140
+ arrowTypeEnd: "none",
1141
+ arrowheadStyle: "",
1142
+ labelStyle: [""],
1143
+ style: ["fill: none"],
1144
+ pattern: "dotted",
1145
+ look: r.look
1146
+ };
1147
+ i.push(f);
1148
+ }
1149
+ }
1150
+ for (const a of this.interfaces) {
1151
+ const o = {
1152
+ id: a.id,
1153
+ label: a.label,
1154
+ isGroup: !1,
1155
+ shape: "rect",
1156
+ cssStyles: ["opacity: 0;"],
1157
+ look: r.look
1158
+ };
1159
+ e.push(o);
1160
+ }
1161
+ u = 0;
1162
+ for (const a of this.relations) {
1163
+ u++;
1164
+ const o = {
1165
+ id: ct(a.id1, a.id2, {
1166
+ prefix: "id",
1167
+ counter: u
1168
+ }),
1169
+ start: a.id1,
1170
+ end: a.id2,
1171
+ type: "normal",
1172
+ label: a.title,
1173
+ labelpos: "c",
1174
+ thickness: "normal",
1175
+ classes: "relation",
1176
+ arrowTypeStart: this.getArrowMarker(a.relation.type1),
1177
+ arrowTypeEnd: this.getArrowMarker(a.relation.type2),
1178
+ startLabelRight: a.relationTitle1 === "none" ? "" : a.relationTitle1,
1179
+ endLabelLeft: a.relationTitle2 === "none" ? "" : a.relationTitle2,
1180
+ arrowheadStyle: "",
1181
+ labelStyle: ["display: inline-block"],
1182
+ style: a.style || "",
1183
+ pattern: a.relation.lineType == 1 ? "dashed" : "solid",
1184
+ look: r.look
1185
+ };
1186
+ i.push(o);
1187
+ }
1188
+ return { nodes: e, edges: i, other: {}, config: r, direction: this.getDirection() };
1189
+ }
1190
+ }, ht = /* @__PURE__ */ p((e) => `g.classGroup text {
1191
+ fill: ${e.nodeBorder || e.classText};
1192
+ stroke: none;
1193
+ font-family: ${e.fontFamily};
1194
+ font-size: 10px;
1195
+
1196
+ .title {
1197
+ font-weight: bolder;
1198
+ }
1199
+
1200
+ }
1201
+
1202
+ .nodeLabel, .edgeLabel {
1203
+ color: ${e.classText};
1204
+ }
1205
+ .edgeLabel .label rect {
1206
+ fill: ${e.mainBkg};
1207
+ }
1208
+ .label text {
1209
+ fill: ${e.classText};
1210
+ }
1211
+
1212
+ .labelBkg {
1213
+ background: ${e.mainBkg};
1214
+ }
1215
+ .edgeLabel .label span {
1216
+ background: ${e.mainBkg};
1217
+ }
1218
+
1219
+ .classTitle {
1220
+ font-weight: bolder;
1221
+ }
1222
+ .node rect,
1223
+ .node circle,
1224
+ .node ellipse,
1225
+ .node polygon,
1226
+ .node path {
1227
+ fill: ${e.mainBkg};
1228
+ stroke: ${e.nodeBorder};
1229
+ stroke-width: 1px;
1230
+ }
1231
+
1232
+
1233
+ .divider {
1234
+ stroke: ${e.nodeBorder};
1235
+ stroke-width: 1;
1236
+ }
1237
+
1238
+ g.clickable {
1239
+ cursor: pointer;
1240
+ }
1241
+
1242
+ g.classGroup rect {
1243
+ fill: ${e.mainBkg};
1244
+ stroke: ${e.nodeBorder};
1245
+ }
1246
+
1247
+ g.classGroup line {
1248
+ stroke: ${e.nodeBorder};
1249
+ stroke-width: 1;
1250
+ }
1251
+
1252
+ .classLabel .box {
1253
+ stroke: none;
1254
+ stroke-width: 0;
1255
+ fill: ${e.mainBkg};
1256
+ opacity: 0.5;
1257
+ }
1258
+
1259
+ .classLabel .label {
1260
+ fill: ${e.nodeBorder};
1261
+ font-size: 10px;
1262
+ }
1263
+
1264
+ .relation {
1265
+ stroke: ${e.lineColor};
1266
+ stroke-width: 1;
1267
+ fill: none;
1268
+ }
1269
+
1270
+ .dashed-line{
1271
+ stroke-dasharray: 3;
1272
+ }
1273
+
1274
+ .dotted-line{
1275
+ stroke-dasharray: 1 2;
1276
+ }
1277
+
1278
+ #compositionStart, .composition {
1279
+ fill: ${e.lineColor} !important;
1280
+ stroke: ${e.lineColor} !important;
1281
+ stroke-width: 1;
1282
+ }
1283
+
1284
+ #compositionEnd, .composition {
1285
+ fill: ${e.lineColor} !important;
1286
+ stroke: ${e.lineColor} !important;
1287
+ stroke-width: 1;
1288
+ }
1289
+
1290
+ #dependencyStart, .dependency {
1291
+ fill: ${e.lineColor} !important;
1292
+ stroke: ${e.lineColor} !important;
1293
+ stroke-width: 1;
1294
+ }
1295
+
1296
+ #dependencyStart, .dependency {
1297
+ fill: ${e.lineColor} !important;
1298
+ stroke: ${e.lineColor} !important;
1299
+ stroke-width: 1;
1300
+ }
1301
+
1302
+ #extensionStart, .extension {
1303
+ fill: transparent !important;
1304
+ stroke: ${e.lineColor} !important;
1305
+ stroke-width: 1;
1306
+ }
1307
+
1308
+ #extensionEnd, .extension {
1309
+ fill: transparent !important;
1310
+ stroke: ${e.lineColor} !important;
1311
+ stroke-width: 1;
1312
+ }
1313
+
1314
+ #aggregationStart, .aggregation {
1315
+ fill: transparent !important;
1316
+ stroke: ${e.lineColor} !important;
1317
+ stroke-width: 1;
1318
+ }
1319
+
1320
+ #aggregationEnd, .aggregation {
1321
+ fill: transparent !important;
1322
+ stroke: ${e.lineColor} !important;
1323
+ stroke-width: 1;
1324
+ }
1325
+
1326
+ #lollipopStart, .lollipop {
1327
+ fill: ${e.mainBkg} !important;
1328
+ stroke: ${e.lineColor} !important;
1329
+ stroke-width: 1;
1330
+ }
1331
+
1332
+ #lollipopEnd, .lollipop {
1333
+ fill: ${e.mainBkg} !important;
1334
+ stroke: ${e.lineColor} !important;
1335
+ stroke-width: 1;
1336
+ }
1337
+
1338
+ .edgeTerminals {
1339
+ font-size: 11px;
1340
+ line-height: initial;
1341
+ }
1342
+
1343
+ .classTitleText {
1344
+ text-anchor: middle;
1345
+ font-size: 18px;
1346
+ fill: ${e.textColor};
1347
+ }
1348
+ `, "getStyles"), bt = ht, dt = /* @__PURE__ */ p((e, i = "TB") => {
1349
+ if (!e.doc)
1350
+ return i;
1351
+ let r = i;
1352
+ for (const u of e.doc)
1353
+ u.stmt === "dir" && (r = u.value);
1354
+ return r;
1355
+ }, "getDir"), pt = /* @__PURE__ */ p(function(e, i) {
1356
+ return i.db.getClasses();
1357
+ }, "getClasses"), At = /* @__PURE__ */ p(async function(e, i, r, u) {
1358
+ ve.info("REF0:"), ve.info("Drawing class diagram (v3)", i);
1359
+ const { securityLevel: a, state: o, layout: A } = D(), f = u.db.getData(), T = Ze(i, a);
1360
+ f.type = u.type, f.layoutAlgorithm = et(A), f.nodeSpacing = o?.nodeSpacing || 50, f.rankSpacing = o?.rankSpacing || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await tt(f, T);
1361
+ const B = 8;
1362
+ Ie.insertTitle(
1363
+ T,
1364
+ "classDiagramTitleText",
1365
+ o?.titleTopMargin ?? 25,
1366
+ u.db.getDiagramTitle()
1367
+ ), $e(T, B, "classDiagram", o?.useMaxWidth ?? !0);
1368
+ }, "draw"), Et = {
1369
+ getClasses: pt,
1370
+ draw: At,
1371
+ getDir: dt
1372
+ };
1373
+ export {
1374
+ mt as C,
1375
+ Ct as a,
1376
+ Et as c,
1377
+ bt as s
1378
+ };