@wandox/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/dist/arc-BJMRTG9S.cjs +1 -0
- package/dist/arc-Vdco0qfw.js +83 -0
- package/dist/architectureDiagram-3BPJPVTR-BjEqcvey.js +4695 -0
- package/dist/architectureDiagram-3BPJPVTR-BvjJfAkh.cjs +36 -0
- package/dist/blockDiagram-GPEHLZMM-B1xf7RE9.js +2427 -0
- package/dist/blockDiagram-GPEHLZMM-B5VqovGY.cjs +132 -0
- package/dist/c4Diagram-AAUBKEIU-C4kjMRea.js +1578 -0
- package/dist/c4Diagram-AAUBKEIU-Ck5uEnJI.cjs +10 -0
- package/dist/channel-DlRtLuYv.js +5 -0
- package/dist/channel-Dm_yrRYJ.cjs +1 -0
- package/dist/chunk-2J33WTMH-CG2n_n4y.cjs +1 -0
- package/dist/chunk-2J33WTMH-CWvmGb4H.js +20 -0
- package/dist/chunk-4BX2VUAB-Bq3GzsD8.js +9 -0
- package/dist/chunk-4BX2VUAB-CdMctZeT.cjs +1 -0
- package/dist/chunk-55IACEB6-BdJhzL0d.js +8 -0
- package/dist/chunk-55IACEB6-sHyHtvg8.cjs +1 -0
- package/dist/chunk-727SXJPM-D-Vmam30.cjs +206 -0
- package/dist/chunk-727SXJPM-DmruCqjM.js +1529 -0
- package/dist/chunk-AQP2D5EJ-CWhKjcV3.cjs +231 -0
- package/dist/chunk-AQP2D5EJ-Ca0ak6w7.js +1399 -0
- package/dist/chunk-FMBD7UC4-CqV0NWQQ.js +19 -0
- package/dist/chunk-FMBD7UC4-DOxtd0OO.cjs +15 -0
- package/dist/chunk-ND2GUHAM-6EMX5Mu8.js +68 -0
- package/dist/chunk-ND2GUHAM-BXeDBtSC.cjs +1 -0
- package/dist/chunk-QZHKN3VN-B7FSI55w.js +15 -0
- package/dist/chunk-QZHKN3VN-CbbdNKnD.cjs +1 -0
- package/dist/classDiagram-4FO5ZUOK-0Kaf7WfA.js +16 -0
- package/dist/classDiagram-4FO5ZUOK-C4it2xBI.cjs +1 -0
- package/dist/classDiagram-v2-Q7XG4LA2-Byom5adL.js +16 -0
- package/dist/classDiagram-v2-Q7XG4LA2-C4it2xBI.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-CuUv9oIm.js +2606 -0
- package/dist/cose-bilkent-S5V4N54A-Dh6nTopA.cjs +1 -0
- package/dist/cytoscape.esm-Cp8cXbK2.js +18729 -0
- package/dist/cytoscape.esm-fcqEUasK.cjs +331 -0
- package/dist/dagre-BM42HDAG-CwxJjZ2n.cjs +4 -0
- package/dist/dagre-BM42HDAG-DMBidMxP.js +448 -0
- package/dist/defaultLocale-BDVPUiG2.js +171 -0
- package/dist/defaultLocale-k2G_58r6.cjs +1 -0
- package/dist/diagram-2AECGRRQ-B2a4nXgJ.js +221 -0
- package/dist/diagram-2AECGRRQ-r7De7taS.cjs +43 -0
- package/dist/diagram-5GNKFQAL-CDiO79WC.cjs +10 -0
- package/dist/diagram-5GNKFQAL-DrHBNZzF.js +123 -0
- package/dist/diagram-KO2AKTUF-BcjWCXZr.js +466 -0
- package/dist/diagram-KO2AKTUF-CDlJCxVO.cjs +3 -0
- package/dist/diagram-LMA3HP47-BXFSAyNV.cjs +24 -0
- package/dist/diagram-LMA3HP47-DJxmyqn0.js +143 -0
- package/dist/diagram-OG6HWLK6-ATK__ca8.js +531 -0
- package/dist/diagram-OG6HWLK6-CgIyEO8_.cjs +24 -0
- package/dist/erDiagram-TEJ5UH35-D4baWNzQ.js +900 -0
- package/dist/erDiagram-TEJ5UH35-Dyuc5EB6.cjs +85 -0
- package/dist/flowDiagram-I6XJVG4X-BMZOncyU.js +1635 -0
- package/dist/flowDiagram-I6XJVG4X-C45fICr4.cjs +162 -0
- package/dist/ganttDiagram-6RSMTGT7-CiYZmmke.js +2526 -0
- package/dist/ganttDiagram-6RSMTGT7-Cxoj6IK8.cjs +292 -0
- package/dist/gitGraphDiagram-PVQCEYII-CQ9bNuwN.js +828 -0
- package/dist/gitGraphDiagram-PVQCEYII-rlaY9dfj.cjs +106 -0
- package/dist/graph-CBizzZ7K.js +1545 -0
- package/dist/graph-V5BNIbHU.cjs +1 -0
- package/dist/index-jBRold1l.js +173159 -0
- package/dist/index-sFrjovbM.cjs +804 -0
- package/dist/index.d.ts +54 -0
- package/dist/infoDiagram-5YYISTIA-CAzYIvUX.js +24 -0
- package/dist/infoDiagram-5YYISTIA-zX5rQglQ.cjs +2 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/ishikawaDiagram-YF4QCWOH-09prKBsn.cjs +70 -0
- package/dist/ishikawaDiagram-YF4QCWOH-Co8BnN24.js +622 -0
- package/dist/journeyDiagram-JHISSGLW-DkdWRF_-.cjs +139 -0
- package/dist/journeyDiagram-JHISSGLW-riCLiMCC.js +836 -0
- package/dist/kanban-definition-UN3LZRKU-DWipOCsx.cjs +89 -0
- package/dist/kanban-definition-UN3LZRKU-SRyCSn2H.js +725 -0
- package/dist/katex-Cf_UVKIT.cjs +257 -0
- package/dist/katex-RNjvZ8pg.js +11681 -0
- package/dist/layout-CbksXFOD.js +1728 -0
- package/dist/layout-Dh52gsIJ.cjs +1 -0
- package/dist/linear-C3xSMJV8.cjs +1 -0
- package/dist/linear-CmUCzX9U.js +259 -0
- package/dist/mermaid.core-BzNKr-OJ.cjs +308 -0
- package/dist/mermaid.core-CdBIz6FY.js +15475 -0
- package/dist/mindmap-definition-RKZ34NQL-Cs63oyIX.cjs +96 -0
- package/dist/mindmap-definition-RKZ34NQL-Gcma5iTd.js +830 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/pieDiagram-4H26LBE5-CBGkD8dp.cjs +30 -0
- package/dist/pieDiagram-4H26LBE5-DSL8cVK1.js +164 -0
- package/dist/quadrantDiagram-W4KKPZXB-D3nCWRjF.cjs +7 -0
- package/dist/quadrantDiagram-W4KKPZXB-uod6bhUy.js +1026 -0
- package/dist/requirementDiagram-4Y6WPE33-Bc_6y7SM.js +884 -0
- package/dist/requirementDiagram-4Y6WPE33-D2mHlh5i.cjs +84 -0
- package/dist/sankeyDiagram-5OEKKPKP-DL_kXejW.cjs +40 -0
- package/dist/sankeyDiagram-5OEKKPKP-DMsjY4G4.js +847 -0
- package/dist/sequenceDiagram-3UESZ5HK-CBGalGOV.cjs +162 -0
- package/dist/sequenceDiagram-3UESZ5HK-CH2Z-Pis.js +2901 -0
- package/dist/stateDiagram-AJRCARHV-gEqlAI6t.js +263 -0
- package/dist/stateDiagram-AJRCARHV-rNMrAI-A.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CDj7L1wi.js +16 -0
- package/dist/stateDiagram-v2-BHNVJYJU-LLlFJ1GM.cjs +1 -0
- package/dist/timeline-definition-PNZ67QCA-Bbuv3uu-.cjs +120 -0
- package/dist/timeline-definition-PNZ67QCA-DrGFbQdC.js +1068 -0
- package/dist/types.d.ts +295 -0
- package/dist/vennDiagram-CIIHVFJN-CGcAwVxU.js +1564 -0
- package/dist/vennDiagram-CIIHVFJN-DsSjXluJ.cjs +34 -0
- package/dist/wandox.cjs +1 -0
- package/dist/wandox.css +1 -0
- package/dist/wandox.js +6 -0
- package/dist/wandox.umd.js +4172 -0
- package/dist/wardley-L42UT6IY-DUnkyH_z.js +22539 -0
- package/dist/wardley-L42UT6IY-tDp0NbFW.cjs +165 -0
- package/dist/wardleyDiagram-YWT4CUSO-CB_Qa4lR.js +684 -0
- package/dist/wardleyDiagram-YWT4CUSO-D0BUmvVW.cjs +78 -0
- package/dist/xychartDiagram-2RQKCTM6-Bcq-ACuw.js +1342 -0
- package/dist/xychartDiagram-2RQKCTM6-BjeAPKLo.cjs +7 -0
- package/package.json +42 -0
|
@@ -0,0 +1,1529 @@
|
|
|
1
|
+
import { g as st } from "./chunk-FMBD7UC4-CqV0NWQQ.js";
|
|
2
|
+
import { c as it } from "./chunk-ND2GUHAM-6EMX5Mu8.js";
|
|
3
|
+
import { g as at } from "./chunk-55IACEB6-BdJhzL0d.js";
|
|
4
|
+
import { s as rt } from "./chunk-2J33WTMH-CWvmGb4H.js";
|
|
5
|
+
import { b as g, aB as we, a2 as F, a8 as nt, aT as ut, bj as Ve, aZ as fe, aP as lt, b0 as ct, a0 as ot, a$ as ht, $ as dt, b2 as pt, a3 as At, z as I, t as ft, a4 as gt, aX as mt, aL as z } from "./mermaid.core-CdBIz6FY.js";
|
|
6
|
+
var Pe = function() {
|
|
7
|
+
var s = /* @__PURE__ */ g(function(O, o, d, p) {
|
|
8
|
+
for (d = d || {}, p = O.length; p--; d[O[p]] = o) ;
|
|
9
|
+
return d;
|
|
10
|
+
}, "o"), i = [1, 18], a = [1, 19], r = [1, 20], n = [1, 41], u = [1, 26], h = [1, 42], f = [1, 24], c = [1, 25], m = [1, 32], B = [1, 33], R = [1, 34], b = [1, 45], me = [1, 35], Ce = [1, 36], be = [1, 37], ke = [1, 38], Ee = [1, 27], Te = [1, 28], ye = [1, 29], De = [1, 30], Fe = [1, 31], k = [1, 44], E = [1, 46], T = [1, 43], y = [1, 47], Be = [1, 9], A = [1, 8, 9], te = [1, 58], se = [1, 59], ie = [1, 60], ae = [1, 61], re = [1, 62], _e = [1, 63], Se = [1, 64], S = [1, 8, 9, 41], Me = [1, 77], G = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], ne = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 46, 47, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ue = [13, 60, 86, 100, 102, 103], K = [13, 60, 73, 74, 86, 100, 102, 103], Re = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], le = [1, 103], W = [1, 121], Q = [1, 117], j = [1, 113], X = [1, 119], q = [1, 114], H = [1, 115], J = [1, 116], Z = [1, 118], $ = [1, 120], Ge = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ue = [1, 128], ce = [12, 39], Ne = [1, 8, 9, 39, 41, 44, 46], oe = [1, 8, 9, 22], ze = [1, 153], Ye = [1, 8, 9, 61], x = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Le = {
|
|
11
|
+
trace: /* @__PURE__ */ g(function() {
|
|
12
|
+
}, "trace"),
|
|
13
|
+
yy: {},
|
|
14
|
+
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, classLiteralName: 17, DOT: 18, className: 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, ANNOTATION_START: 46, ANNOTATION_END: 47, CLASS: 48, emptyBody: 49, SPACE: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
|
|
15
|
+
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "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: "ANNOTATION_START", 47: "ANNOTATION_END", 48: "CLASS", 50: "SPACE", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
|
|
16
|
+
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 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], [38, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [24, 4], [24, 7], [24, 6], [43, 2], [43, 3], [49, 0], [49, 2], [49, 2], [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], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 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], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
|
|
17
|
+
performAction: /* @__PURE__ */ g(function(o, d, p, l, C, e, ee) {
|
|
18
|
+
var t = e.length - 1;
|
|
19
|
+
switch (C) {
|
|
20
|
+
case 8:
|
|
21
|
+
this.$ = e[t - 1];
|
|
22
|
+
break;
|
|
23
|
+
case 9:
|
|
24
|
+
case 10:
|
|
25
|
+
case 13:
|
|
26
|
+
case 15:
|
|
27
|
+
this.$ = e[t];
|
|
28
|
+
break;
|
|
29
|
+
case 11:
|
|
30
|
+
case 14:
|
|
31
|
+
this.$ = e[t - 2] + "." + e[t];
|
|
32
|
+
break;
|
|
33
|
+
case 12:
|
|
34
|
+
case 16:
|
|
35
|
+
this.$ = e[t - 1] + e[t];
|
|
36
|
+
break;
|
|
37
|
+
case 17:
|
|
38
|
+
case 18:
|
|
39
|
+
this.$ = e[t - 1] + "~" + e[t] + "~";
|
|
40
|
+
break;
|
|
41
|
+
case 19:
|
|
42
|
+
l.addRelation(e[t]);
|
|
43
|
+
break;
|
|
44
|
+
case 20:
|
|
45
|
+
e[t - 1].title = l.cleanupLabel(e[t]), l.addRelation(e[t - 1]);
|
|
46
|
+
break;
|
|
47
|
+
case 31:
|
|
48
|
+
this.$ = e[t].trim(), l.setAccTitle(this.$);
|
|
49
|
+
break;
|
|
50
|
+
case 32:
|
|
51
|
+
case 33:
|
|
52
|
+
this.$ = e[t].trim(), l.setAccDescription(this.$);
|
|
53
|
+
break;
|
|
54
|
+
case 34:
|
|
55
|
+
l.addClassesToNamespace(e[t - 3], e[t - 1][0], e[t - 1][1]), l.popNamespace();
|
|
56
|
+
break;
|
|
57
|
+
case 35:
|
|
58
|
+
l.addClassesToNamespace(e[t - 4], e[t - 1][0], e[t - 1][1]), l.popNamespace();
|
|
59
|
+
break;
|
|
60
|
+
case 36:
|
|
61
|
+
this.$ = l.addNamespace(e[t]);
|
|
62
|
+
break;
|
|
63
|
+
case 37:
|
|
64
|
+
this.$ = l.addNamespace(e[t - 1], e[t]);
|
|
65
|
+
break;
|
|
66
|
+
case 38:
|
|
67
|
+
this.$ = [[e[t]], []];
|
|
68
|
+
break;
|
|
69
|
+
case 39:
|
|
70
|
+
this.$ = [[e[t - 1]], []];
|
|
71
|
+
break;
|
|
72
|
+
case 40:
|
|
73
|
+
e[t][0].unshift(e[t - 2]), this.$ = e[t];
|
|
74
|
+
break;
|
|
75
|
+
case 41:
|
|
76
|
+
this.$ = [[], [e[t]]];
|
|
77
|
+
break;
|
|
78
|
+
case 42:
|
|
79
|
+
this.$ = [[], [e[t - 1]]];
|
|
80
|
+
break;
|
|
81
|
+
case 43:
|
|
82
|
+
e[t][1].unshift(e[t - 2]), this.$ = e[t];
|
|
83
|
+
break;
|
|
84
|
+
case 44:
|
|
85
|
+
case 45:
|
|
86
|
+
this.$ = [[], []];
|
|
87
|
+
break;
|
|
88
|
+
case 46:
|
|
89
|
+
this.$ = e[t];
|
|
90
|
+
break;
|
|
91
|
+
case 48:
|
|
92
|
+
l.setCssClass(e[t - 2], e[t]);
|
|
93
|
+
break;
|
|
94
|
+
case 49:
|
|
95
|
+
l.addMembers(e[t - 3], e[t - 1]);
|
|
96
|
+
break;
|
|
97
|
+
case 51:
|
|
98
|
+
l.setCssClass(e[t - 5], e[t - 3]), l.addMembers(e[t - 5], e[t - 1]);
|
|
99
|
+
break;
|
|
100
|
+
case 52:
|
|
101
|
+
l.addAnnotation(e[t - 3], e[t - 1]);
|
|
102
|
+
break;
|
|
103
|
+
case 53:
|
|
104
|
+
l.addAnnotation(e[t - 6], e[t - 4]), l.addMembers(e[t - 6], e[t - 1]);
|
|
105
|
+
break;
|
|
106
|
+
case 54:
|
|
107
|
+
l.addAnnotation(e[t - 5], e[t - 3]);
|
|
108
|
+
break;
|
|
109
|
+
case 55:
|
|
110
|
+
this.$ = e[t], l.addClass(e[t]);
|
|
111
|
+
break;
|
|
112
|
+
case 56:
|
|
113
|
+
this.$ = e[t - 1], l.addClass(e[t - 1]), l.setClassLabel(e[t - 1], e[t]);
|
|
114
|
+
break;
|
|
115
|
+
case 60:
|
|
116
|
+
l.addAnnotation(e[t], e[t - 2]);
|
|
117
|
+
break;
|
|
118
|
+
case 61:
|
|
119
|
+
case 74:
|
|
120
|
+
this.$ = [e[t]];
|
|
121
|
+
break;
|
|
122
|
+
case 62:
|
|
123
|
+
e[t].push(e[t - 1]), this.$ = e[t];
|
|
124
|
+
break;
|
|
125
|
+
case 63:
|
|
126
|
+
break;
|
|
127
|
+
case 64:
|
|
128
|
+
l.addMember(e[t - 1], l.cleanupLabel(e[t]));
|
|
129
|
+
break;
|
|
130
|
+
case 65:
|
|
131
|
+
break;
|
|
132
|
+
case 66:
|
|
133
|
+
break;
|
|
134
|
+
case 67:
|
|
135
|
+
this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
|
|
136
|
+
break;
|
|
137
|
+
case 68:
|
|
138
|
+
this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
|
|
139
|
+
break;
|
|
140
|
+
case 69:
|
|
141
|
+
this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
|
|
142
|
+
break;
|
|
143
|
+
case 70:
|
|
144
|
+
this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
|
|
145
|
+
break;
|
|
146
|
+
case 71:
|
|
147
|
+
this.$ = l.addNote(e[t], e[t - 1]);
|
|
148
|
+
break;
|
|
149
|
+
case 72:
|
|
150
|
+
this.$ = l.addNote(e[t]);
|
|
151
|
+
break;
|
|
152
|
+
case 73:
|
|
153
|
+
this.$ = e[t - 2], l.defineClass(e[t - 1], e[t]);
|
|
154
|
+
break;
|
|
155
|
+
case 75:
|
|
156
|
+
this.$ = e[t - 2].concat([e[t]]);
|
|
157
|
+
break;
|
|
158
|
+
case 76:
|
|
159
|
+
l.setDirection("TB");
|
|
160
|
+
break;
|
|
161
|
+
case 77:
|
|
162
|
+
l.setDirection("BT");
|
|
163
|
+
break;
|
|
164
|
+
case 78:
|
|
165
|
+
l.setDirection("RL");
|
|
166
|
+
break;
|
|
167
|
+
case 79:
|
|
168
|
+
l.setDirection("LR");
|
|
169
|
+
break;
|
|
170
|
+
case 80:
|
|
171
|
+
this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
|
|
172
|
+
break;
|
|
173
|
+
case 81:
|
|
174
|
+
this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
|
|
175
|
+
break;
|
|
176
|
+
case 82:
|
|
177
|
+
this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
|
|
178
|
+
break;
|
|
179
|
+
case 83:
|
|
180
|
+
this.$ = { type1: "none", type2: "none", lineType: e[t] };
|
|
181
|
+
break;
|
|
182
|
+
case 84:
|
|
183
|
+
this.$ = l.relationType.AGGREGATION;
|
|
184
|
+
break;
|
|
185
|
+
case 85:
|
|
186
|
+
this.$ = l.relationType.EXTENSION;
|
|
187
|
+
break;
|
|
188
|
+
case 86:
|
|
189
|
+
this.$ = l.relationType.COMPOSITION;
|
|
190
|
+
break;
|
|
191
|
+
case 87:
|
|
192
|
+
this.$ = l.relationType.DEPENDENCY;
|
|
193
|
+
break;
|
|
194
|
+
case 88:
|
|
195
|
+
this.$ = l.relationType.LOLLIPOP;
|
|
196
|
+
break;
|
|
197
|
+
case 89:
|
|
198
|
+
this.$ = l.lineType.LINE;
|
|
199
|
+
break;
|
|
200
|
+
case 90:
|
|
201
|
+
this.$ = l.lineType.DOTTED_LINE;
|
|
202
|
+
break;
|
|
203
|
+
case 91:
|
|
204
|
+
case 97:
|
|
205
|
+
this.$ = e[t - 2], l.setClickEvent(e[t - 1], e[t]);
|
|
206
|
+
break;
|
|
207
|
+
case 92:
|
|
208
|
+
case 98:
|
|
209
|
+
this.$ = e[t - 3], l.setClickEvent(e[t - 2], e[t - 1]), l.setTooltip(e[t - 2], e[t]);
|
|
210
|
+
break;
|
|
211
|
+
case 93:
|
|
212
|
+
this.$ = e[t - 2], l.setLink(e[t - 1], e[t]);
|
|
213
|
+
break;
|
|
214
|
+
case 94:
|
|
215
|
+
this.$ = e[t - 3], l.setLink(e[t - 2], e[t - 1], e[t]);
|
|
216
|
+
break;
|
|
217
|
+
case 95:
|
|
218
|
+
this.$ = e[t - 3], l.setLink(e[t - 2], e[t - 1]), l.setTooltip(e[t - 2], e[t]);
|
|
219
|
+
break;
|
|
220
|
+
case 96:
|
|
221
|
+
this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 2], e[t]), l.setTooltip(e[t - 3], e[t - 1]);
|
|
222
|
+
break;
|
|
223
|
+
case 99:
|
|
224
|
+
this.$ = e[t - 3], l.setClickEvent(e[t - 2], e[t - 1], e[t]);
|
|
225
|
+
break;
|
|
226
|
+
case 100:
|
|
227
|
+
this.$ = e[t - 4], l.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), l.setTooltip(e[t - 3], e[t]);
|
|
228
|
+
break;
|
|
229
|
+
case 101:
|
|
230
|
+
this.$ = e[t - 3], l.setLink(e[t - 2], e[t]);
|
|
231
|
+
break;
|
|
232
|
+
case 102:
|
|
233
|
+
this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 1], e[t]);
|
|
234
|
+
break;
|
|
235
|
+
case 103:
|
|
236
|
+
this.$ = e[t - 4], l.setLink(e[t - 3], e[t - 1]), l.setTooltip(e[t - 3], e[t]);
|
|
237
|
+
break;
|
|
238
|
+
case 104:
|
|
239
|
+
this.$ = e[t - 5], l.setLink(e[t - 4], e[t - 2], e[t]), l.setTooltip(e[t - 4], e[t - 1]);
|
|
240
|
+
break;
|
|
241
|
+
case 105:
|
|
242
|
+
this.$ = e[t - 2], l.setCssStyle(e[t - 1], e[t]);
|
|
243
|
+
break;
|
|
244
|
+
case 106:
|
|
245
|
+
l.setCssClass(e[t - 1], e[t]);
|
|
246
|
+
break;
|
|
247
|
+
case 107:
|
|
248
|
+
this.$ = [e[t]];
|
|
249
|
+
break;
|
|
250
|
+
case 108:
|
|
251
|
+
e[t - 2].push(e[t]), this.$ = e[t - 2];
|
|
252
|
+
break;
|
|
253
|
+
case 110:
|
|
254
|
+
this.$ = e[t - 1] + e[t];
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}, "anonymous"),
|
|
258
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 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: a, 37: r, 38: 22, 42: n, 43: 23, 46: u, 48: h, 51: f, 52: c, 54: m, 56: B, 57: R, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(Be, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(A, [2, 19], { 22: [1, 50] }), s(A, [2, 21]), s(A, [2, 22]), s(A, [2, 23]), s(A, [2, 24]), s(A, [2, 25]), s(A, [2, 26]), s(A, [2, 27]), s(A, [2, 28]), s(A, [2, 29]), s(A, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(A, [2, 33]), s(A, [2, 63], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: te, 69: se, 70: ie, 71: ae, 72: re, 73: _e, 74: Se }), { 39: [1, 65] }, s(S, [2, 47], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), s(A, [2, 65]), s(A, [2, 66]), { 16: 69, 60: b, 86: k, 100: E, 102: T }, { 16: 39, 17: 40, 19: 70, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 71, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 72, 60: b, 86: k, 100: E, 102: T, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: Me, 55: 76 }, { 58: 78, 60: [1, 79] }, s(A, [2, 76]), s(A, [2, 77]), s(A, [2, 78]), s(A, [2, 79]), s(G, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: b, 86: k, 100: E, 102: T, 103: y }), s(G, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 87, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ne, [2, 133]), s(ne, [2, 134]), s(ne, [2, 135]), s(ne, [2, 136]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 137]), s(Be, [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, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 88, 33: i, 35: a, 37: r, 42: n, 46: u, 48: h, 51: f, 52: c, 54: m, 56: B, 57: R, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }), { 5: 89, 10: 5, 16: 39, 17: 40, 19: 21, 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: a, 37: r, 38: 22, 42: n, 43: 23, 46: u, 48: h, 51: f, 52: c, 54: m, 56: B, 57: R, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 20]), s(A, [2, 31]), s(A, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: b, 86: k, 100: E, 102: T, 103: y }, { 53: 92, 66: 56, 67: 57, 68: te, 69: se, 70: ie, 71: ae, 72: re, 73: _e, 74: Se }, s(A, [2, 64]), { 67: 93, 73: _e, 74: Se }, s(ue, [2, 83], { 66: 94, 68: te, 69: se, 70: ie, 71: ae, 72: re }), s(K, [2, 84]), s(K, [2, 85]), s(K, [2, 86]), s(K, [2, 87]), s(K, [2, 88]), s(Re, [2, 89]), s(Re, [2, 90]), { 8: [1, 96], 23: 99, 24: 97, 30: 98, 38: 22, 40: 95, 42: n, 43: 23, 48: h, 54: m, 56: B }, { 16: 100, 60: b, 86: k, 100: E, 102: T }, { 41: [1, 102], 45: 101, 51: le }, { 16: 104, 60: b, 86: k, 100: E, 102: T }, { 47: [1, 105] }, { 13: [1, 106] }, { 13: [1, 107] }, { 79: [1, 108], 81: [1, 109] }, { 22: W, 50: Q, 59: 110, 60: j, 82: X, 84: 111, 85: 112, 86: q, 87: H, 88: J, 89: Z, 90: $ }, { 60: [1, 122] }, { 13: Me, 55: 123 }, s(S, [2, 72]), s(S, [2, 138]), { 22: W, 50: Q, 59: 124, 60: j, 61: [1, 125], 82: X, 84: 111, 85: 112, 86: q, 87: H, 88: J, 89: Z, 90: $ }, s(Ge, [2, 74]), { 16: 39, 17: 40, 19: 126, 60: b, 86: k, 100: E, 102: T, 103: y }, s(G, [2, 16]), s(G, [2, 17]), s(G, [2, 18]), { 11: 127, 12: Ue, 39: [2, 36] }, s(ce, [2, 9], { 16: 85, 17: 86, 15: 130, 18: [1, 129], 60: b, 86: k, 100: E, 102: T, 103: y }), s(ce, [2, 10]), s(Ne, [2, 55], { 11: 131, 12: Ue }), s(Be, [2, 7]), { 9: [1, 132] }, s(oe, [2, 67]), { 16: 39, 17: 40, 19: 133, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: [1, 135], 16: 39, 17: 40, 19: 134, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ue, [2, 82], { 66: 136, 68: te, 69: se, 70: ie, 71: ae, 72: re }), s(ue, [2, 81]), { 41: [1, 137] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 138, 42: n, 43: 23, 48: h, 54: m, 56: B }, { 8: [1, 139], 41: [2, 38] }, { 8: [1, 140], 41: [2, 41] }, { 8: [1, 141], 41: [2, 44] }, s(S, [2, 48], { 39: [1, 142] }), { 41: [1, 143] }, s(S, [2, 50]), { 41: [2, 61], 45: 144, 51: le }, { 47: [1, 145] }, { 16: 39, 17: 40, 19: 146, 60: b, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 91], { 13: [1, 147] }), s(A, [2, 93], { 13: [1, 149], 77: [1, 148] }), s(A, [2, 97], { 13: [1, 150], 80: [1, 151] }), { 13: [1, 152] }, s(A, [2, 105], { 61: ze }), s(Ye, [2, 107], { 85: 154, 22: W, 50: Q, 60: j, 82: X, 86: q, 87: H, 88: J, 89: Z, 90: $ }), s(x, [2, 109]), s(x, [2, 111]), s(x, [2, 112]), s(x, [2, 113]), s(x, [2, 114]), s(x, [2, 115]), s(x, [2, 116]), s(x, [2, 117]), s(x, [2, 118]), s(x, [2, 119]), s(A, [2, 106]), s(S, [2, 71]), s(A, [2, 73], { 61: ze }), { 60: [1, 155] }, s(G, [2, 14]), { 39: [2, 37] }, { 13: [1, 156] }, { 15: 157, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ce, [2, 12]), s(Ne, [2, 56]), { 1: [2, 4] }, s(oe, [2, 69]), s(oe, [2, 68]), { 16: 39, 17: 40, 19: 158, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ue, [2, 80]), s(S, [2, 34]), { 41: [1, 159] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 160, 41: [2, 39], 42: n, 43: 23, 48: h, 54: m, 56: B }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 161, 41: [2, 42], 42: n, 43: 23, 48: h, 54: m, 56: B }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 162, 41: [2, 45], 42: n, 43: 23, 48: h, 54: m, 56: B }, { 45: 163, 51: le }, s(S, [2, 49]), { 41: [2, 62] }, s(S, [2, 52], { 39: [1, 164] }), s(A, [2, 60]), s(A, [2, 92]), s(A, [2, 94]), s(A, [2, 95], { 77: [1, 165] }), s(A, [2, 98]), s(A, [2, 99], { 13: [1, 166] }), s(A, [2, 101], { 13: [1, 168], 77: [1, 167] }), { 22: W, 50: Q, 60: j, 82: X, 84: 169, 85: 112, 86: q, 87: H, 88: J, 89: Z, 90: $ }, s(x, [2, 110]), s(Ge, [2, 75]), { 14: [1, 170] }, s(ce, [2, 11]), s(oe, [2, 70]), s(S, [2, 35]), { 41: [2, 40] }, { 41: [2, 43] }, { 41: [2, 46] }, { 41: [1, 171] }, { 41: [1, 173], 45: 172, 51: le }, s(A, [2, 96]), s(A, [2, 100]), s(A, [2, 102]), s(A, [2, 103], { 77: [1, 174] }), s(Ye, [2, 108], { 85: 154, 22: W, 50: Q, 60: j, 82: X, 86: q, 87: H, 88: J, 89: Z, 90: $ }), s(Ne, [2, 8]), s(S, [2, 51]), { 41: [1, 175] }, s(S, [2, 54]), s(A, [2, 104]), s(S, [2, 53])],
|
|
259
|
+
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 127: [2, 37], 132: [2, 4], 144: [2, 62], 160: [2, 40], 161: [2, 43], 162: [2, 46] },
|
|
260
|
+
parseError: /* @__PURE__ */ g(function(o, d) {
|
|
261
|
+
if (d.recoverable)
|
|
262
|
+
this.trace(o);
|
|
263
|
+
else {
|
|
264
|
+
var p = new Error(o);
|
|
265
|
+
throw p.hash = d, p;
|
|
266
|
+
}
|
|
267
|
+
}, "parseError"),
|
|
268
|
+
parse: /* @__PURE__ */ g(function(o) {
|
|
269
|
+
var d = this, p = [0], l = [], C = [null], e = [], ee = this.table, t = "", de = 0, Ke = 0, Ze = 2, We = 1, $e = e.slice.call(arguments, 1), D = Object.create(this.lexer), V = { yy: {} };
|
|
270
|
+
for (var xe in this.yy)
|
|
271
|
+
Object.prototype.hasOwnProperty.call(this.yy, xe) && (V.yy[xe] = this.yy[xe]);
|
|
272
|
+
D.setInput(o, V.yy), V.yy.lexer = D, V.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
|
|
273
|
+
var ve = D.yylloc;
|
|
274
|
+
e.push(ve);
|
|
275
|
+
var et = D.options && D.options.ranges;
|
|
276
|
+
typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
277
|
+
function tt(N) {
|
|
278
|
+
p.length = p.length - 2 * N, C.length = C.length - N, e.length = e.length - N;
|
|
279
|
+
}
|
|
280
|
+
g(tt, "popStack");
|
|
281
|
+
function Qe() {
|
|
282
|
+
var N;
|
|
283
|
+
return N = l.pop() || D.lex() || We, typeof N != "number" && (N instanceof Array && (l = N, N = l.pop()), N = d.symbols_[N] || N), N;
|
|
284
|
+
}
|
|
285
|
+
g(Qe, "lex");
|
|
286
|
+
for (var _, P, L, Ie, U = {}, pe, v, je, Ae; ; ) {
|
|
287
|
+
if (P = p[p.length - 1], this.defaultActions[P] ? L = this.defaultActions[P] : ((_ === null || typeof _ > "u") && (_ = Qe()), L = ee[P] && ee[P][_]), typeof L > "u" || !L.length || !L[0]) {
|
|
288
|
+
var Oe = "";
|
|
289
|
+
Ae = [];
|
|
290
|
+
for (pe in ee[P])
|
|
291
|
+
this.terminals_[pe] && pe > Ze && Ae.push("'" + this.terminals_[pe] + "'");
|
|
292
|
+
D.showPosition ? Oe = "Parse error on line " + (de + 1) + `:
|
|
293
|
+
` + D.showPosition() + `
|
|
294
|
+
Expecting ` + Ae.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Oe = "Parse error on line " + (de + 1) + ": Unexpected " + (_ == We ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(Oe, {
|
|
295
|
+
text: D.match,
|
|
296
|
+
token: this.terminals_[_] || _,
|
|
297
|
+
line: D.yylineno,
|
|
298
|
+
loc: ve,
|
|
299
|
+
expected: Ae
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
if (L[0] instanceof Array && L.length > 1)
|
|
303
|
+
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + _);
|
|
304
|
+
switch (L[0]) {
|
|
305
|
+
case 1:
|
|
306
|
+
p.push(_), C.push(D.yytext), e.push(D.yylloc), p.push(L[1]), _ = null, Ke = D.yyleng, t = D.yytext, de = D.yylineno, ve = D.yylloc;
|
|
307
|
+
break;
|
|
308
|
+
case 2:
|
|
309
|
+
if (v = this.productions_[L[1]][1], U.$ = C[C.length - v], U._$ = {
|
|
310
|
+
first_line: e[e.length - (v || 1)].first_line,
|
|
311
|
+
last_line: e[e.length - 1].last_line,
|
|
312
|
+
first_column: e[e.length - (v || 1)].first_column,
|
|
313
|
+
last_column: e[e.length - 1].last_column
|
|
314
|
+
}, et && (U._$.range = [
|
|
315
|
+
e[e.length - (v || 1)].range[0],
|
|
316
|
+
e[e.length - 1].range[1]
|
|
317
|
+
]), Ie = this.performAction.apply(U, [
|
|
318
|
+
t,
|
|
319
|
+
Ke,
|
|
320
|
+
de,
|
|
321
|
+
V.yy,
|
|
322
|
+
L[1],
|
|
323
|
+
C,
|
|
324
|
+
e
|
|
325
|
+
].concat($e)), typeof Ie < "u")
|
|
326
|
+
return Ie;
|
|
327
|
+
v && (p = p.slice(0, -1 * v * 2), C = C.slice(0, -1 * v), e = e.slice(0, -1 * v)), p.push(this.productions_[L[1]][0]), C.push(U.$), e.push(U._$), je = ee[p[p.length - 2]][p[p.length - 1]], p.push(je);
|
|
328
|
+
break;
|
|
329
|
+
case 3:
|
|
330
|
+
return !0;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return !0;
|
|
334
|
+
}, "parse")
|
|
335
|
+
}, Je = /* @__PURE__ */ function() {
|
|
336
|
+
var O = {
|
|
337
|
+
EOF: 1,
|
|
338
|
+
parseError: /* @__PURE__ */ g(function(d, p) {
|
|
339
|
+
if (this.yy.parser)
|
|
340
|
+
this.yy.parser.parseError(d, p);
|
|
341
|
+
else
|
|
342
|
+
throw new Error(d);
|
|
343
|
+
}, "parseError"),
|
|
344
|
+
// resets the lexer, sets new input
|
|
345
|
+
setInput: /* @__PURE__ */ g(function(o, d) {
|
|
346
|
+
return this.yy = d || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
347
|
+
first_line: 1,
|
|
348
|
+
first_column: 0,
|
|
349
|
+
last_line: 1,
|
|
350
|
+
last_column: 0
|
|
351
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
352
|
+
}, "setInput"),
|
|
353
|
+
// consumes and returns one char from the input
|
|
354
|
+
input: /* @__PURE__ */ g(function() {
|
|
355
|
+
var o = this._input[0];
|
|
356
|
+
this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
|
|
357
|
+
var d = o.match(/(?:\r\n?|\n).*/g);
|
|
358
|
+
return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
|
|
359
|
+
}, "input"),
|
|
360
|
+
// unshifts one char (or a string) into the input
|
|
361
|
+
unput: /* @__PURE__ */ g(function(o) {
|
|
362
|
+
var d = o.length, p = o.split(/(?:\r\n?|\n)/g);
|
|
363
|
+
this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
|
|
364
|
+
var l = this.match.split(/(?:\r\n?|\n)/g);
|
|
365
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
|
|
366
|
+
var C = this.yylloc.range;
|
|
367
|
+
return this.yylloc = {
|
|
368
|
+
first_line: this.yylloc.first_line,
|
|
369
|
+
last_line: this.yylineno + 1,
|
|
370
|
+
first_column: this.yylloc.first_column,
|
|
371
|
+
last_column: p ? (p.length === l.length ? this.yylloc.first_column : 0) + l[l.length - p.length].length - p[0].length : this.yylloc.first_column - d
|
|
372
|
+
}, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
|
|
373
|
+
}, "unput"),
|
|
374
|
+
// When called from action, caches matched text and appends it on next action
|
|
375
|
+
more: /* @__PURE__ */ g(function() {
|
|
376
|
+
return this._more = !0, this;
|
|
377
|
+
}, "more"),
|
|
378
|
+
// 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.
|
|
379
|
+
reject: /* @__PURE__ */ g(function() {
|
|
380
|
+
if (this.options.backtrack_lexer)
|
|
381
|
+
this._backtrack = !0;
|
|
382
|
+
else
|
|
383
|
+
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).
|
|
384
|
+
` + this.showPosition(), {
|
|
385
|
+
text: "",
|
|
386
|
+
token: null,
|
|
387
|
+
line: this.yylineno
|
|
388
|
+
});
|
|
389
|
+
return this;
|
|
390
|
+
}, "reject"),
|
|
391
|
+
// retain first n characters of the match
|
|
392
|
+
less: /* @__PURE__ */ g(function(o) {
|
|
393
|
+
this.unput(this.match.slice(o));
|
|
394
|
+
}, "less"),
|
|
395
|
+
// displays already matched input, i.e. for error messages
|
|
396
|
+
pastInput: /* @__PURE__ */ g(function() {
|
|
397
|
+
var o = this.matched.substr(0, this.matched.length - this.match.length);
|
|
398
|
+
return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
|
|
399
|
+
}, "pastInput"),
|
|
400
|
+
// displays upcoming input, i.e. for error messages
|
|
401
|
+
upcomingInput: /* @__PURE__ */ g(function() {
|
|
402
|
+
var o = this.match;
|
|
403
|
+
return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
404
|
+
}, "upcomingInput"),
|
|
405
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
406
|
+
showPosition: /* @__PURE__ */ g(function() {
|
|
407
|
+
var o = this.pastInput(), d = new Array(o.length + 1).join("-");
|
|
408
|
+
return o + this.upcomingInput() + `
|
|
409
|
+
` + d + "^";
|
|
410
|
+
}, "showPosition"),
|
|
411
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
412
|
+
test_match: /* @__PURE__ */ g(function(o, d) {
|
|
413
|
+
var p, l, C;
|
|
414
|
+
if (this.options.backtrack_lexer && (C = {
|
|
415
|
+
yylineno: this.yylineno,
|
|
416
|
+
yylloc: {
|
|
417
|
+
first_line: this.yylloc.first_line,
|
|
418
|
+
last_line: this.last_line,
|
|
419
|
+
first_column: this.yylloc.first_column,
|
|
420
|
+
last_column: this.yylloc.last_column
|
|
421
|
+
},
|
|
422
|
+
yytext: this.yytext,
|
|
423
|
+
match: this.match,
|
|
424
|
+
matches: this.matches,
|
|
425
|
+
matched: this.matched,
|
|
426
|
+
yyleng: this.yyleng,
|
|
427
|
+
offset: this.offset,
|
|
428
|
+
_more: this._more,
|
|
429
|
+
_input: this._input,
|
|
430
|
+
yy: this.yy,
|
|
431
|
+
conditionStack: this.conditionStack.slice(0),
|
|
432
|
+
done: this.done
|
|
433
|
+
}, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), l = o[0].match(/(?:\r\n?|\n).*/g), l && (this.yylineno += l.length), this.yylloc = {
|
|
434
|
+
first_line: this.yylloc.last_line,
|
|
435
|
+
last_line: this.yylineno + 1,
|
|
436
|
+
first_column: this.yylloc.last_column,
|
|
437
|
+
last_column: l ? l[l.length - 1].length - l[l.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
|
|
438
|
+
}, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], p = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
|
|
439
|
+
return p;
|
|
440
|
+
if (this._backtrack) {
|
|
441
|
+
for (var e in C)
|
|
442
|
+
this[e] = C[e];
|
|
443
|
+
return !1;
|
|
444
|
+
}
|
|
445
|
+
return !1;
|
|
446
|
+
}, "test_match"),
|
|
447
|
+
// return next match in input
|
|
448
|
+
next: /* @__PURE__ */ g(function() {
|
|
449
|
+
if (this.done)
|
|
450
|
+
return this.EOF;
|
|
451
|
+
this._input || (this.done = !0);
|
|
452
|
+
var o, d, p, l;
|
|
453
|
+
this._more || (this.yytext = "", this.match = "");
|
|
454
|
+
for (var C = this._currentRules(), e = 0; e < C.length; e++)
|
|
455
|
+
if (p = this._input.match(this.rules[C[e]]), p && (!d || p[0].length > d[0].length)) {
|
|
456
|
+
if (d = p, l = e, this.options.backtrack_lexer) {
|
|
457
|
+
if (o = this.test_match(p, C[e]), o !== !1)
|
|
458
|
+
return o;
|
|
459
|
+
if (this._backtrack) {
|
|
460
|
+
d = !1;
|
|
461
|
+
continue;
|
|
462
|
+
} else
|
|
463
|
+
return !1;
|
|
464
|
+
} else if (!this.options.flex)
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
return d ? (o = this.test_match(d, C[l]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
468
|
+
` + this.showPosition(), {
|
|
469
|
+
text: "",
|
|
470
|
+
token: null,
|
|
471
|
+
line: this.yylineno
|
|
472
|
+
});
|
|
473
|
+
}, "next"),
|
|
474
|
+
// return next match that has a token
|
|
475
|
+
lex: /* @__PURE__ */ g(function() {
|
|
476
|
+
var d = this.next();
|
|
477
|
+
return d || this.lex();
|
|
478
|
+
}, "lex"),
|
|
479
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
480
|
+
begin: /* @__PURE__ */ g(function(d) {
|
|
481
|
+
this.conditionStack.push(d);
|
|
482
|
+
}, "begin"),
|
|
483
|
+
// pop the previously active lexer condition state off the condition stack
|
|
484
|
+
popState: /* @__PURE__ */ g(function() {
|
|
485
|
+
var d = this.conditionStack.length - 1;
|
|
486
|
+
return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
487
|
+
}, "popState"),
|
|
488
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
489
|
+
_currentRules: /* @__PURE__ */ g(function() {
|
|
490
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
491
|
+
}, "_currentRules"),
|
|
492
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
493
|
+
topState: /* @__PURE__ */ g(function(d) {
|
|
494
|
+
return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
|
|
495
|
+
}, "topState"),
|
|
496
|
+
// alias for begin(condition)
|
|
497
|
+
pushState: /* @__PURE__ */ g(function(d) {
|
|
498
|
+
this.begin(d);
|
|
499
|
+
}, "pushState"),
|
|
500
|
+
// return the number of states currently on the stack
|
|
501
|
+
stateStackSize: /* @__PURE__ */ g(function() {
|
|
502
|
+
return this.conditionStack.length;
|
|
503
|
+
}, "stateStackSize"),
|
|
504
|
+
options: {},
|
|
505
|
+
performAction: /* @__PURE__ */ g(function(d, p, l, C) {
|
|
506
|
+
switch (l) {
|
|
507
|
+
case 0:
|
|
508
|
+
return 62;
|
|
509
|
+
case 1:
|
|
510
|
+
return 63;
|
|
511
|
+
case 2:
|
|
512
|
+
return 64;
|
|
513
|
+
case 3:
|
|
514
|
+
return 65;
|
|
515
|
+
case 4:
|
|
516
|
+
break;
|
|
517
|
+
case 5:
|
|
518
|
+
break;
|
|
519
|
+
case 6:
|
|
520
|
+
return this.begin("acc_title"), 33;
|
|
521
|
+
case 7:
|
|
522
|
+
return this.popState(), "acc_title_value";
|
|
523
|
+
case 8:
|
|
524
|
+
return this.begin("acc_descr"), 35;
|
|
525
|
+
case 9:
|
|
526
|
+
return this.popState(), "acc_descr_value";
|
|
527
|
+
case 10:
|
|
528
|
+
this.begin("acc_descr_multiline");
|
|
529
|
+
break;
|
|
530
|
+
case 11:
|
|
531
|
+
this.popState();
|
|
532
|
+
break;
|
|
533
|
+
case 12:
|
|
534
|
+
return "acc_descr_multiline_value";
|
|
535
|
+
case 13:
|
|
536
|
+
return 8;
|
|
537
|
+
case 14:
|
|
538
|
+
break;
|
|
539
|
+
case 15:
|
|
540
|
+
return 7;
|
|
541
|
+
case 16:
|
|
542
|
+
return 7;
|
|
543
|
+
case 17:
|
|
544
|
+
return "EDGE_STATE";
|
|
545
|
+
case 18:
|
|
546
|
+
this.begin("callback_name");
|
|
547
|
+
break;
|
|
548
|
+
case 19:
|
|
549
|
+
this.popState();
|
|
550
|
+
break;
|
|
551
|
+
case 20:
|
|
552
|
+
this.popState(), this.begin("callback_args");
|
|
553
|
+
break;
|
|
554
|
+
case 21:
|
|
555
|
+
return 79;
|
|
556
|
+
case 22:
|
|
557
|
+
this.popState();
|
|
558
|
+
break;
|
|
559
|
+
case 23:
|
|
560
|
+
return 80;
|
|
561
|
+
case 24:
|
|
562
|
+
this.popState();
|
|
563
|
+
break;
|
|
564
|
+
case 25:
|
|
565
|
+
return "STR";
|
|
566
|
+
case 26:
|
|
567
|
+
this.begin("string");
|
|
568
|
+
break;
|
|
569
|
+
case 27:
|
|
570
|
+
return 82;
|
|
571
|
+
case 28:
|
|
572
|
+
return 57;
|
|
573
|
+
case 29:
|
|
574
|
+
return this.begin("namespace"), 42;
|
|
575
|
+
case 30:
|
|
576
|
+
return this.popState(), 8;
|
|
577
|
+
case 31:
|
|
578
|
+
break;
|
|
579
|
+
case 32:
|
|
580
|
+
return this.begin("namespace-body"), 39;
|
|
581
|
+
case 33:
|
|
582
|
+
this.popState(), this.less(0);
|
|
583
|
+
break;
|
|
584
|
+
case 34:
|
|
585
|
+
return this.popState(), 41;
|
|
586
|
+
case 35:
|
|
587
|
+
return "EOF_IN_STRUCT";
|
|
588
|
+
case 36:
|
|
589
|
+
return 8;
|
|
590
|
+
case 37:
|
|
591
|
+
break;
|
|
592
|
+
case 38:
|
|
593
|
+
return "EDGE_STATE";
|
|
594
|
+
case 39:
|
|
595
|
+
return this.begin("class"), 48;
|
|
596
|
+
case 40:
|
|
597
|
+
return this.popState(), 8;
|
|
598
|
+
case 41:
|
|
599
|
+
break;
|
|
600
|
+
case 42:
|
|
601
|
+
return this.popState(), this.popState(), 41;
|
|
602
|
+
case 43:
|
|
603
|
+
return this.begin("class-body"), 39;
|
|
604
|
+
case 44:
|
|
605
|
+
return this.popState(), 41;
|
|
606
|
+
case 45:
|
|
607
|
+
return "EOF_IN_STRUCT";
|
|
608
|
+
case 46:
|
|
609
|
+
return "EDGE_STATE";
|
|
610
|
+
case 47:
|
|
611
|
+
return "OPEN_IN_STRUCT";
|
|
612
|
+
case 48:
|
|
613
|
+
break;
|
|
614
|
+
case 49:
|
|
615
|
+
return "MEMBER";
|
|
616
|
+
case 50:
|
|
617
|
+
return 83;
|
|
618
|
+
case 51:
|
|
619
|
+
return 75;
|
|
620
|
+
case 52:
|
|
621
|
+
return 76;
|
|
622
|
+
case 53:
|
|
623
|
+
return 78;
|
|
624
|
+
case 54:
|
|
625
|
+
return 54;
|
|
626
|
+
case 55:
|
|
627
|
+
return 56;
|
|
628
|
+
case 56:
|
|
629
|
+
return 46;
|
|
630
|
+
case 57:
|
|
631
|
+
return 47;
|
|
632
|
+
case 58:
|
|
633
|
+
return 81;
|
|
634
|
+
case 59:
|
|
635
|
+
this.popState();
|
|
636
|
+
break;
|
|
637
|
+
case 60:
|
|
638
|
+
return "GENERICTYPE";
|
|
639
|
+
case 61:
|
|
640
|
+
this.begin("generic");
|
|
641
|
+
break;
|
|
642
|
+
case 62:
|
|
643
|
+
this.popState();
|
|
644
|
+
break;
|
|
645
|
+
case 63:
|
|
646
|
+
return "BQUOTE_STR";
|
|
647
|
+
case 64:
|
|
648
|
+
this.begin("bqstring");
|
|
649
|
+
break;
|
|
650
|
+
case 65:
|
|
651
|
+
return 77;
|
|
652
|
+
case 66:
|
|
653
|
+
return 77;
|
|
654
|
+
case 67:
|
|
655
|
+
return 77;
|
|
656
|
+
case 68:
|
|
657
|
+
return 77;
|
|
658
|
+
case 69:
|
|
659
|
+
return 69;
|
|
660
|
+
case 70:
|
|
661
|
+
return 69;
|
|
662
|
+
case 71:
|
|
663
|
+
return 71;
|
|
664
|
+
case 72:
|
|
665
|
+
return 71;
|
|
666
|
+
case 73:
|
|
667
|
+
return 70;
|
|
668
|
+
case 74:
|
|
669
|
+
return 68;
|
|
670
|
+
case 75:
|
|
671
|
+
return 72;
|
|
672
|
+
case 76:
|
|
673
|
+
return 73;
|
|
674
|
+
case 77:
|
|
675
|
+
return 74;
|
|
676
|
+
case 78:
|
|
677
|
+
return 22;
|
|
678
|
+
case 79:
|
|
679
|
+
return 44;
|
|
680
|
+
case 80:
|
|
681
|
+
return 100;
|
|
682
|
+
case 81:
|
|
683
|
+
return 18;
|
|
684
|
+
case 82:
|
|
685
|
+
return "PLUS";
|
|
686
|
+
case 83:
|
|
687
|
+
return 87;
|
|
688
|
+
case 84:
|
|
689
|
+
return 61;
|
|
690
|
+
case 85:
|
|
691
|
+
return 89;
|
|
692
|
+
case 86:
|
|
693
|
+
return 89;
|
|
694
|
+
case 87:
|
|
695
|
+
return 90;
|
|
696
|
+
case 88:
|
|
697
|
+
return "EQUALS";
|
|
698
|
+
case 89:
|
|
699
|
+
return "EQUALS";
|
|
700
|
+
case 90:
|
|
701
|
+
return 60;
|
|
702
|
+
case 91:
|
|
703
|
+
return 12;
|
|
704
|
+
case 92:
|
|
705
|
+
return 14;
|
|
706
|
+
case 93:
|
|
707
|
+
return "PUNCTUATION";
|
|
708
|
+
case 94:
|
|
709
|
+
return 86;
|
|
710
|
+
case 95:
|
|
711
|
+
return 102;
|
|
712
|
+
case 96:
|
|
713
|
+
return 50;
|
|
714
|
+
case 97:
|
|
715
|
+
return 50;
|
|
716
|
+
case 98:
|
|
717
|
+
return 9;
|
|
718
|
+
}
|
|
719
|
+
}, "anonymous"),
|
|
720
|
+
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)/, /^(?:$)/],
|
|
721
|
+
conditions: { "namespace-body": { rules: [26, 29, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 33, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, "class-body": { rules: [26, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, class: { rules: [26, 40, 41, 42, 43, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr: { rules: [9, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_title: { rules: [7, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, href: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, struct: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, generic: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, bqstring: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, string: { rules: [24, 25, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 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, 98], inclusive: !0 } }
|
|
722
|
+
};
|
|
723
|
+
return O;
|
|
724
|
+
}();
|
|
725
|
+
Le.lexer = Je;
|
|
726
|
+
function he() {
|
|
727
|
+
this.yy = {};
|
|
728
|
+
}
|
|
729
|
+
return g(he, "Parser"), he.prototype = Le, Le.Parser = he, new he();
|
|
730
|
+
}();
|
|
731
|
+
Pe.parser = Pe;
|
|
732
|
+
var _t = Pe, Xe = ["#", "+", "~", "-", ""], Y, qe = (Y = class {
|
|
733
|
+
constructor(i, a) {
|
|
734
|
+
this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
|
|
735
|
+
const r = mt(i, F());
|
|
736
|
+
this.parseMember(r);
|
|
737
|
+
}
|
|
738
|
+
getDisplayDetails() {
|
|
739
|
+
let i = this.visibility + z(this.id);
|
|
740
|
+
this.memberType === "method" && (i += `(${z(this.parameters.trim())})`, this.returnType && (i += " : " + z(this.returnType))), i = i.trim();
|
|
741
|
+
const a = this.parseClassifier();
|
|
742
|
+
return {
|
|
743
|
+
displayText: i,
|
|
744
|
+
cssStyle: a
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
parseMember(i) {
|
|
748
|
+
let a = "";
|
|
749
|
+
if (this.memberType === "method") {
|
|
750
|
+
const u = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
|
|
751
|
+
if (u) {
|
|
752
|
+
const h = u[1] ? u[1].trim() : "";
|
|
753
|
+
if (Xe.includes(h) && (this.visibility = h), this.id = u[2], this.parameters = u[3] ? u[3].trim() : "", a = u[4] ? u[4].trim() : "", this.returnType = u[5] ? u[5].trim() : "", a === "") {
|
|
754
|
+
const f = this.returnType.substring(this.returnType.length - 1);
|
|
755
|
+
/[$*]/.exec(f) && (a = f, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
} else {
|
|
759
|
+
const n = i.length, u = i.substring(0, 1), h = i.substring(n - 1);
|
|
760
|
+
Xe.includes(u) && (this.visibility = u), /[$*]/.exec(h) && (a = h), this.id = i.substring(
|
|
761
|
+
this.visibility === "" ? 0 : 1,
|
|
762
|
+
a === "" ? n : n - 1
|
|
763
|
+
);
|
|
764
|
+
}
|
|
765
|
+
this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
|
|
766
|
+
const r = `${this.visibility ? "\\" + this.visibility : ""}${z(this.id)}${this.memberType === "method" ? `(${z(this.parameters)})${this.returnType ? " : " + z(this.returnType) : ""}` : ""}`;
|
|
767
|
+
this.text = r.replaceAll("<", "<").replaceAll(">", ">"), this.text.startsWith("\\<") && (this.text = this.text.replace("\\<", "~"));
|
|
768
|
+
}
|
|
769
|
+
parseClassifier() {
|
|
770
|
+
switch (this.classifier) {
|
|
771
|
+
case "*":
|
|
772
|
+
return "font-style:italic;";
|
|
773
|
+
case "$":
|
|
774
|
+
return "text-decoration:underline;";
|
|
775
|
+
default:
|
|
776
|
+
return "";
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}, g(Y, "ClassMember"), Y), ge = "classId-", He = 0, M = /* @__PURE__ */ g((s) => I.sanitizeText(s, F()), "sanitizeText"), w, St = (w = class {
|
|
780
|
+
constructor() {
|
|
781
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.functions = [], this.lineType = {
|
|
782
|
+
LINE: 0,
|
|
783
|
+
DOTTED_LINE: 1
|
|
784
|
+
}, this.relationType = {
|
|
785
|
+
AGGREGATION: 0,
|
|
786
|
+
EXTENSION: 1,
|
|
787
|
+
COMPOSITION: 2,
|
|
788
|
+
DEPENDENCY: 3,
|
|
789
|
+
LOLLIPOP: 4
|
|
790
|
+
}, this.setupToolTips = /* @__PURE__ */ g((i) => {
|
|
791
|
+
const a = it();
|
|
792
|
+
fe(i).select("svg").selectAll("g").filter(function() {
|
|
793
|
+
return fe(this).attr("title") !== null;
|
|
794
|
+
}).on("mouseover", (u) => {
|
|
795
|
+
const h = fe(u.currentTarget), f = h.attr("title");
|
|
796
|
+
if (!f)
|
|
797
|
+
return;
|
|
798
|
+
const c = u.currentTarget.getBoundingClientRect();
|
|
799
|
+
a.transition().duration(200).style("opacity", ".9"), a.html(lt.sanitize(f)).style("left", `${window.scrollX + c.left + c.width / 2}px`).style("top", `${window.scrollY + c.bottom + 4}px`), h.classed("hover", !0);
|
|
800
|
+
}).on("mouseout", (u) => {
|
|
801
|
+
a.transition().duration(500).style("opacity", 0), fe(u.currentTarget).classed("hover", !1);
|
|
802
|
+
});
|
|
803
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = ct, this.getAccTitle = ot, this.setAccDescription = ht, this.getAccDescription = dt, this.setDiagramTitle = pt, this.getDiagramTitle = At, this.getConfig = /* @__PURE__ */ g(() => F().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.popNamespace = this.popNamespace.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);
|
|
804
|
+
}
|
|
805
|
+
splitClassNameAndType(i) {
|
|
806
|
+
const a = I.sanitizeText(i, F());
|
|
807
|
+
let r = "", n = a;
|
|
808
|
+
if (a.indexOf("~") > 0) {
|
|
809
|
+
const u = a.split("~");
|
|
810
|
+
n = M(u[0]), r = M(u[1]);
|
|
811
|
+
}
|
|
812
|
+
return { className: n, type: r };
|
|
813
|
+
}
|
|
814
|
+
setClassLabel(i, a) {
|
|
815
|
+
const r = I.sanitizeText(i, F());
|
|
816
|
+
a && (a = M(a));
|
|
817
|
+
const { className: n } = this.splitClassNameAndType(r);
|
|
818
|
+
this.classes.get(n).label = a, this.classes.get(n).text = `${a}${this.classes.get(n).type ? `<${this.classes.get(n).type}>` : ""}`;
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Function called by parser when a node definition has been found.
|
|
822
|
+
*
|
|
823
|
+
* @param id - ID of the class to add
|
|
824
|
+
* @public
|
|
825
|
+
*/
|
|
826
|
+
addClass(i) {
|
|
827
|
+
const a = I.sanitizeText(i, F()), { className: r, type: n } = this.splitClassNameAndType(a);
|
|
828
|
+
if (this.classes.has(r))
|
|
829
|
+
return;
|
|
830
|
+
const u = I.sanitizeText(r, F());
|
|
831
|
+
this.classes.set(u, {
|
|
832
|
+
id: u,
|
|
833
|
+
type: n,
|
|
834
|
+
label: u,
|
|
835
|
+
text: `${u}${n ? `<${n}>` : ""}`,
|
|
836
|
+
shape: "classBox",
|
|
837
|
+
cssClasses: "default",
|
|
838
|
+
methods: [],
|
|
839
|
+
members: [],
|
|
840
|
+
annotations: [],
|
|
841
|
+
styles: [],
|
|
842
|
+
domId: ge + u + "-" + He
|
|
843
|
+
}), He++;
|
|
844
|
+
}
|
|
845
|
+
addInterface(i, a) {
|
|
846
|
+
const r = {
|
|
847
|
+
id: `interface${this.interfaces.length}`,
|
|
848
|
+
label: i,
|
|
849
|
+
classId: a
|
|
850
|
+
};
|
|
851
|
+
this.interfaces.push(r);
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
|
|
855
|
+
* across multiple diagrams on the same page.
|
|
856
|
+
*/
|
|
857
|
+
setDiagramId(i) {
|
|
858
|
+
this.diagramId = i;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Function to lookup domId from id in the graph definition.
|
|
862
|
+
* When diagramId is set, returns the prefixed version for DOM uniqueness.
|
|
863
|
+
*
|
|
864
|
+
* @param id - class ID to lookup
|
|
865
|
+
* @public
|
|
866
|
+
*/
|
|
867
|
+
lookUpDomId(i) {
|
|
868
|
+
const a = I.sanitizeText(i, F());
|
|
869
|
+
if (this.classes.has(a)) {
|
|
870
|
+
const r = this.classes.get(a).domId;
|
|
871
|
+
return this.diagramId ? `${this.diagramId}-${r}` : r;
|
|
872
|
+
}
|
|
873
|
+
throw new Error("Class not found: " + a);
|
|
874
|
+
}
|
|
875
|
+
clear() {
|
|
876
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB", ft();
|
|
877
|
+
}
|
|
878
|
+
getClass(i) {
|
|
879
|
+
return this.classes.get(i);
|
|
880
|
+
}
|
|
881
|
+
getClasses() {
|
|
882
|
+
return this.classes;
|
|
883
|
+
}
|
|
884
|
+
getRelations() {
|
|
885
|
+
return this.relations;
|
|
886
|
+
}
|
|
887
|
+
getNote(i) {
|
|
888
|
+
const a = typeof i == "number" ? `note${i}` : i;
|
|
889
|
+
return this.notes.get(a);
|
|
890
|
+
}
|
|
891
|
+
getNotes() {
|
|
892
|
+
return this.notes;
|
|
893
|
+
}
|
|
894
|
+
addRelation(i) {
|
|
895
|
+
we.debug("Adding relation: " + JSON.stringify(i));
|
|
896
|
+
const a = [
|
|
897
|
+
this.relationType.LOLLIPOP,
|
|
898
|
+
this.relationType.AGGREGATION,
|
|
899
|
+
this.relationType.COMPOSITION,
|
|
900
|
+
this.relationType.DEPENDENCY,
|
|
901
|
+
this.relationType.EXTENSION
|
|
902
|
+
];
|
|
903
|
+
i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = I.sanitizeText(
|
|
904
|
+
i.relationTitle1.trim(),
|
|
905
|
+
F()
|
|
906
|
+
), i.relationTitle2 = I.sanitizeText(
|
|
907
|
+
i.relationTitle2.trim(),
|
|
908
|
+
F()
|
|
909
|
+
), this.relations.push(i);
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Adds an annotation to the specified class Annotations mark special properties of the given type
|
|
913
|
+
* (like 'interface' or 'service')
|
|
914
|
+
*
|
|
915
|
+
* @param className - The class name
|
|
916
|
+
* @param annotation - The name of the annotation without any brackets
|
|
917
|
+
* @public
|
|
918
|
+
*/
|
|
919
|
+
addAnnotation(i, a) {
|
|
920
|
+
const r = this.splitClassNameAndType(i).className;
|
|
921
|
+
this.classes.get(r).annotations.push(a);
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Adds a member to the specified class
|
|
925
|
+
*
|
|
926
|
+
* @param className - The class name
|
|
927
|
+
* @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
|
|
928
|
+
* treated as an annotation If the member is ending with a closing bracket ) it is treated as a
|
|
929
|
+
* method Otherwise the member will be treated as a normal property
|
|
930
|
+
* @public
|
|
931
|
+
*/
|
|
932
|
+
addMember(i, a) {
|
|
933
|
+
this.addClass(i);
|
|
934
|
+
const r = this.splitClassNameAndType(i).className, n = this.classes.get(r);
|
|
935
|
+
if (typeof a == "string") {
|
|
936
|
+
const u = a.trim();
|
|
937
|
+
u.startsWith("<<") && u.endsWith(">>") ? n.annotations.push(M(u.substring(2, u.length - 2))) : u.indexOf(")") > 0 ? n.methods.push(new qe(u, "method")) : u && n.members.push(new qe(u, "attribute"));
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
addMembers(i, a) {
|
|
941
|
+
Array.isArray(a) && (a.reverse(), a.forEach((r) => this.addMember(i, r)));
|
|
942
|
+
}
|
|
943
|
+
addNote(i, a) {
|
|
944
|
+
const r = this.notes.size, n = {
|
|
945
|
+
id: `note${r}`,
|
|
946
|
+
class: a,
|
|
947
|
+
text: i,
|
|
948
|
+
index: r
|
|
949
|
+
};
|
|
950
|
+
return this.notes.set(n.id, n), n.id;
|
|
951
|
+
}
|
|
952
|
+
cleanupLabel(i) {
|
|
953
|
+
return i.startsWith(":") && (i = i.substring(1)), M(i.trim());
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Called by parser when assigning cssClass to a class
|
|
957
|
+
*
|
|
958
|
+
* @param ids - Comma separated list of ids
|
|
959
|
+
* @param className - Class to add
|
|
960
|
+
*/
|
|
961
|
+
setCssClass(i, a) {
|
|
962
|
+
i.split(",").forEach((r) => {
|
|
963
|
+
let n = r;
|
|
964
|
+
/\d/.exec(r[0]) && (n = ge + n);
|
|
965
|
+
const u = this.classes.get(n);
|
|
966
|
+
u && (u.cssClasses += " " + a);
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
defineClass(i, a) {
|
|
970
|
+
for (const r of i) {
|
|
971
|
+
let n = this.styleClasses.get(r);
|
|
972
|
+
n === void 0 && (n = { id: r, styles: [], textStyles: [] }, this.styleClasses.set(r, n)), a && a.forEach((u) => {
|
|
973
|
+
if (/color/.exec(u)) {
|
|
974
|
+
const h = u.replace("fill", "bgFill");
|
|
975
|
+
n.textStyles.push(h);
|
|
976
|
+
}
|
|
977
|
+
n.styles.push(u);
|
|
978
|
+
}), this.classes.forEach((u) => {
|
|
979
|
+
u.cssClasses.includes(r) && u.styles.push(...a.flatMap((h) => h.split(",")));
|
|
980
|
+
});
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Called by parser when a tooltip is found, e.g. a clickable element.
|
|
985
|
+
*
|
|
986
|
+
* @param ids - Comma separated list of ids
|
|
987
|
+
* @param tooltip - Tooltip to add
|
|
988
|
+
*/
|
|
989
|
+
setTooltip(i, a) {
|
|
990
|
+
i.split(",").forEach((r) => {
|
|
991
|
+
a !== void 0 && (this.classes.get(r).tooltip = M(a));
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
getTooltip(i, a) {
|
|
995
|
+
return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* Called by parser when a link is found. Adds the URL to the vertex data.
|
|
999
|
+
*
|
|
1000
|
+
* @param ids - Comma separated list of ids
|
|
1001
|
+
* @param linkStr - URL to create a link for
|
|
1002
|
+
* @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
|
|
1003
|
+
*/
|
|
1004
|
+
setLink(i, a, r) {
|
|
1005
|
+
const n = F();
|
|
1006
|
+
i.split(",").forEach((u) => {
|
|
1007
|
+
let h = u;
|
|
1008
|
+
/\d/.exec(u[0]) && (h = ge + h);
|
|
1009
|
+
const f = this.classes.get(h);
|
|
1010
|
+
f && (f.link = Ve.formatUrl(a, n), n.securityLevel === "sandbox" ? f.linkTarget = "_top" : typeof r == "string" ? f.linkTarget = M(r) : f.linkTarget = "_blank");
|
|
1011
|
+
}), this.setCssClass(i, "clickable");
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Called by parser when a click definition is found. Registers an event handler.
|
|
1015
|
+
*
|
|
1016
|
+
* @param ids - Comma separated list of ids
|
|
1017
|
+
* @param functionName - Function to be called on click
|
|
1018
|
+
* @param functionArgs - Function args the function should be called with
|
|
1019
|
+
*/
|
|
1020
|
+
setClickEvent(i, a, r) {
|
|
1021
|
+
i.split(",").forEach((n) => {
|
|
1022
|
+
this.setClickFunc(n, a, r), this.classes.get(n).haveCallback = !0;
|
|
1023
|
+
}), this.setCssClass(i, "clickable");
|
|
1024
|
+
}
|
|
1025
|
+
setClickFunc(i, a, r) {
|
|
1026
|
+
const n = I.sanitizeText(i, F());
|
|
1027
|
+
if (F().securityLevel !== "loose" || a === void 0)
|
|
1028
|
+
return;
|
|
1029
|
+
const h = n;
|
|
1030
|
+
if (this.classes.has(h)) {
|
|
1031
|
+
let f = [];
|
|
1032
|
+
if (typeof r == "string") {
|
|
1033
|
+
f = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
1034
|
+
for (let c = 0; c < f.length; c++) {
|
|
1035
|
+
let m = f[c].trim();
|
|
1036
|
+
m.startsWith('"') && m.endsWith('"') && (m = m.substr(1, m.length - 2)), f[c] = m;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
f.length === 0 && f.push(h), this.functions.push(() => {
|
|
1040
|
+
const c = this.lookUpDomId(h), m = document.querySelector(`[id="${c}"]`);
|
|
1041
|
+
m !== null && m.addEventListener(
|
|
1042
|
+
"click",
|
|
1043
|
+
() => {
|
|
1044
|
+
Ve.runFunc(a, ...f);
|
|
1045
|
+
},
|
|
1046
|
+
!1
|
|
1047
|
+
);
|
|
1048
|
+
});
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
bindFunctions(i) {
|
|
1052
|
+
this.functions.forEach((a) => {
|
|
1053
|
+
a(i);
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
// Utility function to escape HTML meta-characters
|
|
1057
|
+
escapeHtml(i) {
|
|
1058
|
+
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1059
|
+
}
|
|
1060
|
+
getDirection() {
|
|
1061
|
+
return this.direction;
|
|
1062
|
+
}
|
|
1063
|
+
setDirection(i) {
|
|
1064
|
+
this.direction = i;
|
|
1065
|
+
}
|
|
1066
|
+
static resolveQualifiedId(i, a) {
|
|
1067
|
+
const r = a.at(-1);
|
|
1068
|
+
return r ? `${r}.${i}` : i;
|
|
1069
|
+
}
|
|
1070
|
+
static getAncestorIds(i) {
|
|
1071
|
+
const a = i.split("."), r = new Array(a.length);
|
|
1072
|
+
r[0] = a[0];
|
|
1073
|
+
for (let n = 1; n < a.length; n++)
|
|
1074
|
+
r[n] = `${r[n - 1]}.${a[n]}`;
|
|
1075
|
+
return r;
|
|
1076
|
+
}
|
|
1077
|
+
createNamespaceNode(i, a, r, n = !1) {
|
|
1078
|
+
return {
|
|
1079
|
+
id: i,
|
|
1080
|
+
label: a,
|
|
1081
|
+
classes: /* @__PURE__ */ new Map(),
|
|
1082
|
+
notes: /* @__PURE__ */ new Map(),
|
|
1083
|
+
children: /* @__PURE__ */ new Map(),
|
|
1084
|
+
domId: ge + i + "-" + this.namespaceCounter++,
|
|
1085
|
+
parent: r,
|
|
1086
|
+
explicit: n
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
linkParentChild(i, a) {
|
|
1090
|
+
const r = this.namespaces.get(i), n = this.namespaces.get(a);
|
|
1091
|
+
!r || !n || (r.children.has(a) || r.children.set(a, n), n.parent ?? (n.parent = i));
|
|
1092
|
+
}
|
|
1093
|
+
addNamespace(i, a) {
|
|
1094
|
+
const r = w.resolveQualifiedId(i, this.namespaceStack);
|
|
1095
|
+
if (this.namespaceStack.push(r), this.namespaces.has(r)) {
|
|
1096
|
+
const h = this.namespaces.get(r);
|
|
1097
|
+
return h.explicit = !0, a && (h.label = a), r;
|
|
1098
|
+
}
|
|
1099
|
+
const n = r.split("."), u = w.getAncestorIds(r);
|
|
1100
|
+
for (let h = 0; h < u.length; h++) {
|
|
1101
|
+
const f = u[h], c = h > 0 ? u[h - 1] : void 0, m = h === u.length - 1, B = m && a ? a : n[h];
|
|
1102
|
+
this.namespaces.has(f) ? m && (this.namespaces.get(f).explicit = !0) : this.namespaces.set(
|
|
1103
|
+
f,
|
|
1104
|
+
this.createNamespaceNode(f, B, c, m)
|
|
1105
|
+
), c && this.linkParentChild(c, f);
|
|
1106
|
+
}
|
|
1107
|
+
return r;
|
|
1108
|
+
}
|
|
1109
|
+
popNamespace() {
|
|
1110
|
+
this.namespaceStack.pop();
|
|
1111
|
+
}
|
|
1112
|
+
getNamespace(i) {
|
|
1113
|
+
return this.namespaces.get(i);
|
|
1114
|
+
}
|
|
1115
|
+
getNamespaces() {
|
|
1116
|
+
return this.namespaces;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Function called by parser when a namespace definition has been found.
|
|
1120
|
+
*
|
|
1121
|
+
* @param id - ID of the namespace to add
|
|
1122
|
+
* @param classNames - IDs of the class to add
|
|
1123
|
+
* @param noteNames - IDs of the notes to add
|
|
1124
|
+
* @public
|
|
1125
|
+
*/
|
|
1126
|
+
addClassesToNamespace(i, a, r) {
|
|
1127
|
+
if (this.namespaces.has(i)) {
|
|
1128
|
+
for (const n of a) {
|
|
1129
|
+
const { className: u } = this.splitClassNameAndType(n), h = this.getClass(u);
|
|
1130
|
+
h.parent = i, this.namespaces.get(i).classes.set(u, h);
|
|
1131
|
+
}
|
|
1132
|
+
for (const n of r) {
|
|
1133
|
+
const u = this.getNote(n);
|
|
1134
|
+
u.parent = i, this.namespaces.get(i).notes.set(n, u);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
setCssStyle(i, a) {
|
|
1139
|
+
const r = this.classes.get(i);
|
|
1140
|
+
if (!(!a || !r))
|
|
1141
|
+
for (const n of a)
|
|
1142
|
+
n.includes(",") ? r.styles.push(...n.split(",")) : r.styles.push(n);
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Gets the arrow marker for a type index
|
|
1146
|
+
*
|
|
1147
|
+
* @param type - The type to look for
|
|
1148
|
+
* @returns The arrow marker
|
|
1149
|
+
*/
|
|
1150
|
+
getArrowMarker(i) {
|
|
1151
|
+
let a;
|
|
1152
|
+
switch (i) {
|
|
1153
|
+
case 0:
|
|
1154
|
+
a = "aggregation";
|
|
1155
|
+
break;
|
|
1156
|
+
case 1:
|
|
1157
|
+
a = "extension";
|
|
1158
|
+
break;
|
|
1159
|
+
case 2:
|
|
1160
|
+
a = "composition";
|
|
1161
|
+
break;
|
|
1162
|
+
case 3:
|
|
1163
|
+
a = "dependency";
|
|
1164
|
+
break;
|
|
1165
|
+
case 4:
|
|
1166
|
+
a = "lollipop";
|
|
1167
|
+
break;
|
|
1168
|
+
default:
|
|
1169
|
+
a = "none";
|
|
1170
|
+
}
|
|
1171
|
+
return a;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Walks up the namespace tree from the given id and returns the nearest ancestor
|
|
1175
|
+
* (or the id itself) that is marked as explicit. Used by compact rendering mode
|
|
1176
|
+
* to reassign children to the nearest user-declared namespace.
|
|
1177
|
+
*/
|
|
1178
|
+
resolveExplicitAncestor(i) {
|
|
1179
|
+
let a = i;
|
|
1180
|
+
for (; a; ) {
|
|
1181
|
+
const r = this.namespaces.get(a);
|
|
1182
|
+
if (!r)
|
|
1183
|
+
return;
|
|
1184
|
+
if (r.explicit)
|
|
1185
|
+
return a;
|
|
1186
|
+
a = r.parent;
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
getData() {
|
|
1190
|
+
var h, f;
|
|
1191
|
+
const i = [], a = [], r = F(), n = ((h = r.class) == null ? void 0 : h.hierarchicalNamespaces) ?? !0;
|
|
1192
|
+
for (const c of this.namespaces.values()) {
|
|
1193
|
+
if (!n && !c.explicit)
|
|
1194
|
+
continue;
|
|
1195
|
+
const m = {
|
|
1196
|
+
id: c.id,
|
|
1197
|
+
label: n ? c.label : c.id,
|
|
1198
|
+
isGroup: !0,
|
|
1199
|
+
padding: r.class.padding ?? 16,
|
|
1200
|
+
// parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
|
|
1201
|
+
shape: "rect",
|
|
1202
|
+
cssStyles: [],
|
|
1203
|
+
look: r.look,
|
|
1204
|
+
parentId: n ? c.parent : void 0
|
|
1205
|
+
};
|
|
1206
|
+
i.push(m);
|
|
1207
|
+
}
|
|
1208
|
+
for (const c of this.classes.values()) {
|
|
1209
|
+
const m = n ? c.parent : this.resolveExplicitAncestor(c.parent), B = {
|
|
1210
|
+
...c,
|
|
1211
|
+
type: void 0,
|
|
1212
|
+
isGroup: !1,
|
|
1213
|
+
parentId: m,
|
|
1214
|
+
look: r.look
|
|
1215
|
+
};
|
|
1216
|
+
i.push(B);
|
|
1217
|
+
}
|
|
1218
|
+
for (const c of this.notes.values()) {
|
|
1219
|
+
const m = n ? c.parent : this.resolveExplicitAncestor(c.parent), B = {
|
|
1220
|
+
id: c.id,
|
|
1221
|
+
label: c.text,
|
|
1222
|
+
isGroup: !1,
|
|
1223
|
+
shape: "note",
|
|
1224
|
+
padding: r.class.padding ?? 6,
|
|
1225
|
+
cssStyles: [
|
|
1226
|
+
"text-align: left",
|
|
1227
|
+
"white-space: nowrap",
|
|
1228
|
+
`fill: ${r.themeVariables.noteBkgColor}`,
|
|
1229
|
+
`stroke: ${r.themeVariables.noteBorderColor}`
|
|
1230
|
+
],
|
|
1231
|
+
look: r.look,
|
|
1232
|
+
parentId: m,
|
|
1233
|
+
labelType: "markdown"
|
|
1234
|
+
};
|
|
1235
|
+
i.push(B);
|
|
1236
|
+
const R = (f = this.classes.get(c.class)) == null ? void 0 : f.id;
|
|
1237
|
+
if (R) {
|
|
1238
|
+
const b = {
|
|
1239
|
+
id: `edgeNote${c.index}`,
|
|
1240
|
+
start: c.id,
|
|
1241
|
+
end: R,
|
|
1242
|
+
type: "normal",
|
|
1243
|
+
thickness: "normal",
|
|
1244
|
+
classes: "relation",
|
|
1245
|
+
arrowTypeStart: "none",
|
|
1246
|
+
arrowTypeEnd: "none",
|
|
1247
|
+
arrowheadStyle: "",
|
|
1248
|
+
labelStyle: [""],
|
|
1249
|
+
style: ["fill: none"],
|
|
1250
|
+
pattern: "dotted",
|
|
1251
|
+
look: r.look
|
|
1252
|
+
};
|
|
1253
|
+
a.push(b);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
for (const c of this.interfaces) {
|
|
1257
|
+
const m = {
|
|
1258
|
+
id: c.id,
|
|
1259
|
+
label: c.label,
|
|
1260
|
+
isGroup: !1,
|
|
1261
|
+
shape: "rect",
|
|
1262
|
+
cssStyles: ["opacity: 0;"],
|
|
1263
|
+
look: r.look
|
|
1264
|
+
};
|
|
1265
|
+
i.push(m);
|
|
1266
|
+
}
|
|
1267
|
+
let u = 0;
|
|
1268
|
+
for (const c of this.relations) {
|
|
1269
|
+
u++;
|
|
1270
|
+
const m = {
|
|
1271
|
+
id: gt(c.id1, c.id2, {
|
|
1272
|
+
prefix: "id",
|
|
1273
|
+
counter: u
|
|
1274
|
+
}),
|
|
1275
|
+
start: c.id1,
|
|
1276
|
+
end: c.id2,
|
|
1277
|
+
type: "normal",
|
|
1278
|
+
label: c.title,
|
|
1279
|
+
labelpos: "c",
|
|
1280
|
+
thickness: "normal",
|
|
1281
|
+
classes: "relation",
|
|
1282
|
+
arrowTypeStart: this.getArrowMarker(c.relation.type1),
|
|
1283
|
+
arrowTypeEnd: this.getArrowMarker(c.relation.type2),
|
|
1284
|
+
startLabelRight: c.relationTitle1 === "none" ? "" : c.relationTitle1,
|
|
1285
|
+
endLabelLeft: c.relationTitle2 === "none" ? "" : c.relationTitle2,
|
|
1286
|
+
arrowheadStyle: "",
|
|
1287
|
+
labelStyle: ["display: inline-block"],
|
|
1288
|
+
style: c.style || "",
|
|
1289
|
+
pattern: c.relation.lineType == 1 ? "dashed" : "solid",
|
|
1290
|
+
look: r.look,
|
|
1291
|
+
labelType: "markdown"
|
|
1292
|
+
};
|
|
1293
|
+
a.push(m);
|
|
1294
|
+
}
|
|
1295
|
+
return { nodes: i, edges: a, other: {}, config: r, direction: this.getDirection() };
|
|
1296
|
+
}
|
|
1297
|
+
}, g(w, "ClassDB"), w), Ct = /* @__PURE__ */ g((s) => `g.classGroup text {
|
|
1298
|
+
fill: ${s.nodeBorder || s.classText};
|
|
1299
|
+
stroke: none;
|
|
1300
|
+
font-family: ${s.fontFamily};
|
|
1301
|
+
font-size: 10px;
|
|
1302
|
+
|
|
1303
|
+
.title {
|
|
1304
|
+
font-weight: bolder;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
.cluster-label text {
|
|
1310
|
+
fill: ${s.titleColor};
|
|
1311
|
+
}
|
|
1312
|
+
.cluster-label span {
|
|
1313
|
+
color: ${s.titleColor};
|
|
1314
|
+
}
|
|
1315
|
+
.cluster-label span p {
|
|
1316
|
+
background-color: transparent;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.cluster rect {
|
|
1320
|
+
fill: ${s.clusterBkg};
|
|
1321
|
+
stroke: ${s.clusterBorder};
|
|
1322
|
+
stroke-width: 1px;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
.cluster text {
|
|
1326
|
+
fill: ${s.titleColor};
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.cluster span {
|
|
1330
|
+
color: ${s.titleColor};
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.nodeLabel, .edgeLabel {
|
|
1334
|
+
color: ${s.classText};
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
1338
|
+
color: ${s.noteTextColor};
|
|
1339
|
+
}
|
|
1340
|
+
.edgeLabel .label rect {
|
|
1341
|
+
fill: ${s.mainBkg};
|
|
1342
|
+
}
|
|
1343
|
+
.label text {
|
|
1344
|
+
fill: ${s.classText};
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.labelBkg {
|
|
1348
|
+
background: ${s.mainBkg};
|
|
1349
|
+
}
|
|
1350
|
+
.edgeLabel .label span {
|
|
1351
|
+
background: ${s.mainBkg};
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.classTitle {
|
|
1355
|
+
font-weight: bolder;
|
|
1356
|
+
}
|
|
1357
|
+
.node rect,
|
|
1358
|
+
.node circle,
|
|
1359
|
+
.node ellipse,
|
|
1360
|
+
.node polygon,
|
|
1361
|
+
.node path {
|
|
1362
|
+
fill: ${s.mainBkg};
|
|
1363
|
+
stroke: ${s.nodeBorder};
|
|
1364
|
+
stroke-width: ${s.strokeWidth};
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
.divider {
|
|
1369
|
+
stroke: ${s.nodeBorder};
|
|
1370
|
+
stroke-width: 1;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
g.clickable {
|
|
1374
|
+
cursor: pointer;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
g.classGroup rect {
|
|
1378
|
+
fill: ${s.mainBkg};
|
|
1379
|
+
stroke: ${s.nodeBorder};
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
g.classGroup line {
|
|
1383
|
+
stroke: ${s.nodeBorder};
|
|
1384
|
+
stroke-width: 1;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.classLabel .box {
|
|
1388
|
+
stroke: none;
|
|
1389
|
+
stroke-width: 0;
|
|
1390
|
+
fill: ${s.mainBkg};
|
|
1391
|
+
opacity: 0.5;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
.classLabel .label {
|
|
1395
|
+
fill: ${s.nodeBorder};
|
|
1396
|
+
font-size: 10px;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
.relation {
|
|
1400
|
+
stroke: ${s.lineColor};
|
|
1401
|
+
stroke-width: ${s.strokeWidth};
|
|
1402
|
+
fill: none;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.dashed-line{
|
|
1406
|
+
stroke-dasharray: 3;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
.dotted-line{
|
|
1410
|
+
stroke-dasharray: 1 2;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
[id$="-compositionStart"], .composition {
|
|
1414
|
+
fill: ${s.lineColor} !important;
|
|
1415
|
+
stroke: ${s.lineColor} !important;
|
|
1416
|
+
stroke-width: 1;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
[id$="-compositionEnd"], .composition {
|
|
1420
|
+
fill: ${s.lineColor} !important;
|
|
1421
|
+
stroke: ${s.lineColor} !important;
|
|
1422
|
+
stroke-width: 1;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
[id$="-dependencyStart"], .dependency {
|
|
1426
|
+
fill: ${s.lineColor} !important;
|
|
1427
|
+
stroke: ${s.lineColor} !important;
|
|
1428
|
+
stroke-width: 1;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
[id$="-dependencyEnd"], .dependency {
|
|
1432
|
+
fill: ${s.lineColor} !important;
|
|
1433
|
+
stroke: ${s.lineColor} !important;
|
|
1434
|
+
stroke-width: 1;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
[id$="-extensionStart"], .extension {
|
|
1438
|
+
fill: transparent !important;
|
|
1439
|
+
stroke: ${s.lineColor} !important;
|
|
1440
|
+
stroke-width: 1;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
[id$="-extensionEnd"], .extension {
|
|
1444
|
+
fill: transparent !important;
|
|
1445
|
+
stroke: ${s.lineColor} !important;
|
|
1446
|
+
stroke-width: 1;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
[id$="-aggregationStart"], .aggregation {
|
|
1450
|
+
fill: transparent !important;
|
|
1451
|
+
stroke: ${s.lineColor} !important;
|
|
1452
|
+
stroke-width: 1;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
[id$="-aggregationEnd"], .aggregation {
|
|
1456
|
+
fill: transparent !important;
|
|
1457
|
+
stroke: ${s.lineColor} !important;
|
|
1458
|
+
stroke-width: 1;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
[id$="-lollipopStart"], .lollipop {
|
|
1462
|
+
fill: ${s.mainBkg} !important;
|
|
1463
|
+
stroke: ${s.lineColor} !important;
|
|
1464
|
+
stroke-width: 1;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
[id$="-lollipopEnd"], .lollipop {
|
|
1468
|
+
fill: ${s.mainBkg} !important;
|
|
1469
|
+
stroke: ${s.lineColor} !important;
|
|
1470
|
+
stroke-width: 1;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
.edgeTerminals {
|
|
1474
|
+
font-size: 11px;
|
|
1475
|
+
line-height: initial;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
.classTitleText {
|
|
1479
|
+
text-anchor: middle;
|
|
1480
|
+
font-size: 18px;
|
|
1481
|
+
fill: ${s.textColor};
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
.edgeLabel[data-look="neo"] {
|
|
1485
|
+
background-color: ${s.edgeLabelBackground};
|
|
1486
|
+
p {
|
|
1487
|
+
background-color: ${s.edgeLabelBackground};
|
|
1488
|
+
}
|
|
1489
|
+
rect {
|
|
1490
|
+
opacity: 0.5;
|
|
1491
|
+
background-color: ${s.edgeLabelBackground};
|
|
1492
|
+
fill: ${s.edgeLabelBackground};
|
|
1493
|
+
}
|
|
1494
|
+
text-align: center;
|
|
1495
|
+
}
|
|
1496
|
+
${st()}
|
|
1497
|
+
`, "getStyles"), Nt = Ct, bt = /* @__PURE__ */ g((s, i = "TB") => {
|
|
1498
|
+
if (!s.doc)
|
|
1499
|
+
return i;
|
|
1500
|
+
let a = i;
|
|
1501
|
+
for (const r of s.doc)
|
|
1502
|
+
r.stmt === "dir" && (a = r.value);
|
|
1503
|
+
return a;
|
|
1504
|
+
}, "getDir"), kt = /* @__PURE__ */ g(function(s, i) {
|
|
1505
|
+
return i.db.getClasses();
|
|
1506
|
+
}, "getClasses"), Et = /* @__PURE__ */ g(async function(s, i, a, r) {
|
|
1507
|
+
we.info("REF0:"), we.info("Drawing class diagram (v3)", i);
|
|
1508
|
+
const { securityLevel: n, state: u, layout: h } = F();
|
|
1509
|
+
r.db.setDiagramId(i);
|
|
1510
|
+
const f = r.db.getData(), c = at(i, n);
|
|
1511
|
+
f.type = r.type, f.layoutAlgorithm = nt(h), f.nodeSpacing = (u == null ? void 0 : u.nodeSpacing) || 50, f.rankSpacing = (u == null ? void 0 : u.rankSpacing) || 50, f.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], f.diagramId = i, await ut(f, c);
|
|
1512
|
+
const m = 8;
|
|
1513
|
+
Ve.insertTitle(
|
|
1514
|
+
c,
|
|
1515
|
+
"classDiagramTitleText",
|
|
1516
|
+
(u == null ? void 0 : u.titleTopMargin) ?? 25,
|
|
1517
|
+
r.db.getDiagramTitle()
|
|
1518
|
+
), rt(c, m, "classDiagram", (u == null ? void 0 : u.useMaxWidth) ?? !0);
|
|
1519
|
+
}, "draw"), Lt = {
|
|
1520
|
+
getClasses: kt,
|
|
1521
|
+
draw: Et,
|
|
1522
|
+
getDir: bt
|
|
1523
|
+
};
|
|
1524
|
+
export {
|
|
1525
|
+
St as C,
|
|
1526
|
+
Lt as a,
|
|
1527
|
+
_t as c,
|
|
1528
|
+
Nt as s
|
|
1529
|
+
};
|