@oxide/design-system 1.7.7--canary.c74e439.0 → 1.7.7--canary.2a63c1e.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 (131) hide show
  1. package/components/dist/asciidoc.css +42 -0
  2. package/components/dist/index.d.ts +0 -3
  3. package/components/dist/index.js +145 -1807
  4. package/components/dist/index.js.map +1 -1
  5. package/package.json +5 -3
  6. package/components/dist/architecture-I3QFYML2-YZWO3N3B.js +0 -14
  7. package/components/dist/architecture-I3QFYML2-YZWO3N3B.js.map +0 -1
  8. package/components/dist/architectureDiagram-UYN6MBPD-HXPGIDN7.js +0 -8846
  9. package/components/dist/architectureDiagram-UYN6MBPD-HXPGIDN7.js.map +0 -1
  10. package/components/dist/blockDiagram-ZHA2E4KO-OAYYKCLF.js +0 -3721
  11. package/components/dist/blockDiagram-ZHA2E4KO-OAYYKCLF.js.map +0 -1
  12. package/components/dist/c4Diagram-6F5ED5ID-TBHFK2XY.js +0 -2599
  13. package/components/dist/c4Diagram-6F5ED5ID-TBHFK2XY.js.map +0 -1
  14. package/components/dist/chunk-2DDKDUUO.js +0 -439
  15. package/components/dist/chunk-2DDKDUUO.js.map +0 -1
  16. package/components/dist/chunk-2NHDMTP7.js +0 -26905
  17. package/components/dist/chunk-2NHDMTP7.js.map +0 -1
  18. package/components/dist/chunk-4IJS44L3.js +0 -22
  19. package/components/dist/chunk-4IJS44L3.js.map +0 -1
  20. package/components/dist/chunk-562WOS3Z.js +0 -1109
  21. package/components/dist/chunk-562WOS3Z.js.map +0 -1
  22. package/components/dist/chunk-6UD2HOKB.js +0 -17082
  23. package/components/dist/chunk-6UD2HOKB.js.map +0 -1
  24. package/components/dist/chunk-76BOQ7BT.js +0 -63
  25. package/components/dist/chunk-76BOQ7BT.js.map +0 -1
  26. package/components/dist/chunk-7I5DT373.js +0 -97
  27. package/components/dist/chunk-7I5DT373.js.map +0 -1
  28. package/components/dist/chunk-BPREMNVP.js +0 -1875
  29. package/components/dist/chunk-BPREMNVP.js.map +0 -1
  30. package/components/dist/chunk-BVYAEHG3.js +0 -122
  31. package/components/dist/chunk-BVYAEHG3.js.map +0 -1
  32. package/components/dist/chunk-BW7DFBOS.js +0 -152
  33. package/components/dist/chunk-BW7DFBOS.js.map +0 -1
  34. package/components/dist/chunk-EZG2MNHW.js +0 -59
  35. package/components/dist/chunk-EZG2MNHW.js.map +0 -1
  36. package/components/dist/chunk-G6QWNAHJ.js +0 -43
  37. package/components/dist/chunk-G6QWNAHJ.js.map +0 -1
  38. package/components/dist/chunk-H72D3HRR.js +0 -1244
  39. package/components/dist/chunk-H72D3HRR.js.map +0 -1
  40. package/components/dist/chunk-K532NZMW.js +0 -46
  41. package/components/dist/chunk-K532NZMW.js.map +0 -1
  42. package/components/dist/chunk-LC3BX2KL.js +0 -25
  43. package/components/dist/chunk-LC3BX2KL.js.map +0 -1
  44. package/components/dist/chunk-LQ2ABR7F.js +0 -5665
  45. package/components/dist/chunk-LQ2ABR7F.js.map +0 -1
  46. package/components/dist/chunk-M6L3MM6K.js +0 -22
  47. package/components/dist/chunk-M6L3MM6K.js.map +0 -1
  48. package/components/dist/chunk-MWA4PRRW.js +0 -122
  49. package/components/dist/chunk-MWA4PRRW.js.map +0 -1
  50. package/components/dist/chunk-ND3FLKHU.js +0 -570
  51. package/components/dist/chunk-ND3FLKHU.js.map +0 -1
  52. package/components/dist/chunk-NIVHLOPB.js +0 -2621
  53. package/components/dist/chunk-NIVHLOPB.js.map +0 -1
  54. package/components/dist/chunk-R6F6FFK7.js +0 -65
  55. package/components/dist/chunk-R6F6FFK7.js.map +0 -1
  56. package/components/dist/chunk-RN5R3L7O.js +0 -2041
  57. package/components/dist/chunk-RN5R3L7O.js.map +0 -1
  58. package/components/dist/chunk-RWDBBMDN.js +0 -10910
  59. package/components/dist/chunk-RWDBBMDN.js.map +0 -1
  60. package/components/dist/chunk-T7HPDS4Z.js +0 -573
  61. package/components/dist/chunk-T7HPDS4Z.js.map +0 -1
  62. package/components/dist/chunk-TG4YEU4Q.js +0 -23
  63. package/components/dist/chunk-TG4YEU4Q.js.map +0 -1
  64. package/components/dist/chunk-U5WCXBW2.js +0 -48
  65. package/components/dist/chunk-U5WCXBW2.js.map +0 -1
  66. package/components/dist/chunk-V6PWN6OH.js +0 -1875
  67. package/components/dist/chunk-V6PWN6OH.js.map +0 -1
  68. package/components/dist/chunk-VLTHNCSD.js +0 -48
  69. package/components/dist/chunk-VLTHNCSD.js.map +0 -1
  70. package/components/dist/chunk-WDK4G4UR.js +0 -2791
  71. package/components/dist/chunk-WDK4G4UR.js.map +0 -1
  72. package/components/dist/chunk-WLVQWTC6.js +0 -77
  73. package/components/dist/chunk-WLVQWTC6.js.map +0 -1
  74. package/components/dist/chunk-YDLS5R4M.js +0 -48
  75. package/components/dist/chunk-YDLS5R4M.js.map +0 -1
  76. package/components/dist/chunk-YGFBWU2Q.js +0 -7
  77. package/components/dist/chunk-YGFBWU2Q.js.map +0 -1
  78. package/components/dist/chunk-ZBL4CWCH.js +0 -2120
  79. package/components/dist/chunk-ZBL4CWCH.js.map +0 -1
  80. package/components/dist/classDiagram-LNE6IOMH-VRQHEQWM.js +0 -40
  81. package/components/dist/classDiagram-LNE6IOMH-VRQHEQWM.js.map +0 -1
  82. package/components/dist/classDiagram-v2-MQ7JQ4JX-5GB4NXXM.js +0 -40
  83. package/components/dist/classDiagram-v2-MQ7JQ4JX-5GB4NXXM.js.map +0 -1
  84. package/components/dist/dagre-4EVJKHTY-XW45LMKR.js +0 -734
  85. package/components/dist/dagre-4EVJKHTY-XW45LMKR.js.map +0 -1
  86. package/components/dist/diagram-QW4FP2JN-J2YMUPB5.js +0 -226
  87. package/components/dist/diagram-QW4FP2JN-J2YMUPB5.js.map +0 -1
  88. package/components/dist/erDiagram-6RL3IURR-HQULDVJI.js +0 -1381
  89. package/components/dist/erDiagram-6RL3IURR-HQULDVJI.js.map +0 -1
  90. package/components/dist/flowDiagram-7ASYPVHJ-2542732I.js +0 -2349
  91. package/components/dist/flowDiagram-7ASYPVHJ-2542732I.js.map +0 -1
  92. package/components/dist/ganttDiagram-NTVNEXSI-V66YQQB3.js +0 -2413
  93. package/components/dist/ganttDiagram-NTVNEXSI-V66YQQB3.js.map +0 -1
  94. package/components/dist/gitGraph-YCYPL57B-AAXPWQN7.js +0 -14
  95. package/components/dist/gitGraph-YCYPL57B-AAXPWQN7.js.map +0 -1
  96. package/components/dist/gitGraphDiagram-NRZ2UAAF-5DU6QMYZ.js +0 -1763
  97. package/components/dist/gitGraphDiagram-NRZ2UAAF-5DU6QMYZ.js.map +0 -1
  98. package/components/dist/info-46DW6VJ7-43TTIEYF.js +0 -14
  99. package/components/dist/info-46DW6VJ7-43TTIEYF.js.map +0 -1
  100. package/components/dist/infoDiagram-A4XQUW5V-UZERSQDI.js +0 -54
  101. package/components/dist/infoDiagram-A4XQUW5V-UZERSQDI.js.map +0 -1
  102. package/components/dist/journeyDiagram-G5WM74LC-RVKMRGRW.js +0 -1244
  103. package/components/dist/journeyDiagram-G5WM74LC-RVKMRGRW.js.map +0 -1
  104. package/components/dist/kanban-definition-QRCXZQQD-NWU5I3TK.js +0 -1119
  105. package/components/dist/kanban-definition-QRCXZQQD-NWU5I3TK.js.map +0 -1
  106. package/components/dist/katex-WNZY3CE5.js +0 -14484
  107. package/components/dist/katex-WNZY3CE5.js.map +0 -1
  108. package/components/dist/mindmap-definition-GWI6TPTV-MISEH6LG.js +0 -6013
  109. package/components/dist/mindmap-definition-GWI6TPTV-MISEH6LG.js.map +0 -1
  110. package/components/dist/packet-W2GHVCYJ-FBZCFIPR.js +0 -14
  111. package/components/dist/packet-W2GHVCYJ-FBZCFIPR.js.map +0 -1
  112. package/components/dist/pie-BEWT4RHE-UFFBBCXM.js +0 -14
  113. package/components/dist/pie-BEWT4RHE-UFFBBCXM.js.map +0 -1
  114. package/components/dist/pieDiagram-YF2LJOPJ-IXEVHPCM.js +0 -223
  115. package/components/dist/pieDiagram-YF2LJOPJ-IXEVHPCM.js.map +0 -1
  116. package/components/dist/quadrantDiagram-OS5C2QUG-MW26UCZV.js +0 -1408
  117. package/components/dist/quadrantDiagram-OS5C2QUG-MW26UCZV.js.map +0 -1
  118. package/components/dist/requirementDiagram-MIRIMTAZ-BX24AAHL.js +0 -1175
  119. package/components/dist/requirementDiagram-MIRIMTAZ-BX24AAHL.js.map +0 -1
  120. package/components/dist/sankeyDiagram-Y46BX6SQ-5RKUGG63.js +0 -1278
  121. package/components/dist/sankeyDiagram-Y46BX6SQ-5RKUGG63.js.map +0 -1
  122. package/components/dist/sequenceDiagram-G6AWOVSC-2T3JBUZ2.js +0 -3529
  123. package/components/dist/sequenceDiagram-G6AWOVSC-2T3JBUZ2.js.map +0 -1
  124. package/components/dist/stateDiagram-MAYHULR4-HZ5EGLPA.js +0 -505
  125. package/components/dist/stateDiagram-MAYHULR4-HZ5EGLPA.js.map +0 -1
  126. package/components/dist/stateDiagram-v2-4JROLMXI-DN2FEZV3.js +0 -40
  127. package/components/dist/stateDiagram-v2-4JROLMXI-DN2FEZV3.js.map +0 -1
  128. package/components/dist/timeline-definition-U7ZMHBDA-GB6AKKW4.js +0 -1260
  129. package/components/dist/timeline-definition-U7ZMHBDA-GB6AKKW4.js.map +0 -1
  130. package/components/dist/xychartDiagram-6QU3TZC5-BFFLEHUP.js +0 -1877
  131. package/components/dist/xychartDiagram-6QU3TZC5-BFFLEHUP.js.map +0 -1
