@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21

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 (71) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
  2. package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
  3. package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
  4. package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
  5. package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
  6. package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
  7. package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
  8. package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
  9. package/dist/assets/worker-BldghCZh.js +3752 -0
  10. package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
  11. package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
  12. package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
  13. package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
  14. package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
  15. package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
  16. package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
  17. package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
  18. package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
  19. package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
  20. package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
  21. package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
  22. package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
  23. package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
  24. package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
  25. package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
  26. package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
  27. package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
  28. package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
  30. package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
  31. package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
  32. package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
  33. package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
  34. package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
  35. package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
  36. package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
  37. package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
  38. package/dist/index-pBmAzQJl.js +235 -0
  39. package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
  40. package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
  41. package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
  42. package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
  43. package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
  44. package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
  45. package/dist/main.js +1 -1
  46. package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
  47. package/dist/min-CYaGuxZ4.js +80 -0
  48. package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
  49. package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
  50. package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
  51. package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
  52. package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
  53. package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
  54. package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
  55. package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
  56. package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
  57. package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
  58. package/dist/style.css +1 -1
  59. package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
  60. package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
  61. package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
  62. package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
  63. package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
  64. package/package.json +37 -37
  65. package/dist/assets/worker-Dz6PPEGc.js +0 -4115
  66. package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
  67. package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
  68. package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
  69. package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
  70. package/dist/min-CQBZldos.js +0 -80
  71. package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
@@ -1,216 +1,216 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h, _i2, _j;
2
- import { _ as a, s as ii, g as ei, t as Pt, q as si, a as ni, b as ai, l as Lt, K as oi, e as ri, z as hi, G as ct, F as Et, H as li, M as ci, i as ui, a9 as gi } from "./mermaid-DCIbF0Rd.js";
3
- import { i as xi } from "./init-DxzjmxYy.js";
4
- import { o as di } from "./ordinal-CYN5qNoq.js";
2
+ import { _ as a, s as ei, g as si, t as Lt, q as ni, a as ai, b as oi, l as Et, K as ri, e as hi, z as li, G as xt, F as It, H as ci, M as ui, i as gi, ac as xi } from "./mermaid-CRRCnedu.js";
3
+ import { i as di } from "./init-DxzjmxYy.js";
4
+ import { o as fi } from "./ordinal-CYN5qNoq.js";
5
5
  import { r as pi } from "./range-DdOGybNB.js";
