@digipair/skill-web-chatbot 0.91.0-0 → 0.92.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 (136) 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/Tableau10-558cc280.cjs.js +9 -0
  6. package/Tableau10-558cc280.esm.js +7 -0
  7. package/arc-d1f6357e.cjs.js +88 -0
  8. package/arc-d1f6357e.esm.js +86 -0
  9. package/array-2ff2c7a6.cjs.js +7 -0
  10. package/array-2ff2c7a6.esm.js +5 -0
  11. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  12. package/blockDiagram-5dc23a45.esm.js +2919 -0
  13. package/c4Diagram-1e775db3.cjs.js +4387 -0
  14. package/c4Diagram-1e775db3.esm.js +4385 -0
  15. package/channel-ebbc4130.cjs.js +9 -0
  16. package/channel-ebbc4130.esm.js +7 -0
  17. package/classDiagram-f52caa06.cjs.js +209 -0
  18. package/classDiagram-f52caa06.esm.js +207 -0
  19. package/classDiagram-v2-640c694e.cjs.js +401 -0
  20. package/classDiagram-v2-640c694e.esm.js +399 -0
  21. package/clone-afc2f047.cjs.js +10 -0
  22. package/clone-afc2f047.esm.js +8 -0
  23. package/createText-03b82060.cjs.js +2936 -0
  24. package/createText-03b82060.esm.js +2933 -0
  25. package/edges-16357fde.cjs.js +1998 -0
  26. package/edges-16357fde.esm.js +1981 -0
  27. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  28. package/erDiagram-c7ff1bec.esm.js +1805 -0
  29. package/flowDb-9a89ea33.cjs.js +5542 -0
  30. package/flowDb-9a89ea33.esm.js +5538 -0
  31. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  32. package/flowDiagram-aadb13b0.esm.js +1349 -0
  33. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  34. package/flowDiagram-v2-f2119625.esm.js +29 -0
  35. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  36. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  37. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  38. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  39. package/gitGraphDiagram-c3a0619c.cjs.js +3820 -0
  40. package/gitGraphDiagram-c3a0619c.esm.js +3818 -0
  41. package/graph-0ee63739.cjs.js +961 -0
  42. package/graph-0ee63739.esm.js +938 -0
  43. package/index-bb6d8841.cjs.js +648 -0
  44. package/index-bb6d8841.esm.js +646 -0
  45. package/index.cjs.d.ts +1 -0
  46. package/index.cjs.js +17 -0
  47. package/index.cjs2.js +60723 -0
  48. package/index.esm.js +1 -0
  49. package/index.esm2.js +60574 -0
  50. package/infoDiagram-2f5c50c0.cjs.js +460 -0
  51. package/infoDiagram-2f5c50c0.esm.js +458 -0
  52. package/init-f9637058.cjs.js +17 -0
  53. package/init-f9637058.esm.js +15 -0
  54. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  55. package/journeyDiagram-14fe341a.esm.js +1059 -0
  56. package/katex-d90b6d29.cjs.js +25690 -0
  57. package/katex-d90b6d29.esm.js +25688 -0
  58. package/layout-fd473db2.cjs.js +1626 -0
  59. package/layout-fd473db2.esm.js +1619 -0
  60. package/libs/engine/src/index.d.ts +2 -0
  61. package/libs/engine/src/lib/alias.interface.d.ts +9 -0
  62. package/libs/engine/src/lib/engine.d.ts +13 -0
  63. package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
  64. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +28 -0
  65. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  66. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  67. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  68. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +36 -0
  69. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  70. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +44 -0
  71. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +10 -0
  72. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +10 -0
  73. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +1 -0
  74. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  75. package/line-24d93f1b.cjs.js +34 -0
  76. package/line-24d93f1b.esm.js +32 -0
  77. package/linear-9bcf74c4.cjs.js +537 -0
  78. package/linear-9bcf74c4.esm.js +531 -0
  79. package/mindmap-definition-9399c7e6.cjs.js +20489 -0
  80. package/mindmap-definition-9399c7e6.esm.js +20487 -0
  81. package/ordinal-5695958c.cjs.js +331 -0
  82. package/ordinal-5695958c.esm.js +329 -0
  83. package/package.json +7 -22
  84. package/path-428ebac9.cjs.js +317 -0
  85. package/path-428ebac9.esm.js +314 -0
  86. package/pieDiagram-828dae43.cjs.js +951 -0
  87. package/pieDiagram-828dae43.esm.js +949 -0
  88. package/quadrantDiagram-5fa00455.cjs.js +2410 -0
  89. package/quadrantDiagram-5fa00455.esm.js +2408 -0
  90. package/requirementDiagram-03163dc4.cjs.js +2267 -0
  91. package/requirementDiagram-03163dc4.esm.js +2265 -0
  92. package/sankeyDiagram-52ec8976.cjs.js +1848 -0
  93. package/sankeyDiagram-52ec8976.esm.js +1846 -0
  94. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  95. package/sequenceDiagram-b517d154.esm.js +5947 -0
  96. package/stateDiagram-fca82b5b.cjs.js +283 -0
  97. package/stateDiagram-fca82b5b.esm.js +281 -0
  98. package/stateDiagram-v2-ed04200a.cjs.js +373 -0
  99. package/stateDiagram-v2-ed04200a.esm.js +371 -0
  100. package/styles-11e81fdd.cjs.js +3944 -0
  101. package/styles-11e81fdd.esm.js +3940 -0
  102. package/styles-cacbff60.cjs.js +2120 -0
  103. package/styles-cacbff60.esm.js +2111 -0
  104. package/styles-e75131e4.cjs.js +671 -0
  105. package/styles-e75131e4.esm.js +661 -0
  106. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  107. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  108. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  109. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  110. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  111. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  112. package/.swcrc +0 -28
  113. package/README.md +0 -7
  114. package/eslint.config.mjs +0 -22
  115. package/rollup.config.cjs +0 -28
  116. package/src/digipair__engine.d.ts +0 -2
  117. package/src/handlebars.d.ts +0 -1
  118. package/src/index.html +0 -18
  119. package/src/lib/chat.element.ts +0 -603
  120. package/src/lib/common.data.ts +0 -1
  121. package/src/lib/config.ts +0 -30
  122. package/src/lib/digipair-full.data.ts +0 -101
  123. package/src/lib/digipair-full.element.ts +0 -358
  124. package/src/lib/digipair.data.ts +0 -103
  125. package/src/lib/digipair.element.ts +0 -446
  126. package/src/lib/inputs.element.ts +0 -46
  127. package/src/lib/mermaid.d.ts +0 -1
  128. package/src/lib/message.interface.ts +0 -10
  129. package/src/lib/pins/chatbot.actions.ts +0 -32
  130. package/src/lib/tools/css-selector.ts +0 -12
  131. package/tsconfig.json +0 -13
  132. package/tsconfig.lib.json +0 -19
  133. /package/{src/index.d.ts → index.d.ts} +0 -0
  134. /package/{src/index.ts → libs/skill-web-chatbot/src/index.d.ts} +0 -0
  135. /package/{src/schema.fr.json → schema.fr.json} +0 -0
  136. /package/{src/schema.json → schema.json} +0 -0