@@ -1,1408 +0,0 @@
1
- import {
2
- __name,
3
- clear,
4
- configureSvgSize,
5
- defaultConfig_default,
6
- getAccDescription,
7
- getAccTitle,
8
- getConfig2,
9
- getDiagramTitle,
10
- getThemeVariables3,
11
- linear,
12
- log,
13
- sanitizeText,
14
- select_default,
15
- setAccDescription,
16
- setAccTitle,
17
- setDiagramTitle
18
- } from "./chunk-RWDBBMDN.js";
19
- import "./chunk-K532NZMW.js";
20
-
21
- // node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-OS5C2QUG.mjs
22
- var parser = function() {
23
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
24
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
25
- ;
26
- return o2;
27
- }, "o"), $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [1, 7], $V5 = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], $V6 = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], $V7 = [55, 56, 57], $V8 = [2, 36], $V9 = [1, 37], $Va = [1, 36], $Vb = [1, 38], $Vc = [1, 35], $Vd = [1, 43], $Ve = [1, 41], $Vf = [1, 14], $Vg = [1, 23], $Vh = [1, 18], $Vi = [1, 19], $Vj = [1, 20], $Vk = [1, 21], $Vl = [1, 22], $Vm = [1, 24], $Vn = [1, 25], $Vo = [1, 26], $Vp = [1, 27], $Vq = [1, 28], $Vr = [1, 29], $Vs = [1, 32], $Vt = [1, 33], $Vu = [1, 34], $Vv = [1, 39], $Vw = [1, 40], $Vx = [1, 42], $Vy = [1, 44], $Vz = [1, 62], $VA = [1, 61], $VB = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], $VC = [1, 65], $VD = [1, 66], $VE = [1, 67], $VF = [1, 68], $VG = [1, 69], $VH = [1, 70], $VI = [1, 71], $VJ = [1, 72], $VK = [1, 73], $VL = [1, 74], $VM = [1, 75], $VN = [1, 76], $VO = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], $VP = [1, 90], $VQ = [1, 91], $VR = [1, 92], $VS = [1, 99], $VT = [1, 93], $VU = [1, 96], $VV = [1, 94], $VW = [1, 95], $VX = [1, 97], $VY = [1, 98], $VZ = [1, 102], $V_ = [10, 55, 56, 57], $V$ = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57];
28
- var parser2 = {
29
- trace: /* @__PURE__ */ __name(function trace() {
30
- }, "trace"),
31
- yy: {},
32
- symbols_: { "error": 2, "idStringToken": 3, "ALPHA": 4, "NUM": 5, "NODE_STRING": 6, "DOWN": 7, "MINUS": 8, "DEFAULT": 9, "COMMA": 10, "COLON": 11, "AMP": 12, "BRKT": 13, "MULT": 14, "UNICODE_TEXT": 15, "styleComponent": 16, "UNIT": 17, "SPACE": 18, "STYLE": 19, "PCT": 20, "idString": 21, "style": 22, "stylesOpt": 23, "classDefStatement": 24, "CLASSDEF": 25, "start": 26, "eol": 27, "QUADRANT": 28, "document": 29, "line": 30, "statement": 31, "axisDetails": 32, "quadrantDetails": 33, "points": 34, "title": 35, "title_value": 36, "acc_title": 37, "acc_title_value": 38, "acc_descr": 39, "acc_descr_value": 40, "acc_descr_multiline_value": 41, "section": 42, "text": 43, "point_start": 44, "point_x": 45, "point_y": 46, "class_name": 47, "X-AXIS": 48, "AXIS-TEXT-DELIMITER": 49, "Y-AXIS": 50, "QUADRANT_1": 51, "QUADRANT_2": 52, "QUADRANT_3": 53, "QUADRANT_4": 54, "NEWLINE": 55, "SEMI": 56, "EOF": 57, "alphaNumToken": 58, "textNoTagsToken": 59, "STR": 60, "MD_STR": 61, "alphaNum": 62, "PUNCTUATION": 63, "PLUS": 64, "EQUALS": 65, "DOT": 66, "UNDERSCORE": 67, "$accept": 0, "$end": 1 },
33
- terminals_: { 2: "error", 4: "ALPHA", 5: "NUM", 6: "NODE_STRING", 7: "DOWN", 8: "MINUS", 9: "DEFAULT", 10: "COMMA", 11: "COLON", 12: "AMP", 13: "BRKT", 14: "MULT", 15: "UNICODE_TEXT", 17: "UNIT", 18: "SPACE", 19: "STYLE", 20: "PCT", 25: "CLASSDEF", 28: "QUADRANT", 35: "title", 36: "title_value", 37: "acc_title", 38: "acc_title_value", 39: "acc_descr", 40: "acc_descr_value", 41: "acc_descr_multiline_value", 42: "section", 44: "point_start", 45: "point_x", 46: "point_y", 47: "class_name", 48: "X-AXIS", 49: "AXIS-TEXT-DELIMITER", 50: "Y-AXIS", 51: "QUADRANT_1", 52: "QUADRANT_2", 53: "QUADRANT_3", 54: "QUADRANT_4", 55: "NEWLINE", 56: "SEMI", 57: "EOF", 60: "STR", 61: "MD_STR", 63: "PUNCTUATION", 64: "PLUS", 65: "EQUALS", 66: "DOT", 67: "UNDERSCORE" },
34
- productions_: [0, [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [16, 1], [21, 1], [21, 2], [22, 1], [22, 2], [23, 1], [23, 3], [24, 5], [26, 2], [26, 2], [26, 2], [29, 0], [29, 2], [30, 2], [31, 0], [31, 1], [31, 2], [31, 1], [31, 1], [31, 1], [31, 2], [31, 2], [31, 2], [31, 1], [31, 1], [34, 4], [34, 5], [34, 5], [34, 6], [32, 4], [32, 3], [32, 2], [32, 4], [32, 3], [32, 2], [33, 2], [33, 2], [33, 2], [33, 2], [27, 1], [27, 1], [27, 1], [43, 1], [43, 2], [43, 1], [43, 1], [62, 1], [62, 2], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [58, 1], [59, 1], [59, 1], [59, 1]],
35
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
36
- var $0 = $$.length - 1;
37
- switch (yystate) {
38
- case 23:
39
- this.$ = $$[$0];
40
- break;
41
- case 24:
42
- this.$ = $$[$0 - 1] + "" + $$[$0];
43
- break;
44
- case 26:
45
- this.$ = $$[$0 - 1] + $$[$0];
46
- break;
47
- case 27:
48
- this.$ = [$$[$0].trim()];
49
- break;
50
- case 28:
51
- $$[$0 - 2].push($$[$0].trim());
52
- this.$ = $$[$0 - 2];
53
- break;
54
- case 29:
55
- this.$ = $$[$0 - 4];
56
- yy.addClass($$[$0 - 2], $$[$0]);
57
- break;
58
- case 37:
59
- this.$ = [];
60
- break;
61
- case 42:
62
- this.$ = $$[$0].trim();
63
- yy.setDiagramTitle(this.$);
64
- break;
65
- case 43:
66
- this.$ = $$[$0].trim();
67
- yy.setAccTitle(this.$);
68
- break;
69
- case 44:
70
- case 45:
71
- this.$ = $$[$0].trim();
72
- yy.setAccDescription(this.$);
73
- break;
74
- case 46:
75
- yy.addSection($$[$0].substr(8));
76
- this.$ = $$[$0].substr(8);
77
- break;
78
- case 47:
79
- yy.addPoint($$[$0 - 3], "", $$[$0 - 1], $$[$0], []);
80
- break;
81
- case 48:
82
- yy.addPoint($$[$0 - 4], $$[$0 - 3], $$[$0 - 1], $$[$0], []);
83
- break;
84
- case 49:
85
- yy.addPoint($$[$0 - 4], "", $$[$0 - 2], $$[$0 - 1], $$[$0]);
86
- break;
87
- case 50:
88
- yy.addPoint($$[$0 - 5], $$[$0 - 4], $$[$0 - 2], $$[$0 - 1], $$[$0]);
89
- break;
90
- case 51:
91
- yy.setXAxisLeftText($$[$0 - 2]);
92
- yy.setXAxisRightText($$[$0]);
93
- break;
94
- case 52:
95
- $$[$0 - 1].text += " \u27F6 ";
96
- yy.setXAxisLeftText($$[$0 - 1]);
97
- break;
98
- case 53:
99
- yy.setXAxisLeftText($$[$0]);
100
- break;
101
- case 54:
102
- yy.setYAxisBottomText($$[$0 - 2]);
103
- yy.setYAxisTopText($$[$0]);
104
- break;
105
- case 55:
106
- $$[$0 - 1].text += " \u27F6 ";
107
- yy.setYAxisBottomText($$[$0 - 1]);
108
- break;
109
- case 56:
110
- yy.setYAxisBottomText($$[$0]);
111
- break;
112
- case 57:
113
- yy.setQuadrant1Text($$[$0]);
114
- break;
115
- case 58:
116
- yy.setQuadrant2Text($$[$0]);
117
- break;
118
- case 59:
119
- yy.setQuadrant3Text($$[$0]);
120
- break;
121
- case 60:
122
- yy.setQuadrant4Text($$[$0]);
123
- break;
124
- case 64:
125
- this.$ = { text: $$[$0], type: "text" };
126
- break;
127
- case 65:
128
- this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
129
- break;
130
- case 66:
131
- this.$ = { text: $$[$0], type: "text" };
132
- break;
133
- case 67:
134
- this.$ = { text: $$[$0], type: "markdown" };
135
- break;
136
- case 68:
137
- this.$ = $$[$0];
138
- break;
139
- case 69:
140
- this.$ = $$[$0 - 1] + "" + $$[$0];
141
- break;
142
- }
143
- }, "anonymous"),
144
- table: [{ 18: $V0, 26: 1, 27: 2, 28: $V1, 55: $V2, 56: $V3, 57: $V4 }, { 1: [3] }, { 18: $V0, 26: 8, 27: 2, 28: $V1, 55: $V2, 56: $V3, 57: $V4 }, { 18: $V0, 26: 9, 27: 2, 28: $V1, 55: $V2, 56: $V3, 57: $V4 }, o($V5, [2, 33], { 29: 10 }), o($V6, [2, 61]), o($V6, [2, 62]), o($V6, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, o($V7, $V8, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $Vf, 25: $Vg, 35: $Vh, 37: $Vi, 39: $Vj, 41: $Vk, 42: $Vl, 48: $Vm, 50: $Vn, 51: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V5, [2, 34]), { 27: 45, 55: $V2, 56: $V3, 57: $V4 }, o($V7, [2, 37]), o($V7, $V8, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $Vf, 25: $Vg, 35: $Vh, 37: $Vi, 39: $Vj, 41: $Vk, 42: $Vl, 48: $Vm, 50: $Vn, 51: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 39]), o($V7, [2, 40]), o($V7, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, o($V7, [2, 45]), o($V7, [2, 46]), { 18: [1, 50] }, { 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 43: 51, 58: 31, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, { 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 43: 52, 58: 31, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, { 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 43: 53, 58: 31, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, { 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 43: 54, 58: 31, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, { 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 43: 55, 58: 31, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, { 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 43: 56, 58: 31, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, { 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }, o($VB, [2, 64]), o($VB, [2, 66]), o($VB, [2, 67]), o($VB, [2, 70]), o($VB, [2, 71]), o($VB, [2, 72]), o($VB, [2, 73]), o($VB, [2, 74]), o($VB, [2, 75]), o($VB, [2, 76]), o($VB, [2, 77]), o($VB, [2, 78]), o($VB, [2, 79]), o($VB, [2, 80]), o($V5, [2, 35]), o($V7, [2, 38]), o($V7, [2, 42]), o($V7, [2, 43]), o($V7, [2, 44]), { 3: 64, 4: $VC, 5: $VD, 6: $VE, 7: $VF, 8: $VG, 9: $VH, 10: $VI, 11: $VJ, 12: $VK, 13: $VL, 14: $VM, 15: $VN, 21: 63 }, o($V7, [2, 53], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 49: [1, 77], 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 56], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 49: [1, 78], 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 57], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 58], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 59], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 60], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), { 45: [1, 79] }, { 44: [1, 80] }, o($VB, [2, 65]), o($VB, [2, 81]), o($VB, [2, 82]), o($VB, [2, 83]), { 3: 82, 4: $VC, 5: $VD, 6: $VE, 7: $VF, 8: $VG, 9: $VH, 10: $VI, 11: $VJ, 12: $VK, 13: $VL, 14: $VM, 15: $VN, 18: [1, 81] }, o($VO, [2, 23]), o($VO, [2, 1]), o($VO, [2, 2]), o($VO, [2, 3]), o($VO, [2, 4]), o($VO, [2, 5]), o($VO, [2, 6]), o($VO, [2, 7]), o($VO, [2, 8]), o($VO, [2, 9]), o($VO, [2, 10]), o($VO, [2, 11]), o($VO, [2, 12]), o($V7, [2, 52], { 58: 31, 43: 83, 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 55], { 58: 31, 43: 84, 4: $V9, 5: $Va, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 60: $Vs, 61: $Vt, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: $VP, 5: $VQ, 6: $VR, 8: $VS, 11: $VT, 13: $VU, 16: 89, 17: $VV, 18: $VW, 19: $VX, 20: $VY, 22: 88, 23: 87 }, o($VO, [2, 24]), o($V7, [2, 51], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 54], { 59: 59, 58: 60, 4: $V9, 5: $Va, 8: $Vz, 10: $Vb, 12: $Vc, 13: $Vd, 14: $Ve, 18: $VA, 63: $Vu, 64: $Vv, 65: $Vw, 66: $Vx, 67: $Vy }), o($V7, [2, 47], { 22: 88, 16: 89, 23: 100, 4: $VP, 5: $VQ, 6: $VR, 8: $VS, 11: $VT, 13: $VU, 17: $VV, 18: $VW, 19: $VX, 20: $VY }), { 46: [1, 101] }, o($V7, [2, 29], { 10: $VZ }), o($V_, [2, 27], { 16: 103, 4: $VP, 5: $VQ, 6: $VR, 8: $VS, 11: $VT, 13: $VU, 17: $VV, 18: $VW, 19: $VX, 20: $VY }), o($V$, [2, 25]), o($V$, [2, 13]), o($V$, [2, 14]), o($V$, [2, 15]), o($V$, [2, 16]), o($V$, [2, 17]), o($V$, [2, 18]), o($V$, [2, 19]), o($V$, [2, 20]), o($V$, [2, 21]), o($V$, [2, 22]), o($V7, [2, 49], { 10: $VZ }), o($V7, [2, 48], { 22: 88, 16: 89, 23: 104, 4: $VP, 5: $VQ, 6: $VR, 8: $VS, 11: $VT, 13: $VU, 17: $VV, 18: $VW, 19: $VX, 20: $VY }), { 4: $VP, 5: $VQ, 6: $VR, 8: $VS, 11: $VT, 13: $VU, 16: 89, 17: $VV, 18: $VW, 19: $VX, 20: $VY, 22: 105 }, o($V$, [2, 26]), o($V7, [2, 50], { 10: $VZ }), o($V_, [2, 28], { 16: 103, 4: $VP, 5: $VQ, 6: $VR, 8: $VS, 11: $VT, 13: $VU, 17: $VV, 18: $VW, 19: $VX, 20: $VY })],
145
- defaultActions: { 8: [2, 30], 9: [2, 31] },
146
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
147
- if (hash.recoverable) {
148
- this.trace(str);
149
- } else {
150
- var error = new Error(str);
151
- error.hash = hash;
152
- throw error;
153
- }
154
- }, "parseError"),
155
- parse: /* @__PURE__ */ __name(function parse(input) {
156
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
157
- var args = lstack.slice.call(arguments, 1);
158
- var lexer2 = Object.create(this.lexer);
159
- var sharedState = { yy: {} };
160
- for (var k in this.yy) {
161
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
162
- sharedState.yy[k] = this.yy[k];
163
- }
164
- }
165
- lexer2.setInput(input, sharedState.yy);
166
- sharedState.yy.lexer = lexer2;
167
- sharedState.yy.parser = this;
168
- if (typeof lexer2.yylloc == "undefined") {
169
- lexer2.yylloc = {};
170
- }
171
- var yyloc = lexer2.yylloc;
172
- lstack.push(yyloc);
173
- var ranges = lexer2.options && lexer2.options.ranges;
174
- if (typeof sharedState.yy.parseError === "function") {
175
- this.parseError = sharedState.yy.parseError;
176
- } else {
177
- this.parseError = Object.getPrototypeOf(this).parseError;
178
- }
179
- function popStack(n) {
180
- stack.length = stack.length - 2 * n;
181
- vstack.length = vstack.length - n;
182
- lstack.length = lstack.length - n;
183
- }
184
- __name(popStack, "popStack");
185
- function lex() {
186
- var token;
187
- token = tstack.pop() || lexer2.lex() || EOF;
188
- if (typeof token !== "number") {
189
- if (token instanceof Array) {
190
- tstack = token;
191
- token = tstack.pop();
192
- }
193
- token = self.symbols_[token] || token;
194
- }
195
- return token;
196
- }
197
- __name(lex, "lex");
198
- var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
199
- while (true) {
200
- state = stack[stack.length - 1];
201
- if (this.defaultActions[state]) {
202
- action = this.defaultActions[state];
203
- } else {
204
- if (symbol === null || typeof symbol == "undefined") {
205
- symbol = lex();
206
- }
207
- action = table[state] && table[state][symbol];
208
- }
209
- if (typeof action === "undefined" || !action.length || !action[0]) {
210
- var errStr = "";
211
- expected = [];
212
- for (p in table[state]) {
213
- if (this.terminals_[p] && p > TERROR) {
214
- expected.push("'" + this.terminals_[p] + "'");
215
- }
216
- }
217
- if (lexer2.showPosition) {
218
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
219
- } else {
220
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
221
- }
222
- this.parseError(errStr, {
223
- text: lexer2.match,
224
- token: this.terminals_[symbol] || symbol,
225
- line: lexer2.yylineno,
226
- loc: yyloc,
227
- expected
228
- });
229
- }
230
- if (action[0] instanceof Array && action.length > 1) {
231
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
232
- }
233
- switch (action[0]) {
234
- case 1:
235
- stack.push(symbol);
236
- vstack.push(lexer2.yytext);
237
- lstack.push(lexer2.yylloc);
238
- stack.push(action[1]);
239
- symbol = null;
240
- if (!preErrorSymbol) {
241
- yyleng = lexer2.yyleng;
242
- yytext = lexer2.yytext;
243
- yylineno = lexer2.yylineno;
244
- yyloc = lexer2.yylloc;
245
- if (recovering > 0) {
246
- recovering--;
247
- }
248
- } else {
249
- symbol = preErrorSymbol;
250
- preErrorSymbol = null;
251
- }
252
- break;
253
- case 2:
254
- len = this.productions_[action[1]][1];
255
- yyval.$ = vstack[vstack.length - len];
256
- yyval._$ = {
257
- first_line: lstack[lstack.length - (len || 1)].first_line,
258
- last_line: lstack[lstack.length - 1].last_line,
259
- first_column: lstack[lstack.length - (len || 1)].first_column,
260
- last_column: lstack[lstack.length - 1].last_column
261
- };
262
- if (ranges) {
263
- yyval._$.range = [
264
- lstack[lstack.length - (len || 1)].range[0],
265
- lstack[lstack.length - 1].range[1]
266
- ];
267
- }
268
- r = this.performAction.apply(yyval, [
269
- yytext,
270
- yyleng,
271
- yylineno,
272
- sharedState.yy,
273
- action[1],
274
- vstack,
275
- lstack
276
- ].concat(args));
277
- if (typeof r !== "undefined") {
278
- return r;
279
- }
280
- if (len) {
281
- stack = stack.slice(0, -1 * len * 2);
282
- vstack = vstack.slice(0, -1 * len);
283
- lstack = lstack.slice(0, -1 * len);
284
- }
285
- stack.push(this.productions_[action[1]][0]);
286
- vstack.push(yyval.$);
287
- lstack.push(yyval._$);
288
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
289
- stack.push(newState);
290
- break;
291
- case 3:
292
- return true;
293
- }
294
- }
295
- return true;
296
- }, "parse")
297
- };
298
- var lexer = /* @__PURE__ */ function() {
299
- var lexer2 = {
300
- EOF: 1,
301
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
302
- if (this.yy.parser) {
303
- this.yy.parser.parseError(str, hash);
304
- } else {
305
- throw new Error(str);
306
- }
307
- }, "parseError"),
308
- // resets the lexer, sets new input
309
- setInput: /* @__PURE__ */ __name(function(input, yy) {
310
- this.yy = yy || this.yy || {};
311
- this._input = input;
312
- this._more = this._backtrack = this.done = false;
313
- this.yylineno = this.yyleng = 0;
314
- this.yytext = this.matched = this.match = "";
315
- this.conditionStack = ["INITIAL"];
316
- this.yylloc = {
317
- first_line: 1,
318
- first_column: 0,
319
- last_line: 1,
320
- last_column: 0
321
- };
322
- if (this.options.ranges) {
323
- this.yylloc.range = [0, 0];
324
- }
325
- this.offset = 0;
326
- return this;
327
- }, "setInput"),
328
- // consumes and returns one char from the input
329
- input: /* @__PURE__ */ __name(function() {
330
- var ch = this._input[0];
331
- this.yytext += ch;
332
- this.yyleng++;
333
- this.offset++;
334
- this.match += ch;
335
- this.matched += ch;
336
- var lines = ch.match(/(?:\r\n?|\n).*/g);
337
- if (lines) {
338
- this.yylineno++;
339
- this.yylloc.last_line++;
340
- } else {
341
- this.yylloc.last_column++;
342
- }
343
- if (this.options.ranges) {
344
- this.yylloc.range[1]++;
345
- }
346
- this._input = this._input.slice(1);
347
- return ch;
348
- }, "input"),
349
- // unshifts one char (or a string) into the input
350
- unput: /* @__PURE__ */ __name(function(ch) {
351
- var len = ch.length;
352
- var lines = ch.split(/(?:\r\n?|\n)/g);
353
- this._input = ch + this._input;
354
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
355
- this.offset -= len;
356
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
357
- this.match = this.match.substr(0, this.match.length - 1);
358
- this.matched = this.matched.substr(0, this.matched.length - 1);
359
- if (lines.length - 1) {
360
- this.yylineno -= lines.length - 1;
361
- }
362
- var r = this.yylloc.range;
363
- this.yylloc = {
364
- first_line: this.yylloc.first_line,
365
- last_line: this.yylineno + 1,
366
- first_column: this.yylloc.first_column,
367
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
368
- };
369
- if (this.options.ranges) {
370
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
371
- }
372
- this.yyleng = this.yytext.length;
373
- return this;
374
- }, "unput"),
375
- // When called from action, caches matched text and appends it on next action
376
- more: /* @__PURE__ */ __name(function() {
377
- this._more = true;
378
- return this;
379
- }, "more"),
380
- // 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.
381
- reject: /* @__PURE__ */ __name(function() {
382
- if (this.options.backtrack_lexer) {
383
- this._backtrack = true;
384
- } else {
385
- 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(), {
386
- text: "",
387
- token: null,
388
- line: this.yylineno
389
- });
390
- }
391
- return this;
392
- }, "reject"),
393
- // retain first n characters of the match
394
- less: /* @__PURE__ */ __name(function(n) {
395
- this.unput(this.match.slice(n));
396
- }, "less"),
397
- // displays already matched input, i.e. for error messages
398
- pastInput: /* @__PURE__ */ __name(function() {
399
- var past = this.matched.substr(0, this.matched.length - this.match.length);
400
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
401
- }, "pastInput"),
402
- // displays upcoming input, i.e. for error messages
403
- upcomingInput: /* @__PURE__ */ __name(function() {
404
- var next = this.match;
405
- if (next.length < 20) {
406
- next += this._input.substr(0, 20 - next.length);
407
- }
408
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
409
- }, "upcomingInput"),
410
- // displays the character position where the lexing error occurred, i.e. for error messages
411
- showPosition: /* @__PURE__ */ __name(function() {
412
- var pre = this.pastInput();
413
- var c = new Array(pre.length + 1).join("-");
414
- return pre + this.upcomingInput() + "\n" + c + "^";
415
- }, "showPosition"),
416
- // test the lexed token: return FALSE when not a match, otherwise return token
417
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
418
- var token, lines, backup;
419
- if (this.options.backtrack_lexer) {
420
- backup = {
421
- yylineno: this.yylineno,
422
- yylloc: {
423
- first_line: this.yylloc.first_line,
424
- last_line: this.last_line,
425
- first_column: this.yylloc.first_column,
426
- last_column: this.yylloc.last_column
427
- },
428
- yytext: this.yytext,
429
- match: this.match,
430
- matches: this.matches,
431
- matched: this.matched,
432
- yyleng: this.yyleng,
433
- offset: this.offset,
434
- _more: this._more,
435
- _input: this._input,
436
- yy: this.yy,
437
- conditionStack: this.conditionStack.slice(0),
438
- done: this.done
439
- };
440
- if (this.options.ranges) {
441
- backup.yylloc.range = this.yylloc.range.slice(0);
442
- }
443
- }
444
- lines = match[0].match(/(?:\r\n?|\n).*/g);
445
- if (lines) {
446
- this.yylineno += lines.length;
447
- }
448
- this.yylloc = {
449
- first_line: this.yylloc.last_line,
450
- last_line: this.yylineno + 1,
451
- first_column: this.yylloc.last_column,
452
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
453
- };
454
- this.yytext += match[0];
455
- this.match += match[0];
456
- this.matches = match;
457
- this.yyleng = this.yytext.length;
458
- if (this.options.ranges) {
459
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
460
- }
461
- this._more = false;
462
- this._backtrack = false;
463
- this._input = this._input.slice(match[0].length);
464
- this.matched += match[0];
465
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
466
- if (this.done && this._input) {
467
- this.done = false;
468
- }
469
- if (token) {
470
- return token;
471
- } else if (this._backtrack) {
472
- for (var k in backup) {
473
- this[k] = backup[k];
474
- }
475
- return false;
476
- }
477
- return false;
478
- }, "test_match"),
479
- // return next match in input
480
- next: /* @__PURE__ */ __name(function() {
481
- if (this.done) {
482
- return this.EOF;
483
- }
484
- if (!this._input) {
485
- this.done = true;
486
- }
487
- var token, match, tempMatch, index;
488
- if (!this._more) {
489
- this.yytext = "";
490
- this.match = "";
491
- }
492
- var rules = this._currentRules();
493
- for (var i = 0; i < rules.length; i++) {
494
- tempMatch = this._input.match(this.rules[rules[i]]);
495
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
496
- match = tempMatch;
497
- index = i;
498
- if (this.options.backtrack_lexer) {
499
- token = this.test_match(tempMatch, rules[i]);
500
- if (token !== false) {
501
- return token;
502
- } else if (this._backtrack) {
503
- match = false;
504
- continue;
505
- } else {
506
- return false;
507
- }
508
- } else if (!this.options.flex) {
509
- break;
510
- }
511
- }
512
- }
513
- if (match) {
514
- token = this.test_match(match, rules[index]);
515
- if (token !== false) {
516
- return token;
517
- }
518
- return false;
519
- }
520
- if (this._input === "") {
521
- return this.EOF;
522
- } else {
523
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
524
- text: "",
525
- token: null,
526
- line: this.yylineno
527
- });
528
- }
529
- }, "next"),
530
- // return next match that has a token
531
- lex: /* @__PURE__ */ __name(function lex() {
532
- var r = this.next();
533
- if (r) {
534
- return r;
535
- } else {
536
- return this.lex();
537
- }
538
- }, "lex"),
539
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
540
- begin: /* @__PURE__ */ __name(function begin(condition) {
541
- this.conditionStack.push(condition);
542
- }, "begin"),
543
- // pop the previously active lexer condition state off the condition stack
544
- popState: /* @__PURE__ */ __name(function popState() {
545
- var n = this.conditionStack.length - 1;
546
- if (n > 0) {
547
- return this.conditionStack.pop();
548
- } else {
549
- return this.conditionStack[0];
550
- }
551
- }, "popState"),
552
- // produce the lexer rule set which is active for the currently active lexer condition state
553
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
554
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
555
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
556
- } else {
557
- return this.conditions["INITIAL"].rules;
558
- }
559
- }, "_currentRules"),
560
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
561
- topState: /* @__PURE__ */ __name(function topState(n) {
562
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
563
- if (n >= 0) {
564
- return this.conditionStack[n];
565
- } else {
566
- return "INITIAL";
567
- }
568
- }, "topState"),
569
- // alias for begin(condition)
570
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
571
- this.begin(condition);
572
- }, "pushState"),
573
- // return the number of states currently on the stack
574
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
575
- return this.conditionStack.length;
576
- }, "stateStackSize"),
577
- options: { "case-insensitive": true },
578
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
579
- var YYSTATE = YY_START;
580
- switch ($avoiding_name_collisions) {
581
- case 0:
582
- break;
583
- case 1:
584
- break;
585
- case 2:
586
- return 55;
587
- break;
588
- case 3:
589
- break;
590
- case 4:
591
- this.begin("title");
592
- return 35;
593
- break;
594
- case 5:
595
- this.popState();
596
- return "title_value";
597
- break;
598
- case 6:
599
- this.begin("acc_title");
600
- return 37;
601
- break;
602
- case 7:
603
- this.popState();
604
- return "acc_title_value";
605
- break;
606
- case 8:
607
- this.begin("acc_descr");
608
- return 39;
609
- break;
610
- case 9:
611
- this.popState();
612
- return "acc_descr_value";
613
- break;
614
- case 10:
615
- this.begin("acc_descr_multiline");
616
- break;
617
- case 11:
618
- this.popState();
619
- break;
620
- case 12:
621
- return "acc_descr_multiline_value";
622
- break;
623
- case 13:
624
- return 48;
625
- break;
626
- case 14:
627
- return 50;
628
- break;
629
- case 15:
630
- return 49;
631
- break;
632
- case 16:
633
- return 51;
634
- break;
635
- case 17:
636
- return 52;
637
- break;
638
- case 18:
639
- return 53;
640
- break;
641
- case 19:
642
- return 54;
643
- break;
644
- case 20:
645
- return 25;
646
- break;
647
- case 21:
648
- this.begin("md_string");
649
- break;
650
- case 22:
651
- return "MD_STR";
652
- break;
653
- case 23:
654
- this.popState();
655
- break;
656
- case 24:
657
- this.begin("string");
658
- break;
659
- case 25:
660
- this.popState();
661
- break;
662
- case 26:
663
- return "STR";
664
- break;
665
- case 27:
666
- this.begin("class_name");
667
- break;
668
- case 28:
669
- this.popState();
670
- return 47;
671
- break;
672
- case 29:
673
- this.begin("point_start");
674
- return 44;
675
- break;
676
- case 30:
677
- this.begin("point_x");
678
- return 45;
679
- break;
680
- case 31:
681
- this.popState();
682
- break;
683
- case 32:
684
- this.popState();
685
- this.begin("point_y");
686
- break;
687
- case 33:
688
- this.popState();
689
- return 46;
690
- break;
691
- case 34:
692
- return 28;
693
- break;
694
- case 35:
695
- return 4;
696
- break;
697
- case 36:
698
- return 11;
699
- break;
700
- case 37:
701
- return 64;
702
- break;
703
- case 38:
704
- return 10;
705
- break;
706
- case 39:
707
- return 65;
708
- break;
709
- case 40:
710
- return 65;
711
- break;
712
- case 41:
713
- return 14;
714
- break;
715
- case 42:
716
- return 13;
717
- break;
718
- case 43:
719
- return 67;
720
- break;
721
- case 44:
722
- return 66;
723
- break;
724
- case 45:
725
- return 12;
726
- break;
727
- case 46:
728
- return 8;
729
- break;
730
- case 47:
731
- return 5;
732
- break;
733
- case 48:
734
- return 18;
735
- break;
736
- case 49:
737
- return 56;
738
- break;
739
- case 50:
740
- return 63;
741
- break;
742
- case 51:
743
- return 57;
744
- break;
745
- }
746
- }, "anonymous"),
747
- rules: [/^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n\r]+)/i, /^(?:%%[^\n]*)/i, /^(?:title\b)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:classDef\b)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?::::)/i, /^(?:^\w+)/i, /^(?:\s*:\s*\[\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?:\s*\] *)/i, /^(?:\s*,\s*)/i, /^(?:(1)|(0(.\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
748
- conditions: { "class_name": { "rules": [28], "inclusive": false }, "point_y": { "rules": [33], "inclusive": false }, "point_x": { "rules": [32], "inclusive": false }, "point_start": { "rules": [30, 31], "inclusive": false }, "acc_descr_multiline": { "rules": [11, 12], "inclusive": false }, "acc_descr": { "rules": [9], "inclusive": false }, "acc_title": { "rules": [7], "inclusive": false }, "title": { "rules": [5], "inclusive": false }, "md_string": { "rules": [22, 23], "inclusive": false }, "string": { "rules": [25, 26], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 24, 27, 29, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], "inclusive": true } }
749
- };
750
- return lexer2;
751
- }();
752
- parser2.lexer = lexer;
753
- function Parser() {
754
- this.yy = {};
755
- }
756
- __name(Parser, "Parser");
757
- Parser.prototype = parser2;
758
- parser2.Parser = Parser;
759
- return new Parser();
760
- }();
761
- parser.parser = parser;
762
- var quadrant_default = parser;
763
- var defaultThemeVariables = getThemeVariables3();
764
- var QuadrantBuilder = class {
765
- constructor() {
766
- this.classes = /* @__PURE__ */ new Map();
767
- this.config = this.getDefaultConfig();
768
- this.themeConfig = this.getDefaultThemeConfig();
769
- this.data = this.getDefaultData();
770
- }
771
- static {
772
- __name(this, "QuadrantBuilder");
773
- }
774
- getDefaultData() {
775
- return {
776
- titleText: "",
777
- quadrant1Text: "",
778
- quadrant2Text: "",
779
- quadrant3Text: "",
780
- quadrant4Text: "",
781
- xAxisLeftText: "",
782
- xAxisRightText: "",
783
- yAxisBottomText: "",
784
- yAxisTopText: "",
785
- points: []
786
- };
787
- }
788
- getDefaultConfig() {
789
- return {
790
- showXAxis: true,
791
- showYAxis: true,
792
- showTitle: true,
793
- chartHeight: defaultConfig_default.quadrantChart?.chartWidth || 500,
794
- chartWidth: defaultConfig_default.quadrantChart?.chartHeight || 500,
795
- titlePadding: defaultConfig_default.quadrantChart?.titlePadding || 10,
796
- titleFontSize: defaultConfig_default.quadrantChart?.titleFontSize || 20,
797
- quadrantPadding: defaultConfig_default.quadrantChart?.quadrantPadding || 5,
798
- xAxisLabelPadding: defaultConfig_default.quadrantChart?.xAxisLabelPadding || 5,
799
- yAxisLabelPadding: defaultConfig_default.quadrantChart?.yAxisLabelPadding || 5,
800
- xAxisLabelFontSize: defaultConfig_default.quadrantChart?.xAxisLabelFontSize || 16,
801
- yAxisLabelFontSize: defaultConfig_default.quadrantChart?.yAxisLabelFontSize || 16,
802
- quadrantLabelFontSize: defaultConfig_default.quadrantChart?.quadrantLabelFontSize || 16,
803
- quadrantTextTopPadding: defaultConfig_default.quadrantChart?.quadrantTextTopPadding || 5,
804
- pointTextPadding: defaultConfig_default.quadrantChart?.pointTextPadding || 5,
805
- pointLabelFontSize: defaultConfig_default.quadrantChart?.pointLabelFontSize || 12,
806
- pointRadius: defaultConfig_default.quadrantChart?.pointRadius || 5,
807
- xAxisPosition: defaultConfig_default.quadrantChart?.xAxisPosition || "top",
808
- yAxisPosition: defaultConfig_default.quadrantChart?.yAxisPosition || "left",
809
- quadrantInternalBorderStrokeWidth: defaultConfig_default.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
810
- quadrantExternalBorderStrokeWidth: defaultConfig_default.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
811
- };
812
- }
813
- getDefaultThemeConfig() {
814
- return {
815
- quadrant1Fill: defaultThemeVariables.quadrant1Fill,
816
- quadrant2Fill: defaultThemeVariables.quadrant2Fill,
817
- quadrant3Fill: defaultThemeVariables.quadrant3Fill,
818
- quadrant4Fill: defaultThemeVariables.quadrant4Fill,
819
- quadrant1TextFill: defaultThemeVariables.quadrant1TextFill,
820
- quadrant2TextFill: defaultThemeVariables.quadrant2TextFill,
821
- quadrant3TextFill: defaultThemeVariables.quadrant3TextFill,
822
- quadrant4TextFill: defaultThemeVariables.quadrant4TextFill,
823
- quadrantPointFill: defaultThemeVariables.quadrantPointFill,
824
- quadrantPointTextFill: defaultThemeVariables.quadrantPointTextFill,
825
- quadrantXAxisTextFill: defaultThemeVariables.quadrantXAxisTextFill,
826
- quadrantYAxisTextFill: defaultThemeVariables.quadrantYAxisTextFill,
827
- quadrantTitleFill: defaultThemeVariables.quadrantTitleFill,
828
- quadrantInternalBorderStrokeFill: defaultThemeVariables.quadrantInternalBorderStrokeFill,
829
- quadrantExternalBorderStrokeFill: defaultThemeVariables.quadrantExternalBorderStrokeFill
830
- };
831
- }
832
- clear() {
833
- this.config = this.getDefaultConfig();
834
- this.themeConfig = this.getDefaultThemeConfig();
835
- this.data = this.getDefaultData();
836
- this.classes = /* @__PURE__ */ new Map();
837
- log.info("clear called");
838
- }
839
- setData(data) {
840
- this.data = { ...this.data, ...data };
841
- }
842
- addPoints(points) {
843
- this.data.points = [...points, ...this.data.points];
844
- }
845
- addClass(className, styles) {
846
- this.classes.set(className, styles);
847
- }
848
- setConfig(config2) {
849
- log.trace("setConfig called with: ", config2);
850
- this.config = { ...this.config, ...config2 };
851
- }
852
- setThemeConfig(themeConfig) {
853
- log.trace("setThemeConfig called with: ", themeConfig);
854
- this.themeConfig = { ...this.themeConfig, ...themeConfig };
855
- }
856
- calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle) {
857
- const xAxisSpaceCalculation = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize;
858
- const xAxisSpace = {
859
- top: xAxisPosition === "top" && showXAxis ? xAxisSpaceCalculation : 0,
860
- bottom: xAxisPosition === "bottom" && showXAxis ? xAxisSpaceCalculation : 0
861
- };
862
- const yAxisSpaceCalculation = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize;
863
- const yAxisSpace = {
864
- left: this.config.yAxisPosition === "left" && showYAxis ? yAxisSpaceCalculation : 0,
865
- right: this.config.yAxisPosition === "right" && showYAxis ? yAxisSpaceCalculation : 0
866
- };
867
- const titleSpaceCalculation = this.config.titleFontSize + this.config.titlePadding * 2;
868
- const titleSpace = {
869
- top: showTitle ? titleSpaceCalculation : 0
870
- };
871
- const quadrantLeft = this.config.quadrantPadding + yAxisSpace.left;
872
- const quadrantTop = this.config.quadrantPadding + xAxisSpace.top + titleSpace.top;
873
- const quadrantWidth = this.config.chartWidth - this.config.quadrantPadding * 2 - yAxisSpace.left - yAxisSpace.right;
874
- const quadrantHeight = this.config.chartHeight - this.config.quadrantPadding * 2 - xAxisSpace.top - xAxisSpace.bottom - titleSpace.top;
875
- const quadrantHalfWidth = quadrantWidth / 2;
876
- const quadrantHalfHeight = quadrantHeight / 2;
877
- const quadrantSpace = {
878
- quadrantLeft,
879
- quadrantTop,
880
- quadrantWidth,
881
- quadrantHalfWidth,
882
- quadrantHeight,
883
- quadrantHalfHeight
884
- };
885
- return {
886
- xAxisSpace,
887
- yAxisSpace,
888
- titleSpace,
889
- quadrantSpace
890
- };
891
- }
892
- getAxisLabels(xAxisPosition, showXAxis, showYAxis, spaceData) {
893
- const { quadrantSpace, titleSpace } = spaceData;
894
- const {
895
- quadrantHalfHeight,
896
- quadrantHeight,
897
- quadrantLeft,
898
- quadrantHalfWidth,
899
- quadrantTop,
900
- quadrantWidth
901
- } = quadrantSpace;
902
- const drawXAxisLabelsInMiddle = Boolean(this.data.xAxisRightText);
903
- const drawYAxisLabelsInMiddle = Boolean(this.data.yAxisTopText);
904
- const axisLabels = [];
905
- if (this.data.xAxisLeftText && showXAxis) {
906
- axisLabels.push({
907
- text: this.data.xAxisLeftText,
908
- fill: this.themeConfig.quadrantXAxisTextFill,
909
- x: quadrantLeft + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),
910
- y: xAxisPosition === "top" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,
911
- fontSize: this.config.xAxisLabelFontSize,
912
- verticalPos: drawXAxisLabelsInMiddle ? "center" : "left",
913
- horizontalPos: "top",
914
- rotation: 0
915
- });
916
- }
917
- if (this.data.xAxisRightText && showXAxis) {
918
- axisLabels.push({
919
- text: this.data.xAxisRightText,
920
- fill: this.themeConfig.quadrantXAxisTextFill,
921
- x: quadrantLeft + quadrantHalfWidth + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),
922
- y: xAxisPosition === "top" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,
923
- fontSize: this.config.xAxisLabelFontSize,
924
- verticalPos: drawXAxisLabelsInMiddle ? "center" : "left",
925
- horizontalPos: "top",
926
- rotation: 0
927
- });
928
- }
929
- if (this.data.yAxisBottomText && showYAxis) {
930
- axisLabels.push({
931
- text: this.data.yAxisBottomText,
932
- fill: this.themeConfig.quadrantYAxisTextFill,
933
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,
934
- y: quadrantTop + quadrantHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),
935
- fontSize: this.config.yAxisLabelFontSize,
936
- verticalPos: drawYAxisLabelsInMiddle ? "center" : "left",
937
- horizontalPos: "top",
938
- rotation: -90
939
- });
940
- }
941
- if (this.data.yAxisTopText && showYAxis) {
942
- axisLabels.push({
943
- text: this.data.yAxisTopText,
944
- fill: this.themeConfig.quadrantYAxisTextFill,
945
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,
946
- y: quadrantTop + quadrantHalfHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),
947
- fontSize: this.config.yAxisLabelFontSize,
948
- verticalPos: drawYAxisLabelsInMiddle ? "center" : "left",
949
- horizontalPos: "top",
950
- rotation: -90
951
- });
952
- }
953
- return axisLabels;
954
- }
955
- getQuadrants(spaceData) {
956
- const { quadrantSpace } = spaceData;
957
- const { quadrantHalfHeight, quadrantLeft, quadrantHalfWidth, quadrantTop } = quadrantSpace;
958
- const quadrants = [
959
- {
960
- text: {
961
- text: this.data.quadrant1Text,
962
- fill: this.themeConfig.quadrant1TextFill,
963
- x: 0,
964
- y: 0,
965
- fontSize: this.config.quadrantLabelFontSize,
966
- verticalPos: "center",
967
- horizontalPos: "middle",
968
- rotation: 0
969
- },
970
- x: quadrantLeft + quadrantHalfWidth,
971
- y: quadrantTop,
972
- width: quadrantHalfWidth,
973
- height: quadrantHalfHeight,
974
- fill: this.themeConfig.quadrant1Fill
975
- },
976
- {
977
- text: {
978
- text: this.data.quadrant2Text,
979
- fill: this.themeConfig.quadrant2TextFill,
980
- x: 0,
981
- y: 0,
982
- fontSize: this.config.quadrantLabelFontSize,
983
- verticalPos: "center",
984
- horizontalPos: "middle",
985
- rotation: 0
986
- },
987
- x: quadrantLeft,
988
- y: quadrantTop,
989
- width: quadrantHalfWidth,
990
- height: quadrantHalfHeight,
991
- fill: this.themeConfig.quadrant2Fill
992
- },
993
- {
994
- text: {
995
- text: this.data.quadrant3Text,
996
- fill: this.themeConfig.quadrant3TextFill,
997
- x: 0,
998
- y: 0,
999
- fontSize: this.config.quadrantLabelFontSize,
1000
- verticalPos: "center",
1001
- horizontalPos: "middle",
1002
- rotation: 0
1003
- },
1004
- x: quadrantLeft,
1005
- y: quadrantTop + quadrantHalfHeight,
1006
- width: quadrantHalfWidth,
1007
- height: quadrantHalfHeight,
1008
- fill: this.themeConfig.quadrant3Fill
1009
- },
1010
- {
1011
- text: {
1012
- text: this.data.quadrant4Text,
1013
- fill: this.themeConfig.quadrant4TextFill,
1014
- x: 0,
1015
- y: 0,
1016
- fontSize: this.config.quadrantLabelFontSize,
1017
- verticalPos: "center",
1018
- horizontalPos: "middle",
1019
- rotation: 0
1020
- },
1021
- x: quadrantLeft + quadrantHalfWidth,
1022
- y: quadrantTop + quadrantHalfHeight,
1023
- width: quadrantHalfWidth,
1024
- height: quadrantHalfHeight,
1025
- fill: this.themeConfig.quadrant4Fill
1026
- }
1027
- ];
1028
- for (const quadrant of quadrants) {
1029
- quadrant.text.x = quadrant.x + quadrant.width / 2;
1030
- if (this.data.points.length === 0) {
1031
- quadrant.text.y = quadrant.y + quadrant.height / 2;
1032
- quadrant.text.horizontalPos = "middle";
1033
- } else {
1034
- quadrant.text.y = quadrant.y + this.config.quadrantTextTopPadding;
1035
- quadrant.text.horizontalPos = "top";
1036
- }
1037
- }
1038
- return quadrants;
1039
- }
1040
- getQuadrantPoints(spaceData) {
1041
- const { quadrantSpace } = spaceData;
1042
- const { quadrantHeight, quadrantLeft, quadrantTop, quadrantWidth } = quadrantSpace;
1043
- const xAxis = linear().domain([0, 1]).range([quadrantLeft, quadrantWidth + quadrantLeft]);
1044
- const yAxis = linear().domain([0, 1]).range([quadrantHeight + quadrantTop, quadrantTop]);
1045
- const points = this.data.points.map((point) => {
1046
- const classStyles = this.classes.get(point.className);
1047
- if (classStyles) {
1048
- point = { ...classStyles, ...point };
1049
- }
1050
- const props = {
1051
- x: xAxis(point.x),
1052
- y: yAxis(point.y),
1053
- fill: point.color ?? this.themeConfig.quadrantPointFill,
1054
- radius: point.radius ?? this.config.pointRadius,
1055
- text: {
1056
- text: point.text,
1057
- fill: this.themeConfig.quadrantPointTextFill,
1058
- x: xAxis(point.x),
1059
- y: yAxis(point.y) + this.config.pointTextPadding,
1060
- verticalPos: "center",
1061
- horizontalPos: "top",
1062
- fontSize: this.config.pointLabelFontSize,
1063
- rotation: 0
1064
- },
1065
- strokeColor: point.strokeColor ?? this.themeConfig.quadrantPointFill,
1066
- strokeWidth: point.strokeWidth ?? "0px"
1067
- };
1068
- return props;
1069
- });
1070
- return points;
1071
- }
1072
- getBorders(spaceData) {
1073
- const halfExternalBorderWidth = this.config.quadrantExternalBorderStrokeWidth / 2;
1074
- const { quadrantSpace } = spaceData;
1075
- const {
1076
- quadrantHalfHeight,
1077
- quadrantHeight,
1078
- quadrantLeft,
1079
- quadrantHalfWidth,
1080
- quadrantTop,
1081
- quadrantWidth
1082
- } = quadrantSpace;
1083
- const borderLines = [
1084
- // top border
1085
- {
1086
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1087
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1088
- x1: quadrantLeft - halfExternalBorderWidth,
1089
- y1: quadrantTop,
1090
- x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,
1091
- y2: quadrantTop
1092
- },
1093
- // right border
1094
- {
1095
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1096
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1097
- x1: quadrantLeft + quadrantWidth,
1098
- y1: quadrantTop + halfExternalBorderWidth,
1099
- x2: quadrantLeft + quadrantWidth,
1100
- y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1101
- },
1102
- // bottom border
1103
- {
1104
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1105
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1106
- x1: quadrantLeft - halfExternalBorderWidth,
1107
- y1: quadrantTop + quadrantHeight,
1108
- x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,
1109
- y2: quadrantTop + quadrantHeight
1110
- },
1111
- // left border
1112
- {
1113
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1114
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1115
- x1: quadrantLeft,
1116
- y1: quadrantTop + halfExternalBorderWidth,
1117
- x2: quadrantLeft,
1118
- y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1119
- },
1120
- // vertical inner border
1121
- {
1122
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1123
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1124
- x1: quadrantLeft + quadrantHalfWidth,
1125
- y1: quadrantTop + halfExternalBorderWidth,
1126
- x2: quadrantLeft + quadrantHalfWidth,
1127
- y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1128
- },
1129
- // horizontal inner border
1130
- {
1131
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1132
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1133
- x1: quadrantLeft + halfExternalBorderWidth,
1134
- y1: quadrantTop + quadrantHalfHeight,
1135
- x2: quadrantLeft + quadrantWidth - halfExternalBorderWidth,
1136
- y2: quadrantTop + quadrantHalfHeight
1137
- }
1138
- ];
1139
- return borderLines;
1140
- }
1141
- getTitle(showTitle) {
1142
- if (showTitle) {
1143
- return {
1144
- text: this.data.titleText,
1145
- fill: this.themeConfig.quadrantTitleFill,
1146
- fontSize: this.config.titleFontSize,
1147
- horizontalPos: "top",
1148
- verticalPos: "center",
1149
- rotation: 0,
1150
- y: this.config.titlePadding,
1151
- x: this.config.chartWidth / 2
1152
- };
1153
- }
1154
- return;
1155
- }
1156
- build() {
1157
- const showXAxis = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText);
1158
- const showYAxis = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText);
1159
- const showTitle = this.config.showTitle && !!this.data.titleText;
1160
- const xAxisPosition = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition;
1161
- const calculatedSpace = this.calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle);
1162
- return {
1163
- points: this.getQuadrantPoints(calculatedSpace),
1164
- quadrants: this.getQuadrants(calculatedSpace),
1165
- axisLabels: this.getAxisLabels(xAxisPosition, showXAxis, showYAxis, calculatedSpace),
1166
- borderLines: this.getBorders(calculatedSpace),
1167
- title: this.getTitle(showTitle)
1168
- };
1169
- }
1170
- };
1171
- var InvalidStyleError = class extends Error {
1172
- static {
1173
- __name(this, "InvalidStyleError");
1174
- }
1175
- constructor(style, value, type) {
1176
- super(`value for ${style} ${value} is invalid, please use a valid ${type}`);
1177
- this.name = "InvalidStyleError";
1178
- }
1179
- };
1180
- function validateHexCode(value) {
1181
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(value);
1182
- }
1183
- __name(validateHexCode, "validateHexCode");
1184
- function validateNumber(value) {
1185
- return !/^\d+$/.test(value);
1186
- }
1187
- __name(validateNumber, "validateNumber");
1188
- function validateSizeInPixels(value) {
1189
- return !/^\d+px$/.test(value);
1190
- }
1191
- __name(validateSizeInPixels, "validateSizeInPixels");
1192
- var config = getConfig2();
1193
- function textSanitizer(text) {
1194
- return sanitizeText(text.trim(), config);
1195
- }
1196
- __name(textSanitizer, "textSanitizer");
1197
- var quadrantBuilder = new QuadrantBuilder();
1198
- function setQuadrant1Text(textObj) {
1199
- quadrantBuilder.setData({ quadrant1Text: textSanitizer(textObj.text) });
1200
- }
1201
- __name(setQuadrant1Text, "setQuadrant1Text");
1202
- function setQuadrant2Text(textObj) {
1203
- quadrantBuilder.setData({ quadrant2Text: textSanitizer(textObj.text) });
1204
- }
1205
- __name(setQuadrant2Text, "setQuadrant2Text");
1206
- function setQuadrant3Text(textObj) {
1207
- quadrantBuilder.setData({ quadrant3Text: textSanitizer(textObj.text) });
1208
- }
1209
- __name(setQuadrant3Text, "setQuadrant3Text");
1210
- function setQuadrant4Text(textObj) {
1211
- quadrantBuilder.setData({ quadrant4Text: textSanitizer(textObj.text) });
1212
- }
1213
- __name(setQuadrant4Text, "setQuadrant4Text");
1214
- function setXAxisLeftText(textObj) {
1215
- quadrantBuilder.setData({ xAxisLeftText: textSanitizer(textObj.text) });
1216
- }
1217
- __name(setXAxisLeftText, "setXAxisLeftText");
1218
- function setXAxisRightText(textObj) {
1219
- quadrantBuilder.setData({ xAxisRightText: textSanitizer(textObj.text) });
1220
- }
1221
- __name(setXAxisRightText, "setXAxisRightText");
1222
- function setYAxisTopText(textObj) {
1223
- quadrantBuilder.setData({ yAxisTopText: textSanitizer(textObj.text) });
1224
- }
1225
- __name(setYAxisTopText, "setYAxisTopText");
1226
- function setYAxisBottomText(textObj) {
1227
- quadrantBuilder.setData({ yAxisBottomText: textSanitizer(textObj.text) });
1228
- }
1229
- __name(setYAxisBottomText, "setYAxisBottomText");
1230
- function parseStyles(styles) {
1231
- const stylesObject = {};
1232
- for (const style of styles) {
1233
- const [key, value] = style.trim().split(/\s*:\s*/);
1234
- if (key === "radius") {
1235
- if (validateNumber(value)) {
1236
- throw new InvalidStyleError(key, value, "number");
1237
- }
1238
- stylesObject.radius = parseInt(value);
1239
- } else if (key === "color") {
1240
- if (validateHexCode(value)) {
1241
- throw new InvalidStyleError(key, value, "hex code");
1242
- }
1243
- stylesObject.color = value;
1244
- } else if (key === "stroke-color") {
1245
- if (validateHexCode(value)) {
1246
- throw new InvalidStyleError(key, value, "hex code");
1247
- }
1248
- stylesObject.strokeColor = value;
1249
- } else if (key === "stroke-width") {
1250
- if (validateSizeInPixels(value)) {
1251
- throw new InvalidStyleError(key, value, "number of pixels (eg. 10px)");
1252
- }
1253
- stylesObject.strokeWidth = value;
1254
- } else {
1255
- throw new Error(`style named ${key} is not supported.`);
1256
- }
1257
- }
1258
- return stylesObject;
1259
- }
1260
- __name(parseStyles, "parseStyles");
1261
- function addPoint(textObj, className, x, y, styles) {
1262
- const stylesObject = parseStyles(styles);
1263
- quadrantBuilder.addPoints([
1264
- {
1265
- x,
1266
- y,
1267
- text: textSanitizer(textObj.text),
1268
- className,
1269
- ...stylesObject
1270
- }
1271
- ]);
1272
- }
1273
- __name(addPoint, "addPoint");
1274
- function addClass(className, styles) {
1275
- quadrantBuilder.addClass(className, parseStyles(styles));
1276
- }
1277
- __name(addClass, "addClass");
1278
- function setWidth(width) {
1279
- quadrantBuilder.setConfig({ chartWidth: width });
1280
- }
1281
- __name(setWidth, "setWidth");
1282
- function setHeight(height) {
1283
- quadrantBuilder.setConfig({ chartHeight: height });
1284
- }
1285
- __name(setHeight, "setHeight");
1286
- function getQuadrantData() {
1287
- const config2 = getConfig2();
1288
- const { themeVariables, quadrantChart: quadrantChartConfig } = config2;
1289
- if (quadrantChartConfig) {
1290
- quadrantBuilder.setConfig(quadrantChartConfig);
1291
- }
1292
- quadrantBuilder.setThemeConfig({
1293
- quadrant1Fill: themeVariables.quadrant1Fill,
1294
- quadrant2Fill: themeVariables.quadrant2Fill,
1295
- quadrant3Fill: themeVariables.quadrant3Fill,
1296
- quadrant4Fill: themeVariables.quadrant4Fill,
1297
- quadrant1TextFill: themeVariables.quadrant1TextFill,
1298
- quadrant2TextFill: themeVariables.quadrant2TextFill,
1299
- quadrant3TextFill: themeVariables.quadrant3TextFill,
1300
- quadrant4TextFill: themeVariables.quadrant4TextFill,
1301
- quadrantPointFill: themeVariables.quadrantPointFill,
1302
- quadrantPointTextFill: themeVariables.quadrantPointTextFill,
1303
- quadrantXAxisTextFill: themeVariables.quadrantXAxisTextFill,
1304
- quadrantYAxisTextFill: themeVariables.quadrantYAxisTextFill,
1305
- quadrantExternalBorderStrokeFill: themeVariables.quadrantExternalBorderStrokeFill,
1306
- quadrantInternalBorderStrokeFill: themeVariables.quadrantInternalBorderStrokeFill,
1307
- quadrantTitleFill: themeVariables.quadrantTitleFill
1308
- });
1309
- quadrantBuilder.setData({ titleText: getDiagramTitle() });
1310
- return quadrantBuilder.build();
1311
- }
1312
- __name(getQuadrantData, "getQuadrantData");
1313
- var clear2 = /* @__PURE__ */ __name(function() {
1314
- quadrantBuilder.clear();
1315
- clear();
1316
- }, "clear");
1317
- var quadrantDb_default = {
1318
- setWidth,
1319
- setHeight,
1320
- setQuadrant1Text,
1321
- setQuadrant2Text,
1322
- setQuadrant3Text,
1323
- setQuadrant4Text,
1324
- setXAxisLeftText,
1325
- setXAxisRightText,
1326
- setYAxisTopText,
1327
- setYAxisBottomText,
1328
- parseStyles,
1329
- addPoint,
1330
- addClass,
1331
- getQuadrantData,
1332
- clear: clear2,
1333
- setAccTitle,
1334
- getAccTitle,
1335
- setDiagramTitle,
1336
- getDiagramTitle,
1337
- getAccDescription,
1338
- setAccDescription
1339
- };
1340
- var draw = /* @__PURE__ */ __name((txt, id, _version, diagObj) => {
1341
- function getDominantBaseLine(horizontalPos) {
1342
- return horizontalPos === "top" ? "hanging" : "middle";
1343
- }
1344
- __name(getDominantBaseLine, "getDominantBaseLine");
1345
- function getTextAnchor(verticalPos) {
1346
- return verticalPos === "left" ? "start" : "middle";
1347
- }
1348
- __name(getTextAnchor, "getTextAnchor");
1349
- function getTransformation(data) {
1350
- return `translate(${data.x}, ${data.y}) rotate(${data.rotation || 0})`;
1351
- }
1352
- __name(getTransformation, "getTransformation");
1353
- const conf = getConfig2();
1354
- log.debug("Rendering quadrant chart\n" + txt);
1355
- const securityLevel = conf.securityLevel;
1356
- let sandboxElement;
1357
- if (securityLevel === "sandbox") {
1358
- sandboxElement = select_default("#i" + id);
1359
- }
1360
- const root = securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body");
1361
- const svg = root.select(`[id="${id}"]`);
1362
- const group = svg.append("g").attr("class", "main");
1363
- const width = conf.quadrantChart?.chartWidth ?? 500;
1364
- const height = conf.quadrantChart?.chartHeight ?? 500;
1365
- configureSvgSize(svg, height, width, conf.quadrantChart?.useMaxWidth ?? true);
1366
- svg.attr("viewBox", "0 0 " + width + " " + height);
1367
- diagObj.db.setHeight(height);
1368
- diagObj.db.setWidth(width);
1369
- const quadrantData = diagObj.db.getQuadrantData();
1370
- const quadrantsGroup = group.append("g").attr("class", "quadrants");
1371
- const borderGroup = group.append("g").attr("class", "border");
1372
- const dataPointGroup = group.append("g").attr("class", "data-points");
1373
- const labelGroup = group.append("g").attr("class", "labels");
1374
- const titleGroup = group.append("g").attr("class", "title");
1375
- if (quadrantData.title) {
1376
- titleGroup.append("text").attr("x", 0).attr("y", 0).attr("fill", quadrantData.title.fill).attr("font-size", quadrantData.title.fontSize).attr("dominant-baseline", getDominantBaseLine(quadrantData.title.horizontalPos)).attr("text-anchor", getTextAnchor(quadrantData.title.verticalPos)).attr("transform", getTransformation(quadrantData.title)).text(quadrantData.title.text);
1377
- }
1378
- if (quadrantData.borderLines) {
1379
- borderGroup.selectAll("line").data(quadrantData.borderLines).enter().append("line").attr("x1", (data) => data.x1).attr("y1", (data) => data.y1).attr("x2", (data) => data.x2).attr("y2", (data) => data.y2).style("stroke", (data) => data.strokeFill).style("stroke-width", (data) => data.strokeWidth);
1380
- }
1381
- const quadrants = quadrantsGroup.selectAll("g.quadrant").data(quadrantData.quadrants).enter().append("g").attr("class", "quadrant");
1382
- quadrants.append("rect").attr("x", (data) => data.x).attr("y", (data) => data.y).attr("width", (data) => data.width).attr("height", (data) => data.height).attr("fill", (data) => data.fill);
1383
- quadrants.append("text").attr("x", 0).attr("y", 0).attr("fill", (data) => data.text.fill).attr("font-size", (data) => data.text.fontSize).attr(
1384
- "dominant-baseline",
1385
- (data) => getDominantBaseLine(data.text.horizontalPos)
1386
- ).attr("text-anchor", (data) => getTextAnchor(data.text.verticalPos)).attr("transform", (data) => getTransformation(data.text)).text((data) => data.text.text);
1387
- const labels = labelGroup.selectAll("g.label").data(quadrantData.axisLabels).enter().append("g").attr("class", "label");
1388
- labels.append("text").attr("x", 0).attr("y", 0).text((data) => data.text).attr("fill", (data) => data.fill).attr("font-size", (data) => data.fontSize).attr("dominant-baseline", (data) => getDominantBaseLine(data.horizontalPos)).attr("text-anchor", (data) => getTextAnchor(data.verticalPos)).attr("transform", (data) => getTransformation(data));
1389
- const dataPoints = dataPointGroup.selectAll("g.data-point").data(quadrantData.points).enter().append("g").attr("class", "data-point");
1390
- dataPoints.append("circle").attr("cx", (data) => data.x).attr("cy", (data) => data.y).attr("r", (data) => data.radius).attr("fill", (data) => data.fill).attr("stroke", (data) => data.strokeColor).attr("stroke-width", (data) => data.strokeWidth);
1391
- dataPoints.append("text").attr("x", 0).attr("y", 0).text((data) => data.text.text).attr("fill", (data) => data.text.fill).attr("font-size", (data) => data.text.fontSize).attr(
1392
- "dominant-baseline",
1393
- (data) => getDominantBaseLine(data.text.horizontalPos)
1394
- ).attr("text-anchor", (data) => getTextAnchor(data.text.verticalPos)).attr("transform", (data) => getTransformation(data.text));
1395
- }, "draw");
1396
- var quadrantRenderer_default = {
1397
- draw
1398
- };
1399
- var diagram = {
1400
- parser: quadrant_default,
1401
- db: quadrantDb_default,
1402
- renderer: quadrantRenderer_default,
1403
- styles: /* @__PURE__ */ __name(() => "", "styles")
1404
- };
1405
- export {
1406
- diagram
1407
- };
1408
- //# sourceMappingURL=quadrantDiagram-OS5C2QUG-MW26UCZV.js.map