UNPKG

51.1 kBJavaScriptView Raw
1import { s as He, g as We, a as qe, b as Je, c as R, z as Ze, A as $e, m as et, B as tt, l as st, f as De, x as Ve, j as M } from "./mermaid-9357f3d0.js";
2var Be = function() {
3 var e = function(v, n, r, c) {
4 for (r = r || {}, c = v.length; c--; r[v[c]] = n)
5 ;
6 return r;
7 }, u = [1, 34], l = [1, 35], o = [1, 36], h = [1, 37], F = [1, 9], m = [1, 8], _ = [1, 19], D = [1, 20], z = [1, 21], Y = [1, 40], L = [1, 41], K = [1, 27], j = [1, 25], Q = [1, 26], X = [1, 32], H = [1, 33], W = [1, 28], q = [1, 29], J = [1, 30], Z = [1, 31], f = [1, 45], d = [1, 42], E = [1, 43], C = [1, 44], k = [1, 46], pe = [1, 24], a = [1, 16, 24], $ = [1, 60], ee = [1, 61], te = [1, 62], se = [1, 63], ie = [1, 64], fe = [1, 65], de = [1, 66], ue = [1, 16, 24, 52], Le = [1, 77], w = [1, 16, 24, 27, 28, 36, 50, 52, 55, 68, 69, 70, 71, 72, 73, 74, 79, 81], ne = [1, 16, 24, 27, 28, 34, 36, 50, 52, 55, 59, 68, 69, 70, 71, 72, 73, 74, 79, 81, 94, 96, 97, 98, 99], Ie = [1, 86], re = [28, 94, 96, 97, 98, 99], V = [28, 73, 74, 94, 96, 97, 98, 99], xe = [28, 68, 69, 70, 71, 72, 94, 96, 97, 98, 99], Ee = [1, 99], Ce = [1, 16, 24, 50, 52, 55], ae = [1, 16, 24, 36], Oe = [8, 9, 10, 11, 19, 23, 44, 46, 48, 53, 57, 58, 60, 61, 63, 65, 75, 76, 78, 82, 94, 96, 97, 98, 99], ge = {
8 trace: function() {
9 },
10 yy: {},
11 symbols_: { error: 2, start: 3, mermaidDoc: 4, directive: 5, statements: 6, direction: 7, direction_tb: 8, direction_bt: 9, direction_rl: 10, direction_lr: 11, graphConfig: 12, openDirective: 13, typeDirective: 14, closeDirective: 15, NEWLINE: 16, ":": 17, argDirective: 18, open_directive: 19, type_directive: 20, arg_directive: 21, close_directive: 22, CLASS_DIAGRAM: 23, EOF: 24, statement: 25, classLabel: 26, SQS: 27, STR: 28, SQE: 29, namespaceName: 30, alphaNumToken: 31, className: 32, classLiteralName: 33, GENERICTYPE: 34, relationStatement: 35, LABEL: 36, namespaceStatement: 37, classStatement: 38, methodStatement: 39, annotationStatement: 40, clickStatement: 41, cssClassStatement: 42, noteStatement: 43, acc_title: 44, acc_title_value: 45, acc_descr: 46, acc_descr_value: 47, acc_descr_multiline_value: 48, namespaceIdentifier: 49, STRUCT_START: 50, classStatements: 51, STRUCT_STOP: 52, NAMESPACE: 53, classIdentifier: 54, STYLE_SEPARATOR: 55, members: 56, CLASS: 57, ANNOTATION_START: 58, ANNOTATION_END: 59, MEMBER: 60, SEPARATOR: 61, relation: 62, NOTE_FOR: 63, noteText: 64, NOTE: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, CSSCLASS: 82, commentToken: 83, textToken: 84, graphCodeTokens: 85, textNoTagsToken: 86, TAGSTART: 87, TAGEND: 88, "==": 89, "--": 90, PCT: 91, DEFAULT: 92, SPACE: 93, MINUS: 94, keywords: 95, UNICODE_TEXT: 96, NUM: 97, ALPHA: 98, BQUOTE_STR: 99, $accept: 0, $end: 1 },
12 terminals_: { 2: "error", 8: "direction_tb", 9: "direction_bt", 10: "direction_rl", 11: "direction_lr", 16: "NEWLINE", 17: ":", 19: "open_directive", 20: "type_directive", 21: "arg_directive", 22: "close_directive", 23: "CLASS_DIAGRAM", 24: "EOF", 27: "SQS", 28: "STR", 29: "SQE", 34: "GENERICTYPE", 36: "LABEL", 44: "acc_title", 45: "acc_title_value", 46: "acc_descr", 47: "acc_descr_value", 48: "acc_descr_multiline_value", 50: "STRUCT_START", 52: "STRUCT_STOP", 53: "NAMESPACE", 55: "STYLE_SEPARATOR", 57: "CLASS", 58: "ANNOTATION_START", 59: "ANNOTATION_END", 60: "MEMBER", 61: "SEPARATOR", 63: "NOTE_FOR", 65: "NOTE", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "CSSCLASS", 85: "graphCodeTokens", 87: "TAGSTART", 88: "TAGEND", 89: "==", 90: "--", 91: "PCT", 92: "DEFAULT", 93: "SPACE", 94: "MINUS", 95: "keywords", 96: "UNICODE_TEXT", 97: "NUM", 98: "ALPHA", 99: "BQUOTE_STR" },
13 productions_: [0, [3, 1], [3, 2], [3, 1], [7, 1], [7, 1], [7, 1], [7, 1], [4, 1], [5, 4], [5, 6], [13, 1], [14, 1], [18, 1], [15, 1], [12, 4], [6, 1], [6, 2], [6, 3], [26, 3], [30, 1], [30, 2], [32, 1], [32, 1], [32, 2], [32, 2], [32, 2], [25, 1], [25, 2], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 2], [25, 2], [25, 1], [37, 4], [37, 5], [49, 2], [51, 1], [51, 2], [51, 3], [38, 1], [38, 3], [38, 4], [38, 6], [54, 2], [54, 3], [40, 4], [56, 1], [56, 2], [39, 1], [39, 2], [39, 1], [39, 1], [35, 3], [35, 4], [35, 4], [35, 5], [43, 3], [43, 2], [62, 3], [62, 2], [62, 2], [62, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 1], [41, 3], [41, 4], [41, 3], [41, 4], [41, 4], [41, 5], [41, 3], [41, 4], [41, 4], [41, 5], [41, 3], [41, 4], [41, 4], [41, 5], [42, 3], [83, 1], [83, 1], [84, 1], [84, 1], [84, 1], [84, 1], [84, 1], [84, 1], [84, 1], [86, 1], [86, 1], [86, 1], [86, 1], [31, 1], [31, 1], [31, 1], [31, 1], [33, 1], [64, 1]],
14 performAction: function(n, r, c, i, A, t, G) {
15 var s = t.length - 1;
16 switch (A) {
17 case 4:
18 i.setDirection("TB");
19 break;
20 case 5:
21 i.setDirection("BT");
22 break;
23 case 6:
24 i.setDirection("RL");
25 break;
26 case 7:
27 i.setDirection("LR");
28 break;
29 case 11:
30 i.parseDirective("%%{", "open_directive");
31 break;
32 case 12:
33 i.parseDirective(t[s], "type_directive");
34 break;
35 case 13:
36 t[s] = t[s].trim().replace(/'/g, '"'), i.parseDirective(t[s], "arg_directive");
37 break;
38 case 14:
39 i.parseDirective("}%%", "close_directive", "class");
40 break;
41 case 19:
42 this.$ = t[s - 1];
43 break;
44 case 20:
45 case 22:
46 case 23:
47 this.$ = t[s];
48 break;
49 case 21:
50 case 24:
51 this.$ = t[s - 1] + t[s];
52 break;
53 case 25:
54 case 26:
55 this.$ = t[s - 1] + "~" + t[s] + "~";
56 break;
57 case 27:
58 i.addRelation(t[s]);
59 break;
60 case 28:
61 t[s - 1].title = i.cleanupLabel(t[s]), i.addRelation(t[s - 1]);
62 break;
63 case 37:
64 this.$ = t[s].trim(), i.setAccTitle(this.$);
65 break;
66 case 38:
67 case 39:
68 this.$ = t[s].trim(), i.setAccDescription(this.$);
69 break;
70 case 40:
71 i.addClassesToNamespace(t[s - 3], t[s - 1]);
72 break;
73 case 41:
74 i.addClassesToNamespace(t[s - 4], t[s - 1]);
75 break;
76 case 42:
77 this.$ = t[s], i.addNamespace(t[s]);
78 break;
79 case 43:
80 this.$ = [t[s]];
81 break;
82 case 44:
83 this.$ = [t[s - 1]];
84 break;
85 case 45:
86 t[s].unshift(t[s - 2]), this.$ = t[s];
87 break;
88 case 47:
89 i.setCssClass(t[s - 2], t[s]);
90 break;
91 case 48:
92 i.addMembers(t[s - 3], t[s - 1]);
93 break;
94 case 49:
95 i.setCssClass(t[s - 5], t[s - 3]), i.addMembers(t[s - 5], t[s - 1]);
96 break;
97 case 50:
98 this.$ = t[s], i.addClass(t[s]);
99 break;
100 case 51:
101 this.$ = t[s - 1], i.addClass(t[s - 1]), i.setClassLabel(t[s - 1], t[s]);
102 break;
103 case 52:
104 i.addAnnotation(t[s], t[s - 2]);
105 break;
106 case 53:
107 this.$ = [t[s]];
108 break;
109 case 54:
110 t[s].push(t[s - 1]), this.$ = t[s];
111 break;
112 case 55:
113 break;
114 case 56:
115 i.addMember(t[s - 1], i.cleanupLabel(t[s]));
116 break;
117 case 57:
118 break;
119 case 58:
120 break;
121 case 59:
122 this.$ = { id1: t[s - 2], id2: t[s], relation: t[s - 1], relationTitle1: "none", relationTitle2: "none" };
123 break;
124 case 60:
125 this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 1], relationTitle1: t[s - 2], relationTitle2: "none" };
126 break;
127 case 61:
128 this.$ = { id1: t[s - 3], id2: t[s], relation: t[s - 2], relationTitle1: "none", relationTitle2: t[s - 1] };
129 break;
130 case 62:
131 this.$ = { id1: t[s - 4], id2: t[s], relation: t[s - 2], relationTitle1: t[s - 3], relationTitle2: t[s - 1] };
132 break;
133 case 63:
134 i.addNote(t[s], t[s - 1]);
135 break;
136 case 64:
137 i.addNote(t[s]);
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.$ = i.relationType.AGGREGATION;
153 break;
154 case 70:
155 this.$ = i.relationType.EXTENSION;
156 break;
157 case 71:
158 this.$ = i.relationType.COMPOSITION;
159 break;
160 case 72:
161 this.$ = i.relationType.DEPENDENCY;
162 break;
163 case 73:
164 this.$ = i.relationType.LOLLIPOP;
165 break;
166 case 74:
167 this.$ = i.lineType.LINE;
168 break;
169 case 75:
170 this.$ = i.lineType.DOTTED_LINE;
171 break;
172 case 76:
173 case 82:
174 this.$ = t[s - 2], i.setClickEvent(t[s - 1], t[s]);
175 break;
176 case 77:
177 case 83:
178 this.$ = t[s - 3], i.setClickEvent(t[s - 2], t[s - 1]), i.setTooltip(t[s - 2], t[s]);
179 break;
180 case 78:
181 case 86:
182 this.$ = t[s - 2], i.setLink(t[s - 1], t[s]);
183 break;
184 case 79:
185 this.$ = t[s - 3], i.setLink(t[s - 2], t[s - 1], t[s]);
186 break;
187 case 80:
188 case 88:
189 this.$ = t[s - 3], i.setLink(t[s - 2], t[s - 1]), i.setTooltip(t[s - 2], t[s]);
190 break;
191 case 81:
192 case 89:
193 this.$ = t[s - 4], i.setLink(t[s - 3], t[s - 2], t[s]), i.setTooltip(t[s - 3], t[s - 1]);
194 break;
195 case 84:
196 this.$ = t[s - 3], i.setClickEvent(t[s - 2], t[s - 1], t[s]);
197 break;
198 case 85:
199 this.$ = t[s - 4], i.setClickEvent(t[s - 3], t[s - 2], t[s - 1]), i.setTooltip(t[s - 3], t[s]);
200 break;
201 case 87:
202 this.$ = t[s - 3], i.setLink(t[s - 2], t[s - 1], t[s]);
203 break;
204 case 90:
205 i.setCssClass(t[s - 1], t[s]);
206 break;
207 }
208 },
209 table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: 18, 8: u, 9: l, 10: o, 11: h, 12: 5, 13: 6, 19: F, 23: m, 25: 7, 31: 38, 32: 22, 33: 39, 35: 10, 37: 11, 38: 12, 39: 13, 40: 14, 41: 15, 42: 16, 43: 17, 44: _, 46: D, 48: z, 49: 23, 53: Y, 54: 24, 57: L, 58: K, 60: j, 61: Q, 63: X, 65: H, 75: W, 76: q, 78: J, 82: Z, 94: f, 96: d, 97: E, 98: C, 99: k }, { 1: [3] }, { 1: [2, 1] }, { 3: 47, 4: 2, 5: 3, 6: 4, 7: 18, 8: u, 9: l, 10: o, 11: h, 12: 5, 13: 6, 19: F, 23: m, 25: 7, 31: 38, 32: 22, 33: 39, 35: 10, 37: 11, 38: 12, 39: 13, 40: 14, 41: 15, 42: 16, 43: 17, 44: _, 46: D, 48: z, 49: 23, 53: Y, 54: 24, 57: L, 58: K, 60: j, 61: Q, 63: X, 65: H, 75: W, 76: q, 78: J, 82: Z, 94: f, 96: d, 97: E, 98: C, 99: k }, { 1: [2, 3] }, { 1: [2, 8] }, { 14: 48, 20: [1, 49] }, e(pe, [2, 16], { 16: [1, 50] }), { 16: [1, 51] }, { 20: [2, 11] }, e(a, [2, 27], { 36: [1, 52] }), e(a, [2, 29]), e(a, [2, 30]), e(a, [2, 31]), e(a, [2, 32]), e(a, [2, 33]), e(a, [2, 34]), e(a, [2, 35]), e(a, [2, 36]), { 45: [1, 53] }, { 47: [1, 54] }, e(a, [2, 39]), e(a, [2, 55], { 62: 55, 66: 58, 67: 59, 28: [1, 56], 36: [1, 57], 68: $, 69: ee, 70: te, 71: se, 72: ie, 73: fe, 74: de }), { 50: [1, 67] }, e(ue, [2, 46], { 50: [1, 69], 55: [1, 68] }), e(a, [2, 57]), e(a, [2, 58]), { 31: 70, 94: f, 96: d, 97: E, 98: C }, { 31: 38, 32: 71, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, { 31: 38, 32: 72, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, { 31: 38, 32: 73, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, { 28: [1, 74] }, { 31: 38, 32: 75, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, { 28: Le, 64: 76 }, e(a, [2, 4]), e(a, [2, 5]), e(a, [2, 6]), e(a, [2, 7]), e(w, [2, 22], { 31: 38, 33: 39, 32: 78, 34: [1, 79], 94: f, 96: d, 97: E, 98: C, 99: k }), e(w, [2, 23], { 34: [1, 80] }), { 30: 81, 31: 82, 94: f, 96: d, 97: E, 98: C }, { 31: 38, 32: 83, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, e(ne, [2, 104]), e(ne, [2, 105]), e(ne, [2, 106]), e(ne, [2, 107]), e([1, 16, 24, 27, 28, 34, 36, 50, 52, 55, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 108]), { 1: [2, 2] }, { 15: 84, 17: [1, 85], 22: Ie }, e([17, 22], [2, 12]), e(pe, [2, 17], { 25: 7, 35: 10, 37: 11, 38: 12, 39: 13, 40: 14, 41: 15, 42: 16, 43: 17, 7: 18, 32: 22, 49: 23, 54: 24, 31: 38, 33: 39, 6: 87, 8: u, 9: l, 10: o, 11: h, 44: _, 46: D, 48: z, 53: Y, 57: L, 58: K, 60: j, 61: Q, 63: X, 65: H, 75: W, 76: q, 78: J, 82: Z, 94: f, 96: d, 97: E, 98: C, 99: k }), { 6: 88, 7: 18, 8: u, 9: l, 10: o, 11: h, 25: 7, 31: 38, 32: 22, 33: 39, 35: 10, 37: 11, 38: 12, 39: 13, 40: 14, 41: 15, 42: 16, 43: 17, 44: _, 46: D, 48: z, 49: 23, 53: Y, 54: 24, 57: L, 58: K, 60: j, 61: Q, 63: X, 65: H, 75: W, 76: q, 78: J, 82: Z, 94: f, 96: d, 97: E, 98: C, 99: k }, e(a, [2, 28]), e(a, [2, 37]), e(a, [2, 38]), { 28: [1, 90], 31: 38, 32: 89, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, { 62: 91, 66: 58, 67: 59, 68: $, 69: ee, 70: te, 71: se, 72: ie, 73: fe, 74: de }, e(a, [2, 56]), { 67: 92, 73: fe, 74: de }, e(re, [2, 68], { 66: 93, 68: $, 69: ee, 70: te, 71: se, 72: ie }), e(V, [2, 69]), e(V, [2, 70]), e(V, [2, 71]), e(V, [2, 72]), e(V, [2, 73]), e(xe, [2, 74]), e(xe, [2, 75]), { 16: [1, 95], 38: 96, 51: 94, 54: 24, 57: L }, { 31: 97, 94: f, 96: d, 97: E, 98: C }, { 56: 98, 60: Ee }, { 59: [1, 100] }, { 28: [1, 101] }, { 28: [1, 102] }, { 79: [1, 103], 81: [1, 104] }, { 31: 105, 94: f, 96: d, 97: E, 98: C }, { 28: Le, 64: 106 }, e(a, [2, 64]), e(a, [2, 109]), e(w, [2, 24]), e(w, [2, 25]), e(w, [2, 26]), { 50: [2, 42] }, { 30: 107, 31: 82, 50: [2, 20], 94: f, 96: d, 97: E, 98: C }, e(Ce, [2, 50], { 26: 108, 27: [1, 109] }), { 16: [1, 110] }, { 18: 111, 21: [1, 112] }, { 16: [2, 14] }, e(pe, [2, 18]), { 24: [1, 113] }, e(ae, [2, 59]), { 31: 38, 32: 114, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, { 28: [1, 116], 31: 38, 32: 115, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, e(re, [2, 67], { 66: 117, 68: $, 69: ee, 70: te, 71: se, 72: ie }), e(re, [2, 66]), { 52: [1, 118] }, { 38: 96, 51: 119, 54: 24, 57: L }, { 16: [1, 120], 52: [2, 43] }, e(ue, [2, 47], { 50: [1, 121] }), { 52: [1, 122] }, { 52: [2, 53], 56: 123, 60: Ee }, { 31: 38, 32: 124, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, e(a, [2, 76], { 28: [1, 125] }), e(a, [2, 78], { 28: [1, 127], 77: [1, 126] }), e(a, [2, 82], { 28: [1, 128], 80: [1, 129] }), e(a, [2, 86], { 28: [1, 131], 77: [1, 130] }), e(a, [2, 90]), e(a, [2, 63]), { 50: [2, 21] }, e(Ce, [2, 51]), { 28: [1, 132] }, e(Oe, [2, 9]), { 15: 133, 22: Ie }, { 22: [2, 13] }, { 1: [2, 15] }, e(ae, [2, 61]), e(ae, [2, 60]), { 31: 38, 32: 134, 33: 39, 94: f, 96: d, 97: E, 98: C, 99: k }, e(re, [2, 65]), e(a, [2, 40]), { 52: [1, 135] }, { 38: 96, 51: 136, 52: [2, 44], 54: 24, 57: L }, { 56: 137, 60: Ee }, e(ue, [2, 48]), { 52: [2, 54] }, e(a, [2, 52]), e(a, [2, 77]), e(a, [2, 79]), e(a, [2, 80], { 77: [1, 138] }), e(a, [2, 83]), e(a, [2, 84], { 28: [1, 139] }), e(a, [2, 87]), e(a, [2, 88], { 77: [1, 140] }), { 29: [1, 141] }, { 16: [1, 142] }, e(ae, [2, 62]), e(a, [2, 41]), { 52: [2, 45] }, { 52: [1, 143] }, e(a, [2, 81]), e(a, [2, 85]), e(a, [2, 89]), e(Ce, [2, 19]), e(Oe, [2, 10]), e(ue, [2, 49])],
210 defaultActions: { 2: [2, 1], 4: [2, 3], 5: [2, 8], 9: [2, 11], 47: [2, 2], 81: [2, 42], 86: [2, 14], 107: [2, 21], 112: [2, 13], 113: [2, 15], 123: [2, 54], 136: [2, 45] },
211 parseError: function(n, r) {
212 if (r.recoverable)
213 this.trace(n);
214 else {
215 var c = new Error(n);
216 throw c.hash = r, c;
217 }
218 },
219 parse: function(n) {
220 var r = this, c = [0], i = [], A = [null], t = [], G = this.table, s = "", ce = 0, Re = 0, Ke = 2, Pe = 1, je = t.slice.call(arguments, 1), g = Object.create(this.lexer), I = { yy: {} };
221 for (var ke in this.yy)
222 Object.prototype.hasOwnProperty.call(this.yy, ke) && (I.yy[ke] = this.yy[ke]);
223 g.setInput(n, I.yy), I.yy.lexer = g, I.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
224 var Fe = g.yylloc;
225 t.push(Fe);
226 var Qe = g.options && g.options.ranges;
227 typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
228 function Xe() {
229 var y;
230 return y = i.pop() || g.lex() || Pe, typeof y != "number" && (y instanceof Array && (i = y, y = i.pop()), y = r.symbols_[y] || y), y;
231 }
232 for (var b, x, B, be, O = {}, le, T, we, oe; ; ) {
233 if (x = c[c.length - 1], this.defaultActions[x] ? B = this.defaultActions[x] : ((b === null || typeof b > "u") && (b = Xe()), B = G[x] && G[x][b]), typeof B > "u" || !B.length || !B[0]) {
234 var _e = "";
235 oe = [];
236 for (le in G[x])
237 this.terminals_[le] && le > Ke && oe.push("'" + this.terminals_[le] + "'");
238 g.showPosition ? _e = "Parse error on line " + (ce + 1) + `:
239` + g.showPosition() + `
240Expecting ` + oe.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : _e = "Parse error on line " + (ce + 1) + ": Unexpected " + (b == Pe ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(_e, {
241 text: g.match,
242 token: this.terminals_[b] || b,
243 line: g.yylineno,
244 loc: Fe,
245 expected: oe
246 });
247 }
248 if (B[0] instanceof Array && B.length > 1)
249 throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + b);
250 switch (B[0]) {
251 case 1:
252 c.push(b), A.push(g.yytext), t.push(g.yylloc), c.push(B[1]), b = null, Re = g.yyleng, s = g.yytext, ce = g.yylineno, Fe = g.yylloc;
253 break;
254 case 2:
255 if (T = this.productions_[B[1]][1], O.$ = A[A.length - T], O._$ = {
256 first_line: t[t.length - (T || 1)].first_line,
257 last_line: t[t.length - 1].last_line,
258 first_column: t[t.length - (T || 1)].first_column,
259 last_column: t[t.length - 1].last_column
260 }, Qe && (O._$.range = [
261 t[t.length - (T || 1)].range[0],
262 t[t.length - 1].range[1]
263 ]), be = this.performAction.apply(O, [
264 s,
265 Re,
266 ce,
267 I.yy,
268 B[1],
269 A,
270 t
271 ].concat(je)), typeof be < "u")
272 return be;
273 T && (c = c.slice(0, -1 * T * 2), A = A.slice(0, -1 * T), t = t.slice(0, -1 * T)), c.push(this.productions_[B[1]][0]), A.push(O.$), t.push(O._$), we = G[c[c.length - 2]][c[c.length - 1]], c.push(we);
274 break;
275 case 3:
276 return !0;
277 }
278 }
279 return !0;
280 }
281 }, Ye = function() {
282 var v = {
283 EOF: 1,
284 parseError: function(r, c) {
285 if (this.yy.parser)
286 this.yy.parser.parseError(r, c);
287 else
288 throw new Error(r);
289 },
290 // resets the lexer, sets new input
291 setInput: function(n, r) {
292 return this.yy = r || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
293 first_line: 1,
294 first_column: 0,
295 last_line: 1,
296 last_column: 0
297 }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
298 },
299 // consumes and returns one char from the input
300 input: function() {
301 var n = this._input[0];
302 this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
303 var r = n.match(/(?:\r\n?|\n).*/g);
304 return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
305 },
306 // unshifts one char (or a string) into the input
307 unput: function(n) {
308 var r = n.length, c = n.split(/(?:\r\n?|\n)/g);
309 this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
310 var i = this.match.split(/(?:\r\n?|\n)/g);
311 this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
312 var A = this.yylloc.range;
313 return this.yylloc = {
314 first_line: this.yylloc.first_line,
315 last_line: this.yylineno + 1,
316 first_column: this.yylloc.first_column,
317 last_column: c ? (c.length === i.length ? this.yylloc.first_column : 0) + i[i.length - c.length].length - c[0].length : this.yylloc.first_column - r
318 }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
319 },
320 // When called from action, caches matched text and appends it on next action
321 more: function() {
322 return this._more = !0, this;
323 },
324 // 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.
325 reject: function() {
326 if (this.options.backtrack_lexer)
327 this._backtrack = !0;
328 else
329 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).
330` + this.showPosition(), {
331 text: "",
332 token: null,
333 line: this.yylineno
334 });
335 return this;
336 },
337 // retain first n characters of the match
338 less: function(n) {
339 this.unput(this.match.slice(n));
340 },
341 // displays already matched input, i.e. for error messages
342 pastInput: function() {
343 var n = this.matched.substr(0, this.matched.length - this.match.length);
344 return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
345 },
346 // displays upcoming input, i.e. for error messages
347 upcomingInput: function() {
348 var n = this.match;
349 return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
350 },
351 // displays the character position where the lexing error occurred, i.e. for error messages
352 showPosition: function() {
353 var n = this.pastInput(), r = new Array(n.length + 1).join("-");
354 return n + this.upcomingInput() + `
355` + r + "^";
356 },
357 // test the lexed token: return FALSE when not a match, otherwise return token
358 test_match: function(n, r) {
359 var c, i, A;
360 if (this.options.backtrack_lexer && (A = {
361 yylineno: this.yylineno,
362 yylloc: {
363 first_line: this.yylloc.first_line,
364 last_line: this.last_line,
365 first_column: this.yylloc.first_column,
366 last_column: this.yylloc.last_column
367 },
368 yytext: this.yytext,
369 match: this.match,
370 matches: this.matches,
371 matched: this.matched,
372 yyleng: this.yyleng,
373 offset: this.offset,
374 _more: this._more,
375 _input: this._input,
376 yy: this.yy,
377 conditionStack: this.conditionStack.slice(0),
378 done: this.done
379 }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), i = n[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
380 first_line: this.yylloc.last_line,
381 last_line: this.yylineno + 1,
382 first_column: this.yylloc.last_column,
383 last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
384 }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
385 return c;
386 if (this._backtrack) {
387 for (var t in A)
388 this[t] = A[t];
389 return !1;
390 }
391 return !1;
392 },
393 // return next match in input
394 next: function() {
395 if (this.done)
396 return this.EOF;
397 this._input || (this.done = !0);
398 var n, r, c, i;
399 this._more || (this.yytext = "", this.match = "");
400 for (var A = this._currentRules(), t = 0; t < A.length; t++)
401 if (c = this._input.match(this.rules[A[t]]), c && (!r || c[0].length > r[0].length)) {
402 if (r = c, i = t, this.options.backtrack_lexer) {
403 if (n = this.test_match(c, A[t]), n !== !1)
404 return n;
405 if (this._backtrack) {
406 r = !1;
407 continue;
408 } else
409 return !1;
410 } else if (!this.options.flex)
411 break;
412 }
413 return r ? (n = this.test_match(r, A[i]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
414` + this.showPosition(), {
415 text: "",
416 token: null,
417 line: this.yylineno
418 });
419 },
420 // return next match that has a token
421 lex: function() {
422 var r = this.next();
423 return r || this.lex();
424 },
425 // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
426 begin: function(r) {
427 this.conditionStack.push(r);
428 },
429 // pop the previously active lexer condition state off the condition stack
430 popState: function() {
431 var r = this.conditionStack.length - 1;
432 return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
433 },
434 // produce the lexer rule set which is active for the currently active lexer condition state
435 _currentRules: function() {
436 return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
437 },
438 // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
439 topState: function(r) {
440 return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
441 },
442 // alias for begin(condition)
443 pushState: function(r) {
444 this.begin(r);
445 },
446 // return the number of states currently on the stack
447 stateStackSize: function() {
448 return this.conditionStack.length;
449 },
450 options: {},
451 performAction: function(r, c, i, A) {
452 switch (i) {
453 case 0:
454 return this.begin("open_directive"), 19;
455 case 1:
456 return 8;
457 case 2:
458 return 9;
459 case 3:
460 return 10;
461 case 4:
462 return 11;
463 case 5:
464 return this.begin("type_directive"), 20;
465 case 6:
466 return this.popState(), this.begin("arg_directive"), 17;
467 case 7:
468 return this.popState(), this.popState(), 22;
469 case 8:
470 return 21;
471 case 9:
472 break;
473 case 10:
474 break;
475 case 11:
476 return this.begin("acc_title"), 44;
477 case 12:
478 return this.popState(), "acc_title_value";
479 case 13:
480 return this.begin("acc_descr"), 46;
481 case 14:
482 return this.popState(), "acc_descr_value";
483 case 15:
484 this.begin("acc_descr_multiline");
485 break;
486 case 16:
487 this.popState();
488 break;
489 case 17:
490 return "acc_descr_multiline_value";
491 case 18:
492 return 16;
493 case 19:
494 break;
495 case 20:
496 return 23;
497 case 21:
498 return 23;
499 case 22:
500 return "EDGE_STATE";
501 case 23:
502 return this.begin("namespace"), 53;
503 case 24:
504 return this.popState(), 16;
505 case 25:
506 break;
507 case 26:
508 return this.begin("namespace-body"), 50;
509 case 27:
510 return this.popState(), 52;
511 case 28:
512 return "EOF_IN_STRUCT";
513 case 29:
514 return 16;
515 case 30:
516 break;
517 case 31:
518 return "EDGE_STATE";
519 case 32:
520 return this.begin("class"), 57;
521 case 33:
522 return this.popState(), 16;
523 case 34:
524 break;
525 case 35:
526 return this.popState(), this.popState(), 52;
527 case 36:
528 return this.begin("class-body"), 50;
529 case 37:
530 return this.popState(), 52;
531 case 38:
532 return "EOF_IN_STRUCT";
533 case 39:
534 return "EDGE_STATE";
535 case 40:
536 return "OPEN_IN_STRUCT";
537 case 41:
538 break;
539 case 42:
540 return "MEMBER";
541 case 43:
542 return 82;
543 case 44:
544 return 75;
545 case 45:
546 return 76;
547 case 46:
548 return 78;
549 case 47:
550 return 63;
551 case 48:
552 return 65;
553 case 49:
554 return 58;
555 case 50:
556 return 59;
557 case 51:
558 this.begin("href");
559 break;
560 case 52:
561 this.popState();
562 break;
563 case 53:
564 return 81;
565 case 54:
566 this.begin("callback_name");
567 break;
568 case 55:
569 this.popState();
570 break;
571 case 56:
572 this.popState(), this.begin("callback_args");
573 break;
574 case 57:
575 return 79;
576 case 58:
577 this.popState();
578 break;
579 case 59:
580 return 80;
581 case 60:
582 this.popState();
583 break;
584 case 61:
585 return "GENERICTYPE";
586 case 62:
587 this.begin("generic");
588 break;
589 case 63:
590 this.popState();
591 break;
592 case 64:
593 return "STR";
594 case 65:
595 this.begin("string");
596 break;
597 case 66:
598 this.popState();
599 break;
600 case 67:
601 return "BQUOTE_STR";
602 case 68:
603 this.begin("bqstring");
604 break;
605 case 69:
606 return 77;
607 case 70:
608 return 77;
609 case 71:
610 return 77;
611 case 72:
612 return 77;
613 case 73:
614 return 69;
615 case 74:
616 return 69;
617 case 75:
618 return 71;
619 case 76:
620 return 71;
621 case 77:
622 return 70;
623 case 78:
624 return 68;
625 case 79:
626 return 72;
627 case 80:
628 return 73;
629 case 81:
630 return 74;
631 case 82:
632 return 36;
633 case 83:
634 return 55;
635 case 84:
636 return 94;
637 case 85:
638 return "DOT";
639 case 86:
640 return "PLUS";
641 case 87:
642 return 91;
643 case 88:
644 return "EQUALS";
645 case 89:
646 return "EQUALS";
647 case 90:
648 return 98;
649 case 91:
650 return 27;
651 case 92:
652 return 29;
653 case 93:
654 return "PUNCTUATION";
655 case 94:
656 return 97;
657 case 95:
658 return 96;
659 case 96:
660 return 93;
661 case 97:
662 return 24;
663 }
664 },
665 rules: [/^(?:%%\{)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:((?:(?!\}%%)[^:.])*))/, /^(?::)/, /^(?:\}%%)/, /^(?:((?:(?!\}%%).|\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)/, /^(?:\[\*\])/, /^(?: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[\s]+["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:[~])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_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)/, /^(?:$)/],
666 conditions: { "namespace-body": { rules: [27, 28, 29, 30, 31, 32, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, namespace: { rules: [23, 24, 25, 26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, "class-body": { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, class: { rules: [33, 34, 35, 36, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, acc_descr_multiline: { rules: [16, 17, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, acc_descr: { rules: [14, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, acc_title: { rules: [12, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, arg_directive: { rules: [7, 8, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, type_directive: { rules: [6, 7, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, open_directive: { rules: [5, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, callback_args: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 58, 59, 62, 65, 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: !1 }, callback_name: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 55, 56, 57, 62, 65, 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: !1 }, href: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 62, 65, 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: !1 }, struct: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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: !1 }, generic: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 60, 61, 62, 65, 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: !1 }, bqstring: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 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: !1 }, string: { rules: [43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 63, 64, 65, 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: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 32, 43, 44, 45, 46, 47, 48, 49, 50, 51, 54, 62, 65, 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 } }
667 };
668 return v;
669 }();
670 ge.lexer = Ye;
671 function me() {
672 this.yy = {};
673 }
674 return me.prototype = ge, ge.Parser = me, new me();
675}();
676Be.parser = Be;
677const Lt = Be, Ae = "classId-";
678let ve = [], p = {}, he = [], Te = 0, N = {}, ye = 0, U = [];
679const S = (e) => De.sanitizeText(e, R()), it = function(e, u, l) {
680 et.parseDirective(this, e, u, l);
681}, P = function(e) {
682 let u = "", l = e;
683 if (e.indexOf("~") > 0) {
684 const o = e.split("~");
685 l = S(o[0]), u = S(o[1]);
686 }
687 return { className: l, type: u };
688}, ut = function(e, u) {
689 u && (u = S(u));
690 const { className: l } = P(e);
691 p[l].label = u;
692}, Se = function(e) {
693 const u = P(e);
694 p[u.className] === void 0 && (p[u.className] = {
695 id: u.className,
696 type: u.type,
697 label: u.className,
698 cssClasses: [],
699 methods: [],
700 members: [],
701 annotations: [],
702 domId: Ae + u.className + "-" + Te
703 }, Te++);
704}, Ge = function(e) {
705 if (e in p)
706 return p[e].domId;
707 throw new Error("Class not found: " + e);
708}, nt = function() {
709 ve = [], p = {}, he = [], U = [], U.push(Ue), N = {}, ye = 0, tt();
710}, rt = function(e) {
711 return p[e];
712}, at = function() {
713 return p;
714}, ct = function() {
715 return ve;
716}, lt = function() {
717 return he;
718}, ot = function(e) {
719 st.debug("Adding relation: " + JSON.stringify(e)), Se(e.id1), Se(e.id2), e.id1 = P(e.id1).className, e.id2 = P(e.id2).className, e.relationTitle1 = De.sanitizeText(
720 e.relationTitle1.trim(),
721 R()
722 ), e.relationTitle2 = De.sanitizeText(
723 e.relationTitle2.trim(),
724 R()
725 ), ve.push(e);
726}, ht = function(e, u) {
727 const l = P(e).className;
728 p[l].annotations.push(u);
729}, Me = function(e, u) {
730 const l = P(e).className, o = p[l];
731 if (typeof u == "string") {
732 const h = u.trim();
733 h.startsWith("<<") && h.endsWith(">>") ? o.annotations.push(S(h.substring(2, h.length - 2))) : h.indexOf(")") > 0 ? o.methods.push(S(h)) : h && o.members.push(S(h));
734 }
735}, At = function(e, u) {
736 Array.isArray(u) && (u.reverse(), u.forEach((l) => Me(e, l)));
737}, pt = function(e, u) {
738 const l = {
739 id: `note${he.length}`,
740 class: u,
741 text: e
742 };
743 he.push(l);
744}, ft = function(e) {
745 return e.startsWith(":") && (e = e.substring(1)), S(e.trim());
746}, Ne = function(e, u) {
747 e.split(",").forEach(function(l) {
748 let o = l;
749 l[0].match(/\d/) && (o = Ae + o), p[o] !== void 0 && p[o].cssClasses.push(u);
750 });
751}, dt = function(e, u) {
752 e.split(",").forEach(function(l) {
753 u !== void 0 && (p[l].tooltip = S(u));
754 });
755}, Et = function(e, u) {
756 return u ? N[u].classes[e].tooltip : p[e].tooltip;
757}, Ct = function(e, u, l) {
758 const o = R();
759 e.split(",").forEach(function(h) {
760 let F = h;
761 h[0].match(/\d/) && (F = Ae + F), p[F] !== void 0 && (p[F].link = Ve.formatUrl(u, o), o.securityLevel === "sandbox" ? p[F].linkTarget = "_top" : typeof l == "string" ? p[F].linkTarget = S(l) : p[F].linkTarget = "_blank");
762 }), Ne(e, "clickable");
763}, gt = function(e, u, l) {
764 e.split(",").forEach(function(o) {
765 mt(o, u, l), p[o].haveCallback = !0;
766 }), Ne(e, "clickable");
767}, mt = function(e, u, l) {
768 if (R().securityLevel !== "loose" || u === void 0)
769 return;
770 const h = e;
771 if (p[h] !== void 0) {
772 const F = Ge(h);
773 let m = [];
774 if (typeof l == "string") {
775 m = l.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
776 for (let _ = 0; _ < m.length; _++) {
777 let D = m[_].trim();
778 D.charAt(0) === '"' && D.charAt(D.length - 1) === '"' && (D = D.substr(1, D.length - 2)), m[_] = D;
779 }
780 }
781 m.length === 0 && m.push(F), U.push(function() {
782 const _ = document.querySelector(`[id="${F}"]`);
783 _ !== null && _.addEventListener(
784 "click",
785 function() {
786 Ve.runFunc(u, ...m);
787 },
788 !1
789 );
790 });
791 }
792}, kt = function(e) {
793 U.forEach(function(u) {
794 u(e);
795 });
796}, Ft = {
797 LINE: 0,
798 DOTTED_LINE: 1
799}, bt = {
800 AGGREGATION: 0,
801 EXTENSION: 1,
802 COMPOSITION: 2,
803 DEPENDENCY: 3,
804 LOLLIPOP: 4
805}, Ue = function(e) {
806 let u = M(".mermaidTooltip");
807 (u._groups || u)[0][0] === null && (u = M("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), M(e).select("svg").selectAll("g.node").on("mouseover", function() {
808 const h = M(this);
809 if (h.attr("title") === null)
810 return;
811 const m = this.getBoundingClientRect();
812 u.transition().duration(200).style("opacity", ".9"), u.text(h.attr("title")).style("left", window.scrollX + m.left + (m.right - m.left) / 2 + "px").style("top", window.scrollY + m.top - 14 + document.body.scrollTop + "px"), u.html(u.html().replace(/&lt;br\/&gt;/g, "<br/>")), h.classed("hover", !0);
813 }).on("mouseout", function() {
814 u.transition().duration(500).style("opacity", 0), M(this).classed("hover", !1);
815 });
816};
817U.push(Ue);
818let ze = "TB";
819const _t = () => ze, Dt = (e) => {
820 ze = e;
821}, Bt = function(e) {
822 N[e] === void 0 && (N[e] = {
823 id: e,
824 classes: {},
825 children: {},
826 domId: Ae + e + "-" + ye
827 }, ye++);
828}, Tt = function(e) {
829 return N[e];
830}, yt = function() {
831 return N;
832}, St = function(e, u) {
833 N[e] !== void 0 && u.map((l) => {
834 N[e].classes[l] = p[l], delete p[l], Te--;
835 });
836}, It = {
837 parseDirective: it,
838 setAccTitle: He,
839 getAccTitle: We,
840 getAccDescription: qe,
841 setAccDescription: Je,
842 getConfig: () => R().class,
843 addClass: Se,
844 bindFunctions: kt,
845 clear: nt,
846 getClass: rt,
847 getClasses: at,
848 getNotes: lt,
849 addAnnotation: ht,
850 addNote: pt,
851 getRelations: ct,
852 addRelation: ot,
853 getDirection: _t,
854 setDirection: Dt,
855 addMember: Me,
856 addMembers: At,
857 cleanupLabel: ft,
858 lineType: Ft,
859 relationType: bt,
860 setClickEvent: gt,
861 setCssClass: Ne,
862 setLink: Ct,
863 getTooltip: Et,
864 setTooltip: dt,
865 lookUpDomId: Ge,
866 setDiagramTitle: Ze,
867 getDiagramTitle: $e,
868 setClassLabel: ut,
869 addNamespace: Bt,
870 addClassesToNamespace: St,
871 getNamespace: Tt,
872 getNamespaces: yt
873}, vt = (e) => `g.classGroup text {
874 fill: ${e.nodeBorder};
875 fill: ${e.classText};
876 stroke: none;
877 font-family: ${e.fontFamily};
878 font-size: 10px;
879
880 .title {
881 font-weight: bolder;
882 }
883
884}
885
886.nodeLabel, .edgeLabel {
887 color: ${e.classText};
888}
889.edgeLabel .label rect {
890 fill: ${e.mainBkg};
891}
892.label text {
893 fill: ${e.classText};
894}
895.edgeLabel .label span {
896 background: ${e.mainBkg};
897}
898
899.classTitle {
900 font-weight: bolder;
901}
902.node rect,
903 .node circle,
904 .node ellipse,
905 .node polygon,
906 .node path {
907 fill: ${e.mainBkg};
908 stroke: ${e.nodeBorder};
909 stroke-width: 1px;
910 }
911
912
913.divider {
914 stroke: ${e.nodeBorder};
915 stroke-width: 1;
916}
917
918g.clickable {
919 cursor: pointer;
920}
921
922g.classGroup rect {
923 fill: ${e.mainBkg};
924 stroke: ${e.nodeBorder};
925}
926
927g.classGroup line {
928 stroke: ${e.nodeBorder};
929 stroke-width: 1;
930}
931
932.classLabel .box {
933 stroke: none;
934 stroke-width: 0;
935 fill: ${e.mainBkg};
936 opacity: 0.5;
937}
938
939.classLabel .label {
940 fill: ${e.nodeBorder};
941 font-size: 10px;
942}
943
944.relation {
945 stroke: ${e.lineColor};
946 stroke-width: 1;
947 fill: none;
948}
949
950.dashed-line{
951 stroke-dasharray: 3;
952}
953
954.dotted-line{
955 stroke-dasharray: 1 2;
956}
957
958#compositionStart, .composition {
959 fill: ${e.lineColor} !important;
960 stroke: ${e.lineColor} !important;
961 stroke-width: 1;
962}
963
964#compositionEnd, .composition {
965 fill: ${e.lineColor} !important;
966 stroke: ${e.lineColor} !important;
967 stroke-width: 1;
968}
969
970#dependencyStart, .dependency {
971 fill: ${e.lineColor} !important;
972 stroke: ${e.lineColor} !important;
973 stroke-width: 1;
974}
975
976#dependencyStart, .dependency {
977 fill: ${e.lineColor} !important;
978 stroke: ${e.lineColor} !important;
979 stroke-width: 1;
980}
981
982#extensionStart, .extension {
983 fill: ${e.mainBkg} !important;
984 stroke: ${e.lineColor} !important;
985 stroke-width: 1;
986}
987
988#extensionEnd, .extension {
989 fill: ${e.mainBkg} !important;
990 stroke: ${e.lineColor} !important;
991 stroke-width: 1;
992}
993
994#aggregationStart, .aggregation {
995 fill: ${e.mainBkg} !important;
996 stroke: ${e.lineColor} !important;
997 stroke-width: 1;
998}
999
1000#aggregationEnd, .aggregation {
1001 fill: ${e.mainBkg} !important;
1002 stroke: ${e.lineColor} !important;
1003 stroke-width: 1;
1004}
1005
1006#lollipopStart, .lollipop {
1007 fill: ${e.mainBkg} !important;
1008 stroke: ${e.lineColor} !important;
1009 stroke-width: 1;
1010}
1011
1012#lollipopEnd, .lollipop {
1013 fill: ${e.mainBkg} !important;
1014 stroke: ${e.lineColor} !important;
1015 stroke-width: 1;
1016}
1017
1018.edgeTerminals {
1019 font-size: 11px;
1020}
1021
1022.classTitleText {
1023 text-anchor: middle;
1024 font-size: 18px;
1025 fill: ${e.textColor};
1026}
1027`, xt = vt;
1028export {
1029 It as d,
1030 Lt as p,
1031 xt as s
1032};