@digipair/skill-web-chatbot 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SAP-icons.cjs.js +2489 -0
- package/SAP-icons.cjs2.js +2489 -0
- package/SAP-icons.esm.js +2482 -0
- package/SAP-icons.esm2.js +2482 -0
- package/arc-da8fd8d8.cjs.js +88 -0
- package/arc-da8fd8d8.esm.js +86 -0
- package/array-2ff2c7a6.cjs.js +7 -0
- package/array-2ff2c7a6.esm.js +5 -0
- package/c4Diagram-1bdb45a8.cjs.js +4613 -0
- package/c4Diagram-1bdb45a8.esm.js +4611 -0
- package/classDiagram-185c1a10.cjs.js +96 -0
- package/classDiagram-185c1a10.esm.js +94 -0
- package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
- package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
- package/constant-2fe7eae5.cjs.js +58 -0
- package/constant-2fe7eae5.esm.js +55 -0
- package/createText-94e3ebbf.cjs.js +2775 -0
- package/createText-94e3ebbf.esm.js +2773 -0
- package/debug.html +18 -0
- package/edges-558884ee.cjs.js +1450 -0
- package/edges-558884ee.esm.js +1436 -0
- package/erDiagram-97139f44.cjs.js +1949 -0
- package/erDiagram-97139f44.esm.js +1947 -0
- package/flowDb-a4faf166.cjs.js +6918 -0
- package/flowDb-a4faf166.esm.js +6914 -0
- package/flowDiagram-ccbbb58d.cjs.js +999 -0
- package/flowDiagram-ccbbb58d.esm.js +997 -0
- package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
- package/flowDiagram-v2-79ccd6da.esm.js +27 -0
- package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
- package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
- package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
- package/ganttDiagram-3eff0dd8.esm.js +3853 -0
- package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
- package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
- package/index-d0b453e2.cjs.js +609 -0
- package/index-d0b453e2.esm.js +607 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +17 -0
- package/index.cjs2.js +43619 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/index.esm2.js +43493 -0
- package/infoDiagram-9c10eab1.cjs.js +467 -0
- package/infoDiagram-9c10eab1.esm.js +465 -0
- package/init-f9637058.cjs.js +17 -0
- package/init-f9637058.esm.js +15 -0
- package/journeyDiagram-b6904cec.cjs.js +1292 -0
- package/journeyDiagram-b6904cec.esm.js +1290 -0
- package/layout-c5a37d74.cjs.js +2808 -0
- package/layout-c5a37d74.esm.js +2795 -0
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/engine.d.ts +27 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
- package/libs/skill-web-chatbot/src/index.d.ts +3 -0
- package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
- package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
- package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
- package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
- package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
- package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
- package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
- package/line-ce5d1152.cjs.js +34 -0
- package/line-ce5d1152.esm.js +32 -0
- package/linear-db016d0c.cjs.js +485 -0
- package/linear-db016d0c.esm.js +479 -0
- package/mindmap-definition-a9d0f378.cjs.js +20225 -0
- package/mindmap-definition-a9d0f378.esm.js +20223 -0
- package/ordinal-5695958c.cjs.js +331 -0
- package/ordinal-5695958c.esm.js +329 -0
- package/package.json +8 -0
- package/pieDiagram-fd367f1f.cjs.js +1157 -0
- package/pieDiagram-fd367f1f.esm.js +1155 -0
- package/quadrantDiagram-1763608a.cjs.js +2633 -0
- package/quadrantDiagram-1763608a.esm.js +2631 -0
- package/requirementDiagram-779d93b3.cjs.js +2451 -0
- package/requirementDiagram-779d93b3.esm.js +2449 -0
- package/sankeyDiagram-86a66bae.cjs.js +1850 -0
- package/sankeyDiagram-86a66bae.esm.js +1848 -0
- package/sequenceDiagram-169f11ec.cjs.js +4805 -0
- package/sequenceDiagram-169f11ec.esm.js +4803 -0
- package/stateDiagram-6f4bb19d.cjs.js +282 -0
- package/stateDiagram-6f4bb19d.esm.js +280 -0
- package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
- package/stateDiagram-v2-d72c79bd.esm.js +375 -0
- package/styles-3814544c.cjs.js +534 -0
- package/styles-3814544c.esm.js +524 -0
- package/styles-3fb7b9cf.cjs.js +2377 -0
- package/styles-3fb7b9cf.esm.js +2368 -0
- package/styles-659d7242.cjs.js +3919 -0
- package/styles-659d7242.esm.js +3915 -0
- package/svgDraw-af99a425.cjs.js +144 -0
- package/svgDraw-af99a425.esm.js +141 -0
- package/svgDrawCommon-ebe6c236.cjs.js +70 -0
- package/svgDrawCommon-ebe6c236.esm.js +62 -0
- package/timeline-definition-65183566.cjs.js +1394 -0
- package/timeline-definition-65183566.esm.js +1392 -0
|
@@ -0,0 +1,1157 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index.cjs2.js');
|
|
4
|
+
var ordinal5695958c = require('./ordinal-5695958c.cjs.js');
|
|
5
|
+
var array2ff2c7a6 = require('./array-2ff2c7a6.cjs.js');
|
|
6
|
+
var constant2fe7eae5 = require('./constant-2fe7eae5.cjs.js');
|
|
7
|
+
var arcDa8fd8d8 = require('./arc-da8fd8d8.cjs.js');
|
|
8
|
+
require('./init-f9637058.cjs.js');
|
|
9
|
+
|
|
10
|
+
function _array_like_to_array(arr, len) {
|
|
11
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
12
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13
|
+
return arr2;
|
|
14
|
+
}
|
|
15
|
+
function _array_with_holes(arr) {
|
|
16
|
+
if (Array.isArray(arr)) return arr;
|
|
17
|
+
}
|
|
18
|
+
function _instanceof(left, right) {
|
|
19
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
20
|
+
return !!right[Symbol.hasInstance](left);
|
|
21
|
+
} else {
|
|
22
|
+
return left instanceof right;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _iterable_to_array_limit(arr, i) {
|
|
26
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
27
|
+
if (_i == null) return;
|
|
28
|
+
var _arr = [];
|
|
29
|
+
var _n = true;
|
|
30
|
+
var _d = false;
|
|
31
|
+
var _s, _e;
|
|
32
|
+
try {
|
|
33
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
34
|
+
_arr.push(_s.value);
|
|
35
|
+
if (i && _arr.length === i) break;
|
|
36
|
+
}
|
|
37
|
+
} catch (err) {
|
|
38
|
+
_d = true;
|
|
39
|
+
_e = err;
|
|
40
|
+
} finally{
|
|
41
|
+
try {
|
|
42
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
43
|
+
} finally{
|
|
44
|
+
if (_d) throw _e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return _arr;
|
|
48
|
+
}
|
|
49
|
+
function _non_iterable_rest() {
|
|
50
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
51
|
+
}
|
|
52
|
+
function _sliced_to_array(arr, i) {
|
|
53
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
54
|
+
}
|
|
55
|
+
function _type_of(obj) {
|
|
56
|
+
"@swc/helpers - typeof";
|
|
57
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
58
|
+
}
|
|
59
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
60
|
+
if (!o) return;
|
|
61
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
62
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
63
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
64
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
65
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
66
|
+
}
|
|
67
|
+
function wt(t, u) {
|
|
68
|
+
return u < t ? -1 : u > t ? 1 : u >= t ? 0 : NaN;
|
|
69
|
+
}
|
|
70
|
+
function At(t) {
|
|
71
|
+
return t;
|
|
72
|
+
}
|
|
73
|
+
function Et() {
|
|
74
|
+
var t = At, u = wt, v = null, b = constant2fe7eae5.E(0), E = constant2fe7eae5.E(index.Ix), d = constant2fe7eae5.E(0);
|
|
75
|
+
function o(a) {
|
|
76
|
+
var h, p = (a = array2ff2c7a6.t(a)).length, D, C, k = 0, $ = new Array(p), S = new Array(p), w = +b.apply(this, arguments), W = Math.min(index.Ix, Math.max(-index.Ix, E.apply(this, arguments) - w)), N, V = Math.min(Math.abs(W) / p, d.apply(this, arguments)), I = V * (W < 0 ? -1 : 1), g;
|
|
77
|
+
for(h = 0; h < p; ++h)(g = S[$[h] = h] = +t(a[h], h, a)) > 0 && (k += g);
|
|
78
|
+
for(u != null ? $.sort(function(A, m) {
|
|
79
|
+
return u(S[A], S[m]);
|
|
80
|
+
}) : v != null && $.sort(function(A, m) {
|
|
81
|
+
return v(a[A], a[m]);
|
|
82
|
+
}), h = 0, C = k ? (W - p * I) / k : 0; h < p; ++h, w = N)D = $[h], g = S[D], N = w + (g > 0 ? g * C : 0) + I, S[D] = {
|
|
83
|
+
data: a[D],
|
|
84
|
+
index: h,
|
|
85
|
+
value: g,
|
|
86
|
+
startAngle: w,
|
|
87
|
+
endAngle: N,
|
|
88
|
+
padAngle: V
|
|
89
|
+
};
|
|
90
|
+
return S;
|
|
91
|
+
}
|
|
92
|
+
return o.value = function(a) {
|
|
93
|
+
return arguments.length ? (t = typeof a == "function" ? a : constant2fe7eae5.E(+a), o) : t;
|
|
94
|
+
}, o.sortValues = function(a) {
|
|
95
|
+
return arguments.length ? (u = a, v = null, o) : u;
|
|
96
|
+
}, o.sort = function(a) {
|
|
97
|
+
return arguments.length ? (v = a, u = null, o) : v;
|
|
98
|
+
}, o.startAngle = function(a) {
|
|
99
|
+
return arguments.length ? (b = typeof a == "function" ? a : constant2fe7eae5.E(+a), o) : b;
|
|
100
|
+
}, o.endAngle = function(a) {
|
|
101
|
+
return arguments.length ? (E = typeof a == "function" ? a : constant2fe7eae5.E(+a), o) : E;
|
|
102
|
+
}, o.padAngle = function(a) {
|
|
103
|
+
return arguments.length ? (d = typeof a == "function" ? a : constant2fe7eae5.E(+a), o) : d;
|
|
104
|
+
}, o;
|
|
105
|
+
}
|
|
106
|
+
var st = function() {
|
|
107
|
+
var t = function t(m, e, i, r) {
|
|
108
|
+
for(i = i || {}, r = m.length; r--; i[m[r]] = e);
|
|
109
|
+
return i;
|
|
110
|
+
}, u = [
|
|
111
|
+
1,
|
|
112
|
+
4
|
|
113
|
+
], v = [
|
|
114
|
+
1,
|
|
115
|
+
5
|
|
116
|
+
], b = [
|
|
117
|
+
1,
|
|
118
|
+
6
|
|
119
|
+
], E = [
|
|
120
|
+
1,
|
|
121
|
+
7
|
|
122
|
+
], d = [
|
|
123
|
+
1,
|
|
124
|
+
9
|
|
125
|
+
], o = [
|
|
126
|
+
1,
|
|
127
|
+
11,
|
|
128
|
+
13,
|
|
129
|
+
15,
|
|
130
|
+
17,
|
|
131
|
+
19,
|
|
132
|
+
20,
|
|
133
|
+
26,
|
|
134
|
+
27,
|
|
135
|
+
28,
|
|
136
|
+
29
|
|
137
|
+
], a = [
|
|
138
|
+
2,
|
|
139
|
+
5
|
|
140
|
+
], h = [
|
|
141
|
+
1,
|
|
142
|
+
6,
|
|
143
|
+
11,
|
|
144
|
+
13,
|
|
145
|
+
15,
|
|
146
|
+
17,
|
|
147
|
+
19,
|
|
148
|
+
20,
|
|
149
|
+
26,
|
|
150
|
+
27,
|
|
151
|
+
28,
|
|
152
|
+
29
|
|
153
|
+
], p = [
|
|
154
|
+
26,
|
|
155
|
+
27,
|
|
156
|
+
28
|
|
157
|
+
], D = [
|
|
158
|
+
2,
|
|
159
|
+
8
|
|
160
|
+
], C = [
|
|
161
|
+
1,
|
|
162
|
+
18
|
|
163
|
+
], k = [
|
|
164
|
+
1,
|
|
165
|
+
19
|
|
166
|
+
], $ = [
|
|
167
|
+
1,
|
|
168
|
+
20
|
|
169
|
+
], S = [
|
|
170
|
+
1,
|
|
171
|
+
21
|
|
172
|
+
], w = [
|
|
173
|
+
1,
|
|
174
|
+
22
|
|
175
|
+
], W = [
|
|
176
|
+
1,
|
|
177
|
+
23
|
|
178
|
+
], N = [
|
|
179
|
+
1,
|
|
180
|
+
28
|
|
181
|
+
], V = [
|
|
182
|
+
6,
|
|
183
|
+
26,
|
|
184
|
+
27,
|
|
185
|
+
28,
|
|
186
|
+
29
|
|
187
|
+
], I = {
|
|
188
|
+
trace: function trace() {},
|
|
189
|
+
yy: {},
|
|
190
|
+
symbols_: {
|
|
191
|
+
error: 2,
|
|
192
|
+
start: 3,
|
|
193
|
+
eol: 4,
|
|
194
|
+
directive: 5,
|
|
195
|
+
PIE: 6,
|
|
196
|
+
document: 7,
|
|
197
|
+
showData: 8,
|
|
198
|
+
line: 9,
|
|
199
|
+
statement: 10,
|
|
200
|
+
txt: 11,
|
|
201
|
+
value: 12,
|
|
202
|
+
title: 13,
|
|
203
|
+
title_value: 14,
|
|
204
|
+
acc_title: 15,
|
|
205
|
+
acc_title_value: 16,
|
|
206
|
+
acc_descr: 17,
|
|
207
|
+
acc_descr_value: 18,
|
|
208
|
+
acc_descr_multiline_value: 19,
|
|
209
|
+
section: 20,
|
|
210
|
+
openDirective: 21,
|
|
211
|
+
typeDirective: 22,
|
|
212
|
+
closeDirective: 23,
|
|
213
|
+
":": 24,
|
|
214
|
+
argDirective: 25,
|
|
215
|
+
NEWLINE: 26,
|
|
216
|
+
";": 27,
|
|
217
|
+
EOF: 28,
|
|
218
|
+
open_directive: 29,
|
|
219
|
+
type_directive: 30,
|
|
220
|
+
arg_directive: 31,
|
|
221
|
+
close_directive: 32,
|
|
222
|
+
$accept: 0,
|
|
223
|
+
$end: 1
|
|
224
|
+
},
|
|
225
|
+
terminals_: {
|
|
226
|
+
2: "error",
|
|
227
|
+
6: "PIE",
|
|
228
|
+
8: "showData",
|
|
229
|
+
11: "txt",
|
|
230
|
+
12: "value",
|
|
231
|
+
13: "title",
|
|
232
|
+
14: "title_value",
|
|
233
|
+
15: "acc_title",
|
|
234
|
+
16: "acc_title_value",
|
|
235
|
+
17: "acc_descr",
|
|
236
|
+
18: "acc_descr_value",
|
|
237
|
+
19: "acc_descr_multiline_value",
|
|
238
|
+
20: "section",
|
|
239
|
+
24: ":",
|
|
240
|
+
26: "NEWLINE",
|
|
241
|
+
27: ";",
|
|
242
|
+
28: "EOF",
|
|
243
|
+
29: "open_directive",
|
|
244
|
+
30: "type_directive",
|
|
245
|
+
31: "arg_directive",
|
|
246
|
+
32: "close_directive"
|
|
247
|
+
},
|
|
248
|
+
productions_: [
|
|
249
|
+
0,
|
|
250
|
+
[
|
|
251
|
+
3,
|
|
252
|
+
2
|
|
253
|
+
],
|
|
254
|
+
[
|
|
255
|
+
3,
|
|
256
|
+
2
|
|
257
|
+
],
|
|
258
|
+
[
|
|
259
|
+
3,
|
|
260
|
+
2
|
|
261
|
+
],
|
|
262
|
+
[
|
|
263
|
+
3,
|
|
264
|
+
3
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
7,
|
|
268
|
+
0
|
|
269
|
+
],
|
|
270
|
+
[
|
|
271
|
+
7,
|
|
272
|
+
2
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
9,
|
|
276
|
+
2
|
|
277
|
+
],
|
|
278
|
+
[
|
|
279
|
+
10,
|
|
280
|
+
0
|
|
281
|
+
],
|
|
282
|
+
[
|
|
283
|
+
10,
|
|
284
|
+
2
|
|
285
|
+
],
|
|
286
|
+
[
|
|
287
|
+
10,
|
|
288
|
+
2
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
10,
|
|
292
|
+
2
|
|
293
|
+
],
|
|
294
|
+
[
|
|
295
|
+
10,
|
|
296
|
+
2
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
10,
|
|
300
|
+
1
|
|
301
|
+
],
|
|
302
|
+
[
|
|
303
|
+
10,
|
|
304
|
+
1
|
|
305
|
+
],
|
|
306
|
+
[
|
|
307
|
+
10,
|
|
308
|
+
1
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
5,
|
|
312
|
+
3
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
5,
|
|
316
|
+
5
|
|
317
|
+
],
|
|
318
|
+
[
|
|
319
|
+
4,
|
|
320
|
+
1
|
|
321
|
+
],
|
|
322
|
+
[
|
|
323
|
+
4,
|
|
324
|
+
1
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
4,
|
|
328
|
+
1
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
21,
|
|
332
|
+
1
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
22,
|
|
336
|
+
1
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
25,
|
|
340
|
+
1
|
|
341
|
+
],
|
|
342
|
+
[
|
|
343
|
+
23,
|
|
344
|
+
1
|
|
345
|
+
]
|
|
346
|
+
],
|
|
347
|
+
performAction: function performAction(e, i, r, n, l, s, c) {
|
|
348
|
+
var f = s.length - 1;
|
|
349
|
+
switch(l){
|
|
350
|
+
case 4:
|
|
351
|
+
n.setShowData(!0);
|
|
352
|
+
break;
|
|
353
|
+
case 7:
|
|
354
|
+
this.$ = s[f - 1];
|
|
355
|
+
break;
|
|
356
|
+
case 9:
|
|
357
|
+
n.addSection(s[f - 1], n.cleanupValue(s[f]));
|
|
358
|
+
break;
|
|
359
|
+
case 10:
|
|
360
|
+
this.$ = s[f].trim(), n.setDiagramTitle(this.$);
|
|
361
|
+
break;
|
|
362
|
+
case 11:
|
|
363
|
+
this.$ = s[f].trim(), n.setAccTitle(this.$);
|
|
364
|
+
break;
|
|
365
|
+
case 12:
|
|
366
|
+
case 13:
|
|
367
|
+
this.$ = s[f].trim(), n.setAccDescription(this.$);
|
|
368
|
+
break;
|
|
369
|
+
case 14:
|
|
370
|
+
n.addSection(s[f].substr(8)), this.$ = s[f].substr(8);
|
|
371
|
+
break;
|
|
372
|
+
case 21:
|
|
373
|
+
n.parseDirective("%%{", "open_directive");
|
|
374
|
+
break;
|
|
375
|
+
case 22:
|
|
376
|
+
n.parseDirective(s[f], "type_directive");
|
|
377
|
+
break;
|
|
378
|
+
case 23:
|
|
379
|
+
s[f] = s[f].trim().replace(/'/g, '"'), n.parseDirective(s[f], "arg_directive");
|
|
380
|
+
break;
|
|
381
|
+
case 24:
|
|
382
|
+
n.parseDirective("}%%", "close_directive", "pie");
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
table: [
|
|
387
|
+
{
|
|
388
|
+
3: 1,
|
|
389
|
+
4: 2,
|
|
390
|
+
5: 3,
|
|
391
|
+
6: u,
|
|
392
|
+
21: 8,
|
|
393
|
+
26: v,
|
|
394
|
+
27: b,
|
|
395
|
+
28: E,
|
|
396
|
+
29: d
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
1: [
|
|
400
|
+
3
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
3: 10,
|
|
405
|
+
4: 2,
|
|
406
|
+
5: 3,
|
|
407
|
+
6: u,
|
|
408
|
+
21: 8,
|
|
409
|
+
26: v,
|
|
410
|
+
27: b,
|
|
411
|
+
28: E,
|
|
412
|
+
29: d
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
3: 11,
|
|
416
|
+
4: 2,
|
|
417
|
+
5: 3,
|
|
418
|
+
6: u,
|
|
419
|
+
21: 8,
|
|
420
|
+
26: v,
|
|
421
|
+
27: b,
|
|
422
|
+
28: E,
|
|
423
|
+
29: d
|
|
424
|
+
},
|
|
425
|
+
t(o, a, {
|
|
426
|
+
7: 12,
|
|
427
|
+
8: [
|
|
428
|
+
1,
|
|
429
|
+
13
|
|
430
|
+
]
|
|
431
|
+
}),
|
|
432
|
+
t(h, [
|
|
433
|
+
2,
|
|
434
|
+
18
|
|
435
|
+
]),
|
|
436
|
+
t(h, [
|
|
437
|
+
2,
|
|
438
|
+
19
|
|
439
|
+
]),
|
|
440
|
+
t(h, [
|
|
441
|
+
2,
|
|
442
|
+
20
|
|
443
|
+
]),
|
|
444
|
+
{
|
|
445
|
+
22: 14,
|
|
446
|
+
30: [
|
|
447
|
+
1,
|
|
448
|
+
15
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
30: [
|
|
453
|
+
2,
|
|
454
|
+
21
|
|
455
|
+
]
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
1: [
|
|
459
|
+
2,
|
|
460
|
+
1
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
1: [
|
|
465
|
+
2,
|
|
466
|
+
2
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
t(p, D, {
|
|
470
|
+
21: 8,
|
|
471
|
+
9: 16,
|
|
472
|
+
10: 17,
|
|
473
|
+
5: 24,
|
|
474
|
+
1: [
|
|
475
|
+
2,
|
|
476
|
+
3
|
|
477
|
+
],
|
|
478
|
+
11: C,
|
|
479
|
+
13: k,
|
|
480
|
+
15: $,
|
|
481
|
+
17: S,
|
|
482
|
+
19: w,
|
|
483
|
+
20: W,
|
|
484
|
+
29: d
|
|
485
|
+
}),
|
|
486
|
+
t(o, a, {
|
|
487
|
+
7: 25
|
|
488
|
+
}),
|
|
489
|
+
{
|
|
490
|
+
23: 26,
|
|
491
|
+
24: [
|
|
492
|
+
1,
|
|
493
|
+
27
|
|
494
|
+
],
|
|
495
|
+
32: N
|
|
496
|
+
},
|
|
497
|
+
t([
|
|
498
|
+
24,
|
|
499
|
+
32
|
|
500
|
+
], [
|
|
501
|
+
2,
|
|
502
|
+
22
|
|
503
|
+
]),
|
|
504
|
+
t(o, [
|
|
505
|
+
2,
|
|
506
|
+
6
|
|
507
|
+
]),
|
|
508
|
+
{
|
|
509
|
+
4: 29,
|
|
510
|
+
26: v,
|
|
511
|
+
27: b,
|
|
512
|
+
28: E
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
12: [
|
|
516
|
+
1,
|
|
517
|
+
30
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
14: [
|
|
522
|
+
1,
|
|
523
|
+
31
|
|
524
|
+
]
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
16: [
|
|
528
|
+
1,
|
|
529
|
+
32
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
18: [
|
|
534
|
+
1,
|
|
535
|
+
33
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
t(p, [
|
|
539
|
+
2,
|
|
540
|
+
13
|
|
541
|
+
]),
|
|
542
|
+
t(p, [
|
|
543
|
+
2,
|
|
544
|
+
14
|
|
545
|
+
]),
|
|
546
|
+
t(p, [
|
|
547
|
+
2,
|
|
548
|
+
15
|
|
549
|
+
]),
|
|
550
|
+
t(p, D, {
|
|
551
|
+
21: 8,
|
|
552
|
+
9: 16,
|
|
553
|
+
10: 17,
|
|
554
|
+
5: 24,
|
|
555
|
+
1: [
|
|
556
|
+
2,
|
|
557
|
+
4
|
|
558
|
+
],
|
|
559
|
+
11: C,
|
|
560
|
+
13: k,
|
|
561
|
+
15: $,
|
|
562
|
+
17: S,
|
|
563
|
+
19: w,
|
|
564
|
+
20: W,
|
|
565
|
+
29: d
|
|
566
|
+
}),
|
|
567
|
+
t(V, [
|
|
568
|
+
2,
|
|
569
|
+
16
|
|
570
|
+
]),
|
|
571
|
+
{
|
|
572
|
+
25: 34,
|
|
573
|
+
31: [
|
|
574
|
+
1,
|
|
575
|
+
35
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
t(V, [
|
|
579
|
+
2,
|
|
580
|
+
24
|
|
581
|
+
]),
|
|
582
|
+
t(o, [
|
|
583
|
+
2,
|
|
584
|
+
7
|
|
585
|
+
]),
|
|
586
|
+
t(p, [
|
|
587
|
+
2,
|
|
588
|
+
9
|
|
589
|
+
]),
|
|
590
|
+
t(p, [
|
|
591
|
+
2,
|
|
592
|
+
10
|
|
593
|
+
]),
|
|
594
|
+
t(p, [
|
|
595
|
+
2,
|
|
596
|
+
11
|
|
597
|
+
]),
|
|
598
|
+
t(p, [
|
|
599
|
+
2,
|
|
600
|
+
12
|
|
601
|
+
]),
|
|
602
|
+
{
|
|
603
|
+
23: 36,
|
|
604
|
+
32: N
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
32: [
|
|
608
|
+
2,
|
|
609
|
+
23
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
t(V, [
|
|
613
|
+
2,
|
|
614
|
+
17
|
|
615
|
+
])
|
|
616
|
+
],
|
|
617
|
+
defaultActions: {
|
|
618
|
+
9: [
|
|
619
|
+
2,
|
|
620
|
+
21
|
|
621
|
+
],
|
|
622
|
+
10: [
|
|
623
|
+
2,
|
|
624
|
+
1
|
|
625
|
+
],
|
|
626
|
+
11: [
|
|
627
|
+
2,
|
|
628
|
+
2
|
|
629
|
+
],
|
|
630
|
+
35: [
|
|
631
|
+
2,
|
|
632
|
+
23
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
parseError: function parseError(e, i) {
|
|
636
|
+
if (i.recoverable) this.trace(e);
|
|
637
|
+
else {
|
|
638
|
+
var r = new Error(e);
|
|
639
|
+
throw r.hash = i, r;
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
parse: function parse(e) {
|
|
643
|
+
var i = this, r = [
|
|
644
|
+
0
|
|
645
|
+
], n = [], l = [
|
|
646
|
+
null
|
|
647
|
+
], s = [], c = this.table, f = "", F = 0, U = 0, Q = 2, q = 1, ct = s.slice.call(arguments, 1), y = Object.create(this.lexer), j = {
|
|
648
|
+
yy: {}
|
|
649
|
+
};
|
|
650
|
+
for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy, X) && (j.yy[X] = this.yy[X]);
|
|
651
|
+
y.setInput(e, j.yy), j.yy.lexer = y, j.yy.parser = this, _type_of(y.yylloc) > "u" && (y.yylloc = {});
|
|
652
|
+
var Z = y.yylloc;
|
|
653
|
+
s.push(Z);
|
|
654
|
+
var ot = y.options && y.options.ranges;
|
|
655
|
+
typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
656
|
+
function ht() {
|
|
657
|
+
var P;
|
|
658
|
+
return P = n.pop() || y.lex() || q, typeof P != "number" && (_instanceof(P, Array) && (n = P, P = n.pop()), P = i.symbols_[P] || P), P;
|
|
659
|
+
}
|
|
660
|
+
for(var _, z, x, tt, R = {}, G, O, at, H;;){
|
|
661
|
+
if (z = r[r.length - 1], this.defaultActions[z] ? x = this.defaultActions[z] : ((_ === null || (typeof _ === "undefined" ? "undefined" : _type_of(_)) > "u") && (_ = ht()), x = c[z] && c[z][_]), (typeof x === "undefined" ? "undefined" : _type_of(x)) > "u" || !x.length || !x[0]) {
|
|
662
|
+
var et = "";
|
|
663
|
+
H = [];
|
|
664
|
+
for(G in c[z])this.terminals_[G] && G > Q && H.push("'" + this.terminals_[G] + "'");
|
|
665
|
+
y.showPosition ? et = "Parse error on line " + (F + 1) + ":\n" + y.showPosition() + "\nExpecting " + H.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : et = "Parse error on line " + (F + 1) + ": Unexpected " + (_ == q ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(et, {
|
|
666
|
+
text: y.match,
|
|
667
|
+
token: this.terminals_[_] || _,
|
|
668
|
+
line: y.yylineno,
|
|
669
|
+
loc: Z,
|
|
670
|
+
expected: H
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
if (_instanceof(x[0], Array) && x.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + _);
|
|
674
|
+
switch(x[0]){
|
|
675
|
+
case 1:
|
|
676
|
+
r.push(_), l.push(y.yytext), s.push(y.yylloc), r.push(x[1]), _ = null, U = y.yyleng, f = y.yytext, F = y.yylineno, Z = y.yylloc;
|
|
677
|
+
break;
|
|
678
|
+
case 2:
|
|
679
|
+
if (O = this.productions_[x[1]][1], R.$ = l[l.length - O], R._$ = {
|
|
680
|
+
first_line: s[s.length - (O || 1)].first_line,
|
|
681
|
+
last_line: s[s.length - 1].last_line,
|
|
682
|
+
first_column: s[s.length - (O || 1)].first_column,
|
|
683
|
+
last_column: s[s.length - 1].last_column
|
|
684
|
+
}, ot && (R._$.range = [
|
|
685
|
+
s[s.length - (O || 1)].range[0],
|
|
686
|
+
s[s.length - 1].range[1]
|
|
687
|
+
]), tt = this.performAction.apply(R, [
|
|
688
|
+
f,
|
|
689
|
+
U,
|
|
690
|
+
F,
|
|
691
|
+
j.yy,
|
|
692
|
+
x[1],
|
|
693
|
+
l,
|
|
694
|
+
s
|
|
695
|
+
].concat(ct)), (typeof tt === "undefined" ? "undefined" : _type_of(tt)) < "u") return tt;
|
|
696
|
+
O && (r = r.slice(0, -1 * O * 2), l = l.slice(0, -1 * O), s = s.slice(0, -1 * O)), r.push(this.productions_[x[1]][0]), l.push(R.$), s.push(R._$), at = c[r[r.length - 2]][r[r.length - 1]], r.push(at);
|
|
697
|
+
break;
|
|
698
|
+
case 3:
|
|
699
|
+
return !0;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
return !0;
|
|
703
|
+
}
|
|
704
|
+
}, g = function() {
|
|
705
|
+
var m = {
|
|
706
|
+
EOF: 1,
|
|
707
|
+
parseError: function parseError(i, r) {
|
|
708
|
+
if (this.yy.parser) this.yy.parser.parseError(i, r);
|
|
709
|
+
else throw new Error(i);
|
|
710
|
+
},
|
|
711
|
+
// resets the lexer, sets new input
|
|
712
|
+
setInput: function setInput(e, i) {
|
|
713
|
+
return this.yy = i || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
|
|
714
|
+
"INITIAL"
|
|
715
|
+
], this.yylloc = {
|
|
716
|
+
first_line: 1,
|
|
717
|
+
first_column: 0,
|
|
718
|
+
last_line: 1,
|
|
719
|
+
last_column: 0
|
|
720
|
+
}, this.options.ranges && (this.yylloc.range = [
|
|
721
|
+
0,
|
|
722
|
+
0
|
|
723
|
+
]), this.offset = 0, this;
|
|
724
|
+
},
|
|
725
|
+
// consumes and returns one char from the input
|
|
726
|
+
input: function input() {
|
|
727
|
+
var e = this._input[0];
|
|
728
|
+
this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e;
|
|
729
|
+
var i = e.match(/(?:\r\n?|\n).*/g);
|
|
730
|
+
return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
731
|
+
},
|
|
732
|
+
// unshifts one char (or a string) into the input
|
|
733
|
+
unput: function unput(e) {
|
|
734
|
+
var i = e.length, r = e.split(/(?:\r\n?|\n)/g);
|
|
735
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
736
|
+
var n = this.match.split(/(?:\r\n?|\n)/g);
|
|
737
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
|
|
738
|
+
var l = this.yylloc.range;
|
|
739
|
+
return this.yylloc = {
|
|
740
|
+
first_line: this.yylloc.first_line,
|
|
741
|
+
last_line: this.yylineno + 1,
|
|
742
|
+
first_column: this.yylloc.first_column,
|
|
743
|
+
last_column: r ? (r.length === n.length ? this.yylloc.first_column : 0) + n[n.length - r.length].length - r[0].length : this.yylloc.first_column - i
|
|
744
|
+
}, this.options.ranges && (this.yylloc.range = [
|
|
745
|
+
l[0],
|
|
746
|
+
l[0] + this.yyleng - i
|
|
747
|
+
]), this.yyleng = this.yytext.length, this;
|
|
748
|
+
},
|
|
749
|
+
// When called from action, caches matched text and appends it on next action
|
|
750
|
+
more: function more() {
|
|
751
|
+
return this._more = !0, this;
|
|
752
|
+
},
|
|
753
|
+
// 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.
|
|
754
|
+
reject: function reject() {
|
|
755
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
756
|
+
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(), {
|
|
757
|
+
text: "",
|
|
758
|
+
token: null,
|
|
759
|
+
line: this.yylineno
|
|
760
|
+
});
|
|
761
|
+
return this;
|
|
762
|
+
},
|
|
763
|
+
// retain first n characters of the match
|
|
764
|
+
less: function less(e) {
|
|
765
|
+
this.unput(this.match.slice(e));
|
|
766
|
+
},
|
|
767
|
+
// displays already matched input, i.e. for error messages
|
|
768
|
+
pastInput: function pastInput() {
|
|
769
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
770
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
771
|
+
},
|
|
772
|
+
// displays upcoming input, i.e. for error messages
|
|
773
|
+
upcomingInput: function upcomingInput() {
|
|
774
|
+
var e = this.match;
|
|
775
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
776
|
+
},
|
|
777
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
778
|
+
showPosition: function showPosition() {
|
|
779
|
+
var e = this.pastInput(), i = new Array(e.length + 1).join("-");
|
|
780
|
+
return e + this.upcomingInput() + "\n" + i + "^";
|
|
781
|
+
},
|
|
782
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
783
|
+
test_match: function test_match(e, i) {
|
|
784
|
+
var r, n, l;
|
|
785
|
+
if (this.options.backtrack_lexer && (l = {
|
|
786
|
+
yylineno: this.yylineno,
|
|
787
|
+
yylloc: {
|
|
788
|
+
first_line: this.yylloc.first_line,
|
|
789
|
+
last_line: this.last_line,
|
|
790
|
+
first_column: this.yylloc.first_column,
|
|
791
|
+
last_column: this.yylloc.last_column
|
|
792
|
+
},
|
|
793
|
+
yytext: this.yytext,
|
|
794
|
+
match: this.match,
|
|
795
|
+
matches: this.matches,
|
|
796
|
+
matched: this.matched,
|
|
797
|
+
yyleng: this.yyleng,
|
|
798
|
+
offset: this.offset,
|
|
799
|
+
_more: this._more,
|
|
800
|
+
_input: this._input,
|
|
801
|
+
yy: this.yy,
|
|
802
|
+
conditionStack: this.conditionStack.slice(0),
|
|
803
|
+
done: this.done
|
|
804
|
+
}, this.options.ranges && (l.yylloc.range = this.yylloc.range.slice(0))), n = e[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
|
|
805
|
+
first_line: this.yylloc.last_line,
|
|
806
|
+
last_line: this.yylineno + 1,
|
|
807
|
+
first_column: this.yylloc.last_column,
|
|
808
|
+
last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
809
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
|
|
810
|
+
this.offset,
|
|
811
|
+
this.offset += this.yyleng
|
|
812
|
+
]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], r = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) return r;
|
|
813
|
+
if (this._backtrack) {
|
|
814
|
+
for(var s in l)this[s] = l[s];
|
|
815
|
+
return !1;
|
|
816
|
+
}
|
|
817
|
+
return !1;
|
|
818
|
+
},
|
|
819
|
+
// return next match in input
|
|
820
|
+
next: function next() {
|
|
821
|
+
if (this.done) return this.EOF;
|
|
822
|
+
this._input || (this.done = !0);
|
|
823
|
+
var e, i, r, n;
|
|
824
|
+
this._more || (this.yytext = "", this.match = "");
|
|
825
|
+
for(var l = this._currentRules(), s = 0; s < l.length; s++)if (r = this._input.match(this.rules[l[s]]), r && (!i || r[0].length > i[0].length)) {
|
|
826
|
+
if (i = r, n = s, this.options.backtrack_lexer) {
|
|
827
|
+
if (e = this.test_match(r, l[s]), e !== !1) return e;
|
|
828
|
+
if (this._backtrack) {
|
|
829
|
+
i = !1;
|
|
830
|
+
continue;
|
|
831
|
+
} else return !1;
|
|
832
|
+
} else if (!this.options.flex) break;
|
|
833
|
+
}
|
|
834
|
+
return i ? (e = this.test_match(i, l[n]), e !== !1 ? e : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
835
|
+
text: "",
|
|
836
|
+
token: null,
|
|
837
|
+
line: this.yylineno
|
|
838
|
+
});
|
|
839
|
+
},
|
|
840
|
+
// return next match that has a token
|
|
841
|
+
lex: function lex() {
|
|
842
|
+
var i = this.next();
|
|
843
|
+
return i || this.lex();
|
|
844
|
+
},
|
|
845
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
846
|
+
begin: function begin(i) {
|
|
847
|
+
this.conditionStack.push(i);
|
|
848
|
+
},
|
|
849
|
+
// pop the previously active lexer condition state off the condition stack
|
|
850
|
+
popState: function popState() {
|
|
851
|
+
var i = this.conditionStack.length - 1;
|
|
852
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
853
|
+
},
|
|
854
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
855
|
+
_currentRules: function _currentRules() {
|
|
856
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
857
|
+
},
|
|
858
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
859
|
+
topState: function topState(i) {
|
|
860
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
861
|
+
},
|
|
862
|
+
// alias for begin(condition)
|
|
863
|
+
pushState: function pushState(i) {
|
|
864
|
+
this.begin(i);
|
|
865
|
+
},
|
|
866
|
+
// return the number of states currently on the stack
|
|
867
|
+
stateStackSize: function stateStackSize() {
|
|
868
|
+
return this.conditionStack.length;
|
|
869
|
+
},
|
|
870
|
+
options: {
|
|
871
|
+
"case-insensitive": !0
|
|
872
|
+
},
|
|
873
|
+
performAction: function performAction(i, r, n, l) {
|
|
874
|
+
switch(n){
|
|
875
|
+
case 0:
|
|
876
|
+
return this.begin("open_directive"), 29;
|
|
877
|
+
case 1:
|
|
878
|
+
return this.begin("type_directive"), 30;
|
|
879
|
+
case 2:
|
|
880
|
+
return this.popState(), this.begin("arg_directive"), 24;
|
|
881
|
+
case 3:
|
|
882
|
+
return this.popState(), this.popState(), 32;
|
|
883
|
+
case 4:
|
|
884
|
+
return 31;
|
|
885
|
+
case 5:
|
|
886
|
+
break;
|
|
887
|
+
case 6:
|
|
888
|
+
break;
|
|
889
|
+
case 7:
|
|
890
|
+
return 26;
|
|
891
|
+
case 8:
|
|
892
|
+
break;
|
|
893
|
+
case 9:
|
|
894
|
+
break;
|
|
895
|
+
case 10:
|
|
896
|
+
return this.begin("title"), 13;
|
|
897
|
+
case 11:
|
|
898
|
+
return this.popState(), "title_value";
|
|
899
|
+
case 12:
|
|
900
|
+
return this.begin("acc_title"), 15;
|
|
901
|
+
case 13:
|
|
902
|
+
return this.popState(), "acc_title_value";
|
|
903
|
+
case 14:
|
|
904
|
+
return this.begin("acc_descr"), 17;
|
|
905
|
+
case 15:
|
|
906
|
+
return this.popState(), "acc_descr_value";
|
|
907
|
+
case 16:
|
|
908
|
+
this.begin("acc_descr_multiline");
|
|
909
|
+
break;
|
|
910
|
+
case 17:
|
|
911
|
+
this.popState();
|
|
912
|
+
break;
|
|
913
|
+
case 18:
|
|
914
|
+
return "acc_descr_multiline_value";
|
|
915
|
+
case 19:
|
|
916
|
+
this.begin("string");
|
|
917
|
+
break;
|
|
918
|
+
case 20:
|
|
919
|
+
this.popState();
|
|
920
|
+
break;
|
|
921
|
+
case 21:
|
|
922
|
+
return "txt";
|
|
923
|
+
case 22:
|
|
924
|
+
return 6;
|
|
925
|
+
case 23:
|
|
926
|
+
return 8;
|
|
927
|
+
case 24:
|
|
928
|
+
return "value";
|
|
929
|
+
case 25:
|
|
930
|
+
return 28;
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
rules: [
|
|
934
|
+
/^(?:%%\{)/i,
|
|
935
|
+
/^(?:((?:(?!\}%%)[^:.])*))/i,
|
|
936
|
+
/^(?::)/i,
|
|
937
|
+
/^(?:\}%%)/i,
|
|
938
|
+
/^(?:((?:(?!\}%%).|\n)*))/i,
|
|
939
|
+
/^(?:%%(?!\{)[^\n]*)/i,
|
|
940
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
941
|
+
/^(?:[\n\r]+)/i,
|
|
942
|
+
/^(?:%%[^\n]*)/i,
|
|
943
|
+
/^(?:[\s]+)/i,
|
|
944
|
+
/^(?:title\b)/i,
|
|
945
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
946
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
947
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
948
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
949
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
950
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
951
|
+
/^(?:[\}])/i,
|
|
952
|
+
/^(?:[^\}]*)/i,
|
|
953
|
+
/^(?:["])/i,
|
|
954
|
+
/^(?:["])/i,
|
|
955
|
+
/^(?:[^"]*)/i,
|
|
956
|
+
/^(?:pie\b)/i,
|
|
957
|
+
/^(?:showData\b)/i,
|
|
958
|
+
/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,
|
|
959
|
+
/^(?:$)/i
|
|
960
|
+
],
|
|
961
|
+
conditions: {
|
|
962
|
+
acc_descr_multiline: {
|
|
963
|
+
rules: [
|
|
964
|
+
17,
|
|
965
|
+
18
|
|
966
|
+
],
|
|
967
|
+
inclusive: !1
|
|
968
|
+
},
|
|
969
|
+
acc_descr: {
|
|
970
|
+
rules: [
|
|
971
|
+
15
|
|
972
|
+
],
|
|
973
|
+
inclusive: !1
|
|
974
|
+
},
|
|
975
|
+
acc_title: {
|
|
976
|
+
rules: [
|
|
977
|
+
13
|
|
978
|
+
],
|
|
979
|
+
inclusive: !1
|
|
980
|
+
},
|
|
981
|
+
close_directive: {
|
|
982
|
+
rules: [],
|
|
983
|
+
inclusive: !1
|
|
984
|
+
},
|
|
985
|
+
arg_directive: {
|
|
986
|
+
rules: [
|
|
987
|
+
3,
|
|
988
|
+
4
|
|
989
|
+
],
|
|
990
|
+
inclusive: !1
|
|
991
|
+
},
|
|
992
|
+
type_directive: {
|
|
993
|
+
rules: [
|
|
994
|
+
2,
|
|
995
|
+
3
|
|
996
|
+
],
|
|
997
|
+
inclusive: !1
|
|
998
|
+
},
|
|
999
|
+
open_directive: {
|
|
1000
|
+
rules: [
|
|
1001
|
+
1
|
|
1002
|
+
],
|
|
1003
|
+
inclusive: !1
|
|
1004
|
+
},
|
|
1005
|
+
title: {
|
|
1006
|
+
rules: [
|
|
1007
|
+
11
|
|
1008
|
+
],
|
|
1009
|
+
inclusive: !1
|
|
1010
|
+
},
|
|
1011
|
+
string: {
|
|
1012
|
+
rules: [
|
|
1013
|
+
20,
|
|
1014
|
+
21
|
|
1015
|
+
],
|
|
1016
|
+
inclusive: !1
|
|
1017
|
+
},
|
|
1018
|
+
INITIAL: {
|
|
1019
|
+
rules: [
|
|
1020
|
+
0,
|
|
1021
|
+
5,
|
|
1022
|
+
6,
|
|
1023
|
+
7,
|
|
1024
|
+
8,
|
|
1025
|
+
9,
|
|
1026
|
+
10,
|
|
1027
|
+
12,
|
|
1028
|
+
14,
|
|
1029
|
+
16,
|
|
1030
|
+
19,
|
|
1031
|
+
22,
|
|
1032
|
+
23,
|
|
1033
|
+
24,
|
|
1034
|
+
25
|
|
1035
|
+
],
|
|
1036
|
+
inclusive: !0
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
return m;
|
|
1041
|
+
}();
|
|
1042
|
+
I.lexer = g;
|
|
1043
|
+
function A() {
|
|
1044
|
+
this.yy = {};
|
|
1045
|
+
}
|
|
1046
|
+
return A.prototype = I, I.Parser = A, new A();
|
|
1047
|
+
}();
|
|
1048
|
+
st.parser = st;
|
|
1049
|
+
var Dt = st;
|
|
1050
|
+
var K = {}, rt = !1;
|
|
1051
|
+
var Tt = function Tt(t, u, v) {
|
|
1052
|
+
index.de.parseDirective(this, t, u, v);
|
|
1053
|
+
}, $t = function $t(t, u) {
|
|
1054
|
+
t = index.Bn.sanitizeText(t, index.Ut()), K[t] === void 0 && (K[t] = u, index.S.debug("Added new section :", t));
|
|
1055
|
+
}, Vt = function() {
|
|
1056
|
+
return K;
|
|
1057
|
+
}, It = function It(t) {
|
|
1058
|
+
rt = t;
|
|
1059
|
+
}, Ot = function Ot() {
|
|
1060
|
+
return rt;
|
|
1061
|
+
}, Pt = function Pt(t) {
|
|
1062
|
+
return t.substring(0, 1) === ":" && (t = t.substring(1).trim()), Number(t.trim());
|
|
1063
|
+
}, Lt = function Lt() {
|
|
1064
|
+
K = {}, rt = !1, index.Fa();
|
|
1065
|
+
}, Wt = {
|
|
1066
|
+
parseDirective: Tt,
|
|
1067
|
+
getConfig: function() {
|
|
1068
|
+
return index.Ut().pie;
|
|
1069
|
+
},
|
|
1070
|
+
addSection: $t,
|
|
1071
|
+
getSections: Vt,
|
|
1072
|
+
cleanupValue: Pt,
|
|
1073
|
+
clear: Lt,
|
|
1074
|
+
setAccTitle: index.La,
|
|
1075
|
+
getAccTitle: index.Aa,
|
|
1076
|
+
setDiagramTitle: index.Oa,
|
|
1077
|
+
getDiagramTitle: index.Ia,
|
|
1078
|
+
setShowData: It,
|
|
1079
|
+
getShowData: Ot,
|
|
1080
|
+
getAccDescription: index.Ma,
|
|
1081
|
+
setAccDescription: index.Ea
|
|
1082
|
+
}, Nt = function(t) {
|
|
1083
|
+
return "\n .pieCircle{\n stroke: ".concat(t.pieStrokeColor, ";\n stroke-width : ").concat(t.pieStrokeWidth, ";\n opacity : ").concat(t.pieOpacity, ";\n }\n .pieOuterCircle{\n stroke: ").concat(t.pieOuterStrokeColor, ";\n stroke-width: ").concat(t.pieOuterStrokeWidth, ";\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ").concat(t.pieTitleTextSize, ";\n fill: ").concat(t.pieTitleTextColor, ";\n font-family: ").concat(t.fontFamily, ";\n }\n .slice {\n font-family: ").concat(t.fontFamily, ";\n fill: ").concat(t.pieSectionTextColor, ";\n font-size:").concat(t.pieSectionTextSize, ";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.pieLegendTextColor, ";\n font-family: ").concat(t.fontFamily, ";\n font-size: ").concat(t.pieLegendTextSize, ";\n }\n");
|
|
1084
|
+
}, Ct = Nt;
|
|
1085
|
+
var T = index.Ut(), L;
|
|
1086
|
+
var B = 450, Ft = function(t, u, v, b) {
|
|
1087
|
+
var I;
|
|
1088
|
+
try {
|
|
1089
|
+
T = index.Ut(), index.S.debug("Rendering info diagram\n" + t);
|
|
1090
|
+
var _$g = index.Ut().securityLevel;
|
|
1091
|
+
var A;
|
|
1092
|
+
_$g === "sandbox" && (A = index.At("#i" + u));
|
|
1093
|
+
var m = _$g === "sandbox" ? index.At(A.nodes()[0].contentDocument.body) : index.At("body"), i = (_$g === "sandbox" ? A.nodes()[0].contentDocument : document).getElementById(u);
|
|
1094
|
+
L = i.parentElement.offsetWidth, L === void 0 && (L = 1200), T.useWidth !== void 0 && (L = T.useWidth), T.pie.useWidth !== void 0 && (L = T.pie.useWidth);
|
|
1095
|
+
var r = m.select("#" + u);
|
|
1096
|
+
index.Yg(r, B, L, T.pie.useMaxWidth), i.setAttribute("viewBox", "0 0 " + L + " " + B);
|
|
1097
|
+
var E = 40, d = 18, o = 4, a = Math.min(L, B) / 2 - E, h = r.append("g").attr("transform", "translate(" + L / 2 + "," + B / 2 + ")"), p = b.db.getSections(), D = 0;
|
|
1098
|
+
Object.keys(p).forEach(function(c) {
|
|
1099
|
+
D += p[c];
|
|
1100
|
+
});
|
|
1101
|
+
var n = T.themeVariables;
|
|
1102
|
+
var C = [
|
|
1103
|
+
n.pie1,
|
|
1104
|
+
n.pie2,
|
|
1105
|
+
n.pie3,
|
|
1106
|
+
n.pie4,
|
|
1107
|
+
n.pie5,
|
|
1108
|
+
n.pie6,
|
|
1109
|
+
n.pie7,
|
|
1110
|
+
n.pie8,
|
|
1111
|
+
n.pie9,
|
|
1112
|
+
n.pie10,
|
|
1113
|
+
n.pie11,
|
|
1114
|
+
n.pie12
|
|
1115
|
+
];
|
|
1116
|
+
var _ref;
|
|
1117
|
+
var l = (_ref = (I = T.pie) == null ? void 0 : I.textPosition) !== null && _ref !== void 0 ? _ref : 0.75;
|
|
1118
|
+
var _kt = _sliced_to_array(index.Dn(n.pieOuterStrokeWidth), 1), s = _kt[0];
|
|
1119
|
+
s !== null && s !== void 0 ? s : s = 2;
|
|
1120
|
+
var k = ordinal5695958c.h().range(C), $ = Object.entries(p).map(function(c, f) {
|
|
1121
|
+
return {
|
|
1122
|
+
order: f,
|
|
1123
|
+
name: c[0],
|
|
1124
|
+
value: c[1]
|
|
1125
|
+
};
|
|
1126
|
+
}), S = Et().value(function(c) {
|
|
1127
|
+
return c.value;
|
|
1128
|
+
}).sort(function(c, f) {
|
|
1129
|
+
return c.order - f.order;
|
|
1130
|
+
}), w = S($), W = arcDa8fd8d8.hn().innerRadius(0).outerRadius(a), N = arcDa8fd8d8.hn().innerRadius(a * l).outerRadius(a * l);
|
|
1131
|
+
h.append("circle").attr("cx", 0).attr("cy", 0).attr("r", a + s / 2).attr("class", "pieOuterCircle"), h.selectAll("mySlices").data(w).enter().append("path").attr("d", W).attr("fill", function(c) {
|
|
1132
|
+
return k(c.data.name);
|
|
1133
|
+
}).attr("class", "pieCircle"), h.selectAll("mySlices").data(w).enter().append("text").text(function(c) {
|
|
1134
|
+
return (c.data.value / D * 100).toFixed(0) + "%";
|
|
1135
|
+
}).attr("transform", function(c) {
|
|
1136
|
+
return "translate(" + N.centroid(c) + ")";
|
|
1137
|
+
}).style("text-anchor", "middle").attr("class", "slice"), h.append("text").text(b.db.getDiagramTitle()).attr("x", 0).attr("y", -(B - 50) / 2).attr("class", "pieTitleText");
|
|
1138
|
+
var V = h.selectAll(".legend").data(k.domain()).enter().append("g").attr("class", "legend").attr("transform", function(c, f) {
|
|
1139
|
+
var F = d + o, U = F * k.domain().length / 2, Q = 12 * d, q = f * F - U;
|
|
1140
|
+
return "translate(" + Q + "," + q + ")";
|
|
1141
|
+
});
|
|
1142
|
+
V.append("rect").attr("width", d).attr("height", d).style("fill", k).style("stroke", k), V.data(w).append("text").attr("x", d + o).attr("y", d - o).text(function(c) {
|
|
1143
|
+
return b.db.getShowData() || T.showData || T.pie.showData ? c.data.name + " [" + c.data.value + "]" : c.data.name;
|
|
1144
|
+
});
|
|
1145
|
+
} catch (g) {
|
|
1146
|
+
index.S.error("Error while rendering info diagram"), index.S.error(g);
|
|
1147
|
+
}
|
|
1148
|
+
}, jt = {
|
|
1149
|
+
draw: Ft
|
|
1150
|
+
}, qt = {
|
|
1151
|
+
parser: Dt,
|
|
1152
|
+
db: Wt,
|
|
1153
|
+
renderer: jt,
|
|
1154
|
+
styles: Ct
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
exports.diagram = qt;
|