@aidapt/caity-chat 3.0.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 +73 -0
- package/dist/lib/_baseUniq-BVCT-t6P.js +477 -0
- package/dist/lib/arc-Kj6ZmwPS.js +83 -0
- package/dist/lib/architectureDiagram-Q4EWVU46-DA4kYaz_.js +4690 -0
- package/dist/lib/blockDiagram-DXYQGD6D-BWT5yya1.js +2295 -0
- package/dist/lib/c4Diagram-AHTNJAMY-BjY6DW3U.js +1577 -0
- package/dist/lib/caity-chat.tgz +0 -0
- package/dist/lib/channel-BjraetTo.js +5 -0
- package/dist/lib/chunk-4BX2VUAB-iSPZGgxQ.js +8 -0
- package/dist/lib/chunk-4TB4RGXK-DvnUcLoe.js +1465 -0
- package/dist/lib/chunk-55IACEB6-Mw25YX9j.js +8 -0
- package/dist/lib/chunk-EDXVE4YY-Dtbxz7df.js +19 -0
- package/dist/lib/chunk-FMBD7UC4-OCIy3top.js +19 -0
- package/dist/lib/chunk-OYMX7WX6-DFW9El2C.js +1383 -0
- package/dist/lib/chunk-QZHKN3VN-BYFTfk7k.js +15 -0
- package/dist/lib/chunk-YZCP3GAM-Cs-HTcyJ.js +68 -0
- package/dist/lib/classDiagram-6PBFFD2Q-CrDUlIYr.js +16 -0
- package/dist/lib/classDiagram-v2-HSJHXN6E-CrDUlIYr.js +16 -0
- package/dist/lib/clone-C0qEGPCz.js +8 -0
- package/dist/lib/cose-bilkent-S5V4N54A-H1-YbKvI.js +2609 -0
- package/dist/lib/cytoscape.esm-D_3MZVO6.js +18707 -0
- package/dist/lib/dagre-KV5264BT-DhEnTJ4D.js +443 -0
- package/dist/lib/defaultLocale-BgPVtth8.js +171 -0
- package/dist/lib/diagram-5BDNPKRD-CK6wgKxI.js +123 -0
- package/dist/lib/diagram-G4DWMVQ6-IhA_MJ0t.js +528 -0
- package/dist/lib/diagram-MMDJMWI5-DDuA1rYY.js +217 -0
- package/dist/lib/diagram-TYMM5635-_VI1en0S.js +142 -0
- package/dist/lib/erDiagram-SMLLAGMA-B1REwW7y.js +899 -0
- package/dist/lib/flowDiagram-DWJPFMVM-rWzOGDlg.js +1628 -0
- package/dist/lib/ganttDiagram-T4ZO3ILL-UhSvbAmM.js +2701 -0
- package/dist/lib/gitGraphDiagram-UUTBAWPF-DrsSMMoJ.js +815 -0
- package/dist/lib/graph-DMr8NrNW.js +738 -0
- package/dist/lib/index.d.ts +665 -0
- package/dist/lib/index.js +52 -0
- package/dist/lib/infoDiagram-42DDH7IO-CPF3XCNj.js +24 -0
- package/dist/lib/init-DjUOC4st.js +16 -0
- package/dist/lib/ishikawaDiagram-UXIWVN3A-B4Nt1TdW.js +621 -0
- package/dist/lib/journeyDiagram-VCZTEJTY-DW5yRsOM.js +834 -0
- package/dist/lib/kanban-definition-6JOO6SKY-5DmJRubo.js +724 -0
- package/dist/lib/layout-B00IQLgh.js +1441 -0
- package/dist/lib/linear-LLab47WO.js +259 -0
- package/dist/lib/main-C9dvh9CT.js +88771 -0
- package/dist/lib/mermaid.core-BrBkhL9h.js +15967 -0
- package/dist/lib/min-CJFyJhXg.js +38 -0
- package/dist/lib/mindmap-definition-QFDTVHPH-doqZCFNi.js +833 -0
- package/dist/lib/ordinal-B6-f3MAq.js +61 -0
- package/dist/lib/pieDiagram-DEJITSTG-DKi5GKup.js +163 -0
- package/dist/lib/quadrantDiagram-34T5L4WZ-COYWmEhy.js +1022 -0
- package/dist/lib/requirementDiagram-MS252O5E-D3odK6YH.js +882 -0
- package/dist/lib/sankeyDiagram-XADWPNL6-D36eaMCx.js +810 -0
- package/dist/lib/sequenceDiagram-FGHM5R23-NpESTwMk.js +2883 -0
- package/dist/lib/standalone.js +4 -0
- package/dist/lib/stateDiagram-FHFEXIEX-kXZ_Bn-a.js +263 -0
- package/dist/lib/stateDiagram-v2-QKLJ7IA2-B5xMdEuE.js +16 -0
- package/dist/lib/timeline-definition-GMOUNBTQ-DZDdcJwy.js +1055 -0
- package/dist/lib/vennDiagram-DHZGUBPP-Clhb6EGF.js +1557 -0
- package/dist/lib/wardley-RL74JXVD-CwSnyVu7.js +18396 -0
- package/dist/lib/wardleyDiagram-NUSXRM2D-DnXL4F04.js +594 -0
- package/dist/lib/xychartDiagram-5P7HB3ND-CweIkrg3.js +1342 -0
- package/package.json +95 -0
- package/src/types/caity-chat.d.ts +213 -0
- package/src/types/template-slots.d.ts +167 -0
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
import { g as Bt } from "./chunk-55IACEB6-Mw25YX9j.js";
|
|
2
|
+
import { s as Ft } from "./chunk-EDXVE4YY-Dtbxz7df.js";
|
|
3
|
+
import { _ as d, b as Yt, a as Pt, s as zt, g as Gt, p as Kt, q as Ut, c as rt, l as V, z as Zt, x as jt, B as Wt, C as Qt, o as Xt, r as Ht, d as qt, u as Jt } from "./mermaid.core-BrBkhL9h.js";
|
|
4
|
+
import { c as $t } from "./channel-BjraetTo.js";
|
|
5
|
+
var gt = (function() {
|
|
6
|
+
var s = /* @__PURE__ */ d(function(C, n, a, o) {
|
|
7
|
+
for (a = a || {}, o = C.length; o--; a[C[o]] = n) ;
|
|
8
|
+
return a;
|
|
9
|
+
}, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52], c = [1, 10], h = [1, 11], l = [1, 12], f = [1, 13], y = [1, 23], u = [1, 24], m = [1, 25], W = [1, 26], Q = [1, 27], T = [1, 19], X = [1, 28], B = [1, 29], D = [1, 20], I = [1, 18], S = [1, 21], R = [1, 22], at = [1, 36], ct = [1, 37], ot = [1, 38], lt = [1, 39], ht = [1, 40], F = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 48, 50, 51, 52, 65, 66, 67, 68, 69], O = [1, 45], N = [1, 46], Y = [1, 55], P = [40, 48, 50, 51, 52, 70, 71], z = [1, 66], G = [1, 64], A = [1, 61], K = [1, 65], U = [1, 67], H = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 65, 66, 67, 68, 69], bt = [65, 66, 67, 68, 69], kt = [1, 84], mt = [1, 83], Et = [1, 81], Tt = [1, 82], St = [6, 10, 42, 47], L = [6, 10, 13, 41, 42, 47, 48, 49], q = [1, 92], J = [1, 91], $ = [1, 90], Z = [19, 58], Ot = [1, 101], Nt = [1, 100], ut = [19, 58, 60, 62], dt = {
|
|
10
|
+
trace: /* @__PURE__ */ d(function() {
|
|
11
|
+
}, "trace"),
|
|
12
|
+
yy: {},
|
|
13
|
+
symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, DECIMAL_NUM: 51, ENTITY_ONE: 52, attribute: 53, attributeType: 54, attributeName: 55, attributeKeyTypeList: 56, attributeComment: 57, ATTRIBUTE_WORD: 58, attributeKeyType: 59, ",": 60, ATTRIBUTE_KEY: 61, COMMENT: 62, cardinality: 63, relType: 64, ZERO_OR_ONE: 65, ZERO_OR_MORE: 66, ONE_OR_MORE: 67, ONLY_ONE: 68, MD_PARENT: 69, NON_IDENTIFYING: 70, IDENTIFYING: 71, WORD: 72, $accept: 0, $end: 1 },
|
|
14
|
+
terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 51: "DECIMAL_NUM", 52: "ENTITY_ONE", 58: "ATTRIBUTE_WORD", 60: ",", 61: "ATTRIBUTE_KEY", 62: "COMMENT", 65: "ZERO_OR_ONE", 66: "ZERO_OR_MORE", 67: "ONE_OR_MORE", 68: "ONLY_ONE", 69: "MD_PARENT", 70: "NON_IDENTIFYING", 71: "IDENTIFYING", 72: "WORD" },
|
|
15
|
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [18, 1], [18, 2], [53, 2], [53, 3], [53, 3], [53, 4], [54, 1], [55, 1], [56, 1], [56, 3], [59, 1], [57, 1], [12, 3], [63, 1], [63, 1], [63, 1], [63, 1], [63, 1], [64, 1], [64, 1], [14, 1], [14, 1], [14, 1]],
|
|
16
|
+
performAction: /* @__PURE__ */ d(function(n, a, o, r, p, t, j) {
|
|
17
|
+
var e = t.length - 1;
|
|
18
|
+
switch (p) {
|
|
19
|
+
case 1:
|
|
20
|
+
break;
|
|
21
|
+
case 2:
|
|
22
|
+
this.$ = [];
|
|
23
|
+
break;
|
|
24
|
+
case 3:
|
|
25
|
+
t[e - 1].push(t[e]), this.$ = t[e - 1];
|
|
26
|
+
break;
|
|
27
|
+
case 4:
|
|
28
|
+
case 5:
|
|
29
|
+
this.$ = t[e];
|
|
30
|
+
break;
|
|
31
|
+
case 6:
|
|
32
|
+
case 7:
|
|
33
|
+
this.$ = [];
|
|
34
|
+
break;
|
|
35
|
+
case 8:
|
|
36
|
+
r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
|
|
37
|
+
break;
|
|
38
|
+
case 9:
|
|
39
|
+
r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
|
|
40
|
+
break;
|
|
41
|
+
case 10:
|
|
42
|
+
r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
|
|
43
|
+
break;
|
|
44
|
+
case 11:
|
|
45
|
+
r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
|
|
46
|
+
break;
|
|
47
|
+
case 12:
|
|
48
|
+
r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
|
|
49
|
+
break;
|
|
50
|
+
case 13:
|
|
51
|
+
r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
|
|
52
|
+
break;
|
|
53
|
+
case 14:
|
|
54
|
+
r.addEntity(t[e - 2]);
|
|
55
|
+
break;
|
|
56
|
+
case 15:
|
|
57
|
+
r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
|
|
58
|
+
break;
|
|
59
|
+
case 16:
|
|
60
|
+
r.addEntity(t[e]);
|
|
61
|
+
break;
|
|
62
|
+
case 17:
|
|
63
|
+
r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
|
|
64
|
+
break;
|
|
65
|
+
case 18:
|
|
66
|
+
r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
|
|
67
|
+
break;
|
|
68
|
+
case 19:
|
|
69
|
+
r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
|
|
70
|
+
break;
|
|
71
|
+
case 20:
|
|
72
|
+
r.addEntity(t[e - 5], t[e - 3]);
|
|
73
|
+
break;
|
|
74
|
+
case 21:
|
|
75
|
+
r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
|
|
76
|
+
break;
|
|
77
|
+
case 22:
|
|
78
|
+
r.addEntity(t[e - 3], t[e - 1]);
|
|
79
|
+
break;
|
|
80
|
+
case 23:
|
|
81
|
+
r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
|
|
82
|
+
break;
|
|
83
|
+
case 24:
|
|
84
|
+
case 25:
|
|
85
|
+
this.$ = t[e].trim(), r.setAccTitle(this.$);
|
|
86
|
+
break;
|
|
87
|
+
case 26:
|
|
88
|
+
case 27:
|
|
89
|
+
this.$ = t[e].trim(), r.setAccDescription(this.$);
|
|
90
|
+
break;
|
|
91
|
+
case 32:
|
|
92
|
+
r.setDirection("TB");
|
|
93
|
+
break;
|
|
94
|
+
case 33:
|
|
95
|
+
r.setDirection("BT");
|
|
96
|
+
break;
|
|
97
|
+
case 34:
|
|
98
|
+
r.setDirection("RL");
|
|
99
|
+
break;
|
|
100
|
+
case 35:
|
|
101
|
+
r.setDirection("LR");
|
|
102
|
+
break;
|
|
103
|
+
case 36:
|
|
104
|
+
this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
|
|
105
|
+
break;
|
|
106
|
+
case 37:
|
|
107
|
+
case 38:
|
|
108
|
+
case 59:
|
|
109
|
+
case 67:
|
|
110
|
+
this.$ = [t[e]];
|
|
111
|
+
break;
|
|
112
|
+
case 39:
|
|
113
|
+
case 40:
|
|
114
|
+
this.$ = t[e - 2].concat([t[e]]);
|
|
115
|
+
break;
|
|
116
|
+
case 41:
|
|
117
|
+
this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
|
|
118
|
+
break;
|
|
119
|
+
case 42:
|
|
120
|
+
this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
|
|
121
|
+
break;
|
|
122
|
+
case 43:
|
|
123
|
+
this.$ = [t[e]];
|
|
124
|
+
break;
|
|
125
|
+
case 44:
|
|
126
|
+
t[e - 2].push(t[e]), this.$ = t[e - 2];
|
|
127
|
+
break;
|
|
128
|
+
case 46:
|
|
129
|
+
this.$ = t[e - 1] + t[e];
|
|
130
|
+
break;
|
|
131
|
+
case 54:
|
|
132
|
+
case 79:
|
|
133
|
+
case 80:
|
|
134
|
+
this.$ = t[e].replace(/"/g, "");
|
|
135
|
+
break;
|
|
136
|
+
case 55:
|
|
137
|
+
case 56:
|
|
138
|
+
case 57:
|
|
139
|
+
case 58:
|
|
140
|
+
case 81:
|
|
141
|
+
this.$ = t[e];
|
|
142
|
+
break;
|
|
143
|
+
case 60:
|
|
144
|
+
t[e].push(t[e - 1]), this.$ = t[e];
|
|
145
|
+
break;
|
|
146
|
+
case 61:
|
|
147
|
+
this.$ = { type: t[e - 1], name: t[e] };
|
|
148
|
+
break;
|
|
149
|
+
case 62:
|
|
150
|
+
this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
|
|
151
|
+
break;
|
|
152
|
+
case 63:
|
|
153
|
+
this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
|
|
154
|
+
break;
|
|
155
|
+
case 64:
|
|
156
|
+
this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
|
|
157
|
+
break;
|
|
158
|
+
case 65:
|
|
159
|
+
case 66:
|
|
160
|
+
case 69:
|
|
161
|
+
this.$ = t[e];
|
|
162
|
+
break;
|
|
163
|
+
case 68:
|
|
164
|
+
t[e - 2].push(t[e]), this.$ = t[e - 2];
|
|
165
|
+
break;
|
|
166
|
+
case 70:
|
|
167
|
+
this.$ = t[e].replace(/"/g, "");
|
|
168
|
+
break;
|
|
169
|
+
case 71:
|
|
170
|
+
this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
|
|
171
|
+
break;
|
|
172
|
+
case 72:
|
|
173
|
+
this.$ = r.Cardinality.ZERO_OR_ONE;
|
|
174
|
+
break;
|
|
175
|
+
case 73:
|
|
176
|
+
this.$ = r.Cardinality.ZERO_OR_MORE;
|
|
177
|
+
break;
|
|
178
|
+
case 74:
|
|
179
|
+
this.$ = r.Cardinality.ONE_OR_MORE;
|
|
180
|
+
break;
|
|
181
|
+
case 75:
|
|
182
|
+
this.$ = r.Cardinality.ONLY_ONE;
|
|
183
|
+
break;
|
|
184
|
+
case 76:
|
|
185
|
+
this.$ = r.Cardinality.MD_PARENT;
|
|
186
|
+
break;
|
|
187
|
+
case 77:
|
|
188
|
+
this.$ = r.Identification.NON_IDENTIFYING;
|
|
189
|
+
break;
|
|
190
|
+
case 78:
|
|
191
|
+
this.$ = r.Identification.IDENTIFYING;
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}, "anonymous"),
|
|
195
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: T, 43: X, 44: B, 48: D, 50: I, 51: S, 52: R }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 30, 11: 9, 22: c, 24: h, 26: l, 28: f, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: u, 35: m, 36: W, 37: Q, 40: T, 43: X, 44: B, 48: D, 50: I, 51: S, 52: R }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 31, 63: 35, 15: [1, 32], 17: [1, 33], 20: [1, 34], 65: at, 66: ct, 67: ot, 68: lt, 69: ht }), { 23: [1, 41] }, { 25: [1, 42] }, { 27: [1, 43] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(F, [2, 54]), s(F, [2, 55]), s(F, [2, 56]), s(F, [2, 57]), s(F, [2, 58]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 44, 40: O, 41: N }, { 16: 47, 40: O, 41: N }, { 16: 48, 40: O, 41: N }, s(i, [2, 4]), { 11: 49, 40: T, 48: D, 50: I, 51: S, 52: R }, { 16: 50, 40: O, 41: N }, { 18: 51, 19: [1, 52], 53: 53, 54: 54, 58: Y }, { 11: 56, 40: T, 48: D, 50: I, 51: S, 52: R }, { 64: 57, 70: [1, 58], 71: [1, 59] }, s(P, [2, 72]), s(P, [2, 73]), s(P, [2, 74]), s(P, [2, 75]), s(P, [2, 76]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: z, 38: 60, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, s(H, [2, 37]), s(H, [2, 38]), { 16: 68, 40: O, 41: N, 42: A }, { 13: z, 38: 69, 41: G, 42: A, 45: 62, 46: 63, 48: K, 49: U }, { 13: [1, 70], 15: [1, 71] }, s(i, [2, 17], { 63: 35, 12: 72, 17: [1, 73], 42: A, 65: at, 66: ct, 67: ot, 68: lt, 69: ht }), { 19: [1, 74] }, s(i, [2, 14]), { 18: 75, 19: [2, 59], 53: 53, 54: 54, 58: Y }, { 55: 76, 58: [1, 77] }, { 58: [2, 65] }, { 21: [1, 78] }, { 63: 79, 65: at, 66: ct, 67: ot, 68: lt, 69: ht }, s(bt, [2, 77]), s(bt, [2, 78]), { 6: kt, 10: mt, 39: 80, 42: Et, 47: Tt }, { 40: [1, 85], 41: [1, 86] }, s(St, [2, 43], { 46: 87, 13: z, 41: G, 48: K, 49: U }), s(L, [2, 45]), s(L, [2, 50]), s(L, [2, 51]), s(L, [2, 52]), s(L, [2, 53]), s(i, [2, 41], { 42: A }), { 6: kt, 10: mt, 39: 88, 42: Et, 47: Tt }, { 14: 89, 40: q, 50: J, 72: $ }, { 16: 93, 40: O, 41: N }, { 11: 94, 40: T, 48: D, 50: I, 51: S, 52: R }, { 18: 95, 19: [1, 96], 53: 53, 54: 54, 58: Y }, s(i, [2, 12]), { 19: [2, 60] }, s(Z, [2, 61], { 56: 97, 57: 98, 59: 99, 61: Ot, 62: Nt }), s([19, 58, 61, 62], [2, 66]), s(i, [2, 22], { 15: [1, 103], 17: [1, 102] }), s([40, 48, 50, 51, 52], [2, 71]), s(i, [2, 36]), { 13: z, 41: G, 45: 104, 46: 63, 48: K, 49: U }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(H, [2, 39]), s(H, [2, 40]), s(L, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 79]), s(i, [2, 80]), s(i, [2, 81]), { 13: [1, 105], 42: A }, { 13: [1, 107], 15: [1, 106] }, { 19: [1, 108] }, s(i, [2, 15]), s(Z, [2, 62], { 57: 109, 60: [1, 110], 62: Nt }), s(Z, [2, 63]), s(ut, [2, 67]), s(Z, [2, 70]), s(ut, [2, 69]), { 18: 111, 19: [1, 112], 53: 53, 54: 54, 58: Y }, { 16: 113, 40: O, 41: N }, s(St, [2, 44], { 46: 87, 13: z, 41: G, 48: K, 49: U }), { 14: 114, 40: q, 50: J, 72: $ }, { 16: 115, 40: O, 41: N }, { 14: 116, 40: q, 50: J, 72: $ }, s(i, [2, 13]), s(Z, [2, 64]), { 59: 117, 61: Ot }, { 19: [1, 118] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 119], 42: A }), s(i, [2, 11]), { 13: [1, 120], 42: A }, s(i, [2, 10]), s(ut, [2, 68]), s(i, [2, 18]), { 18: 121, 19: [1, 122], 53: 53, 54: 54, 58: Y }, { 14: 123, 40: q, 50: J, 72: $ }, { 19: [1, 124] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
|
|
196
|
+
defaultActions: { 55: [2, 65], 75: [2, 60] },
|
|
197
|
+
parseError: /* @__PURE__ */ d(function(n, a) {
|
|
198
|
+
if (a.recoverable)
|
|
199
|
+
this.trace(n);
|
|
200
|
+
else {
|
|
201
|
+
var o = new Error(n);
|
|
202
|
+
throw o.hash = a, o;
|
|
203
|
+
}
|
|
204
|
+
}, "parseError"),
|
|
205
|
+
parse: /* @__PURE__ */ d(function(n) {
|
|
206
|
+
var a = this, o = [0], r = [], p = [null], t = [], j = this.table, e = "", et = 0, At = 0, Lt = 2, Ct = 1, wt = t.slice.call(arguments, 1), _ = Object.create(this.lexer), x = { yy: {} };
|
|
207
|
+
for (var ft in this.yy)
|
|
208
|
+
Object.prototype.hasOwnProperty.call(this.yy, ft) && (x.yy[ft] = this.yy[ft]);
|
|
209
|
+
_.setInput(n, x.yy), x.yy.lexer = _, x.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
|
|
210
|
+
var pt = _.yylloc;
|
|
211
|
+
t.push(pt);
|
|
212
|
+
var Vt = _.options && _.options.ranges;
|
|
213
|
+
typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
214
|
+
function Mt(b) {
|
|
215
|
+
o.length = o.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
|
|
216
|
+
}
|
|
217
|
+
d(Mt, "popStack");
|
|
218
|
+
function It() {
|
|
219
|
+
var b;
|
|
220
|
+
return b = r.pop() || _.lex() || Ct, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
|
|
221
|
+
}
|
|
222
|
+
d(It, "lex");
|
|
223
|
+
for (var g, v, k, yt, w = {}, st, E, Rt, it; ; ) {
|
|
224
|
+
if (v = o[o.length - 1], this.defaultActions[v] ? k = this.defaultActions[v] : ((g === null || typeof g > "u") && (g = It()), k = j[v] && j[v][g]), typeof k > "u" || !k.length || !k[0]) {
|
|
225
|
+
var _t = "";
|
|
226
|
+
it = [];
|
|
227
|
+
for (st in j[v])
|
|
228
|
+
this.terminals_[st] && st > Lt && it.push("'" + this.terminals_[st] + "'");
|
|
229
|
+
_.showPosition ? _t = "Parse error on line " + (et + 1) + `:
|
|
230
|
+
` + _.showPosition() + `
|
|
231
|
+
Expecting ` + it.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : _t = "Parse error on line " + (et + 1) + ": Unexpected " + (g == Ct ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(_t, {
|
|
232
|
+
text: _.match,
|
|
233
|
+
token: this.terminals_[g] || g,
|
|
234
|
+
line: _.yylineno,
|
|
235
|
+
loc: pt,
|
|
236
|
+
expected: it
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
if (k[0] instanceof Array && k.length > 1)
|
|
240
|
+
throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + g);
|
|
241
|
+
switch (k[0]) {
|
|
242
|
+
case 1:
|
|
243
|
+
o.push(g), p.push(_.yytext), t.push(_.yylloc), o.push(k[1]), g = null, At = _.yyleng, e = _.yytext, et = _.yylineno, pt = _.yylloc;
|
|
244
|
+
break;
|
|
245
|
+
case 2:
|
|
246
|
+
if (E = this.productions_[k[1]][1], w.$ = p[p.length - E], w._$ = {
|
|
247
|
+
first_line: t[t.length - (E || 1)].first_line,
|
|
248
|
+
last_line: t[t.length - 1].last_line,
|
|
249
|
+
first_column: t[t.length - (E || 1)].first_column,
|
|
250
|
+
last_column: t[t.length - 1].last_column
|
|
251
|
+
}, Vt && (w._$.range = [
|
|
252
|
+
t[t.length - (E || 1)].range[0],
|
|
253
|
+
t[t.length - 1].range[1]
|
|
254
|
+
]), yt = this.performAction.apply(w, [
|
|
255
|
+
e,
|
|
256
|
+
At,
|
|
257
|
+
et,
|
|
258
|
+
x.yy,
|
|
259
|
+
k[1],
|
|
260
|
+
p,
|
|
261
|
+
t
|
|
262
|
+
].concat(wt)), typeof yt < "u")
|
|
263
|
+
return yt;
|
|
264
|
+
E && (o = o.slice(0, -1 * E * 2), p = p.slice(0, -1 * E), t = t.slice(0, -1 * E)), o.push(this.productions_[k[1]][0]), p.push(w.$), t.push(w._$), Rt = j[o[o.length - 2]][o[o.length - 1]], o.push(Rt);
|
|
265
|
+
break;
|
|
266
|
+
case 3:
|
|
267
|
+
return !0;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return !0;
|
|
271
|
+
}, "parse")
|
|
272
|
+
}, Dt = /* @__PURE__ */ (function() {
|
|
273
|
+
var C = {
|
|
274
|
+
EOF: 1,
|
|
275
|
+
parseError: /* @__PURE__ */ d(function(a, o) {
|
|
276
|
+
if (this.yy.parser)
|
|
277
|
+
this.yy.parser.parseError(a, o);
|
|
278
|
+
else
|
|
279
|
+
throw new Error(a);
|
|
280
|
+
}, "parseError"),
|
|
281
|
+
// resets the lexer, sets new input
|
|
282
|
+
setInput: /* @__PURE__ */ d(function(n, a) {
|
|
283
|
+
return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
284
|
+
first_line: 1,
|
|
285
|
+
first_column: 0,
|
|
286
|
+
last_line: 1,
|
|
287
|
+
last_column: 0
|
|
288
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
289
|
+
}, "setInput"),
|
|
290
|
+
// consumes and returns one char from the input
|
|
291
|
+
input: /* @__PURE__ */ d(function() {
|
|
292
|
+
var n = this._input[0];
|
|
293
|
+
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
294
|
+
var a = n.match(/(?:\r\n?|\n).*/g);
|
|
295
|
+
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
296
|
+
}, "input"),
|
|
297
|
+
// unshifts one char (or a string) into the input
|
|
298
|
+
unput: /* @__PURE__ */ d(function(n) {
|
|
299
|
+
var a = n.length, o = n.split(/(?:\r\n?|\n)/g);
|
|
300
|
+
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
301
|
+
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
302
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
303
|
+
var p = this.yylloc.range;
|
|
304
|
+
return this.yylloc = {
|
|
305
|
+
first_line: this.yylloc.first_line,
|
|
306
|
+
last_line: this.yylineno + 1,
|
|
307
|
+
first_column: this.yylloc.first_column,
|
|
308
|
+
last_column: o ? (o.length === r.length ? this.yylloc.first_column : 0) + r[r.length - o.length].length - o[0].length : this.yylloc.first_column - a
|
|
309
|
+
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
310
|
+
}, "unput"),
|
|
311
|
+
// When called from action, caches matched text and appends it on next action
|
|
312
|
+
more: /* @__PURE__ */ d(function() {
|
|
313
|
+
return this._more = !0, this;
|
|
314
|
+
}, "more"),
|
|
315
|
+
// 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.
|
|
316
|
+
reject: /* @__PURE__ */ d(function() {
|
|
317
|
+
if (this.options.backtrack_lexer)
|
|
318
|
+
this._backtrack = !0;
|
|
319
|
+
else
|
|
320
|
+
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).
|
|
321
|
+
` + this.showPosition(), {
|
|
322
|
+
text: "",
|
|
323
|
+
token: null,
|
|
324
|
+
line: this.yylineno
|
|
325
|
+
});
|
|
326
|
+
return this;
|
|
327
|
+
}, "reject"),
|
|
328
|
+
// retain first n characters of the match
|
|
329
|
+
less: /* @__PURE__ */ d(function(n) {
|
|
330
|
+
this.unput(this.match.slice(n));
|
|
331
|
+
}, "less"),
|
|
332
|
+
// displays already matched input, i.e. for error messages
|
|
333
|
+
pastInput: /* @__PURE__ */ d(function() {
|
|
334
|
+
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
335
|
+
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
336
|
+
}, "pastInput"),
|
|
337
|
+
// displays upcoming input, i.e. for error messages
|
|
338
|
+
upcomingInput: /* @__PURE__ */ d(function() {
|
|
339
|
+
var n = this.match;
|
|
340
|
+
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
341
|
+
}, "upcomingInput"),
|
|
342
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
343
|
+
showPosition: /* @__PURE__ */ d(function() {
|
|
344
|
+
var n = this.pastInput(), a = new Array(n.length + 1).join("-");
|
|
345
|
+
return n + this.upcomingInput() + `
|
|
346
|
+
` + a + "^";
|
|
347
|
+
}, "showPosition"),
|
|
348
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
349
|
+
test_match: /* @__PURE__ */ d(function(n, a) {
|
|
350
|
+
var o, r, p;
|
|
351
|
+
if (this.options.backtrack_lexer && (p = {
|
|
352
|
+
yylineno: this.yylineno,
|
|
353
|
+
yylloc: {
|
|
354
|
+
first_line: this.yylloc.first_line,
|
|
355
|
+
last_line: this.last_line,
|
|
356
|
+
first_column: this.yylloc.first_column,
|
|
357
|
+
last_column: this.yylloc.last_column
|
|
358
|
+
},
|
|
359
|
+
yytext: this.yytext,
|
|
360
|
+
match: this.match,
|
|
361
|
+
matches: this.matches,
|
|
362
|
+
matched: this.matched,
|
|
363
|
+
yyleng: this.yyleng,
|
|
364
|
+
offset: this.offset,
|
|
365
|
+
_more: this._more,
|
|
366
|
+
_input: this._input,
|
|
367
|
+
yy: this.yy,
|
|
368
|
+
conditionStack: this.conditionStack.slice(0),
|
|
369
|
+
done: this.done
|
|
370
|
+
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
371
|
+
first_line: this.yylloc.last_line,
|
|
372
|
+
last_line: this.yylineno + 1,
|
|
373
|
+
first_column: this.yylloc.last_column,
|
|
374
|
+
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
375
|
+
}, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
376
|
+
return o;
|
|
377
|
+
if (this._backtrack) {
|
|
378
|
+
for (var t in p)
|
|
379
|
+
this[t] = p[t];
|
|
380
|
+
return !1;
|
|
381
|
+
}
|
|
382
|
+
return !1;
|
|
383
|
+
}, "test_match"),
|
|
384
|
+
// return next match in input
|
|
385
|
+
next: /* @__PURE__ */ d(function() {
|
|
386
|
+
if (this.done)
|
|
387
|
+
return this.EOF;
|
|
388
|
+
this._input || (this.done = !0);
|
|
389
|
+
var n, a, o, r;
|
|
390
|
+
this._more || (this.yytext = "", this.match = "");
|
|
391
|
+
for (var p = this._currentRules(), t = 0; t < p.length; t++)
|
|
392
|
+
if (o = this._input.match(this.rules[p[t]]), o && (!a || o[0].length > a[0].length)) {
|
|
393
|
+
if (a = o, r = t, this.options.backtrack_lexer) {
|
|
394
|
+
if (n = this.test_match(o, p[t]), n !== !1)
|
|
395
|
+
return n;
|
|
396
|
+
if (this._backtrack) {
|
|
397
|
+
a = !1;
|
|
398
|
+
continue;
|
|
399
|
+
} else
|
|
400
|
+
return !1;
|
|
401
|
+
} else if (!this.options.flex)
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
405
|
+
` + this.showPosition(), {
|
|
406
|
+
text: "",
|
|
407
|
+
token: null,
|
|
408
|
+
line: this.yylineno
|
|
409
|
+
});
|
|
410
|
+
}, "next"),
|
|
411
|
+
// return next match that has a token
|
|
412
|
+
lex: /* @__PURE__ */ d(function() {
|
|
413
|
+
var a = this.next();
|
|
414
|
+
return a || this.lex();
|
|
415
|
+
}, "lex"),
|
|
416
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
417
|
+
begin: /* @__PURE__ */ d(function(a) {
|
|
418
|
+
this.conditionStack.push(a);
|
|
419
|
+
}, "begin"),
|
|
420
|
+
// pop the previously active lexer condition state off the condition stack
|
|
421
|
+
popState: /* @__PURE__ */ d(function() {
|
|
422
|
+
var a = this.conditionStack.length - 1;
|
|
423
|
+
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
424
|
+
}, "popState"),
|
|
425
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
426
|
+
_currentRules: /* @__PURE__ */ d(function() {
|
|
427
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
428
|
+
}, "_currentRules"),
|
|
429
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
430
|
+
topState: /* @__PURE__ */ d(function(a) {
|
|
431
|
+
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
432
|
+
}, "topState"),
|
|
433
|
+
// alias for begin(condition)
|
|
434
|
+
pushState: /* @__PURE__ */ d(function(a) {
|
|
435
|
+
this.begin(a);
|
|
436
|
+
}, "pushState"),
|
|
437
|
+
// return the number of states currently on the stack
|
|
438
|
+
stateStackSize: /* @__PURE__ */ d(function() {
|
|
439
|
+
return this.conditionStack.length;
|
|
440
|
+
}, "stateStackSize"),
|
|
441
|
+
options: { "case-insensitive": !0 },
|
|
442
|
+
performAction: /* @__PURE__ */ d(function(a, o, r, p) {
|
|
443
|
+
switch (r) {
|
|
444
|
+
case 0:
|
|
445
|
+
return this.begin("acc_title"), 24;
|
|
446
|
+
case 1:
|
|
447
|
+
return this.popState(), "acc_title_value";
|
|
448
|
+
case 2:
|
|
449
|
+
return this.begin("acc_descr"), 26;
|
|
450
|
+
case 3:
|
|
451
|
+
return this.popState(), "acc_descr_value";
|
|
452
|
+
case 4:
|
|
453
|
+
this.begin("acc_descr_multiline");
|
|
454
|
+
break;
|
|
455
|
+
case 5:
|
|
456
|
+
this.popState();
|
|
457
|
+
break;
|
|
458
|
+
case 6:
|
|
459
|
+
return "acc_descr_multiline_value";
|
|
460
|
+
case 7:
|
|
461
|
+
return 33;
|
|
462
|
+
case 8:
|
|
463
|
+
return 34;
|
|
464
|
+
case 9:
|
|
465
|
+
return 35;
|
|
466
|
+
case 10:
|
|
467
|
+
return 36;
|
|
468
|
+
case 11:
|
|
469
|
+
return 10;
|
|
470
|
+
case 12:
|
|
471
|
+
break;
|
|
472
|
+
case 13:
|
|
473
|
+
return 8;
|
|
474
|
+
case 14:
|
|
475
|
+
return 50;
|
|
476
|
+
case 15:
|
|
477
|
+
return 72;
|
|
478
|
+
case 16:
|
|
479
|
+
return 4;
|
|
480
|
+
case 17:
|
|
481
|
+
return this.begin("block"), 17;
|
|
482
|
+
case 18:
|
|
483
|
+
return 49;
|
|
484
|
+
case 19:
|
|
485
|
+
return 49;
|
|
486
|
+
case 20:
|
|
487
|
+
return 42;
|
|
488
|
+
case 21:
|
|
489
|
+
return 15;
|
|
490
|
+
case 22:
|
|
491
|
+
return 13;
|
|
492
|
+
case 23:
|
|
493
|
+
break;
|
|
494
|
+
case 24:
|
|
495
|
+
return 61;
|
|
496
|
+
case 25:
|
|
497
|
+
return 58;
|
|
498
|
+
case 26:
|
|
499
|
+
return 58;
|
|
500
|
+
case 27:
|
|
501
|
+
return 62;
|
|
502
|
+
case 28:
|
|
503
|
+
break;
|
|
504
|
+
case 29:
|
|
505
|
+
return this.popState(), 19;
|
|
506
|
+
case 30:
|
|
507
|
+
return o.yytext[0];
|
|
508
|
+
case 31:
|
|
509
|
+
return 20;
|
|
510
|
+
case 32:
|
|
511
|
+
return 21;
|
|
512
|
+
case 33:
|
|
513
|
+
return this.begin("style"), 44;
|
|
514
|
+
case 34:
|
|
515
|
+
return this.popState(), 10;
|
|
516
|
+
case 35:
|
|
517
|
+
break;
|
|
518
|
+
case 36:
|
|
519
|
+
return 13;
|
|
520
|
+
case 37:
|
|
521
|
+
return 42;
|
|
522
|
+
case 38:
|
|
523
|
+
return 49;
|
|
524
|
+
case 39:
|
|
525
|
+
return this.begin("style"), 37;
|
|
526
|
+
case 40:
|
|
527
|
+
return 43;
|
|
528
|
+
case 41:
|
|
529
|
+
return 65;
|
|
530
|
+
case 42:
|
|
531
|
+
return 67;
|
|
532
|
+
case 43:
|
|
533
|
+
return 67;
|
|
534
|
+
case 44:
|
|
535
|
+
return 67;
|
|
536
|
+
case 45:
|
|
537
|
+
return 65;
|
|
538
|
+
case 46:
|
|
539
|
+
return 65;
|
|
540
|
+
case 47:
|
|
541
|
+
return 66;
|
|
542
|
+
case 48:
|
|
543
|
+
return 66;
|
|
544
|
+
case 49:
|
|
545
|
+
return 66;
|
|
546
|
+
case 50:
|
|
547
|
+
return 66;
|
|
548
|
+
case 51:
|
|
549
|
+
return 66;
|
|
550
|
+
case 52:
|
|
551
|
+
return 67;
|
|
552
|
+
case 53:
|
|
553
|
+
return 66;
|
|
554
|
+
case 54:
|
|
555
|
+
return 67;
|
|
556
|
+
case 55:
|
|
557
|
+
return 68;
|
|
558
|
+
case 56:
|
|
559
|
+
return 68;
|
|
560
|
+
case 57:
|
|
561
|
+
return 51;
|
|
562
|
+
case 58:
|
|
563
|
+
return 68;
|
|
564
|
+
case 59:
|
|
565
|
+
return 68;
|
|
566
|
+
case 60:
|
|
567
|
+
return 68;
|
|
568
|
+
case 61:
|
|
569
|
+
return 52;
|
|
570
|
+
case 62:
|
|
571
|
+
return 48;
|
|
572
|
+
case 63:
|
|
573
|
+
return 68;
|
|
574
|
+
case 64:
|
|
575
|
+
return 65;
|
|
576
|
+
case 65:
|
|
577
|
+
return 66;
|
|
578
|
+
case 66:
|
|
579
|
+
return 67;
|
|
580
|
+
case 67:
|
|
581
|
+
return 69;
|
|
582
|
+
case 68:
|
|
583
|
+
return 70;
|
|
584
|
+
case 69:
|
|
585
|
+
return 71;
|
|
586
|
+
case 70:
|
|
587
|
+
return 71;
|
|
588
|
+
case 71:
|
|
589
|
+
return 70;
|
|
590
|
+
case 72:
|
|
591
|
+
return 70;
|
|
592
|
+
case 73:
|
|
593
|
+
return 70;
|
|
594
|
+
case 74:
|
|
595
|
+
return 41;
|
|
596
|
+
case 75:
|
|
597
|
+
return 47;
|
|
598
|
+
case 76:
|
|
599
|
+
return 40;
|
|
600
|
+
case 77:
|
|
601
|
+
return o.yytext[0];
|
|
602
|
+
case 78:
|
|
603
|
+
return 6;
|
|
604
|
+
}
|
|
605
|
+
}, "anonymous"),
|
|
606
|
+
rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:[0-9]+\.[0-9]+)/i, /^(?:1(?=\s+[A-Za-z_"']))/i, /^(?:1(?=\s+[0-9]))/i, /^(?:1(?=(--|\.\.|\.-|-\.)))/i, /^(?:1\b)/i, /^(?:[0-9]+)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:u(?=[\.\-\|]))/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i, /^(?:.)/i, /^(?:$)/i],
|
|
607
|
+
conditions: { style: { rules: [34, 35, 36, 37, 38, 74, 75], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 76, 77, 78], inclusive: !0 } }
|
|
608
|
+
};
|
|
609
|
+
return C;
|
|
610
|
+
})();
|
|
611
|
+
dt.lexer = Dt;
|
|
612
|
+
function tt() {
|
|
613
|
+
this.yy = {};
|
|
614
|
+
}
|
|
615
|
+
return d(tt, "Parser"), tt.prototype = dt, dt.Parser = tt, new tt();
|
|
616
|
+
})();
|
|
617
|
+
gt.parser = gt;
|
|
618
|
+
var te = gt, M, ee = (M = class {
|
|
619
|
+
constructor() {
|
|
620
|
+
this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
|
|
621
|
+
ZERO_OR_ONE: "ZERO_OR_ONE",
|
|
622
|
+
ZERO_OR_MORE: "ZERO_OR_MORE",
|
|
623
|
+
ONE_OR_MORE: "ONE_OR_MORE",
|
|
624
|
+
ONLY_ONE: "ONLY_ONE",
|
|
625
|
+
MD_PARENT: "MD_PARENT"
|
|
626
|
+
}, this.Identification = {
|
|
627
|
+
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
628
|
+
IDENTIFYING: "IDENTIFYING"
|
|
629
|
+
}, this.setAccTitle = Yt, this.getAccTitle = Pt, this.setAccDescription = zt, this.getAccDescription = Gt, this.setDiagramTitle = Kt, this.getDiagramTitle = Ut, this.getConfig = /* @__PURE__ */ d(() => rt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Add entity
|
|
633
|
+
* @param name - The name of the entity
|
|
634
|
+
* @param alias - The alias of the entity
|
|
635
|
+
*/
|
|
636
|
+
addEntity(i, c = "") {
|
|
637
|
+
return this.entities.has(i) ? !this.entities.get(i)?.alias && c && (this.entities.get(i).alias = c, V.info(`Add alias '${c}' to entity '${i}'`)) : (this.entities.set(i, {
|
|
638
|
+
id: `entity-${i}-${this.entities.size}`,
|
|
639
|
+
label: i,
|
|
640
|
+
attributes: [],
|
|
641
|
+
alias: c,
|
|
642
|
+
shape: "erBox",
|
|
643
|
+
look: rt().look ?? "default",
|
|
644
|
+
cssClasses: "default",
|
|
645
|
+
cssStyles: [],
|
|
646
|
+
labelType: "markdown"
|
|
647
|
+
}), V.info("Added new entity :", i)), this.entities.get(i);
|
|
648
|
+
}
|
|
649
|
+
getEntity(i) {
|
|
650
|
+
return this.entities.get(i);
|
|
651
|
+
}
|
|
652
|
+
getEntities() {
|
|
653
|
+
return this.entities;
|
|
654
|
+
}
|
|
655
|
+
getClasses() {
|
|
656
|
+
return this.classes;
|
|
657
|
+
}
|
|
658
|
+
addAttributes(i, c) {
|
|
659
|
+
const h = this.addEntity(i);
|
|
660
|
+
let l;
|
|
661
|
+
for (l = c.length - 1; l >= 0; l--)
|
|
662
|
+
c[l].keys || (c[l].keys = []), c[l].comment || (c[l].comment = ""), h.attributes.push(c[l]), V.debug("Added attribute ", c[l].name);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Add a relationship
|
|
666
|
+
*
|
|
667
|
+
* @param entA - The first entity in the relationship
|
|
668
|
+
* @param rolA - The role played by the first entity in relation to the second
|
|
669
|
+
* @param entB - The second entity in the relationship
|
|
670
|
+
* @param rSpec - The details of the relationship between the two entities
|
|
671
|
+
*/
|
|
672
|
+
addRelationship(i, c, h, l) {
|
|
673
|
+
const f = this.entities.get(i), y = this.entities.get(h);
|
|
674
|
+
if (!f || !y)
|
|
675
|
+
return;
|
|
676
|
+
const u = {
|
|
677
|
+
entityA: f.id,
|
|
678
|
+
roleA: c,
|
|
679
|
+
entityB: y.id,
|
|
680
|
+
relSpec: l
|
|
681
|
+
};
|
|
682
|
+
this.relationships.push(u), V.debug("Added new relationship :", u);
|
|
683
|
+
}
|
|
684
|
+
getRelationships() {
|
|
685
|
+
return this.relationships;
|
|
686
|
+
}
|
|
687
|
+
getDirection() {
|
|
688
|
+
return this.direction;
|
|
689
|
+
}
|
|
690
|
+
setDirection(i) {
|
|
691
|
+
this.direction = i;
|
|
692
|
+
}
|
|
693
|
+
getCompiledStyles(i) {
|
|
694
|
+
let c = [];
|
|
695
|
+
for (const h of i) {
|
|
696
|
+
const l = this.classes.get(h);
|
|
697
|
+
l?.styles && (c = [...c, ...l.styles ?? []].map((f) => f.trim())), l?.textStyles && (c = [...c, ...l.textStyles ?? []].map((f) => f.trim()));
|
|
698
|
+
}
|
|
699
|
+
return c;
|
|
700
|
+
}
|
|
701
|
+
addCssStyles(i, c) {
|
|
702
|
+
for (const h of i) {
|
|
703
|
+
const l = this.entities.get(h);
|
|
704
|
+
if (!c || !l)
|
|
705
|
+
return;
|
|
706
|
+
for (const f of c)
|
|
707
|
+
l.cssStyles.push(f);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
addClass(i, c) {
|
|
711
|
+
i.forEach((h) => {
|
|
712
|
+
let l = this.classes.get(h);
|
|
713
|
+
l === void 0 && (l = { id: h, styles: [], textStyles: [] }, this.classes.set(h, l)), c && c.forEach(function(f) {
|
|
714
|
+
if (/color/.exec(f)) {
|
|
715
|
+
const y = f.replace("fill", "bgFill");
|
|
716
|
+
l.textStyles.push(y);
|
|
717
|
+
}
|
|
718
|
+
l.styles.push(f);
|
|
719
|
+
});
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
setClass(i, c) {
|
|
723
|
+
for (const h of i) {
|
|
724
|
+
const l = this.entities.get(h);
|
|
725
|
+
if (l)
|
|
726
|
+
for (const f of c)
|
|
727
|
+
l.cssClasses += " " + f;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
clear() {
|
|
731
|
+
this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Zt();
|
|
732
|
+
}
|
|
733
|
+
getData() {
|
|
734
|
+
const i = [], c = [], h = rt();
|
|
735
|
+
let l = 0;
|
|
736
|
+
for (const y of this.entities.keys()) {
|
|
737
|
+
const u = this.entities.get(y);
|
|
738
|
+
u && (u.cssCompiledStyles = this.getCompiledStyles(u.cssClasses.split(" ")), u.colorIndex = l++, i.push(u));
|
|
739
|
+
}
|
|
740
|
+
let f = 0;
|
|
741
|
+
for (const y of this.relationships) {
|
|
742
|
+
const u = {
|
|
743
|
+
id: jt(y.entityA, y.entityB, {
|
|
744
|
+
prefix: "id",
|
|
745
|
+
counter: f++
|
|
746
|
+
}),
|
|
747
|
+
type: "normal",
|
|
748
|
+
curve: "basis",
|
|
749
|
+
start: y.entityA,
|
|
750
|
+
end: y.entityB,
|
|
751
|
+
label: y.roleA,
|
|
752
|
+
labelpos: "c",
|
|
753
|
+
thickness: "normal",
|
|
754
|
+
classes: "relationshipLine",
|
|
755
|
+
arrowTypeStart: y.relSpec.cardB.toLowerCase(),
|
|
756
|
+
arrowTypeEnd: y.relSpec.cardA.toLowerCase(),
|
|
757
|
+
pattern: y.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
|
|
758
|
+
look: h.look,
|
|
759
|
+
labelType: "markdown"
|
|
760
|
+
};
|
|
761
|
+
c.push(u);
|
|
762
|
+
}
|
|
763
|
+
return { nodes: i, edges: c, other: {}, config: h, direction: "TB" };
|
|
764
|
+
}
|
|
765
|
+
}, d(M, "ErDB"), M), vt = {};
|
|
766
|
+
Qt(vt, {
|
|
767
|
+
draw: () => se
|
|
768
|
+
});
|
|
769
|
+
var se = /* @__PURE__ */ d(async function(s, i, c, h) {
|
|
770
|
+
V.info("REF0:"), V.info("Drawing er diagram (unified)", i);
|
|
771
|
+
const { securityLevel: l, er: f, layout: y } = rt(), u = h.db.getData(), m = Bt(i, l);
|
|
772
|
+
u.type = h.type, u.layoutAlgorithm = Xt(y), u.config.flowchart.nodeSpacing = f?.nodeSpacing || 140, u.config.flowchart.rankSpacing = f?.rankSpacing || 80, u.direction = h.db.getDirection();
|
|
773
|
+
const { config: W } = u, { look: Q } = W;
|
|
774
|
+
Q === "neo" ? u.markers = [
|
|
775
|
+
"only_one_neo",
|
|
776
|
+
"zero_or_one_neo",
|
|
777
|
+
"one_or_more_neo",
|
|
778
|
+
"zero_or_more_neo"
|
|
779
|
+
] : u.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], u.diagramId = i, await Ht(u, m), u.layoutAlgorithm === "elk" && m.select(".edges").lower();
|
|
780
|
+
const T = m.selectAll('[id*="-background"]');
|
|
781
|
+
Array.from(T).length > 0 && T.each(function() {
|
|
782
|
+
const B = qt(this), I = B.attr("id").replace("-background", ""), S = m.select(`#${CSS.escape(I)}`);
|
|
783
|
+
if (!S.empty()) {
|
|
784
|
+
const R = S.attr("transform");
|
|
785
|
+
B.attr("transform", R);
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
const X = 8;
|
|
789
|
+
Jt.insertTitle(
|
|
790
|
+
m,
|
|
791
|
+
"erDiagramTitleText",
|
|
792
|
+
f?.titleTopMargin ?? 25,
|
|
793
|
+
h.db.getDiagramTitle()
|
|
794
|
+
), Ft(m, X, "erDiagram", f?.useMaxWidth ?? !0);
|
|
795
|
+
}, "draw"), xt = /* @__PURE__ */ d((s, i) => {
|
|
796
|
+
const c = $t, h = c(s, "r"), l = c(s, "g"), f = c(s, "b");
|
|
797
|
+
return Wt(h, l, f, i);
|
|
798
|
+
}, "fade"), nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), ie = /* @__PURE__ */ d((s) => {
|
|
799
|
+
const { theme: i, look: c, bkgColorArray: h, borderColorArray: l } = s;
|
|
800
|
+
if (!nt.has(i))
|
|
801
|
+
return "";
|
|
802
|
+
const f = h?.length > 0;
|
|
803
|
+
let y = "";
|
|
804
|
+
for (let u = 0; u < s.THEME_COLOR_LIMIT; u++)
|
|
805
|
+
y += `
|
|
806
|
+
|
|
807
|
+
[data-look="${c}"][data-color-id="color-${u}"].node path {
|
|
808
|
+
stroke: ${l[u]};
|
|
809
|
+
${f ? `fill: ${h[u]};` : ""}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
[data-look="${c}"][data-color-id="color-${u}"].node rect {
|
|
813
|
+
stroke: ${l[u]};
|
|
814
|
+
${f ? `fill: ${h[u]};` : ""}
|
|
815
|
+
}
|
|
816
|
+
`;
|
|
817
|
+
return y;
|
|
818
|
+
}, "genColor"), re = /* @__PURE__ */ d((s) => {
|
|
819
|
+
const { look: i, theme: c, erEdgeLabelBackground: h, strokeWidth: l } = s;
|
|
820
|
+
return `
|
|
821
|
+
${ie(s)}
|
|
822
|
+
.entityBox {
|
|
823
|
+
fill: ${s.mainBkg};
|
|
824
|
+
stroke: ${s.nodeBorder};
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.relationshipLabelBox {
|
|
828
|
+
fill: ${s.tertiaryColor};
|
|
829
|
+
opacity: 0.7;
|
|
830
|
+
background-color: ${s.tertiaryColor};
|
|
831
|
+
rect {
|
|
832
|
+
opacity: 0.5;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.labelBkg {
|
|
837
|
+
background-color: ${nt.has(c) && h ? h : xt(s.tertiaryColor, 0.5)};
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.edgeLabel {
|
|
841
|
+
background-color: ${nt.has(c) && h ? h : s.edgeLabelBackground};
|
|
842
|
+
}
|
|
843
|
+
.edgeLabel .label rect {
|
|
844
|
+
fill: ${nt.has(c) && h ? h : s.edgeLabelBackground};
|
|
845
|
+
}
|
|
846
|
+
.edgeLabel .label text {
|
|
847
|
+
fill: ${s.textColor};
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.edgeLabel .label {
|
|
851
|
+
fill: ${s.nodeBorder};
|
|
852
|
+
font-size: 14px;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
.label {
|
|
856
|
+
font-family: ${s.fontFamily};
|
|
857
|
+
color: ${s.nodeTextColor || s.textColor};
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.edge-pattern-dashed {
|
|
861
|
+
stroke-dasharray: 8,8;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
.node rect,
|
|
865
|
+
.node circle,
|
|
866
|
+
.node ellipse,
|
|
867
|
+
.node polygon
|
|
868
|
+
{
|
|
869
|
+
fill: ${s.mainBkg};
|
|
870
|
+
stroke: ${s.nodeBorder};
|
|
871
|
+
stroke-width: ${i === "neo" ? l : "1px"};
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.relationshipLine {
|
|
875
|
+
stroke: ${s.lineColor};
|
|
876
|
+
stroke-width: ${i === "neo" ? l : "1px"};
|
|
877
|
+
fill: none;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.marker {
|
|
881
|
+
fill: none !important;
|
|
882
|
+
stroke: ${s.lineColor} !important;
|
|
883
|
+
stroke-width: 1;
|
|
884
|
+
}
|
|
885
|
+
[data-look=neo].labelBkg {
|
|
886
|
+
background-color: ${xt(s.tertiaryColor, 0.5)};
|
|
887
|
+
}
|
|
888
|
+
`;
|
|
889
|
+
}, "getStyles"), ne = re, he = {
|
|
890
|
+
parser: te,
|
|
891
|
+
get db() {
|
|
892
|
+
return new ee();
|
|
893
|
+
},
|
|
894
|
+
renderer: vt,
|
|
895
|
+
styles: ne
|
|
896
|
+
};
|
|
897
|
+
export {
|
|
898
|
+
he as diagram
|
|
899
|
+
};
|