@digipair/skill-web-chatbot 0.114.1 → 0.114.3
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/dist/index.cjs.js +2118 -8
- package/dist/index.esm2.js +5 -5
- package/package.json +6 -2
- package/dist/SAP-icons.cjs.js +0 -2489
- package/dist/SAP-icons.cjs2.js +0 -2489
- package/dist/Tableau10-558cc280.cjs.js +0 -9
- package/dist/arc-d1f6357e.cjs.js +0 -88
- package/dist/array-2ff2c7a6.cjs.js +0 -11
- package/dist/blockDiagram-5dc23a45.cjs.js +0 -2916
- package/dist/c4Diagram-1e775db3.cjs.js +0 -4386
- package/dist/channel-ebbc4130.cjs.js +0 -9
- package/dist/classDiagram-f52caa06.cjs.js +0 -209
- package/dist/classDiagram-v2-640c694e.cjs.js +0 -401
- package/dist/clone-afc2f047.cjs.js +0 -10
- package/dist/createText-03b82060.cjs.js +0 -2940
- package/dist/edges-16357fde.cjs.js +0 -2002
- package/dist/erDiagram-c7ff1bec.cjs.js +0 -1807
- package/dist/flowDb-9a89ea33.cjs.js +0 -5542
- package/dist/flowDiagram-aadb13b0.cjs.js +0 -1351
- package/dist/flowDiagram-v2-f2119625.cjs.js +0 -31
- package/dist/flowchart-elk-definition-cf813a97.cjs.js +0 -50248
- package/dist/ganttDiagram-3c2fde2b.cjs.js +0 -3710
- package/dist/gitGraphDiagram-c3a0619c.cjs.js +0 -3815
- package/dist/graph-0ee63739.cjs.js +0 -954
- package/dist/index-bb6d8841.cjs.js +0 -648
- package/dist/index.cjs2.js +0 -76743
- package/dist/infoDiagram-2f5c50c0.cjs.js +0 -460
- package/dist/init-f9637058.cjs.js +0 -17
- package/dist/journeyDiagram-14fe341a.cjs.js +0 -1061
- package/dist/katex-d90b6d29.cjs.js +0 -25690
- package/dist/layout-fd473db2.cjs.js +0 -1613
- package/dist/line-24d93f1b.cjs.js +0 -34
- package/dist/linear-9bcf74c4.cjs.js +0 -537
- package/dist/mindmap-definition-9399c7e6.cjs.js +0 -20488
- package/dist/ordinal-5695958c.cjs.js +0 -330
- package/dist/path-428ebac9.cjs.js +0 -316
- package/dist/pieDiagram-828dae43.cjs.js +0 -949
- package/dist/quadrantDiagram-5fa00455.cjs.js +0 -2409
- package/dist/requirementDiagram-03163dc4.cjs.js +0 -2267
- package/dist/sankeyDiagram-52ec8976.cjs.js +0 -1848
- package/dist/sequenceDiagram-b517d154.cjs.js +0 -5948
- package/dist/stateDiagram-fca82b5b.cjs.js +0 -283
- package/dist/stateDiagram-v2-ed04200a.cjs.js +0 -373
- package/dist/styles-11e81fdd.cjs.js +0 -3943
- package/dist/styles-cacbff60.cjs.js +0 -2120
- package/dist/styles-e75131e4.cjs.js +0 -671
- package/dist/svgDrawCommon-ecc5f780.cjs.js +0 -68
- package/dist/timeline-definition-4ee9bff4.cjs.js +0 -1161
- package/dist/xychartDiagram-e5e6b652.cjs.js +0 -3150
|
@@ -1,1807 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index.cjs2.js');
|
|
4
|
-
var graph0ee63739 = require('./graph-0ee63739.cjs.js');
|
|
5
|
-
var layoutFd473db2 = require('./layout-fd473db2.cjs.js');
|
|
6
|
-
var line24d93f1b = require('./line-24d93f1b.cjs.js');
|
|
7
|
-
require('./array-2ff2c7a6.cjs.js');
|
|
8
|
-
require('./path-428ebac9.cjs.js');
|
|
9
|
-
|
|
10
|
-
function _instanceof(left, right) {
|
|
11
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
12
|
-
return !!right[Symbol.hasInstance](left);
|
|
13
|
-
} else {
|
|
14
|
-
return left instanceof right;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function _type_of(obj) {
|
|
18
|
-
"@swc/helpers - typeof";
|
|
19
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
20
|
-
}
|
|
21
|
-
var at = function() {
|
|
22
|
-
var t = function t(S, a, n, c) {
|
|
23
|
-
for(n = n || {}, c = S.length; c--; n[S[c]] = a);
|
|
24
|
-
return n;
|
|
25
|
-
}, e = [
|
|
26
|
-
6,
|
|
27
|
-
8,
|
|
28
|
-
10,
|
|
29
|
-
20,
|
|
30
|
-
22,
|
|
31
|
-
24,
|
|
32
|
-
26,
|
|
33
|
-
27,
|
|
34
|
-
28
|
|
35
|
-
], r = [
|
|
36
|
-
1,
|
|
37
|
-
10
|
|
38
|
-
], u = [
|
|
39
|
-
1,
|
|
40
|
-
11
|
|
41
|
-
], l = [
|
|
42
|
-
1,
|
|
43
|
-
12
|
|
44
|
-
], p = [
|
|
45
|
-
1,
|
|
46
|
-
13
|
|
47
|
-
], f = [
|
|
48
|
-
1,
|
|
49
|
-
14
|
|
50
|
-
], o = [
|
|
51
|
-
1,
|
|
52
|
-
15
|
|
53
|
-
], h = [
|
|
54
|
-
1,
|
|
55
|
-
21
|
|
56
|
-
], _ = [
|
|
57
|
-
1,
|
|
58
|
-
22
|
|
59
|
-
], m = [
|
|
60
|
-
1,
|
|
61
|
-
23
|
|
62
|
-
], g = [
|
|
63
|
-
1,
|
|
64
|
-
24
|
|
65
|
-
], x = [
|
|
66
|
-
1,
|
|
67
|
-
25
|
|
68
|
-
], y = [
|
|
69
|
-
6,
|
|
70
|
-
8,
|
|
71
|
-
10,
|
|
72
|
-
13,
|
|
73
|
-
15,
|
|
74
|
-
18,
|
|
75
|
-
19,
|
|
76
|
-
20,
|
|
77
|
-
22,
|
|
78
|
-
24,
|
|
79
|
-
26,
|
|
80
|
-
27,
|
|
81
|
-
28,
|
|
82
|
-
41,
|
|
83
|
-
42,
|
|
84
|
-
43,
|
|
85
|
-
44,
|
|
86
|
-
45
|
|
87
|
-
], N = [
|
|
88
|
-
1,
|
|
89
|
-
34
|
|
90
|
-
], I = [
|
|
91
|
-
27,
|
|
92
|
-
28,
|
|
93
|
-
46,
|
|
94
|
-
47
|
|
95
|
-
], F = [
|
|
96
|
-
41,
|
|
97
|
-
42,
|
|
98
|
-
43,
|
|
99
|
-
44,
|
|
100
|
-
45
|
|
101
|
-
], W = [
|
|
102
|
-
17,
|
|
103
|
-
34
|
|
104
|
-
], C = [
|
|
105
|
-
1,
|
|
106
|
-
54
|
|
107
|
-
], T = [
|
|
108
|
-
1,
|
|
109
|
-
53
|
|
110
|
-
], M = [
|
|
111
|
-
17,
|
|
112
|
-
34,
|
|
113
|
-
36,
|
|
114
|
-
38
|
|
115
|
-
], R = {
|
|
116
|
-
trace: function trace() {},
|
|
117
|
-
yy: {},
|
|
118
|
-
symbols_: {
|
|
119
|
-
error: 2,
|
|
120
|
-
start: 3,
|
|
121
|
-
ER_DIAGRAM: 4,
|
|
122
|
-
document: 5,
|
|
123
|
-
EOF: 6,
|
|
124
|
-
line: 7,
|
|
125
|
-
SPACE: 8,
|
|
126
|
-
statement: 9,
|
|
127
|
-
NEWLINE: 10,
|
|
128
|
-
entityName: 11,
|
|
129
|
-
relSpec: 12,
|
|
130
|
-
":": 13,
|
|
131
|
-
role: 14,
|
|
132
|
-
BLOCK_START: 15,
|
|
133
|
-
attributes: 16,
|
|
134
|
-
BLOCK_STOP: 17,
|
|
135
|
-
SQS: 18,
|
|
136
|
-
SQE: 19,
|
|
137
|
-
title: 20,
|
|
138
|
-
title_value: 21,
|
|
139
|
-
acc_title: 22,
|
|
140
|
-
acc_title_value: 23,
|
|
141
|
-
acc_descr: 24,
|
|
142
|
-
acc_descr_value: 25,
|
|
143
|
-
acc_descr_multiline_value: 26,
|
|
144
|
-
ALPHANUM: 27,
|
|
145
|
-
ENTITY_NAME: 28,
|
|
146
|
-
attribute: 29,
|
|
147
|
-
attributeType: 30,
|
|
148
|
-
attributeName: 31,
|
|
149
|
-
attributeKeyTypeList: 32,
|
|
150
|
-
attributeComment: 33,
|
|
151
|
-
ATTRIBUTE_WORD: 34,
|
|
152
|
-
attributeKeyType: 35,
|
|
153
|
-
COMMA: 36,
|
|
154
|
-
ATTRIBUTE_KEY: 37,
|
|
155
|
-
COMMENT: 38,
|
|
156
|
-
cardinality: 39,
|
|
157
|
-
relType: 40,
|
|
158
|
-
ZERO_OR_ONE: 41,
|
|
159
|
-
ZERO_OR_MORE: 42,
|
|
160
|
-
ONE_OR_MORE: 43,
|
|
161
|
-
ONLY_ONE: 44,
|
|
162
|
-
MD_PARENT: 45,
|
|
163
|
-
NON_IDENTIFYING: 46,
|
|
164
|
-
IDENTIFYING: 47,
|
|
165
|
-
WORD: 48,
|
|
166
|
-
$accept: 0,
|
|
167
|
-
$end: 1
|
|
168
|
-
},
|
|
169
|
-
terminals_: {
|
|
170
|
-
2: "error",
|
|
171
|
-
4: "ER_DIAGRAM",
|
|
172
|
-
6: "EOF",
|
|
173
|
-
8: "SPACE",
|
|
174
|
-
10: "NEWLINE",
|
|
175
|
-
13: ":",
|
|
176
|
-
15: "BLOCK_START",
|
|
177
|
-
17: "BLOCK_STOP",
|
|
178
|
-
18: "SQS",
|
|
179
|
-
19: "SQE",
|
|
180
|
-
20: "title",
|
|
181
|
-
21: "title_value",
|
|
182
|
-
22: "acc_title",
|
|
183
|
-
23: "acc_title_value",
|
|
184
|
-
24: "acc_descr",
|
|
185
|
-
25: "acc_descr_value",
|
|
186
|
-
26: "acc_descr_multiline_value",
|
|
187
|
-
27: "ALPHANUM",
|
|
188
|
-
28: "ENTITY_NAME",
|
|
189
|
-
34: "ATTRIBUTE_WORD",
|
|
190
|
-
36: "COMMA",
|
|
191
|
-
37: "ATTRIBUTE_KEY",
|
|
192
|
-
38: "COMMENT",
|
|
193
|
-
41: "ZERO_OR_ONE",
|
|
194
|
-
42: "ZERO_OR_MORE",
|
|
195
|
-
43: "ONE_OR_MORE",
|
|
196
|
-
44: "ONLY_ONE",
|
|
197
|
-
45: "MD_PARENT",
|
|
198
|
-
46: "NON_IDENTIFYING",
|
|
199
|
-
47: "IDENTIFYING",
|
|
200
|
-
48: "WORD"
|
|
201
|
-
},
|
|
202
|
-
productions_: [
|
|
203
|
-
0,
|
|
204
|
-
[
|
|
205
|
-
3,
|
|
206
|
-
3
|
|
207
|
-
],
|
|
208
|
-
[
|
|
209
|
-
5,
|
|
210
|
-
0
|
|
211
|
-
],
|
|
212
|
-
[
|
|
213
|
-
5,
|
|
214
|
-
2
|
|
215
|
-
],
|
|
216
|
-
[
|
|
217
|
-
7,
|
|
218
|
-
2
|
|
219
|
-
],
|
|
220
|
-
[
|
|
221
|
-
7,
|
|
222
|
-
1
|
|
223
|
-
],
|
|
224
|
-
[
|
|
225
|
-
7,
|
|
226
|
-
1
|
|
227
|
-
],
|
|
228
|
-
[
|
|
229
|
-
7,
|
|
230
|
-
1
|
|
231
|
-
],
|
|
232
|
-
[
|
|
233
|
-
9,
|
|
234
|
-
5
|
|
235
|
-
],
|
|
236
|
-
[
|
|
237
|
-
9,
|
|
238
|
-
4
|
|
239
|
-
],
|
|
240
|
-
[
|
|
241
|
-
9,
|
|
242
|
-
3
|
|
243
|
-
],
|
|
244
|
-
[
|
|
245
|
-
9,
|
|
246
|
-
1
|
|
247
|
-
],
|
|
248
|
-
[
|
|
249
|
-
9,
|
|
250
|
-
7
|
|
251
|
-
],
|
|
252
|
-
[
|
|
253
|
-
9,
|
|
254
|
-
6
|
|
255
|
-
],
|
|
256
|
-
[
|
|
257
|
-
9,
|
|
258
|
-
4
|
|
259
|
-
],
|
|
260
|
-
[
|
|
261
|
-
9,
|
|
262
|
-
2
|
|
263
|
-
],
|
|
264
|
-
[
|
|
265
|
-
9,
|
|
266
|
-
2
|
|
267
|
-
],
|
|
268
|
-
[
|
|
269
|
-
9,
|
|
270
|
-
2
|
|
271
|
-
],
|
|
272
|
-
[
|
|
273
|
-
9,
|
|
274
|
-
1
|
|
275
|
-
],
|
|
276
|
-
[
|
|
277
|
-
11,
|
|
278
|
-
1
|
|
279
|
-
],
|
|
280
|
-
[
|
|
281
|
-
11,
|
|
282
|
-
1
|
|
283
|
-
],
|
|
284
|
-
[
|
|
285
|
-
16,
|
|
286
|
-
1
|
|
287
|
-
],
|
|
288
|
-
[
|
|
289
|
-
16,
|
|
290
|
-
2
|
|
291
|
-
],
|
|
292
|
-
[
|
|
293
|
-
29,
|
|
294
|
-
2
|
|
295
|
-
],
|
|
296
|
-
[
|
|
297
|
-
29,
|
|
298
|
-
3
|
|
299
|
-
],
|
|
300
|
-
[
|
|
301
|
-
29,
|
|
302
|
-
3
|
|
303
|
-
],
|
|
304
|
-
[
|
|
305
|
-
29,
|
|
306
|
-
4
|
|
307
|
-
],
|
|
308
|
-
[
|
|
309
|
-
30,
|
|
310
|
-
1
|
|
311
|
-
],
|
|
312
|
-
[
|
|
313
|
-
31,
|
|
314
|
-
1
|
|
315
|
-
],
|
|
316
|
-
[
|
|
317
|
-
32,
|
|
318
|
-
1
|
|
319
|
-
],
|
|
320
|
-
[
|
|
321
|
-
32,
|
|
322
|
-
3
|
|
323
|
-
],
|
|
324
|
-
[
|
|
325
|
-
35,
|
|
326
|
-
1
|
|
327
|
-
],
|
|
328
|
-
[
|
|
329
|
-
33,
|
|
330
|
-
1
|
|
331
|
-
],
|
|
332
|
-
[
|
|
333
|
-
12,
|
|
334
|
-
3
|
|
335
|
-
],
|
|
336
|
-
[
|
|
337
|
-
39,
|
|
338
|
-
1
|
|
339
|
-
],
|
|
340
|
-
[
|
|
341
|
-
39,
|
|
342
|
-
1
|
|
343
|
-
],
|
|
344
|
-
[
|
|
345
|
-
39,
|
|
346
|
-
1
|
|
347
|
-
],
|
|
348
|
-
[
|
|
349
|
-
39,
|
|
350
|
-
1
|
|
351
|
-
],
|
|
352
|
-
[
|
|
353
|
-
39,
|
|
354
|
-
1
|
|
355
|
-
],
|
|
356
|
-
[
|
|
357
|
-
40,
|
|
358
|
-
1
|
|
359
|
-
],
|
|
360
|
-
[
|
|
361
|
-
40,
|
|
362
|
-
1
|
|
363
|
-
],
|
|
364
|
-
[
|
|
365
|
-
14,
|
|
366
|
-
1
|
|
367
|
-
],
|
|
368
|
-
[
|
|
369
|
-
14,
|
|
370
|
-
1
|
|
371
|
-
],
|
|
372
|
-
[
|
|
373
|
-
14,
|
|
374
|
-
1
|
|
375
|
-
]
|
|
376
|
-
],
|
|
377
|
-
performAction: function performAction(a, n, c, d, E, i, K) {
|
|
378
|
-
var s = i.length - 1;
|
|
379
|
-
switch(E){
|
|
380
|
-
case 1:
|
|
381
|
-
break;
|
|
382
|
-
case 2:
|
|
383
|
-
this.$ = [];
|
|
384
|
-
break;
|
|
385
|
-
case 3:
|
|
386
|
-
i[s - 1].push(i[s]), this.$ = i[s - 1];
|
|
387
|
-
break;
|
|
388
|
-
case 4:
|
|
389
|
-
case 5:
|
|
390
|
-
this.$ = i[s];
|
|
391
|
-
break;
|
|
392
|
-
case 6:
|
|
393
|
-
case 7:
|
|
394
|
-
this.$ = [];
|
|
395
|
-
break;
|
|
396
|
-
case 8:
|
|
397
|
-
d.addEntity(i[s - 4]), d.addEntity(i[s - 2]), d.addRelationship(i[s - 4], i[s], i[s - 2], i[s - 3]);
|
|
398
|
-
break;
|
|
399
|
-
case 9:
|
|
400
|
-
d.addEntity(i[s - 3]), d.addAttributes(i[s - 3], i[s - 1]);
|
|
401
|
-
break;
|
|
402
|
-
case 10:
|
|
403
|
-
d.addEntity(i[s - 2]);
|
|
404
|
-
break;
|
|
405
|
-
case 11:
|
|
406
|
-
d.addEntity(i[s]);
|
|
407
|
-
break;
|
|
408
|
-
case 12:
|
|
409
|
-
d.addEntity(i[s - 6], i[s - 4]), d.addAttributes(i[s - 6], i[s - 1]);
|
|
410
|
-
break;
|
|
411
|
-
case 13:
|
|
412
|
-
d.addEntity(i[s - 5], i[s - 3]);
|
|
413
|
-
break;
|
|
414
|
-
case 14:
|
|
415
|
-
d.addEntity(i[s - 3], i[s - 1]);
|
|
416
|
-
break;
|
|
417
|
-
case 15:
|
|
418
|
-
case 16:
|
|
419
|
-
this.$ = i[s].trim(), d.setAccTitle(this.$);
|
|
420
|
-
break;
|
|
421
|
-
case 17:
|
|
422
|
-
case 18:
|
|
423
|
-
this.$ = i[s].trim(), d.setAccDescription(this.$);
|
|
424
|
-
break;
|
|
425
|
-
case 19:
|
|
426
|
-
case 43:
|
|
427
|
-
this.$ = i[s];
|
|
428
|
-
break;
|
|
429
|
-
case 20:
|
|
430
|
-
case 41:
|
|
431
|
-
case 42:
|
|
432
|
-
this.$ = i[s].replace(/"/g, "");
|
|
433
|
-
break;
|
|
434
|
-
case 21:
|
|
435
|
-
case 29:
|
|
436
|
-
this.$ = [
|
|
437
|
-
i[s]
|
|
438
|
-
];
|
|
439
|
-
break;
|
|
440
|
-
case 22:
|
|
441
|
-
i[s].push(i[s - 1]), this.$ = i[s];
|
|
442
|
-
break;
|
|
443
|
-
case 23:
|
|
444
|
-
this.$ = {
|
|
445
|
-
attributeType: i[s - 1],
|
|
446
|
-
attributeName: i[s]
|
|
447
|
-
};
|
|
448
|
-
break;
|
|
449
|
-
case 24:
|
|
450
|
-
this.$ = {
|
|
451
|
-
attributeType: i[s - 2],
|
|
452
|
-
attributeName: i[s - 1],
|
|
453
|
-
attributeKeyTypeList: i[s]
|
|
454
|
-
};
|
|
455
|
-
break;
|
|
456
|
-
case 25:
|
|
457
|
-
this.$ = {
|
|
458
|
-
attributeType: i[s - 2],
|
|
459
|
-
attributeName: i[s - 1],
|
|
460
|
-
attributeComment: i[s]
|
|
461
|
-
};
|
|
462
|
-
break;
|
|
463
|
-
case 26:
|
|
464
|
-
this.$ = {
|
|
465
|
-
attributeType: i[s - 3],
|
|
466
|
-
attributeName: i[s - 2],
|
|
467
|
-
attributeKeyTypeList: i[s - 1],
|
|
468
|
-
attributeComment: i[s]
|
|
469
|
-
};
|
|
470
|
-
break;
|
|
471
|
-
case 27:
|
|
472
|
-
case 28:
|
|
473
|
-
case 31:
|
|
474
|
-
this.$ = i[s];
|
|
475
|
-
break;
|
|
476
|
-
case 30:
|
|
477
|
-
i[s - 2].push(i[s]), this.$ = i[s - 2];
|
|
478
|
-
break;
|
|
479
|
-
case 32:
|
|
480
|
-
this.$ = i[s].replace(/"/g, "");
|
|
481
|
-
break;
|
|
482
|
-
case 33:
|
|
483
|
-
this.$ = {
|
|
484
|
-
cardA: i[s],
|
|
485
|
-
relType: i[s - 1],
|
|
486
|
-
cardB: i[s - 2]
|
|
487
|
-
};
|
|
488
|
-
break;
|
|
489
|
-
case 34:
|
|
490
|
-
this.$ = d.Cardinality.ZERO_OR_ONE;
|
|
491
|
-
break;
|
|
492
|
-
case 35:
|
|
493
|
-
this.$ = d.Cardinality.ZERO_OR_MORE;
|
|
494
|
-
break;
|
|
495
|
-
case 36:
|
|
496
|
-
this.$ = d.Cardinality.ONE_OR_MORE;
|
|
497
|
-
break;
|
|
498
|
-
case 37:
|
|
499
|
-
this.$ = d.Cardinality.ONLY_ONE;
|
|
500
|
-
break;
|
|
501
|
-
case 38:
|
|
502
|
-
this.$ = d.Cardinality.MD_PARENT;
|
|
503
|
-
break;
|
|
504
|
-
case 39:
|
|
505
|
-
this.$ = d.Identification.NON_IDENTIFYING;
|
|
506
|
-
break;
|
|
507
|
-
case 40:
|
|
508
|
-
this.$ = d.Identification.IDENTIFYING;
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
table: [
|
|
513
|
-
{
|
|
514
|
-
3: 1,
|
|
515
|
-
4: [
|
|
516
|
-
1,
|
|
517
|
-
2
|
|
518
|
-
]
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
1: [
|
|
522
|
-
3
|
|
523
|
-
]
|
|
524
|
-
},
|
|
525
|
-
t(e, [
|
|
526
|
-
2,
|
|
527
|
-
2
|
|
528
|
-
], {
|
|
529
|
-
5: 3
|
|
530
|
-
}),
|
|
531
|
-
{
|
|
532
|
-
6: [
|
|
533
|
-
1,
|
|
534
|
-
4
|
|
535
|
-
],
|
|
536
|
-
7: 5,
|
|
537
|
-
8: [
|
|
538
|
-
1,
|
|
539
|
-
6
|
|
540
|
-
],
|
|
541
|
-
9: 7,
|
|
542
|
-
10: [
|
|
543
|
-
1,
|
|
544
|
-
8
|
|
545
|
-
],
|
|
546
|
-
11: 9,
|
|
547
|
-
20: r,
|
|
548
|
-
22: u,
|
|
549
|
-
24: l,
|
|
550
|
-
26: p,
|
|
551
|
-
27: f,
|
|
552
|
-
28: o
|
|
553
|
-
},
|
|
554
|
-
t(e, [
|
|
555
|
-
2,
|
|
556
|
-
7
|
|
557
|
-
], {
|
|
558
|
-
1: [
|
|
559
|
-
2,
|
|
560
|
-
1
|
|
561
|
-
]
|
|
562
|
-
}),
|
|
563
|
-
t(e, [
|
|
564
|
-
2,
|
|
565
|
-
3
|
|
566
|
-
]),
|
|
567
|
-
{
|
|
568
|
-
9: 16,
|
|
569
|
-
11: 9,
|
|
570
|
-
20: r,
|
|
571
|
-
22: u,
|
|
572
|
-
24: l,
|
|
573
|
-
26: p,
|
|
574
|
-
27: f,
|
|
575
|
-
28: o
|
|
576
|
-
},
|
|
577
|
-
t(e, [
|
|
578
|
-
2,
|
|
579
|
-
5
|
|
580
|
-
]),
|
|
581
|
-
t(e, [
|
|
582
|
-
2,
|
|
583
|
-
6
|
|
584
|
-
]),
|
|
585
|
-
t(e, [
|
|
586
|
-
2,
|
|
587
|
-
11
|
|
588
|
-
], {
|
|
589
|
-
12: 17,
|
|
590
|
-
39: 20,
|
|
591
|
-
15: [
|
|
592
|
-
1,
|
|
593
|
-
18
|
|
594
|
-
],
|
|
595
|
-
18: [
|
|
596
|
-
1,
|
|
597
|
-
19
|
|
598
|
-
],
|
|
599
|
-
41: h,
|
|
600
|
-
42: _,
|
|
601
|
-
43: m,
|
|
602
|
-
44: g,
|
|
603
|
-
45: x
|
|
604
|
-
}),
|
|
605
|
-
{
|
|
606
|
-
21: [
|
|
607
|
-
1,
|
|
608
|
-
26
|
|
609
|
-
]
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
23: [
|
|
613
|
-
1,
|
|
614
|
-
27
|
|
615
|
-
]
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
25: [
|
|
619
|
-
1,
|
|
620
|
-
28
|
|
621
|
-
]
|
|
622
|
-
},
|
|
623
|
-
t(e, [
|
|
624
|
-
2,
|
|
625
|
-
18
|
|
626
|
-
]),
|
|
627
|
-
t(y, [
|
|
628
|
-
2,
|
|
629
|
-
19
|
|
630
|
-
]),
|
|
631
|
-
t(y, [
|
|
632
|
-
2,
|
|
633
|
-
20
|
|
634
|
-
]),
|
|
635
|
-
t(e, [
|
|
636
|
-
2,
|
|
637
|
-
4
|
|
638
|
-
]),
|
|
639
|
-
{
|
|
640
|
-
11: 29,
|
|
641
|
-
27: f,
|
|
642
|
-
28: o
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
16: 30,
|
|
646
|
-
17: [
|
|
647
|
-
1,
|
|
648
|
-
31
|
|
649
|
-
],
|
|
650
|
-
29: 32,
|
|
651
|
-
30: 33,
|
|
652
|
-
34: N
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
11: 35,
|
|
656
|
-
27: f,
|
|
657
|
-
28: o
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
40: 36,
|
|
661
|
-
46: [
|
|
662
|
-
1,
|
|
663
|
-
37
|
|
664
|
-
],
|
|
665
|
-
47: [
|
|
666
|
-
1,
|
|
667
|
-
38
|
|
668
|
-
]
|
|
669
|
-
},
|
|
670
|
-
t(I, [
|
|
671
|
-
2,
|
|
672
|
-
34
|
|
673
|
-
]),
|
|
674
|
-
t(I, [
|
|
675
|
-
2,
|
|
676
|
-
35
|
|
677
|
-
]),
|
|
678
|
-
t(I, [
|
|
679
|
-
2,
|
|
680
|
-
36
|
|
681
|
-
]),
|
|
682
|
-
t(I, [
|
|
683
|
-
2,
|
|
684
|
-
37
|
|
685
|
-
]),
|
|
686
|
-
t(I, [
|
|
687
|
-
2,
|
|
688
|
-
38
|
|
689
|
-
]),
|
|
690
|
-
t(e, [
|
|
691
|
-
2,
|
|
692
|
-
15
|
|
693
|
-
]),
|
|
694
|
-
t(e, [
|
|
695
|
-
2,
|
|
696
|
-
16
|
|
697
|
-
]),
|
|
698
|
-
t(e, [
|
|
699
|
-
2,
|
|
700
|
-
17
|
|
701
|
-
]),
|
|
702
|
-
{
|
|
703
|
-
13: [
|
|
704
|
-
1,
|
|
705
|
-
39
|
|
706
|
-
]
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
17: [
|
|
710
|
-
1,
|
|
711
|
-
40
|
|
712
|
-
]
|
|
713
|
-
},
|
|
714
|
-
t(e, [
|
|
715
|
-
2,
|
|
716
|
-
10
|
|
717
|
-
]),
|
|
718
|
-
{
|
|
719
|
-
16: 41,
|
|
720
|
-
17: [
|
|
721
|
-
2,
|
|
722
|
-
21
|
|
723
|
-
],
|
|
724
|
-
29: 32,
|
|
725
|
-
30: 33,
|
|
726
|
-
34: N
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
31: 42,
|
|
730
|
-
34: [
|
|
731
|
-
1,
|
|
732
|
-
43
|
|
733
|
-
]
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
34: [
|
|
737
|
-
2,
|
|
738
|
-
27
|
|
739
|
-
]
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
19: [
|
|
743
|
-
1,
|
|
744
|
-
44
|
|
745
|
-
]
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
39: 45,
|
|
749
|
-
41: h,
|
|
750
|
-
42: _,
|
|
751
|
-
43: m,
|
|
752
|
-
44: g,
|
|
753
|
-
45: x
|
|
754
|
-
},
|
|
755
|
-
t(F, [
|
|
756
|
-
2,
|
|
757
|
-
39
|
|
758
|
-
]),
|
|
759
|
-
t(F, [
|
|
760
|
-
2,
|
|
761
|
-
40
|
|
762
|
-
]),
|
|
763
|
-
{
|
|
764
|
-
14: 46,
|
|
765
|
-
27: [
|
|
766
|
-
1,
|
|
767
|
-
49
|
|
768
|
-
],
|
|
769
|
-
28: [
|
|
770
|
-
1,
|
|
771
|
-
48
|
|
772
|
-
],
|
|
773
|
-
48: [
|
|
774
|
-
1,
|
|
775
|
-
47
|
|
776
|
-
]
|
|
777
|
-
},
|
|
778
|
-
t(e, [
|
|
779
|
-
2,
|
|
780
|
-
9
|
|
781
|
-
]),
|
|
782
|
-
{
|
|
783
|
-
17: [
|
|
784
|
-
2,
|
|
785
|
-
22
|
|
786
|
-
]
|
|
787
|
-
},
|
|
788
|
-
t(W, [
|
|
789
|
-
2,
|
|
790
|
-
23
|
|
791
|
-
], {
|
|
792
|
-
32: 50,
|
|
793
|
-
33: 51,
|
|
794
|
-
35: 52,
|
|
795
|
-
37: C,
|
|
796
|
-
38: T
|
|
797
|
-
}),
|
|
798
|
-
t([
|
|
799
|
-
17,
|
|
800
|
-
34,
|
|
801
|
-
37,
|
|
802
|
-
38
|
|
803
|
-
], [
|
|
804
|
-
2,
|
|
805
|
-
28
|
|
806
|
-
]),
|
|
807
|
-
t(e, [
|
|
808
|
-
2,
|
|
809
|
-
14
|
|
810
|
-
], {
|
|
811
|
-
15: [
|
|
812
|
-
1,
|
|
813
|
-
55
|
|
814
|
-
]
|
|
815
|
-
}),
|
|
816
|
-
t([
|
|
817
|
-
27,
|
|
818
|
-
28
|
|
819
|
-
], [
|
|
820
|
-
2,
|
|
821
|
-
33
|
|
822
|
-
]),
|
|
823
|
-
t(e, [
|
|
824
|
-
2,
|
|
825
|
-
8
|
|
826
|
-
]),
|
|
827
|
-
t(e, [
|
|
828
|
-
2,
|
|
829
|
-
41
|
|
830
|
-
]),
|
|
831
|
-
t(e, [
|
|
832
|
-
2,
|
|
833
|
-
42
|
|
834
|
-
]),
|
|
835
|
-
t(e, [
|
|
836
|
-
2,
|
|
837
|
-
43
|
|
838
|
-
]),
|
|
839
|
-
t(W, [
|
|
840
|
-
2,
|
|
841
|
-
24
|
|
842
|
-
], {
|
|
843
|
-
33: 56,
|
|
844
|
-
36: [
|
|
845
|
-
1,
|
|
846
|
-
57
|
|
847
|
-
],
|
|
848
|
-
38: T
|
|
849
|
-
}),
|
|
850
|
-
t(W, [
|
|
851
|
-
2,
|
|
852
|
-
25
|
|
853
|
-
]),
|
|
854
|
-
t(M, [
|
|
855
|
-
2,
|
|
856
|
-
29
|
|
857
|
-
]),
|
|
858
|
-
t(W, [
|
|
859
|
-
2,
|
|
860
|
-
32
|
|
861
|
-
]),
|
|
862
|
-
t(M, [
|
|
863
|
-
2,
|
|
864
|
-
31
|
|
865
|
-
]),
|
|
866
|
-
{
|
|
867
|
-
16: 58,
|
|
868
|
-
17: [
|
|
869
|
-
1,
|
|
870
|
-
59
|
|
871
|
-
],
|
|
872
|
-
29: 32,
|
|
873
|
-
30: 33,
|
|
874
|
-
34: N
|
|
875
|
-
},
|
|
876
|
-
t(W, [
|
|
877
|
-
2,
|
|
878
|
-
26
|
|
879
|
-
]),
|
|
880
|
-
{
|
|
881
|
-
35: 60,
|
|
882
|
-
37: C
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
17: [
|
|
886
|
-
1,
|
|
887
|
-
61
|
|
888
|
-
]
|
|
889
|
-
},
|
|
890
|
-
t(e, [
|
|
891
|
-
2,
|
|
892
|
-
13
|
|
893
|
-
]),
|
|
894
|
-
t(M, [
|
|
895
|
-
2,
|
|
896
|
-
30
|
|
897
|
-
]),
|
|
898
|
-
t(e, [
|
|
899
|
-
2,
|
|
900
|
-
12
|
|
901
|
-
])
|
|
902
|
-
],
|
|
903
|
-
defaultActions: {
|
|
904
|
-
34: [
|
|
905
|
-
2,
|
|
906
|
-
27
|
|
907
|
-
],
|
|
908
|
-
41: [
|
|
909
|
-
2,
|
|
910
|
-
22
|
|
911
|
-
]
|
|
912
|
-
},
|
|
913
|
-
parseError: function parseError(a, n) {
|
|
914
|
-
if (n.recoverable) this.trace(a);
|
|
915
|
-
else {
|
|
916
|
-
var c = new Error(a);
|
|
917
|
-
throw c.hash = n, c;
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
parse: function parse(a) {
|
|
921
|
-
var n = this, c = [
|
|
922
|
-
0
|
|
923
|
-
], d = [], E = [
|
|
924
|
-
null
|
|
925
|
-
], i = [], K = this.table, s = "", Q = 0, st = 0, ft = 2, ot = 1, yt = i.slice.call(arguments, 1), b = Object.create(this.lexer), G = {
|
|
926
|
-
yy: {}
|
|
927
|
-
};
|
|
928
|
-
for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy, J) && (G.yy[J] = this.yy[J]);
|
|
929
|
-
b.setInput(a, G.yy), G.yy.lexer = b, G.yy.parser = this, _type_of(b.yylloc) > "u" && (b.yylloc = {});
|
|
930
|
-
var $ = b.yylloc;
|
|
931
|
-
i.push($);
|
|
932
|
-
var pt = b.options && b.options.ranges;
|
|
933
|
-
typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
934
|
-
function _t() {
|
|
935
|
-
var Y;
|
|
936
|
-
return Y = d.pop() || b.lex() || ot, typeof Y != "number" && (_instanceof(Y, Array) && (d = Y, Y = d.pop()), Y = n.symbols_[Y] || Y), Y;
|
|
937
|
-
}
|
|
938
|
-
for(var w, H, D, tt, z = {}, j, P, lt, q;;){
|
|
939
|
-
if (H = c[c.length - 1], this.defaultActions[H] ? D = this.defaultActions[H] : ((w === null || (typeof w === "undefined" ? "undefined" : _type_of(w)) > "u") && (w = _t()), D = K[H] && K[H][w]), (typeof D === "undefined" ? "undefined" : _type_of(D)) > "u" || !D.length || !D[0]) {
|
|
940
|
-
var et = "";
|
|
941
|
-
q = [];
|
|
942
|
-
for(j in K[H])this.terminals_[j] && j > ft && q.push("'" + this.terminals_[j] + "'");
|
|
943
|
-
b.showPosition ? et = "Parse error on line " + (Q + 1) + ":\n" + b.showPosition() + "\nExpecting " + q.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : et = "Parse error on line " + (Q + 1) + ": Unexpected " + (w == ot ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(et, {
|
|
944
|
-
text: b.match,
|
|
945
|
-
token: this.terminals_[w] || w,
|
|
946
|
-
line: b.yylineno,
|
|
947
|
-
loc: $,
|
|
948
|
-
expected: q
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
if (_instanceof(D[0], Array) && D.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
|
|
952
|
-
switch(D[0]){
|
|
953
|
-
case 1:
|
|
954
|
-
c.push(w), E.push(b.yytext), i.push(b.yylloc), c.push(D[1]), w = null, st = b.yyleng, s = b.yytext, Q = b.yylineno, $ = b.yylloc;
|
|
955
|
-
break;
|
|
956
|
-
case 2:
|
|
957
|
-
if (P = this.productions_[D[1]][1], z.$ = E[E.length - P], z._$ = {
|
|
958
|
-
first_line: i[i.length - (P || 1)].first_line,
|
|
959
|
-
last_line: i[i.length - 1].last_line,
|
|
960
|
-
first_column: i[i.length - (P || 1)].first_column,
|
|
961
|
-
last_column: i[i.length - 1].last_column
|
|
962
|
-
}, pt && (z._$.range = [
|
|
963
|
-
i[i.length - (P || 1)].range[0],
|
|
964
|
-
i[i.length - 1].range[1]
|
|
965
|
-
]), tt = this.performAction.apply(z, [
|
|
966
|
-
s,
|
|
967
|
-
st,
|
|
968
|
-
Q,
|
|
969
|
-
G.yy,
|
|
970
|
-
D[1],
|
|
971
|
-
E,
|
|
972
|
-
i
|
|
973
|
-
].concat(yt)), (typeof tt === "undefined" ? "undefined" : _type_of(tt)) < "u") return tt;
|
|
974
|
-
P && (c = c.slice(0, -1 * P * 2), E = E.slice(0, -1 * P), i = i.slice(0, -1 * P)), c.push(this.productions_[D[1]][0]), E.push(z.$), i.push(z._$), lt = K[c[c.length - 2]][c[c.length - 1]], c.push(lt);
|
|
975
|
-
break;
|
|
976
|
-
case 3:
|
|
977
|
-
return true;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
return true;
|
|
981
|
-
}
|
|
982
|
-
}, O = function() {
|
|
983
|
-
var S = {
|
|
984
|
-
EOF: 1,
|
|
985
|
-
parseError: function parseError(n, c) {
|
|
986
|
-
if (this.yy.parser) this.yy.parser.parseError(n, c);
|
|
987
|
-
else throw new Error(n);
|
|
988
|
-
},
|
|
989
|
-
// resets the lexer, sets new input
|
|
990
|
-
setInput: function setInput(a, n) {
|
|
991
|
-
return this.yy = n || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
992
|
-
"INITIAL"
|
|
993
|
-
], this.yylloc = {
|
|
994
|
-
first_line: 1,
|
|
995
|
-
first_column: 0,
|
|
996
|
-
last_line: 1,
|
|
997
|
-
last_column: 0
|
|
998
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
999
|
-
0,
|
|
1000
|
-
0
|
|
1001
|
-
]), this.offset = 0, this;
|
|
1002
|
-
},
|
|
1003
|
-
// consumes and returns one char from the input
|
|
1004
|
-
input: function input() {
|
|
1005
|
-
var a = this._input[0];
|
|
1006
|
-
this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
|
|
1007
|
-
var n = a.match(/(?:\r\n?|\n).*/g);
|
|
1008
|
-
return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
|
|
1009
|
-
},
|
|
1010
|
-
// unshifts one char (or a string) into the input
|
|
1011
|
-
unput: function unput(a) {
|
|
1012
|
-
var n = a.length, c = a.split(/(?:\r\n?|\n)/g);
|
|
1013
|
-
this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
1014
|
-
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
1015
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
1016
|
-
var E = this.yylloc.range;
|
|
1017
|
-
return this.yylloc = {
|
|
1018
|
-
first_line: this.yylloc.first_line,
|
|
1019
|
-
last_line: this.yylineno + 1,
|
|
1020
|
-
first_column: this.yylloc.first_column,
|
|
1021
|
-
last_column: c ? (c.length === d.length ? this.yylloc.first_column : 0) + d[d.length - c.length].length - c[0].length : this.yylloc.first_column - n
|
|
1022
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
1023
|
-
E[0],
|
|
1024
|
-
E[0] + this.yyleng - n
|
|
1025
|
-
]), this.yyleng = this.yytext.length, this;
|
|
1026
|
-
},
|
|
1027
|
-
// When called from action, caches matched text and appends it on next action
|
|
1028
|
-
more: function more() {
|
|
1029
|
-
return this._more = true, this;
|
|
1030
|
-
},
|
|
1031
|
-
// 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.
|
|
1032
|
-
reject: function reject() {
|
|
1033
|
-
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
1034
|
-
else 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).\n" + this.showPosition(), {
|
|
1035
|
-
text: "",
|
|
1036
|
-
token: null,
|
|
1037
|
-
line: this.yylineno
|
|
1038
|
-
});
|
|
1039
|
-
return this;
|
|
1040
|
-
},
|
|
1041
|
-
// retain first n characters of the match
|
|
1042
|
-
less: function less(a) {
|
|
1043
|
-
this.unput(this.match.slice(a));
|
|
1044
|
-
},
|
|
1045
|
-
// displays already matched input, i.e. for error messages
|
|
1046
|
-
pastInput: function pastInput() {
|
|
1047
|
-
var a = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1048
|
-
return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
|
|
1049
|
-
},
|
|
1050
|
-
// displays upcoming input, i.e. for error messages
|
|
1051
|
-
upcomingInput: function upcomingInput() {
|
|
1052
|
-
var a = this.match;
|
|
1053
|
-
return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1054
|
-
},
|
|
1055
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
1056
|
-
showPosition: function showPosition() {
|
|
1057
|
-
var a = this.pastInput(), n = new Array(a.length + 1).join("-");
|
|
1058
|
-
return a + this.upcomingInput() + "\n" + n + "^";
|
|
1059
|
-
},
|
|
1060
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
1061
|
-
test_match: function test_match(a, n) {
|
|
1062
|
-
var c, d, E;
|
|
1063
|
-
if (this.options.backtrack_lexer && (E = {
|
|
1064
|
-
yylineno: this.yylineno,
|
|
1065
|
-
yylloc: {
|
|
1066
|
-
first_line: this.yylloc.first_line,
|
|
1067
|
-
last_line: this.last_line,
|
|
1068
|
-
first_column: this.yylloc.first_column,
|
|
1069
|
-
last_column: this.yylloc.last_column
|
|
1070
|
-
},
|
|
1071
|
-
yytext: this.yytext,
|
|
1072
|
-
match: this.match,
|
|
1073
|
-
matches: this.matches,
|
|
1074
|
-
matched: this.matched,
|
|
1075
|
-
yyleng: this.yyleng,
|
|
1076
|
-
offset: this.offset,
|
|
1077
|
-
_more: this._more,
|
|
1078
|
-
_input: this._input,
|
|
1079
|
-
yy: this.yy,
|
|
1080
|
-
conditionStack: this.conditionStack.slice(0),
|
|
1081
|
-
done: this.done
|
|
1082
|
-
}, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), d = a[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
1083
|
-
first_line: this.yylloc.last_line,
|
|
1084
|
-
last_line: this.yylineno + 1,
|
|
1085
|
-
first_column: this.yylloc.last_column,
|
|
1086
|
-
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
|
|
1087
|
-
}, this.yytext += a[0], this.match += a[0], this.matches = a, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
1088
|
-
this.offset,
|
|
1089
|
-
this.offset += this.yyleng
|
|
1090
|
-
]), this._more = false, this._backtrack = false, this._input = this._input.slice(a[0].length), this.matched += a[0], c = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c) return c;
|
|
1091
|
-
if (this._backtrack) {
|
|
1092
|
-
for(var i in E)this[i] = E[i];
|
|
1093
|
-
return false;
|
|
1094
|
-
}
|
|
1095
|
-
return false;
|
|
1096
|
-
},
|
|
1097
|
-
// return next match in input
|
|
1098
|
-
next: function next() {
|
|
1099
|
-
if (this.done) return this.EOF;
|
|
1100
|
-
this._input || (this.done = true);
|
|
1101
|
-
var a, n, c, d;
|
|
1102
|
-
this._more || (this.yytext = "", this.match = "");
|
|
1103
|
-
for(var E = this._currentRules(), i = 0; i < E.length; i++)if (c = this._input.match(this.rules[E[i]]), c && (!n || c[0].length > n[0].length)) {
|
|
1104
|
-
if (n = c, d = i, this.options.backtrack_lexer) {
|
|
1105
|
-
if (a = this.test_match(c, E[i]), a !== false) return a;
|
|
1106
|
-
if (this._backtrack) {
|
|
1107
|
-
n = false;
|
|
1108
|
-
continue;
|
|
1109
|
-
} else return false;
|
|
1110
|
-
} else if (!this.options.flex) break;
|
|
1111
|
-
}
|
|
1112
|
-
return n ? (a = this.test_match(n, E[d]), a !== false ? a : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1113
|
-
text: "",
|
|
1114
|
-
token: null,
|
|
1115
|
-
line: this.yylineno
|
|
1116
|
-
});
|
|
1117
|
-
},
|
|
1118
|
-
// return next match that has a token
|
|
1119
|
-
lex: function lex() {
|
|
1120
|
-
var n = this.next();
|
|
1121
|
-
return n || this.lex();
|
|
1122
|
-
},
|
|
1123
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
1124
|
-
begin: function begin(n) {
|
|
1125
|
-
this.conditionStack.push(n);
|
|
1126
|
-
},
|
|
1127
|
-
// pop the previously active lexer condition state off the condition stack
|
|
1128
|
-
popState: function popState() {
|
|
1129
|
-
var n = this.conditionStack.length - 1;
|
|
1130
|
-
return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1131
|
-
},
|
|
1132
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
1133
|
-
_currentRules: function _currentRules() {
|
|
1134
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1135
|
-
},
|
|
1136
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
1137
|
-
topState: function topState(n) {
|
|
1138
|
-
return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
|
|
1139
|
-
},
|
|
1140
|
-
// alias for begin(condition)
|
|
1141
|
-
pushState: function pushState(n) {
|
|
1142
|
-
this.begin(n);
|
|
1143
|
-
},
|
|
1144
|
-
// return the number of states currently on the stack
|
|
1145
|
-
stateStackSize: function stateStackSize() {
|
|
1146
|
-
return this.conditionStack.length;
|
|
1147
|
-
},
|
|
1148
|
-
options: {
|
|
1149
|
-
"case-insensitive": true
|
|
1150
|
-
},
|
|
1151
|
-
performAction: function performAction(n, c, d, E) {
|
|
1152
|
-
switch(d){
|
|
1153
|
-
case 0:
|
|
1154
|
-
return this.begin("acc_title"), 22;
|
|
1155
|
-
case 1:
|
|
1156
|
-
return this.popState(), "acc_title_value";
|
|
1157
|
-
case 2:
|
|
1158
|
-
return this.begin("acc_descr"), 24;
|
|
1159
|
-
case 3:
|
|
1160
|
-
return this.popState(), "acc_descr_value";
|
|
1161
|
-
case 4:
|
|
1162
|
-
this.begin("acc_descr_multiline");
|
|
1163
|
-
break;
|
|
1164
|
-
case 5:
|
|
1165
|
-
this.popState();
|
|
1166
|
-
break;
|
|
1167
|
-
case 6:
|
|
1168
|
-
return "acc_descr_multiline_value";
|
|
1169
|
-
case 7:
|
|
1170
|
-
return 10;
|
|
1171
|
-
case 8:
|
|
1172
|
-
break;
|
|
1173
|
-
case 9:
|
|
1174
|
-
return 8;
|
|
1175
|
-
case 10:
|
|
1176
|
-
return 28;
|
|
1177
|
-
case 11:
|
|
1178
|
-
return 48;
|
|
1179
|
-
case 12:
|
|
1180
|
-
return 4;
|
|
1181
|
-
case 13:
|
|
1182
|
-
return this.begin("block"), 15;
|
|
1183
|
-
case 14:
|
|
1184
|
-
return 36;
|
|
1185
|
-
case 15:
|
|
1186
|
-
break;
|
|
1187
|
-
case 16:
|
|
1188
|
-
return 37;
|
|
1189
|
-
case 17:
|
|
1190
|
-
return 34;
|
|
1191
|
-
case 18:
|
|
1192
|
-
return 34;
|
|
1193
|
-
case 19:
|
|
1194
|
-
return 38;
|
|
1195
|
-
case 20:
|
|
1196
|
-
break;
|
|
1197
|
-
case 21:
|
|
1198
|
-
return this.popState(), 17;
|
|
1199
|
-
case 22:
|
|
1200
|
-
return c.yytext[0];
|
|
1201
|
-
case 23:
|
|
1202
|
-
return 18;
|
|
1203
|
-
case 24:
|
|
1204
|
-
return 19;
|
|
1205
|
-
case 25:
|
|
1206
|
-
return 41;
|
|
1207
|
-
case 26:
|
|
1208
|
-
return 43;
|
|
1209
|
-
case 27:
|
|
1210
|
-
return 43;
|
|
1211
|
-
case 28:
|
|
1212
|
-
return 43;
|
|
1213
|
-
case 29:
|
|
1214
|
-
return 41;
|
|
1215
|
-
case 30:
|
|
1216
|
-
return 41;
|
|
1217
|
-
case 31:
|
|
1218
|
-
return 42;
|
|
1219
|
-
case 32:
|
|
1220
|
-
return 42;
|
|
1221
|
-
case 33:
|
|
1222
|
-
return 42;
|
|
1223
|
-
case 34:
|
|
1224
|
-
return 42;
|
|
1225
|
-
case 35:
|
|
1226
|
-
return 42;
|
|
1227
|
-
case 36:
|
|
1228
|
-
return 43;
|
|
1229
|
-
case 37:
|
|
1230
|
-
return 42;
|
|
1231
|
-
case 38:
|
|
1232
|
-
return 43;
|
|
1233
|
-
case 39:
|
|
1234
|
-
return 44;
|
|
1235
|
-
case 40:
|
|
1236
|
-
return 44;
|
|
1237
|
-
case 41:
|
|
1238
|
-
return 44;
|
|
1239
|
-
case 42:
|
|
1240
|
-
return 44;
|
|
1241
|
-
case 43:
|
|
1242
|
-
return 41;
|
|
1243
|
-
case 44:
|
|
1244
|
-
return 42;
|
|
1245
|
-
case 45:
|
|
1246
|
-
return 43;
|
|
1247
|
-
case 46:
|
|
1248
|
-
return 45;
|
|
1249
|
-
case 47:
|
|
1250
|
-
return 46;
|
|
1251
|
-
case 48:
|
|
1252
|
-
return 47;
|
|
1253
|
-
case 49:
|
|
1254
|
-
return 47;
|
|
1255
|
-
case 50:
|
|
1256
|
-
return 46;
|
|
1257
|
-
case 51:
|
|
1258
|
-
return 46;
|
|
1259
|
-
case 52:
|
|
1260
|
-
return 46;
|
|
1261
|
-
case 53:
|
|
1262
|
-
return 27;
|
|
1263
|
-
case 54:
|
|
1264
|
-
return c.yytext[0];
|
|
1265
|
-
case 55:
|
|
1266
|
-
return 6;
|
|
1267
|
-
}
|
|
1268
|
-
},
|
|
1269
|
-
rules: [
|
|
1270
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
1271
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1272
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
1273
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1274
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
1275
|
-
/^(?:[\}])/i,
|
|
1276
|
-
/^(?:[^\}]*)/i,
|
|
1277
|
-
/^(?:[\n]+)/i,
|
|
1278
|
-
/^(?:\s+)/i,
|
|
1279
|
-
/^(?:[\s]+)/i,
|
|
1280
|
-
/^(?:"[^"%\r\n\v\b\\]+")/i,
|
|
1281
|
-
/^(?:"[^"]*")/i,
|
|
1282
|
-
/^(?:erDiagram\b)/i,
|
|
1283
|
-
/^(?:\{)/i,
|
|
1284
|
-
/^(?:,)/i,
|
|
1285
|
-
/^(?:\s+)/i,
|
|
1286
|
-
/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,
|
|
1287
|
-
/^(?:(.*?)[~](.*?)*[~])/i,
|
|
1288
|
-
/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,
|
|
1289
|
-
/^(?:"[^"]*")/i,
|
|
1290
|
-
/^(?:[\n]+)/i,
|
|
1291
|
-
/^(?:\})/i,
|
|
1292
|
-
/^(?:.)/i,
|
|
1293
|
-
/^(?:\[)/i,
|
|
1294
|
-
/^(?:\])/i,
|
|
1295
|
-
/^(?:one or zero\b)/i,
|
|
1296
|
-
/^(?:one or more\b)/i,
|
|
1297
|
-
/^(?:one or many\b)/i,
|
|
1298
|
-
/^(?:1\+)/i,
|
|
1299
|
-
/^(?:\|o\b)/i,
|
|
1300
|
-
/^(?:zero or one\b)/i,
|
|
1301
|
-
/^(?:zero or more\b)/i,
|
|
1302
|
-
/^(?:zero or many\b)/i,
|
|
1303
|
-
/^(?:0\+)/i,
|
|
1304
|
-
/^(?:\}o\b)/i,
|
|
1305
|
-
/^(?:many\(0\))/i,
|
|
1306
|
-
/^(?:many\(1\))/i,
|
|
1307
|
-
/^(?:many\b)/i,
|
|
1308
|
-
/^(?:\}\|)/i,
|
|
1309
|
-
/^(?:one\b)/i,
|
|
1310
|
-
/^(?:only one\b)/i,
|
|
1311
|
-
/^(?:1\b)/i,
|
|
1312
|
-
/^(?:\|\|)/i,
|
|
1313
|
-
/^(?:o\|)/i,
|
|
1314
|
-
/^(?:o\{)/i,
|
|
1315
|
-
/^(?:\|\{)/i,
|
|
1316
|
-
/^(?:\s*u\b)/i,
|
|
1317
|
-
/^(?:\.\.)/i,
|
|
1318
|
-
/^(?:--)/i,
|
|
1319
|
-
/^(?:to\b)/i,
|
|
1320
|
-
/^(?:optionally to\b)/i,
|
|
1321
|
-
/^(?:\.-)/i,
|
|
1322
|
-
/^(?:-\.)/i,
|
|
1323
|
-
/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,
|
|
1324
|
-
/^(?:.)/i,
|
|
1325
|
-
/^(?:$)/i
|
|
1326
|
-
],
|
|
1327
|
-
conditions: {
|
|
1328
|
-
acc_descr_multiline: {
|
|
1329
|
-
rules: [
|
|
1330
|
-
5,
|
|
1331
|
-
6
|
|
1332
|
-
],
|
|
1333
|
-
inclusive: false
|
|
1334
|
-
},
|
|
1335
|
-
acc_descr: {
|
|
1336
|
-
rules: [
|
|
1337
|
-
3
|
|
1338
|
-
],
|
|
1339
|
-
inclusive: false
|
|
1340
|
-
},
|
|
1341
|
-
acc_title: {
|
|
1342
|
-
rules: [
|
|
1343
|
-
1
|
|
1344
|
-
],
|
|
1345
|
-
inclusive: false
|
|
1346
|
-
},
|
|
1347
|
-
block: {
|
|
1348
|
-
rules: [
|
|
1349
|
-
14,
|
|
1350
|
-
15,
|
|
1351
|
-
16,
|
|
1352
|
-
17,
|
|
1353
|
-
18,
|
|
1354
|
-
19,
|
|
1355
|
-
20,
|
|
1356
|
-
21,
|
|
1357
|
-
22
|
|
1358
|
-
],
|
|
1359
|
-
inclusive: false
|
|
1360
|
-
},
|
|
1361
|
-
INITIAL: {
|
|
1362
|
-
rules: [
|
|
1363
|
-
0,
|
|
1364
|
-
2,
|
|
1365
|
-
4,
|
|
1366
|
-
7,
|
|
1367
|
-
8,
|
|
1368
|
-
9,
|
|
1369
|
-
10,
|
|
1370
|
-
11,
|
|
1371
|
-
12,
|
|
1372
|
-
13,
|
|
1373
|
-
23,
|
|
1374
|
-
24,
|
|
1375
|
-
25,
|
|
1376
|
-
26,
|
|
1377
|
-
27,
|
|
1378
|
-
28,
|
|
1379
|
-
29,
|
|
1380
|
-
30,
|
|
1381
|
-
31,
|
|
1382
|
-
32,
|
|
1383
|
-
33,
|
|
1384
|
-
34,
|
|
1385
|
-
35,
|
|
1386
|
-
36,
|
|
1387
|
-
37,
|
|
1388
|
-
38,
|
|
1389
|
-
39,
|
|
1390
|
-
40,
|
|
1391
|
-
41,
|
|
1392
|
-
42,
|
|
1393
|
-
43,
|
|
1394
|
-
44,
|
|
1395
|
-
45,
|
|
1396
|
-
46,
|
|
1397
|
-
47,
|
|
1398
|
-
48,
|
|
1399
|
-
49,
|
|
1400
|
-
50,
|
|
1401
|
-
51,
|
|
1402
|
-
52,
|
|
1403
|
-
53,
|
|
1404
|
-
54,
|
|
1405
|
-
55
|
|
1406
|
-
],
|
|
1407
|
-
inclusive: true
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
};
|
|
1411
|
-
return S;
|
|
1412
|
-
}();
|
|
1413
|
-
R.lexer = O;
|
|
1414
|
-
function L() {
|
|
1415
|
-
this.yy = {};
|
|
1416
|
-
}
|
|
1417
|
-
return L.prototype = R, R.Parser = L, new L();
|
|
1418
|
-
}();
|
|
1419
|
-
at.parser = at;
|
|
1420
|
-
var It = at;
|
|
1421
|
-
var U = {}, nt = [];
|
|
1422
|
-
var Dt = {
|
|
1423
|
-
ZERO_OR_ONE: "ZERO_OR_ONE",
|
|
1424
|
-
ZERO_OR_MORE: "ZERO_OR_MORE",
|
|
1425
|
-
ONE_OR_MORE: "ONE_OR_MORE",
|
|
1426
|
-
ONLY_ONE: "ONLY_ONE",
|
|
1427
|
-
MD_PARENT: "MD_PARENT"
|
|
1428
|
-
}, Lt = {
|
|
1429
|
-
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
1430
|
-
IDENTIFYING: "IDENTIFYING"
|
|
1431
|
-
}, dt = function dt(t) {
|
|
1432
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0;
|
|
1433
|
-
return U[t] === void 0 ? (U[t] = {
|
|
1434
|
-
attributes: [],
|
|
1435
|
-
alias: e
|
|
1436
|
-
}, index.L.info("Added new entity :", t)) : U[t] && !U[t].alias && e && (U[t].alias = e, index.L.info("Add alias '".concat(e, "' to entity '").concat(t, "'"))), U[t];
|
|
1437
|
-
}, vt = function() {
|
|
1438
|
-
return U;
|
|
1439
|
-
}, Bt = function Bt(t, e) {
|
|
1440
|
-
var r = dt(t), u;
|
|
1441
|
-
for(u = e.length - 1; u >= 0; u--)r.attributes.push(e[u]), index.L.debug("Added attribute ", e[u].attributeName);
|
|
1442
|
-
}, Ct = function Ct(t, e, r, u) {
|
|
1443
|
-
var l = {
|
|
1444
|
-
entityA: t,
|
|
1445
|
-
roleA: e,
|
|
1446
|
-
entityB: r,
|
|
1447
|
-
relSpec: u
|
|
1448
|
-
};
|
|
1449
|
-
nt.push(l), index.L.debug("Added new relationship :", l);
|
|
1450
|
-
}, Pt = function() {
|
|
1451
|
-
return nt;
|
|
1452
|
-
}, Yt = function Yt() {
|
|
1453
|
-
U = {}, nt = [], index.B_();
|
|
1454
|
-
}, Zt = {
|
|
1455
|
-
Cardinality: Dt,
|
|
1456
|
-
Identification: Lt,
|
|
1457
|
-
getConfig: function() {
|
|
1458
|
-
return index.Vn().er;
|
|
1459
|
-
},
|
|
1460
|
-
addEntity: dt,
|
|
1461
|
-
addAttributes: Bt,
|
|
1462
|
-
getEntities: vt,
|
|
1463
|
-
addRelationship: Ct,
|
|
1464
|
-
getRelationships: Pt,
|
|
1465
|
-
clear: Yt,
|
|
1466
|
-
setAccTitle: index.F_,
|
|
1467
|
-
getAccTitle: index.A_,
|
|
1468
|
-
setAccDescription: index.L_,
|
|
1469
|
-
getAccDescription: index.E_,
|
|
1470
|
-
setDiagramTitle: index.M_,
|
|
1471
|
-
getDiagramTitle: index.O_
|
|
1472
|
-
}, v = {
|
|
1473
|
-
ONLY_ONE_START: "ONLY_ONE_START",
|
|
1474
|
-
ONLY_ONE_END: "ONLY_ONE_END",
|
|
1475
|
-
ZERO_OR_ONE_START: "ZERO_OR_ONE_START",
|
|
1476
|
-
ZERO_OR_ONE_END: "ZERO_OR_ONE_END",
|
|
1477
|
-
ONE_OR_MORE_START: "ONE_OR_MORE_START",
|
|
1478
|
-
ONE_OR_MORE_END: "ONE_OR_MORE_END",
|
|
1479
|
-
ZERO_OR_MORE_START: "ZERO_OR_MORE_START",
|
|
1480
|
-
ZERO_OR_MORE_END: "ZERO_OR_MORE_END",
|
|
1481
|
-
MD_PARENT_END: "MD_PARENT_END",
|
|
1482
|
-
MD_PARENT_START: "MD_PARENT_START"
|
|
1483
|
-
}, Ft = function Ft(t, e) {
|
|
1484
|
-
var r;
|
|
1485
|
-
t.append("defs").append("marker").attr("id", v.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", v.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", v.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", v.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", v.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", v.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", v.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", v.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", v.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", v.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
1486
|
-
}, B = {
|
|
1487
|
-
ERMarkers: v,
|
|
1488
|
-
insertMarkers: Ft
|
|
1489
|
-
}, Wt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
1490
|
-
function Ut(t) {
|
|
1491
|
-
return typeof t == "string" && Wt.test(t);
|
|
1492
|
-
}
|
|
1493
|
-
var A = [];
|
|
1494
|
-
for(var t = 0; t < 256; ++t)A.push((t + 256).toString(16).slice(1));
|
|
1495
|
-
function Gt(t) {
|
|
1496
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
1497
|
-
return A[t[e + 0]] + A[t[e + 1]] + A[t[e + 2]] + A[t[e + 3]] + "-" + A[t[e + 4]] + A[t[e + 5]] + "-" + A[t[e + 6]] + A[t[e + 7]] + "-" + A[t[e + 8]] + A[t[e + 9]] + "-" + A[t[e + 10]] + A[t[e + 11]] + A[t[e + 12]] + A[t[e + 13]] + A[t[e + 14]] + A[t[e + 15]];
|
|
1498
|
-
}
|
|
1499
|
-
function Ht(t) {
|
|
1500
|
-
if (!Ut(t)) throw TypeError("Invalid UUID");
|
|
1501
|
-
var e;
|
|
1502
|
-
var r = new Uint8Array(16);
|
|
1503
|
-
return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r;
|
|
1504
|
-
}
|
|
1505
|
-
function zt(t) {
|
|
1506
|
-
t = unescape(encodeURIComponent(t));
|
|
1507
|
-
var e = [];
|
|
1508
|
-
for(var r = 0; r < t.length; ++r)e.push(t.charCodeAt(r));
|
|
1509
|
-
return e;
|
|
1510
|
-
}
|
|
1511
|
-
var Kt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Vt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1512
|
-
function Xt(t, e, r) {
|
|
1513
|
-
function u(l, p, f, o) {
|
|
1514
|
-
var h;
|
|
1515
|
-
if (typeof l == "string" && (l = zt(l)), typeof p == "string" && (p = Ht(p)), ((h = p) === null || h === void 0 ? void 0 : h.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
1516
|
-
var _ = new Uint8Array(16 + l.length);
|
|
1517
|
-
if (_.set(p), _.set(l, p.length), _ = r(_), _[6] = _[6] & 15 | e, _[8] = _[8] & 63 | 128, f) {
|
|
1518
|
-
o = o || 0;
|
|
1519
|
-
for(var m = 0; m < 16; ++m)f[o + m] = _[m];
|
|
1520
|
-
return f;
|
|
1521
|
-
}
|
|
1522
|
-
return Gt(_);
|
|
1523
|
-
}
|
|
1524
|
-
try {
|
|
1525
|
-
u.name = t;
|
|
1526
|
-
} catch (e) {}
|
|
1527
|
-
return u.DNS = Kt, u.URL = Vt, u;
|
|
1528
|
-
}
|
|
1529
|
-
function Qt(t, e, r, u) {
|
|
1530
|
-
switch(t){
|
|
1531
|
-
case 0:
|
|
1532
|
-
return e & r ^ ~e & u;
|
|
1533
|
-
case 1:
|
|
1534
|
-
return e ^ r ^ u;
|
|
1535
|
-
case 2:
|
|
1536
|
-
return e & r ^ e & u ^ r & u;
|
|
1537
|
-
case 3:
|
|
1538
|
-
return e ^ r ^ u;
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
function it(t, e) {
|
|
1542
|
-
return t << e | t >>> 32 - e;
|
|
1543
|
-
}
|
|
1544
|
-
function jt(t) {
|
|
1545
|
-
var e = [
|
|
1546
|
-
1518500249,
|
|
1547
|
-
1859775393,
|
|
1548
|
-
2400959708,
|
|
1549
|
-
3395469782
|
|
1550
|
-
], r = [
|
|
1551
|
-
1732584193,
|
|
1552
|
-
4023233417,
|
|
1553
|
-
2562383102,
|
|
1554
|
-
271733878,
|
|
1555
|
-
3285377520
|
|
1556
|
-
];
|
|
1557
|
-
if (typeof t == "string") {
|
|
1558
|
-
var f = unescape(encodeURIComponent(t));
|
|
1559
|
-
t = [];
|
|
1560
|
-
for(var o = 0; o < f.length; ++o)t.push(f.charCodeAt(o));
|
|
1561
|
-
} else Array.isArray(t) || (t = Array.prototype.slice.call(t));
|
|
1562
|
-
t.push(128);
|
|
1563
|
-
var u = t.length / 4 + 2, l = Math.ceil(u / 16), p = new Array(l);
|
|
1564
|
-
for(var f1 = 0; f1 < l; ++f1){
|
|
1565
|
-
var o1 = new Uint32Array(16);
|
|
1566
|
-
for(var h = 0; h < 16; ++h)o1[h] = t[f1 * 64 + h * 4] << 24 | t[f1 * 64 + h * 4 + 1] << 16 | t[f1 * 64 + h * 4 + 2] << 8 | t[f1 * 64 + h * 4 + 3];
|
|
1567
|
-
p[f1] = o1;
|
|
1568
|
-
}
|
|
1569
|
-
p[l - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), p[l - 1][14] = Math.floor(p[l - 1][14]), p[l - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
1570
|
-
for(var f2 = 0; f2 < l; ++f2){
|
|
1571
|
-
var o2 = new Uint32Array(80);
|
|
1572
|
-
for(var y = 0; y < 16; ++y)o2[y] = p[f2][y];
|
|
1573
|
-
for(var y1 = 16; y1 < 80; ++y1)o2[y1] = it(o2[y1 - 3] ^ o2[y1 - 8] ^ o2[y1 - 14] ^ o2[y1 - 16], 1);
|
|
1574
|
-
var h1 = r[0], _ = r[1], m = r[2], g = r[3], x = r[4];
|
|
1575
|
-
for(var y2 = 0; y2 < 80; ++y2){
|
|
1576
|
-
var N = Math.floor(y2 / 20), I = it(h1, 5) + Qt(N, _, m, g) + x + e[N] + o2[y2] >>> 0;
|
|
1577
|
-
x = g, g = m, m = it(_, 30) >>> 0, _ = h1, h1 = I;
|
|
1578
|
-
}
|
|
1579
|
-
r[0] = r[0] + h1 >>> 0, r[1] = r[1] + _ >>> 0, r[2] = r[2] + m >>> 0, r[3] = r[3] + g >>> 0, r[4] = r[4] + x >>> 0;
|
|
1580
|
-
}
|
|
1581
|
-
return [
|
|
1582
|
-
r[0] >> 24 & 255,
|
|
1583
|
-
r[0] >> 16 & 255,
|
|
1584
|
-
r[0] >> 8 & 255,
|
|
1585
|
-
r[0] & 255,
|
|
1586
|
-
r[1] >> 24 & 255,
|
|
1587
|
-
r[1] >> 16 & 255,
|
|
1588
|
-
r[1] >> 8 & 255,
|
|
1589
|
-
r[1] & 255,
|
|
1590
|
-
r[2] >> 24 & 255,
|
|
1591
|
-
r[2] >> 16 & 255,
|
|
1592
|
-
r[2] >> 8 & 255,
|
|
1593
|
-
r[2] & 255,
|
|
1594
|
-
r[3] >> 24 & 255,
|
|
1595
|
-
r[3] >> 16 & 255,
|
|
1596
|
-
r[3] >> 8 & 255,
|
|
1597
|
-
r[3] & 255,
|
|
1598
|
-
r[4] >> 24 & 255,
|
|
1599
|
-
r[4] >> 16 & 255,
|
|
1600
|
-
r[4] >> 8 & 255,
|
|
1601
|
-
r[4] & 255
|
|
1602
|
-
];
|
|
1603
|
-
}
|
|
1604
|
-
var qt = Xt("v5", 80, jt), Jt = qt, $t = /[^\dA-Za-z](\W)*/g;
|
|
1605
|
-
var k = {}, X = /* @__PURE__ */ new Map();
|
|
1606
|
-
var te = function te(t) {
|
|
1607
|
-
var e = Object.keys(t);
|
|
1608
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1609
|
-
try {
|
|
1610
|
-
for(var _iterator = e[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1611
|
-
var r = _step.value;
|
|
1612
|
-
k[r] = t[r];
|
|
1613
|
-
}
|
|
1614
|
-
} catch (err) {
|
|
1615
|
-
_didIteratorError = true;
|
|
1616
|
-
_iteratorError = err;
|
|
1617
|
-
} finally{
|
|
1618
|
-
try {
|
|
1619
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1620
|
-
_iterator.return();
|
|
1621
|
-
}
|
|
1622
|
-
} finally{
|
|
1623
|
-
if (_didIteratorError) {
|
|
1624
|
-
throw _iteratorError;
|
|
1625
|
-
}
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
}, ee = function(t, e, r) {
|
|
1629
|
-
var u = k.entityPadding / 3, l = k.entityPadding / 3, p = k.fontSize * 0.85, f = e.node().getBBox(), o = [];
|
|
1630
|
-
var h = false, _ = false, m = 0, g = 0, x = 0, y = 0, N = f.height + u * 2, I = 1;
|
|
1631
|
-
r.forEach(function(T) {
|
|
1632
|
-
T.attributeKeyTypeList !== void 0 && T.attributeKeyTypeList.length > 0 && (h = true), T.attributeComment !== void 0 && (_ = true);
|
|
1633
|
-
}), r.forEach(function(T) {
|
|
1634
|
-
var M = "".concat(e.node().id, "-attr-").concat(I);
|
|
1635
|
-
var R = 0;
|
|
1636
|
-
var O = index.C1(T.attributeType), L = t.append("text").classed("er entityLabel", true).attr("id", "".concat(M, "-type")).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", index.Vn().fontFamily).style("font-size", p + "px").text(O), S = t.append("text").classed("er entityLabel", true).attr("id", "".concat(M, "-name")).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", index.Vn().fontFamily).style("font-size", p + "px").text(T.attributeName), a = {};
|
|
1637
|
-
a.tn = L, a.nn = S;
|
|
1638
|
-
var n = L.node().getBBox(), c = S.node().getBBox();
|
|
1639
|
-
if (m = Math.max(m, n.width), g = Math.max(g, c.width), R = Math.max(n.height, c.height), h) {
|
|
1640
|
-
var d = T.attributeKeyTypeList !== void 0 ? T.attributeKeyTypeList.join(",") : "", E = t.append("text").classed("er entityLabel", true).attr("id", "".concat(M, "-key")).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", index.Vn().fontFamily).style("font-size", p + "px").text(d);
|
|
1641
|
-
a.kn = E;
|
|
1642
|
-
var i = E.node().getBBox();
|
|
1643
|
-
x = Math.max(x, i.width), R = Math.max(R, i.height);
|
|
1644
|
-
}
|
|
1645
|
-
if (_) {
|
|
1646
|
-
var d1 = t.append("text").classed("er entityLabel", true).attr("id", "".concat(M, "-comment")).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", index.Vn().fontFamily).style("font-size", p + "px").text(T.attributeComment || "");
|
|
1647
|
-
a.cn = d1;
|
|
1648
|
-
var E1 = d1.node().getBBox();
|
|
1649
|
-
y = Math.max(y, E1.width), R = Math.max(R, E1.height);
|
|
1650
|
-
}
|
|
1651
|
-
a.height = R, o.push(a), N += R + u * 2, I += 1;
|
|
1652
|
-
});
|
|
1653
|
-
var F = 4;
|
|
1654
|
-
h && (F += 2), _ && (F += 2);
|
|
1655
|
-
var W = m + g + x + y, C = {
|
|
1656
|
-
width: Math.max(k.minEntityWidth, Math.max(f.width + k.entityPadding * 2, W + l * F)),
|
|
1657
|
-
height: r.length > 0 ? N : Math.max(k.minEntityHeight, f.height + k.entityPadding * 2)
|
|
1658
|
-
};
|
|
1659
|
-
if (r.length > 0) {
|
|
1660
|
-
var T = Math.max(0, (C.width - W - l * F) / (F / 2));
|
|
1661
|
-
e.attr("transform", "translate(" + C.width / 2 + "," + (u + f.height / 2) + ")");
|
|
1662
|
-
var M = f.height + u * 2, R = "attributeBoxOdd";
|
|
1663
|
-
o.forEach(function(O) {
|
|
1664
|
-
var L = M + u + O.height / 2;
|
|
1665
|
-
O.tn.attr("transform", "translate(" + l + "," + L + ")");
|
|
1666
|
-
var S = t.insert("rect", "#" + O.tn.node().id).classed("er ".concat(R), true).attr("x", 0).attr("y", M).attr("width", m + l * 2 + T).attr("height", O.height + u * 2), a = parseFloat(S.attr("x")) + parseFloat(S.attr("width"));
|
|
1667
|
-
O.nn.attr("transform", "translate(" + (a + l) + "," + L + ")");
|
|
1668
|
-
var n = t.insert("rect", "#" + O.nn.node().id).classed("er ".concat(R), true).attr("x", a).attr("y", M).attr("width", g + l * 2 + T).attr("height", O.height + u * 2);
|
|
1669
|
-
var c = parseFloat(n.attr("x")) + parseFloat(n.attr("width"));
|
|
1670
|
-
if (h) {
|
|
1671
|
-
O.kn.attr("transform", "translate(" + (c + l) + "," + L + ")");
|
|
1672
|
-
var d = t.insert("rect", "#" + O.kn.node().id).classed("er ".concat(R), true).attr("x", c).attr("y", M).attr("width", x + l * 2 + T).attr("height", O.height + u * 2);
|
|
1673
|
-
c = parseFloat(d.attr("x")) + parseFloat(d.attr("width"));
|
|
1674
|
-
}
|
|
1675
|
-
_ && (O.cn.attr("transform", "translate(" + (c + l) + "," + L + ")"), t.insert("rect", "#" + O.cn.node().id).classed("er ".concat(R), "true").attr("x", c).attr("y", M).attr("width", y + l * 2 + T).attr("height", O.height + u * 2)), M += O.height + u * 2, R = R === "attributeBoxOdd" ? "attributeBoxEven" : "attributeBoxOdd";
|
|
1676
|
-
});
|
|
1677
|
-
} else C.height = Math.max(k.minEntityHeight, N), e.attr("transform", "translate(" + C.width / 2 + "," + C.height / 2 + ")");
|
|
1678
|
-
return C;
|
|
1679
|
-
}, re = function re(t, e, r) {
|
|
1680
|
-
var u = Object.keys(e);
|
|
1681
|
-
var l;
|
|
1682
|
-
return u.forEach(function(p) {
|
|
1683
|
-
var f = le(p, "entity");
|
|
1684
|
-
X.set(p, f);
|
|
1685
|
-
var o = t.append("g").attr("id", f);
|
|
1686
|
-
l = l === void 0 ? f : l;
|
|
1687
|
-
var _e_p_alias;
|
|
1688
|
-
var h = "text-" + f, _ = o.append("text").classed("er entityLabel", true).attr("id", h).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", index.Vn().fontFamily).style("font-size", k.fontSize + "px").text((_e_p_alias = e[p].alias) !== null && _e_p_alias !== void 0 ? _e_p_alias : p), _ee = ee(o, _, e[p].attributes), m = _ee.width, g = _ee.height, y = o.insert("rect", "#" + h).classed("er entityBox", true).attr("x", 0).attr("y", 0).attr("width", m).attr("height", g).node().getBBox();
|
|
1689
|
-
r.setNode(f, {
|
|
1690
|
-
width: y.width,
|
|
1691
|
-
height: y.height,
|
|
1692
|
-
shape: "rect",
|
|
1693
|
-
id: f
|
|
1694
|
-
});
|
|
1695
|
-
}), l;
|
|
1696
|
-
}, ie = function ie(t, e) {
|
|
1697
|
-
e.nodes().forEach(function(r) {
|
|
1698
|
-
r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr("transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )");
|
|
1699
|
-
});
|
|
1700
|
-
}, ut = function ut(t) {
|
|
1701
|
-
return (t.entityA + t.roleA + t.entityB).replace(/\s/g, "");
|
|
1702
|
-
}, ae = function ae(t, e) {
|
|
1703
|
-
return t.forEach(function(r) {
|
|
1704
|
-
e.setEdge(X.get(r.entityA), X.get(r.entityB), {
|
|
1705
|
-
relationship: r
|
|
1706
|
-
}, ut(r));
|
|
1707
|
-
}), t;
|
|
1708
|
-
};
|
|
1709
|
-
var ct = 0;
|
|
1710
|
-
var ne = function ne(t, e, r, u, l) {
|
|
1711
|
-
ct++;
|
|
1712
|
-
var p = r.edge(X.get(e.entityA), X.get(e.entityB), ut(e)), f = line24d93f1b.P().x(function(N) {
|
|
1713
|
-
return N.x;
|
|
1714
|
-
}).y(function(N) {
|
|
1715
|
-
return N.y;
|
|
1716
|
-
}).curve(index.Pf), o = t.insert("path", "#" + u).classed("er relationshipLine", true).attr("d", f(p.points)).style("stroke", k.stroke).style("fill", "none");
|
|
1717
|
-
e.relSpec.relType === l.db.Identification.NON_IDENTIFYING && o.attr("stroke-dasharray", "8,8");
|
|
1718
|
-
var h = "";
|
|
1719
|
-
switch(k.arrowMarkerAbsolute && (h = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, h = h.replace(/\(/g, "\\("), h = h.replace(/\)/g, "\\)")), e.relSpec.cardA){
|
|
1720
|
-
case l.db.Cardinality.ZERO_OR_ONE:
|
|
1721
|
-
o.attr("marker-end", "url(" + h + "#" + B.ERMarkers.ZERO_OR_ONE_END + ")");
|
|
1722
|
-
break;
|
|
1723
|
-
case l.db.Cardinality.ZERO_OR_MORE:
|
|
1724
|
-
o.attr("marker-end", "url(" + h + "#" + B.ERMarkers.ZERO_OR_MORE_END + ")");
|
|
1725
|
-
break;
|
|
1726
|
-
case l.db.Cardinality.ONE_OR_MORE:
|
|
1727
|
-
o.attr("marker-end", "url(" + h + "#" + B.ERMarkers.ONE_OR_MORE_END + ")");
|
|
1728
|
-
break;
|
|
1729
|
-
case l.db.Cardinality.ONLY_ONE:
|
|
1730
|
-
o.attr("marker-end", "url(" + h + "#" + B.ERMarkers.ONLY_ONE_END + ")");
|
|
1731
|
-
break;
|
|
1732
|
-
case l.db.Cardinality.MD_PARENT:
|
|
1733
|
-
o.attr("marker-end", "url(" + h + "#" + B.ERMarkers.MD_PARENT_END + ")");
|
|
1734
|
-
break;
|
|
1735
|
-
}
|
|
1736
|
-
switch(e.relSpec.cardB){
|
|
1737
|
-
case l.db.Cardinality.ZERO_OR_ONE:
|
|
1738
|
-
o.attr("marker-start", "url(" + h + "#" + B.ERMarkers.ZERO_OR_ONE_START + ")");
|
|
1739
|
-
break;
|
|
1740
|
-
case l.db.Cardinality.ZERO_OR_MORE:
|
|
1741
|
-
o.attr("marker-start", "url(" + h + "#" + B.ERMarkers.ZERO_OR_MORE_START + ")");
|
|
1742
|
-
break;
|
|
1743
|
-
case l.db.Cardinality.ONE_OR_MORE:
|
|
1744
|
-
o.attr("marker-start", "url(" + h + "#" + B.ERMarkers.ONE_OR_MORE_START + ")");
|
|
1745
|
-
break;
|
|
1746
|
-
case l.db.Cardinality.ONLY_ONE:
|
|
1747
|
-
o.attr("marker-start", "url(" + h + "#" + B.ERMarkers.ONLY_ONE_START + ")");
|
|
1748
|
-
break;
|
|
1749
|
-
case l.db.Cardinality.MD_PARENT:
|
|
1750
|
-
o.attr("marker-start", "url(" + h + "#" + B.ERMarkers.MD_PARENT_START + ")");
|
|
1751
|
-
break;
|
|
1752
|
-
}
|
|
1753
|
-
var _ = o.node().getTotalLength(), m = o.node().getPointAtLength(_ * 0.5), g = "rel" + ct, y = t.append("text").classed("er relationshipLabel", true).attr("id", g).attr("x", m.x).attr("y", m.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", index.Vn().fontFamily).style("font-size", k.fontSize + "px").text(e.roleA).node().getBBox();
|
|
1754
|
-
t.insert("rect", "#" + g).classed("er relationshipLabelBox", true).attr("x", m.x - y.width / 2).attr("y", m.y - y.height / 2).attr("width", y.width).attr("height", y.height);
|
|
1755
|
-
}, se = function se(t, e, r, u) {
|
|
1756
|
-
k = index.Vn().er, index.L.info("Drawing ER diagram");
|
|
1757
|
-
var l = index.Vn().securityLevel;
|
|
1758
|
-
var p;
|
|
1759
|
-
l === "sandbox" && (p = index.bt("#i" + e));
|
|
1760
|
-
var o = (l === "sandbox" ? index.bt(p.nodes()[0].contentDocument.body) : index.bt("body")).select("[id='".concat(e, "']"));
|
|
1761
|
-
B.insertMarkers(o, k);
|
|
1762
|
-
var h;
|
|
1763
|
-
h = new graph0ee63739.Ze({
|
|
1764
|
-
multigraph: true,
|
|
1765
|
-
directed: true,
|
|
1766
|
-
compound: false
|
|
1767
|
-
}).setGraph({
|
|
1768
|
-
rankdir: k.layoutDirection,
|
|
1769
|
-
marginx: 20,
|
|
1770
|
-
marginy: 20,
|
|
1771
|
-
nodesep: 100,
|
|
1772
|
-
edgesep: 100,
|
|
1773
|
-
ranksep: 100
|
|
1774
|
-
}).setDefaultEdgeLabel(function() {
|
|
1775
|
-
return {};
|
|
1776
|
-
});
|
|
1777
|
-
var _ = re(o, u.db.getEntities(), h), m = ae(u.db.getRelationships(), h);
|
|
1778
|
-
layoutFd473db2.Yt(h), ie(o, h), m.forEach(function(I) {
|
|
1779
|
-
ne(o, I, h, _, u);
|
|
1780
|
-
});
|
|
1781
|
-
var g = k.diagramPadding;
|
|
1782
|
-
index.ei.insertTitle(o, "entityTitleText", k.titleTopMargin, u.db.getDiagramTitle());
|
|
1783
|
-
var x = o.node().getBBox(), y = x.width + g * 2, N = x.height + g * 2;
|
|
1784
|
-
index.Ol(o, N, y, k.useMaxWidth), o.attr("viewBox", "".concat(x.x - g, " ").concat(x.y - g, " ").concat(y, " ").concat(N));
|
|
1785
|
-
}, oe = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c";
|
|
1786
|
-
function le() {
|
|
1787
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
1788
|
-
var r = t.replace($t, "");
|
|
1789
|
-
return "".concat(ht(e)).concat(ht(r)).concat(Jt(t, oe));
|
|
1790
|
-
}
|
|
1791
|
-
function ht() {
|
|
1792
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
1793
|
-
return t.length > 0 ? "".concat(t, "-") : "";
|
|
1794
|
-
}
|
|
1795
|
-
var ce = {
|
|
1796
|
-
setConf: te,
|
|
1797
|
-
draw: se
|
|
1798
|
-
}, he = function(t) {
|
|
1799
|
-
return "\n .entityBox {\n fill: ".concat(t.mainBkg, ";\n stroke: ").concat(t.nodeBorder, ";\n }\n\n .attributeBoxOdd {\n fill: ").concat(t.attributeBackgroundColorOdd, ";\n stroke: ").concat(t.nodeBorder, ";\n }\n\n .attributeBoxEven {\n fill: ").concat(t.attributeBackgroundColorEven, ";\n stroke: ").concat(t.nodeBorder, ";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor, ";\n opacity: 0.7;\n background-color: ").concat(t.tertiaryColor, ";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor, ";\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor, ";\n } \n #MD_PARENT_START {\n fill: #f5f5f5 !important;\n stroke: ").concat(t.lineColor, " !important;\n stroke-width: 1;\n }\n #MD_PARENT_END {\n fill: #f5f5f5 !important;\n stroke: ").concat(t.lineColor, " !important;\n stroke-width: 1;\n }\n \n");
|
|
1800
|
-
}, de = he, me = {
|
|
1801
|
-
parser: It,
|
|
1802
|
-
db: Zt,
|
|
1803
|
-
renderer: ce,
|
|
1804
|
-
styles: de
|
|
1805
|
-
};
|
|
1806
|
-
|
|
1807
|
-
exports.diagram = me;
|