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