@digipair/skill-web-chatbot 0.114.2 → 0.114.6
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/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,2409 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index.cjs2.js');
|
|
4
|
-
var linear9bcf74c4 = require('./linear-9bcf74c4.cjs.js');
|
|
5
|
-
require('./init-f9637058.cjs.js');
|
|
6
|
-
|
|
7
|
-
function _array_like_to_array(arr, len) {
|
|
8
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
9
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10
|
-
return arr2;
|
|
11
|
-
}
|
|
12
|
-
function _array_without_holes(arr) {
|
|
13
|
-
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
14
|
-
}
|
|
15
|
-
function _class_call_check(instance, Constructor) {
|
|
16
|
-
if (!(instance instanceof Constructor)) {
|
|
17
|
-
throw new TypeError("Cannot call a class as a function");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function _defineProperties(target, props) {
|
|
21
|
-
for(var i = 0; i < props.length; i++){
|
|
22
|
-
var descriptor = props[i];
|
|
23
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
24
|
-
descriptor.configurable = true;
|
|
25
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
26
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
30
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
31
|
-
return Constructor;
|
|
32
|
-
}
|
|
33
|
-
function _define_property(obj, key, value) {
|
|
34
|
-
if (key in obj) {
|
|
35
|
-
Object.defineProperty(obj, key, {
|
|
36
|
-
value: value,
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true,
|
|
39
|
-
writable: true
|
|
40
|
-
});
|
|
41
|
-
} else {
|
|
42
|
-
obj[key] = value;
|
|
43
|
-
}
|
|
44
|
-
return obj;
|
|
45
|
-
}
|
|
46
|
-
function _instanceof(left, right) {
|
|
47
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
48
|
-
return !!right[Symbol.hasInstance](left);
|
|
49
|
-
} else {
|
|
50
|
-
return left instanceof right;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function _iterable_to_array(iter) {
|
|
54
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
55
|
-
}
|
|
56
|
-
function _non_iterable_spread() {
|
|
57
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
58
|
-
}
|
|
59
|
-
function _object_spread(target) {
|
|
60
|
-
for(var i = 1; i < arguments.length; i++){
|
|
61
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
62
|
-
var ownKeys = Object.keys(source);
|
|
63
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
64
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
65
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
ownKeys.forEach(function(key) {
|
|
69
|
-
_define_property(target, key, source[key]);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
return target;
|
|
73
|
-
}
|
|
74
|
-
function _to_consumable_array(arr) {
|
|
75
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
76
|
-
}
|
|
77
|
-
function _type_of(obj) {
|
|
78
|
-
"@swc/helpers - typeof";
|
|
79
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
80
|
-
}
|
|
81
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
82
|
-
if (!o) return;
|
|
83
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
84
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
85
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
86
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
87
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
88
|
-
}
|
|
89
|
-
var pt = function() {
|
|
90
|
-
var e = function e($, n, r, o) {
|
|
91
|
-
for(r = r || {}, o = $.length; o--; r[$[o]] = n);
|
|
92
|
-
return r;
|
|
93
|
-
}, s = [
|
|
94
|
-
1,
|
|
95
|
-
3
|
|
96
|
-
], c = [
|
|
97
|
-
1,
|
|
98
|
-
4
|
|
99
|
-
], x = [
|
|
100
|
-
1,
|
|
101
|
-
5
|
|
102
|
-
], f = [
|
|
103
|
-
1,
|
|
104
|
-
6
|
|
105
|
-
], d = [
|
|
106
|
-
1,
|
|
107
|
-
7
|
|
108
|
-
], l = [
|
|
109
|
-
1,
|
|
110
|
-
5,
|
|
111
|
-
13,
|
|
112
|
-
15,
|
|
113
|
-
17,
|
|
114
|
-
19,
|
|
115
|
-
20,
|
|
116
|
-
25,
|
|
117
|
-
27,
|
|
118
|
-
28,
|
|
119
|
-
29,
|
|
120
|
-
30,
|
|
121
|
-
31,
|
|
122
|
-
32,
|
|
123
|
-
33,
|
|
124
|
-
34,
|
|
125
|
-
37,
|
|
126
|
-
38,
|
|
127
|
-
40,
|
|
128
|
-
41,
|
|
129
|
-
42,
|
|
130
|
-
43,
|
|
131
|
-
44,
|
|
132
|
-
45,
|
|
133
|
-
46,
|
|
134
|
-
47,
|
|
135
|
-
48,
|
|
136
|
-
49,
|
|
137
|
-
50
|
|
138
|
-
], g = [
|
|
139
|
-
1,
|
|
140
|
-
5,
|
|
141
|
-
6,
|
|
142
|
-
13,
|
|
143
|
-
15,
|
|
144
|
-
17,
|
|
145
|
-
19,
|
|
146
|
-
20,
|
|
147
|
-
25,
|
|
148
|
-
27,
|
|
149
|
-
28,
|
|
150
|
-
29,
|
|
151
|
-
30,
|
|
152
|
-
31,
|
|
153
|
-
32,
|
|
154
|
-
33,
|
|
155
|
-
34,
|
|
156
|
-
37,
|
|
157
|
-
38,
|
|
158
|
-
40,
|
|
159
|
-
41,
|
|
160
|
-
42,
|
|
161
|
-
43,
|
|
162
|
-
44,
|
|
163
|
-
45,
|
|
164
|
-
46,
|
|
165
|
-
47,
|
|
166
|
-
48,
|
|
167
|
-
49,
|
|
168
|
-
50
|
|
169
|
-
], i = [
|
|
170
|
-
32,
|
|
171
|
-
33,
|
|
172
|
-
34
|
|
173
|
-
], q = [
|
|
174
|
-
2,
|
|
175
|
-
7
|
|
176
|
-
], b = [
|
|
177
|
-
1,
|
|
178
|
-
13
|
|
179
|
-
], D = [
|
|
180
|
-
1,
|
|
181
|
-
17
|
|
182
|
-
], w = [
|
|
183
|
-
1,
|
|
184
|
-
18
|
|
185
|
-
], I = [
|
|
186
|
-
1,
|
|
187
|
-
19
|
|
188
|
-
], B = [
|
|
189
|
-
1,
|
|
190
|
-
20
|
|
191
|
-
], p = [
|
|
192
|
-
1,
|
|
193
|
-
21
|
|
194
|
-
], H = [
|
|
195
|
-
1,
|
|
196
|
-
22
|
|
197
|
-
], G = [
|
|
198
|
-
1,
|
|
199
|
-
23
|
|
200
|
-
], K = [
|
|
201
|
-
1,
|
|
202
|
-
24
|
|
203
|
-
], at = [
|
|
204
|
-
1,
|
|
205
|
-
25
|
|
206
|
-
], nt = [
|
|
207
|
-
1,
|
|
208
|
-
26
|
|
209
|
-
], et = [
|
|
210
|
-
1,
|
|
211
|
-
27
|
|
212
|
-
], Q = [
|
|
213
|
-
1,
|
|
214
|
-
30
|
|
215
|
-
], N = [
|
|
216
|
-
1,
|
|
217
|
-
31
|
|
218
|
-
], T = [
|
|
219
|
-
1,
|
|
220
|
-
32
|
|
221
|
-
], m = [
|
|
222
|
-
1,
|
|
223
|
-
33
|
|
224
|
-
], A = [
|
|
225
|
-
1,
|
|
226
|
-
34
|
|
227
|
-
], t = [
|
|
228
|
-
1,
|
|
229
|
-
35
|
|
230
|
-
], _ = [
|
|
231
|
-
1,
|
|
232
|
-
36
|
|
233
|
-
], S = [
|
|
234
|
-
1,
|
|
235
|
-
37
|
|
236
|
-
], k = [
|
|
237
|
-
1,
|
|
238
|
-
38
|
|
239
|
-
], F = [
|
|
240
|
-
1,
|
|
241
|
-
39
|
|
242
|
-
], P = [
|
|
243
|
-
1,
|
|
244
|
-
40
|
|
245
|
-
], v = [
|
|
246
|
-
1,
|
|
247
|
-
41
|
|
248
|
-
], L = [
|
|
249
|
-
1,
|
|
250
|
-
42
|
|
251
|
-
], M = [
|
|
252
|
-
1,
|
|
253
|
-
57
|
|
254
|
-
], X = [
|
|
255
|
-
1,
|
|
256
|
-
58
|
|
257
|
-
], C = [
|
|
258
|
-
5,
|
|
259
|
-
22,
|
|
260
|
-
26,
|
|
261
|
-
32,
|
|
262
|
-
33,
|
|
263
|
-
34,
|
|
264
|
-
40,
|
|
265
|
-
41,
|
|
266
|
-
42,
|
|
267
|
-
43,
|
|
268
|
-
44,
|
|
269
|
-
45,
|
|
270
|
-
46,
|
|
271
|
-
47,
|
|
272
|
-
48,
|
|
273
|
-
49,
|
|
274
|
-
50,
|
|
275
|
-
51
|
|
276
|
-
], ht = {
|
|
277
|
-
trace: function trace() {},
|
|
278
|
-
yy: {},
|
|
279
|
-
symbols_: {
|
|
280
|
-
error: 2,
|
|
281
|
-
start: 3,
|
|
282
|
-
eol: 4,
|
|
283
|
-
SPACE: 5,
|
|
284
|
-
QUADRANT: 6,
|
|
285
|
-
document: 7,
|
|
286
|
-
line: 8,
|
|
287
|
-
statement: 9,
|
|
288
|
-
axisDetails: 10,
|
|
289
|
-
quadrantDetails: 11,
|
|
290
|
-
points: 12,
|
|
291
|
-
title: 13,
|
|
292
|
-
title_value: 14,
|
|
293
|
-
acc_title: 15,
|
|
294
|
-
acc_title_value: 16,
|
|
295
|
-
acc_descr: 17,
|
|
296
|
-
acc_descr_value: 18,
|
|
297
|
-
acc_descr_multiline_value: 19,
|
|
298
|
-
section: 20,
|
|
299
|
-
text: 21,
|
|
300
|
-
point_start: 22,
|
|
301
|
-
point_x: 23,
|
|
302
|
-
point_y: 24,
|
|
303
|
-
"X-AXIS": 25,
|
|
304
|
-
"AXIS-TEXT-DELIMITER": 26,
|
|
305
|
-
"Y-AXIS": 27,
|
|
306
|
-
QUADRANT_1: 28,
|
|
307
|
-
QUADRANT_2: 29,
|
|
308
|
-
QUADRANT_3: 30,
|
|
309
|
-
QUADRANT_4: 31,
|
|
310
|
-
NEWLINE: 32,
|
|
311
|
-
SEMI: 33,
|
|
312
|
-
EOF: 34,
|
|
313
|
-
alphaNumToken: 35,
|
|
314
|
-
textNoTagsToken: 36,
|
|
315
|
-
STR: 37,
|
|
316
|
-
MD_STR: 38,
|
|
317
|
-
alphaNum: 39,
|
|
318
|
-
PUNCTUATION: 40,
|
|
319
|
-
AMP: 41,
|
|
320
|
-
NUM: 42,
|
|
321
|
-
ALPHA: 43,
|
|
322
|
-
COMMA: 44,
|
|
323
|
-
PLUS: 45,
|
|
324
|
-
EQUALS: 46,
|
|
325
|
-
MULT: 47,
|
|
326
|
-
DOT: 48,
|
|
327
|
-
BRKT: 49,
|
|
328
|
-
UNDERSCORE: 50,
|
|
329
|
-
MINUS: 51,
|
|
330
|
-
$accept: 0,
|
|
331
|
-
$end: 1
|
|
332
|
-
},
|
|
333
|
-
terminals_: {
|
|
334
|
-
2: "error",
|
|
335
|
-
5: "SPACE",
|
|
336
|
-
6: "QUADRANT",
|
|
337
|
-
13: "title",
|
|
338
|
-
14: "title_value",
|
|
339
|
-
15: "acc_title",
|
|
340
|
-
16: "acc_title_value",
|
|
341
|
-
17: "acc_descr",
|
|
342
|
-
18: "acc_descr_value",
|
|
343
|
-
19: "acc_descr_multiline_value",
|
|
344
|
-
20: "section",
|
|
345
|
-
22: "point_start",
|
|
346
|
-
23: "point_x",
|
|
347
|
-
24: "point_y",
|
|
348
|
-
25: "X-AXIS",
|
|
349
|
-
26: "AXIS-TEXT-DELIMITER",
|
|
350
|
-
27: "Y-AXIS",
|
|
351
|
-
28: "QUADRANT_1",
|
|
352
|
-
29: "QUADRANT_2",
|
|
353
|
-
30: "QUADRANT_3",
|
|
354
|
-
31: "QUADRANT_4",
|
|
355
|
-
32: "NEWLINE",
|
|
356
|
-
33: "SEMI",
|
|
357
|
-
34: "EOF",
|
|
358
|
-
37: "STR",
|
|
359
|
-
38: "MD_STR",
|
|
360
|
-
40: "PUNCTUATION",
|
|
361
|
-
41: "AMP",
|
|
362
|
-
42: "NUM",
|
|
363
|
-
43: "ALPHA",
|
|
364
|
-
44: "COMMA",
|
|
365
|
-
45: "PLUS",
|
|
366
|
-
46: "EQUALS",
|
|
367
|
-
47: "MULT",
|
|
368
|
-
48: "DOT",
|
|
369
|
-
49: "BRKT",
|
|
370
|
-
50: "UNDERSCORE",
|
|
371
|
-
51: "MINUS"
|
|
372
|
-
},
|
|
373
|
-
productions_: [
|
|
374
|
-
0,
|
|
375
|
-
[
|
|
376
|
-
3,
|
|
377
|
-
2
|
|
378
|
-
],
|
|
379
|
-
[
|
|
380
|
-
3,
|
|
381
|
-
2
|
|
382
|
-
],
|
|
383
|
-
[
|
|
384
|
-
3,
|
|
385
|
-
2
|
|
386
|
-
],
|
|
387
|
-
[
|
|
388
|
-
7,
|
|
389
|
-
0
|
|
390
|
-
],
|
|
391
|
-
[
|
|
392
|
-
7,
|
|
393
|
-
2
|
|
394
|
-
],
|
|
395
|
-
[
|
|
396
|
-
8,
|
|
397
|
-
2
|
|
398
|
-
],
|
|
399
|
-
[
|
|
400
|
-
9,
|
|
401
|
-
0
|
|
402
|
-
],
|
|
403
|
-
[
|
|
404
|
-
9,
|
|
405
|
-
2
|
|
406
|
-
],
|
|
407
|
-
[
|
|
408
|
-
9,
|
|
409
|
-
1
|
|
410
|
-
],
|
|
411
|
-
[
|
|
412
|
-
9,
|
|
413
|
-
1
|
|
414
|
-
],
|
|
415
|
-
[
|
|
416
|
-
9,
|
|
417
|
-
1
|
|
418
|
-
],
|
|
419
|
-
[
|
|
420
|
-
9,
|
|
421
|
-
2
|
|
422
|
-
],
|
|
423
|
-
[
|
|
424
|
-
9,
|
|
425
|
-
2
|
|
426
|
-
],
|
|
427
|
-
[
|
|
428
|
-
9,
|
|
429
|
-
2
|
|
430
|
-
],
|
|
431
|
-
[
|
|
432
|
-
9,
|
|
433
|
-
1
|
|
434
|
-
],
|
|
435
|
-
[
|
|
436
|
-
9,
|
|
437
|
-
1
|
|
438
|
-
],
|
|
439
|
-
[
|
|
440
|
-
12,
|
|
441
|
-
4
|
|
442
|
-
],
|
|
443
|
-
[
|
|
444
|
-
10,
|
|
445
|
-
4
|
|
446
|
-
],
|
|
447
|
-
[
|
|
448
|
-
10,
|
|
449
|
-
3
|
|
450
|
-
],
|
|
451
|
-
[
|
|
452
|
-
10,
|
|
453
|
-
2
|
|
454
|
-
],
|
|
455
|
-
[
|
|
456
|
-
10,
|
|
457
|
-
4
|
|
458
|
-
],
|
|
459
|
-
[
|
|
460
|
-
10,
|
|
461
|
-
3
|
|
462
|
-
],
|
|
463
|
-
[
|
|
464
|
-
10,
|
|
465
|
-
2
|
|
466
|
-
],
|
|
467
|
-
[
|
|
468
|
-
11,
|
|
469
|
-
2
|
|
470
|
-
],
|
|
471
|
-
[
|
|
472
|
-
11,
|
|
473
|
-
2
|
|
474
|
-
],
|
|
475
|
-
[
|
|
476
|
-
11,
|
|
477
|
-
2
|
|
478
|
-
],
|
|
479
|
-
[
|
|
480
|
-
11,
|
|
481
|
-
2
|
|
482
|
-
],
|
|
483
|
-
[
|
|
484
|
-
4,
|
|
485
|
-
1
|
|
486
|
-
],
|
|
487
|
-
[
|
|
488
|
-
4,
|
|
489
|
-
1
|
|
490
|
-
],
|
|
491
|
-
[
|
|
492
|
-
4,
|
|
493
|
-
1
|
|
494
|
-
],
|
|
495
|
-
[
|
|
496
|
-
21,
|
|
497
|
-
1
|
|
498
|
-
],
|
|
499
|
-
[
|
|
500
|
-
21,
|
|
501
|
-
2
|
|
502
|
-
],
|
|
503
|
-
[
|
|
504
|
-
21,
|
|
505
|
-
1
|
|
506
|
-
],
|
|
507
|
-
[
|
|
508
|
-
21,
|
|
509
|
-
1
|
|
510
|
-
],
|
|
511
|
-
[
|
|
512
|
-
39,
|
|
513
|
-
1
|
|
514
|
-
],
|
|
515
|
-
[
|
|
516
|
-
39,
|
|
517
|
-
2
|
|
518
|
-
],
|
|
519
|
-
[
|
|
520
|
-
35,
|
|
521
|
-
1
|
|
522
|
-
],
|
|
523
|
-
[
|
|
524
|
-
35,
|
|
525
|
-
1
|
|
526
|
-
],
|
|
527
|
-
[
|
|
528
|
-
35,
|
|
529
|
-
1
|
|
530
|
-
],
|
|
531
|
-
[
|
|
532
|
-
35,
|
|
533
|
-
1
|
|
534
|
-
],
|
|
535
|
-
[
|
|
536
|
-
35,
|
|
537
|
-
1
|
|
538
|
-
],
|
|
539
|
-
[
|
|
540
|
-
35,
|
|
541
|
-
1
|
|
542
|
-
],
|
|
543
|
-
[
|
|
544
|
-
35,
|
|
545
|
-
1
|
|
546
|
-
],
|
|
547
|
-
[
|
|
548
|
-
35,
|
|
549
|
-
1
|
|
550
|
-
],
|
|
551
|
-
[
|
|
552
|
-
35,
|
|
553
|
-
1
|
|
554
|
-
],
|
|
555
|
-
[
|
|
556
|
-
35,
|
|
557
|
-
1
|
|
558
|
-
],
|
|
559
|
-
[
|
|
560
|
-
35,
|
|
561
|
-
1
|
|
562
|
-
],
|
|
563
|
-
[
|
|
564
|
-
36,
|
|
565
|
-
1
|
|
566
|
-
],
|
|
567
|
-
[
|
|
568
|
-
36,
|
|
569
|
-
1
|
|
570
|
-
],
|
|
571
|
-
[
|
|
572
|
-
36,
|
|
573
|
-
1
|
|
574
|
-
]
|
|
575
|
-
],
|
|
576
|
-
performAction: function performAction(n, r, o, h, y, a, it) {
|
|
577
|
-
var u = a.length - 1;
|
|
578
|
-
switch(y){
|
|
579
|
-
case 12:
|
|
580
|
-
this.$ = a[u].trim(), h.setDiagramTitle(this.$);
|
|
581
|
-
break;
|
|
582
|
-
case 13:
|
|
583
|
-
this.$ = a[u].trim(), h.setAccTitle(this.$);
|
|
584
|
-
break;
|
|
585
|
-
case 14:
|
|
586
|
-
case 15:
|
|
587
|
-
this.$ = a[u].trim(), h.setAccDescription(this.$);
|
|
588
|
-
break;
|
|
589
|
-
case 16:
|
|
590
|
-
h.addSection(a[u].substr(8)), this.$ = a[u].substr(8);
|
|
591
|
-
break;
|
|
592
|
-
case 17:
|
|
593
|
-
h.addPoint(a[u - 3], a[u - 1], a[u]);
|
|
594
|
-
break;
|
|
595
|
-
case 18:
|
|
596
|
-
h.setXAxisLeftText(a[u - 2]), h.setXAxisRightText(a[u]);
|
|
597
|
-
break;
|
|
598
|
-
case 19:
|
|
599
|
-
a[u - 1].text += " ⟶ ", h.setXAxisLeftText(a[u - 1]);
|
|
600
|
-
break;
|
|
601
|
-
case 20:
|
|
602
|
-
h.setXAxisLeftText(a[u]);
|
|
603
|
-
break;
|
|
604
|
-
case 21:
|
|
605
|
-
h.setYAxisBottomText(a[u - 2]), h.setYAxisTopText(a[u]);
|
|
606
|
-
break;
|
|
607
|
-
case 22:
|
|
608
|
-
a[u - 1].text += " ⟶ ", h.setYAxisBottomText(a[u - 1]);
|
|
609
|
-
break;
|
|
610
|
-
case 23:
|
|
611
|
-
h.setYAxisBottomText(a[u]);
|
|
612
|
-
break;
|
|
613
|
-
case 24:
|
|
614
|
-
h.setQuadrant1Text(a[u]);
|
|
615
|
-
break;
|
|
616
|
-
case 25:
|
|
617
|
-
h.setQuadrant2Text(a[u]);
|
|
618
|
-
break;
|
|
619
|
-
case 26:
|
|
620
|
-
h.setQuadrant3Text(a[u]);
|
|
621
|
-
break;
|
|
622
|
-
case 27:
|
|
623
|
-
h.setQuadrant4Text(a[u]);
|
|
624
|
-
break;
|
|
625
|
-
case 31:
|
|
626
|
-
this.$ = {
|
|
627
|
-
text: a[u],
|
|
628
|
-
type: "text"
|
|
629
|
-
};
|
|
630
|
-
break;
|
|
631
|
-
case 32:
|
|
632
|
-
this.$ = {
|
|
633
|
-
text: a[u - 1].text + "" + a[u],
|
|
634
|
-
type: a[u - 1].type
|
|
635
|
-
};
|
|
636
|
-
break;
|
|
637
|
-
case 33:
|
|
638
|
-
this.$ = {
|
|
639
|
-
text: a[u],
|
|
640
|
-
type: "text"
|
|
641
|
-
};
|
|
642
|
-
break;
|
|
643
|
-
case 34:
|
|
644
|
-
this.$ = {
|
|
645
|
-
text: a[u],
|
|
646
|
-
type: "markdown"
|
|
647
|
-
};
|
|
648
|
-
break;
|
|
649
|
-
case 35:
|
|
650
|
-
this.$ = a[u];
|
|
651
|
-
break;
|
|
652
|
-
case 36:
|
|
653
|
-
this.$ = a[u - 1] + "" + a[u];
|
|
654
|
-
break;
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
table: [
|
|
658
|
-
{
|
|
659
|
-
3: 1,
|
|
660
|
-
4: 2,
|
|
661
|
-
5: s,
|
|
662
|
-
6: c,
|
|
663
|
-
32: x,
|
|
664
|
-
33: f,
|
|
665
|
-
34: d
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
1: [
|
|
669
|
-
3
|
|
670
|
-
]
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
3: 8,
|
|
674
|
-
4: 2,
|
|
675
|
-
5: s,
|
|
676
|
-
6: c,
|
|
677
|
-
32: x,
|
|
678
|
-
33: f,
|
|
679
|
-
34: d
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
3: 9,
|
|
683
|
-
4: 2,
|
|
684
|
-
5: s,
|
|
685
|
-
6: c,
|
|
686
|
-
32: x,
|
|
687
|
-
33: f,
|
|
688
|
-
34: d
|
|
689
|
-
},
|
|
690
|
-
e(l, [
|
|
691
|
-
2,
|
|
692
|
-
4
|
|
693
|
-
], {
|
|
694
|
-
7: 10
|
|
695
|
-
}),
|
|
696
|
-
e(g, [
|
|
697
|
-
2,
|
|
698
|
-
28
|
|
699
|
-
]),
|
|
700
|
-
e(g, [
|
|
701
|
-
2,
|
|
702
|
-
29
|
|
703
|
-
]),
|
|
704
|
-
e(g, [
|
|
705
|
-
2,
|
|
706
|
-
30
|
|
707
|
-
]),
|
|
708
|
-
{
|
|
709
|
-
1: [
|
|
710
|
-
2,
|
|
711
|
-
1
|
|
712
|
-
]
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
1: [
|
|
716
|
-
2,
|
|
717
|
-
2
|
|
718
|
-
]
|
|
719
|
-
},
|
|
720
|
-
e(i, q, {
|
|
721
|
-
8: 11,
|
|
722
|
-
9: 12,
|
|
723
|
-
10: 14,
|
|
724
|
-
11: 15,
|
|
725
|
-
12: 16,
|
|
726
|
-
21: 28,
|
|
727
|
-
35: 29,
|
|
728
|
-
1: [
|
|
729
|
-
2,
|
|
730
|
-
3
|
|
731
|
-
],
|
|
732
|
-
5: b,
|
|
733
|
-
13: D,
|
|
734
|
-
15: w,
|
|
735
|
-
17: I,
|
|
736
|
-
19: B,
|
|
737
|
-
20: p,
|
|
738
|
-
25: H,
|
|
739
|
-
27: G,
|
|
740
|
-
28: K,
|
|
741
|
-
29: at,
|
|
742
|
-
30: nt,
|
|
743
|
-
31: et,
|
|
744
|
-
37: Q,
|
|
745
|
-
38: N,
|
|
746
|
-
40: T,
|
|
747
|
-
41: m,
|
|
748
|
-
42: A,
|
|
749
|
-
43: t,
|
|
750
|
-
44: _,
|
|
751
|
-
45: S,
|
|
752
|
-
46: k,
|
|
753
|
-
47: F,
|
|
754
|
-
48: P,
|
|
755
|
-
49: v,
|
|
756
|
-
50: L
|
|
757
|
-
}),
|
|
758
|
-
e(l, [
|
|
759
|
-
2,
|
|
760
|
-
5
|
|
761
|
-
]),
|
|
762
|
-
{
|
|
763
|
-
4: 43,
|
|
764
|
-
32: x,
|
|
765
|
-
33: f,
|
|
766
|
-
34: d
|
|
767
|
-
},
|
|
768
|
-
e(i, q, {
|
|
769
|
-
10: 14,
|
|
770
|
-
11: 15,
|
|
771
|
-
12: 16,
|
|
772
|
-
21: 28,
|
|
773
|
-
35: 29,
|
|
774
|
-
9: 44,
|
|
775
|
-
5: b,
|
|
776
|
-
13: D,
|
|
777
|
-
15: w,
|
|
778
|
-
17: I,
|
|
779
|
-
19: B,
|
|
780
|
-
20: p,
|
|
781
|
-
25: H,
|
|
782
|
-
27: G,
|
|
783
|
-
28: K,
|
|
784
|
-
29: at,
|
|
785
|
-
30: nt,
|
|
786
|
-
31: et,
|
|
787
|
-
37: Q,
|
|
788
|
-
38: N,
|
|
789
|
-
40: T,
|
|
790
|
-
41: m,
|
|
791
|
-
42: A,
|
|
792
|
-
43: t,
|
|
793
|
-
44: _,
|
|
794
|
-
45: S,
|
|
795
|
-
46: k,
|
|
796
|
-
47: F,
|
|
797
|
-
48: P,
|
|
798
|
-
49: v,
|
|
799
|
-
50: L
|
|
800
|
-
}),
|
|
801
|
-
e(i, [
|
|
802
|
-
2,
|
|
803
|
-
9
|
|
804
|
-
]),
|
|
805
|
-
e(i, [
|
|
806
|
-
2,
|
|
807
|
-
10
|
|
808
|
-
]),
|
|
809
|
-
e(i, [
|
|
810
|
-
2,
|
|
811
|
-
11
|
|
812
|
-
]),
|
|
813
|
-
{
|
|
814
|
-
14: [
|
|
815
|
-
1,
|
|
816
|
-
45
|
|
817
|
-
]
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
16: [
|
|
821
|
-
1,
|
|
822
|
-
46
|
|
823
|
-
]
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
18: [
|
|
827
|
-
1,
|
|
828
|
-
47
|
|
829
|
-
]
|
|
830
|
-
},
|
|
831
|
-
e(i, [
|
|
832
|
-
2,
|
|
833
|
-
15
|
|
834
|
-
]),
|
|
835
|
-
e(i, [
|
|
836
|
-
2,
|
|
837
|
-
16
|
|
838
|
-
]),
|
|
839
|
-
{
|
|
840
|
-
21: 48,
|
|
841
|
-
35: 29,
|
|
842
|
-
37: Q,
|
|
843
|
-
38: N,
|
|
844
|
-
40: T,
|
|
845
|
-
41: m,
|
|
846
|
-
42: A,
|
|
847
|
-
43: t,
|
|
848
|
-
44: _,
|
|
849
|
-
45: S,
|
|
850
|
-
46: k,
|
|
851
|
-
47: F,
|
|
852
|
-
48: P,
|
|
853
|
-
49: v,
|
|
854
|
-
50: L
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
21: 49,
|
|
858
|
-
35: 29,
|
|
859
|
-
37: Q,
|
|
860
|
-
38: N,
|
|
861
|
-
40: T,
|
|
862
|
-
41: m,
|
|
863
|
-
42: A,
|
|
864
|
-
43: t,
|
|
865
|
-
44: _,
|
|
866
|
-
45: S,
|
|
867
|
-
46: k,
|
|
868
|
-
47: F,
|
|
869
|
-
48: P,
|
|
870
|
-
49: v,
|
|
871
|
-
50: L
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
21: 50,
|
|
875
|
-
35: 29,
|
|
876
|
-
37: Q,
|
|
877
|
-
38: N,
|
|
878
|
-
40: T,
|
|
879
|
-
41: m,
|
|
880
|
-
42: A,
|
|
881
|
-
43: t,
|
|
882
|
-
44: _,
|
|
883
|
-
45: S,
|
|
884
|
-
46: k,
|
|
885
|
-
47: F,
|
|
886
|
-
48: P,
|
|
887
|
-
49: v,
|
|
888
|
-
50: L
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
21: 51,
|
|
892
|
-
35: 29,
|
|
893
|
-
37: Q,
|
|
894
|
-
38: N,
|
|
895
|
-
40: T,
|
|
896
|
-
41: m,
|
|
897
|
-
42: A,
|
|
898
|
-
43: t,
|
|
899
|
-
44: _,
|
|
900
|
-
45: S,
|
|
901
|
-
46: k,
|
|
902
|
-
47: F,
|
|
903
|
-
48: P,
|
|
904
|
-
49: v,
|
|
905
|
-
50: L
|
|
906
|
-
},
|
|
907
|
-
{
|
|
908
|
-
21: 52,
|
|
909
|
-
35: 29,
|
|
910
|
-
37: Q,
|
|
911
|
-
38: N,
|
|
912
|
-
40: T,
|
|
913
|
-
41: m,
|
|
914
|
-
42: A,
|
|
915
|
-
43: t,
|
|
916
|
-
44: _,
|
|
917
|
-
45: S,
|
|
918
|
-
46: k,
|
|
919
|
-
47: F,
|
|
920
|
-
48: P,
|
|
921
|
-
49: v,
|
|
922
|
-
50: L
|
|
923
|
-
},
|
|
924
|
-
{
|
|
925
|
-
21: 53,
|
|
926
|
-
35: 29,
|
|
927
|
-
37: Q,
|
|
928
|
-
38: N,
|
|
929
|
-
40: T,
|
|
930
|
-
41: m,
|
|
931
|
-
42: A,
|
|
932
|
-
43: t,
|
|
933
|
-
44: _,
|
|
934
|
-
45: S,
|
|
935
|
-
46: k,
|
|
936
|
-
47: F,
|
|
937
|
-
48: P,
|
|
938
|
-
49: v,
|
|
939
|
-
50: L
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
5: M,
|
|
943
|
-
22: [
|
|
944
|
-
1,
|
|
945
|
-
54
|
|
946
|
-
],
|
|
947
|
-
35: 56,
|
|
948
|
-
36: 55,
|
|
949
|
-
40: T,
|
|
950
|
-
41: m,
|
|
951
|
-
42: A,
|
|
952
|
-
43: t,
|
|
953
|
-
44: _,
|
|
954
|
-
45: S,
|
|
955
|
-
46: k,
|
|
956
|
-
47: F,
|
|
957
|
-
48: P,
|
|
958
|
-
49: v,
|
|
959
|
-
50: L,
|
|
960
|
-
51: X
|
|
961
|
-
},
|
|
962
|
-
e(C, [
|
|
963
|
-
2,
|
|
964
|
-
31
|
|
965
|
-
]),
|
|
966
|
-
e(C, [
|
|
967
|
-
2,
|
|
968
|
-
33
|
|
969
|
-
]),
|
|
970
|
-
e(C, [
|
|
971
|
-
2,
|
|
972
|
-
34
|
|
973
|
-
]),
|
|
974
|
-
e(C, [
|
|
975
|
-
2,
|
|
976
|
-
37
|
|
977
|
-
]),
|
|
978
|
-
e(C, [
|
|
979
|
-
2,
|
|
980
|
-
38
|
|
981
|
-
]),
|
|
982
|
-
e(C, [
|
|
983
|
-
2,
|
|
984
|
-
39
|
|
985
|
-
]),
|
|
986
|
-
e(C, [
|
|
987
|
-
2,
|
|
988
|
-
40
|
|
989
|
-
]),
|
|
990
|
-
e(C, [
|
|
991
|
-
2,
|
|
992
|
-
41
|
|
993
|
-
]),
|
|
994
|
-
e(C, [
|
|
995
|
-
2,
|
|
996
|
-
42
|
|
997
|
-
]),
|
|
998
|
-
e(C, [
|
|
999
|
-
2,
|
|
1000
|
-
43
|
|
1001
|
-
]),
|
|
1002
|
-
e(C, [
|
|
1003
|
-
2,
|
|
1004
|
-
44
|
|
1005
|
-
]),
|
|
1006
|
-
e(C, [
|
|
1007
|
-
2,
|
|
1008
|
-
45
|
|
1009
|
-
]),
|
|
1010
|
-
e(C, [
|
|
1011
|
-
2,
|
|
1012
|
-
46
|
|
1013
|
-
]),
|
|
1014
|
-
e(C, [
|
|
1015
|
-
2,
|
|
1016
|
-
47
|
|
1017
|
-
]),
|
|
1018
|
-
e(l, [
|
|
1019
|
-
2,
|
|
1020
|
-
6
|
|
1021
|
-
]),
|
|
1022
|
-
e(i, [
|
|
1023
|
-
2,
|
|
1024
|
-
8
|
|
1025
|
-
]),
|
|
1026
|
-
e(i, [
|
|
1027
|
-
2,
|
|
1028
|
-
12
|
|
1029
|
-
]),
|
|
1030
|
-
e(i, [
|
|
1031
|
-
2,
|
|
1032
|
-
13
|
|
1033
|
-
]),
|
|
1034
|
-
e(i, [
|
|
1035
|
-
2,
|
|
1036
|
-
14
|
|
1037
|
-
]),
|
|
1038
|
-
e(i, [
|
|
1039
|
-
2,
|
|
1040
|
-
20
|
|
1041
|
-
], {
|
|
1042
|
-
36: 55,
|
|
1043
|
-
35: 56,
|
|
1044
|
-
5: M,
|
|
1045
|
-
26: [
|
|
1046
|
-
1,
|
|
1047
|
-
59
|
|
1048
|
-
],
|
|
1049
|
-
40: T,
|
|
1050
|
-
41: m,
|
|
1051
|
-
42: A,
|
|
1052
|
-
43: t,
|
|
1053
|
-
44: _,
|
|
1054
|
-
45: S,
|
|
1055
|
-
46: k,
|
|
1056
|
-
47: F,
|
|
1057
|
-
48: P,
|
|
1058
|
-
49: v,
|
|
1059
|
-
50: L,
|
|
1060
|
-
51: X
|
|
1061
|
-
}),
|
|
1062
|
-
e(i, [
|
|
1063
|
-
2,
|
|
1064
|
-
23
|
|
1065
|
-
], {
|
|
1066
|
-
36: 55,
|
|
1067
|
-
35: 56,
|
|
1068
|
-
5: M,
|
|
1069
|
-
26: [
|
|
1070
|
-
1,
|
|
1071
|
-
60
|
|
1072
|
-
],
|
|
1073
|
-
40: T,
|
|
1074
|
-
41: m,
|
|
1075
|
-
42: A,
|
|
1076
|
-
43: t,
|
|
1077
|
-
44: _,
|
|
1078
|
-
45: S,
|
|
1079
|
-
46: k,
|
|
1080
|
-
47: F,
|
|
1081
|
-
48: P,
|
|
1082
|
-
49: v,
|
|
1083
|
-
50: L,
|
|
1084
|
-
51: X
|
|
1085
|
-
}),
|
|
1086
|
-
e(i, [
|
|
1087
|
-
2,
|
|
1088
|
-
24
|
|
1089
|
-
], {
|
|
1090
|
-
36: 55,
|
|
1091
|
-
35: 56,
|
|
1092
|
-
5: M,
|
|
1093
|
-
40: T,
|
|
1094
|
-
41: m,
|
|
1095
|
-
42: A,
|
|
1096
|
-
43: t,
|
|
1097
|
-
44: _,
|
|
1098
|
-
45: S,
|
|
1099
|
-
46: k,
|
|
1100
|
-
47: F,
|
|
1101
|
-
48: P,
|
|
1102
|
-
49: v,
|
|
1103
|
-
50: L,
|
|
1104
|
-
51: X
|
|
1105
|
-
}),
|
|
1106
|
-
e(i, [
|
|
1107
|
-
2,
|
|
1108
|
-
25
|
|
1109
|
-
], {
|
|
1110
|
-
36: 55,
|
|
1111
|
-
35: 56,
|
|
1112
|
-
5: M,
|
|
1113
|
-
40: T,
|
|
1114
|
-
41: m,
|
|
1115
|
-
42: A,
|
|
1116
|
-
43: t,
|
|
1117
|
-
44: _,
|
|
1118
|
-
45: S,
|
|
1119
|
-
46: k,
|
|
1120
|
-
47: F,
|
|
1121
|
-
48: P,
|
|
1122
|
-
49: v,
|
|
1123
|
-
50: L,
|
|
1124
|
-
51: X
|
|
1125
|
-
}),
|
|
1126
|
-
e(i, [
|
|
1127
|
-
2,
|
|
1128
|
-
26
|
|
1129
|
-
], {
|
|
1130
|
-
36: 55,
|
|
1131
|
-
35: 56,
|
|
1132
|
-
5: M,
|
|
1133
|
-
40: T,
|
|
1134
|
-
41: m,
|
|
1135
|
-
42: A,
|
|
1136
|
-
43: t,
|
|
1137
|
-
44: _,
|
|
1138
|
-
45: S,
|
|
1139
|
-
46: k,
|
|
1140
|
-
47: F,
|
|
1141
|
-
48: P,
|
|
1142
|
-
49: v,
|
|
1143
|
-
50: L,
|
|
1144
|
-
51: X
|
|
1145
|
-
}),
|
|
1146
|
-
e(i, [
|
|
1147
|
-
2,
|
|
1148
|
-
27
|
|
1149
|
-
], {
|
|
1150
|
-
36: 55,
|
|
1151
|
-
35: 56,
|
|
1152
|
-
5: M,
|
|
1153
|
-
40: T,
|
|
1154
|
-
41: m,
|
|
1155
|
-
42: A,
|
|
1156
|
-
43: t,
|
|
1157
|
-
44: _,
|
|
1158
|
-
45: S,
|
|
1159
|
-
46: k,
|
|
1160
|
-
47: F,
|
|
1161
|
-
48: P,
|
|
1162
|
-
49: v,
|
|
1163
|
-
50: L,
|
|
1164
|
-
51: X
|
|
1165
|
-
}),
|
|
1166
|
-
{
|
|
1167
|
-
23: [
|
|
1168
|
-
1,
|
|
1169
|
-
61
|
|
1170
|
-
]
|
|
1171
|
-
},
|
|
1172
|
-
e(C, [
|
|
1173
|
-
2,
|
|
1174
|
-
32
|
|
1175
|
-
]),
|
|
1176
|
-
e(C, [
|
|
1177
|
-
2,
|
|
1178
|
-
48
|
|
1179
|
-
]),
|
|
1180
|
-
e(C, [
|
|
1181
|
-
2,
|
|
1182
|
-
49
|
|
1183
|
-
]),
|
|
1184
|
-
e(C, [
|
|
1185
|
-
2,
|
|
1186
|
-
50
|
|
1187
|
-
]),
|
|
1188
|
-
e(i, [
|
|
1189
|
-
2,
|
|
1190
|
-
19
|
|
1191
|
-
], {
|
|
1192
|
-
35: 29,
|
|
1193
|
-
21: 62,
|
|
1194
|
-
37: Q,
|
|
1195
|
-
38: N,
|
|
1196
|
-
40: T,
|
|
1197
|
-
41: m,
|
|
1198
|
-
42: A,
|
|
1199
|
-
43: t,
|
|
1200
|
-
44: _,
|
|
1201
|
-
45: S,
|
|
1202
|
-
46: k,
|
|
1203
|
-
47: F,
|
|
1204
|
-
48: P,
|
|
1205
|
-
49: v,
|
|
1206
|
-
50: L
|
|
1207
|
-
}),
|
|
1208
|
-
e(i, [
|
|
1209
|
-
2,
|
|
1210
|
-
22
|
|
1211
|
-
], {
|
|
1212
|
-
35: 29,
|
|
1213
|
-
21: 63,
|
|
1214
|
-
37: Q,
|
|
1215
|
-
38: N,
|
|
1216
|
-
40: T,
|
|
1217
|
-
41: m,
|
|
1218
|
-
42: A,
|
|
1219
|
-
43: t,
|
|
1220
|
-
44: _,
|
|
1221
|
-
45: S,
|
|
1222
|
-
46: k,
|
|
1223
|
-
47: F,
|
|
1224
|
-
48: P,
|
|
1225
|
-
49: v,
|
|
1226
|
-
50: L
|
|
1227
|
-
}),
|
|
1228
|
-
{
|
|
1229
|
-
24: [
|
|
1230
|
-
1,
|
|
1231
|
-
64
|
|
1232
|
-
]
|
|
1233
|
-
},
|
|
1234
|
-
e(i, [
|
|
1235
|
-
2,
|
|
1236
|
-
18
|
|
1237
|
-
], {
|
|
1238
|
-
36: 55,
|
|
1239
|
-
35: 56,
|
|
1240
|
-
5: M,
|
|
1241
|
-
40: T,
|
|
1242
|
-
41: m,
|
|
1243
|
-
42: A,
|
|
1244
|
-
43: t,
|
|
1245
|
-
44: _,
|
|
1246
|
-
45: S,
|
|
1247
|
-
46: k,
|
|
1248
|
-
47: F,
|
|
1249
|
-
48: P,
|
|
1250
|
-
49: v,
|
|
1251
|
-
50: L,
|
|
1252
|
-
51: X
|
|
1253
|
-
}),
|
|
1254
|
-
e(i, [
|
|
1255
|
-
2,
|
|
1256
|
-
21
|
|
1257
|
-
], {
|
|
1258
|
-
36: 55,
|
|
1259
|
-
35: 56,
|
|
1260
|
-
5: M,
|
|
1261
|
-
40: T,
|
|
1262
|
-
41: m,
|
|
1263
|
-
42: A,
|
|
1264
|
-
43: t,
|
|
1265
|
-
44: _,
|
|
1266
|
-
45: S,
|
|
1267
|
-
46: k,
|
|
1268
|
-
47: F,
|
|
1269
|
-
48: P,
|
|
1270
|
-
49: v,
|
|
1271
|
-
50: L,
|
|
1272
|
-
51: X
|
|
1273
|
-
}),
|
|
1274
|
-
e(i, [
|
|
1275
|
-
2,
|
|
1276
|
-
17
|
|
1277
|
-
])
|
|
1278
|
-
],
|
|
1279
|
-
defaultActions: {
|
|
1280
|
-
8: [
|
|
1281
|
-
2,
|
|
1282
|
-
1
|
|
1283
|
-
],
|
|
1284
|
-
9: [
|
|
1285
|
-
2,
|
|
1286
|
-
2
|
|
1287
|
-
]
|
|
1288
|
-
},
|
|
1289
|
-
parseError: function parseError(n, r) {
|
|
1290
|
-
if (r.recoverable) this.trace(n);
|
|
1291
|
-
else {
|
|
1292
|
-
var o = new Error(n);
|
|
1293
|
-
throw o.hash = r, o;
|
|
1294
|
-
}
|
|
1295
|
-
},
|
|
1296
|
-
parse: function parse(n) {
|
|
1297
|
-
var r = this, o = [
|
|
1298
|
-
0
|
|
1299
|
-
], h = [], y = [
|
|
1300
|
-
null
|
|
1301
|
-
], a = [], it = this.table, u = "", st = 0, qt = 0, St = 2, Tt = 1, kt = a.slice.call(arguments, 1), z = Object.create(this.lexer), Z = {
|
|
1302
|
-
yy: {}
|
|
1303
|
-
};
|
|
1304
|
-
for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy, dt) && (Z.yy[dt] = this.yy[dt]);
|
|
1305
|
-
z.setInput(n, Z.yy), Z.yy.lexer = z, Z.yy.parser = this, _type_of(z.yylloc) > "u" && (z.yylloc = {});
|
|
1306
|
-
var ut = z.yylloc;
|
|
1307
|
-
a.push(ut);
|
|
1308
|
-
var Ft = z.options && z.options.ranges;
|
|
1309
|
-
typeof Z.yy.parseError == "function" ? this.parseError = Z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1310
|
-
function Pt() {
|
|
1311
|
-
var Y;
|
|
1312
|
-
return Y = h.pop() || z.lex() || Tt, typeof Y != "number" && (_instanceof(Y, Array) && (h = Y, Y = h.pop()), Y = r.symbols_[Y] || Y), Y;
|
|
1313
|
-
}
|
|
1314
|
-
for(var W, J, U, xt, tt = {}, rt, O, mt, ot;;){
|
|
1315
|
-
if (J = o[o.length - 1], this.defaultActions[J] ? U = this.defaultActions[J] : ((W === null || (typeof W === "undefined" ? "undefined" : _type_of(W)) > "u") && (W = Pt()), U = it[J] && it[J][W]), (typeof U === "undefined" ? "undefined" : _type_of(U)) > "u" || !U.length || !U[0]) {
|
|
1316
|
-
var ft = "";
|
|
1317
|
-
ot = [];
|
|
1318
|
-
for(rt in it[J])this.terminals_[rt] && rt > St && ot.push("'" + this.terminals_[rt] + "'");
|
|
1319
|
-
z.showPosition ? ft = "Parse error on line " + (st + 1) + ":\n" + z.showPosition() + "\nExpecting " + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ft = "Parse error on line " + (st + 1) + ": Unexpected " + (W == Tt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(ft, {
|
|
1320
|
-
text: z.match,
|
|
1321
|
-
token: this.terminals_[W] || W,
|
|
1322
|
-
line: z.yylineno,
|
|
1323
|
-
loc: ut,
|
|
1324
|
-
expected: ot
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
if (_instanceof(U[0], Array) && U.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + W);
|
|
1328
|
-
switch(U[0]){
|
|
1329
|
-
case 1:
|
|
1330
|
-
o.push(W), y.push(z.yytext), a.push(z.yylloc), o.push(U[1]), W = null, qt = z.yyleng, u = z.yytext, st = z.yylineno, ut = z.yylloc;
|
|
1331
|
-
break;
|
|
1332
|
-
case 2:
|
|
1333
|
-
if (O = this.productions_[U[1]][1], tt.$ = y[y.length - O], tt._$ = {
|
|
1334
|
-
first_line: a[a.length - (O || 1)].first_line,
|
|
1335
|
-
last_line: a[a.length - 1].last_line,
|
|
1336
|
-
first_column: a[a.length - (O || 1)].first_column,
|
|
1337
|
-
last_column: a[a.length - 1].last_column
|
|
1338
|
-
}, Ft && (tt._$.range = [
|
|
1339
|
-
a[a.length - (O || 1)].range[0],
|
|
1340
|
-
a[a.length - 1].range[1]
|
|
1341
|
-
]), xt = this.performAction.apply(tt, [
|
|
1342
|
-
u,
|
|
1343
|
-
qt,
|
|
1344
|
-
st,
|
|
1345
|
-
Z.yy,
|
|
1346
|
-
U[1],
|
|
1347
|
-
y,
|
|
1348
|
-
a
|
|
1349
|
-
].concat(kt)), (typeof xt === "undefined" ? "undefined" : _type_of(xt)) < "u") return xt;
|
|
1350
|
-
O && (o = o.slice(0, -1 * O * 2), y = y.slice(0, -1 * O), a = a.slice(0, -1 * O)), o.push(this.productions_[U[1]][0]), y.push(tt.$), a.push(tt._$), mt = it[o[o.length - 2]][o[o.length - 1]], o.push(mt);
|
|
1351
|
-
break;
|
|
1352
|
-
case 3:
|
|
1353
|
-
return true;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
return true;
|
|
1357
|
-
}
|
|
1358
|
-
}, _t = function() {
|
|
1359
|
-
var $ = {
|
|
1360
|
-
EOF: 1,
|
|
1361
|
-
parseError: function parseError(r, o) {
|
|
1362
|
-
if (this.yy.parser) this.yy.parser.parseError(r, o);
|
|
1363
|
-
else throw new Error(r);
|
|
1364
|
-
},
|
|
1365
|
-
// resets the lexer, sets new input
|
|
1366
|
-
setInput: function setInput(n, r) {
|
|
1367
|
-
return this.yy = r || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
1368
|
-
"INITIAL"
|
|
1369
|
-
], this.yylloc = {
|
|
1370
|
-
first_line: 1,
|
|
1371
|
-
first_column: 0,
|
|
1372
|
-
last_line: 1,
|
|
1373
|
-
last_column: 0
|
|
1374
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
1375
|
-
0,
|
|
1376
|
-
0
|
|
1377
|
-
]), this.offset = 0, this;
|
|
1378
|
-
},
|
|
1379
|
-
// consumes and returns one char from the input
|
|
1380
|
-
input: function input() {
|
|
1381
|
-
var n = this._input[0];
|
|
1382
|
-
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
1383
|
-
var r = n.match(/(?:\r\n?|\n).*/g);
|
|
1384
|
-
return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
1385
|
-
},
|
|
1386
|
-
// unshifts one char (or a string) into the input
|
|
1387
|
-
unput: function unput(n) {
|
|
1388
|
-
var r = n.length, o = n.split(/(?:\r\n?|\n)/g);
|
|
1389
|
-
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
|
|
1390
|
-
var h = this.match.split(/(?:\r\n?|\n)/g);
|
|
1391
|
-
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);
|
|
1392
|
-
var y = this.yylloc.range;
|
|
1393
|
-
return this.yylloc = {
|
|
1394
|
-
first_line: this.yylloc.first_line,
|
|
1395
|
-
last_line: this.yylineno + 1,
|
|
1396
|
-
first_column: this.yylloc.first_column,
|
|
1397
|
-
last_column: o ? (o.length === h.length ? this.yylloc.first_column : 0) + h[h.length - o.length].length - o[0].length : this.yylloc.first_column - r
|
|
1398
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
1399
|
-
y[0],
|
|
1400
|
-
y[0] + this.yyleng - r
|
|
1401
|
-
]), this.yyleng = this.yytext.length, this;
|
|
1402
|
-
},
|
|
1403
|
-
// When called from action, caches matched text and appends it on next action
|
|
1404
|
-
more: function more() {
|
|
1405
|
-
return this._more = true, this;
|
|
1406
|
-
},
|
|
1407
|
-
// 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.
|
|
1408
|
-
reject: function reject() {
|
|
1409
|
-
if (this.options.backtrack_lexer) this._backtrack = true;
|
|
1410
|
-
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(), {
|
|
1411
|
-
text: "",
|
|
1412
|
-
token: null,
|
|
1413
|
-
line: this.yylineno
|
|
1414
|
-
});
|
|
1415
|
-
return this;
|
|
1416
|
-
},
|
|
1417
|
-
// retain first n characters of the match
|
|
1418
|
-
less: function less(n) {
|
|
1419
|
-
this.unput(this.match.slice(n));
|
|
1420
|
-
},
|
|
1421
|
-
// displays already matched input, i.e. for error messages
|
|
1422
|
-
pastInput: function pastInput() {
|
|
1423
|
-
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
1424
|
-
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
1425
|
-
},
|
|
1426
|
-
// displays upcoming input, i.e. for error messages
|
|
1427
|
-
upcomingInput: function upcomingInput() {
|
|
1428
|
-
var n = this.match;
|
|
1429
|
-
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
1430
|
-
},
|
|
1431
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
1432
|
-
showPosition: function showPosition() {
|
|
1433
|
-
var n = this.pastInput(), r = new Array(n.length + 1).join("-");
|
|
1434
|
-
return n + this.upcomingInput() + "\n" + r + "^";
|
|
1435
|
-
},
|
|
1436
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
1437
|
-
test_match: function test_match(n, r) {
|
|
1438
|
-
var o, h, y;
|
|
1439
|
-
if (this.options.backtrack_lexer && (y = {
|
|
1440
|
-
yylineno: this.yylineno,
|
|
1441
|
-
yylloc: {
|
|
1442
|
-
first_line: this.yylloc.first_line,
|
|
1443
|
-
last_line: this.last_line,
|
|
1444
|
-
first_column: this.yylloc.first_column,
|
|
1445
|
-
last_column: this.yylloc.last_column
|
|
1446
|
-
},
|
|
1447
|
-
yytext: this.yytext,
|
|
1448
|
-
match: this.match,
|
|
1449
|
-
matches: this.matches,
|
|
1450
|
-
matched: this.matched,
|
|
1451
|
-
yyleng: this.yyleng,
|
|
1452
|
-
offset: this.offset,
|
|
1453
|
-
_more: this._more,
|
|
1454
|
-
_input: this._input,
|
|
1455
|
-
yy: this.yy,
|
|
1456
|
-
conditionStack: this.conditionStack.slice(0),
|
|
1457
|
-
done: this.done
|
|
1458
|
-
}, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), h = n[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
|
|
1459
|
-
first_line: this.yylloc.last_line,
|
|
1460
|
-
last_line: this.yylineno + 1,
|
|
1461
|
-
first_column: this.yylloc.last_column,
|
|
1462
|
-
last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
1463
|
-
}, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
1464
|
-
this.offset,
|
|
1465
|
-
this.offset += this.yyleng
|
|
1466
|
-
]), this._more = false, this._backtrack = false, this._input = this._input.slice(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), o) return o;
|
|
1467
|
-
if (this._backtrack) {
|
|
1468
|
-
for(var a in y)this[a] = y[a];
|
|
1469
|
-
return false;
|
|
1470
|
-
}
|
|
1471
|
-
return false;
|
|
1472
|
-
},
|
|
1473
|
-
// return next match in input
|
|
1474
|
-
next: function next() {
|
|
1475
|
-
if (this.done) return this.EOF;
|
|
1476
|
-
this._input || (this.done = true);
|
|
1477
|
-
var n, r, o, h;
|
|
1478
|
-
this._more || (this.yytext = "", this.match = "");
|
|
1479
|
-
for(var y = this._currentRules(), a = 0; a < y.length; a++)if (o = this._input.match(this.rules[y[a]]), o && (!r || o[0].length > r[0].length)) {
|
|
1480
|
-
if (r = o, h = a, this.options.backtrack_lexer) {
|
|
1481
|
-
if (n = this.test_match(o, y[a]), n !== false) return n;
|
|
1482
|
-
if (this._backtrack) {
|
|
1483
|
-
r = false;
|
|
1484
|
-
continue;
|
|
1485
|
-
} else return false;
|
|
1486
|
-
} else if (!this.options.flex) break;
|
|
1487
|
-
}
|
|
1488
|
-
return r ? (n = this.test_match(r, y[h]), n !== false ? n : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
1489
|
-
text: "",
|
|
1490
|
-
token: null,
|
|
1491
|
-
line: this.yylineno
|
|
1492
|
-
});
|
|
1493
|
-
},
|
|
1494
|
-
// return next match that has a token
|
|
1495
|
-
lex: function lex() {
|
|
1496
|
-
var r = this.next();
|
|
1497
|
-
return r || this.lex();
|
|
1498
|
-
},
|
|
1499
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
1500
|
-
begin: function begin(r) {
|
|
1501
|
-
this.conditionStack.push(r);
|
|
1502
|
-
},
|
|
1503
|
-
// pop the previously active lexer condition state off the condition stack
|
|
1504
|
-
popState: function popState() {
|
|
1505
|
-
var r = this.conditionStack.length - 1;
|
|
1506
|
-
return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
1507
|
-
},
|
|
1508
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
1509
|
-
_currentRules: function _currentRules() {
|
|
1510
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
1511
|
-
},
|
|
1512
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
1513
|
-
topState: function topState(r) {
|
|
1514
|
-
return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
|
|
1515
|
-
},
|
|
1516
|
-
// alias for begin(condition)
|
|
1517
|
-
pushState: function pushState(r) {
|
|
1518
|
-
this.begin(r);
|
|
1519
|
-
},
|
|
1520
|
-
// return the number of states currently on the stack
|
|
1521
|
-
stateStackSize: function stateStackSize() {
|
|
1522
|
-
return this.conditionStack.length;
|
|
1523
|
-
},
|
|
1524
|
-
options: {
|
|
1525
|
-
"case-insensitive": true
|
|
1526
|
-
},
|
|
1527
|
-
performAction: function performAction(r, o, h, y) {
|
|
1528
|
-
switch(h){
|
|
1529
|
-
case 0:
|
|
1530
|
-
break;
|
|
1531
|
-
case 1:
|
|
1532
|
-
break;
|
|
1533
|
-
case 2:
|
|
1534
|
-
return 32;
|
|
1535
|
-
case 3:
|
|
1536
|
-
break;
|
|
1537
|
-
case 4:
|
|
1538
|
-
return this.begin("title"), 13;
|
|
1539
|
-
case 5:
|
|
1540
|
-
return this.popState(), "title_value";
|
|
1541
|
-
case 6:
|
|
1542
|
-
return this.begin("acc_title"), 15;
|
|
1543
|
-
case 7:
|
|
1544
|
-
return this.popState(), "acc_title_value";
|
|
1545
|
-
case 8:
|
|
1546
|
-
return this.begin("acc_descr"), 17;
|
|
1547
|
-
case 9:
|
|
1548
|
-
return this.popState(), "acc_descr_value";
|
|
1549
|
-
case 10:
|
|
1550
|
-
this.begin("acc_descr_multiline");
|
|
1551
|
-
break;
|
|
1552
|
-
case 11:
|
|
1553
|
-
this.popState();
|
|
1554
|
-
break;
|
|
1555
|
-
case 12:
|
|
1556
|
-
return "acc_descr_multiline_value";
|
|
1557
|
-
case 13:
|
|
1558
|
-
return 25;
|
|
1559
|
-
case 14:
|
|
1560
|
-
return 27;
|
|
1561
|
-
case 15:
|
|
1562
|
-
return 26;
|
|
1563
|
-
case 16:
|
|
1564
|
-
return 28;
|
|
1565
|
-
case 17:
|
|
1566
|
-
return 29;
|
|
1567
|
-
case 18:
|
|
1568
|
-
return 30;
|
|
1569
|
-
case 19:
|
|
1570
|
-
return 31;
|
|
1571
|
-
case 20:
|
|
1572
|
-
this.begin("md_string");
|
|
1573
|
-
break;
|
|
1574
|
-
case 21:
|
|
1575
|
-
return "MD_STR";
|
|
1576
|
-
case 22:
|
|
1577
|
-
this.popState();
|
|
1578
|
-
break;
|
|
1579
|
-
case 23:
|
|
1580
|
-
this.begin("string");
|
|
1581
|
-
break;
|
|
1582
|
-
case 24:
|
|
1583
|
-
this.popState();
|
|
1584
|
-
break;
|
|
1585
|
-
case 25:
|
|
1586
|
-
return "STR";
|
|
1587
|
-
case 26:
|
|
1588
|
-
return this.begin("point_start"), 22;
|
|
1589
|
-
case 27:
|
|
1590
|
-
return this.begin("point_x"), 23;
|
|
1591
|
-
case 28:
|
|
1592
|
-
this.popState();
|
|
1593
|
-
break;
|
|
1594
|
-
case 29:
|
|
1595
|
-
this.popState(), this.begin("point_y");
|
|
1596
|
-
break;
|
|
1597
|
-
case 30:
|
|
1598
|
-
return this.popState(), 24;
|
|
1599
|
-
case 31:
|
|
1600
|
-
return 6;
|
|
1601
|
-
case 32:
|
|
1602
|
-
return 43;
|
|
1603
|
-
case 33:
|
|
1604
|
-
return "COLON";
|
|
1605
|
-
case 34:
|
|
1606
|
-
return 45;
|
|
1607
|
-
case 35:
|
|
1608
|
-
return 44;
|
|
1609
|
-
case 36:
|
|
1610
|
-
return 46;
|
|
1611
|
-
case 37:
|
|
1612
|
-
return 46;
|
|
1613
|
-
case 38:
|
|
1614
|
-
return 47;
|
|
1615
|
-
case 39:
|
|
1616
|
-
return 49;
|
|
1617
|
-
case 40:
|
|
1618
|
-
return 50;
|
|
1619
|
-
case 41:
|
|
1620
|
-
return 48;
|
|
1621
|
-
case 42:
|
|
1622
|
-
return 41;
|
|
1623
|
-
case 43:
|
|
1624
|
-
return 51;
|
|
1625
|
-
case 44:
|
|
1626
|
-
return 42;
|
|
1627
|
-
case 45:
|
|
1628
|
-
return 5;
|
|
1629
|
-
case 46:
|
|
1630
|
-
return 33;
|
|
1631
|
-
case 47:
|
|
1632
|
-
return 40;
|
|
1633
|
-
case 48:
|
|
1634
|
-
return 34;
|
|
1635
|
-
}
|
|
1636
|
-
},
|
|
1637
|
-
rules: [
|
|
1638
|
-
/^(?:%%(?!\{)[^\n]*)/i,
|
|
1639
|
-
/^(?:[^\}]%%[^\n]*)/i,
|
|
1640
|
-
/^(?:[\n\r]+)/i,
|
|
1641
|
-
/^(?:%%[^\n]*)/i,
|
|
1642
|
-
/^(?:title\b)/i,
|
|
1643
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1644
|
-
/^(?:accTitle\s*:\s*)/i,
|
|
1645
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1646
|
-
/^(?:accDescr\s*:\s*)/i,
|
|
1647
|
-
/^(?:(?!\n||)*[^\n]*)/i,
|
|
1648
|
-
/^(?:accDescr\s*\{\s*)/i,
|
|
1649
|
-
/^(?:[\}])/i,
|
|
1650
|
-
/^(?:[^\}]*)/i,
|
|
1651
|
-
/^(?: *x-axis *)/i,
|
|
1652
|
-
/^(?: *y-axis *)/i,
|
|
1653
|
-
/^(?: *--+> *)/i,
|
|
1654
|
-
/^(?: *quadrant-1 *)/i,
|
|
1655
|
-
/^(?: *quadrant-2 *)/i,
|
|
1656
|
-
/^(?: *quadrant-3 *)/i,
|
|
1657
|
-
/^(?: *quadrant-4 *)/i,
|
|
1658
|
-
/^(?:["][`])/i,
|
|
1659
|
-
/^(?:[^`"]+)/i,
|
|
1660
|
-
/^(?:[`]["])/i,
|
|
1661
|
-
/^(?:["])/i,
|
|
1662
|
-
/^(?:["])/i,
|
|
1663
|
-
/^(?:[^"]*)/i,
|
|
1664
|
-
/^(?:\s*:\s*\[\s*)/i,
|
|
1665
|
-
/^(?:(1)|(0(.\d+)?))/i,
|
|
1666
|
-
/^(?:\s*\] *)/i,
|
|
1667
|
-
/^(?:\s*,\s*)/i,
|
|
1668
|
-
/^(?:(1)|(0(.\d+)?))/i,
|
|
1669
|
-
/^(?: *quadrantChart *)/i,
|
|
1670
|
-
/^(?:[A-Za-z]+)/i,
|
|
1671
|
-
/^(?::)/i,
|
|
1672
|
-
/^(?:\+)/i,
|
|
1673
|
-
/^(?:,)/i,
|
|
1674
|
-
/^(?:=)/i,
|
|
1675
|
-
/^(?:=)/i,
|
|
1676
|
-
/^(?:\*)/i,
|
|
1677
|
-
/^(?:#)/i,
|
|
1678
|
-
/^(?:[\_])/i,
|
|
1679
|
-
/^(?:\.)/i,
|
|
1680
|
-
/^(?:&)/i,
|
|
1681
|
-
/^(?:-)/i,
|
|
1682
|
-
/^(?:[0-9]+)/i,
|
|
1683
|
-
/^(?:\s)/i,
|
|
1684
|
-
/^(?:;)/i,
|
|
1685
|
-
/^(?:[!"#$%&'*+,-.`?\\_/])/i,
|
|
1686
|
-
/^(?:$)/i
|
|
1687
|
-
],
|
|
1688
|
-
conditions: {
|
|
1689
|
-
point_y: {
|
|
1690
|
-
rules: [
|
|
1691
|
-
30
|
|
1692
|
-
],
|
|
1693
|
-
inclusive: false
|
|
1694
|
-
},
|
|
1695
|
-
point_x: {
|
|
1696
|
-
rules: [
|
|
1697
|
-
29
|
|
1698
|
-
],
|
|
1699
|
-
inclusive: false
|
|
1700
|
-
},
|
|
1701
|
-
point_start: {
|
|
1702
|
-
rules: [
|
|
1703
|
-
27,
|
|
1704
|
-
28
|
|
1705
|
-
],
|
|
1706
|
-
inclusive: false
|
|
1707
|
-
},
|
|
1708
|
-
acc_descr_multiline: {
|
|
1709
|
-
rules: [
|
|
1710
|
-
11,
|
|
1711
|
-
12
|
|
1712
|
-
],
|
|
1713
|
-
inclusive: false
|
|
1714
|
-
},
|
|
1715
|
-
acc_descr: {
|
|
1716
|
-
rules: [
|
|
1717
|
-
9
|
|
1718
|
-
],
|
|
1719
|
-
inclusive: false
|
|
1720
|
-
},
|
|
1721
|
-
acc_title: {
|
|
1722
|
-
rules: [
|
|
1723
|
-
7
|
|
1724
|
-
],
|
|
1725
|
-
inclusive: false
|
|
1726
|
-
},
|
|
1727
|
-
title: {
|
|
1728
|
-
rules: [
|
|
1729
|
-
5
|
|
1730
|
-
],
|
|
1731
|
-
inclusive: false
|
|
1732
|
-
},
|
|
1733
|
-
md_string: {
|
|
1734
|
-
rules: [
|
|
1735
|
-
21,
|
|
1736
|
-
22
|
|
1737
|
-
],
|
|
1738
|
-
inclusive: false
|
|
1739
|
-
},
|
|
1740
|
-
string: {
|
|
1741
|
-
rules: [
|
|
1742
|
-
24,
|
|
1743
|
-
25
|
|
1744
|
-
],
|
|
1745
|
-
inclusive: false
|
|
1746
|
-
},
|
|
1747
|
-
INITIAL: {
|
|
1748
|
-
rules: [
|
|
1749
|
-
0,
|
|
1750
|
-
1,
|
|
1751
|
-
2,
|
|
1752
|
-
3,
|
|
1753
|
-
4,
|
|
1754
|
-
6,
|
|
1755
|
-
8,
|
|
1756
|
-
10,
|
|
1757
|
-
13,
|
|
1758
|
-
14,
|
|
1759
|
-
15,
|
|
1760
|
-
16,
|
|
1761
|
-
17,
|
|
1762
|
-
18,
|
|
1763
|
-
19,
|
|
1764
|
-
20,
|
|
1765
|
-
23,
|
|
1766
|
-
26,
|
|
1767
|
-
31,
|
|
1768
|
-
32,
|
|
1769
|
-
33,
|
|
1770
|
-
34,
|
|
1771
|
-
35,
|
|
1772
|
-
36,
|
|
1773
|
-
37,
|
|
1774
|
-
38,
|
|
1775
|
-
39,
|
|
1776
|
-
40,
|
|
1777
|
-
41,
|
|
1778
|
-
42,
|
|
1779
|
-
43,
|
|
1780
|
-
44,
|
|
1781
|
-
45,
|
|
1782
|
-
46,
|
|
1783
|
-
47,
|
|
1784
|
-
48
|
|
1785
|
-
],
|
|
1786
|
-
inclusive: true
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
};
|
|
1790
|
-
return $;
|
|
1791
|
-
}();
|
|
1792
|
-
ht.lexer = _t;
|
|
1793
|
-
function ct() {
|
|
1794
|
-
this.yy = {};
|
|
1795
|
-
}
|
|
1796
|
-
return ct.prototype = ht, ht.Parser = ct, new ct();
|
|
1797
|
-
}();
|
|
1798
|
-
pt.parser = pt;
|
|
1799
|
-
var Rt = pt, V = index.up();
|
|
1800
|
-
var Vt = /*#__PURE__*/ function() {
|
|
1801
|
-
function Vt() {
|
|
1802
|
-
_class_call_check(this, Vt);
|
|
1803
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
1804
|
-
}
|
|
1805
|
-
_create_class(Vt, [
|
|
1806
|
-
{
|
|
1807
|
-
key: "getDefaultData",
|
|
1808
|
-
value: function getDefaultData() {
|
|
1809
|
-
return {
|
|
1810
|
-
titleText: "",
|
|
1811
|
-
quadrant1Text: "",
|
|
1812
|
-
quadrant2Text: "",
|
|
1813
|
-
quadrant3Text: "",
|
|
1814
|
-
quadrant4Text: "",
|
|
1815
|
-
xAxisLeftText: "",
|
|
1816
|
-
xAxisRightText: "",
|
|
1817
|
-
yAxisBottomText: "",
|
|
1818
|
-
yAxisTopText: "",
|
|
1819
|
-
points: []
|
|
1820
|
-
};
|
|
1821
|
-
}
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
key: "getDefaultConfig",
|
|
1825
|
-
value: function getDefaultConfig() {
|
|
1826
|
-
var s, c, x, f, d, l, g, i, q, b, D, w, I, B, p, H, G, K;
|
|
1827
|
-
return {
|
|
1828
|
-
showXAxis: true,
|
|
1829
|
-
showYAxis: true,
|
|
1830
|
-
showTitle: true,
|
|
1831
|
-
chartHeight: ((s = index.yp.quadrantChart) == null ? void 0 : s.chartWidth) || 500,
|
|
1832
|
-
chartWidth: ((c = index.yp.quadrantChart) == null ? void 0 : c.chartHeight) || 500,
|
|
1833
|
-
titlePadding: ((x = index.yp.quadrantChart) == null ? void 0 : x.titlePadding) || 10,
|
|
1834
|
-
titleFontSize: ((f = index.yp.quadrantChart) == null ? void 0 : f.titleFontSize) || 20,
|
|
1835
|
-
quadrantPadding: ((d = index.yp.quadrantChart) == null ? void 0 : d.quadrantPadding) || 5,
|
|
1836
|
-
xAxisLabelPadding: ((l = index.yp.quadrantChart) == null ? void 0 : l.xAxisLabelPadding) || 5,
|
|
1837
|
-
yAxisLabelPadding: ((g = index.yp.quadrantChart) == null ? void 0 : g.yAxisLabelPadding) || 5,
|
|
1838
|
-
xAxisLabelFontSize: ((i = index.yp.quadrantChart) == null ? void 0 : i.xAxisLabelFontSize) || 16,
|
|
1839
|
-
yAxisLabelFontSize: ((q = index.yp.quadrantChart) == null ? void 0 : q.yAxisLabelFontSize) || 16,
|
|
1840
|
-
quadrantLabelFontSize: ((b = index.yp.quadrantChart) == null ? void 0 : b.quadrantLabelFontSize) || 16,
|
|
1841
|
-
quadrantTextTopPadding: ((D = index.yp.quadrantChart) == null ? void 0 : D.quadrantTextTopPadding) || 5,
|
|
1842
|
-
pointTextPadding: ((w = index.yp.quadrantChart) == null ? void 0 : w.pointTextPadding) || 5,
|
|
1843
|
-
pointLabelFontSize: ((I = index.yp.quadrantChart) == null ? void 0 : I.pointLabelFontSize) || 12,
|
|
1844
|
-
pointRadius: ((B = index.yp.quadrantChart) == null ? void 0 : B.pointRadius) || 5,
|
|
1845
|
-
xAxisPosition: ((p = index.yp.quadrantChart) == null ? void 0 : p.xAxisPosition) || "top",
|
|
1846
|
-
yAxisPosition: ((H = index.yp.quadrantChart) == null ? void 0 : H.yAxisPosition) || "left",
|
|
1847
|
-
quadrantInternalBorderStrokeWidth: ((G = index.yp.quadrantChart) == null ? void 0 : G.quadrantInternalBorderStrokeWidth) || 1,
|
|
1848
|
-
quadrantExternalBorderStrokeWidth: ((K = index.yp.quadrantChart) == null ? void 0 : K.quadrantExternalBorderStrokeWidth) || 2
|
|
1849
|
-
};
|
|
1850
|
-
}
|
|
1851
|
-
},
|
|
1852
|
-
{
|
|
1853
|
-
key: "getDefaultThemeConfig",
|
|
1854
|
-
value: function getDefaultThemeConfig() {
|
|
1855
|
-
return {
|
|
1856
|
-
quadrant1Fill: V.quadrant1Fill,
|
|
1857
|
-
quadrant2Fill: V.quadrant2Fill,
|
|
1858
|
-
quadrant3Fill: V.quadrant3Fill,
|
|
1859
|
-
quadrant4Fill: V.quadrant4Fill,
|
|
1860
|
-
quadrant1TextFill: V.quadrant1TextFill,
|
|
1861
|
-
quadrant2TextFill: V.quadrant2TextFill,
|
|
1862
|
-
quadrant3TextFill: V.quadrant3TextFill,
|
|
1863
|
-
quadrant4TextFill: V.quadrant4TextFill,
|
|
1864
|
-
quadrantPointFill: V.quadrantPointFill,
|
|
1865
|
-
quadrantPointTextFill: V.quadrantPointTextFill,
|
|
1866
|
-
quadrantXAxisTextFill: V.quadrantXAxisTextFill,
|
|
1867
|
-
quadrantYAxisTextFill: V.quadrantYAxisTextFill,
|
|
1868
|
-
quadrantTitleFill: V.quadrantTitleFill,
|
|
1869
|
-
quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
|
|
1870
|
-
quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
|
|
1871
|
-
};
|
|
1872
|
-
}
|
|
1873
|
-
},
|
|
1874
|
-
{
|
|
1875
|
-
key: "clear",
|
|
1876
|
-
value: function clear() {
|
|
1877
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), index.L.info("clear called");
|
|
1878
|
-
}
|
|
1879
|
-
},
|
|
1880
|
-
{
|
|
1881
|
-
key: "setData",
|
|
1882
|
-
value: function setData(s) {
|
|
1883
|
-
this.data = _object_spread({}, this.data, s);
|
|
1884
|
-
}
|
|
1885
|
-
},
|
|
1886
|
-
{
|
|
1887
|
-
key: "addPoints",
|
|
1888
|
-
value: function addPoints(s) {
|
|
1889
|
-
this.data.points = _to_consumable_array(s).concat(_to_consumable_array(this.data.points));
|
|
1890
|
-
}
|
|
1891
|
-
},
|
|
1892
|
-
{
|
|
1893
|
-
key: "setConfig",
|
|
1894
|
-
value: function setConfig(s) {
|
|
1895
|
-
index.L.trace("setConfig called with: ", s), this.config = _object_spread({}, this.config, s);
|
|
1896
|
-
}
|
|
1897
|
-
},
|
|
1898
|
-
{
|
|
1899
|
-
key: "setThemeConfig",
|
|
1900
|
-
value: function setThemeConfig(s) {
|
|
1901
|
-
index.L.trace("setThemeConfig called with: ", s), this.themeConfig = _object_spread({}, this.themeConfig, s);
|
|
1902
|
-
}
|
|
1903
|
-
},
|
|
1904
|
-
{
|
|
1905
|
-
key: "calculateSpace",
|
|
1906
|
-
value: function calculateSpace(s, c, x, f) {
|
|
1907
|
-
var d = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, l = {
|
|
1908
|
-
top: s === "top" && c ? d : 0,
|
|
1909
|
-
bottom: s === "bottom" && c ? d : 0
|
|
1910
|
-
}, g = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, i = {
|
|
1911
|
-
left: this.config.yAxisPosition === "left" && x ? g : 0,
|
|
1912
|
-
right: this.config.yAxisPosition === "right" && x ? g : 0
|
|
1913
|
-
}, q = this.config.titleFontSize + this.config.titlePadding * 2, b = {
|
|
1914
|
-
top: f ? q : 0
|
|
1915
|
-
}, D = this.config.quadrantPadding + i.left, w = this.config.quadrantPadding + l.top + b.top, I = this.config.chartWidth - this.config.quadrantPadding * 2 - i.left - i.right, B = this.config.chartHeight - this.config.quadrantPadding * 2 - l.top - l.bottom - b.top, p = I / 2, H = B / 2;
|
|
1916
|
-
return {
|
|
1917
|
-
xAxisSpace: l,
|
|
1918
|
-
yAxisSpace: i,
|
|
1919
|
-
titleSpace: b,
|
|
1920
|
-
quadrantSpace: {
|
|
1921
|
-
quadrantLeft: D,
|
|
1922
|
-
quadrantTop: w,
|
|
1923
|
-
quadrantWidth: I,
|
|
1924
|
-
quadrantHalfWidth: p,
|
|
1925
|
-
quadrantHeight: B,
|
|
1926
|
-
quadrantHalfHeight: H
|
|
1927
|
-
}
|
|
1928
|
-
};
|
|
1929
|
-
}
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
key: "getAxisLabels",
|
|
1933
|
-
value: function getAxisLabels(s, c, x, f) {
|
|
1934
|
-
var d = f.quadrantSpace, l = f.titleSpace, g = d.quadrantHalfHeight, i = d.quadrantHeight, q = d.quadrantLeft, b = d.quadrantHalfWidth, D = d.quadrantTop, w = d.quadrantWidth, I = !!this.data.xAxisRightText, B = !!this.data.yAxisTopText, p = [];
|
|
1935
|
-
return this.data.xAxisLeftText && c && p.push({
|
|
1936
|
-
text: this.data.xAxisLeftText,
|
|
1937
|
-
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
1938
|
-
x: q + (I ? b / 2 : 0),
|
|
1939
|
-
y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
|
|
1940
|
-
fontSize: this.config.xAxisLabelFontSize,
|
|
1941
|
-
verticalPos: I ? "center" : "left",
|
|
1942
|
-
horizontalPos: "top",
|
|
1943
|
-
rotation: 0
|
|
1944
|
-
}), this.data.xAxisRightText && c && p.push({
|
|
1945
|
-
text: this.data.xAxisRightText,
|
|
1946
|
-
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
1947
|
-
x: q + b + (I ? b / 2 : 0),
|
|
1948
|
-
y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
|
|
1949
|
-
fontSize: this.config.xAxisLabelFontSize,
|
|
1950
|
-
verticalPos: I ? "center" : "left",
|
|
1951
|
-
horizontalPos: "top",
|
|
1952
|
-
rotation: 0
|
|
1953
|
-
}), this.data.yAxisBottomText && x && p.push({
|
|
1954
|
-
text: this.data.yAxisBottomText,
|
|
1955
|
-
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
1956
|
-
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
|
|
1957
|
-
y: D + i - (B ? g / 2 : 0),
|
|
1958
|
-
fontSize: this.config.yAxisLabelFontSize,
|
|
1959
|
-
verticalPos: B ? "center" : "left",
|
|
1960
|
-
horizontalPos: "top",
|
|
1961
|
-
rotation: -90
|
|
1962
|
-
}), this.data.yAxisTopText && x && p.push({
|
|
1963
|
-
text: this.data.yAxisTopText,
|
|
1964
|
-
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
1965
|
-
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
|
|
1966
|
-
y: D + g - (B ? g / 2 : 0),
|
|
1967
|
-
fontSize: this.config.yAxisLabelFontSize,
|
|
1968
|
-
verticalPos: B ? "center" : "left",
|
|
1969
|
-
horizontalPos: "top",
|
|
1970
|
-
rotation: -90
|
|
1971
|
-
}), p;
|
|
1972
|
-
}
|
|
1973
|
-
},
|
|
1974
|
-
{
|
|
1975
|
-
key: "getQuadrants",
|
|
1976
|
-
value: function getQuadrants(s) {
|
|
1977
|
-
var c = s.quadrantSpace, x = c.quadrantHalfHeight, f = c.quadrantLeft, d = c.quadrantHalfWidth, l = c.quadrantTop, g = [
|
|
1978
|
-
{
|
|
1979
|
-
text: {
|
|
1980
|
-
text: this.data.quadrant1Text,
|
|
1981
|
-
fill: this.themeConfig.quadrant1TextFill,
|
|
1982
|
-
x: 0,
|
|
1983
|
-
y: 0,
|
|
1984
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
1985
|
-
verticalPos: "center",
|
|
1986
|
-
horizontalPos: "middle",
|
|
1987
|
-
rotation: 0
|
|
1988
|
-
},
|
|
1989
|
-
x: f + d,
|
|
1990
|
-
y: l,
|
|
1991
|
-
width: d,
|
|
1992
|
-
height: x,
|
|
1993
|
-
fill: this.themeConfig.quadrant1Fill
|
|
1994
|
-
},
|
|
1995
|
-
{
|
|
1996
|
-
text: {
|
|
1997
|
-
text: this.data.quadrant2Text,
|
|
1998
|
-
fill: this.themeConfig.quadrant2TextFill,
|
|
1999
|
-
x: 0,
|
|
2000
|
-
y: 0,
|
|
2001
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
2002
|
-
verticalPos: "center",
|
|
2003
|
-
horizontalPos: "middle",
|
|
2004
|
-
rotation: 0
|
|
2005
|
-
},
|
|
2006
|
-
x: f,
|
|
2007
|
-
y: l,
|
|
2008
|
-
width: d,
|
|
2009
|
-
height: x,
|
|
2010
|
-
fill: this.themeConfig.quadrant2Fill
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
text: {
|
|
2014
|
-
text: this.data.quadrant3Text,
|
|
2015
|
-
fill: this.themeConfig.quadrant3TextFill,
|
|
2016
|
-
x: 0,
|
|
2017
|
-
y: 0,
|
|
2018
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
2019
|
-
verticalPos: "center",
|
|
2020
|
-
horizontalPos: "middle",
|
|
2021
|
-
rotation: 0
|
|
2022
|
-
},
|
|
2023
|
-
x: f,
|
|
2024
|
-
y: l + x,
|
|
2025
|
-
width: d,
|
|
2026
|
-
height: x,
|
|
2027
|
-
fill: this.themeConfig.quadrant3Fill
|
|
2028
|
-
},
|
|
2029
|
-
{
|
|
2030
|
-
text: {
|
|
2031
|
-
text: this.data.quadrant4Text,
|
|
2032
|
-
fill: this.themeConfig.quadrant4TextFill,
|
|
2033
|
-
x: 0,
|
|
2034
|
-
y: 0,
|
|
2035
|
-
fontSize: this.config.quadrantLabelFontSize,
|
|
2036
|
-
verticalPos: "center",
|
|
2037
|
-
horizontalPos: "middle",
|
|
2038
|
-
rotation: 0
|
|
2039
|
-
},
|
|
2040
|
-
x: f + d,
|
|
2041
|
-
y: l + x,
|
|
2042
|
-
width: d,
|
|
2043
|
-
height: x,
|
|
2044
|
-
fill: this.themeConfig.quadrant4Fill
|
|
2045
|
-
}
|
|
2046
|
-
];
|
|
2047
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2048
|
-
try {
|
|
2049
|
-
for(var _iterator = g[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
2050
|
-
var i = _step.value;
|
|
2051
|
-
i.text.x = i.x + i.width / 2, this.data.points.length === 0 ? (i.text.y = i.y + i.height / 2, i.text.horizontalPos = "middle") : (i.text.y = i.y + this.config.quadrantTextTopPadding, i.text.horizontalPos = "top");
|
|
2052
|
-
}
|
|
2053
|
-
} catch (err) {
|
|
2054
|
-
_didIteratorError = true;
|
|
2055
|
-
_iteratorError = err;
|
|
2056
|
-
} finally{
|
|
2057
|
-
try {
|
|
2058
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
2059
|
-
_iterator.return();
|
|
2060
|
-
}
|
|
2061
|
-
} finally{
|
|
2062
|
-
if (_didIteratorError) {
|
|
2063
|
-
throw _iteratorError;
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
return g;
|
|
2068
|
-
}
|
|
2069
|
-
},
|
|
2070
|
-
{
|
|
2071
|
-
key: "getQuadrantPoints",
|
|
2072
|
-
value: function getQuadrantPoints(s) {
|
|
2073
|
-
var _this = this;
|
|
2074
|
-
var c = s.quadrantSpace, x = c.quadrantHeight, f = c.quadrantLeft, d = c.quadrantTop, l = c.quadrantWidth, g = linear9bcf74c4.Hn().domain([
|
|
2075
|
-
0,
|
|
2076
|
-
1
|
|
2077
|
-
]).range([
|
|
2078
|
-
f,
|
|
2079
|
-
l + f
|
|
2080
|
-
]), i = linear9bcf74c4.Hn().domain([
|
|
2081
|
-
0,
|
|
2082
|
-
1
|
|
2083
|
-
]).range([
|
|
2084
|
-
x + d,
|
|
2085
|
-
d
|
|
2086
|
-
]);
|
|
2087
|
-
return this.data.points.map(function(b) {
|
|
2088
|
-
return {
|
|
2089
|
-
x: g(b.x),
|
|
2090
|
-
y: i(b.y),
|
|
2091
|
-
fill: _this.themeConfig.quadrantPointFill,
|
|
2092
|
-
radius: _this.config.pointRadius,
|
|
2093
|
-
text: {
|
|
2094
|
-
text: b.text,
|
|
2095
|
-
fill: _this.themeConfig.quadrantPointTextFill,
|
|
2096
|
-
x: g(b.x),
|
|
2097
|
-
y: i(b.y) + _this.config.pointTextPadding,
|
|
2098
|
-
verticalPos: "center",
|
|
2099
|
-
horizontalPos: "top",
|
|
2100
|
-
fontSize: _this.config.pointLabelFontSize,
|
|
2101
|
-
rotation: 0
|
|
2102
|
-
}
|
|
2103
|
-
};
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
},
|
|
2107
|
-
{
|
|
2108
|
-
key: "getBorders",
|
|
2109
|
-
value: function getBorders(s) {
|
|
2110
|
-
var c = this.config.quadrantExternalBorderStrokeWidth / 2, x = s.quadrantSpace, f = x.quadrantHalfHeight, d = x.quadrantHeight, l = x.quadrantLeft, g = x.quadrantHalfWidth, i = x.quadrantTop, q = x.quadrantWidth;
|
|
2111
|
-
return [
|
|
2112
|
-
// top border
|
|
2113
|
-
{
|
|
2114
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
2115
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
2116
|
-
x1: l - c,
|
|
2117
|
-
y1: i,
|
|
2118
|
-
x2: l + q + c,
|
|
2119
|
-
y2: i
|
|
2120
|
-
},
|
|
2121
|
-
// right border
|
|
2122
|
-
{
|
|
2123
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
2124
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
2125
|
-
x1: l + q,
|
|
2126
|
-
y1: i + c,
|
|
2127
|
-
x2: l + q,
|
|
2128
|
-
y2: i + d - c
|
|
2129
|
-
},
|
|
2130
|
-
// bottom border
|
|
2131
|
-
{
|
|
2132
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
2133
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
2134
|
-
x1: l - c,
|
|
2135
|
-
y1: i + d,
|
|
2136
|
-
x2: l + q + c,
|
|
2137
|
-
y2: i + d
|
|
2138
|
-
},
|
|
2139
|
-
// left border
|
|
2140
|
-
{
|
|
2141
|
-
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
2142
|
-
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
2143
|
-
x1: l,
|
|
2144
|
-
y1: i + c,
|
|
2145
|
-
x2: l,
|
|
2146
|
-
y2: i + d - c
|
|
2147
|
-
},
|
|
2148
|
-
// vertical inner border
|
|
2149
|
-
{
|
|
2150
|
-
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
2151
|
-
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
2152
|
-
x1: l + g,
|
|
2153
|
-
y1: i + c,
|
|
2154
|
-
x2: l + g,
|
|
2155
|
-
y2: i + d - c
|
|
2156
|
-
},
|
|
2157
|
-
// horizontal inner border
|
|
2158
|
-
{
|
|
2159
|
-
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
2160
|
-
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
2161
|
-
x1: l + c,
|
|
2162
|
-
y1: i + f,
|
|
2163
|
-
x2: l + q - c,
|
|
2164
|
-
y2: i + f
|
|
2165
|
-
}
|
|
2166
|
-
];
|
|
2167
|
-
}
|
|
2168
|
-
},
|
|
2169
|
-
{
|
|
2170
|
-
key: "getTitle",
|
|
2171
|
-
value: function getTitle(s) {
|
|
2172
|
-
if (s) return {
|
|
2173
|
-
text: this.data.titleText,
|
|
2174
|
-
fill: this.themeConfig.quadrantTitleFill,
|
|
2175
|
-
fontSize: this.config.titleFontSize,
|
|
2176
|
-
horizontalPos: "top",
|
|
2177
|
-
verticalPos: "center",
|
|
2178
|
-
rotation: 0,
|
|
2179
|
-
y: this.config.titlePadding,
|
|
2180
|
-
x: this.config.chartWidth / 2
|
|
2181
|
-
};
|
|
2182
|
-
}
|
|
2183
|
-
},
|
|
2184
|
-
{
|
|
2185
|
-
key: "build",
|
|
2186
|
-
value: function build() {
|
|
2187
|
-
var s = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), c = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), x = this.config.showTitle && !!this.data.titleText, f = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, d = this.calculateSpace(f, s, c, x);
|
|
2188
|
-
return {
|
|
2189
|
-
points: this.getQuadrantPoints(d),
|
|
2190
|
-
quadrants: this.getQuadrants(d),
|
|
2191
|
-
axisLabels: this.getAxisLabels(f, s, c, d),
|
|
2192
|
-
borderLines: this.getBorders(d),
|
|
2193
|
-
title: this.getTitle(x)
|
|
2194
|
-
};
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
]);
|
|
2198
|
-
return Vt;
|
|
2199
|
-
}();
|
|
2200
|
-
var Wt = index.Vn();
|
|
2201
|
-
function j(e) {
|
|
2202
|
-
return index.ai(e.trim(), Wt);
|
|
2203
|
-
}
|
|
2204
|
-
var R = new Vt();
|
|
2205
|
-
function Nt(e) {
|
|
2206
|
-
R.setData({
|
|
2207
|
-
quadrant1Text: j(e.text)
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
function Ut(e) {
|
|
2211
|
-
R.setData({
|
|
2212
|
-
quadrant2Text: j(e.text)
|
|
2213
|
-
});
|
|
2214
|
-
}
|
|
2215
|
-
function Qt(e) {
|
|
2216
|
-
R.setData({
|
|
2217
|
-
quadrant3Text: j(e.text)
|
|
2218
|
-
});
|
|
2219
|
-
}
|
|
2220
|
-
function Ht(e) {
|
|
2221
|
-
R.setData({
|
|
2222
|
-
quadrant4Text: j(e.text)
|
|
2223
|
-
});
|
|
2224
|
-
}
|
|
2225
|
-
function Mt(e) {
|
|
2226
|
-
R.setData({
|
|
2227
|
-
xAxisLeftText: j(e.text)
|
|
2228
|
-
});
|
|
2229
|
-
}
|
|
2230
|
-
function Xt(e) {
|
|
2231
|
-
R.setData({
|
|
2232
|
-
xAxisRightText: j(e.text)
|
|
2233
|
-
});
|
|
2234
|
-
}
|
|
2235
|
-
function Ot(e) {
|
|
2236
|
-
R.setData({
|
|
2237
|
-
yAxisTopText: j(e.text)
|
|
2238
|
-
});
|
|
2239
|
-
}
|
|
2240
|
-
function Yt(e) {
|
|
2241
|
-
R.setData({
|
|
2242
|
-
yAxisBottomText: j(e.text)
|
|
2243
|
-
});
|
|
2244
|
-
}
|
|
2245
|
-
function jt(e, s, c) {
|
|
2246
|
-
R.addPoints([
|
|
2247
|
-
{
|
|
2248
|
-
x: s,
|
|
2249
|
-
y: c,
|
|
2250
|
-
text: j(e.text)
|
|
2251
|
-
}
|
|
2252
|
-
]);
|
|
2253
|
-
}
|
|
2254
|
-
function Gt(e) {
|
|
2255
|
-
R.setConfig({
|
|
2256
|
-
chartWidth: e
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
function $t(e) {
|
|
2260
|
-
R.setConfig({
|
|
2261
|
-
chartHeight: e
|
|
2262
|
-
});
|
|
2263
|
-
}
|
|
2264
|
-
function Kt() {
|
|
2265
|
-
var e = index.Vn(), s = e.themeVariables, c = e.quadrantChart;
|
|
2266
|
-
return c && R.setConfig(c), R.setThemeConfig({
|
|
2267
|
-
quadrant1Fill: s.quadrant1Fill,
|
|
2268
|
-
quadrant2Fill: s.quadrant2Fill,
|
|
2269
|
-
quadrant3Fill: s.quadrant3Fill,
|
|
2270
|
-
quadrant4Fill: s.quadrant4Fill,
|
|
2271
|
-
quadrant1TextFill: s.quadrant1TextFill,
|
|
2272
|
-
quadrant2TextFill: s.quadrant2TextFill,
|
|
2273
|
-
quadrant3TextFill: s.quadrant3TextFill,
|
|
2274
|
-
quadrant4TextFill: s.quadrant4TextFill,
|
|
2275
|
-
quadrantPointFill: s.quadrantPointFill,
|
|
2276
|
-
quadrantPointTextFill: s.quadrantPointTextFill,
|
|
2277
|
-
quadrantXAxisTextFill: s.quadrantXAxisTextFill,
|
|
2278
|
-
quadrantYAxisTextFill: s.quadrantYAxisTextFill,
|
|
2279
|
-
quadrantExternalBorderStrokeFill: s.quadrantExternalBorderStrokeFill,
|
|
2280
|
-
quadrantInternalBorderStrokeFill: s.quadrantInternalBorderStrokeFill,
|
|
2281
|
-
quadrantTitleFill: s.quadrantTitleFill
|
|
2282
|
-
}), R.setData({
|
|
2283
|
-
titleText: index.O_()
|
|
2284
|
-
}), R.build();
|
|
2285
|
-
}
|
|
2286
|
-
var Zt = function Zt() {
|
|
2287
|
-
R.clear(), index.B_();
|
|
2288
|
-
}, Jt = {
|
|
2289
|
-
setWidth: Gt,
|
|
2290
|
-
setHeight: $t,
|
|
2291
|
-
setQuadrant1Text: Nt,
|
|
2292
|
-
setQuadrant2Text: Ut,
|
|
2293
|
-
setQuadrant3Text: Qt,
|
|
2294
|
-
setQuadrant4Text: Ht,
|
|
2295
|
-
setXAxisLeftText: Mt,
|
|
2296
|
-
setXAxisRightText: Xt,
|
|
2297
|
-
setYAxisTopText: Ot,
|
|
2298
|
-
setYAxisBottomText: Yt,
|
|
2299
|
-
addPoint: jt,
|
|
2300
|
-
getQuadrantData: Kt,
|
|
2301
|
-
clear: Zt,
|
|
2302
|
-
setAccTitle: index.F_,
|
|
2303
|
-
getAccTitle: index.A_,
|
|
2304
|
-
setDiagramTitle: index.M_,
|
|
2305
|
-
getDiagramTitle: index.O_,
|
|
2306
|
-
getAccDescription: index.E_,
|
|
2307
|
-
setAccDescription: index.L_
|
|
2308
|
-
}, te = function(e, s, c, x) {
|
|
2309
|
-
var f = function f(t) {
|
|
2310
|
-
return t === "top" ? "hanging" : "middle";
|
|
2311
|
-
};
|
|
2312
|
-
var d = function d(t) {
|
|
2313
|
-
return t === "left" ? "start" : "middle";
|
|
2314
|
-
};
|
|
2315
|
-
var l = function l(t) {
|
|
2316
|
-
return "translate(".concat(t.x, ", ").concat(t.y, ") rotate(").concat(t.rotation || 0, ")");
|
|
2317
|
-
};
|
|
2318
|
-
var T, m, A;
|
|
2319
|
-
var g = index.Vn();
|
|
2320
|
-
index.L.debug("Rendering quadrant chart\n" + e);
|
|
2321
|
-
var i = g.securityLevel;
|
|
2322
|
-
var q;
|
|
2323
|
-
i === "sandbox" && (q = index.bt("#i" + s));
|
|
2324
|
-
var D = (i === "sandbox" ? index.bt(q.nodes()[0].contentDocument.body) : index.bt("body")).select('[id="'.concat(s, '"]')), w = D.append("g").attr("class", "main"), I = ((T = g.quadrantChart) == null ? void 0 : T.chartWidth) || 500, B = ((m = g.quadrantChart) == null ? void 0 : m.chartHeight) || 500;
|
|
2325
|
-
index.Ol(D, B, I, ((A = g.quadrantChart) == null ? void 0 : A.useMaxWidth) || true), D.attr("viewBox", "0 0 " + I + " " + B), x.db.setHeight(B), x.db.setWidth(I);
|
|
2326
|
-
var p = x.db.getQuadrantData(), H = w.append("g").attr("class", "quadrants"), G = w.append("g").attr("class", "border"), K = w.append("g").attr("class", "data-points"), at = w.append("g").attr("class", "labels"), nt = w.append("g").attr("class", "title");
|
|
2327
|
-
p.title && nt.append("text").attr("x", 0).attr("y", 0).attr("fill", p.title.fill).attr("font-size", p.title.fontSize).attr("dominant-baseline", f(p.title.horizontalPos)).attr("text-anchor", d(p.title.verticalPos)).attr("transform", l(p.title)).text(p.title.text), p.borderLines && G.selectAll("line").data(p.borderLines).enter().append("line").attr("x1", function(t) {
|
|
2328
|
-
return t.x1;
|
|
2329
|
-
}).attr("y1", function(t) {
|
|
2330
|
-
return t.y1;
|
|
2331
|
-
}).attr("x2", function(t) {
|
|
2332
|
-
return t.x2;
|
|
2333
|
-
}).attr("y2", function(t) {
|
|
2334
|
-
return t.y2;
|
|
2335
|
-
}).style("stroke", function(t) {
|
|
2336
|
-
return t.strokeFill;
|
|
2337
|
-
}).style("stroke-width", function(t) {
|
|
2338
|
-
return t.strokeWidth;
|
|
2339
|
-
});
|
|
2340
|
-
var et = H.selectAll("g.quadrant").data(p.quadrants).enter().append("g").attr("class", "quadrant");
|
|
2341
|
-
et.append("rect").attr("x", function(t) {
|
|
2342
|
-
return t.x;
|
|
2343
|
-
}).attr("y", function(t) {
|
|
2344
|
-
return t.y;
|
|
2345
|
-
}).attr("width", function(t) {
|
|
2346
|
-
return t.width;
|
|
2347
|
-
}).attr("height", function(t) {
|
|
2348
|
-
return t.height;
|
|
2349
|
-
}).attr("fill", function(t) {
|
|
2350
|
-
return t.fill;
|
|
2351
|
-
}), et.append("text").attr("x", 0).attr("y", 0).attr("fill", function(t) {
|
|
2352
|
-
return t.text.fill;
|
|
2353
|
-
}).attr("font-size", function(t) {
|
|
2354
|
-
return t.text.fontSize;
|
|
2355
|
-
}).attr("dominant-baseline", function(t) {
|
|
2356
|
-
return f(t.text.horizontalPos);
|
|
2357
|
-
}).attr("text-anchor", function(t) {
|
|
2358
|
-
return d(t.text.verticalPos);
|
|
2359
|
-
}).attr("transform", function(t) {
|
|
2360
|
-
return l(t.text);
|
|
2361
|
-
}).text(function(t) {
|
|
2362
|
-
return t.text.text;
|
|
2363
|
-
}), at.selectAll("g.label").data(p.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text(function(t) {
|
|
2364
|
-
return t.text;
|
|
2365
|
-
}).attr("fill", function(t) {
|
|
2366
|
-
return t.fill;
|
|
2367
|
-
}).attr("font-size", function(t) {
|
|
2368
|
-
return t.fontSize;
|
|
2369
|
-
}).attr("dominant-baseline", function(t) {
|
|
2370
|
-
return f(t.horizontalPos);
|
|
2371
|
-
}).attr("text-anchor", function(t) {
|
|
2372
|
-
return d(t.verticalPos);
|
|
2373
|
-
}).attr("transform", function(t) {
|
|
2374
|
-
return l(t);
|
|
2375
|
-
});
|
|
2376
|
-
var N = K.selectAll("g.data-point").data(p.points).enter().append("g").attr("class", "data-point");
|
|
2377
|
-
N.append("circle").attr("cx", function(t) {
|
|
2378
|
-
return t.x;
|
|
2379
|
-
}).attr("cy", function(t) {
|
|
2380
|
-
return t.y;
|
|
2381
|
-
}).attr("r", function(t) {
|
|
2382
|
-
return t.radius;
|
|
2383
|
-
}).attr("fill", function(t) {
|
|
2384
|
-
return t.fill;
|
|
2385
|
-
}), N.append("text").attr("x", 0).attr("y", 0).text(function(t) {
|
|
2386
|
-
return t.text.text;
|
|
2387
|
-
}).attr("fill", function(t) {
|
|
2388
|
-
return t.text.fill;
|
|
2389
|
-
}).attr("font-size", function(t) {
|
|
2390
|
-
return t.text.fontSize;
|
|
2391
|
-
}).attr("dominant-baseline", function(t) {
|
|
2392
|
-
return f(t.text.horizontalPos);
|
|
2393
|
-
}).attr("text-anchor", function(t) {
|
|
2394
|
-
return d(t.text.verticalPos);
|
|
2395
|
-
}).attr("transform", function(t) {
|
|
2396
|
-
return l(t.text);
|
|
2397
|
-
});
|
|
2398
|
-
}, ee = {
|
|
2399
|
-
draw: te
|
|
2400
|
-
}, se = {
|
|
2401
|
-
parser: Rt,
|
|
2402
|
-
db: Jt,
|
|
2403
|
-
renderer: ee,
|
|
2404
|
-
styles: function() {
|
|
2405
|
-
return "";
|
|
2406
|
-
}
|
|
2407
|
-
};
|
|
2408
|
-
|
|
2409
|
-
exports.diagram = se;
|