@@ -0,0 +1,3148 @@
1
+ import { a$ as up, b0 as $t, aM as nl, aL as yp, F as F_, A as A_, M as M_, h as O_, E as E_, L as L_, j as B_, c as L, aK as z_, O as Ol, a as ai$1 } from './index.esm2.js';
2
+ import { Q as Qr } from './createText-03b82060.esm.js';
3
+ import { t } from './init-f9637058.esm.js';
4
+ import { h } from './ordinal-5695958c.esm.js';
5
+ import { H as Hn } from './linear-9bcf74c4.esm.js';
6
+ import { P } from './line-24d93f1b.esm.js';
7
+ import './array-2ff2c7a6.esm.js';
8
+ import './path-428ebac9.esm.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 _array_without_holes(arr) {
19
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
20
+ }
21
+ function _assert_this_initialized(self) {
22
+ if (self === void 0) {
23
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24
+ }
25
+ return self;
26
+ }
27
+ function _class_call_check(instance, Constructor) {
28
+ if (!(instance instanceof Constructor)) {
29
+ throw new TypeError("Cannot call a class as a function");
30
+ }
31
+ }
32
+ function _defineProperties(target, props) {
33
+ for(var i = 0; i < props.length; i++){
34
+ var descriptor = props[i];
35
+ descriptor.enumerable = descriptor.enumerable || false;
36
+ descriptor.configurable = true;
37
+ if ("value" in descriptor) descriptor.writable = true;
38
+ Object.defineProperty(target, descriptor.key, descriptor);
39
+ }
40
+ }
41
+ function _create_class(Constructor, protoProps, staticProps) {
42
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
43
+ if (staticProps) _defineProperties(Constructor, staticProps);
44
+ return Constructor;
45
+ }
46
+ function _get(target, property, receiver) {
47
+ if (typeof Reflect !== "undefined" && Reflect.get) {
48
+ _get = Reflect.get;
49
+ } else {
50
+ _get = function get(target, property, receiver) {
51
+ var base = _super_prop_base(target, property);
52
+ if (!base) return;
53
+ var desc = Object.getOwnPropertyDescriptor(base, property);
54
+ if (desc.get) {
55
+ return desc.get.call(receiver || target);
56
+ }
57
+ return desc.value;
58
+ };
59
+ }
60
+ return _get(target, property, receiver || target);
61
+ }
62
+ function _get_prototype_of(o) {
63
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
64
+ return o.__proto__ || Object.getPrototypeOf(o);
65
+ };
66
+ return _get_prototype_of(o);
67
+ }
68
+ function _inherits(subClass, superClass) {
69
+ if (typeof superClass !== "function" && superClass !== null) {
70
+ throw new TypeError("Super expression must either be null or a function");
71
+ }
72
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
73
+ constructor: {
74
+ value: subClass,
75
+ writable: true,
76
+ configurable: true
77
+ }
78
+ });
79
+ if (superClass) _set_prototype_of(subClass, superClass);
80
+ }
81
+ function _instanceof(left, right) {
82
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
83
+ return !!right[Symbol.hasInstance](left);
84
+ } else {
85
+ return left instanceof right;
86
+ }
87
+ }
88
+ function _iterable_to_array(iter) {
89
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
90
+ }
91
+ function _iterable_to_array_limit(arr, i) {
92
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
93
+ if (_i == null) return;
94
+ var _arr = [];
95
+ var _n = true;
96
+ var _d = false;
97
+ var _s, _e;
98
+ try {
99
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
100
+ _arr.push(_s.value);
101
+ if (i && _arr.length === i) break;
102
+ }
103
+ } catch (err) {
104
+ _d = true;
105
+ _e = err;
106
+ } finally{
107
+ try {
108
+ if (!_n && _i["return"] != null) _i["return"]();
109
+ } finally{
110
+ if (_d) throw _e;
111
+ }
112
+ }
113
+ return _arr;
114
+ }
115
+ function _non_iterable_rest() {
116
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
117
+ }
118
+ function _non_iterable_spread() {
119
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
120
+ }
121
+ function _possible_constructor_return(self, call) {
122
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
123
+ return call;
124
+ }
125
+ return _assert_this_initialized(self);
126
+ }
127
+ function _set_prototype_of(o, p) {
128
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
129
+ o.__proto__ = p;
130
+ return o;
131
+ };
132
+ return _set_prototype_of(o, p);
133
+ }
134
+ function _sliced_to_array(arr, i) {
135
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
136
+ }
137
+ function _super_prop_base(object, property) {
138
+ while(!Object.prototype.hasOwnProperty.call(object, property)){
139
+ object = _get_prototype_of(object);
140
+ if (object === null) break;
141
+ }
142
+ return object;
143
+ }
144
+ function _to_consumable_array(arr) {
145
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
146
+ }
147
+ function _type_of(obj) {
148
+ "@swc/helpers - typeof";
149
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
150
+ }
151
+ function _unsupported_iterable_to_array(o, minLen) {
152
+ if (!o) return;
153
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
154
+ var n = Object.prototype.toString.call(o).slice(8, -1);
155
+ if (n === "Object" && o.constructor) n = o.constructor.name;
156
+ if (n === "Map" || n === "Set") return Array.from(n);
157
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
158
+ }
159
+ function _is_native_reflect_construct() {
160
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
161
+ if (Reflect.construct.sham) return false;
162
+ if (typeof Proxy === "function") return true;
163
+ try {
164
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
165
+ return true;
166
+ } catch (e) {
167
+ return false;
168
+ }
169
+ }
170
+ function _create_super(Derived) {
171
+ var hasNativeReflectConstruct = _is_native_reflect_construct();
172
+ return function _createSuperInternal() {
173
+ var Super = _get_prototype_of(Derived), result;
174
+ if (hasNativeReflectConstruct) {
175
+ var NewTarget = _get_prototype_of(this).constructor;
176
+ result = Reflect.construct(Super, arguments, NewTarget);
177
+ } else {
178
+ result = Super.apply(this, arguments);
179
+ }
180
+ return _possible_constructor_return(this, result);
181
+ };
182
+ }
183
+ function Jt(e, t, i) {
184
+ e = +e, t = +t, i = (n = arguments.length) < 2 ? (t = e, e = 0, 1) : n < 3 ? 1 : +i;
185
+ for(var s = -1, n = Math.max(0, Math.ceil((t - e) / i)) | 0, o = new Array(n); ++s < n;)o[s] = e + s * i;
186
+ return o;
187
+ }
188
+ function st() {
189
+ var e = h().unknown(void 0), t$1 = e.domain, i = e.range, s = 0, n = 1, o, c, f = !1, d = 0, R = 0, _ = 0.5;
190
+ delete e.unknown;
191
+ function A() {
192
+ var m = t$1().length, T = n < s, S = T ? n : s, P = T ? s : n;
193
+ o = (P - S) / Math.max(1, m - d + R * 2), f && (o = Math.floor(o)), S += (P - S - o * (m - d)) * _, c = o * (1 - d), f && (S = Math.round(S), c = Math.round(c));
194
+ var p = Jt(m).map(function(C) {
195
+ return S + o * C;
196
+ });
197
+ return i(T ? p.reverse() : p);
198
+ }
199
+ return e.domain = function(m) {
200
+ return arguments.length ? (t$1(m), A()) : t$1();
201
+ }, e.range = function(m) {
202
+ var ref;
203
+ return arguments.length ? (ref = _sliced_to_array(m, 2), s = ref[0], n = ref[1], s = +s, n = +n, A()) : [
204
+ s,
205
+ n
206
+ ];
207
+ }, e.rangeRound = function(m) {
208
+ var ref;
209
+ return ref = _sliced_to_array(m, 2), s = ref[0], n = ref[1], s = +s, n = +n, f = !0, A();
210
+ }, e.bandwidth = function() {
211
+ return c;
212
+ }, e.step = function() {
213
+ return o;
214
+ }, e.round = function(m) {
215
+ return arguments.length ? (f = !!m, A()) : f;
216
+ }, e.padding = function(m) {
217
+ return arguments.length ? (d = Math.min(1, R = +m), A()) : d;
218
+ }, e.paddingInner = function(m) {
219
+ return arguments.length ? (d = Math.min(1, m), A()) : d;
220
+ }, e.paddingOuter = function(m) {
221
+ return arguments.length ? (R = +m, A()) : R;
222
+ }, e.align = function(m) {
223
+ return arguments.length ? (_ = Math.max(0, Math.min(1, m)), A()) : _;
224
+ }, e.copy = function() {
225
+ return st(t$1(), [
226
+ s,
227
+ n
228
+ ]).round(f).paddingInner(d).paddingOuter(R).align(_);
229
+ }, t.apply(A(), arguments);
230
+ }
231
+ var nt = function() {
232
+ var e = function e(V, r, l, u) {
233
+ for(l = l || {}, u = V.length; u--; l[V[u]] = r);
234
+ return l;
235
+ }, t = [
236
+ 1,
237
+ 10,
238
+ 12,
239
+ 14,
240
+ 16,
241
+ 18,
242
+ 19,
243
+ 21,
244
+ 23
245
+ ], i = [
246
+ 2,
247
+ 6
248
+ ], s = [
249
+ 1,
250
+ 3
251
+ ], n = [
252
+ 1,
253
+ 5
254
+ ], o = [
255
+ 1,
256
+ 6
257
+ ], c = [
258
+ 1,
259
+ 7
260
+ ], f = [
261
+ 1,
262
+ 5,
263
+ 10,
264
+ 12,
265
+ 14,
266
+ 16,
267
+ 18,
268
+ 19,
269
+ 21,
270
+ 23,
271
+ 34,
272
+ 35,
273
+ 36
274
+ ], d = [
275
+ 1,
276
+ 25
277
+ ], R = [
278
+ 1,
279
+ 26
280
+ ], _ = [
281
+ 1,
282
+ 28
283
+ ], A = [
284
+ 1,
285
+ 29
286
+ ], m = [
287
+ 1,
288
+ 30
289
+ ], T = [
290
+ 1,
291
+ 31
292
+ ], S = [
293
+ 1,
294
+ 32
295
+ ], P = [
296
+ 1,
297
+ 33
298
+ ], p = [
299
+ 1,
300
+ 34
301
+ ], C = [
302
+ 1,
303
+ 35
304
+ ], h = [
305
+ 1,
306
+ 36
307
+ ], L = [
308
+ 1,
309
+ 37
310
+ ], z = [
311
+ 1,
312
+ 43
313
+ ], lt = [
314
+ 1,
315
+ 42
316
+ ], ct = [
317
+ 1,
318
+ 47
319
+ ], U = [
320
+ 1,
321
+ 50
322
+ ], w = [
323
+ 1,
324
+ 10,
325
+ 12,
326
+ 14,
327
+ 16,
328
+ 18,
329
+ 19,
330
+ 21,
331
+ 23,
332
+ 34,
333
+ 35,
334
+ 36
335
+ ], Q = [
336
+ 1,
337
+ 10,
338
+ 12,
339
+ 14,
340
+ 16,
341
+ 18,
342
+ 19,
343
+ 21,
344
+ 23,
345
+ 24,
346
+ 26,
347
+ 27,
348
+ 28,
349
+ 34,
350
+ 35,
351
+ 36
352
+ ], E = [
353
+ 1,
354
+ 10,
355
+ 12,
356
+ 14,
357
+ 16,
358
+ 18,
359
+ 19,
360
+ 21,
361
+ 23,
362
+ 24,
363
+ 26,
364
+ 27,
365
+ 28,
366
+ 34,
367
+ 35,
368
+ 36,
369
+ 41,
370
+ 42,
371
+ 43,
372
+ 44,
373
+ 45,
374
+ 46,
375
+ 47,
376
+ 48,
377
+ 49,
378
+ 50
379
+ ], ut = [
380
+ 1,
381
+ 64
382
+ ], K = {
383
+ trace: function trace() {},
384
+ yy: {},
385
+ symbols_: {
386
+ error: 2,
387
+ start: 3,
388
+ eol: 4,
389
+ XYCHART: 5,
390
+ chartConfig: 6,
391
+ document: 7,
392
+ CHART_ORIENTATION: 8,
393
+ statement: 9,
394
+ title: 10,
395
+ text: 11,
396
+ X_AXIS: 12,
397
+ parseXAxis: 13,
398
+ Y_AXIS: 14,
399
+ parseYAxis: 15,
400
+ LINE: 16,
401
+ plotData: 17,
402
+ BAR: 18,
403
+ acc_title: 19,
404
+ acc_title_value: 20,
405
+ acc_descr: 21,
406
+ acc_descr_value: 22,
407
+ acc_descr_multiline_value: 23,
408
+ SQUARE_BRACES_START: 24,
409
+ commaSeparatedNumbers: 25,
410
+ SQUARE_BRACES_END: 26,
411
+ NUMBER_WITH_DECIMAL: 27,
412
+ COMMA: 28,
413
+ xAxisData: 29,
414
+ bandData: 30,
415
+ ARROW_DELIMITER: 31,
416
+ commaSeparatedTexts: 32,
417
+ yAxisData: 33,
418
+ NEWLINE: 34,
419
+ SEMI: 35,
420
+ EOF: 36,
421
+ alphaNum: 37,
422
+ STR: 38,
423
+ MD_STR: 39,
424
+ alphaNumToken: 40,
425
+ AMP: 41,
426
+ NUM: 42,
427
+ ALPHA: 43,
428
+ PLUS: 44,
429
+ EQUALS: 45,
430
+ MULT: 46,
431
+ DOT: 47,
432
+ BRKT: 48,
433
+ MINUS: 49,
434
+ UNDERSCORE: 50,
435
+ $accept: 0,
436
+ $end: 1
437
+ },
438
+ terminals_: {
439
+ 2: "error",
440
+ 5: "XYCHART",
441
+ 8: "CHART_ORIENTATION",
442
+ 10: "title",
443
+ 12: "X_AXIS",
444
+ 14: "Y_AXIS",
445
+ 16: "LINE",
446
+ 18: "BAR",
447
+ 19: "acc_title",
448
+ 20: "acc_title_value",
449
+ 21: "acc_descr",
450
+ 22: "acc_descr_value",
451
+ 23: "acc_descr_multiline_value",
452
+ 24: "SQUARE_BRACES_START",
453
+ 26: "SQUARE_BRACES_END",
454
+ 27: "NUMBER_WITH_DECIMAL",
455
+ 28: "COMMA",
456
+ 31: "ARROW_DELIMITER",
457
+ 34: "NEWLINE",
458
+ 35: "SEMI",
459
+ 36: "EOF",
460
+ 38: "STR",
461
+ 39: "MD_STR",
462
+ 41: "AMP",
463
+ 42: "NUM",
464
+ 43: "ALPHA",
465
+ 44: "PLUS",
466
+ 45: "EQUALS",
467
+ 46: "MULT",
468
+ 47: "DOT",
469
+ 48: "BRKT",
470
+ 49: "MINUS",
471
+ 50: "UNDERSCORE"
472
+ },
473
+ productions_: [
474
+ 0,
475
+ [
476
+ 3,
477
+ 2
478
+ ],
479
+ [
480
+ 3,
481
+ 3
482
+ ],
483
+ [
484
+ 3,
485
+ 2
486
+ ],
487
+ [
488
+ 3,
489
+ 1
490
+ ],
491
+ [
492
+ 6,
493
+ 1
494
+ ],
495
+ [
496
+ 7,
497
+ 0
498
+ ],
499
+ [
500
+ 7,
501
+ 2
502
+ ],
503
+ [
504
+ 9,
505
+ 2
506
+ ],
507
+ [
508
+ 9,
509
+ 2
510
+ ],
511
+ [
512
+ 9,
513
+ 2
514
+ ],
515
+ [
516
+ 9,
517
+ 2
518
+ ],
519
+ [
520
+ 9,
521
+ 2
522
+ ],
523
+ [
524
+ 9,
525
+ 3
526
+ ],
527
+ [
528
+ 9,
529
+ 2
530
+ ],
531
+ [
532
+ 9,
533
+ 3
534
+ ],
535
+ [
536
+ 9,
537
+ 2
538
+ ],
539
+ [
540
+ 9,
541
+ 2
542
+ ],
543
+ [
544
+ 9,
545
+ 1
546
+ ],
547
+ [
548
+ 17,
549
+ 3
550
+ ],
551
+ [
552
+ 25,
553
+ 3
554
+ ],
555
+ [
556
+ 25,
557
+ 1
558
+ ],
559
+ [
560
+ 13,
561
+ 1
562
+ ],
563
+ [
564
+ 13,
565
+ 2
566
+ ],
567
+ [
568
+ 13,
569
+ 1
570
+ ],
571
+ [
572
+ 29,
573
+ 1
574
+ ],
575
+ [
576
+ 29,
577
+ 3
578
+ ],
579
+ [
580
+ 30,
581
+ 3
582
+ ],
583
+ [
584
+ 32,
585
+ 3
586
+ ],
587
+ [
588
+ 32,
589
+ 1
590
+ ],
591
+ [
592
+ 15,
593
+ 1
594
+ ],
595
+ [
596
+ 15,
597
+ 2
598
+ ],
599
+ [
600
+ 15,
601
+ 1
602
+ ],
603
+ [
604
+ 33,
605
+ 3
606
+ ],
607
+ [
608
+ 4,
609
+ 1
610
+ ],
611
+ [
612
+ 4,
613
+ 1
614
+ ],
615
+ [
616
+ 4,
617
+ 1
618
+ ],
619
+ [
620
+ 11,
621
+ 1
622
+ ],
623
+ [
624
+ 11,
625
+ 1
626
+ ],
627
+ [
628
+ 11,
629
+ 1
630
+ ],
631
+ [
632
+ 37,
633
+ 1
634
+ ],
635
+ [
636
+ 37,
637
+ 2
638
+ ],
639
+ [
640
+ 40,
641
+ 1
642
+ ],
643
+ [
644
+ 40,
645
+ 1
646
+ ],
647
+ [
648
+ 40,
649
+ 1
650
+ ],
651
+ [
652
+ 40,
653
+ 1
654
+ ],
655
+ [
656
+ 40,
657
+ 1
658
+ ],
659
+ [
660
+ 40,
661
+ 1
662
+ ],
663
+ [
664
+ 40,
665
+ 1
666
+ ],
667
+ [
668
+ 40,
669
+ 1
670
+ ],
671
+ [
672
+ 40,
673
+ 1
674
+ ],
675
+ [
676
+ 40,
677
+ 1
678
+ ]
679
+ ],
680
+ performAction: function performAction(r, l, u, g, b, a, F) {
681
+ var x = a.length - 1;
682
+ switch(b){
683
+ case 5:
684
+ g.setOrientation(a[x]);
685
+ break;
686
+ case 9:
687
+ g.setDiagramTitle(a[x].text.trim());
688
+ break;
689
+ case 12:
690
+ g.setLineData({
691
+ text: "",
692
+ type: "text"
693
+ }, a[x]);
694
+ break;
695
+ case 13:
696
+ g.setLineData(a[x - 1], a[x]);
697
+ break;
698
+ case 14:
699
+ g.setBarData({
700
+ text: "",
701
+ type: "text"
702
+ }, a[x]);
703
+ break;
704
+ case 15:
705
+ g.setBarData(a[x - 1], a[x]);
706
+ break;
707
+ case 16:
708
+ this.$ = a[x].trim(), g.setAccTitle(this.$);
709
+ break;
710
+ case 17:
711
+ case 18:
712
+ this.$ = a[x].trim(), g.setAccDescription(this.$);
713
+ break;
714
+ case 19:
715
+ this.$ = a[x - 1];
716
+ break;
717
+ case 20:
718
+ this.$ = [
719
+ Number(a[x - 2])
720
+ ].concat(_to_consumable_array(a[x]));
721
+ break;
722
+ case 21:
723
+ this.$ = [
724
+ Number(a[x])
725
+ ];
726
+ break;
727
+ case 22:
728
+ g.setXAxisTitle(a[x]);
729
+ break;
730
+ case 23:
731
+ g.setXAxisTitle(a[x - 1]);
732
+ break;
733
+ case 24:
734
+ g.setXAxisTitle({
735
+ type: "text",
736
+ text: ""
737
+ });
738
+ break;
739
+ case 25:
740
+ g.setXAxisBand(a[x]);
741
+ break;
742
+ case 26:
743
+ g.setXAxisRangeData(Number(a[x - 2]), Number(a[x]));
744
+ break;
745
+ case 27:
746
+ this.$ = a[x - 1];
747
+ break;
748
+ case 28:
749
+ this.$ = [
750
+ a[x - 2]
751
+ ].concat(_to_consumable_array(a[x]));
752
+ break;
753
+ case 29:
754
+ this.$ = [
755
+ a[x]
756
+ ];
757
+ break;
758
+ case 30:
759
+ g.setYAxisTitle(a[x]);
760
+ break;
761
+ case 31:
762
+ g.setYAxisTitle(a[x - 1]);
763
+ break;
764
+ case 32:
765
+ g.setYAxisTitle({
766
+ type: "text",
767
+ text: ""
768
+ });
769
+ break;
770
+ case 33:
771
+ g.setYAxisRangeData(Number(a[x - 2]), Number(a[x]));
772
+ break;
773
+ case 37:
774
+ this.$ = {
775
+ text: a[x],
776
+ type: "text"
777
+ };
778
+ break;
779
+ case 38:
780
+ this.$ = {
781
+ text: a[x],
782
+ type: "text"
783
+ };
784
+ break;
785
+ case 39:
786
+ this.$ = {
787
+ text: a[x],
788
+ type: "markdown"
789
+ };
790
+ break;
791
+ case 40:
792
+ this.$ = a[x];
793
+ break;
794
+ case 41:
795
+ this.$ = a[x - 1] + "" + a[x];
796
+ break;
797
+ }
798
+ },
799
+ table: [
800
+ e(t, i, {
801
+ 3: 1,
802
+ 4: 2,
803
+ 7: 4,
804
+ 5: s,
805
+ 34: n,
806
+ 35: o,
807
+ 36: c
808
+ }),
809
+ {
810
+ 1: [
811
+ 3
812
+ ]
813
+ },
814
+ e(t, i, {
815
+ 4: 2,
816
+ 7: 4,
817
+ 3: 8,
818
+ 5: s,
819
+ 34: n,
820
+ 35: o,
821
+ 36: c
822
+ }),
823
+ e(t, i, {
824
+ 4: 2,
825
+ 7: 4,
826
+ 6: 9,
827
+ 3: 10,
828
+ 5: s,
829
+ 8: [
830
+ 1,
831
+ 11
832
+ ],
833
+ 34: n,
834
+ 35: o,
835
+ 36: c
836
+ }),
837
+ {
838
+ 1: [
839
+ 2,
840
+ 4
841
+ ],
842
+ 9: 12,
843
+ 10: [
844
+ 1,
845
+ 13
846
+ ],
847
+ 12: [
848
+ 1,
849
+ 14
850
+ ],
851
+ 14: [
852
+ 1,
853
+ 15
854
+ ],
855
+ 16: [
856
+ 1,
857
+ 16
858
+ ],
859
+ 18: [
860
+ 1,
861
+ 17
862
+ ],
863
+ 19: [
864
+ 1,
865
+ 18
866
+ ],
867
+ 21: [
868
+ 1,
869
+ 19
870
+ ],
871
+ 23: [
872
+ 1,
873
+ 20
874
+ ]
875
+ },
876
+ e(f, [
877
+ 2,
878
+ 34
879
+ ]),
880
+ e(f, [
881
+ 2,
882
+ 35
883
+ ]),
884
+ e(f, [
885
+ 2,
886
+ 36
887
+ ]),
888
+ {
889
+ 1: [
890
+ 2,
891
+ 1
892
+ ]
893
+ },
894
+ e(t, i, {
895
+ 4: 2,
896
+ 7: 4,
897
+ 3: 21,
898
+ 5: s,
899
+ 34: n,
900
+ 35: o,
901
+ 36: c
902
+ }),
903
+ {
904
+ 1: [
905
+ 2,
906
+ 3
907
+ ]
908
+ },
909
+ e(f, [
910
+ 2,
911
+ 5
912
+ ]),
913
+ e(t, [
914
+ 2,
915
+ 7
916
+ ], {
917
+ 4: 22,
918
+ 34: n,
919
+ 35: o,
920
+ 36: c
921
+ }),
922
+ {
923
+ 11: 23,
924
+ 37: 24,
925
+ 38: d,
926
+ 39: R,
927
+ 40: 27,
928
+ 41: _,
929
+ 42: A,
930
+ 43: m,
931
+ 44: T,
932
+ 45: S,
933
+ 46: P,
934
+ 47: p,
935
+ 48: C,
936
+ 49: h,
937
+ 50: L
938
+ },
939
+ {
940
+ 11: 39,
941
+ 13: 38,
942
+ 24: z,
943
+ 27: lt,
944
+ 29: 40,
945
+ 30: 41,
946
+ 37: 24,
947
+ 38: d,
948
+ 39: R,
949
+ 40: 27,
950
+ 41: _,
951
+ 42: A,
952
+ 43: m,
953
+ 44: T,
954
+ 45: S,
955
+ 46: P,
956
+ 47: p,
957
+ 48: C,
958
+ 49: h,
959
+ 50: L
960
+ },
961
+ {
962
+ 11: 45,
963
+ 15: 44,
964
+ 27: ct,
965
+ 33: 46,
966
+ 37: 24,
967
+ 38: d,
968
+ 39: R,
969
+ 40: 27,
970
+ 41: _,
971
+ 42: A,
972
+ 43: m,
973
+ 44: T,
974
+ 45: S,
975
+ 46: P,
976
+ 47: p,
977
+ 48: C,
978
+ 49: h,
979
+ 50: L
980
+ },
981
+ {
982
+ 11: 49,
983
+ 17: 48,
984
+ 24: U,
985
+ 37: 24,
986
+ 38: d,
987
+ 39: R,
988
+ 40: 27,
989
+ 41: _,
990
+ 42: A,
991
+ 43: m,
992
+ 44: T,
993
+ 45: S,
994
+ 46: P,
995
+ 47: p,
996
+ 48: C,
997
+ 49: h,
998
+ 50: L
999
+ },
1000
+ {
1001
+ 11: 52,
1002
+ 17: 51,
1003
+ 24: U,
1004
+ 37: 24,
1005
+ 38: d,
1006
+ 39: R,
1007
+ 40: 27,
1008
+ 41: _,
1009
+ 42: A,
1010
+ 43: m,
1011
+ 44: T,
1012
+ 45: S,
1013
+ 46: P,
1014
+ 47: p,
1015
+ 48: C,
1016
+ 49: h,
1017
+ 50: L
1018
+ },
1019
+ {
1020
+ 20: [
1021
+ 1,
1022
+ 53
1023
+ ]
1024
+ },
1025
+ {
1026
+ 22: [
1027
+ 1,
1028
+ 54
1029
+ ]
1030
+ },
1031
+ e(w, [
1032
+ 2,
1033
+ 18
1034
+ ]),
1035
+ {
1036
+ 1: [
1037
+ 2,
1038
+ 2
1039
+ ]
1040
+ },
1041
+ e(w, [
1042
+ 2,
1043
+ 8
1044
+ ]),
1045
+ e(w, [
1046
+ 2,
1047
+ 9
1048
+ ]),
1049
+ e(Q, [
1050
+ 2,
1051
+ 37
1052
+ ], {
1053
+ 40: 55,
1054
+ 41: _,
1055
+ 42: A,
1056
+ 43: m,
1057
+ 44: T,
1058
+ 45: S,
1059
+ 46: P,
1060
+ 47: p,
1061
+ 48: C,
1062
+ 49: h,
1063
+ 50: L
1064
+ }),
1065
+ e(Q, [
1066
+ 2,
1067
+ 38
1068
+ ]),
1069
+ e(Q, [
1070
+ 2,
1071
+ 39
1072
+ ]),
1073
+ e(E, [
1074
+ 2,
1075
+ 40
1076
+ ]),
1077
+ e(E, [
1078
+ 2,
1079
+ 42
1080
+ ]),
1081
+ e(E, [
1082
+ 2,
1083
+ 43
1084
+ ]),
1085
+ e(E, [
1086
+ 2,
1087
+ 44
1088
+ ]),
1089
+ e(E, [
1090
+ 2,
1091
+ 45
1092
+ ]),
1093
+ e(E, [
1094
+ 2,
1095
+ 46
1096
+ ]),
1097
+ e(E, [
1098
+ 2,
1099
+ 47
1100
+ ]),
1101
+ e(E, [
1102
+ 2,
1103
+ 48
1104
+ ]),
1105
+ e(E, [
1106
+ 2,
1107
+ 49
1108
+ ]),
1109
+ e(E, [
1110
+ 2,
1111
+ 50
1112
+ ]),
1113
+ e(E, [
1114
+ 2,
1115
+ 51
1116
+ ]),
1117
+ e(w, [
1118
+ 2,
1119
+ 10
1120
+ ]),
1121
+ e(w, [
1122
+ 2,
1123
+ 22
1124
+ ], {
1125
+ 30: 41,
1126
+ 29: 56,
1127
+ 24: z,
1128
+ 27: lt
1129
+ }),
1130
+ e(w, [
1131
+ 2,
1132
+ 24
1133
+ ]),
1134
+ e(w, [
1135
+ 2,
1136
+ 25
1137
+ ]),
1138
+ {
1139
+ 31: [
1140
+ 1,
1141
+ 57
1142
+ ]
1143
+ },
1144
+ {
1145
+ 11: 59,
1146
+ 32: 58,
1147
+ 37: 24,
1148
+ 38: d,
1149
+ 39: R,
1150
+ 40: 27,
1151
+ 41: _,
1152
+ 42: A,
1153
+ 43: m,
1154
+ 44: T,
1155
+ 45: S,
1156
+ 46: P,
1157
+ 47: p,
1158
+ 48: C,
1159
+ 49: h,
1160
+ 50: L
1161
+ },
1162
+ e(w, [
1163
+ 2,
1164
+ 11
1165
+ ]),
1166
+ e(w, [
1167
+ 2,
1168
+ 30
1169
+ ], {
1170
+ 33: 60,
1171
+ 27: ct
1172
+ }),
1173
+ e(w, [
1174
+ 2,
1175
+ 32
1176
+ ]),
1177
+ {
1178
+ 31: [
1179
+ 1,
1180
+ 61
1181
+ ]
1182
+ },
1183
+ e(w, [
1184
+ 2,
1185
+ 12
1186
+ ]),
1187
+ {
1188
+ 17: 62,
1189
+ 24: U
1190
+ },
1191
+ {
1192
+ 25: 63,
1193
+ 27: ut
1194
+ },
1195
+ e(w, [
1196
+ 2,
1197
+ 14
1198
+ ]),
1199
+ {
1200
+ 17: 65,
1201
+ 24: U
1202
+ },
1203
+ e(w, [
1204
+ 2,
1205
+ 16
1206
+ ]),
1207
+ e(w, [
1208
+ 2,
1209
+ 17
1210
+ ]),
1211
+ e(E, [
1212
+ 2,
1213
+ 41
1214
+ ]),
1215
+ e(w, [
1216
+ 2,
1217
+ 23
1218
+ ]),
1219
+ {
1220
+ 27: [
1221
+ 1,
1222
+ 66
1223
+ ]
1224
+ },
1225
+ {
1226
+ 26: [
1227
+ 1,
1228
+ 67
1229
+ ]
1230
+ },
1231
+ {
1232
+ 26: [
1233
+ 2,
1234
+ 29
1235
+ ],
1236
+ 28: [
1237
+ 1,
1238
+ 68
1239
+ ]
1240
+ },
1241
+ e(w, [
1242
+ 2,
1243
+ 31
1244
+ ]),
1245
+ {
1246
+ 27: [
1247
+ 1,
1248
+ 69
1249
+ ]
1250
+ },
1251
+ e(w, [
1252
+ 2,
1253
+ 13
1254
+ ]),
1255
+ {
1256
+ 26: [
1257
+ 1,
1258
+ 70
1259
+ ]
1260
+ },
1261
+ {
1262
+ 26: [
1263
+ 2,
1264
+ 21
1265
+ ],
1266
+ 28: [
1267
+ 1,
1268
+ 71
1269
+ ]
1270
+ },
1271
+ e(w, [
1272
+ 2,
1273
+ 15
1274
+ ]),
1275
+ e(w, [
1276
+ 2,
1277
+ 26
1278
+ ]),
1279
+ e(w, [
1280
+ 2,
1281
+ 27
1282
+ ]),
1283
+ {
1284
+ 11: 59,
1285
+ 32: 72,
1286
+ 37: 24,
1287
+ 38: d,
1288
+ 39: R,
1289
+ 40: 27,
1290
+ 41: _,
1291
+ 42: A,
1292
+ 43: m,
1293
+ 44: T,
1294
+ 45: S,
1295
+ 46: P,
1296
+ 47: p,
1297
+ 48: C,
1298
+ 49: h,
1299
+ 50: L
1300
+ },
1301
+ e(w, [
1302
+ 2,
1303
+ 33
1304
+ ]),
1305
+ e(w, [
1306
+ 2,
1307
+ 19
1308
+ ]),
1309
+ {
1310
+ 25: 73,
1311
+ 27: ut
1312
+ },
1313
+ {
1314
+ 26: [
1315
+ 2,
1316
+ 28
1317
+ ]
1318
+ },
1319
+ {
1320
+ 26: [
1321
+ 2,
1322
+ 20
1323
+ ]
1324
+ }
1325
+ ],
1326
+ defaultActions: {
1327
+ 8: [
1328
+ 2,
1329
+ 1
1330
+ ],
1331
+ 10: [
1332
+ 2,
1333
+ 3
1334
+ ],
1335
+ 21: [
1336
+ 2,
1337
+ 2
1338
+ ],
1339
+ 72: [
1340
+ 2,
1341
+ 28
1342
+ ],
1343
+ 73: [
1344
+ 2,
1345
+ 20
1346
+ ]
1347
+ },
1348
+ parseError: function parseError(r, l) {
1349
+ if (l.recoverable) this.trace(r);
1350
+ else {
1351
+ var u = new Error(r);
1352
+ throw u.hash = l, u;
1353
+ }
1354
+ },
1355
+ parse: function parse(r) {
1356
+ var l = this, u = [
1357
+ 0
1358
+ ], g = [], b = [
1359
+ null
1360
+ ], a = [], F = this.table, x = "", $ = 0, gt = 0, Vt = 2, xt = 1, Wt = a.slice.call(arguments, 1), k = Object.create(this.lexer), W = {
1361
+ yy: {}
1362
+ };
1363
+ for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy, J) && (W.yy[J] = this.yy[J]);
1364
+ k.setInput(r, W.yy), W.yy.lexer = k, W.yy.parser = this, _type_of(k.yylloc) > "u" && (k.yylloc = {});
1365
+ var tt = k.yylloc;
1366
+ a.push(tt);
1367
+ var Bt = k.options && k.options.ranges;
1368
+ typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1369
+ function Ot() {
1370
+ var I;
1371
+ return I = g.pop() || k.lex() || xt, typeof I != "number" && (_instanceof(I, Array) && (g = I, I = g.pop()), I = l.symbols_[I] || I), I;
1372
+ }
1373
+ for(var D, B, v, it, O = {}, q, M, dt, j;;){
1374
+ if (B = u[u.length - 1], this.defaultActions[B] ? v = this.defaultActions[B] : ((D === null || (typeof D === "undefined" ? "undefined" : _type_of(D)) > "u") && (D = Ot()), v = F[B] && F[B][D]), (typeof v === "undefined" ? "undefined" : _type_of(v)) > "u" || !v.length || !v[0]) {
1375
+ var et = "";
1376
+ j = [];
1377
+ for(q in F[B])this.terminals_[q] && q > Vt && j.push("'" + this.terminals_[q] + "'");
1378
+ k.showPosition ? et = "Parse error on line " + ($ + 1) + ":\n" + k.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[D] || D) + "'" : et = "Parse error on line " + ($ + 1) + ": Unexpected " + (D == xt ? "end of input" : "'" + (this.terminals_[D] || D) + "'"), this.parseError(et, {
1379
+ text: k.match,
1380
+ token: this.terminals_[D] || D,
1381
+ line: k.yylineno,
1382
+ loc: tt,
1383
+ expected: j
1384
+ });
1385
+ }
1386
+ if (_instanceof(v[0], Array) && v.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + D);
1387
+ switch(v[0]){
1388
+ case 1:
1389
+ u.push(D), b.push(k.yytext), a.push(k.yylloc), u.push(v[1]), D = null, gt = k.yyleng, x = k.yytext, $ = k.yylineno, tt = k.yylloc;
1390
+ break;
1391
+ case 2:
1392
+ if (M = this.productions_[v[1]][1], O.$ = b[b.length - M], O._$ = {
1393
+ first_line: a[a.length - (M || 1)].first_line,
1394
+ last_line: a[a.length - 1].last_line,
1395
+ first_column: a[a.length - (M || 1)].first_column,
1396
+ last_column: a[a.length - 1].last_column
1397
+ }, Bt && (O._$.range = [
1398
+ a[a.length - (M || 1)].range[0],
1399
+ a[a.length - 1].range[1]
1400
+ ]), it = this.performAction.apply(O, [
1401
+ x,
1402
+ gt,
1403
+ $,
1404
+ W.yy,
1405
+ v[1],
1406
+ b,
1407
+ a
1408
+ ].concat(Wt)), (typeof it === "undefined" ? "undefined" : _type_of(it)) < "u") return it;
1409
+ M && (u = u.slice(0, -1 * M * 2), b = b.slice(0, -1 * M), a = a.slice(0, -1 * M)), u.push(this.productions_[v[1]][0]), b.push(O.$), a.push(O._$), dt = F[u[u.length - 2]][u[u.length - 1]], u.push(dt);
1410
+ break;
1411
+ case 3:
1412
+ return !0;
1413
+ }
1414
+ }
1415
+ return !0;
1416
+ }
1417
+ }, It = function() {
1418
+ var V = {
1419
+ EOF: 1,
1420
+ parseError: function parseError(l, u) {
1421
+ if (this.yy.parser) this.yy.parser.parseError(l, u);
1422
+ else throw new Error(l);
1423
+ },
1424
+ // resets the lexer, sets new input
1425
+ setInput: function setInput(r, l) {
1426
+ return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1427
+ "INITIAL"
1428
+ ], this.yylloc = {
1429
+ first_line: 1,
1430
+ first_column: 0,
1431
+ last_line: 1,
1432
+ last_column: 0
1433
+ }, this.options.ranges && (this.yylloc.range = [
1434
+ 0,
1435
+ 0
1436
+ ]), this.offset = 0, this;
1437
+ },
1438
+ // consumes and returns one char from the input
1439
+ input: function input() {
1440
+ var r = this._input[0];
1441
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
1442
+ var l = r.match(/(?:\r\n?|\n).*/g);
1443
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
1444
+ },
1445
+ // unshifts one char (or a string) into the input
1446
+ unput: function unput(r) {
1447
+ var l = r.length, u = r.split(/(?:\r\n?|\n)/g);
1448
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
1449
+ var g = this.match.split(/(?:\r\n?|\n)/g);
1450
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
1451
+ var b = this.yylloc.range;
1452
+ return this.yylloc = {
1453
+ first_line: this.yylloc.first_line,
1454
+ last_line: this.yylineno + 1,
1455
+ first_column: this.yylloc.first_column,
1456
+ last_column: u ? (u.length === g.length ? this.yylloc.first_column : 0) + g[g.length - u.length].length - u[0].length : this.yylloc.first_column - l
1457
+ }, this.options.ranges && (this.yylloc.range = [
1458
+ b[0],
1459
+ b[0] + this.yyleng - l
1460
+ ]), this.yyleng = this.yytext.length, this;
1461
+ },
1462
+ // When called from action, caches matched text and appends it on next action
1463
+ more: function more() {
1464
+ return this._more = !0, this;
1465
+ },
1466
+ // 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.
1467
+ reject: function reject() {
1468
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1469
+ 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(), {
1470
+ text: "",
1471
+ token: null,
1472
+ line: this.yylineno
1473
+ });
1474
+ return this;
1475
+ },
1476
+ // retain first n characters of the match
1477
+ less: function less(r) {
1478
+ this.unput(this.match.slice(r));
1479
+ },
1480
+ // displays already matched input, i.e. for error messages
1481
+ pastInput: function pastInput() {
1482
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
1483
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
1484
+ },
1485
+ // displays upcoming input, i.e. for error messages
1486
+ upcomingInput: function upcomingInput() {
1487
+ var r = this.match;
1488
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
1489
+ },
1490
+ // displays the character position where the lexing error occurred, i.e. for error messages
1491
+ showPosition: function showPosition() {
1492
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
1493
+ return r + this.upcomingInput() + "\n" + l + "^";
1494
+ },
1495
+ // test the lexed token: return FALSE when not a match, otherwise return token
1496
+ test_match: function test_match(r, l) {
1497
+ var u, g, b;
1498
+ if (this.options.backtrack_lexer && (b = {
1499
+ yylineno: this.yylineno,
1500
+ yylloc: {
1501
+ first_line: this.yylloc.first_line,
1502
+ last_line: this.last_line,
1503
+ first_column: this.yylloc.first_column,
1504
+ last_column: this.yylloc.last_column
1505
+ },
1506
+ yytext: this.yytext,
1507
+ match: this.match,
1508
+ matches: this.matches,
1509
+ matched: this.matched,
1510
+ yyleng: this.yyleng,
1511
+ offset: this.offset,
1512
+ _more: this._more,
1513
+ _input: this._input,
1514
+ yy: this.yy,
1515
+ conditionStack: this.conditionStack.slice(0),
1516
+ done: this.done
1517
+ }, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), g = r[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
1518
+ first_line: this.yylloc.last_line,
1519
+ last_line: this.yylineno + 1,
1520
+ first_column: this.yylloc.last_column,
1521
+ last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
1522
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1523
+ this.offset,
1524
+ this.offset += this.yyleng
1525
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], u = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
1526
+ if (this._backtrack) {
1527
+ for(var a in b)this[a] = b[a];
1528
+ return !1;
1529
+ }
1530
+ return !1;
1531
+ },
1532
+ // return next match in input
1533
+ next: function next() {
1534
+ if (this.done) return this.EOF;
1535
+ this._input || (this.done = !0);
1536
+ var r, l, u, g;
1537
+ this._more || (this.yytext = "", this.match = "");
1538
+ for(var b = this._currentRules(), a = 0; a < b.length; a++)if (u = this._input.match(this.rules[b[a]]), u && (!l || u[0].length > l[0].length)) {
1539
+ if (l = u, g = a, this.options.backtrack_lexer) {
1540
+ if (r = this.test_match(u, b[a]), r !== !1) return r;
1541
+ if (this._backtrack) {
1542
+ l = !1;
1543
+ continue;
1544
+ } else return !1;
1545
+ } else if (!this.options.flex) break;
1546
+ }
1547
+ return l ? (r = this.test_match(l, b[g]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1548
+ text: "",
1549
+ token: null,
1550
+ line: this.yylineno
1551
+ });
1552
+ },
1553
+ // return next match that has a token
1554
+ lex: function lex() {
1555
+ var l = this.next();
1556
+ return l || this.lex();
1557
+ },
1558
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1559
+ begin: function begin(l) {
1560
+ this.conditionStack.push(l);
1561
+ },
1562
+ // pop the previously active lexer condition state off the condition stack
1563
+ popState: function popState() {
1564
+ var l = this.conditionStack.length - 1;
1565
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1566
+ },
1567
+ // produce the lexer rule set which is active for the currently active lexer condition state
1568
+ _currentRules: function _currentRules() {
1569
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1570
+ },
1571
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1572
+ topState: function topState(l) {
1573
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
1574
+ },
1575
+ // alias for begin(condition)
1576
+ pushState: function pushState(l) {
1577
+ this.begin(l);
1578
+ },
1579
+ // return the number of states currently on the stack
1580
+ stateStackSize: function stateStackSize() {
1581
+ return this.conditionStack.length;
1582
+ },
1583
+ options: {
1584
+ "case-insensitive": !0
1585
+ },
1586
+ performAction: function performAction(l, u, g, b) {
1587
+ switch(g){
1588
+ case 0:
1589
+ break;
1590
+ case 1:
1591
+ break;
1592
+ case 2:
1593
+ return this.popState(), 34;
1594
+ case 3:
1595
+ return this.popState(), 34;
1596
+ case 4:
1597
+ return 34;
1598
+ case 5:
1599
+ break;
1600
+ case 6:
1601
+ return 10;
1602
+ case 7:
1603
+ return this.pushState("acc_title"), 19;
1604
+ case 8:
1605
+ return this.popState(), "acc_title_value";
1606
+ case 9:
1607
+ return this.pushState("acc_descr"), 21;
1608
+ case 10:
1609
+ return this.popState(), "acc_descr_value";
1610
+ case 11:
1611
+ this.pushState("acc_descr_multiline");
1612
+ break;
1613
+ case 12:
1614
+ this.popState();
1615
+ break;
1616
+ case 13:
1617
+ return "acc_descr_multiline_value";
1618
+ case 14:
1619
+ return 5;
1620
+ case 15:
1621
+ return 8;
1622
+ case 16:
1623
+ return this.pushState("axis_data"), "X_AXIS";
1624
+ case 17:
1625
+ return this.pushState("axis_data"), "Y_AXIS";
1626
+ case 18:
1627
+ return this.pushState("axis_band_data"), 24;
1628
+ case 19:
1629
+ return 31;
1630
+ case 20:
1631
+ return this.pushState("data"), 16;
1632
+ case 21:
1633
+ return this.pushState("data"), 18;
1634
+ case 22:
1635
+ return this.pushState("data_inner"), 24;
1636
+ case 23:
1637
+ return 27;
1638
+ case 24:
1639
+ return this.popState(), 26;
1640
+ case 25:
1641
+ this.popState();
1642
+ break;
1643
+ case 26:
1644
+ this.pushState("string");
1645
+ break;
1646
+ case 27:
1647
+ this.popState();
1648
+ break;
1649
+ case 28:
1650
+ return "STR";
1651
+ case 29:
1652
+ return 24;
1653
+ case 30:
1654
+ return 26;
1655
+ case 31:
1656
+ return 43;
1657
+ case 32:
1658
+ return "COLON";
1659
+ case 33:
1660
+ return 44;
1661
+ case 34:
1662
+ return 28;
1663
+ case 35:
1664
+ return 45;
1665
+ case 36:
1666
+ return 46;
1667
+ case 37:
1668
+ return 48;
1669
+ case 38:
1670
+ return 50;
1671
+ case 39:
1672
+ return 47;
1673
+ case 40:
1674
+ return 41;
1675
+ case 41:
1676
+ return 49;
1677
+ case 42:
1678
+ return 42;
1679
+ case 43:
1680
+ break;
1681
+ case 44:
1682
+ return 35;
1683
+ case 45:
1684
+ return 36;
1685
+ }
1686
+ },
1687
+ rules: [
1688
+ /^(?:%%(?!\{)[^\n]*)/i,
1689
+ /^(?:[^\}]%%[^\n]*)/i,
1690
+ /^(?:(\r?\n))/i,
1691
+ /^(?:(\r?\n))/i,
1692
+ /^(?:[\n\r]+)/i,
1693
+ /^(?:%%[^\n]*)/i,
1694
+ /^(?:title\b)/i,
1695
+ /^(?:accTitle\s*:\s*)/i,
1696
+ /^(?:(?!\n||)*[^\n]*)/i,
1697
+ /^(?:accDescr\s*:\s*)/i,
1698
+ /^(?:(?!\n||)*[^\n]*)/i,
1699
+ /^(?:accDescr\s*\{\s*)/i,
1700
+ /^(?:\{)/i,
1701
+ /^(?:[^\}]*)/i,
1702
+ /^(?:xychart-beta\b)/i,
1703
+ /^(?:(?:vertical|horizontal))/i,
1704
+ /^(?:x-axis\b)/i,
1705
+ /^(?:y-axis\b)/i,
1706
+ /^(?:\[)/i,
1707
+ /^(?:-->)/i,
1708
+ /^(?:line\b)/i,
1709
+ /^(?:bar\b)/i,
1710
+ /^(?:\[)/i,
1711
+ /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,
1712
+ /^(?:\])/i,
1713
+ /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,
1714
+ /^(?:["])/i,
1715
+ /^(?:["])/i,
1716
+ /^(?:[^"]*)/i,
1717
+ /^(?:\[)/i,
1718
+ /^(?:\])/i,
1719
+ /^(?:[A-Za-z]+)/i,
1720
+ /^(?::)/i,
1721
+ /^(?:\+)/i,
1722
+ /^(?:,)/i,
1723
+ /^(?:=)/i,
1724
+ /^(?:\*)/i,
1725
+ /^(?:#)/i,
1726
+ /^(?:[\_])/i,
1727
+ /^(?:\.)/i,
1728
+ /^(?:&)/i,
1729
+ /^(?:-)/i,
1730
+ /^(?:[0-9]+)/i,
1731
+ /^(?:\s+)/i,
1732
+ /^(?:;)/i,
1733
+ /^(?:$)/i
1734
+ ],
1735
+ conditions: {
1736
+ data_inner: {
1737
+ rules: [
1738
+ 0,
1739
+ 1,
1740
+ 4,
1741
+ 5,
1742
+ 6,
1743
+ 7,
1744
+ 9,
1745
+ 11,
1746
+ 14,
1747
+ 15,
1748
+ 16,
1749
+ 17,
1750
+ 20,
1751
+ 21,
1752
+ 23,
1753
+ 24,
1754
+ 25,
1755
+ 26,
1756
+ 29,
1757
+ 30,
1758
+ 31,
1759
+ 32,
1760
+ 33,
1761
+ 34,
1762
+ 35,
1763
+ 36,
1764
+ 37,
1765
+ 38,
1766
+ 39,
1767
+ 40,
1768
+ 41,
1769
+ 42,
1770
+ 43,
1771
+ 44,
1772
+ 45
1773
+ ],
1774
+ inclusive: !0
1775
+ },
1776
+ data: {
1777
+ rules: [
1778
+ 0,
1779
+ 1,
1780
+ 3,
1781
+ 4,
1782
+ 5,
1783
+ 6,
1784
+ 7,
1785
+ 9,
1786
+ 11,
1787
+ 14,
1788
+ 15,
1789
+ 16,
1790
+ 17,
1791
+ 20,
1792
+ 21,
1793
+ 22,
1794
+ 25,
1795
+ 26,
1796
+ 29,
1797
+ 30,
1798
+ 31,
1799
+ 32,
1800
+ 33,
1801
+ 34,
1802
+ 35,
1803
+ 36,
1804
+ 37,
1805
+ 38,
1806
+ 39,
1807
+ 40,
1808
+ 41,
1809
+ 42,
1810
+ 43,
1811
+ 44,
1812
+ 45
1813
+ ],
1814
+ inclusive: !0
1815
+ },
1816
+ axis_band_data: {
1817
+ rules: [
1818
+ 0,
1819
+ 1,
1820
+ 4,
1821
+ 5,
1822
+ 6,
1823
+ 7,
1824
+ 9,
1825
+ 11,
1826
+ 14,
1827
+ 15,
1828
+ 16,
1829
+ 17,
1830
+ 20,
1831
+ 21,
1832
+ 24,
1833
+ 25,
1834
+ 26,
1835
+ 29,
1836
+ 30,
1837
+ 31,
1838
+ 32,
1839
+ 33,
1840
+ 34,
1841
+ 35,
1842
+ 36,
1843
+ 37,
1844
+ 38,
1845
+ 39,
1846
+ 40,
1847
+ 41,
1848
+ 42,
1849
+ 43,
1850
+ 44,
1851
+ 45
1852
+ ],
1853
+ inclusive: !0
1854
+ },
1855
+ axis_data: {
1856
+ rules: [
1857
+ 0,
1858
+ 1,
1859
+ 2,
1860
+ 4,
1861
+ 5,
1862
+ 6,
1863
+ 7,
1864
+ 9,
1865
+ 11,
1866
+ 14,
1867
+ 15,
1868
+ 16,
1869
+ 17,
1870
+ 18,
1871
+ 19,
1872
+ 20,
1873
+ 21,
1874
+ 23,
1875
+ 25,
1876
+ 26,
1877
+ 29,
1878
+ 30,
1879
+ 31,
1880
+ 32,
1881
+ 33,
1882
+ 34,
1883
+ 35,
1884
+ 36,
1885
+ 37,
1886
+ 38,
1887
+ 39,
1888
+ 40,
1889
+ 41,
1890
+ 42,
1891
+ 43,
1892
+ 44,
1893
+ 45
1894
+ ],
1895
+ inclusive: !0
1896
+ },
1897
+ acc_descr_multiline: {
1898
+ rules: [
1899
+ 12,
1900
+ 13
1901
+ ],
1902
+ inclusive: !1
1903
+ },
1904
+ acc_descr: {
1905
+ rules: [
1906
+ 10
1907
+ ],
1908
+ inclusive: !1
1909
+ },
1910
+ acc_title: {
1911
+ rules: [
1912
+ 8
1913
+ ],
1914
+ inclusive: !1
1915
+ },
1916
+ title: {
1917
+ rules: [],
1918
+ inclusive: !1
1919
+ },
1920
+ md_string: {
1921
+ rules: [],
1922
+ inclusive: !1
1923
+ },
1924
+ string: {
1925
+ rules: [
1926
+ 27,
1927
+ 28
1928
+ ],
1929
+ inclusive: !1
1930
+ },
1931
+ INITIAL: {
1932
+ rules: [
1933
+ 0,
1934
+ 1,
1935
+ 4,
1936
+ 5,
1937
+ 6,
1938
+ 7,
1939
+ 9,
1940
+ 11,
1941
+ 14,
1942
+ 15,
1943
+ 16,
1944
+ 17,
1945
+ 20,
1946
+ 21,
1947
+ 25,
1948
+ 26,
1949
+ 29,
1950
+ 30,
1951
+ 31,
1952
+ 32,
1953
+ 33,
1954
+ 34,
1955
+ 35,
1956
+ 36,
1957
+ 37,
1958
+ 38,
1959
+ 39,
1960
+ 40,
1961
+ 41,
1962
+ 42,
1963
+ 43,
1964
+ 44,
1965
+ 45
1966
+ ],
1967
+ inclusive: !0
1968
+ }
1969
+ }
1970
+ };
1971
+ return V;
1972
+ }();
1973
+ K.lexer = It;
1974
+ function Z() {
1975
+ this.yy = {};
1976
+ }
1977
+ return Z.prototype = K, K.Parser = Z, new Z();
1978
+ }();
1979
+ nt.parser = nt;
1980
+ var ti = nt;
1981
+ function mt(e) {
1982
+ return e.type === "bar";
1983
+ }
1984
+ function _t(e) {
1985
+ return e.type === "band";
1986
+ }
1987
+ function N(e) {
1988
+ return e.type === "linear";
1989
+ }
1990
+ var kt = /*#__PURE__*/ function() {
1991
+ function kt(t) {
1992
+ _class_call_check(this, kt);
1993
+ this.parentGroup = t;
1994
+ }
1995
+ _create_class(kt, [
1996
+ {
1997
+ key: "getMaxDimension",
1998
+ value: function getMaxDimension(t, i) {
1999
+ if (!this.parentGroup) return {
2000
+ width: t.reduce(function(o, c) {
2001
+ return Math.max(c.length, o);
2002
+ }, 0) * i,
2003
+ height: i
2004
+ };
2005
+ var s = {
2006
+ width: 0,
2007
+ height: 0
2008
+ }, n = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
2009
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2010
+ try {
2011
+ for(var _iterator = t[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2012
+ var o = _step.value;
2013
+ var c = Qr(n, 1, o), f = c ? c.width : o.length * i, d = c ? c.height : i;
2014
+ s.width = Math.max(s.width, f), s.height = Math.max(s.height, d);
2015
+ }
2016
+ } catch (err) {
2017
+ _didIteratorError = true;
2018
+ _iteratorError = err;
2019
+ } finally{
2020
+ try {
2021
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2022
+ _iterator.return();
2023
+ }
2024
+ } finally{
2025
+ if (_didIteratorError) {
2026
+ throw _iteratorError;
2027
+ }
2028
+ }
2029
+ }
2030
+ return n.remove(), s;
2031
+ }
2032
+ }
2033
+ ]);
2034
+ return kt;
2035
+ }();
2036
+ var yt = 0.7, bt = 0.2;
2037
+ var Rt = /*#__PURE__*/ function() {
2038
+ function Rt(t, i, s, n) {
2039
+ _class_call_check(this, Rt);
2040
+ this.axisConfig = t, this.title = i, this.textDimensionCalculator = s, this.axisThemeConfig = n, this.boundingRect = {
2041
+ x: 0,
2042
+ y: 0,
2043
+ width: 0,
2044
+ height: 0
2045
+ }, this.axisPosition = "left", this.showTitle = !1, this.showLabel = !1, this.showTick = !1, this.showAxisLine = !1, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [
2046
+ 0,
2047
+ 10
2048
+ ], this.boundingRect = {
2049
+ x: 0,
2050
+ y: 0,
2051
+ width: 0,
2052
+ height: 0
2053
+ }, this.axisPosition = "left";
2054
+ }
2055
+ _create_class(Rt, [
2056
+ {
2057
+ key: "setRange",
2058
+ value: function setRange(t) {
2059
+ this.range = t, this.axisPosition === "left" || this.axisPosition === "right" ? this.boundingRect.height = t[1] - t[0] : this.boundingRect.width = t[1] - t[0], this.recalculateScale();
2060
+ }
2061
+ },
2062
+ {
2063
+ key: "getRange",
2064
+ value: function getRange() {
2065
+ return [
2066
+ this.range[0] + this.outerPadding,
2067
+ this.range[1] - this.outerPadding
2068
+ ];
2069
+ }
2070
+ },
2071
+ {
2072
+ key: "setAxisPosition",
2073
+ value: function setAxisPosition(t) {
2074
+ this.axisPosition = t, this.setRange(this.range);
2075
+ }
2076
+ },
2077
+ {
2078
+ key: "getTickDistance",
2079
+ value: function getTickDistance() {
2080
+ var t = this.getRange();
2081
+ return Math.abs(t[0] - t[1]) / this.getTickValues().length;
2082
+ }
2083
+ },
2084
+ {
2085
+ key: "getAxisOuterPadding",
2086
+ value: function getAxisOuterPadding() {
2087
+ return this.outerPadding;
2088
+ }
2089
+ },
2090
+ {
2091
+ key: "getLabelDimension",
2092
+ value: function getLabelDimension() {
2093
+ return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(function(t) {
2094
+ return t.toString();
2095
+ }), this.axisConfig.labelFontSize);
2096
+ }
2097
+ },
2098
+ {
2099
+ key: "recalculateOuterPaddingToDrawBar",
2100
+ value: function recalculateOuterPaddingToDrawBar() {
2101
+ yt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(yt * this.getTickDistance() / 2)), this.recalculateScale();
2102
+ }
2103
+ },
2104
+ {
2105
+ key: "calculateSpaceIfDrawnHorizontally",
2106
+ value: function calculateSpaceIfDrawnHorizontally(t) {
2107
+ var i = t.height;
2108
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
2109
+ var s = this.getLabelDimension(), n = bt * t.width;
2110
+ this.outerPadding = Math.min(s.width / 2, n);
2111
+ var o = s.height + this.axisConfig.labelPadding * 2;
2112
+ this.labelTextHeight = s.height, o <= i && (i -= o, this.showLabel = !0);
2113
+ }
2114
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
2115
+ var s1 = this.textDimensionCalculator.getMaxDimension([
2116
+ this.title
2117
+ ], this.axisConfig.titleFontSize), n1 = s1.height + this.axisConfig.titlePadding * 2;
2118
+ this.titleTextHeight = s1.height, n1 <= i && (i -= n1, this.showTitle = !0);
2119
+ }
2120
+ this.boundingRect.width = t.width, this.boundingRect.height = t.height - i;
2121
+ }
2122
+ },
2123
+ {
2124
+ key: "calculateSpaceIfDrawnVertical",
2125
+ value: function calculateSpaceIfDrawnVertical(t) {
2126
+ var i = t.width;
2127
+ if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = !0), this.axisConfig.showLabel) {
2128
+ var s = this.getLabelDimension(), n = bt * t.height;
2129
+ this.outerPadding = Math.min(s.height / 2, n);
2130
+ var o = s.width + this.axisConfig.labelPadding * 2;
2131
+ o <= i && (i -= o, this.showLabel = !0);
2132
+ }
2133
+ if (this.axisConfig.showTick && i >= this.axisConfig.tickLength && (this.showTick = !0, i -= this.axisConfig.tickLength), this.axisConfig.showTitle && this.title) {
2134
+ var s1 = this.textDimensionCalculator.getMaxDimension([
2135
+ this.title
2136
+ ], this.axisConfig.titleFontSize), n1 = s1.height + this.axisConfig.titlePadding * 2;
2137
+ this.titleTextHeight = s1.height, n1 <= i && (i -= n1, this.showTitle = !0);
2138
+ }
2139
+ this.boundingRect.width = t.width - i, this.boundingRect.height = t.height;
2140
+ }
2141
+ },
2142
+ {
2143
+ key: "calculateSpace",
2144
+ value: function calculateSpace(t) {
2145
+ return this.axisPosition === "left" || this.axisPosition === "right" ? this.calculateSpaceIfDrawnVertical(t) : this.calculateSpaceIfDrawnHorizontally(t), this.recalculateScale(), {
2146
+ width: this.boundingRect.width,
2147
+ height: this.boundingRect.height
2148
+ };
2149
+ }
2150
+ },
2151
+ {
2152
+ key: "setBoundingBoxXY",
2153
+ value: function setBoundingBoxXY(t) {
2154
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
2155
+ }
2156
+ },
2157
+ {
2158
+ key: "getDrawableElementsForLeftAxis",
2159
+ value: function getDrawableElementsForLeftAxis() {
2160
+ var _this = this;
2161
+ var t = [];
2162
+ if (this.showAxisLine) {
2163
+ var i = this.boundingRect.x + this.boundingRect.width - this.axisConfig.axisLineWidth / 2;
2164
+ t.push({
2165
+ type: "path",
2166
+ groupTexts: [
2167
+ "left-axis",
2168
+ "axisl-line"
2169
+ ],
2170
+ data: [
2171
+ {
2172
+ path: "M ".concat(i, ",").concat(this.boundingRect.y, " L ").concat(i, ",").concat(this.boundingRect.y + this.boundingRect.height, " "),
2173
+ strokeFill: this.axisThemeConfig.axisLineColor,
2174
+ strokeWidth: this.axisConfig.axisLineWidth
2175
+ }
2176
+ ]
2177
+ });
2178
+ }
2179
+ if (this.showLabel && t.push({
2180
+ type: "text",
2181
+ groupTexts: [
2182
+ "left-axis",
2183
+ "label"
2184
+ ],
2185
+ data: this.getTickValues().map(function(i) {
2186
+ return {
2187
+ text: i.toString(),
2188
+ x: _this.boundingRect.x + _this.boundingRect.width - (_this.showLabel ? _this.axisConfig.labelPadding : 0) - (_this.showTick ? _this.axisConfig.tickLength : 0) - (_this.showAxisLine ? _this.axisConfig.axisLineWidth : 0),
2189
+ y: _this.getScaleValue(i),
2190
+ fill: _this.axisThemeConfig.labelColor,
2191
+ fontSize: _this.axisConfig.labelFontSize,
2192
+ rotation: 0,
2193
+ verticalPos: "middle",
2194
+ horizontalPos: "right"
2195
+ };
2196
+ })
2197
+ }), this.showTick) {
2198
+ var i1 = this.boundingRect.x + this.boundingRect.width - (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
2199
+ t.push({
2200
+ type: "path",
2201
+ groupTexts: [
2202
+ "left-axis",
2203
+ "ticks"
2204
+ ],
2205
+ data: this.getTickValues().map(function(s) {
2206
+ return {
2207
+ path: "M ".concat(i1, ",").concat(_this.getScaleValue(s), " L ").concat(i1 - _this.axisConfig.tickLength, ",").concat(_this.getScaleValue(s)),
2208
+ strokeFill: _this.axisThemeConfig.tickColor,
2209
+ strokeWidth: _this.axisConfig.tickWidth
2210
+ };
2211
+ })
2212
+ });
2213
+ }
2214
+ return this.showTitle && t.push({
2215
+ type: "text",
2216
+ groupTexts: [
2217
+ "left-axis",
2218
+ "title"
2219
+ ],
2220
+ data: [
2221
+ {
2222
+ text: this.title,
2223
+ x: this.boundingRect.x + this.axisConfig.titlePadding,
2224
+ y: this.boundingRect.y + this.boundingRect.height / 2,
2225
+ fill: this.axisThemeConfig.titleColor,
2226
+ fontSize: this.axisConfig.titleFontSize,
2227
+ rotation: 270,
2228
+ verticalPos: "top",
2229
+ horizontalPos: "center"
2230
+ }
2231
+ ]
2232
+ }), t;
2233
+ }
2234
+ },
2235
+ {
2236
+ key: "getDrawableElementsForBottomAxis",
2237
+ value: function getDrawableElementsForBottomAxis() {
2238
+ var _this = this;
2239
+ var t = [];
2240
+ if (this.showAxisLine) {
2241
+ var i = this.boundingRect.y + this.axisConfig.axisLineWidth / 2;
2242
+ t.push({
2243
+ type: "path",
2244
+ groupTexts: [
2245
+ "bottom-axis",
2246
+ "axis-line"
2247
+ ],
2248
+ data: [
2249
+ {
2250
+ path: "M ".concat(this.boundingRect.x, ",").concat(i, " L ").concat(this.boundingRect.x + this.boundingRect.width, ",").concat(i),
2251
+ strokeFill: this.axisThemeConfig.axisLineColor,
2252
+ strokeWidth: this.axisConfig.axisLineWidth
2253
+ }
2254
+ ]
2255
+ });
2256
+ }
2257
+ if (this.showLabel && t.push({
2258
+ type: "text",
2259
+ groupTexts: [
2260
+ "bottom-axis",
2261
+ "label"
2262
+ ],
2263
+ data: this.getTickValues().map(function(i) {
2264
+ return {
2265
+ text: i.toString(),
2266
+ x: _this.getScaleValue(i),
2267
+ y: _this.boundingRect.y + _this.axisConfig.labelPadding + (_this.showTick ? _this.axisConfig.tickLength : 0) + (_this.showAxisLine ? _this.axisConfig.axisLineWidth : 0),
2268
+ fill: _this.axisThemeConfig.labelColor,
2269
+ fontSize: _this.axisConfig.labelFontSize,
2270
+ rotation: 0,
2271
+ verticalPos: "top",
2272
+ horizontalPos: "center"
2273
+ };
2274
+ })
2275
+ }), this.showTick) {
2276
+ var i1 = this.boundingRect.y + (this.showAxisLine ? this.axisConfig.axisLineWidth : 0);
2277
+ t.push({
2278
+ type: "path",
2279
+ groupTexts: [
2280
+ "bottom-axis",
2281
+ "ticks"
2282
+ ],
2283
+ data: this.getTickValues().map(function(s) {
2284
+ return {
2285
+ path: "M ".concat(_this.getScaleValue(s), ",").concat(i1, " L ").concat(_this.getScaleValue(s), ",").concat(i1 + _this.axisConfig.tickLength),
2286
+ strokeFill: _this.axisThemeConfig.tickColor,
2287
+ strokeWidth: _this.axisConfig.tickWidth
2288
+ };
2289
+ })
2290
+ });
2291
+ }
2292
+ return this.showTitle && t.push({
2293
+ type: "text",
2294
+ groupTexts: [
2295
+ "bottom-axis",
2296
+ "title"
2297
+ ],
2298
+ data: [
2299
+ {
2300
+ text: this.title,
2301
+ x: this.range[0] + (this.range[1] - this.range[0]) / 2,
2302
+ y: this.boundingRect.y + this.boundingRect.height - this.axisConfig.titlePadding - this.titleTextHeight,
2303
+ fill: this.axisThemeConfig.titleColor,
2304
+ fontSize: this.axisConfig.titleFontSize,
2305
+ rotation: 0,
2306
+ verticalPos: "top",
2307
+ horizontalPos: "center"
2308
+ }
2309
+ ]
2310
+ }), t;
2311
+ }
2312
+ },
2313
+ {
2314
+ key: "getDrawableElementsForTopAxis",
2315
+ value: function getDrawableElementsForTopAxis() {
2316
+ var _this = this;
2317
+ var t = [];
2318
+ if (this.showAxisLine) {
2319
+ var i = this.boundingRect.y + this.boundingRect.height - this.axisConfig.axisLineWidth / 2;
2320
+ t.push({
2321
+ type: "path",
2322
+ groupTexts: [
2323
+ "top-axis",
2324
+ "axis-line"
2325
+ ],
2326
+ data: [
2327
+ {
2328
+ path: "M ".concat(this.boundingRect.x, ",").concat(i, " L ").concat(this.boundingRect.x + this.boundingRect.width, ",").concat(i),
2329
+ strokeFill: this.axisThemeConfig.axisLineColor,
2330
+ strokeWidth: this.axisConfig.axisLineWidth
2331
+ }
2332
+ ]
2333
+ });
2334
+ }
2335
+ if (this.showLabel && t.push({
2336
+ type: "text",
2337
+ groupTexts: [
2338
+ "top-axis",
2339
+ "label"
2340
+ ],
2341
+ data: this.getTickValues().map(function(i) {
2342
+ return {
2343
+ text: i.toString(),
2344
+ x: _this.getScaleValue(i),
2345
+ y: _this.boundingRect.y + (_this.showTitle ? _this.titleTextHeight + _this.axisConfig.titlePadding * 2 : 0) + _this.axisConfig.labelPadding,
2346
+ fill: _this.axisThemeConfig.labelColor,
2347
+ fontSize: _this.axisConfig.labelFontSize,
2348
+ rotation: 0,
2349
+ verticalPos: "top",
2350
+ horizontalPos: "center"
2351
+ };
2352
+ })
2353
+ }), this.showTick) {
2354
+ var i1 = this.boundingRect.y;
2355
+ t.push({
2356
+ type: "path",
2357
+ groupTexts: [
2358
+ "top-axis",
2359
+ "ticks"
2360
+ ],
2361
+ data: this.getTickValues().map(function(s) {
2362
+ return {
2363
+ path: "M ".concat(_this.getScaleValue(s), ",").concat(i1 + _this.boundingRect.height - (_this.showAxisLine ? _this.axisConfig.axisLineWidth : 0), " L ").concat(_this.getScaleValue(s), ",").concat(i1 + _this.boundingRect.height - _this.axisConfig.tickLength - (_this.showAxisLine ? _this.axisConfig.axisLineWidth : 0)),
2364
+ strokeFill: _this.axisThemeConfig.tickColor,
2365
+ strokeWidth: _this.axisConfig.tickWidth
2366
+ };
2367
+ })
2368
+ });
2369
+ }
2370
+ return this.showTitle && t.push({
2371
+ type: "text",
2372
+ groupTexts: [
2373
+ "top-axis",
2374
+ "title"
2375
+ ],
2376
+ data: [
2377
+ {
2378
+ text: this.title,
2379
+ x: this.boundingRect.x + this.boundingRect.width / 2,
2380
+ y: this.boundingRect.y + this.axisConfig.titlePadding,
2381
+ fill: this.axisThemeConfig.titleColor,
2382
+ fontSize: this.axisConfig.titleFontSize,
2383
+ rotation: 0,
2384
+ verticalPos: "top",
2385
+ horizontalPos: "center"
2386
+ }
2387
+ ]
2388
+ }), t;
2389
+ }
2390
+ },
2391
+ {
2392
+ key: "getDrawableElements",
2393
+ value: function getDrawableElements() {
2394
+ if (this.axisPosition === "left") return this.getDrawableElementsForLeftAxis();
2395
+ if (this.axisPosition === "right") throw Error("Drawing of right axis is not implemented");
2396
+ return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
2397
+ }
2398
+ }
2399
+ ]);
2400
+ return Rt;
2401
+ }();
2402
+ var ii = /*#__PURE__*/ function(Rt) {
2403
+ _inherits(ii, Rt);
2404
+ var _super = _create_super(ii);
2405
+ function ii(t, i, s, n, o) {
2406
+ _class_call_check(this, ii);
2407
+ var _this;
2408
+ _this = _super.call(this, t, n, o, i), _this.categories = s, _this.scale = st().domain(_this.categories).range(_this.getRange());
2409
+ return _possible_constructor_return(_this);
2410
+ }
2411
+ _create_class(ii, [
2412
+ {
2413
+ key: "setRange",
2414
+ value: function setRange(t) {
2415
+ _get(_get_prototype_of(ii.prototype), "setRange", this).call(this, t);
2416
+ }
2417
+ },
2418
+ {
2419
+ key: "recalculateScale",
2420
+ value: function recalculateScale() {
2421
+ this.scale = st().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), L.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
2422
+ }
2423
+ },
2424
+ {
2425
+ key: "getTickValues",
2426
+ value: function getTickValues() {
2427
+ return this.categories;
2428
+ }
2429
+ },
2430
+ {
2431
+ key: "getScaleValue",
2432
+ value: function getScaleValue(t) {
2433
+ return this.scale(t) || this.getRange()[0];
2434
+ }
2435
+ }
2436
+ ]);
2437
+ return ii;
2438
+ }(Rt);
2439
+ var ei = /*#__PURE__*/ function(Rt) {
2440
+ _inherits(ei, Rt);
2441
+ var _super = _create_super(ei);
2442
+ function ei(t, i, s, n, o) {
2443
+ _class_call_check(this, ei);
2444
+ var _this;
2445
+ _this = _super.call(this, t, n, o, i), _this.domain = s, _this.scale = Hn().domain(_this.domain).range(_this.getRange());
2446
+ return _possible_constructor_return(_this);
2447
+ }
2448
+ _create_class(ei, [
2449
+ {
2450
+ key: "getTickValues",
2451
+ value: function getTickValues() {
2452
+ return this.scale.ticks();
2453
+ }
2454
+ },
2455
+ {
2456
+ key: "recalculateScale",
2457
+ value: function recalculateScale() {
2458
+ var t = _to_consumable_array(this.domain);
2459
+ this.axisPosition === "left" && t.reverse(), this.scale = Hn().domain(t).range(this.getRange());
2460
+ }
2461
+ },
2462
+ {
2463
+ key: "getScaleValue",
2464
+ value: function getScaleValue(t) {
2465
+ return this.scale(t);
2466
+ }
2467
+ }
2468
+ ]);
2469
+ return ei;
2470
+ }(Rt);
2471
+ function At(e, t, i, s) {
2472
+ var n = new kt(s);
2473
+ return _t(e) ? new ii(t, i, e.categories, e.title, n) : new ei(t, i, [
2474
+ e.min,
2475
+ e.max
2476
+ ], e.title, n);
2477
+ }
2478
+ var si = /*#__PURE__*/ function() {
2479
+ function si(t, i, s, n) {
2480
+ _class_call_check(this, si);
2481
+ this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = s, this.chartThemeConfig = n, this.boundingRect = {
2482
+ x: 0,
2483
+ y: 0,
2484
+ width: 0,
2485
+ height: 0
2486
+ }, this.showChartTitle = !1;
2487
+ }
2488
+ _create_class(si, [
2489
+ {
2490
+ key: "setBoundingBoxXY",
2491
+ value: function setBoundingBoxXY(t) {
2492
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
2493
+ }
2494
+ },
2495
+ {
2496
+ key: "calculateSpace",
2497
+ value: function calculateSpace(t) {
2498
+ var i = this.textDimensionCalculator.getMaxDimension([
2499
+ this.chartData.title
2500
+ ], this.chartConfig.titleFontSize), s = Math.max(i.width, t.width), n = i.height + 2 * this.chartConfig.titlePadding;
2501
+ return i.width <= s && i.height <= n && this.chartConfig.showTitle && this.chartData.title && (this.boundingRect.width = s, this.boundingRect.height = n, this.showChartTitle = !0), {
2502
+ width: this.boundingRect.width,
2503
+ height: this.boundingRect.height
2504
+ };
2505
+ }
2506
+ },
2507
+ {
2508
+ key: "getDrawableElements",
2509
+ value: function getDrawableElements() {
2510
+ var t = [];
2511
+ return this.showChartTitle && t.push({
2512
+ groupTexts: [
2513
+ "chart-title"
2514
+ ],
2515
+ type: "text",
2516
+ data: [
2517
+ {
2518
+ fontSize: this.chartConfig.titleFontSize,
2519
+ text: this.chartData.title,
2520
+ verticalPos: "middle",
2521
+ horizontalPos: "center",
2522
+ x: this.boundingRect.x + this.boundingRect.width / 2,
2523
+ y: this.boundingRect.y + this.boundingRect.height / 2,
2524
+ fill: this.chartThemeConfig.titleColor,
2525
+ rotation: 0
2526
+ }
2527
+ ]
2528
+ }), t;
2529
+ }
2530
+ }
2531
+ ]);
2532
+ return si;
2533
+ }();
2534
+ function ni(e, t, i, s) {
2535
+ var n = new kt(s);
2536
+ return new si(n, e, t, i);
2537
+ }
2538
+ var ai = /*#__PURE__*/ function() {
2539
+ function ai(t, i, s, n, o) {
2540
+ _class_call_check(this, ai);
2541
+ this.plotData = t, this.xAxis = i, this.yAxis = s, this.orientation = n, this.plotIndex = o;
2542
+ }
2543
+ _create_class(ai, [
2544
+ {
2545
+ key: "getDrawableElement",
2546
+ value: function getDrawableElement() {
2547
+ var _this = this;
2548
+ var t = this.plotData.data.map(function(s) {
2549
+ return [
2550
+ _this.xAxis.getScaleValue(s[0]),
2551
+ _this.yAxis.getScaleValue(s[1])
2552
+ ];
2553
+ });
2554
+ var i;
2555
+ return this.orientation === "horizontal" ? i = P().y(function(s) {
2556
+ return s[0];
2557
+ }).x(function(s) {
2558
+ return s[1];
2559
+ })(t) : i = P().x(function(s) {
2560
+ return s[0];
2561
+ }).y(function(s) {
2562
+ return s[1];
2563
+ })(t), i ? [
2564
+ {
2565
+ groupTexts: [
2566
+ "plot",
2567
+ "line-plot-".concat(this.plotIndex)
2568
+ ],
2569
+ type: "path",
2570
+ data: [
2571
+ {
2572
+ path: i,
2573
+ strokeFill: this.plotData.strokeFill,
2574
+ strokeWidth: this.plotData.strokeWidth
2575
+ }
2576
+ ]
2577
+ }
2578
+ ] : [];
2579
+ }
2580
+ }
2581
+ ]);
2582
+ return ai;
2583
+ }();
2584
+ var oi = /*#__PURE__*/ function() {
2585
+ function oi(t, i, s, n, o, c) {
2586
+ _class_call_check(this, oi);
2587
+ this.barData = t, this.boundingRect = i, this.xAxis = s, this.yAxis = n, this.orientation = o, this.plotIndex = c;
2588
+ }
2589
+ _create_class(oi, [
2590
+ {
2591
+ key: "getDrawableElement",
2592
+ value: function getDrawableElement() {
2593
+ var _this = this;
2594
+ var t = this.barData.data.map(function(o) {
2595
+ return [
2596
+ _this.xAxis.getScaleValue(o[0]),
2597
+ _this.yAxis.getScaleValue(o[1])
2598
+ ];
2599
+ }), i = 0.05, s = Math.min(this.xAxis.getAxisOuterPadding() * 2, this.xAxis.getTickDistance()) * (1 - i), n = s / 2;
2600
+ return this.orientation === "horizontal" ? [
2601
+ {
2602
+ groupTexts: [
2603
+ "plot",
2604
+ "bar-plot-".concat(this.plotIndex)
2605
+ ],
2606
+ type: "rect",
2607
+ data: t.map(function(o) {
2608
+ return {
2609
+ x: _this.boundingRect.x,
2610
+ y: o[0] - n,
2611
+ height: s,
2612
+ width: o[1] - _this.boundingRect.x,
2613
+ fill: _this.barData.fill,
2614
+ strokeWidth: 0,
2615
+ strokeFill: _this.barData.fill
2616
+ };
2617
+ })
2618
+ }
2619
+ ] : [
2620
+ {
2621
+ groupTexts: [
2622
+ "plot",
2623
+ "bar-plot-".concat(this.plotIndex)
2624
+ ],
2625
+ type: "rect",
2626
+ data: t.map(function(o) {
2627
+ return {
2628
+ x: o[0] - n,
2629
+ y: o[1],
2630
+ width: s,
2631
+ height: _this.boundingRect.y + _this.boundingRect.height - o[1],
2632
+ fill: _this.barData.fill,
2633
+ strokeWidth: 0,
2634
+ strokeFill: _this.barData.fill
2635
+ };
2636
+ })
2637
+ }
2638
+ ];
2639
+ }
2640
+ }
2641
+ ]);
2642
+ return oi;
2643
+ }();
2644
+ var ri = /*#__PURE__*/ function() {
2645
+ function ri(t, i, s) {
2646
+ _class_call_check(this, ri);
2647
+ this.chartConfig = t, this.chartData = i, this.chartThemeConfig = s, this.boundingRect = {
2648
+ x: 0,
2649
+ y: 0,
2650
+ width: 0,
2651
+ height: 0
2652
+ };
2653
+ }
2654
+ _create_class(ri, [
2655
+ {
2656
+ key: "setAxes",
2657
+ value: function setAxes(t, i) {
2658
+ this.xAxis = t, this.yAxis = i;
2659
+ }
2660
+ },
2661
+ {
2662
+ key: "setBoundingBoxXY",
2663
+ value: function setBoundingBoxXY(t) {
2664
+ this.boundingRect.x = t.x, this.boundingRect.y = t.y;
2665
+ }
2666
+ },
2667
+ {
2668
+ key: "calculateSpace",
2669
+ value: function calculateSpace(t) {
2670
+ return this.boundingRect.width = t.width, this.boundingRect.height = t.height, {
2671
+ width: this.boundingRect.width,
2672
+ height: this.boundingRect.height
2673
+ };
2674
+ }
2675
+ },
2676
+ {
2677
+ key: "getDrawableElements",
2678
+ value: function getDrawableElements() {
2679
+ if (!(this.xAxis && this.yAxis)) throw Error("Axes must be passed to render Plots");
2680
+ var t = [];
2681
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2682
+ try {
2683
+ for(var _iterator = this.chartData.plots.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2684
+ var _step_value = _sliced_to_array(_step.value, 2), i = _step_value[0], s = _step_value[1];
2685
+ switch(s.type){
2686
+ case "line":
2687
+ {
2688
+ var _t;
2689
+ var n = new ai(s, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, i);
2690
+ (_t = t).push.apply(_t, _to_consumable_array(n.getDrawableElement()));
2691
+ }
2692
+ break;
2693
+ case "bar":
2694
+ {
2695
+ var _t1;
2696
+ var n1 = new oi(s, this.boundingRect, this.xAxis, this.yAxis, this.chartConfig.chartOrientation, i);
2697
+ (_t1 = t).push.apply(_t1, _to_consumable_array(n1.getDrawableElement()));
2698
+ }
2699
+ break;
2700
+ }
2701
+ }
2702
+ } catch (err) {
2703
+ _didIteratorError = true;
2704
+ _iteratorError = err;
2705
+ } finally{
2706
+ try {
2707
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2708
+ _iterator.return();
2709
+ }
2710
+ } finally{
2711
+ if (_didIteratorError) {
2712
+ throw _iteratorError;
2713
+ }
2714
+ }
2715
+ }
2716
+ return t;
2717
+ }
2718
+ }
2719
+ ]);
2720
+ return ri;
2721
+ }();
2722
+ function hi(e, t, i) {
2723
+ return new ri(e, t, i);
2724
+ }
2725
+ var li = /*#__PURE__*/ function() {
2726
+ function li(t, i, s, n) {
2727
+ _class_call_check(this, li);
2728
+ this.chartConfig = t, this.chartData = i, this.componentStore = {
2729
+ title: ni(t, i, s, n),
2730
+ plot: hi(t, i, s),
2731
+ xAxis: At(i.xAxis, t.xAxis, {
2732
+ titleColor: s.xAxisTitleColor,
2733
+ labelColor: s.xAxisLabelColor,
2734
+ tickColor: s.xAxisTickColor,
2735
+ axisLineColor: s.xAxisLineColor
2736
+ }, n),
2737
+ yAxis: At(i.yAxis, t.yAxis, {
2738
+ titleColor: s.yAxisTitleColor,
2739
+ labelColor: s.yAxisLabelColor,
2740
+ tickColor: s.yAxisTickColor,
2741
+ axisLineColor: s.yAxisLineColor
2742
+ }, n)
2743
+ };
2744
+ }
2745
+ _create_class(li, [
2746
+ {
2747
+ key: "calculateVerticalSpace",
2748
+ value: function calculateVerticalSpace() {
2749
+ var t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), c = Math.floor(i * this.chartConfig.plotReservedSpacePercent / 100), f = this.componentStore.plot.calculateSpace({
2750
+ width: o,
2751
+ height: c
2752
+ });
2753
+ t -= f.width, i -= f.height, f = this.componentStore.title.calculateSpace({
2754
+ width: this.chartConfig.width,
2755
+ height: i
2756
+ }), n = f.height, i -= f.height, this.componentStore.xAxis.setAxisPosition("bottom"), f = this.componentStore.xAxis.calculateSpace({
2757
+ width: t,
2758
+ height: i
2759
+ }), i -= f.height, this.componentStore.yAxis.setAxisPosition("left"), f = this.componentStore.yAxis.calculateSpace({
2760
+ width: t,
2761
+ height: i
2762
+ }), s = f.width, t -= f.width, t > 0 && (o += t, t = 0), i > 0 && (c += i, i = 0), this.componentStore.plot.calculateSpace({
2763
+ width: o,
2764
+ height: c
2765
+ }), this.componentStore.plot.setBoundingBoxXY({
2766
+ x: s,
2767
+ y: n
2768
+ }), this.componentStore.xAxis.setRange([
2769
+ s,
2770
+ s + o
2771
+ ]), this.componentStore.xAxis.setBoundingBoxXY({
2772
+ x: s,
2773
+ y: n + c
2774
+ }), this.componentStore.yAxis.setRange([
2775
+ n,
2776
+ n + c
2777
+ ]), this.componentStore.yAxis.setBoundingBoxXY({
2778
+ x: 0,
2779
+ y: n
2780
+ }), this.chartData.plots.some(function(d) {
2781
+ return mt(d);
2782
+ }) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
2783
+ }
2784
+ },
2785
+ {
2786
+ key: "calculateHorizontalSpace",
2787
+ value: function calculateHorizontalSpace() {
2788
+ var t = this.chartConfig.width, i = this.chartConfig.height, s = 0, n = 0, o = 0, c = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), f = Math.floor(i * this.chartConfig.plotReservedSpacePercent / 100), d = this.componentStore.plot.calculateSpace({
2789
+ width: c,
2790
+ height: f
2791
+ });
2792
+ t -= d.width, i -= d.height, d = this.componentStore.title.calculateSpace({
2793
+ width: this.chartConfig.width,
2794
+ height: i
2795
+ }), s = d.height, i -= d.height, this.componentStore.xAxis.setAxisPosition("left"), d = this.componentStore.xAxis.calculateSpace({
2796
+ width: t,
2797
+ height: i
2798
+ }), t -= d.width, n = d.width, this.componentStore.yAxis.setAxisPosition("top"), d = this.componentStore.yAxis.calculateSpace({
2799
+ width: t,
2800
+ height: i
2801
+ }), i -= d.height, o = s + d.height, t > 0 && (c += t, t = 0), i > 0 && (f += i, i = 0), this.componentStore.plot.calculateSpace({
2802
+ width: c,
2803
+ height: f
2804
+ }), this.componentStore.plot.setBoundingBoxXY({
2805
+ x: n,
2806
+ y: o
2807
+ }), this.componentStore.yAxis.setRange([
2808
+ n,
2809
+ n + c
2810
+ ]), this.componentStore.yAxis.setBoundingBoxXY({
2811
+ x: n,
2812
+ y: s
2813
+ }), this.componentStore.xAxis.setRange([
2814
+ o,
2815
+ o + f
2816
+ ]), this.componentStore.xAxis.setBoundingBoxXY({
2817
+ x: 0,
2818
+ y: o
2819
+ }), this.chartData.plots.some(function(R) {
2820
+ return mt(R);
2821
+ }) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
2822
+ }
2823
+ },
2824
+ {
2825
+ key: "calculateSpace",
2826
+ value: function calculateSpace() {
2827
+ this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
2828
+ }
2829
+ },
2830
+ {
2831
+ key: "getDrawableElement",
2832
+ value: function getDrawableElement() {
2833
+ var _t;
2834
+ this.calculateSpace();
2835
+ var t = [];
2836
+ this.componentStore.plot.setAxes(this.componentStore.xAxis, this.componentStore.yAxis);
2837
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2838
+ try {
2839
+ for(var _iterator = Object.values(this.componentStore)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2840
+ var i = _step.value;
2841
+ (_t = t).push.apply(_t, _to_consumable_array(i.getDrawableElements()));
2842
+ }
2843
+ } catch (err) {
2844
+ _didIteratorError = true;
2845
+ _iteratorError = err;
2846
+ } finally{
2847
+ try {
2848
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2849
+ _iterator.return();
2850
+ }
2851
+ } finally{
2852
+ if (_didIteratorError) {
2853
+ throw _iteratorError;
2854
+ }
2855
+ }
2856
+ }
2857
+ return t;
2858
+ }
2859
+ }
2860
+ ]);
2861
+ return li;
2862
+ }();
2863
+ var ci = /*#__PURE__*/ function() {
2864
+ function ci() {
2865
+ _class_call_check(this, ci);
2866
+ }
2867
+ _create_class(ci, null, [
2868
+ {
2869
+ key: "build",
2870
+ value: function build(t, i, s, n) {
2871
+ return new li(t, i, s, n).getDrawableElement();
2872
+ }
2873
+ }
2874
+ ]);
2875
+ return ci;
2876
+ }();
2877
+ var X = 0, Tt, Y = Pt(), H = Dt(), y = Lt(), at = H.plotColorPalette.split(",").map(function(e) {
2878
+ return e.trim();
2879
+ }), G = !1, rt = !1;
2880
+ function Dt() {
2881
+ var e = up(), t = $t();
2882
+ return nl(e.xyChart, t.themeVariables.xyChart);
2883
+ }
2884
+ function Pt() {
2885
+ var e = $t();
2886
+ return nl(yp.xyChart, e.xyChart);
2887
+ }
2888
+ function Lt() {
2889
+ return {
2890
+ yAxis: {
2891
+ type: "linear",
2892
+ title: "",
2893
+ min: 1 / 0,
2894
+ max: -1 / 0
2895
+ },
2896
+ xAxis: {
2897
+ type: "band",
2898
+ title: "",
2899
+ categories: []
2900
+ },
2901
+ title: "",
2902
+ plots: []
2903
+ };
2904
+ }
2905
+ function ht(e) {
2906
+ var t = $t();
2907
+ return ai$1(e.trim(), t);
2908
+ }
2909
+ function ui(e) {
2910
+ Tt = e;
2911
+ }
2912
+ function gi(e) {
2913
+ e === "horizontal" ? Y.chartOrientation = "horizontal" : Y.chartOrientation = "vertical";
2914
+ }
2915
+ function xi(e) {
2916
+ y.xAxis.title = ht(e.text);
2917
+ }
2918
+ function Et(e, t) {
2919
+ y.xAxis = {
2920
+ type: "linear",
2921
+ title: y.xAxis.title,
2922
+ min: e,
2923
+ max: t
2924
+ }, G = !0;
2925
+ }
2926
+ function di(e) {
2927
+ y.xAxis = {
2928
+ type: "band",
2929
+ title: y.xAxis.title,
2930
+ categories: e.map(function(t) {
2931
+ return ht(t.text);
2932
+ })
2933
+ }, G = !0;
2934
+ }
2935
+ function fi(e) {
2936
+ y.yAxis.title = ht(e.text);
2937
+ }
2938
+ function pi(e, t) {
2939
+ y.yAxis = {
2940
+ type: "linear",
2941
+ title: y.yAxis.title,
2942
+ min: e,
2943
+ max: t
2944
+ }, rt = !0;
2945
+ }
2946
+ function mi(e) {
2947
+ var _Math, _Math1;
2948
+ var t = (_Math = Math).min.apply(_Math, _to_consumable_array(e)), i = (_Math1 = Math).max.apply(_Math1, _to_consumable_array(e)), s = N(y.yAxis) ? y.yAxis.min : 1 / 0, n = N(y.yAxis) ? y.yAxis.max : -1 / 0;
2949
+ y.yAxis = {
2950
+ type: "linear",
2951
+ title: y.yAxis.title,
2952
+ min: Math.min(s, t),
2953
+ max: Math.max(n, i)
2954
+ };
2955
+ }
2956
+ function vt(e) {
2957
+ var t = [];
2958
+ if (e.length === 0) return t;
2959
+ if (!G) {
2960
+ var i = N(y.xAxis) ? y.xAxis.min : 1 / 0, s = N(y.xAxis) ? y.xAxis.max : -1 / 0;
2961
+ Et(Math.min(i, 1), Math.max(s, e.length));
2962
+ }
2963
+ if (rt || mi(e), _t(y.xAxis) && (t = y.xAxis.categories.map(function(i, s) {
2964
+ return [
2965
+ i,
2966
+ e[s]
2967
+ ];
2968
+ })), N(y.xAxis)) {
2969
+ var i1 = y.xAxis.min, s1 = y.xAxis.max, n = (s1 - i1 + 1) / e.length, o = [];
2970
+ for(var c = i1; c <= s1; c += n)o.push("".concat(c));
2971
+ t = o.map(function(c, f) {
2972
+ return [
2973
+ c,
2974
+ e[f]
2975
+ ];
2976
+ });
2977
+ }
2978
+ return t;
2979
+ }
2980
+ function Mt(e) {
2981
+ return at[e === 0 ? 0 : e % at.length];
2982
+ }
2983
+ function yi(e, t) {
2984
+ var i = vt(t);
2985
+ y.plots.push({
2986
+ type: "line",
2987
+ strokeFill: Mt(X),
2988
+ strokeWidth: 2,
2989
+ data: i
2990
+ }), X++;
2991
+ }
2992
+ function bi(e, t) {
2993
+ var i = vt(t);
2994
+ y.plots.push({
2995
+ type: "bar",
2996
+ fill: Mt(X),
2997
+ data: i
2998
+ }), X++;
2999
+ }
3000
+ function Ai() {
3001
+ if (y.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data");
3002
+ return y.title = O_(), ci.build(Y, y, H, Tt);
3003
+ }
3004
+ function wi() {
3005
+ return H;
3006
+ }
3007
+ function Si() {
3008
+ return Y;
3009
+ }
3010
+ var Ci = function Ci() {
3011
+ B_(), X = 0, Y = Pt(), y = Lt(), H = Dt(), at = H.plotColorPalette.split(",").map(function(e) {
3012
+ return e.trim();
3013
+ }), G = !1, rt = !1;
3014
+ }, _i = {
3015
+ getDrawableElem: Ai,
3016
+ clear: Ci,
3017
+ setAccTitle: F_,
3018
+ getAccTitle: A_,
3019
+ setDiagramTitle: M_,
3020
+ getDiagramTitle: O_,
3021
+ getAccDescription: E_,
3022
+ setAccDescription: L_,
3023
+ setOrientation: gi,
3024
+ setXAxisTitle: xi,
3025
+ setXAxisRangeData: Et,
3026
+ setXAxisBand: di,
3027
+ setYAxisTitle: fi,
3028
+ setYAxisRangeData: pi,
3029
+ setLineData: yi,
3030
+ setBarData: bi,
3031
+ setTmpSVGG: ui,
3032
+ getChartThemeConfig: wi,
3033
+ getChartConfig: Si
3034
+ }, ki = function(e, t, i, s) {
3035
+ var f = function f(p) {
3036
+ return p === "top" ? "text-before-edge" : "middle";
3037
+ };
3038
+ var d = function d(p) {
3039
+ return p === "left" ? "start" : p === "right" ? "end" : "middle";
3040
+ };
3041
+ var R = function R(p) {
3042
+ return "translate(".concat(p.x, ", ").concat(p.y, ") rotate(").concat(p.rotation || 0, ")");
3043
+ };
3044
+ var P = function P(p) {
3045
+ var C = A, h = "";
3046
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3047
+ try {
3048
+ for(var _iterator = p.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3049
+ var _step_value = _sliced_to_array(_step.value, 1), L = _step_value[0];
3050
+ var z = A;
3051
+ L > 0 && S[h] && (z = S[h]), h += p[L], C = S[h], C || (C = S[h] = z.append("g").attr("class", p[L]));
3052
+ }
3053
+ } catch (err) {
3054
+ _didIteratorError = true;
3055
+ _iteratorError = err;
3056
+ } finally{
3057
+ try {
3058
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3059
+ _iterator.return();
3060
+ }
3061
+ } finally{
3062
+ if (_didIteratorError) {
3063
+ throw _iteratorError;
3064
+ }
3065
+ }
3066
+ }
3067
+ return C;
3068
+ };
3069
+ var n = s.db, o = n.getChartThemeConfig(), c = n.getChartConfig();
3070
+ L.debug("Rendering xychart chart\n" + e);
3071
+ var _ = z_(t), A = _.append("g").attr("class", "main"), m = A.append("rect").attr("width", c.width).attr("height", c.height).attr("class", "background");
3072
+ Ol(_, c.height, c.width, !0), _.attr("viewBox", "0 0 ".concat(c.width, " ").concat(c.height)), m.attr("fill", o.backgroundColor), n.setTmpSVGG(_.append("g").attr("class", "mermaid-tmp-group"));
3073
+ var T = n.getDrawableElem(), S = {};
3074
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3075
+ try {
3076
+ for(var _iterator = T[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3077
+ var p = _step.value;
3078
+ if (p.data.length === 0) continue;
3079
+ var C = P(p.groupTexts);
3080
+ switch(p.type){
3081
+ case "rect":
3082
+ C.selectAll("rect").data(p.data).enter().append("rect").attr("x", function(h) {
3083
+ return h.x;
3084
+ }).attr("y", function(h) {
3085
+ return h.y;
3086
+ }).attr("width", function(h) {
3087
+ return h.width;
3088
+ }).attr("height", function(h) {
3089
+ return h.height;
3090
+ }).attr("fill", function(h) {
3091
+ return h.fill;
3092
+ }).attr("stroke", function(h) {
3093
+ return h.strokeFill;
3094
+ }).attr("stroke-width", function(h) {
3095
+ return h.strokeWidth;
3096
+ });
3097
+ break;
3098
+ case "text":
3099
+ C.selectAll("text").data(p.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", function(h) {
3100
+ return h.fill;
3101
+ }).attr("font-size", function(h) {
3102
+ return h.fontSize;
3103
+ }).attr("dominant-baseline", function(h) {
3104
+ return f(h.verticalPos);
3105
+ }).attr("text-anchor", function(h) {
3106
+ return d(h.horizontalPos);
3107
+ }).attr("transform", function(h) {
3108
+ return R(h);
3109
+ }).text(function(h) {
3110
+ return h.text;
3111
+ });
3112
+ break;
3113
+ case "path":
3114
+ C.selectAll("path").data(p.data).enter().append("path").attr("d", function(h) {
3115
+ return h.path;
3116
+ }).attr("fill", function(h) {
3117
+ return h.fill ? h.fill : "none";
3118
+ }).attr("stroke", function(h) {
3119
+ return h.strokeFill;
3120
+ }).attr("stroke-width", function(h) {
3121
+ return h.strokeWidth;
3122
+ });
3123
+ break;
3124
+ }
3125
+ }
3126
+ } catch (err) {
3127
+ _didIteratorError = true;
3128
+ _iteratorError = err;
3129
+ } finally{
3130
+ try {
3131
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
3132
+ _iterator.return();
3133
+ }
3134
+ } finally{
3135
+ if (_didIteratorError) {
3136
+ throw _iteratorError;
3137
+ }
3138
+ }
3139
+ }
3140
+ }, Ri = {
3141
+ draw: ki
3142
+ }, Vi = {
3143
+ parser: ti,
3144
+ db: _i,
3145
+ renderer: Ri
3146
+ };
3147
+
3148
+ export { Vi as diagram };