6
- import { l as Rt } from "./linear-D_Kojy5s.js";
7
- import { l as Tt } from "./timer-BYwnU4DF.js";
8
- function at() {
9
- var t = di().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, x, u, p = false, C = 0, T = 0, k = 0.5;
6
+ import { l as Tt } from "./linear-sn9_bxtB.js";
7
+ import { l as Dt } from "./timer-BYwnU4DF.js";
8
+ function ht() {
9
+ var t = fi().unknown(void 0), i = t.domain, e = t.range, s = 0, n = 1, d, g, m = false, S = 0, D = 0, v = 0.5;
10
10
  delete t.unknown;
11
- function A() {
12
- var m = i().length, D = n < s, S = D ? n : s, v = D ? s : n;
13
- x = (v - S) / Math.max(1, m - C + T * 2), p && (x = Math.floor(x)), S += (v - S - x * (m - C)) * k, u = x * (1 - C), p && (S = Math.round(S), u = Math.round(u));
14
- var f = pi(m).map(function(_) {
15
- return S + x * _;
11
+ function w() {
12
+ var y = i().length, E = n < s, T = E ? n : s, P = E ? s : n;
13
+ d = (P - T) / Math.max(1, y - S + D * 2), m && (d = Math.floor(d)), T += (P - T - d * (y - S)) * v, g = d * (1 - S), m && (T = Math.round(T), g = Math.round(g));
14
+ var I = pi(y).map(function(p) {
15
+ return T + d * p;
16
16
  });
17
- return e(D ? f.reverse() : f);
17
+ return e(E ? I.reverse() : I);
18
18
  }
19
- return t.domain = function(m) {
20
- return arguments.length ? (i(m), A()) : i();
21
- }, t.range = function(m) {
22
- return arguments.length ? ([s, n] = m, s = +s, n = +n, A()) : [s, n];
23
- }, t.rangeRound = function(m) {
24
- return [s, n] = m, s = +s, n = +n, p = true, A();
19
+ return t.domain = function(y) {
20
+ return arguments.length ? (i(y), w()) : i();
21
+ }, t.range = function(y) {
22
+ return arguments.length ? ([s, n] = y, s = +s, n = +n, w()) : [s, n];
23
+ }, t.rangeRound = function(y) {
24
+ return [s, n] = y, s = +s, n = +n, m = true, w();
25
25
  }, t.bandwidth = function() {
26
- return u;
26
+ return g;
27
27
  }, t.step = function() {
28
- return x;
29
- }, t.round = function(m) {
30
- return arguments.length ? (p = !!m, A()) : p;
31
- }, t.padding = function(m) {
32
- return arguments.length ? (C = Math.min(1, T = +m), A()) : C;
33
- }, t.paddingInner = function(m) {
34
- return arguments.length ? (C = Math.min(1, m), A()) : C;
35
- }, t.paddingOuter = function(m) {
36
- return arguments.length ? (T = +m, A()) : T;
37
- }, t.align = function(m) {
38
- return arguments.length ? (k = Math.max(0, Math.min(1, m)), A()) : k;
28
+ return d;
29
+ }, t.round = function(y) {
30
+ return arguments.length ? (m = !!y, w()) : m;
31
+ }, t.padding = function(y) {
32
+ return arguments.length ? (S = Math.min(1, D = +y), w()) : S;
33
+ }, t.paddingInner = function(y) {
34
+ return arguments.length ? (S = Math.min(1, y), w()) : S;
35
+ }, t.paddingOuter = function(y) {
36
+ return arguments.length ? (D = +y, w()) : D;
37
+ }, t.align = function(y) {
38
+ return arguments.length ? (v = Math.max(0, Math.min(1, y)), w()) : v;
39
39
  }, t.copy = function() {
40
- return at(i(), [s, n]).round(p).paddingInner(C).paddingOuter(T).align(k);
41
- }, xi.apply(A(), arguments);
40
+ return ht(i(), [s, n]).round(m).paddingInner(S).paddingOuter(D).align(v);
41
+ }, di.apply(w(), arguments);
42
42
  }
43
- var ot = function() {
44
- var t = /* @__PURE__ */ a(function(B, r, l, c) {
45
- for (l = l || {}, c = B.length; c--; l[B[c]] = r) ;
46
- return l;
47
- }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], x = [1, 6], u = [1, 7], p = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], C = [1, 25], T = [1, 26], k = [1, 28], A = [1, 29], m = [1, 30], D = [1, 31], S = [1, 32], v = [1, 33], f = [1, 34], _ = [1, 35], h = [1, 36], E = [1, 37], X = [1, 43], bt = [1, 42], At = [1, 47], $ = [1, 50], w = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], J = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], I = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], wt = [1, 64], tt = {
43
+ var lt = function() {
44
+ var t = /* @__PURE__ */ a(function(F, r, c, u) {
45
+ for (c = c || {}, u = F.length; u--; c[F[u]] = r) ;
46
+ return c;
47
+ }, "o"), i = [1, 10, 12, 14, 16, 18, 19, 21, 23], e = [2, 6], s = [1, 3], n = [1, 5], d = [1, 6], g = [1, 7], m = [1, 5, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], S = [1, 25], D = [1, 26], v = [1, 28], w = [1, 29], y = [1, 30], E = [1, 31], T = [1, 32], P = [1, 33], I = [1, 34], p = [1, 35], _ = [1, 36], l = [1, 37], W = [1, 43], z = [1, 42], U = [1, 47], X = [1, 50], h = [1, 10, 12, 14, 16, 18, 19, 21, 23, 34, 35, 36], L = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36], C = [1, 10, 12, 14, 16, 18, 19, 21, 23, 24, 26, 27, 28, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], k = [1, 64], $ = {
48
48
  trace: /* @__PURE__ */ a(function() {
49
49
  }, "trace"),
50
50
  yy: {},
51
51
  symbols_: { error: 2, start: 3, eol: 4, XYCHART: 5, chartConfig: 6, document: 7, CHART_ORIENTATION: 8, statement: 9, title: 10, text: 11, X_AXIS: 12, parseXAxis: 13, Y_AXIS: 14, parseYAxis: 15, LINE: 16, plotData: 17, BAR: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, SQUARE_BRACES_START: 24, commaSeparatedNumbers: 25, SQUARE_BRACES_END: 26, NUMBER_WITH_DECIMAL: 27, COMMA: 28, xAxisData: 29, bandData: 30, ARROW_DELIMITER: 31, commaSeparatedTexts: 32, yAxisData: 33, NEWLINE: 34, SEMI: 35, EOF: 36, alphaNum: 37, STR: 38, MD_STR: 39, alphaNumToken: 40, AMP: 41, NUM: 42, ALPHA: 43, PLUS: 44, EQUALS: 45, MULT: 46, DOT: 47, BRKT: 48, MINUS: 49, UNDERSCORE: 50, $accept: 0, $end: 1 },
52
52
  terminals_: { 2: "error", 5: "XYCHART", 8: "CHART_ORIENTATION", 10: "title", 12: "X_AXIS", 14: "Y_AXIS", 16: "LINE", 18: "BAR", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "SQUARE_BRACES_START", 26: "SQUARE_BRACES_END", 27: "NUMBER_WITH_DECIMAL", 28: "COMMA", 31: "ARROW_DELIMITER", 34: "NEWLINE", 35: "SEMI", 36: "EOF", 38: "STR", 39: "MD_STR", 41: "AMP", 42: "NUM", 43: "ALPHA", 44: "PLUS", 45: "EQUALS", 46: "MULT", 47: "DOT", 48: "BRKT", 49: "MINUS", 50: "UNDERSCORE" },
53
53
  productions_: [0, [3, 2], [3, 3], [3, 2], [3, 1], [6, 1], [7, 0], [7, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 3], [9, 2], [9, 3], [9, 2], [9, 2], [9, 1], [17, 3], [25, 3], [25, 1], [13, 1], [13, 2], [13, 1], [29, 1], [29, 3], [30, 3], [32, 3], [32, 1], [15, 1], [15, 2], [15, 1], [33, 3], [4, 1], [4, 1], [4, 1], [11, 1], [11, 1], [11, 1], [37, 1], [37, 2], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1], [40, 1]],
54
- performAction: /* @__PURE__ */ a(function(r, l, c, g, b, o, N) {
55
- var d = o.length - 1;
56
- switch (b) {
54
+ performAction: /* @__PURE__ */ a(function(r, c, u, x, A, o, j) {
55
+ var f = o.length - 1;
56
+ switch (A) {
57
57
  case 5:
58
- g.setOrientation(o[d]);
58
+ x.setOrientation(o[f]);
59
59
  break;
60
60
  case 9:
61
- g.setDiagramTitle(o[d].text.trim());
61
+ x.setDiagramTitle(o[f].text.trim());
62
62
  break;
63
63
  case 12:
64
- g.setLineData({ text: "", type: "text" }, o[d]);
64
+ x.setLineData({ text: "", type: "text" }, o[f]);
65
65
  break;
66
66
  case 13:
67
- g.setLineData(o[d - 1], o[d]);
67
+ x.setLineData(o[f - 1], o[f]);
68
68
  break;
69
69
  case 14:
70
- g.setBarData({ text: "", type: "text" }, o[d]);
70
+ x.setBarData({ text: "", type: "text" }, o[f]);
71
71
  break;
72
72
  case 15:
73
- g.setBarData(o[d - 1], o[d]);
73
+ x.setBarData(o[f - 1], o[f]);
74
74
  break;
75
75
  case 16:
76
- this.$ = o[d].trim(), g.setAccTitle(this.$);
76
+ this.$ = o[f].trim(), x.setAccTitle(this.$);
77
77
  break;
78
78
  case 17:
79
79
  case 18:
80
- this.$ = o[d].trim(), g.setAccDescription(this.$);
80
+ this.$ = o[f].trim(), x.setAccDescription(this.$);
81
81
  break;
82
82
  case 19:
83
- this.$ = o[d - 1];
83
+ this.$ = o[f - 1];
84
84
  break;
85
85
  case 20:
86
- this.$ = [Number(o[d - 2]), ...o[d]];
86
+ this.$ = [Number(o[f - 2]), ...o[f]];
87
87
  break;
88
88
  case 21:
89
- this.$ = [Number(o[d])];
89
+ this.$ = [Number(o[f])];
90
90
  break;
91
91
  case 22:
92
- g.setXAxisTitle(o[d]);
92
+ x.setXAxisTitle(o[f]);
93
93
  break;
94
94
  case 23:
95
- g.setXAxisTitle(o[d - 1]);
95
+ x.setXAxisTitle(o[f - 1]);
96
96
  break;
97
97
  case 24:
98
- g.setXAxisTitle({ type: "text", text: "" });
98
+ x.setXAxisTitle({ type: "text", text: "" });
99
99
  break;
100
100
  case 25:
101
- g.setXAxisBand(o[d]);
101
+ x.setXAxisBand(o[f]);
102
102
  break;
103
103
  case 26:
104
- g.setXAxisRangeData(Number(o[d - 2]), Number(o[d]));
104
+ x.setXAxisRangeData(Number(o[f - 2]), Number(o[f]));
105
105
  break;
106
106
  case 27:
107
- this.$ = o[d - 1];
107
+ this.$ = o[f - 1];
108
108
  break;
109
109
  case 28:
110
- this.$ = [o[d - 2], ...o[d]];
110
+ this.$ = [o[f - 2], ...o[f]];
111
111
  break;
112
112
  case 29:
113
- this.$ = [o[d]];
113
+ this.$ = [o[f]];
114
114
  break;
115
115
  case 30:
116
- g.setYAxisTitle(o[d]);
116
+ x.setYAxisTitle(o[f]);
117
117
  break;
118
118
  case 31:
119
- g.setYAxisTitle(o[d - 1]);
119
+ x.setYAxisTitle(o[f - 1]);
120
120
  break;
121
121
  case 32:
122
- g.setYAxisTitle({ type: "text", text: "" });
122
+ x.setYAxisTitle({ type: "text", text: "" });
123
123
  break;
124
124
  case 33:
125
- g.setYAxisRangeData(Number(o[d - 2]), Number(o[d]));
125
+ x.setYAxisRangeData(Number(o[f - 2]), Number(o[f]));
126
126
  break;
127
127
  case 37:
128
- this.$ = { text: o[d], type: "text" };
128
+ this.$ = { text: o[f], type: "text" };
129
129
  break;
130
130
  case 38:
131
- this.$ = { text: o[d], type: "text" };
131
+ this.$ = { text: o[f], type: "text" };
132
132
  break;
133
133
  case 39:
134
- this.$ = { text: o[d], type: "markdown" };
134
+ this.$ = { text: o[f], type: "markdown" };
135
135
  break;
136
136
  case 40:
137
- this.$ = o[d];
137
+ this.$ = o[f];
138
138
  break;
139
139
  case 41:
140
- this.$ = o[d - 1] + "" + o[d];
140
+ this.$ = o[f - 1] + "" + o[f];
141
141
  break;
142
142
  }
143
143
  }, "anonymous"),
144
- table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: x, 36: u }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: x, 36: u }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: x, 36: u }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(p, [2, 34]), t(p, [2, 35]), t(p, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: x, 36: u }), { 1: [2, 3] }, t(p, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: x, 36: u }), { 11: 23, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 39, 13: 38, 24: X, 27: bt, 29: 40, 30: 41, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 45, 15: 44, 27: At, 33: 46, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 49, 17: 48, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 11: 52, 17: 51, 24: $, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, { 20: [1, 53] }, { 22: [1, 54] }, t(w, [2, 18]), { 1: [2, 2] }, t(w, [2, 8]), t(w, [2, 9]), t(J, [2, 37], { 40: 55, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }), t(J, [2, 38]), t(J, [2, 39]), t(I, [2, 40]), t(I, [2, 42]), t(I, [2, 43]), t(I, [2, 44]), t(I, [2, 45]), t(I, [2, 46]), t(I, [2, 47]), t(I, [2, 48]), t(I, [2, 49]), t(I, [2, 50]), t(I, [2, 51]), t(w, [2, 10]), t(w, [2, 22], { 30: 41, 29: 56, 24: X, 27: bt }), t(w, [2, 24]), t(w, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 11]), t(w, [2, 30], { 33: 60, 27: At }), t(w, [2, 32]), { 31: [1, 61] }, t(w, [2, 12]), { 17: 62, 24: $ }, { 25: 63, 27: wt }, t(w, [2, 14]), { 17: 65, 24: $ }, t(w, [2, 16]), t(w, [2, 17]), t(I, [2, 41]), t(w, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(w, [2, 31]), { 27: [1, 69] }, t(w, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(w, [2, 15]), t(w, [2, 26]), t(w, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: C, 39: T, 40: 27, 41: k, 42: A, 43: m, 44: D, 45: S, 46: v, 47: f, 48: _, 49: h, 50: E }, t(w, [2, 33]), t(w, [2, 19]), { 25: 73, 27: wt }, { 26: [2, 28] }, { 26: [2, 20] }],
144
+ table: [t(i, e, { 3: 1, 4: 2, 7: 4, 5: s, 34: n, 35: d, 36: g }), { 1: [3] }, t(i, e, { 4: 2, 7: 4, 3: 8, 5: s, 34: n, 35: d, 36: g }), t(i, e, { 4: 2, 7: 4, 6: 9, 3: 10, 5: s, 8: [1, 11], 34: n, 35: d, 36: g }), { 1: [2, 4], 9: 12, 10: [1, 13], 12: [1, 14], 14: [1, 15], 16: [1, 16], 18: [1, 17], 19: [1, 18], 21: [1, 19], 23: [1, 20] }, t(m, [2, 34]), t(m, [2, 35]), t(m, [2, 36]), { 1: [2, 1] }, t(i, e, { 4: 2, 7: 4, 3: 21, 5: s, 34: n, 35: d, 36: g }), { 1: [2, 3] }, t(m, [2, 5]), t(i, [2, 7], { 4: 22, 34: n, 35: d, 36: g }), { 11: 23, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 39, 13: 38, 24: W, 27: z, 29: 40, 30: 41, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 45, 15: 44, 27: U, 33: 46, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 49, 17: 48, 24: X, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 11: 52, 17: 51, 24: X, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, { 20: [1, 53] }, { 22: [1, 54] }, t(h, [2, 18]), { 1: [2, 2] }, t(h, [2, 8]), t(h, [2, 9]), t(L, [2, 37], { 40: 55, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }), t(L, [2, 38]), t(L, [2, 39]), t(C, [2, 40]), t(C, [2, 42]), t(C, [2, 43]), t(C, [2, 44]), t(C, [2, 45]), t(C, [2, 46]), t(C, [2, 47]), t(C, [2, 48]), t(C, [2, 49]), t(C, [2, 50]), t(C, [2, 51]), t(h, [2, 10]), t(h, [2, 22], { 30: 41, 29: 56, 24: W, 27: z }), t(h, [2, 24]), t(h, [2, 25]), { 31: [1, 57] }, { 11: 59, 32: 58, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, t(h, [2, 11]), t(h, [2, 30], { 33: 60, 27: U }), t(h, [2, 32]), { 31: [1, 61] }, t(h, [2, 12]), { 17: 62, 24: X }, { 25: 63, 27: k }, t(h, [2, 14]), { 17: 65, 24: X }, t(h, [2, 16]), t(h, [2, 17]), t(C, [2, 41]), t(h, [2, 23]), { 27: [1, 66] }, { 26: [1, 67] }, { 26: [2, 29], 28: [1, 68] }, t(h, [2, 31]), { 27: [1, 69] }, t(h, [2, 13]), { 26: [1, 70] }, { 26: [2, 21], 28: [1, 71] }, t(h, [2, 15]), t(h, [2, 26]), t(h, [2, 27]), { 11: 59, 32: 72, 37: 24, 38: S, 39: D, 40: 27, 41: v, 42: w, 43: y, 44: E, 45: T, 46: P, 47: I, 48: p, 49: _, 50: l }, t(h, [2, 33]), t(h, [2, 19]), { 25: 73, 27: k }, { 26: [2, 28] }, { 26: [2, 20] }],
145
145
  defaultActions: { 8: [2, 1], 10: [2, 3], 21: [2, 2], 72: [2, 28], 73: [2, 20] },
146
- parseError: /* @__PURE__ */ a(function(r, l) {
147
- if (l.recoverable)
146
+ parseError: /* @__PURE__ */ a(function(r, c) {
147
+ if (c.recoverable)
148
148
  this.trace(r);
149
149
  else {
150
- var c = new Error(r);
151
- throw c.hash = l, c;
150
+ var u = new Error(r);
151
+ throw u.hash = c, u;
152
152
  }
153
153
  }, "parseError"),
154
154
  parse: /* @__PURE__ */ a(function(r) {
155
- var l = this, c = [0], g = [], b = [null], o = [], N = this.table, d = "", G = 0, Ct = 0, Kt = 2, St = 1, Zt = o.slice.call(arguments, 1), R = Object.create(this.lexer), W = { yy: {} };
156
- for (var it in this.yy)
157
- Object.prototype.hasOwnProperty.call(this.yy, it) && (W.yy[it] = this.yy[it]);
158
- R.setInput(r, W.yy), W.yy.lexer = R, W.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
159
- var et = R.yylloc;
160
- o.push(et);
161
- var Jt = R.options && R.options.ranges;
162
- typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
163
- function ti(L) {
164
- c.length = c.length - 2 * L, b.length = b.length - L, o.length = o.length - L;
155
+ var c = this, u = [0], x = [], A = [null], o = [], j = this.table, f = "", J = 0, St = 0, Zt = 2, _t = 1, Jt = o.slice.call(arguments, 1), R = Object.create(this.lexer), Y = { yy: {} };
156
+ for (var nt in this.yy)
157
+ Object.prototype.hasOwnProperty.call(this.yy, nt) && (Y.yy[nt] = this.yy[nt]);
158
+ R.setInput(r, Y.yy), Y.yy.lexer = R, Y.yy.parser = this, typeof R.yylloc > "u" && (R.yylloc = {});
159
+ var at = R.yylloc;
160
+ o.push(at);
161
+ var ti = R.options && R.options.ranges;
162
+ typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
163
+ function ii(V) {
164
+ u.length = u.length - 2 * V, A.length = A.length - V, o.length = o.length - V;
165
165
  }
166
- a(ti, "popStack");
167
- function _t() {
168
- var L;
169
- return L = g.pop() || R.lex() || St, typeof L != "number" && (L instanceof Array && (g = L, L = g.pop()), L = l.symbols_[L] || L), L;
166
+ a(ii, "popStack");
167
+ function kt() {
168
+ var V;
169
+ return V = x.pop() || R.lex() || _t, typeof V != "number" && (V instanceof Array && (x = V, V = x.pop()), V = c.symbols_[V] || V), V;
170
170
  }
171
- a(_t, "lex");
172
- for (var P, O, M, st, z = {}, j, V, kt, Q; ; ) {
173
- if (O = c[c.length - 1], this.defaultActions[O] ? M = this.defaultActions[O] : ((P === null || typeof P > "u") && (P = _t()), M = N[O] && N[O][P]), typeof M > "u" || !M.length || !M[0]) {
174
- var nt = "";
175
- Q = [];
176
- for (j in N[O])
177
- this.terminals_[j] && j > Kt && Q.push("'" + this.terminals_[j] + "'");
178
- R.showPosition ? nt = "Parse error on line " + (G + 1) + `:
171
+ a(kt, "lex");
172
+ for (var M, H, B, ot, q = {}, tt, O, Rt, it; ; ) {
173
+ if (H = u[u.length - 1], this.defaultActions[H] ? B = this.defaultActions[H] : ((M === null || typeof M > "u") && (M = kt()), B = j[H] && j[H][M]), typeof B > "u" || !B.length || !B[0]) {
174
+ var rt = "";
175
+ it = [];
176
+ for (tt in j[H])
177
+ this.terminals_[tt] && tt > Zt && it.push("'" + this.terminals_[tt] + "'");
178
+ R.showPosition ? rt = "Parse error on line " + (J + 1) + `:
179
179
  ` + R.showPosition() + `
180
- Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt = "Parse error on line " + (G + 1) + ": Unexpected " + (P == St ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(nt, {
180
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : rt = "Parse error on line " + (J + 1) + ": Unexpected " + (M == _t ? "end of input" : "'" + (this.terminals_[M] || M) + "'"), this.parseError(rt, {
181
181
  text: R.match,
182
- token: this.terminals_[P] || P,
182
+ token: this.terminals_[M] || M,
183
183
  line: R.yylineno,
184
- loc: et,
185
- expected: Q
184
+ loc: at,
185
+ expected: it
186
186
  });
187
187
  }
188
- if (M[0] instanceof Array && M.length > 1)
189
- throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + P);
190
- switch (M[0]) {
188
+ if (B[0] instanceof Array && B.length > 1)
189
+ throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + M);
190
+ switch (B[0]) {
191
191
  case 1:
192
- c.push(P), b.push(R.yytext), o.push(R.yylloc), c.push(M[1]), P = null, Ct = R.yyleng, d = R.yytext, G = R.yylineno, et = R.yylloc;
192
+ u.push(M), A.push(R.yytext), o.push(R.yylloc), u.push(B[1]), M = null, St = R.yyleng, f = R.yytext, J = R.yylineno, at = R.yylloc;
193
193
  break;
194
194
  case 2:
195
- if (V = this.productions_[M[1]][1], z.$ = b[b.length - V], z._$ = {
196
- first_line: o[o.length - (V || 1)].first_line,
195
+ if (O = this.productions_[B[1]][1], q.$ = A[A.length - O], q._$ = {
196
+ first_line: o[o.length - (O || 1)].first_line,
197
197
  last_line: o[o.length - 1].last_line,
198
- first_column: o[o.length - (V || 1)].first_column,
198
+ first_column: o[o.length - (O || 1)].first_column,
199
199
  last_column: o[o.length - 1].last_column
200
- }, Jt && (z._$.range = [
201
- o[o.length - (V || 1)].range[0],
200
+ }, ti && (q._$.range = [
201
+ o[o.length - (O || 1)].range[0],
202
202
  o[o.length - 1].range[1]
203
- ]), st = this.performAction.apply(z, [
204
- d,
205
- Ct,
206
- G,
207
- W.yy,
208
- M[1],
209
- b,
203
+ ]), ot = this.performAction.apply(q, [
204
+ f,
205
+ St,
206
+ J,
207
+ Y.yy,
208
+ B[1],
209
+ A,
210
210
  o
211
- ].concat(Zt)), typeof st < "u")
212
- return st;
213
- V && (c = c.slice(0, -1 * V * 2), b = b.slice(0, -1 * V), o = o.slice(0, -1 * V)), c.push(this.productions_[M[1]][0]), b.push(z.$), o.push(z._$), kt = N[c[c.length - 2]][c[c.length - 1]], c.push(kt);
211
+ ].concat(Jt)), typeof ot < "u")
212
+ return ot;
213
+ O && (u = u.slice(0, -1 * O * 2), A = A.slice(0, -1 * O), o = o.slice(0, -1 * O)), u.push(this.productions_[B[1]][0]), A.push(q.$), o.push(q._$), Rt = j[u[u.length - 2]][u[u.length - 1]], u.push(Rt);
214
214
  break;
215
215
  case 3:
216
216
  return true;
@@ -218,18 +218,18 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
218
218
  }
219
219
  return true;
220
220
  }, "parse")
221
- }, Qt = /* @__PURE__ */ function() {
222
- var B = {
221
+ }, Ct = /* @__PURE__ */ function() {
222
+ var F = {
223
223
  EOF: 1,
224
- parseError: /* @__PURE__ */ a(function(l, c) {
224
+ parseError: /* @__PURE__ */ a(function(c, u) {
225
225
  if (this.yy.parser)
226
- this.yy.parser.parseError(l, c);
226
+ this.yy.parser.parseError(c, u);
227
227
  else
228
- throw new Error(l);
228
+ throw new Error(c);
229
229
  }, "parseError"),
230
230
  // resets the lexer, sets new input
231
- setInput: /* @__PURE__ */ a(function(r, l) {
232
- return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
231
+ setInput: /* @__PURE__ */ a(function(r, c) {
232
+ return this.yy = c || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
233
233
  first_line: 1,
234
234
  first_column: 0,
235
235
  last_line: 1,
@@ -240,22 +240,22 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
240
240
  input: /* @__PURE__ */ a(function() {
241
241
  var r = this._input[0];
242
242
  this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
243
- var l = r.match(/(?:\r\n?|\n).*/g);
244
- 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;
243
+ var c = r.match(/(?:\r\n?|\n).*/g);
244
+ return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
245
245
  }, "input"),
246
246
  // unshifts one char (or a string) into the input
247
247
  unput: /* @__PURE__ */ a(function(r) {
248
- var l = r.length, c = r.split(/(?:\r\n?|\n)/g);
249
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
250
- var g = this.match.split(/(?:\r\n?|\n)/g);
251
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
252
- var b = this.yylloc.range;
248
+ var c = r.length, u = r.split(/(?:\r\n?|\n)/g);
249
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
250
+ var x = this.match.split(/(?:\r\n?|\n)/g);
251
+ 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);
252
+ var A = this.yylloc.range;
253
253
  return this.yylloc = {
254
254
  first_line: this.yylloc.first_line,
255
255
  last_line: this.yylineno + 1,
256
256
  first_column: this.yylloc.first_column,
257
- last_column: c ? (c.length === g.length ? this.yylloc.first_column : 0) + g[g.length - c.length].length - c[0].length : this.yylloc.first_column - l
258
- }, this.options.ranges && (this.yylloc.range = [b[0], b[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
257
+ last_column: u ? (u.length === x.length ? this.yylloc.first_column : 0) + x[x.length - u.length].length - u[0].length : this.yylloc.first_column - c
258
+ }, this.options.ranges && (this.yylloc.range = [A[0], A[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
259
259
  }, "unput"),
260
260
  // When called from action, caches matched text and appends it on next action
261
261
  more: /* @__PURE__ */ a(function() {
@@ -290,14 +290,14 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
290
290
  }, "upcomingInput"),
291
291
  // displays the character position where the lexing error occurred, i.e. for error messages
292
292
  showPosition: /* @__PURE__ */ a(function() {
293
- var r = this.pastInput(), l = new Array(r.length + 1).join("-");
293
+ var r = this.pastInput(), c = new Array(r.length + 1).join("-");
294
294
  return r + this.upcomingInput() + `
295
- ` + l + "^";
295
+ ` + c + "^";
296
296
  }, "showPosition"),
297
297
  // test the lexed token: return FALSE when not a match, otherwise return token
298
- test_match: /* @__PURE__ */ a(function(r, l) {
299
- var c, g, b;
300
- if (this.options.backtrack_lexer && (b = {
298
+ test_match: /* @__PURE__ */ a(function(r, c) {
299
+ var u, x, A;
300
+ if (this.options.backtrack_lexer && (A = {
301
301
  yylineno: this.yylineno,
302
302
  yylloc: {
303
303
  first_line: this.yylloc.first_line,
@@ -316,16 +316,16 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
316
316
  yy: this.yy,
317
317
  conditionStack: this.conditionStack.slice(0),
318
318
  done: this.done
319
- }, 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 = {
319
+ }, this.options.ranges && (A.yylloc.range = this.yylloc.range.slice(0))), x = r[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
320
320
  first_line: this.yylloc.last_line,
321
321
  last_line: this.yylineno + 1,
322
322
  first_column: this.yylloc.last_column,
323
- last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
324
- }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), c)
325
- return c;
323
+ last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
324
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(r[0].length), this.matched += r[0], u = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), u)
325
+ return u;
326
326
  if (this._backtrack) {
327
- for (var o in b)
328
- this[o] = b[o];
327
+ for (var o in A)
328
+ this[o] = A[o];
329
329
  return false;
330
330
  }
331
331
  return false;
@@ -335,22 +335,22 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
335
335
  if (this.done)
336
336
  return this.EOF;
337
337
  this._input || (this.done = true);
338
- var r, l, c, g;
338
+ var r, c, u, x;
339
339
  this._more || (this.yytext = "", this.match = "");
340
- for (var b = this._currentRules(), o = 0; o < b.length; o++)
341
- if (c = this._input.match(this.rules[b[o]]), c && (!l || c[0].length > l[0].length)) {
342
- if (l = c, g = o, this.options.backtrack_lexer) {
343
- if (r = this.test_match(c, b[o]), r !== false)
340
+ for (var A = this._currentRules(), o = 0; o < A.length; o++)
341
+ if (u = this._input.match(this.rules[A[o]]), u && (!c || u[0].length > c[0].length)) {
342
+ if (c = u, x = o, this.options.backtrack_lexer) {
343
+ if (r = this.test_match(u, A[o]), r !== false)
344
344
  return r;
345
345
  if (this._backtrack) {
346
- l = false;
346
+ c = false;
347
347
  continue;
348
348
  } else
349
349
  return false;
350
350
  } else if (!this.options.flex)
351
351
  break;
352
352
  }
353
- return l ? (r = this.test_match(l, b[g]), r !== false ? r : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
353
+ return c ? (r = this.test_match(c, A[x]), r !== false ? r : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
354
354
  ` + this.showPosition(), {
355
355
  text: "",
356
356
  token: null,
@@ -359,37 +359,37 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
359
359
  }, "next"),
360
360
  // return next match that has a token
361
361
  lex: /* @__PURE__ */ a(function() {
362
- var l = this.next();
363
- return l || this.lex();
362
+ var c = this.next();
363
+ return c || this.lex();
364
364
  }, "lex"),
365
365
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
366
- begin: /* @__PURE__ */ a(function(l) {
367
- this.conditionStack.push(l);
366
+ begin: /* @__PURE__ */ a(function(c) {
367
+ this.conditionStack.push(c);
368
368
  }, "begin"),
369
369
  // pop the previously active lexer condition state off the condition stack
370
370
  popState: /* @__PURE__ */ a(function() {
371
- var l = this.conditionStack.length - 1;
372
- return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
371
+ var c = this.conditionStack.length - 1;
372
+ return c > 0 ? this.conditionStack.pop() : this.conditionStack[0];
373
373
  }, "popState"),
374
374
  // produce the lexer rule set which is active for the currently active lexer condition state
375
375
  _currentRules: /* @__PURE__ */ a(function() {
376
376
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
377
377
  }, "_currentRules"),
378
378
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
379
- topState: /* @__PURE__ */ a(function(l) {
380
- return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
379
+ topState: /* @__PURE__ */ a(function(c) {
380
+ return c = this.conditionStack.length - 1 - Math.abs(c || 0), c >= 0 ? this.conditionStack[c] : "INITIAL";
381
381
  }, "topState"),
382
382
  // alias for begin(condition)
383
- pushState: /* @__PURE__ */ a(function(l) {
384
- this.begin(l);
383
+ pushState: /* @__PURE__ */ a(function(c) {
384
+ this.begin(c);
385
385
  }, "pushState"),
386
386
  // return the number of states currently on the stack
387
387
  stateStackSize: /* @__PURE__ */ a(function() {
388
388
  return this.conditionStack.length;
389
389
  }, "stateStackSize"),
390
390
  options: { "case-insensitive": true },
391
- performAction: /* @__PURE__ */ a(function(l, c, g, b) {
392
- switch (g) {
391
+ performAction: /* @__PURE__ */ a(function(c, u, x, A) {
392
+ switch (x) {
393
393
  case 0:
394
394
  break;
395
395
  case 1:
@@ -492,36 +492,36 @@ Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : nt =
492
492
  rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:(\r?\n))/i, /^(?:(\r?\n))/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:\{)/i, /^(?:[^\}]*)/i, /^(?:xychart-beta\b)/i, /^(?:(?:vertical|horizontal))/i, /^(?:x-axis\b)/i, /^(?:y-axis\b)/i, /^(?:\[)/i, /^(?:-->)/i, /^(?:line\b)/i, /^(?:bar\b)/i, /^(?:\[)/i, /^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i, /^(?:\])/i, /^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s+)/i, /^(?:;)/i, /^(?:$)/i],
493
493
  conditions: { data_inner: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 23, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, data: { rules: [0, 1, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 22, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_band_data: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 24, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, axis_data: { rules: [0, 1, 2, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true }, acc_descr_multiline: { rules: [12, 13], inclusive: false }, acc_descr: { rules: [10], inclusive: false }, acc_title: { rules: [8], inclusive: false }, title: { rules: [], inclusive: false }, md_string: { rules: [], inclusive: false }, string: { rules: [27, 28], inclusive: false }, INITIAL: { rules: [0, 1, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 20, 21, 25, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], inclusive: true } }
494
494
  };
495
- return B;
495
+ return F;
496
496
  }();
497
- tt.lexer = Qt;
498
- function q() {
497
+ $.lexer = Ct;
498
+ function N() {
499
499
  this.yy = {};
500
500
  }
501
- return a(q, "Parser"), q.prototype = tt, tt.Parser = q, new q();
501
+ return a(N, "Parser"), N.prototype = $, $.Parser = N, new N();
502
502
  }();
503
- ot.parser = ot;
504
- var fi = ot;
505
- function rt(t) {
503
+ lt.parser = lt;
504
+ var mi = lt;
505
+ function ct(t) {
506
506
  return t.type === "bar";
507
507
  }
508
- a(rt, "isBarPlot");
509
- function ut(t) {
508
+ a(ct, "isBarPlot");
509
+ function dt(t) {
510
510
  return t.type === "band";
511
511
  }
512
- a(ut, "isBandAxisData");
513
- function F(t) {
512
+ a(dt, "isBandAxisData");
513
+ function G(t) {
514
514
  return t.type === "linear";
515
515
  }
516
- a(F, "isLinearAxisData");
517
- var It = (_a = class {
516
+ a(G, "isLinearAxisData");
517
+ var Mt = (_a = class {
518
518
  constructor(t) {
519
519
  this.parentGroup = t;
520
520
  }
521
521
  getMaxDimension(t, i) {
522
522
  if (!this.parentGroup)
523
523
  return {
524
- width: t.reduce((n, x) => Math.max(x.length, n), 0) * i,
524
+ width: t.reduce((n, d) => Math.max(d.length, n), 0) * i,
525
525
  height: i
526
526
  };
527
527
  const e = {
@@ -529,12 +529,12 @@ var It = (_a = class {
529
529
  height: 0
530
530
  }, s = this.parentGroup.append("g").attr("visibility", "hidden").attr("font-size", i);
531
531
  for (const n of t) {
532
- const x = gi(s, 1, n), u = x ? x.width : n.length * i, p = x ? x.height : i;
533
- e.width = Math.max(e.width, u), e.height = Math.max(e.height, p);
532
+ const d = xi(s, 1, n), g = d ? d.width : n.length * i, m = d ? d.height : i;
533
+ e.width = Math.max(e.width, g), e.height = Math.max(e.height, m);
534
534
  }
535
535
  return s.remove(), e;
536
536
  }
537
- }, a(_a, "TextDimensionCalculatorWithFont"), _a), Dt = 0.7, vt = 0.2, Mt = (_b = class {
537
+ }, a(_a, "TextDimensionCalculatorWithFont"), _a), vt = 0.7, Pt = 0.2, Vt = (_b = class {
538
538
  constructor(t, i, e, s) {
539
539
  this.axisConfig = t, this.title = i, this.textDimensionCalculator = e, this.axisThemeConfig = s, this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left", this.showTitle = false, this.showLabel = false, this.showTick = false, this.showAxisLine = false, this.outerPadding = 0, this.titleTextHeight = 0, this.labelTextHeight = 0, this.range = [0, 10], this.boundingRect = { x: 0, y: 0, width: 0, height: 0 }, this.axisPosition = "left";
540
540
  }
@@ -561,12 +561,12 @@ var It = (_a = class {
561
561
  );
562
562
  }
563
563
  recalculateOuterPaddingToDrawBar() {
564
- Dt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(Dt * this.getTickDistance() / 2)), this.recalculateScale();
564
+ vt * this.getTickDistance() > this.outerPadding * 2 && (this.outerPadding = Math.floor(vt * this.getTickDistance() / 2)), this.recalculateScale();
565
565
  }
566
566
  calculateSpaceIfDrawnHorizontally(t) {
567
567
  let i = t.height;
568
568
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
569
- const e = this.getLabelDimension(), s = vt * t.width;
569
+ const e = this.getLabelDimension(), s = Pt * t.width;
570
570
  this.outerPadding = Math.min(e.width / 2, s);
571
571
  const n = e.height + this.axisConfig.labelPadding * 2;
572
572
  this.labelTextHeight = e.height, n <= i && (i -= n, this.showLabel = true);
@@ -583,7 +583,7 @@ var It = (_a = class {
583
583
  calculateSpaceIfDrawnVertical(t) {
584
584
  let i = t.width;
585
585
  if (this.axisConfig.showAxisLine && i > this.axisConfig.axisLineWidth && (i -= this.axisConfig.axisLineWidth, this.showAxisLine = true), this.axisConfig.showLabel) {
586
- const e = this.getLabelDimension(), s = vt * t.height;
586
+ const e = this.getLabelDimension(), s = Pt * t.height;
587
587
  this.outerPadding = Math.min(e.height / 2, s);
588
588
  const n = e.width + this.axisConfig.labelPadding * 2;
589
589
  n <= i && (i -= n, this.showLabel = true);
@@ -787,15 +787,15 @@ var It = (_a = class {
787
787
  throw Error("Drawing of right axis is not implemented");
788
788
  return this.axisPosition === "bottom" ? this.getDrawableElementsForBottomAxis() : this.axisPosition === "top" ? this.getDrawableElementsForTopAxis() : [];
789
789
  }
790
- }, a(_b, "BaseAxis"), _b), mi = (_c = class extends Mt {
790
+ }, a(_b, "BaseAxis"), _b), yi = (_c = class extends Vt {
791
791
  constructor(t, i, e, s, n) {
792
- super(t, s, n, i), this.categories = e, this.scale = at().domain(this.categories).range(this.getRange());
792
+ super(t, s, n, i), this.categories = e, this.scale = ht().domain(this.categories).range(this.getRange());
793
793
  }
794
794
  setRange(t) {
795
795
  super.setRange(t);
796
796
  }
797
797
  recalculateScale() {
798
- this.scale = at().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Lt.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
798
+ this.scale = ht().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5), Et.trace("BandAxis axis final categories, range: ", this.categories, this.getRange());
799
799
  }
800
800
  getTickValues() {
801
801
  return this.categories;
@@ -803,30 +803,30 @@ var It = (_a = class {
803
803
  getScaleValue(t) {
804
804
  return this.scale(t) ?? this.getRange()[0];
805
805
  }
806
- }, a(_c, "BandAxis"), _c), yi = (_d = class extends Mt {
806
+ }, a(_c, "BandAxis"), _c), bi = (_d = class extends Vt {
807
807
  constructor(t, i, e, s, n) {
808
- super(t, s, n, i), this.domain = e, this.scale = Rt().domain(this.domain).range(this.getRange());
808
+ super(t, s, n, i), this.domain = e, this.scale = Tt().domain(this.domain).range(this.getRange());
809
809
  }
810
810
  getTickValues() {
811
811
  return this.scale.ticks();
812
812
  }
813
813
  recalculateScale() {
814
814
  const t = [...this.domain];
815
- this.axisPosition === "left" && t.reverse(), this.scale = Rt().domain(t).range(this.getRange());
815
+ this.axisPosition === "left" && t.reverse(), this.scale = Tt().domain(t).range(this.getRange());
816
816
  }
817
817
  getScaleValue(t) {
818
818
  return this.scale(t);
819
819
  }
820
820
  }, a(_d, "LinearAxis"), _d);
821
- function ht(t, i, e, s) {
822
- const n = new It(s);
823
- return ut(t) ? new mi(
821
+ function ut(t, i, e, s) {
822
+ const n = new Mt(s);
823
+ return dt(t) ? new yi(
824
824
  i,
825
825
  e,
826
826
  t.categories,
827
827
  t.title,
828
828
  n
829
- ) : new yi(
829
+ ) : new bi(
830
830
  i,
831
831
  e,
832
832
  [t.min, t.max],
@@ -834,8 +834,8 @@ function ht(t, i, e, s) {
834
834
  n
835
835
  );
836
836
  }
837
- a(ht, "getAxis");
838
- var bi = (_e = class {
837
+ a(ut, "getAxis");
838
+ var Ai = (_e = class {
839
839
  constructor(t, i, e, s) {
840
840
  this.textDimensionCalculator = t, this.chartConfig = i, this.chartData = e, this.chartThemeConfig = s, this.boundingRect = {
841
841
  x: 0,
@@ -877,12 +877,12 @@ var bi = (_e = class {
877
877
  }), t;
878
878
  }
879
879
  }, a(_e, "ChartTitle"), _e);
880
- function Vt(t, i, e, s) {
881
- const n = new It(s);
882
- return new bi(n, t, i, e);
880
+ function Bt(t, i, e, s) {
881
+ const n = new Mt(s);
882
+ return new Ai(n, t, i, e);
883
883
  }
884
- a(Vt, "getChartTitleComponent");
885
- var Ai = (_f = class {
884
+ a(Bt, "getChartTitleComponent");
885
+ var wi = (_f = class {
886
886
  constructor(t, i, e, s, n) {
887
887
  this.plotData = t, this.xAxis = i, this.yAxis = e, this.orientation = s, this.plotIndex = n;
888
888
  }
@@ -892,7 +892,7 @@ var Ai = (_f = class {
892
892
  this.yAxis.getScaleValue(e[1])
893
893
  ]);
894
894
  let i;
895
- return this.orientation === "horizontal" ? i = Tt().y((e) => e[0]).x((e) => e[1])(t) : i = Tt().x((e) => e[0]).y((e) => e[1])(t), i ? [
895
+ return this.orientation === "horizontal" ? i = Dt().y((e) => e[0]).x((e) => e[1])(t) : i = Dt().x((e) => e[0]).y((e) => e[1])(t), i ? [
896
896
  {
897
897
  groupTexts: ["plot", `line-plot-${this.plotIndex}`],
898
898
  type: "path",
@@ -906,9 +906,9 @@ var Ai = (_f = class {
906
906
  }
907
907
  ] : [];
908
908
  }
909
- }, a(_f, "LinePlot"), _f), wi = (_g = class {
910
- constructor(t, i, e, s, n, x) {
911
- this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = x;
909
+ }, a(_f, "LinePlot"), _f), Ci = (_g = class {
910
+ constructor(t, i, e, s, n, d) {
911
+ this.barData = t, this.boundingRect = i, this.xAxis = e, this.yAxis = s, this.orientation = n, this.plotIndex = d;
912
912
  }
913
913
  getDrawableElement() {
914
914
  const t = this.barData.data.map((n) => [
@@ -945,7 +945,7 @@ var Ai = (_f = class {
945
945
  }
946
946
  ];
947
947
  }
948
- }, a(_g, "BarPlot"), _g), Ci = (_h = class {
948
+ }, a(_g, "BarPlot"), _g), Si = (_h = class {
949
949
  constructor(t, i, e) {
950
950
  this.chartConfig = t, this.chartData = i, this.chartThemeConfig = e, this.boundingRect = {
951
951
  x: 0,
@@ -974,7 +974,7 @@ var Ai = (_f = class {
974
974
  switch (e.type) {
975
975
  case "line":
976
976
  {
977
- const s = new Ai(
977
+ const s = new wi(
978
978
  e,
979
979
  this.xAxis,
980
980
  this.yAxis,
@@ -986,7 +986,7 @@ var Ai = (_f = class {
986
986
  break;
987
987
  case "bar":
988
988
  {
989
- const s = new wi(
989
+ const s = new Ci(
990
990
  e,
991
991
  this.boundingRect,
992
992
  this.xAxis,
@@ -1001,16 +1001,16 @@ var Ai = (_f = class {
1001
1001
  return t;
1002
1002
  }
1003
1003
  }, a(_h, "BasePlot"), _h);
1004
- function Bt(t, i, e) {
1005
- return new Ci(t, i, e);
1004
+ function Wt(t, i, e) {
1005
+ return new Si(t, i, e);
1006
1006
  }
1007
- a(Bt, "getPlotComponent");
1008
- var Si = (_i2 = class {
1007
+ a(Wt, "getPlotComponent");
1008
+ var _i = (_i2 = class {
1009
1009
  constructor(t, i, e, s) {
1010
1010
  this.chartConfig = t, this.chartData = i, this.componentStore = {
1011
- title: Vt(t, i, e, s),
1012
- plot: Bt(t, i, e),
1013
- xAxis: ht(
1011
+ title: Bt(t, i, e, s),
1012
+ plot: Wt(t, i, e),
1013
+ xAxis: ut(
1014
1014
  i.xAxis,
1015
1015
  t.xAxis,
1016
1016
  {
@@ -1021,7 +1021,7 @@ var Si = (_i2 = class {
1021
1021
  },
1022
1022
  s
1023
1023
  ),
1024
- yAxis: ht(
1024
+ yAxis: ut(
1025
1025
  i.yAxis,
1026
1026
  t.yAxis,
1027
1027
  {
@@ -1035,46 +1035,46 @@ var Si = (_i2 = class {
1035
1035
  };
1036
1036
  }
1037
1037
  calculateVerticalSpace() {
1038
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), x = Math.floor(
1038
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), d = Math.floor(
1039
1039
  i * this.chartConfig.plotReservedSpacePercent / 100
1040
- ), u = this.componentStore.plot.calculateSpace({
1040
+ ), g = this.componentStore.plot.calculateSpace({
1041
1041
  width: n,
1042
- height: x
1042
+ height: d
1043
1043
  });
1044
- t -= u.width, i -= u.height, u = this.componentStore.title.calculateSpace({
1044
+ t -= g.width, i -= g.height, g = this.componentStore.title.calculateSpace({
1045
1045
  width: this.chartConfig.width,
1046
1046
  height: i
1047
- }), s = u.height, i -= u.height, this.componentStore.xAxis.setAxisPosition("bottom"), u = this.componentStore.xAxis.calculateSpace({
1047
+ }), s = g.height, i -= g.height, this.componentStore.xAxis.setAxisPosition("bottom"), g = this.componentStore.xAxis.calculateSpace({
1048
1048
  width: t,
1049
1049
  height: i
1050
- }), i -= u.height, this.componentStore.yAxis.setAxisPosition("left"), u = this.componentStore.yAxis.calculateSpace({
1050
+ }), i -= g.height, this.componentStore.yAxis.setAxisPosition("left"), g = this.componentStore.yAxis.calculateSpace({
1051
1051
  width: t,
1052
1052
  height: i
1053
- }), e = u.width, t -= u.width, t > 0 && (n += t, t = 0), i > 0 && (x += i, i = 0), this.componentStore.plot.calculateSpace({
1053
+ }), e = g.width, t -= g.width, t > 0 && (n += t, t = 0), i > 0 && (d += i, i = 0), this.componentStore.plot.calculateSpace({
1054
1054
  width: n,
1055
- height: x
1056
- }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + x }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((p) => rt(p)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1055
+ height: d
1056
+ }), this.componentStore.plot.setBoundingBoxXY({ x: e, y: s }), this.componentStore.xAxis.setRange([e, e + n]), this.componentStore.xAxis.setBoundingBoxXY({ x: e, y: s + d }), this.componentStore.yAxis.setRange([s, s + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: 0, y: s }), this.chartData.plots.some((m) => ct(m)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1057
1057
  }
1058
1058
  calculateHorizontalSpace() {
1059
- let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, x = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), u = Math.floor(
1059
+ let t = this.chartConfig.width, i = this.chartConfig.height, e = 0, s = 0, n = 0, d = Math.floor(t * this.chartConfig.plotReservedSpacePercent / 100), g = Math.floor(
1060
1060
  i * this.chartConfig.plotReservedSpacePercent / 100
1061
- ), p = this.componentStore.plot.calculateSpace({
1062
- width: x,
1063
- height: u
1061
+ ), m = this.componentStore.plot.calculateSpace({
1062
+ width: d,
1063
+ height: g
1064
1064
  });
1065
- t -= p.width, i -= p.height, p = this.componentStore.title.calculateSpace({
1065
+ t -= m.width, i -= m.height, m = this.componentStore.title.calculateSpace({
1066
1066
  width: this.chartConfig.width,
1067
1067
  height: i
1068
- }), e = p.height, i -= p.height, this.componentStore.xAxis.setAxisPosition("left"), p = this.componentStore.xAxis.calculateSpace({
1068
+ }), e = m.height, i -= m.height, this.componentStore.xAxis.setAxisPosition("left"), m = this.componentStore.xAxis.calculateSpace({
1069
1069
  width: t,
1070
1070
  height: i
1071
- }), t -= p.width, s = p.width, this.componentStore.yAxis.setAxisPosition("top"), p = this.componentStore.yAxis.calculateSpace({
1071
+ }), t -= m.width, s = m.width, this.componentStore.yAxis.setAxisPosition("top"), m = this.componentStore.yAxis.calculateSpace({
1072
1072
  width: t,
1073
1073
  height: i
1074
- }), i -= p.height, n = e + p.height, t > 0 && (x += t, t = 0), i > 0 && (u += i, i = 0), this.componentStore.plot.calculateSpace({
1075
- width: x,
1076
- height: u
1077
- }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + x]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + u]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((C) => rt(C)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1074
+ }), i -= m.height, n = e + m.height, t > 0 && (d += t, t = 0), i > 0 && (g += i, i = 0), this.componentStore.plot.calculateSpace({
1075
+ width: d,
1076
+ height: g
1077
+ }), this.componentStore.plot.setBoundingBoxXY({ x: s, y: n }), this.componentStore.yAxis.setRange([s, s + d]), this.componentStore.yAxis.setBoundingBoxXY({ x: s, y: e }), this.componentStore.xAxis.setRange([n, n + g]), this.componentStore.xAxis.setBoundingBoxXY({ x: 0, y: n }), this.chartData.plots.some((S) => ct(S)) && this.componentStore.xAxis.recalculateOuterPaddingToDrawBar();
1078
1078
  }
1079
1079
  calculateSpace() {
1080
1080
  this.chartConfig.chartOrientation === "horizontal" ? this.calculateHorizontalSpace() : this.calculateVerticalSpace();
@@ -1087,25 +1087,25 @@ var Si = (_i2 = class {
1087
1087
  t.push(...i.getDrawableElements());
1088
1088
  return t;
1089
1089
  }
1090
- }, a(_i2, "Orchestrator"), _i2), _i = (_j = class {
1090
+ }, a(_i2, "Orchestrator"), _i2), ki = (_j = class {
1091
1091
  static build(t, i, e, s) {
1092
- return new Si(t, i, e, s).getDrawableElement();
1092
+ return new _i(t, i, e, s).getDrawableElement();
1093
1093
  }
1094
- }, a(_j, "XYChartBuilder"), _j), Y = 0, Wt, H = dt(), U = xt(), y = pt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
1095
- function xt() {
1096
- const t = ci(), i = ct();
1097
- return Et(t.xyChart, i.themeVariables.xyChart);
1094
+ }, a(_j, "XYChartBuilder"), _j), Q = 0, zt, K = mt(), Z = pt(), b = yt(), gt = Z.plotColorPalette.split(",").map((t) => t.trim()), et = false, ft = false;
1095
+ function pt() {
1096
+ const t = ui(), i = xt();
1097
+ return It(t.xyChart, i.themeVariables.xyChart);
1098
1098
  }
1099
- a(xt, "getChartDefaultThemeConfig");
1100
- function dt() {
1101
- const t = ct();
1102
- return Et(
1103
- li.xyChart,
1099
+ a(pt, "getChartDefaultThemeConfig");
1100
+ function mt() {
1101
+ const t = xt();
1102
+ return It(
1103
+ ci.xyChart,
1104
1104
  t.xyChart
1105
1105
  );
1106
1106
  }
1107
- a(dt, "getChartDefaultConfig");
1108
- function pt() {
1107
+ a(mt, "getChartDefaultConfig");
1108
+ function yt() {
1109
1109
  return {
1110
1110
  yAxis: {
1111
1111
  type: "linear",
@@ -1122,180 +1122,214 @@ function pt() {
1122
1122
  plots: []
1123
1123
  };
1124
1124
  }
1125
- a(pt, "getChartDefaultData");
1126
- function Z(t) {
1127
- const i = ct();
1128
- return ui(t.trim(), i);
1129
- }
1130
- a(Z, "textSanitizer");
1131
- function Ot(t) {
1132
- Wt = t;
1133
- }
1134
- a(Ot, "setTmpSVGG");
1135
- function zt(t) {
1136
- t === "horizontal" ? H.chartOrientation = "horizontal" : H.chartOrientation = "vertical";
1125
+ a(yt, "getChartDefaultData");
1126
+ function st(t) {
1127
+ const i = xt();
1128
+ return gi(t.trim(), i);
1137
1129
  }
1138
- a(zt, "setOrientation");
1130
+ a(st, "textSanitizer");
1139
1131
  function Ft(t) {
1140
- y.xAxis.title = Z(t.text);
1132
+ zt = t;
1141
1133
  }
1142
- a(Ft, "setXAxisTitle");
1143
- function ft(t, i) {
1144
- y.xAxis = { type: "linear", title: y.xAxis.title, min: t, max: i }, K = true;
1134
+ a(Ft, "setTmpSVGG");
1135
+ function Ot(t) {
1136
+ t === "horizontal" ? K.chartOrientation = "horizontal" : K.chartOrientation = "vertical";
1145
1137
  }
1146
- a(ft, "setXAxisRangeData");
1138
+ a(Ot, "setOrientation");
1147
1139
  function Xt(t) {
1148
- y.xAxis = {
1149
- type: "band",
1150
- title: y.xAxis.title,
1151
- categories: t.map((i) => Z(i.text))
1152
- }, K = true;
1140
+ b.xAxis.title = st(t.text);
1141
+ }
1142
+ a(Xt, "setXAxisTitle");
1143
+ function bt(t, i) {
1144
+ b.xAxis = { type: "linear", title: b.xAxis.title, min: t, max: i }, et = true;
1153
1145
  }
1154
- a(Xt, "setXAxisBand");
1146
+ a(bt, "setXAxisRangeData");
1155
1147
  function Nt(t) {
1156
- y.yAxis.title = Z(t.text);
1148
+ b.xAxis = {
1149
+ type: "band",
1150
+ title: b.xAxis.title,
1151
+ categories: t.map((i) => st(i.text))
1152
+ }, et = true;
1153
+ }
1154
+ a(Nt, "setXAxisBand");
1155
+ function Yt(t) {
1156
+ b.yAxis.title = st(t.text);
1157
1157
  }
1158
- a(Nt, "setYAxisTitle");
1159
- function Yt(t, i) {
1160
- y.yAxis = { type: "linear", title: y.yAxis.title, min: t, max: i }, gt = true;
1158
+ a(Yt, "setYAxisTitle");
1159
+ function Ht(t, i) {
1160
+ b.yAxis = { type: "linear", title: b.yAxis.title, min: t, max: i }, ft = true;
1161
1161
  }
1162
- a(Yt, "setYAxisRangeData");
1163
- function Ht(t) {
1164
- const i = Math.min(...t), e = Math.max(...t), s = F(y.yAxis) ? y.yAxis.min : 1 / 0, n = F(y.yAxis) ? y.yAxis.max : -1 / 0;
1165
- y.yAxis = {
1162
+ a(Ht, "setYAxisRangeData");
1163
+ function Ut(t) {
1164
+ const i = Math.min(...t), e = Math.max(...t), s = G(b.yAxis) ? b.yAxis.min : 1 / 0, n = G(b.yAxis) ? b.yAxis.max : -1 / 0;
1165
+ b.yAxis = {
1166
1166
  type: "linear",
1167
- title: y.yAxis.title,
1167
+ title: b.yAxis.title,
1168
1168
  min: Math.min(s, i),
1169
1169
  max: Math.max(n, e)
1170
1170
  };
1171
1171
  }
1172
- a(Ht, "setYAxisRangeFromPlotData");
1173
- function mt(t) {
1172
+ a(Ut, "setYAxisRangeFromPlotData");
1173
+ function At(t) {
1174
1174
  let i = [];
1175
1175
  if (t.length === 0)
1176
1176
  return i;
1177
- if (!K) {
1178
- const e = F(y.xAxis) ? y.xAxis.min : 1 / 0, s = F(y.xAxis) ? y.xAxis.max : -1 / 0;
1179
- ft(Math.min(e, 1), Math.max(s, t.length));
1177
+ if (!et) {
1178
+ const e = G(b.xAxis) ? b.xAxis.min : 1 / 0, s = G(b.xAxis) ? b.xAxis.max : -1 / 0;
1179
+ bt(Math.min(e, 1), Math.max(s, t.length));
1180
1180
  }
1181
- if (gt || Ht(t), ut(y.xAxis) && (i = y.xAxis.categories.map((e, s) => [e, t[s]])), F(y.xAxis)) {
1182
- const e = y.xAxis.min, s = y.xAxis.max, n = (s - e) / (t.length - 1), x = [];
1183
- for (let u = e; u <= s; u += n)
1184
- x.push(`${u}`);
1185
- i = x.map((u, p) => [u, t[p]]);
1181
+ if (ft || Ut(t), dt(b.xAxis) && (i = b.xAxis.categories.map((e, s) => [e, t[s]])), G(b.xAxis)) {
1182
+ const e = b.xAxis.min, s = b.xAxis.max, n = (s - e) / (t.length - 1), d = [];
1183
+ for (let g = e; g <= s; g += n)
1184
+ d.push(`${g}`);
1185
+ i = d.map((g, m) => [g, t[m]]);
1186
1186
  }
1187
1187
  return i;
1188
1188
  }
1189
- a(mt, "transformDataWithoutCategory");
1190
- function yt(t) {
1191
- return lt[t === 0 ? 0 : t % lt.length];
1189
+ a(At, "transformDataWithoutCategory");
1190
+ function wt(t) {
1191
+ return gt[t === 0 ? 0 : t % gt.length];
1192
1192
  }
1193
- a(yt, "getPlotColorFromPalette");
1194
- function Ut(t, i) {
1195
- const e = mt(i);
1196
- y.plots.push({
1193
+ a(wt, "getPlotColorFromPalette");
1194
+ function $t(t, i) {
1195
+ const e = At(i);
1196
+ b.plots.push({
1197
1197
  type: "line",
1198
- strokeFill: yt(Y),
1198
+ strokeFill: wt(Q),
1199
1199
  strokeWidth: 2,
1200
1200
  data: e
1201
- }), Y++;
1201
+ }), Q++;
1202
1202
  }
1203
- a(Ut, "setLineData");
1204
- function $t(t, i) {
1205
- const e = mt(i);
1206
- y.plots.push({
1203
+ a($t, "setLineData");
1204
+ function qt(t, i) {
1205
+ const e = At(i);
1206
+ b.plots.push({
1207
1207
  type: "bar",
1208
- fill: yt(Y),
1208
+ fill: wt(Q),
1209
1209
  data: e
1210
- }), Y++;
1211
- }
1212
- a($t, "setBarData");
1213
- function qt() {
1214
- if (y.plots.length === 0)
1215
- throw Error("No Plot to render, please provide a plot with some data");
1216
- return y.title = Pt(), _i.build(H, y, U, Wt);
1210
+ }), Q++;
1217
1211
  }
1218
- a(qt, "getDrawableElem");
1212
+ a(qt, "setBarData");
1219
1213
  function Gt() {
1220
- return U;
1214
+ if (b.plots.length === 0)
1215
+ throw Error("No Plot to render, please provide a plot with some data");
1216
+ return b.title = Lt(), ki.build(K, b, Z, zt);
1221
1217
  }
1222
- a(Gt, "getChartThemeConfig");
1218
+ a(Gt, "getDrawableElem");
1223
1219
  function jt() {
1224
- return H;
1220
+ return Z;
1221
+ }
1222
+ a(jt, "getChartThemeConfig");
1223
+ function Qt() {
1224
+ return K;
1225
1225
  }
1226
- a(jt, "getChartConfig");
1227
- var ki = /* @__PURE__ */ a(function() {
1228
- hi(), Y = 0, H = dt(), y = pt(), U = xt(), lt = U.plotColorPalette.split(",").map((t) => t.trim()), K = false, gt = false;
1229
- }, "clear"), Ri = {
1230
- getDrawableElem: qt,
1231
- clear: ki,
1232
- setAccTitle: ai,
1233
- getAccTitle: ni,
1234
- setDiagramTitle: si,
1235
- getDiagramTitle: Pt,
1236
- getAccDescription: ei,
1237
- setAccDescription: ii,
1238
- setOrientation: zt,
1239
- setXAxisTitle: Ft,
1240
- setXAxisRangeData: ft,
1241
- setXAxisBand: Xt,
1242
- setYAxisTitle: Nt,
1243
- setYAxisRangeData: Yt,
1244
- setLineData: Ut,
1245
- setBarData: $t,
1246
- setTmpSVGG: Ot,
1247
- getChartThemeConfig: Gt,
1248
- getChartConfig: jt
1249
- }, Ti = /* @__PURE__ */ a((t, i, e, s) => {
1250
- const n = s.db, x = n.getChartThemeConfig(), u = n.getChartConfig();
1251
- function p(f) {
1252
- return f === "top" ? "text-before-edge" : "middle";
1226
+ a(Qt, "getChartConfig");
1227
+ function Kt() {
1228
+ return b;
1229
+ }
1230
+ a(Kt, "getXYChartData");
1231
+ var Ri = /* @__PURE__ */ a(function() {
1232
+ li(), Q = 0, K = mt(), b = yt(), Z = pt(), gt = Z.plotColorPalette.split(",").map((t) => t.trim()), et = false, ft = false;
1233
+ }, "clear"), Ti = {
1234
+ getDrawableElem: Gt,
1235
+ clear: Ri,
1236
+ setAccTitle: oi,
1237
+ getAccTitle: ai,
1238
+ setDiagramTitle: ni,
1239
+ getDiagramTitle: Lt,
1240
+ getAccDescription: si,
1241
+ setAccDescription: ei,
1242
+ setOrientation: Ot,
1243
+ setXAxisTitle: Xt,
1244
+ setXAxisRangeData: bt,
1245
+ setXAxisBand: Nt,
1246
+ setYAxisTitle: Yt,
1247
+ setYAxisRangeData: Ht,
1248
+ setLineData: $t,
1249
+ setBarData: qt,
1250
+ setTmpSVGG: Ft,
1251
+ getChartThemeConfig: jt,
1252
+ getChartConfig: Qt,
1253
+ getXYChartData: Kt
1254
+ }, Di = /* @__PURE__ */ a((t, i, e, s) => {
1255
+ const n = s.db, d = n.getChartThemeConfig(), g = n.getChartConfig(), m = n.getXYChartData().plots[0].data.map((p) => p[1]);
1256
+ function S(p) {
1257
+ return p === "top" ? "text-before-edge" : "middle";
1253
1258
  }
1254
- a(p, "getDominantBaseLine");
1255
- function C(f) {
1256
- return f === "left" ? "start" : f === "right" ? "end" : "middle";
1259
+ a(S, "getDominantBaseLine");
1260
+ function D(p) {
1261
+ return p === "left" ? "start" : p === "right" ? "end" : "middle";
1257
1262
  }
1258
- a(C, "getTextAnchor");
1259
- function T(f) {
1260
- return `translate(${f.x}, ${f.y}) rotate(${f.rotation || 0})`;
1263
+ a(D, "getTextAnchor");
1264
+ function v(p) {
1265
+ return `translate(${p.x}, ${p.y}) rotate(${p.rotation || 0})`;
1261
1266
  }
1262
- a(T, "getTextTransformation"), Lt.debug(`Rendering xychart chart
1267
+ a(v, "getTextTransformation"), Et.debug(`Rendering xychart chart
1263
1268
  ` + t);
1264
- const k = oi(i), A = k.append("g").attr("class", "main"), m = A.append("rect").attr("width", u.width).attr("height", u.height).attr("class", "background");
1265
- ri(k, u.height, u.width, true), k.attr("viewBox", `0 0 ${u.width} ${u.height}`), m.attr("fill", x.backgroundColor), n.setTmpSVGG(k.append("g").attr("class", "mermaid-tmp-group"));
1266
- const D = n.getDrawableElem(), S = {};
1267
- function v(f) {
1268
- let _ = A, h = "";
1269
- for (const [E] of f.entries()) {
1270
- let X = A;
1271
- E > 0 && S[h] && (X = S[h]), h += f[E], _ = S[h], _ || (_ = S[h] = X.append("g").attr("class", f[E]));
1269
+ const w = ri(i), y = w.append("g").attr("class", "main"), E = y.append("rect").attr("width", g.width).attr("height", g.height).attr("class", "background");
1270
+ hi(w, g.height, g.width, true), w.attr("viewBox", `0 0 ${g.width} ${g.height}`), E.attr("fill", d.backgroundColor), n.setTmpSVGG(w.append("g").attr("class", "mermaid-tmp-group"));
1271
+ const T = n.getDrawableElem(), P = {};
1272
+ function I(p) {
1273
+ let _ = y, l = "";
1274
+ for (const [W] of p.entries()) {
1275
+ let z = y;
1276
+ W > 0 && P[l] && (z = P[l]), l += p[W], _ = P[l], _ || (_ = P[l] = z.append("g").attr("class", p[W]));
1272
1277
  }
1273
1278
  return _;
1274
1279
  }
1275
- a(v, "getGroup");
1276
- for (const f of D) {
1277
- if (f.data.length === 0)
1280
+ a(I, "getGroup");
1281
+ for (const p of T) {
1282
+ if (p.data.length === 0)
1278
1283
  continue;
1279
- const _ = v(f.groupTexts);
1280
- switch (f.type) {
1284
+ const _ = I(p.groupTexts);
1285
+ switch (p.type) {
1281
1286
  case "rect":
1282
- _.selectAll("rect").data(f.data).enter().append("rect").attr("x", (h) => h.x).attr("y", (h) => h.y).attr("width", (h) => h.width).attr("height", (h) => h.height).attr("fill", (h) => h.fill).attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1287
+ if (_.selectAll("rect").data(p.data).enter().append("rect").attr("x", (l) => l.x).attr("y", (l) => l.y).attr("width", (l) => l.width).attr("height", (l) => l.height).attr("fill", (l) => l.fill).attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth), g.showDataLabel)
1288
+ if (g.chartOrientation === "horizontal") {
1289
+ let l = function(h, L) {
1290
+ const { data: C, label: k } = h;
1291
+ return L * k.length * W <= C.width - 10;
1292
+ };
1293
+ a(l, "fitsHorizontally");
1294
+ const W = 0.7, z = p.data.map((h, L) => ({ data: h, label: m[L].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = z.map((h) => {
1295
+ const { data: L } = h;
1296
+ let C = L.height * 0.7;
1297
+ for (; !l(h, C) && C > 0; )
1298
+ C -= 1;
1299
+ return C;
1300
+ }), X = Math.floor(Math.min(...U));
1301
+ _.selectAll("text").data(z).enter().append("text").attr("x", (h) => h.data.x + h.data.width - 10).attr("y", (h) => h.data.y + h.data.height / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1302
+ } else {
1303
+ let l = function(h, L, C) {
1304
+ const { data: k, label: $ } = h, N = L * $.length * 0.7, F = k.x + k.width / 2, r = F - N / 2, c = F + N / 2, u = r >= k.x && c <= k.x + k.width, x = k.y + C + L <= k.y + k.height;
1305
+ return u && x;
1306
+ };
1307
+ a(l, "fitsInBar");
1308
+ const W = 10, z = p.data.map((h, L) => ({ data: h, label: m[L].toString() })).filter((h) => h.data.width > 0 && h.data.height > 0), U = z.map((h) => {
1309
+ const { data: L, label: C } = h;
1310
+ let k = L.width / (C.length * 0.7);
1311
+ for (; !l(h, k, W) && k > 0; )
1312
+ k -= 1;
1313
+ return k;
1314
+ }), X = Math.floor(Math.min(...U));
1315
+ _.selectAll("text").data(z).enter().append("text").attr("x", (h) => h.data.x + h.data.width / 2).attr("y", (h) => h.data.y + W).attr("text-anchor", "middle").attr("dominant-baseline", "hanging").attr("fill", "black").attr("font-size", `${X}px`).text((h) => h.label);
1316
+ }
1283
1317
  break;
1284
1318
  case "text":
1285
- _.selectAll("text").data(f.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (h) => h.fill).attr("font-size", (h) => h.fontSize).attr("dominant-baseline", (h) => p(h.verticalPos)).attr("text-anchor", (h) => C(h.horizontalPos)).attr("transform", (h) => T(h)).text((h) => h.text);
1319
+ _.selectAll("text").data(p.data).enter().append("text").attr("x", 0).attr("y", 0).attr("fill", (l) => l.fill).attr("font-size", (l) => l.fontSize).attr("dominant-baseline", (l) => S(l.verticalPos)).attr("text-anchor", (l) => D(l.horizontalPos)).attr("transform", (l) => v(l)).text((l) => l.text);
1286
1320
  break;
1287
1321
  case "path":
1288
- _.selectAll("path").data(f.data).enter().append("path").attr("d", (h) => h.path).attr("fill", (h) => h.fill ? h.fill : "none").attr("stroke", (h) => h.strokeFill).attr("stroke-width", (h) => h.strokeWidth);
1322
+ _.selectAll("path").data(p.data).enter().append("path").attr("d", (l) => l.path).attr("fill", (l) => l.fill ? l.fill : "none").attr("stroke", (l) => l.strokeFill).attr("stroke-width", (l) => l.strokeWidth);
1289
1323
  break;
1290
1324
  }
1291
1325
  }
1292
- }, "draw"), Di = {
1293
- draw: Ti
1294
- }, Vi = {
1295
- parser: fi,
1296
- db: Ri,
1297
- renderer: Di
1326
+ }, "draw"), vi = {
1327
+ draw: Di
1328
+ }, Bi = {
1329
+ parser: mi,
1330
+ db: Ti,
1331
+ renderer: vi
1298
1332
  };
1299
1333
  export {
1300
- Vi as diagram
1334
+ Bi as diagram
1301
1335
  };