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