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