@webskill/sdk 0.21.0 → 0.23.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 (135) hide show
  1. package/dist/abnfDiagram-O67JEVCF-DtYFjfqO.js +109 -0
  2. package/dist/agent.d.ts +3 -3
  3. package/dist/agent.js +1174 -169
  4. package/dist/{approval-DwN2o2QG.js → approval-7CuZS3Z4.js} +104 -18
  5. package/dist/arc-8U_6NQWm.js +130 -0
  6. package/dist/architecture-7GRP2DOG-RTw1wpAq.js +4 -0
  7. package/dist/architectureDiagram-NJMV4G6O-XmmXrJAK.js +7473 -0
  8. package/dist/array-DQfpQNY8.js +8 -0
  9. package/dist/blockDiagram-BEXU5L5S-D4yjnCD1.js +2582 -0
  10. package/dist/browser.d.ts +455 -49
  11. package/dist/browser.js +2134 -138
  12. package/dist/c4Diagram-YGBWAQC7-BLmA_JSd.js +3668 -0
  13. package/dist/channel-CZxxLrG7.js +9 -0
  14. package/dist/chunk-2Q5K7J3B-Ck03gkFR.js +21 -0
  15. package/dist/chunk-3FUC2YCW-tr6jmbQf.js +530 -0
  16. package/dist/chunk-5DYCD2WN-Bt97YGTd.js +58 -0
  17. package/dist/chunk-5VM5RSS4-BBxa48HL.js +21 -0
  18. package/dist/chunk-6AEJRKK7-JXK89I-O.js +14 -0
  19. package/dist/chunk-742MDFTN-CPmgCGwC.js +466 -0
  20. package/dist/chunk-7INBJB4K-C9jq9o66.js +6552 -0
  21. package/dist/chunk-7M6MHVWA-BrKCWcR1.js +4894 -0
  22. package/dist/chunk-7PRAP22T-BHED6GVs.js +95 -0
  23. package/dist/chunk-DUW6YSOI-DoZj78PO.js +19 -0
  24. package/dist/chunk-FOHPRMQF-Dkbp819z.js +27189 -0
  25. package/dist/chunk-GNY47TPC-Bpvq1T49.js +87 -0
  26. package/dist/chunk-GTNCS2PH-CLmh4I2c.js +686 -0
  27. package/dist/chunk-GWA4HPMP-B6vN3fkL.js +95 -0
  28. package/dist/chunk-J5ZVWO5B-Bi_Pcobw.js +26 -0
  29. package/dist/chunk-JWPE2WC7-D1rC79GS.js +12 -0
  30. package/dist/chunk-LNGE3PJU-D5OIoe3Z.js +2582 -0
  31. package/dist/chunk-MBY4JIJT-C34L7a4f.js +2276 -0
  32. package/dist/chunk-NETBCI7D-Cg84k8N8.js +321 -0
  33. package/dist/chunk-O7XYJQB3-B6K0KOSL.js +8846 -0
  34. package/dist/chunk-UA2S7LBM-DxHM29_K.js +612 -0
  35. package/dist/chunk-WEXAMYUT-Ba6jFWhB.js +33 -0
  36. package/dist/chunk-XXDRQBXY-DPbSy4kg.js +12 -0
  37. package/dist/chunk-Y2CYZVJY-U3QOMqrW.js +15 -0
  38. package/dist/chunk-Z7XXMR3K-oLg1h8F3.js +1038 -0
  39. package/dist/chunk-ZIGJFQKS-DqEFBuHR.js +2215 -0
  40. package/dist/classDiagram-v2-NBCMYWYE-BqnOWIUt.js +3845 -0
  41. package/dist/cose-bilkent-JH36ORCC-C0dTAHVK.js +4270 -0
  42. package/dist/cynefin-OW5HDTMX-B2QvgEQj.js +4 -0
  43. package/dist/cynefinDiagram-VND7K2PF-yAWc6Z3W.js +479 -0
  44. package/dist/cytoscape.esm-C64mRh9B.js +28325 -0
  45. package/dist/dagre-6A5THRUB-D0w2W27v.js +4816 -0
  46. package/dist/defaultLocale-B_EoOkSF.js +249 -0
  47. package/dist/diagram-22UHCM2B-DvgzhUzP.js +6115 -0
  48. package/dist/diagram-3UASUU5V-DWgUB-ef.js +795 -0
  49. package/dist/diagram-ATOU4E4O-P1olqwIs.js +553 -0
  50. package/dist/diagram-CDSNMT55-BUlZuLUe.js +402 -0
  51. package/dist/diagram-MLGK6HIB-6w5qmkGt.js +186 -0
  52. package/dist/diagram-MPIPVDR6-DEFiSo8o.js +289 -0
  53. package/dist/dist-UajCDt3n.js +92 -0
  54. package/dist/ebnfDiagram-ZINNZB2B-CI8liCfR.js +123 -0
  55. package/dist/elk-276RUBZZ-3SvW6OAK.js +90034 -0
  56. package/dist/erDiagram-OPXOYQCR-CPTbKhwP.js +2301 -0
  57. package/dist/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
  58. package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
  59. package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
  60. package/dist/{toolSource-C9oNuKmr.js → geometry-CRhuySKV.js} +169 -12
  61. package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
  62. package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
  63. package/dist/governance.d.ts +22 -4
  64. package/dist/governance.js +100 -10
  65. package/dist/graphlib-tk9gQYuN.js +4194 -0
  66. package/dist/{index-DHopiH_m.d.ts → index-7No55dRb.d.ts} +161 -11
  67. package/dist/{index-B8Tgmpwh.d.ts → index-ShvCB5I9.d.ts} +2 -2
  68. package/dist/{index-CYLt5u4L.d.ts → index-V76_OFj2.d.ts} +789 -21
  69. package/dist/index.d.ts +4 -4
  70. package/dist/index.js +11 -9
  71. package/dist/info-A6RAGUB7-CxRAt9S9.js +4 -0
  72. package/dist/infoDiagram-VRGFBTTK-pRspGfjZ.js +25 -0
  73. package/dist/init-CMOIWdg-.js +16 -0
  74. package/dist/ishikawaDiagram-OU5B5YK6-DKerAPAg.js +975 -0
  75. package/dist/journeyDiagram-ZHPQQLJL-C4MK-YO5.js +1227 -0
  76. package/dist/kanban-definition-PNTS6WVX-BqsZpMXx.js +1244 -0
  77. package/dist/katex-BcRRvyh_.js +26465 -0
  78. package/dist/{kind-DaKqLX2F.js → kind-Dc8x0HWz.js} +54 -7
  79. package/dist/line-LgV8iVMV.js +48 -0
  80. package/dist/linear-BWKR0Tqd.js +393 -0
  81. package/dist/linkedDocument-CZZOl9cO.js +456 -0
  82. package/dist/mcp.d.ts +2 -2
  83. package/dist/{memoryArtifactStore-D6dLeY55.js → memoryArtifactStore-Bs7glPqm.js} +14 -0
  84. package/dist/mermaid-parser.core-pYR5siSx.js +754 -0
  85. package/dist/mermaid.core-DMtwGCHy.js +1756 -0
  86. package/dist/mindmap-definition-NLK3R4M7-CXbD-myG.js +1312 -0
  87. package/dist/node.d.ts +3 -3
  88. package/dist/node.js +12 -5
  89. package/dist/{openUiLibrary-b0i7F_oZ.js → openUiLibrary-B7j3rLrm.js} +1 -1
  90. package/dist/{openUiSpecLang-CLXJEeRU.js → openUiSpecLang-BSYYnjay.js} +1 -1
  91. package/dist/ordinal-CxA6GHQS.js +84 -0
  92. package/dist/packet-AYTQ26CC-BOm08cxl.js +4 -0
  93. package/dist/path-C27Z2Bjv.js +106 -0
  94. package/dist/{pathSecurity-B1owvJAF.js → pathSecurity-CirkQwWP.js} +12 -1
  95. package/dist/pegDiagram-GJSIUBJH-BLGJOewQ.js +115 -0
  96. package/dist/pie-WAS4IAKB-Dvg7glpk.js +4 -0
  97. package/dist/pieDiagram-5QR66LMP-laoaV_PB.js +298 -0
  98. package/dist/quadrantDiagram-O4NWA36T-Db_wFBkT.js +2236 -0
  99. package/dist/radar-RG4KPBEZ-BZDaTu06.js +4 -0
  100. package/dist/railroad-74A4TZTK-C-UhjkOy.js +4 -0
  101. package/dist/railroad-abnf-HS5TGJTU-dUKVA4OS.js +4 -0
  102. package/dist/railroad-ebnf-LZEXJU2U-DzQumk18.js +4 -0
  103. package/dist/railroad-peg-WCYAUIDC-B3vvTWed.js +4 -0
  104. package/dist/railroadDiagram-XR7U4H2S-BY0sTM4X.js +89 -0
  105. package/dist/requirementDiagram-PLB6GJNP-3rkQfEhs.js +2474 -0
  106. package/dist/rough.cjs-AmDd_NQk.js +1395 -0
  107. package/dist/sankeyDiagram-IPEJSGJF-CGAJhyG2.js +3578 -0
  108. package/dist/sequenceDiagram-PO4LG4MO-9FJjFX06.js +5522 -0
  109. package/dist/sizeCapture-INFHLROL-D8PWxdOn.js +56 -0
  110. package/dist/{skill-CAJMsLod.js → skill-WSUDp6A1.js} +1 -1
  111. package/dist/{skillVersionStore-B24Jjjry-BkOk9wI_.d.ts → skillVersionStore-S4_HJ_Fl-Cvy9LqVu.d.ts} +35 -4
  112. package/dist/src-NkhI3UMl.js +2653 -0
  113. package/dist/stateDiagram-v2-GCMORJYK-B0O3wc1-.js +2715 -0
  114. package/dist/swimlanes-2SLR337P-D4EOnrpu.js +6637 -0
  115. package/dist/swimlanesDiagram-TC7HE7FX-BUx29EJ9.js +30 -0
  116. package/dist/testing.d.ts +2 -1
  117. package/dist/testing.js +1 -1
  118. package/dist/timeline-definition-EJHVYXUP-CrgiiB4C.js +1513 -0
  119. package/dist/treeView-Q6P3EWNA-C1by-Gzc.js +4 -0
  120. package/dist/treemap-WGGIJYW6-mC2NZ6ad.js +4 -0
  121. package/dist/{types-BvTV_05--BW8zDuEk.d.ts → types-CpDRZ0rA-BiZBXGm4.d.ts} +66 -8
  122. package/dist/ui-react.d.ts +3 -3
  123. package/dist/ui-react.js +3746 -96
  124. package/dist/ui-vue.d.ts +1 -1
  125. package/dist/ui.d.ts +3 -3
  126. package/dist/ui.js +2 -2
  127. package/dist/usecaseDiagram-POWQR4AR-BUt_TQOY.js +14397 -0
  128. package/dist/vennDiagram-UO4OBE2U-CwXr0wjA.js +2808 -0
  129. package/dist/wardley-WFR3VGLG-CVSYjq_S.js +4 -0
  130. package/dist/wardleyDiagram-VNRHLVJA-Cpfd47dQ.js +874 -0
  131. package/dist/{webSkillApi-Cib6G-94.js → webSkillApi-D5VMUnrv.js} +2 -2
  132. package/dist/{webskillLitCatalog-W06npwej.js → webskillLitCatalog-D5BCiMCU.js} +1 -1
  133. package/dist/xychartDiagram-PMCCYNJV-e1TeVoc6.js +2704 -0
  134. package/package.json +1 -1
  135. package/dist/linkedDocument-C0gj1sMq.js +0 -245
@@ -0,0 +1,2236 @@
1
+ import { n as __name } from "./chunk-Y2CYZVJY-U3QOMqrW.js";
2
+ import { m as log, p as select_default } from "./src-NkhI3UMl.js";
3
+ import { D as getThemeVariables3, H as setAccDescription, U as setAccTitle, a as clear, c as configureSvgSize, f as defaultConfig_default, q as setDiagramTitle, v as getAccDescription, w as getDiagramTitle, x as getConfig2, y as getAccTitle, z as sanitizeText } from "./chunk-O7XYJQB3-B6K0KOSL.js";
4
+ import { t as linear } from "./linear-BWKR0Tqd.js";
5
+
6
+ //#region ../../node_modules/.pnpm/mermaid@12.0.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-O4NWA36T.mjs
7
+ var parser = (function() {
8
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
9
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v);
10
+ return o2;
11
+ }, "o"), $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [1, 7], $V5 = [
12
+ 1,
13
+ 4,
14
+ 5,
15
+ 10,
16
+ 12,
17
+ 13,
18
+ 14,
19
+ 15,
20
+ 18,
21
+ 25,
22
+ 35,
23
+ 37,
24
+ 39,
25
+ 41,
26
+ 42,
27
+ 48,
28
+ 50,
29
+ 51,
30
+ 52,
31
+ 53,
32
+ 54,
33
+ 55,
34
+ 56,
35
+ 57,
36
+ 60,
37
+ 61,
38
+ 63,
39
+ 64,
40
+ 65,
41
+ 66,
42
+ 67
43
+ ], $V6 = [
44
+ 1,
45
+ 4,
46
+ 5,
47
+ 10,
48
+ 12,
49
+ 13,
50
+ 14,
51
+ 15,
52
+ 18,
53
+ 25,
54
+ 28,
55
+ 35,
56
+ 37,
57
+ 39,
58
+ 41,
59
+ 42,
60
+ 48,
61
+ 50,
62
+ 51,
63
+ 52,
64
+ 53,
65
+ 54,
66
+ 55,
67
+ 56,
68
+ 57,
69
+ 60,
70
+ 61,
71
+ 63,
72
+ 64,
73
+ 65,
74
+ 66,
75
+ 67
76
+ ], $V7 = [
77
+ 55,
78
+ 56,
79
+ 57
80
+ ], $V8 = [2, 36], $V9 = [1, 37], $Va = [1, 36], $Vb = [1, 38], $Vc = [1, 35], $Vd = [1, 43], $Ve = [1, 41], $Vf = [1, 45], $Vg = [1, 14], $Vh = [1, 23], $Vi = [1, 18], $Vj = [1, 19], $Vk = [1, 20], $Vl = [1, 21], $Vm = [1, 22], $Vn = [1, 24], $Vo = [1, 25], $Vp = [1, 26], $Vq = [1, 27], $Vr = [1, 28], $Vs = [1, 29], $Vt = [1, 32], $Vu = [1, 33], $Vv = [1, 34], $Vw = [1, 39], $Vx = [1, 40], $Vy = [1, 42], $Vz = [1, 44], $VA = [1, 63], $VB = [1, 62], $VC = [
81
+ 4,
82
+ 5,
83
+ 8,
84
+ 10,
85
+ 12,
86
+ 13,
87
+ 14,
88
+ 15,
89
+ 18,
90
+ 44,
91
+ 47,
92
+ 49,
93
+ 55,
94
+ 56,
95
+ 57,
96
+ 63,
97
+ 64,
98
+ 65,
99
+ 66,
100
+ 67
101
+ ], $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 = [1, 77], $VP = [
102
+ 4,
103
+ 5,
104
+ 6,
105
+ 7,
106
+ 8,
107
+ 9,
108
+ 10,
109
+ 11,
110
+ 12,
111
+ 13,
112
+ 14,
113
+ 15,
114
+ 18
115
+ ], $VQ = [1, 91], $VR = [1, 92], $VS = [1, 93], $VT = [1, 100], $VU = [1, 94], $VV = [1, 97], $VW = [1, 95], $VX = [1, 96], $VY = [1, 98], $VZ = [1, 99], $V_ = [1, 103], $V$ = [
116
+ 10,
117
+ 55,
118
+ 56,
119
+ 57
120
+ ], $V01 = [
121
+ 4,
122
+ 5,
123
+ 6,
124
+ 8,
125
+ 10,
126
+ 11,
127
+ 13,
128
+ 17,
129
+ 18,
130
+ 19,
131
+ 20,
132
+ 55,
133
+ 56,
134
+ 57
135
+ ];
136
+ var parser2 = {
137
+ trace: /* @__PURE__ */ __name(function trace() {}, "trace"),
138
+ yy: {},
139
+ symbols_: {
140
+ "error": 2,
141
+ "idStringToken": 3,
142
+ "ALPHA": 4,
143
+ "NUM": 5,
144
+ "NODE_STRING": 6,
145
+ "DOWN": 7,
146
+ "MINUS": 8,
147
+ "DEFAULT": 9,
148
+ "COMMA": 10,
149
+ "COLON": 11,
150
+ "AMP": 12,
151
+ "BRKT": 13,
152
+ "MULT": 14,
153
+ "UNICODE_TEXT": 15,
154
+ "styleComponent": 16,
155
+ "UNIT": 17,
156
+ "SPACE": 18,
157
+ "STYLE": 19,
158
+ "PCT": 20,
159
+ "idString": 21,
160
+ "style": 22,
161
+ "stylesOpt": 23,
162
+ "classDefStatement": 24,
163
+ "CLASSDEF": 25,
164
+ "start": 26,
165
+ "eol": 27,
166
+ "QUADRANT": 28,
167
+ "document": 29,
168
+ "line": 30,
169
+ "statement": 31,
170
+ "axisDetails": 32,
171
+ "quadrantDetails": 33,
172
+ "points": 34,
173
+ "title": 35,
174
+ "title_value": 36,
175
+ "acc_title": 37,
176
+ "acc_title_value": 38,
177
+ "acc_descr": 39,
178
+ "acc_descr_value": 40,
179
+ "acc_descr_multiline_value": 41,
180
+ "section": 42,
181
+ "text": 43,
182
+ "point_start": 44,
183
+ "point_x": 45,
184
+ "point_y": 46,
185
+ "class_name": 47,
186
+ "X-AXIS": 48,
187
+ "AXIS-TEXT-DELIMITER": 49,
188
+ "Y-AXIS": 50,
189
+ "QUADRANT_1": 51,
190
+ "QUADRANT_2": 52,
191
+ "QUADRANT_3": 53,
192
+ "QUADRANT_4": 54,
193
+ "NEWLINE": 55,
194
+ "SEMI": 56,
195
+ "EOF": 57,
196
+ "alphaNumToken": 58,
197
+ "textNoTagsToken": 59,
198
+ "STR": 60,
199
+ "MD_STR": 61,
200
+ "alphaNum": 62,
201
+ "PUNCTUATION": 63,
202
+ "PLUS": 64,
203
+ "EQUALS": 65,
204
+ "DOT": 66,
205
+ "UNDERSCORE": 67,
206
+ "$accept": 0,
207
+ "$end": 1
208
+ },
209
+ terminals_: {
210
+ 2: "error",
211
+ 4: "ALPHA",
212
+ 5: "NUM",
213
+ 6: "NODE_STRING",
214
+ 7: "DOWN",
215
+ 8: "MINUS",
216
+ 9: "DEFAULT",
217
+ 10: "COMMA",
218
+ 11: "COLON",
219
+ 12: "AMP",
220
+ 13: "BRKT",
221
+ 14: "MULT",
222
+ 15: "UNICODE_TEXT",
223
+ 17: "UNIT",
224
+ 18: "SPACE",
225
+ 19: "STYLE",
226
+ 20: "PCT",
227
+ 25: "CLASSDEF",
228
+ 28: "QUADRANT",
229
+ 35: "title",
230
+ 36: "title_value",
231
+ 37: "acc_title",
232
+ 38: "acc_title_value",
233
+ 39: "acc_descr",
234
+ 40: "acc_descr_value",
235
+ 41: "acc_descr_multiline_value",
236
+ 42: "section",
237
+ 44: "point_start",
238
+ 45: "point_x",
239
+ 46: "point_y",
240
+ 47: "class_name",
241
+ 48: "X-AXIS",
242
+ 49: "AXIS-TEXT-DELIMITER",
243
+ 50: "Y-AXIS",
244
+ 51: "QUADRANT_1",
245
+ 52: "QUADRANT_2",
246
+ 53: "QUADRANT_3",
247
+ 54: "QUADRANT_4",
248
+ 55: "NEWLINE",
249
+ 56: "SEMI",
250
+ 57: "EOF",
251
+ 60: "STR",
252
+ 61: "MD_STR",
253
+ 63: "PUNCTUATION",
254
+ 64: "PLUS",
255
+ 65: "EQUALS",
256
+ 66: "DOT",
257
+ 67: "UNDERSCORE"
258
+ },
259
+ productions_: [
260
+ 0,
261
+ [3, 1],
262
+ [3, 1],
263
+ [3, 1],
264
+ [3, 1],
265
+ [3, 1],
266
+ [3, 1],
267
+ [3, 1],
268
+ [3, 1],
269
+ [3, 1],
270
+ [3, 1],
271
+ [3, 1],
272
+ [3, 1],
273
+ [16, 1],
274
+ [16, 1],
275
+ [16, 1],
276
+ [16, 1],
277
+ [16, 1],
278
+ [16, 1],
279
+ [16, 1],
280
+ [16, 1],
281
+ [16, 1],
282
+ [16, 1],
283
+ [21, 1],
284
+ [21, 2],
285
+ [22, 1],
286
+ [22, 2],
287
+ [23, 1],
288
+ [23, 3],
289
+ [24, 5],
290
+ [26, 2],
291
+ [26, 2],
292
+ [26, 2],
293
+ [29, 0],
294
+ [29, 2],
295
+ [30, 2],
296
+ [31, 0],
297
+ [31, 1],
298
+ [31, 2],
299
+ [31, 1],
300
+ [31, 1],
301
+ [31, 1],
302
+ [31, 2],
303
+ [31, 2],
304
+ [31, 2],
305
+ [31, 1],
306
+ [31, 1],
307
+ [34, 4],
308
+ [34, 5],
309
+ [34, 5],
310
+ [34, 6],
311
+ [32, 4],
312
+ [32, 3],
313
+ [32, 2],
314
+ [32, 4],
315
+ [32, 3],
316
+ [32, 2],
317
+ [33, 2],
318
+ [33, 2],
319
+ [33, 2],
320
+ [33, 2],
321
+ [27, 1],
322
+ [27, 1],
323
+ [27, 1],
324
+ [43, 1],
325
+ [43, 2],
326
+ [43, 1],
327
+ [43, 1],
328
+ [62, 1],
329
+ [62, 2],
330
+ [58, 1],
331
+ [58, 1],
332
+ [58, 1],
333
+ [58, 1],
334
+ [58, 1],
335
+ [58, 1],
336
+ [58, 1],
337
+ [58, 1],
338
+ [58, 1],
339
+ [58, 1],
340
+ [58, 1],
341
+ [58, 1],
342
+ [59, 1],
343
+ [59, 1],
344
+ [59, 1]
345
+ ],
346
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
347
+ var $0 = $$.length - 1;
348
+ switch (yystate) {
349
+ case 23:
350
+ this.$ = $$[$0];
351
+ break;
352
+ case 24:
353
+ this.$ = $$[$0 - 1] + "" + $$[$0];
354
+ break;
355
+ case 26:
356
+ this.$ = $$[$0 - 1] + $$[$0];
357
+ break;
358
+ case 27:
359
+ this.$ = [$$[$0].trim()];
360
+ break;
361
+ case 28:
362
+ $$[$0 - 2].push($$[$0].trim());
363
+ this.$ = $$[$0 - 2];
364
+ break;
365
+ case 29:
366
+ this.$ = $$[$0 - 4];
367
+ yy.addClass($$[$0 - 2], $$[$0]);
368
+ break;
369
+ case 37:
370
+ this.$ = [];
371
+ break;
372
+ case 42:
373
+ this.$ = $$[$0].trim();
374
+ yy.setDiagramTitle(this.$);
375
+ break;
376
+ case 43:
377
+ this.$ = $$[$0].trim();
378
+ yy.setAccTitle(this.$);
379
+ break;
380
+ case 44:
381
+ case 45:
382
+ this.$ = $$[$0].trim();
383
+ yy.setAccDescription(this.$);
384
+ break;
385
+ case 46:
386
+ yy.addSection($$[$0].substr(8));
387
+ this.$ = $$[$0].substr(8);
388
+ break;
389
+ case 47:
390
+ yy.addPoint($$[$0 - 3], "", $$[$0 - 1], $$[$0], []);
391
+ break;
392
+ case 48:
393
+ yy.addPoint($$[$0 - 4], $$[$0 - 3], $$[$0 - 1], $$[$0], []);
394
+ break;
395
+ case 49:
396
+ yy.addPoint($$[$0 - 4], "", $$[$0 - 2], $$[$0 - 1], $$[$0]);
397
+ break;
398
+ case 50:
399
+ yy.addPoint($$[$0 - 5], $$[$0 - 4], $$[$0 - 2], $$[$0 - 1], $$[$0]);
400
+ break;
401
+ case 51:
402
+ yy.setXAxisLeftText($$[$0 - 2]);
403
+ yy.setXAxisRightText($$[$0]);
404
+ break;
405
+ case 52:
406
+ $$[$0 - 1].text += " ⟶ ";
407
+ yy.setXAxisLeftText($$[$0 - 1]);
408
+ break;
409
+ case 53:
410
+ yy.setXAxisLeftText($$[$0]);
411
+ break;
412
+ case 54:
413
+ yy.setYAxisBottomText($$[$0 - 2]);
414
+ yy.setYAxisTopText($$[$0]);
415
+ break;
416
+ case 55:
417
+ $$[$0 - 1].text += " ⟶ ";
418
+ yy.setYAxisBottomText($$[$0 - 1]);
419
+ break;
420
+ case 56:
421
+ yy.setYAxisBottomText($$[$0]);
422
+ break;
423
+ case 57:
424
+ yy.setQuadrant1Text($$[$0]);
425
+ break;
426
+ case 58:
427
+ yy.setQuadrant2Text($$[$0]);
428
+ break;
429
+ case 59:
430
+ yy.setQuadrant3Text($$[$0]);
431
+ break;
432
+ case 60:
433
+ yy.setQuadrant4Text($$[$0]);
434
+ break;
435
+ case 64:
436
+ this.$ = {
437
+ text: $$[$0],
438
+ type: "text"
439
+ };
440
+ break;
441
+ case 65:
442
+ this.$ = {
443
+ text: $$[$0 - 1].text + "" + $$[$0],
444
+ type: $$[$0 - 1].type
445
+ };
446
+ break;
447
+ case 66:
448
+ this.$ = {
449
+ text: $$[$0],
450
+ type: "text"
451
+ };
452
+ break;
453
+ case 67:
454
+ this.$ = {
455
+ text: $$[$0],
456
+ type: "markdown"
457
+ };
458
+ break;
459
+ case 68:
460
+ this.$ = $$[$0];
461
+ break;
462
+ case 69:
463
+ this.$ = $$[$0 - 1] + "" + $$[$0];
464
+ break;
465
+ }
466
+ }, "anonymous"),
467
+ table: [
468
+ {
469
+ 18: $V0,
470
+ 26: 1,
471
+ 27: 2,
472
+ 28: $V1,
473
+ 55: $V2,
474
+ 56: $V3,
475
+ 57: $V4
476
+ },
477
+ { 1: [3] },
478
+ {
479
+ 18: $V0,
480
+ 26: 8,
481
+ 27: 2,
482
+ 28: $V1,
483
+ 55: $V2,
484
+ 56: $V3,
485
+ 57: $V4
486
+ },
487
+ {
488
+ 18: $V0,
489
+ 26: 9,
490
+ 27: 2,
491
+ 28: $V1,
492
+ 55: $V2,
493
+ 56: $V3,
494
+ 57: $V4
495
+ },
496
+ o($V5, [2, 33], { 29: 10 }),
497
+ o($V6, [2, 61]),
498
+ o($V6, [2, 62]),
499
+ o($V6, [2, 63]),
500
+ { 1: [2, 30] },
501
+ { 1: [2, 31] },
502
+ o($V7, $V8, {
503
+ 30: 11,
504
+ 31: 12,
505
+ 24: 13,
506
+ 32: 15,
507
+ 33: 16,
508
+ 34: 17,
509
+ 43: 30,
510
+ 58: 31,
511
+ 1: [2, 32],
512
+ 4: $V9,
513
+ 5: $Va,
514
+ 10: $Vb,
515
+ 12: $Vc,
516
+ 13: $Vd,
517
+ 14: $Ve,
518
+ 15: $Vf,
519
+ 18: $Vg,
520
+ 25: $Vh,
521
+ 35: $Vi,
522
+ 37: $Vj,
523
+ 39: $Vk,
524
+ 41: $Vl,
525
+ 42: $Vm,
526
+ 48: $Vn,
527
+ 50: $Vo,
528
+ 51: $Vp,
529
+ 52: $Vq,
530
+ 53: $Vr,
531
+ 54: $Vs,
532
+ 60: $Vt,
533
+ 61: $Vu,
534
+ 63: $Vv,
535
+ 64: $Vw,
536
+ 65: $Vx,
537
+ 66: $Vy,
538
+ 67: $Vz
539
+ }),
540
+ o($V5, [2, 34]),
541
+ {
542
+ 27: 46,
543
+ 55: $V2,
544
+ 56: $V3,
545
+ 57: $V4
546
+ },
547
+ o($V7, [2, 37]),
548
+ o($V7, $V8, {
549
+ 24: 13,
550
+ 32: 15,
551
+ 33: 16,
552
+ 34: 17,
553
+ 43: 30,
554
+ 58: 31,
555
+ 31: 47,
556
+ 4: $V9,
557
+ 5: $Va,
558
+ 10: $Vb,
559
+ 12: $Vc,
560
+ 13: $Vd,
561
+ 14: $Ve,
562
+ 15: $Vf,
563
+ 18: $Vg,
564
+ 25: $Vh,
565
+ 35: $Vi,
566
+ 37: $Vj,
567
+ 39: $Vk,
568
+ 41: $Vl,
569
+ 42: $Vm,
570
+ 48: $Vn,
571
+ 50: $Vo,
572
+ 51: $Vp,
573
+ 52: $Vq,
574
+ 53: $Vr,
575
+ 54: $Vs,
576
+ 60: $Vt,
577
+ 61: $Vu,
578
+ 63: $Vv,
579
+ 64: $Vw,
580
+ 65: $Vx,
581
+ 66: $Vy,
582
+ 67: $Vz
583
+ }),
584
+ o($V7, [2, 39]),
585
+ o($V7, [2, 40]),
586
+ o($V7, [2, 41]),
587
+ { 36: [1, 48] },
588
+ { 38: [1, 49] },
589
+ { 40: [1, 50] },
590
+ o($V7, [2, 45]),
591
+ o($V7, [2, 46]),
592
+ { 18: [1, 51] },
593
+ {
594
+ 4: $V9,
595
+ 5: $Va,
596
+ 10: $Vb,
597
+ 12: $Vc,
598
+ 13: $Vd,
599
+ 14: $Ve,
600
+ 15: $Vf,
601
+ 43: 52,
602
+ 58: 31,
603
+ 60: $Vt,
604
+ 61: $Vu,
605
+ 63: $Vv,
606
+ 64: $Vw,
607
+ 65: $Vx,
608
+ 66: $Vy,
609
+ 67: $Vz
610
+ },
611
+ {
612
+ 4: $V9,
613
+ 5: $Va,
614
+ 10: $Vb,
615
+ 12: $Vc,
616
+ 13: $Vd,
617
+ 14: $Ve,
618
+ 15: $Vf,
619
+ 43: 53,
620
+ 58: 31,
621
+ 60: $Vt,
622
+ 61: $Vu,
623
+ 63: $Vv,
624
+ 64: $Vw,
625
+ 65: $Vx,
626
+ 66: $Vy,
627
+ 67: $Vz
628
+ },
629
+ {
630
+ 4: $V9,
631
+ 5: $Va,
632
+ 10: $Vb,
633
+ 12: $Vc,
634
+ 13: $Vd,
635
+ 14: $Ve,
636
+ 15: $Vf,
637
+ 43: 54,
638
+ 58: 31,
639
+ 60: $Vt,
640
+ 61: $Vu,
641
+ 63: $Vv,
642
+ 64: $Vw,
643
+ 65: $Vx,
644
+ 66: $Vy,
645
+ 67: $Vz
646
+ },
647
+ {
648
+ 4: $V9,
649
+ 5: $Va,
650
+ 10: $Vb,
651
+ 12: $Vc,
652
+ 13: $Vd,
653
+ 14: $Ve,
654
+ 15: $Vf,
655
+ 43: 55,
656
+ 58: 31,
657
+ 60: $Vt,
658
+ 61: $Vu,
659
+ 63: $Vv,
660
+ 64: $Vw,
661
+ 65: $Vx,
662
+ 66: $Vy,
663
+ 67: $Vz
664
+ },
665
+ {
666
+ 4: $V9,
667
+ 5: $Va,
668
+ 10: $Vb,
669
+ 12: $Vc,
670
+ 13: $Vd,
671
+ 14: $Ve,
672
+ 15: $Vf,
673
+ 43: 56,
674
+ 58: 31,
675
+ 60: $Vt,
676
+ 61: $Vu,
677
+ 63: $Vv,
678
+ 64: $Vw,
679
+ 65: $Vx,
680
+ 66: $Vy,
681
+ 67: $Vz
682
+ },
683
+ {
684
+ 4: $V9,
685
+ 5: $Va,
686
+ 10: $Vb,
687
+ 12: $Vc,
688
+ 13: $Vd,
689
+ 14: $Ve,
690
+ 15: $Vf,
691
+ 43: 57,
692
+ 58: 31,
693
+ 60: $Vt,
694
+ 61: $Vu,
695
+ 63: $Vv,
696
+ 64: $Vw,
697
+ 65: $Vx,
698
+ 66: $Vy,
699
+ 67: $Vz
700
+ },
701
+ {
702
+ 4: $V9,
703
+ 5: $Va,
704
+ 8: $VA,
705
+ 10: $Vb,
706
+ 12: $Vc,
707
+ 13: $Vd,
708
+ 14: $Ve,
709
+ 15: $Vf,
710
+ 18: $VB,
711
+ 44: [1, 58],
712
+ 47: [1, 59],
713
+ 58: 61,
714
+ 59: 60,
715
+ 63: $Vv,
716
+ 64: $Vw,
717
+ 65: $Vx,
718
+ 66: $Vy,
719
+ 67: $Vz
720
+ },
721
+ o($VC, [2, 64]),
722
+ o($VC, [2, 66]),
723
+ o($VC, [2, 67]),
724
+ o($VC, [2, 70]),
725
+ o($VC, [2, 71]),
726
+ o($VC, [2, 72]),
727
+ o($VC, [2, 73]),
728
+ o($VC, [2, 74]),
729
+ o($VC, [2, 75]),
730
+ o($VC, [2, 76]),
731
+ o($VC, [2, 77]),
732
+ o($VC, [2, 78]),
733
+ o($VC, [2, 79]),
734
+ o($VC, [2, 80]),
735
+ o($VC, [2, 81]),
736
+ o($V5, [2, 35]),
737
+ o($V7, [2, 38]),
738
+ o($V7, [2, 42]),
739
+ o($V7, [2, 43]),
740
+ o($V7, [2, 44]),
741
+ {
742
+ 3: 65,
743
+ 4: $VD,
744
+ 5: $VE,
745
+ 6: $VF,
746
+ 7: $VG,
747
+ 8: $VH,
748
+ 9: $VI,
749
+ 10: $VJ,
750
+ 11: $VK,
751
+ 12: $VL,
752
+ 13: $VM,
753
+ 14: $VN,
754
+ 15: $VO,
755
+ 21: 64
756
+ },
757
+ o($V7, [2, 53], {
758
+ 59: 60,
759
+ 58: 61,
760
+ 4: $V9,
761
+ 5: $Va,
762
+ 8: $VA,
763
+ 10: $Vb,
764
+ 12: $Vc,
765
+ 13: $Vd,
766
+ 14: $Ve,
767
+ 15: $Vf,
768
+ 18: $VB,
769
+ 49: [1, 78],
770
+ 63: $Vv,
771
+ 64: $Vw,
772
+ 65: $Vx,
773
+ 66: $Vy,
774
+ 67: $Vz
775
+ }),
776
+ o($V7, [2, 56], {
777
+ 59: 60,
778
+ 58: 61,
779
+ 4: $V9,
780
+ 5: $Va,
781
+ 8: $VA,
782
+ 10: $Vb,
783
+ 12: $Vc,
784
+ 13: $Vd,
785
+ 14: $Ve,
786
+ 15: $Vf,
787
+ 18: $VB,
788
+ 49: [1, 79],
789
+ 63: $Vv,
790
+ 64: $Vw,
791
+ 65: $Vx,
792
+ 66: $Vy,
793
+ 67: $Vz
794
+ }),
795
+ o($V7, [2, 57], {
796
+ 59: 60,
797
+ 58: 61,
798
+ 4: $V9,
799
+ 5: $Va,
800
+ 8: $VA,
801
+ 10: $Vb,
802
+ 12: $Vc,
803
+ 13: $Vd,
804
+ 14: $Ve,
805
+ 15: $Vf,
806
+ 18: $VB,
807
+ 63: $Vv,
808
+ 64: $Vw,
809
+ 65: $Vx,
810
+ 66: $Vy,
811
+ 67: $Vz
812
+ }),
813
+ o($V7, [2, 58], {
814
+ 59: 60,
815
+ 58: 61,
816
+ 4: $V9,
817
+ 5: $Va,
818
+ 8: $VA,
819
+ 10: $Vb,
820
+ 12: $Vc,
821
+ 13: $Vd,
822
+ 14: $Ve,
823
+ 15: $Vf,
824
+ 18: $VB,
825
+ 63: $Vv,
826
+ 64: $Vw,
827
+ 65: $Vx,
828
+ 66: $Vy,
829
+ 67: $Vz
830
+ }),
831
+ o($V7, [2, 59], {
832
+ 59: 60,
833
+ 58: 61,
834
+ 4: $V9,
835
+ 5: $Va,
836
+ 8: $VA,
837
+ 10: $Vb,
838
+ 12: $Vc,
839
+ 13: $Vd,
840
+ 14: $Ve,
841
+ 15: $Vf,
842
+ 18: $VB,
843
+ 63: $Vv,
844
+ 64: $Vw,
845
+ 65: $Vx,
846
+ 66: $Vy,
847
+ 67: $Vz
848
+ }),
849
+ o($V7, [2, 60], {
850
+ 59: 60,
851
+ 58: 61,
852
+ 4: $V9,
853
+ 5: $Va,
854
+ 8: $VA,
855
+ 10: $Vb,
856
+ 12: $Vc,
857
+ 13: $Vd,
858
+ 14: $Ve,
859
+ 15: $Vf,
860
+ 18: $VB,
861
+ 63: $Vv,
862
+ 64: $Vw,
863
+ 65: $Vx,
864
+ 66: $Vy,
865
+ 67: $Vz
866
+ }),
867
+ { 45: [1, 80] },
868
+ { 44: [1, 81] },
869
+ o($VC, [2, 65]),
870
+ o($VC, [2, 82]),
871
+ o($VC, [2, 83]),
872
+ o($VC, [2, 84]),
873
+ {
874
+ 3: 83,
875
+ 4: $VD,
876
+ 5: $VE,
877
+ 6: $VF,
878
+ 7: $VG,
879
+ 8: $VH,
880
+ 9: $VI,
881
+ 10: $VJ,
882
+ 11: $VK,
883
+ 12: $VL,
884
+ 13: $VM,
885
+ 14: $VN,
886
+ 15: $VO,
887
+ 18: [1, 82]
888
+ },
889
+ o($VP, [2, 23]),
890
+ o($VP, [2, 1]),
891
+ o($VP, [2, 2]),
892
+ o($VP, [2, 3]),
893
+ o($VP, [2, 4]),
894
+ o($VP, [2, 5]),
895
+ o($VP, [2, 6]),
896
+ o($VP, [2, 7]),
897
+ o($VP, [2, 8]),
898
+ o($VP, [2, 9]),
899
+ o($VP, [2, 10]),
900
+ o($VP, [2, 11]),
901
+ o($VP, [2, 12]),
902
+ o($V7, [2, 52], {
903
+ 58: 31,
904
+ 43: 84,
905
+ 4: $V9,
906
+ 5: $Va,
907
+ 10: $Vb,
908
+ 12: $Vc,
909
+ 13: $Vd,
910
+ 14: $Ve,
911
+ 15: $Vf,
912
+ 60: $Vt,
913
+ 61: $Vu,
914
+ 63: $Vv,
915
+ 64: $Vw,
916
+ 65: $Vx,
917
+ 66: $Vy,
918
+ 67: $Vz
919
+ }),
920
+ o($V7, [2, 55], {
921
+ 58: 31,
922
+ 43: 85,
923
+ 4: $V9,
924
+ 5: $Va,
925
+ 10: $Vb,
926
+ 12: $Vc,
927
+ 13: $Vd,
928
+ 14: $Ve,
929
+ 15: $Vf,
930
+ 60: $Vt,
931
+ 61: $Vu,
932
+ 63: $Vv,
933
+ 64: $Vw,
934
+ 65: $Vx,
935
+ 66: $Vy,
936
+ 67: $Vz
937
+ }),
938
+ { 46: [1, 86] },
939
+ { 45: [1, 87] },
940
+ {
941
+ 4: $VQ,
942
+ 5: $VR,
943
+ 6: $VS,
944
+ 8: $VT,
945
+ 11: $VU,
946
+ 13: $VV,
947
+ 16: 90,
948
+ 17: $VW,
949
+ 18: $VX,
950
+ 19: $VY,
951
+ 20: $VZ,
952
+ 22: 89,
953
+ 23: 88
954
+ },
955
+ o($VP, [2, 24]),
956
+ o($V7, [2, 51], {
957
+ 59: 60,
958
+ 58: 61,
959
+ 4: $V9,
960
+ 5: $Va,
961
+ 8: $VA,
962
+ 10: $Vb,
963
+ 12: $Vc,
964
+ 13: $Vd,
965
+ 14: $Ve,
966
+ 15: $Vf,
967
+ 18: $VB,
968
+ 63: $Vv,
969
+ 64: $Vw,
970
+ 65: $Vx,
971
+ 66: $Vy,
972
+ 67: $Vz
973
+ }),
974
+ o($V7, [2, 54], {
975
+ 59: 60,
976
+ 58: 61,
977
+ 4: $V9,
978
+ 5: $Va,
979
+ 8: $VA,
980
+ 10: $Vb,
981
+ 12: $Vc,
982
+ 13: $Vd,
983
+ 14: $Ve,
984
+ 15: $Vf,
985
+ 18: $VB,
986
+ 63: $Vv,
987
+ 64: $Vw,
988
+ 65: $Vx,
989
+ 66: $Vy,
990
+ 67: $Vz
991
+ }),
992
+ o($V7, [2, 47], {
993
+ 22: 89,
994
+ 16: 90,
995
+ 23: 101,
996
+ 4: $VQ,
997
+ 5: $VR,
998
+ 6: $VS,
999
+ 8: $VT,
1000
+ 11: $VU,
1001
+ 13: $VV,
1002
+ 17: $VW,
1003
+ 18: $VX,
1004
+ 19: $VY,
1005
+ 20: $VZ
1006
+ }),
1007
+ { 46: [1, 102] },
1008
+ o($V7, [2, 29], { 10: $V_ }),
1009
+ o($V$, [2, 27], {
1010
+ 16: 104,
1011
+ 4: $VQ,
1012
+ 5: $VR,
1013
+ 6: $VS,
1014
+ 8: $VT,
1015
+ 11: $VU,
1016
+ 13: $VV,
1017
+ 17: $VW,
1018
+ 18: $VX,
1019
+ 19: $VY,
1020
+ 20: $VZ
1021
+ }),
1022
+ o($V01, [2, 25]),
1023
+ o($V01, [2, 13]),
1024
+ o($V01, [2, 14]),
1025
+ o($V01, [2, 15]),
1026
+ o($V01, [2, 16]),
1027
+ o($V01, [2, 17]),
1028
+ o($V01, [2, 18]),
1029
+ o($V01, [2, 19]),
1030
+ o($V01, [2, 20]),
1031
+ o($V01, [2, 21]),
1032
+ o($V01, [2, 22]),
1033
+ o($V7, [2, 49], { 10: $V_ }),
1034
+ o($V7, [2, 48], {
1035
+ 22: 89,
1036
+ 16: 90,
1037
+ 23: 105,
1038
+ 4: $VQ,
1039
+ 5: $VR,
1040
+ 6: $VS,
1041
+ 8: $VT,
1042
+ 11: $VU,
1043
+ 13: $VV,
1044
+ 17: $VW,
1045
+ 18: $VX,
1046
+ 19: $VY,
1047
+ 20: $VZ
1048
+ }),
1049
+ {
1050
+ 4: $VQ,
1051
+ 5: $VR,
1052
+ 6: $VS,
1053
+ 8: $VT,
1054
+ 11: $VU,
1055
+ 13: $VV,
1056
+ 16: 90,
1057
+ 17: $VW,
1058
+ 18: $VX,
1059
+ 19: $VY,
1060
+ 20: $VZ,
1061
+ 22: 106
1062
+ },
1063
+ o($V01, [2, 26]),
1064
+ o($V7, [2, 50], { 10: $V_ }),
1065
+ o($V$, [2, 28], {
1066
+ 16: 104,
1067
+ 4: $VQ,
1068
+ 5: $VR,
1069
+ 6: $VS,
1070
+ 8: $VT,
1071
+ 11: $VU,
1072
+ 13: $VV,
1073
+ 17: $VW,
1074
+ 18: $VX,
1075
+ 19: $VY,
1076
+ 20: $VZ
1077
+ })
1078
+ ],
1079
+ defaultActions: {
1080
+ 8: [2, 30],
1081
+ 9: [2, 31]
1082
+ },
1083
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1084
+ if (hash.recoverable) this.trace(str);
1085
+ else {
1086
+ var error = new Error(str);
1087
+ error.hash = hash;
1088
+ throw error;
1089
+ }
1090
+ }, "parseError"),
1091
+ parse: /* @__PURE__ */ __name(function parse(input) {
1092
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
1093
+ var args = lstack.slice.call(arguments, 1);
1094
+ var lexer2 = Object.create(this.lexer);
1095
+ var sharedState = { yy: {} };
1096
+ for (var k in this.yy) if (Object.prototype.hasOwnProperty.call(this.yy, k)) sharedState.yy[k] = this.yy[k];
1097
+ lexer2.setInput(input, sharedState.yy);
1098
+ sharedState.yy.lexer = lexer2;
1099
+ sharedState.yy.parser = this;
1100
+ if (typeof lexer2.yylloc == "undefined") lexer2.yylloc = {};
1101
+ var yyloc = lexer2.yylloc;
1102
+ lstack.push(yyloc);
1103
+ var ranges = lexer2.options && lexer2.options.ranges;
1104
+ if (typeof sharedState.yy.parseError === "function") this.parseError = sharedState.yy.parseError;
1105
+ else this.parseError = Object.getPrototypeOf(this).parseError;
1106
+ function popStack(n) {
1107
+ stack.length = stack.length - 2 * n;
1108
+ vstack.length = vstack.length - n;
1109
+ lstack.length = lstack.length - n;
1110
+ }
1111
+ __name(popStack, "popStack");
1112
+ function lex() {
1113
+ var token = tstack.pop() || lexer2.lex() || EOF;
1114
+ if (typeof token !== "number") {
1115
+ if (token instanceof Array) {
1116
+ tstack = token;
1117
+ token = tstack.pop();
1118
+ }
1119
+ token = self.symbols_[token] || token;
1120
+ }
1121
+ return token;
1122
+ }
1123
+ __name(lex, "lex");
1124
+ var symbol, preErrorSymbol, state, action, r, yyval = {}, p, len, newState, expected;
1125
+ while (true) {
1126
+ state = stack[stack.length - 1];
1127
+ if (this.defaultActions[state]) action = this.defaultActions[state];
1128
+ else {
1129
+ if (symbol === null || typeof symbol == "undefined") symbol = lex();
1130
+ action = table[state] && table[state][symbol];
1131
+ }
1132
+ if (typeof action === "undefined" || !action.length || !action[0]) {
1133
+ var errStr = "";
1134
+ expected = [];
1135
+ for (p in table[state]) if (this.terminals_[p] && p > TERROR) expected.push("'" + this.terminals_[p] + "'");
1136
+ if (lexer2.showPosition) errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1137
+ else errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1138
+ this.parseError(errStr, {
1139
+ text: lexer2.match,
1140
+ token: this.terminals_[symbol] || symbol,
1141
+ line: lexer2.yylineno,
1142
+ loc: yyloc,
1143
+ expected
1144
+ });
1145
+ }
1146
+ if (action[0] instanceof Array && action.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1147
+ switch (action[0]) {
1148
+ case 1:
1149
+ stack.push(symbol);
1150
+ vstack.push(lexer2.yytext);
1151
+ lstack.push(lexer2.yylloc);
1152
+ stack.push(action[1]);
1153
+ symbol = null;
1154
+ if (!preErrorSymbol) {
1155
+ yyleng = lexer2.yyleng;
1156
+ yytext = lexer2.yytext;
1157
+ yylineno = lexer2.yylineno;
1158
+ yyloc = lexer2.yylloc;
1159
+ if (recovering > 0) recovering--;
1160
+ } else {
1161
+ symbol = preErrorSymbol;
1162
+ preErrorSymbol = null;
1163
+ }
1164
+ break;
1165
+ case 2:
1166
+ len = this.productions_[action[1]][1];
1167
+ yyval.$ = vstack[vstack.length - len];
1168
+ yyval._$ = {
1169
+ first_line: lstack[lstack.length - (len || 1)].first_line,
1170
+ last_line: lstack[lstack.length - 1].last_line,
1171
+ first_column: lstack[lstack.length - (len || 1)].first_column,
1172
+ last_column: lstack[lstack.length - 1].last_column
1173
+ };
1174
+ if (ranges) yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
1175
+ r = this.performAction.apply(yyval, [
1176
+ yytext,
1177
+ yyleng,
1178
+ yylineno,
1179
+ sharedState.yy,
1180
+ action[1],
1181
+ vstack,
1182
+ lstack
1183
+ ].concat(args));
1184
+ if (typeof r !== "undefined") return r;
1185
+ if (len) {
1186
+ stack = stack.slice(0, -1 * len * 2);
1187
+ vstack = vstack.slice(0, -1 * len);
1188
+ lstack = lstack.slice(0, -1 * len);
1189
+ }
1190
+ stack.push(this.productions_[action[1]][0]);
1191
+ vstack.push(yyval.$);
1192
+ lstack.push(yyval._$);
1193
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1194
+ stack.push(newState);
1195
+ break;
1196
+ case 3: return true;
1197
+ }
1198
+ }
1199
+ return true;
1200
+ }, "parse")
1201
+ };
1202
+ parser2.lexer = /* @__PURE__ */ (function() {
1203
+ return {
1204
+ EOF: 1,
1205
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1206
+ if (this.yy.parser) this.yy.parser.parseError(str, hash);
1207
+ else throw new Error(str);
1208
+ }, "parseError"),
1209
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
1210
+ this.yy = yy || this.yy || {};
1211
+ this._input = input;
1212
+ this._more = this._backtrack = this.done = false;
1213
+ this.yylineno = this.yyleng = 0;
1214
+ this.yytext = this.matched = this.match = "";
1215
+ this.conditionStack = ["INITIAL"];
1216
+ this.yylloc = {
1217
+ first_line: 1,
1218
+ first_column: 0,
1219
+ last_line: 1,
1220
+ last_column: 0
1221
+ };
1222
+ if (this.options.ranges) this.yylloc.range = [0, 0];
1223
+ this.offset = 0;
1224
+ return this;
1225
+ }, "setInput"),
1226
+ input: /* @__PURE__ */ __name(function() {
1227
+ var ch = this._input[0];
1228
+ this.yytext += ch;
1229
+ this.yyleng++;
1230
+ this.offset++;
1231
+ this.match += ch;
1232
+ this.matched += ch;
1233
+ if (ch.match(/(?:\r\n?|\n).*/g)) {
1234
+ this.yylineno++;
1235
+ this.yylloc.last_line++;
1236
+ } else this.yylloc.last_column++;
1237
+ if (this.options.ranges) this.yylloc.range[1]++;
1238
+ this._input = this._input.slice(1);
1239
+ return ch;
1240
+ }, "input"),
1241
+ unput: /* @__PURE__ */ __name(function(ch) {
1242
+ var len = ch.length;
1243
+ var lines = ch.split(/(?:\r\n?|\n)/g);
1244
+ this._input = ch + this._input;
1245
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
1246
+ this.offset -= len;
1247
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1248
+ this.match = this.match.substr(0, this.match.length - 1);
1249
+ this.matched = this.matched.substr(0, this.matched.length - 1);
1250
+ if (lines.length - 1) this.yylineno -= lines.length - 1;
1251
+ var r = this.yylloc.range;
1252
+ this.yylloc = {
1253
+ first_line: this.yylloc.first_line,
1254
+ last_line: this.yylineno + 1,
1255
+ first_column: this.yylloc.first_column,
1256
+ 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
1257
+ };
1258
+ if (this.options.ranges) this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1259
+ this.yyleng = this.yytext.length;
1260
+ return this;
1261
+ }, "unput"),
1262
+ more: /* @__PURE__ */ __name(function() {
1263
+ this._more = true;
1264
+ return this;
1265
+ }, "more"),
1266
+ reject: /* @__PURE__ */ __name(function() {
1267
+ if (this.options.backtrack_lexer) this._backtrack = true;
1268
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1269
+ text: "",
1270
+ token: null,
1271
+ line: this.yylineno
1272
+ });
1273
+ return this;
1274
+ }, "reject"),
1275
+ less: /* @__PURE__ */ __name(function(n) {
1276
+ this.unput(this.match.slice(n));
1277
+ }, "less"),
1278
+ pastInput: /* @__PURE__ */ __name(function() {
1279
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
1280
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1281
+ }, "pastInput"),
1282
+ upcomingInput: /* @__PURE__ */ __name(function() {
1283
+ var next = this.match;
1284
+ if (next.length < 20) next += this._input.substr(0, 20 - next.length);
1285
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1286
+ }, "upcomingInput"),
1287
+ showPosition: /* @__PURE__ */ __name(function() {
1288
+ var pre = this.pastInput();
1289
+ var c = new Array(pre.length + 1).join("-");
1290
+ return pre + this.upcomingInput() + "\n" + c + "^";
1291
+ }, "showPosition"),
1292
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
1293
+ var token, lines, backup;
1294
+ if (this.options.backtrack_lexer) {
1295
+ backup = {
1296
+ yylineno: this.yylineno,
1297
+ yylloc: {
1298
+ first_line: this.yylloc.first_line,
1299
+ last_line: this.last_line,
1300
+ first_column: this.yylloc.first_column,
1301
+ last_column: this.yylloc.last_column
1302
+ },
1303
+ yytext: this.yytext,
1304
+ match: this.match,
1305
+ matches: this.matches,
1306
+ matched: this.matched,
1307
+ yyleng: this.yyleng,
1308
+ offset: this.offset,
1309
+ _more: this._more,
1310
+ _input: this._input,
1311
+ yy: this.yy,
1312
+ conditionStack: this.conditionStack.slice(0),
1313
+ done: this.done
1314
+ };
1315
+ if (this.options.ranges) backup.yylloc.range = this.yylloc.range.slice(0);
1316
+ }
1317
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
1318
+ if (lines) this.yylineno += lines.length;
1319
+ this.yylloc = {
1320
+ first_line: this.yylloc.last_line,
1321
+ last_line: this.yylineno + 1,
1322
+ first_column: this.yylloc.last_column,
1323
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1324
+ };
1325
+ this.yytext += match[0];
1326
+ this.match += match[0];
1327
+ this.matches = match;
1328
+ this.yyleng = this.yytext.length;
1329
+ if (this.options.ranges) this.yylloc.range = [this.offset, this.offset += this.yyleng];
1330
+ this._more = false;
1331
+ this._backtrack = false;
1332
+ this._input = this._input.slice(match[0].length);
1333
+ this.matched += match[0];
1334
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1335
+ if (this.done && this._input) this.done = false;
1336
+ if (token) return token;
1337
+ else if (this._backtrack) {
1338
+ for (var k in backup) this[k] = backup[k];
1339
+ return false;
1340
+ }
1341
+ return false;
1342
+ }, "test_match"),
1343
+ next: /* @__PURE__ */ __name(function() {
1344
+ if (this.done) return this.EOF;
1345
+ if (!this._input) this.done = true;
1346
+ var token, match, tempMatch, index;
1347
+ if (!this._more) {
1348
+ this.yytext = "";
1349
+ this.match = "";
1350
+ }
1351
+ var rules = this._currentRules();
1352
+ for (var i = 0; i < rules.length; i++) {
1353
+ tempMatch = this._input.match(this.rules[rules[i]]);
1354
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1355
+ match = tempMatch;
1356
+ index = i;
1357
+ if (this.options.backtrack_lexer) {
1358
+ token = this.test_match(tempMatch, rules[i]);
1359
+ if (token !== false) return token;
1360
+ else if (this._backtrack) {
1361
+ match = false;
1362
+ continue;
1363
+ } else return false;
1364
+ } else if (!this.options.flex) break;
1365
+ }
1366
+ }
1367
+ if (match) {
1368
+ token = this.test_match(match, rules[index]);
1369
+ if (token !== false) return token;
1370
+ return false;
1371
+ }
1372
+ if (this._input === "") return this.EOF;
1373
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1374
+ text: "",
1375
+ token: null,
1376
+ line: this.yylineno
1377
+ });
1378
+ }, "next"),
1379
+ lex: /* @__PURE__ */ __name(function lex() {
1380
+ var r = this.next();
1381
+ if (r) return r;
1382
+ else return this.lex();
1383
+ }, "lex"),
1384
+ begin: /* @__PURE__ */ __name(function begin(condition) {
1385
+ this.conditionStack.push(condition);
1386
+ }, "begin"),
1387
+ popState: /* @__PURE__ */ __name(function popState() {
1388
+ if (this.conditionStack.length - 1 > 0) return this.conditionStack.pop();
1389
+ else return this.conditionStack[0];
1390
+ }, "popState"),
1391
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
1392
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1393
+ else return this.conditions["INITIAL"].rules;
1394
+ }, "_currentRules"),
1395
+ topState: /* @__PURE__ */ __name(function topState(n) {
1396
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
1397
+ if (n >= 0) return this.conditionStack[n];
1398
+ else return "INITIAL";
1399
+ }, "topState"),
1400
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
1401
+ this.begin(condition);
1402
+ }, "pushState"),
1403
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
1404
+ return this.conditionStack.length;
1405
+ }, "stateStackSize"),
1406
+ options: { "case-insensitive": true },
1407
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1408
+ switch ($avoiding_name_collisions) {
1409
+ case 0: break;
1410
+ case 1: break;
1411
+ case 2: return 55;
1412
+ case 3: break;
1413
+ case 4:
1414
+ this.begin("title");
1415
+ return 35;
1416
+ case 5:
1417
+ this.popState();
1418
+ return "title_value";
1419
+ case 6:
1420
+ this.begin("acc_title");
1421
+ return 37;
1422
+ case 7:
1423
+ this.popState();
1424
+ return "acc_title_value";
1425
+ case 8:
1426
+ this.begin("acc_descr");
1427
+ return 39;
1428
+ case 9:
1429
+ this.popState();
1430
+ return "acc_descr_value";
1431
+ case 10:
1432
+ this.begin("acc_descr_multiline");
1433
+ break;
1434
+ case 11:
1435
+ this.popState();
1436
+ break;
1437
+ case 12: return "acc_descr_multiline_value";
1438
+ case 13: return 48;
1439
+ case 14: return 50;
1440
+ case 15: return 49;
1441
+ case 16: return 51;
1442
+ case 17: return 52;
1443
+ case 18: return 53;
1444
+ case 19: return 54;
1445
+ case 20: return 25;
1446
+ case 21:
1447
+ this.begin("md_string");
1448
+ break;
1449
+ case 22: return "MD_STR";
1450
+ case 23:
1451
+ this.popState();
1452
+ break;
1453
+ case 24:
1454
+ this.begin("string");
1455
+ break;
1456
+ case 25:
1457
+ this.popState();
1458
+ break;
1459
+ case 26: return "STR";
1460
+ case 27:
1461
+ this.begin("class_name");
1462
+ break;
1463
+ case 28:
1464
+ this.popState();
1465
+ return 47;
1466
+ case 29:
1467
+ this.begin("point_start");
1468
+ return 44;
1469
+ case 30:
1470
+ this.begin("point_x");
1471
+ return 45;
1472
+ case 31:
1473
+ this.popState();
1474
+ break;
1475
+ case 32:
1476
+ this.popState();
1477
+ this.begin("point_y");
1478
+ break;
1479
+ case 33:
1480
+ this.popState();
1481
+ return 46;
1482
+ case 34: return 28;
1483
+ case 35: return 4;
1484
+ case 36: return 15;
1485
+ case 37: return 11;
1486
+ case 38: return 64;
1487
+ case 39: return 10;
1488
+ case 40: return 65;
1489
+ case 41: return 65;
1490
+ case 42: return 14;
1491
+ case 43: return 13;
1492
+ case 44: return 67;
1493
+ case 45: return 66;
1494
+ case 46: return 12;
1495
+ case 47: return 8;
1496
+ case 48: return 5;
1497
+ case 49: return 18;
1498
+ case 50: return 56;
1499
+ case 51: return 63;
1500
+ case 52: return 57;
1501
+ }
1502
+ }, "anonymous"),
1503
+ rules: [
1504
+ /^(?:%%(?!\{)[^\n]*)/i,
1505
+ /^(?:[^\}]%%[^\n]*)/i,
1506
+ /^(?:[\n\r]+)/i,
1507
+ /^(?:%%[^\n]*)/i,
1508
+ /^(?:title\b)/i,
1509
+ /^(?:(?!\n||)*[^\n]*)/i,
1510
+ /^(?:accTitle\s*:\s*)/i,
1511
+ /^(?:(?!\n||)*[^\n]*)/i,
1512
+ /^(?:accDescr\s*:\s*)/i,
1513
+ /^(?:(?!\n||)*[^\n]*)/i,
1514
+ /^(?:accDescr\s*\{\s*)/i,
1515
+ /^(?:[\}])/i,
1516
+ /^(?:[^\}]*)/i,
1517
+ /^(?: *x-axis *)/i,
1518
+ /^(?: *y-axis *)/i,
1519
+ /^(?: *--+> *)/i,
1520
+ /^(?: *quadrant-1 *)/i,
1521
+ /^(?: *quadrant-2 *)/i,
1522
+ /^(?: *quadrant-3 *)/i,
1523
+ /^(?: *quadrant-4 *)/i,
1524
+ /^(?:classDef\b)/i,
1525
+ /^(?:["][`])/i,
1526
+ /^(?:[^`"]+)/i,
1527
+ /^(?:[`]["])/i,
1528
+ /^(?:["])/i,
1529
+ /^(?:["])/i,
1530
+ /^(?:[^"]*)/i,
1531
+ /^(?::::)/i,
1532
+ /^(?:^\w+)/i,
1533
+ /^(?:\s*:\s*\[\s*)/i,
1534
+ /^(?:(1)|(0(.\d+)?))/i,
1535
+ /^(?:\s*\] *)/i,
1536
+ /^(?:\s*,\s*)/i,
1537
+ /^(?:(1)|(0(.\d+)?))/i,
1538
+ /^(?: *quadrantChart *)/i,
1539
+ /^(?:[A-Za-z]+)/i,
1540
+ /^(?:[^\x00-\x7F]+)/i,
1541
+ /^(?::)/i,
1542
+ /^(?:\+)/i,
1543
+ /^(?:,)/i,
1544
+ /^(?:=)/i,
1545
+ /^(?:=)/i,
1546
+ /^(?:\*)/i,
1547
+ /^(?:#)/i,
1548
+ /^(?:[\_])/i,
1549
+ /^(?:\.)/i,
1550
+ /^(?:&)/i,
1551
+ /^(?:-)/i,
1552
+ /^(?:[0-9]+)/i,
1553
+ /^(?:\s)/i,
1554
+ /^(?:;)/i,
1555
+ /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1556
+ /^(?:$)/i
1557
+ ],
1558
+ conditions: {
1559
+ "class_name": {
1560
+ "rules": [28],
1561
+ "inclusive": false
1562
+ },
1563
+ "point_y": {
1564
+ "rules": [33],
1565
+ "inclusive": false
1566
+ },
1567
+ "point_x": {
1568
+ "rules": [32],
1569
+ "inclusive": false
1570
+ },
1571
+ "point_start": {
1572
+ "rules": [30, 31],
1573
+ "inclusive": false
1574
+ },
1575
+ "acc_descr_multiline": {
1576
+ "rules": [11, 12],
1577
+ "inclusive": false
1578
+ },
1579
+ "acc_descr": {
1580
+ "rules": [9],
1581
+ "inclusive": false
1582
+ },
1583
+ "acc_title": {
1584
+ "rules": [7],
1585
+ "inclusive": false
1586
+ },
1587
+ "title": {
1588
+ "rules": [5],
1589
+ "inclusive": false
1590
+ },
1591
+ "md_string": {
1592
+ "rules": [22, 23],
1593
+ "inclusive": false
1594
+ },
1595
+ "string": {
1596
+ "rules": [25, 26],
1597
+ "inclusive": false
1598
+ },
1599
+ "INITIAL": {
1600
+ "rules": [
1601
+ 0,
1602
+ 1,
1603
+ 2,
1604
+ 3,
1605
+ 4,
1606
+ 6,
1607
+ 8,
1608
+ 10,
1609
+ 13,
1610
+ 14,
1611
+ 15,
1612
+ 16,
1613
+ 17,
1614
+ 18,
1615
+ 19,
1616
+ 20,
1617
+ 21,
1618
+ 24,
1619
+ 27,
1620
+ 29,
1621
+ 34,
1622
+ 35,
1623
+ 36,
1624
+ 37,
1625
+ 38,
1626
+ 39,
1627
+ 40,
1628
+ 41,
1629
+ 42,
1630
+ 43,
1631
+ 44,
1632
+ 45,
1633
+ 46,
1634
+ 47,
1635
+ 48,
1636
+ 49,
1637
+ 50,
1638
+ 51,
1639
+ 52
1640
+ ],
1641
+ "inclusive": true
1642
+ }
1643
+ }
1644
+ };
1645
+ })();
1646
+ function Parser() {
1647
+ this.yy = {};
1648
+ }
1649
+ __name(Parser, "Parser");
1650
+ Parser.prototype = parser2;
1651
+ parser2.Parser = Parser;
1652
+ return new Parser();
1653
+ })();
1654
+ parser.parser = parser;
1655
+ var quadrant_default = parser;
1656
+ var defaultThemeVariables = getThemeVariables3();
1657
+ var QuadrantBuilder = class {
1658
+ constructor() {
1659
+ this.classes = /* @__PURE__ */ new Map();
1660
+ this.config = this.getDefaultConfig();
1661
+ this.themeConfig = this.getDefaultThemeConfig();
1662
+ this.data = this.getDefaultData();
1663
+ }
1664
+ static {
1665
+ __name(this, "QuadrantBuilder");
1666
+ }
1667
+ getDefaultData() {
1668
+ return {
1669
+ titleText: "",
1670
+ quadrant1Text: "",
1671
+ quadrant2Text: "",
1672
+ quadrant3Text: "",
1673
+ quadrant4Text: "",
1674
+ xAxisLeftText: "",
1675
+ xAxisRightText: "",
1676
+ yAxisBottomText: "",
1677
+ yAxisTopText: "",
1678
+ points: []
1679
+ };
1680
+ }
1681
+ getDefaultConfig() {
1682
+ return {
1683
+ showXAxis: true,
1684
+ showYAxis: true,
1685
+ showTitle: true,
1686
+ chartHeight: defaultConfig_default.quadrantChart?.chartWidth || 500,
1687
+ chartWidth: defaultConfig_default.quadrantChart?.chartHeight || 500,
1688
+ titlePadding: defaultConfig_default.quadrantChart?.titlePadding || 10,
1689
+ titleFontSize: defaultConfig_default.quadrantChart?.titleFontSize || 20,
1690
+ quadrantPadding: defaultConfig_default.quadrantChart?.quadrantPadding || 5,
1691
+ xAxisLabelPadding: defaultConfig_default.quadrantChart?.xAxisLabelPadding || 5,
1692
+ yAxisLabelPadding: defaultConfig_default.quadrantChart?.yAxisLabelPadding || 5,
1693
+ xAxisLabelFontSize: defaultConfig_default.quadrantChart?.xAxisLabelFontSize || 16,
1694
+ yAxisLabelFontSize: defaultConfig_default.quadrantChart?.yAxisLabelFontSize || 16,
1695
+ quadrantLabelFontSize: defaultConfig_default.quadrantChart?.quadrantLabelFontSize || 16,
1696
+ quadrantTextTopPadding: defaultConfig_default.quadrantChart?.quadrantTextTopPadding || 5,
1697
+ pointTextPadding: defaultConfig_default.quadrantChart?.pointTextPadding || 5,
1698
+ pointLabelFontSize: defaultConfig_default.quadrantChart?.pointLabelFontSize || 12,
1699
+ pointRadius: defaultConfig_default.quadrantChart?.pointRadius || 5,
1700
+ xAxisPosition: defaultConfig_default.quadrantChart?.xAxisPosition || "top",
1701
+ yAxisPosition: defaultConfig_default.quadrantChart?.yAxisPosition || "left",
1702
+ quadrantInternalBorderStrokeWidth: defaultConfig_default.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
1703
+ quadrantExternalBorderStrokeWidth: defaultConfig_default.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
1704
+ };
1705
+ }
1706
+ getDefaultThemeConfig() {
1707
+ return {
1708
+ quadrant1Fill: defaultThemeVariables.quadrant1Fill,
1709
+ quadrant2Fill: defaultThemeVariables.quadrant2Fill,
1710
+ quadrant3Fill: defaultThemeVariables.quadrant3Fill,
1711
+ quadrant4Fill: defaultThemeVariables.quadrant4Fill,
1712
+ quadrant1TextFill: defaultThemeVariables.quadrant1TextFill,
1713
+ quadrant2TextFill: defaultThemeVariables.quadrant2TextFill,
1714
+ quadrant3TextFill: defaultThemeVariables.quadrant3TextFill,
1715
+ quadrant4TextFill: defaultThemeVariables.quadrant4TextFill,
1716
+ quadrantPointFill: defaultThemeVariables.quadrantPointFill,
1717
+ quadrantPointTextFill: defaultThemeVariables.quadrantPointTextFill,
1718
+ quadrantXAxisTextFill: defaultThemeVariables.quadrantXAxisTextFill,
1719
+ quadrantYAxisTextFill: defaultThemeVariables.quadrantYAxisTextFill,
1720
+ quadrantTitleFill: defaultThemeVariables.quadrantTitleFill,
1721
+ quadrantInternalBorderStrokeFill: defaultThemeVariables.quadrantInternalBorderStrokeFill,
1722
+ quadrantExternalBorderStrokeFill: defaultThemeVariables.quadrantExternalBorderStrokeFill
1723
+ };
1724
+ }
1725
+ clear() {
1726
+ this.config = this.getDefaultConfig();
1727
+ this.themeConfig = this.getDefaultThemeConfig();
1728
+ this.data = this.getDefaultData();
1729
+ this.classes = /* @__PURE__ */ new Map();
1730
+ log.info("clear called");
1731
+ }
1732
+ setData(data) {
1733
+ this.data = {
1734
+ ...this.data,
1735
+ ...data
1736
+ };
1737
+ }
1738
+ addPoints(points) {
1739
+ this.data.points = [...points, ...this.data.points];
1740
+ }
1741
+ addClass(className, styles) {
1742
+ this.classes.set(className, styles);
1743
+ }
1744
+ setConfig(config) {
1745
+ log.trace("setConfig called with: ", config);
1746
+ this.config = {
1747
+ ...this.config,
1748
+ ...config
1749
+ };
1750
+ }
1751
+ setThemeConfig(themeConfig) {
1752
+ log.trace("setThemeConfig called with: ", themeConfig);
1753
+ this.themeConfig = {
1754
+ ...this.themeConfig,
1755
+ ...themeConfig
1756
+ };
1757
+ }
1758
+ calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle) {
1759
+ const xAxisSpaceCalculation = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize;
1760
+ const xAxisSpace = {
1761
+ top: xAxisPosition === "top" && showXAxis ? xAxisSpaceCalculation : 0,
1762
+ bottom: xAxisPosition === "bottom" && showXAxis ? xAxisSpaceCalculation : 0
1763
+ };
1764
+ const yAxisSpaceCalculation = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize;
1765
+ const yAxisSpace = {
1766
+ left: this.config.yAxisPosition === "left" && showYAxis ? yAxisSpaceCalculation : 0,
1767
+ right: this.config.yAxisPosition === "right" && showYAxis ? yAxisSpaceCalculation : 0
1768
+ };
1769
+ const titleSpaceCalculation = this.config.titleFontSize + this.config.titlePadding * 2;
1770
+ const titleSpace = { top: showTitle ? titleSpaceCalculation : 0 };
1771
+ const quadrantLeft = this.config.quadrantPadding + yAxisSpace.left;
1772
+ const quadrantTop = this.config.quadrantPadding + xAxisSpace.top + titleSpace.top;
1773
+ const quadrantWidth = this.config.chartWidth - this.config.quadrantPadding * 2 - yAxisSpace.left - yAxisSpace.right;
1774
+ const quadrantHeight = this.config.chartHeight - this.config.quadrantPadding * 2 - xAxisSpace.top - xAxisSpace.bottom - titleSpace.top;
1775
+ return {
1776
+ xAxisSpace,
1777
+ yAxisSpace,
1778
+ titleSpace,
1779
+ quadrantSpace: {
1780
+ quadrantLeft,
1781
+ quadrantTop,
1782
+ quadrantWidth,
1783
+ quadrantHalfWidth: quadrantWidth / 2,
1784
+ quadrantHeight,
1785
+ quadrantHalfHeight: quadrantHeight / 2
1786
+ }
1787
+ };
1788
+ }
1789
+ getAxisLabels(xAxisPosition, showXAxis, showYAxis, spaceData) {
1790
+ const { quadrantSpace, titleSpace } = spaceData;
1791
+ const { quadrantHalfHeight, quadrantHeight, quadrantLeft, quadrantHalfWidth, quadrantTop, quadrantWidth } = quadrantSpace;
1792
+ const drawXAxisLabelsInMiddle = Boolean(this.data.xAxisRightText);
1793
+ const drawYAxisLabelsInMiddle = Boolean(this.data.yAxisTopText);
1794
+ const axisLabels = [];
1795
+ if (this.data.xAxisLeftText && showXAxis) axisLabels.push({
1796
+ text: this.data.xAxisLeftText,
1797
+ fill: this.themeConfig.quadrantXAxisTextFill,
1798
+ x: quadrantLeft + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),
1799
+ y: xAxisPosition === "top" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,
1800
+ fontSize: this.config.xAxisLabelFontSize,
1801
+ verticalPos: drawXAxisLabelsInMiddle ? "center" : "left",
1802
+ horizontalPos: "top",
1803
+ rotation: 0
1804
+ });
1805
+ if (this.data.xAxisRightText && showXAxis) axisLabels.push({
1806
+ text: this.data.xAxisRightText,
1807
+ fill: this.themeConfig.quadrantXAxisTextFill,
1808
+ x: quadrantLeft + quadrantHalfWidth + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),
1809
+ y: xAxisPosition === "top" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,
1810
+ fontSize: this.config.xAxisLabelFontSize,
1811
+ verticalPos: drawXAxisLabelsInMiddle ? "center" : "left",
1812
+ horizontalPos: "top",
1813
+ rotation: 0
1814
+ });
1815
+ if (this.data.yAxisBottomText && showYAxis) axisLabels.push({
1816
+ text: this.data.yAxisBottomText,
1817
+ fill: this.themeConfig.quadrantYAxisTextFill,
1818
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,
1819
+ y: quadrantTop + quadrantHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),
1820
+ fontSize: this.config.yAxisLabelFontSize,
1821
+ verticalPos: drawYAxisLabelsInMiddle ? "center" : "left",
1822
+ horizontalPos: "top",
1823
+ rotation: -90
1824
+ });
1825
+ if (this.data.yAxisTopText && showYAxis) axisLabels.push({
1826
+ text: this.data.yAxisTopText,
1827
+ fill: this.themeConfig.quadrantYAxisTextFill,
1828
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,
1829
+ y: quadrantTop + quadrantHalfHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),
1830
+ fontSize: this.config.yAxisLabelFontSize,
1831
+ verticalPos: drawYAxisLabelsInMiddle ? "center" : "left",
1832
+ horizontalPos: "top",
1833
+ rotation: -90
1834
+ });
1835
+ return axisLabels;
1836
+ }
1837
+ getQuadrants(spaceData) {
1838
+ const { quadrantSpace } = spaceData;
1839
+ const { quadrantHalfHeight, quadrantLeft, quadrantHalfWidth, quadrantTop } = quadrantSpace;
1840
+ const quadrants = [
1841
+ {
1842
+ text: {
1843
+ text: this.data.quadrant1Text,
1844
+ fill: this.themeConfig.quadrant1TextFill,
1845
+ x: 0,
1846
+ y: 0,
1847
+ fontSize: this.config.quadrantLabelFontSize,
1848
+ verticalPos: "center",
1849
+ horizontalPos: "middle",
1850
+ rotation: 0
1851
+ },
1852
+ x: quadrantLeft + quadrantHalfWidth,
1853
+ y: quadrantTop,
1854
+ width: quadrantHalfWidth,
1855
+ height: quadrantHalfHeight,
1856
+ fill: this.themeConfig.quadrant1Fill
1857
+ },
1858
+ {
1859
+ text: {
1860
+ text: this.data.quadrant2Text,
1861
+ fill: this.themeConfig.quadrant2TextFill,
1862
+ x: 0,
1863
+ y: 0,
1864
+ fontSize: this.config.quadrantLabelFontSize,
1865
+ verticalPos: "center",
1866
+ horizontalPos: "middle",
1867
+ rotation: 0
1868
+ },
1869
+ x: quadrantLeft,
1870
+ y: quadrantTop,
1871
+ width: quadrantHalfWidth,
1872
+ height: quadrantHalfHeight,
1873
+ fill: this.themeConfig.quadrant2Fill
1874
+ },
1875
+ {
1876
+ text: {
1877
+ text: this.data.quadrant3Text,
1878
+ fill: this.themeConfig.quadrant3TextFill,
1879
+ x: 0,
1880
+ y: 0,
1881
+ fontSize: this.config.quadrantLabelFontSize,
1882
+ verticalPos: "center",
1883
+ horizontalPos: "middle",
1884
+ rotation: 0
1885
+ },
1886
+ x: quadrantLeft,
1887
+ y: quadrantTop + quadrantHalfHeight,
1888
+ width: quadrantHalfWidth,
1889
+ height: quadrantHalfHeight,
1890
+ fill: this.themeConfig.quadrant3Fill
1891
+ },
1892
+ {
1893
+ text: {
1894
+ text: this.data.quadrant4Text,
1895
+ fill: this.themeConfig.quadrant4TextFill,
1896
+ x: 0,
1897
+ y: 0,
1898
+ fontSize: this.config.quadrantLabelFontSize,
1899
+ verticalPos: "center",
1900
+ horizontalPos: "middle",
1901
+ rotation: 0
1902
+ },
1903
+ x: quadrantLeft + quadrantHalfWidth,
1904
+ y: quadrantTop + quadrantHalfHeight,
1905
+ width: quadrantHalfWidth,
1906
+ height: quadrantHalfHeight,
1907
+ fill: this.themeConfig.quadrant4Fill
1908
+ }
1909
+ ];
1910
+ for (const quadrant of quadrants) {
1911
+ quadrant.text.x = quadrant.x + quadrant.width / 2;
1912
+ if (this.data.points.length === 0) {
1913
+ quadrant.text.y = quadrant.y + quadrant.height / 2;
1914
+ quadrant.text.horizontalPos = "middle";
1915
+ } else {
1916
+ quadrant.text.y = quadrant.y + this.config.quadrantTextTopPadding;
1917
+ quadrant.text.horizontalPos = "top";
1918
+ }
1919
+ }
1920
+ return quadrants;
1921
+ }
1922
+ getQuadrantPoints(spaceData) {
1923
+ const { quadrantSpace } = spaceData;
1924
+ const { quadrantHeight, quadrantLeft, quadrantTop, quadrantWidth } = quadrantSpace;
1925
+ const xAxis = linear().domain([0, 1]).range([quadrantLeft, quadrantWidth + quadrantLeft]);
1926
+ const yAxis = linear().domain([0, 1]).range([quadrantHeight + quadrantTop, quadrantTop]);
1927
+ return this.data.points.map((point) => {
1928
+ const classStyles = this.classes.get(point.className);
1929
+ if (classStyles) point = {
1930
+ ...classStyles,
1931
+ ...point
1932
+ };
1933
+ return {
1934
+ x: xAxis(point.x),
1935
+ y: yAxis(point.y),
1936
+ fill: point.color ?? this.themeConfig.quadrantPointFill,
1937
+ radius: point.radius ?? this.config.pointRadius,
1938
+ text: {
1939
+ text: point.text,
1940
+ fill: this.themeConfig.quadrantPointTextFill,
1941
+ x: xAxis(point.x),
1942
+ y: yAxis(point.y) + this.config.pointTextPadding,
1943
+ verticalPos: "center",
1944
+ horizontalPos: "top",
1945
+ fontSize: this.config.pointLabelFontSize,
1946
+ rotation: 0
1947
+ },
1948
+ strokeColor: point.strokeColor ?? this.themeConfig.quadrantPointFill,
1949
+ strokeWidth: point.strokeWidth ?? "0px"
1950
+ };
1951
+ });
1952
+ }
1953
+ getBorders(spaceData) {
1954
+ const halfExternalBorderWidth = this.config.quadrantExternalBorderStrokeWidth / 2;
1955
+ const { quadrantSpace } = spaceData;
1956
+ const { quadrantHalfHeight, quadrantHeight, quadrantLeft, quadrantHalfWidth, quadrantTop, quadrantWidth } = quadrantSpace;
1957
+ return [
1958
+ {
1959
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1960
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1961
+ x1: quadrantLeft - halfExternalBorderWidth,
1962
+ y1: quadrantTop,
1963
+ x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,
1964
+ y2: quadrantTop
1965
+ },
1966
+ {
1967
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1968
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1969
+ x1: quadrantLeft + quadrantWidth,
1970
+ y1: quadrantTop + halfExternalBorderWidth,
1971
+ x2: quadrantLeft + quadrantWidth,
1972
+ y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1973
+ },
1974
+ {
1975
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1976
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1977
+ x1: quadrantLeft - halfExternalBorderWidth,
1978
+ y1: quadrantTop + quadrantHeight,
1979
+ x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,
1980
+ y2: quadrantTop + quadrantHeight
1981
+ },
1982
+ {
1983
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1984
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1985
+ x1: quadrantLeft,
1986
+ y1: quadrantTop + halfExternalBorderWidth,
1987
+ x2: quadrantLeft,
1988
+ y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1989
+ },
1990
+ {
1991
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1992
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1993
+ x1: quadrantLeft + quadrantHalfWidth,
1994
+ y1: quadrantTop + halfExternalBorderWidth,
1995
+ x2: quadrantLeft + quadrantHalfWidth,
1996
+ y2: quadrantTop + quadrantHeight - halfExternalBorderWidth
1997
+ },
1998
+ {
1999
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2000
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2001
+ x1: quadrantLeft + halfExternalBorderWidth,
2002
+ y1: quadrantTop + quadrantHalfHeight,
2003
+ x2: quadrantLeft + quadrantWidth - halfExternalBorderWidth,
2004
+ y2: quadrantTop + quadrantHalfHeight
2005
+ }
2006
+ ];
2007
+ }
2008
+ getTitle(showTitle) {
2009
+ if (showTitle) return {
2010
+ text: this.data.titleText,
2011
+ fill: this.themeConfig.quadrantTitleFill,
2012
+ fontSize: this.config.titleFontSize,
2013
+ horizontalPos: "top",
2014
+ verticalPos: "center",
2015
+ rotation: 0,
2016
+ y: this.config.titlePadding,
2017
+ x: this.config.chartWidth / 2
2018
+ };
2019
+ }
2020
+ build() {
2021
+ const showXAxis = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText);
2022
+ const showYAxis = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText);
2023
+ const showTitle = this.config.showTitle && !!this.data.titleText;
2024
+ const xAxisPosition = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition;
2025
+ const calculatedSpace = this.calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle);
2026
+ return {
2027
+ points: this.getQuadrantPoints(calculatedSpace),
2028
+ quadrants: this.getQuadrants(calculatedSpace),
2029
+ axisLabels: this.getAxisLabels(xAxisPosition, showXAxis, showYAxis, calculatedSpace),
2030
+ borderLines: this.getBorders(calculatedSpace),
2031
+ title: this.getTitle(showTitle)
2032
+ };
2033
+ }
2034
+ };
2035
+ var InvalidStyleError = class extends Error {
2036
+ static {
2037
+ __name(this, "InvalidStyleError");
2038
+ }
2039
+ constructor(style, value, type) {
2040
+ super(`value for ${style} ${value} is invalid, please use a valid ${type}`);
2041
+ this.name = "InvalidStyleError";
2042
+ }
2043
+ };
2044
+ function validateHexCode(value) {
2045
+ return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(value);
2046
+ }
2047
+ __name(validateHexCode, "validateHexCode");
2048
+ function validateNumber(value) {
2049
+ return !/^\d+$/.test(value);
2050
+ }
2051
+ __name(validateNumber, "validateNumber");
2052
+ function validateSizeInPixels(value) {
2053
+ return !/^\d+px$/.test(value);
2054
+ }
2055
+ __name(validateSizeInPixels, "validateSizeInPixels");
2056
+ function textSanitizer(text) {
2057
+ return sanitizeText(text.trim(), getConfig2());
2058
+ }
2059
+ __name(textSanitizer, "textSanitizer");
2060
+ var quadrantBuilder = new QuadrantBuilder();
2061
+ function setQuadrant1Text(textObj) {
2062
+ quadrantBuilder.setData({ quadrant1Text: textSanitizer(textObj.text) });
2063
+ }
2064
+ __name(setQuadrant1Text, "setQuadrant1Text");
2065
+ function setQuadrant2Text(textObj) {
2066
+ quadrantBuilder.setData({ quadrant2Text: textSanitizer(textObj.text) });
2067
+ }
2068
+ __name(setQuadrant2Text, "setQuadrant2Text");
2069
+ function setQuadrant3Text(textObj) {
2070
+ quadrantBuilder.setData({ quadrant3Text: textSanitizer(textObj.text) });
2071
+ }
2072
+ __name(setQuadrant3Text, "setQuadrant3Text");
2073
+ function setQuadrant4Text(textObj) {
2074
+ quadrantBuilder.setData({ quadrant4Text: textSanitizer(textObj.text) });
2075
+ }
2076
+ __name(setQuadrant4Text, "setQuadrant4Text");
2077
+ function setXAxisLeftText(textObj) {
2078
+ quadrantBuilder.setData({ xAxisLeftText: textSanitizer(textObj.text) });
2079
+ }
2080
+ __name(setXAxisLeftText, "setXAxisLeftText");
2081
+ function setXAxisRightText(textObj) {
2082
+ quadrantBuilder.setData({ xAxisRightText: textSanitizer(textObj.text) });
2083
+ }
2084
+ __name(setXAxisRightText, "setXAxisRightText");
2085
+ function setYAxisTopText(textObj) {
2086
+ quadrantBuilder.setData({ yAxisTopText: textSanitizer(textObj.text) });
2087
+ }
2088
+ __name(setYAxisTopText, "setYAxisTopText");
2089
+ function setYAxisBottomText(textObj) {
2090
+ quadrantBuilder.setData({ yAxisBottomText: textSanitizer(textObj.text) });
2091
+ }
2092
+ __name(setYAxisBottomText, "setYAxisBottomText");
2093
+ function parseStyles(styles) {
2094
+ const stylesObject = {};
2095
+ for (const style of styles) {
2096
+ const [key, value] = style.trim().split(/\s*:\s*/);
2097
+ if (key === "radius") {
2098
+ if (validateNumber(value)) throw new InvalidStyleError(key, value, "number");
2099
+ stylesObject.radius = parseInt(value);
2100
+ } else if (key === "color") {
2101
+ if (validateHexCode(value)) throw new InvalidStyleError(key, value, "hex code");
2102
+ stylesObject.color = value;
2103
+ } else if (key === "stroke-color") {
2104
+ if (validateHexCode(value)) throw new InvalidStyleError(key, value, "hex code");
2105
+ stylesObject.strokeColor = value;
2106
+ } else if (key === "stroke-width") {
2107
+ if (validateSizeInPixels(value)) throw new InvalidStyleError(key, value, "number of pixels (eg. 10px)");
2108
+ stylesObject.strokeWidth = value;
2109
+ } else throw new Error(`style named ${key} is not supported.`);
2110
+ }
2111
+ return stylesObject;
2112
+ }
2113
+ __name(parseStyles, "parseStyles");
2114
+ function addPoint(textObj, className, x, y, styles) {
2115
+ const stylesObject = parseStyles(styles);
2116
+ quadrantBuilder.addPoints([{
2117
+ x,
2118
+ y,
2119
+ text: textSanitizer(textObj.text),
2120
+ className,
2121
+ ...stylesObject
2122
+ }]);
2123
+ }
2124
+ __name(addPoint, "addPoint");
2125
+ function addClass(className, styles) {
2126
+ quadrantBuilder.addClass(className, parseStyles(styles));
2127
+ }
2128
+ __name(addClass, "addClass");
2129
+ function setWidth(width) {
2130
+ quadrantBuilder.setConfig({ chartWidth: width });
2131
+ }
2132
+ __name(setWidth, "setWidth");
2133
+ function setHeight(height) {
2134
+ quadrantBuilder.setConfig({ chartHeight: height });
2135
+ }
2136
+ __name(setHeight, "setHeight");
2137
+ function getQuadrantData() {
2138
+ const { themeVariables, quadrantChart: quadrantChartConfig } = getConfig2();
2139
+ if (quadrantChartConfig) quadrantBuilder.setConfig(quadrantChartConfig);
2140
+ quadrantBuilder.setThemeConfig({
2141
+ quadrant1Fill: themeVariables.quadrant1Fill,
2142
+ quadrant2Fill: themeVariables.quadrant2Fill,
2143
+ quadrant3Fill: themeVariables.quadrant3Fill,
2144
+ quadrant4Fill: themeVariables.quadrant4Fill,
2145
+ quadrant1TextFill: themeVariables.quadrant1TextFill,
2146
+ quadrant2TextFill: themeVariables.quadrant2TextFill,
2147
+ quadrant3TextFill: themeVariables.quadrant3TextFill,
2148
+ quadrant4TextFill: themeVariables.quadrant4TextFill,
2149
+ quadrantPointFill: themeVariables.quadrantPointFill,
2150
+ quadrantPointTextFill: themeVariables.quadrantPointTextFill,
2151
+ quadrantXAxisTextFill: themeVariables.quadrantXAxisTextFill,
2152
+ quadrantYAxisTextFill: themeVariables.quadrantYAxisTextFill,
2153
+ quadrantExternalBorderStrokeFill: themeVariables.quadrantExternalBorderStrokeFill,
2154
+ quadrantInternalBorderStrokeFill: themeVariables.quadrantInternalBorderStrokeFill,
2155
+ quadrantTitleFill: themeVariables.quadrantTitleFill
2156
+ });
2157
+ quadrantBuilder.setData({ titleText: getDiagramTitle() });
2158
+ return quadrantBuilder.build();
2159
+ }
2160
+ __name(getQuadrantData, "getQuadrantData");
2161
+ var quadrantDb_default = {
2162
+ setWidth,
2163
+ setHeight,
2164
+ setQuadrant1Text,
2165
+ setQuadrant2Text,
2166
+ setQuadrant3Text,
2167
+ setQuadrant4Text,
2168
+ setXAxisLeftText,
2169
+ setXAxisRightText,
2170
+ setYAxisTopText,
2171
+ setYAxisBottomText,
2172
+ parseStyles,
2173
+ addPoint,
2174
+ addClass,
2175
+ getQuadrantData,
2176
+ clear: /* @__PURE__ */ __name(function() {
2177
+ quadrantBuilder.clear();
2178
+ clear();
2179
+ }, "clear"),
2180
+ setAccTitle,
2181
+ getAccTitle,
2182
+ setDiagramTitle,
2183
+ getDiagramTitle,
2184
+ getAccDescription,
2185
+ setAccDescription
2186
+ };
2187
+ var diagram = {
2188
+ parser: quadrant_default,
2189
+ db: quadrantDb_default,
2190
+ renderer: { draw: /* @__PURE__ */ __name((txt, id, _version, diagObj) => {
2191
+ function getDominantBaseLine(horizontalPos) {
2192
+ return horizontalPos === "top" ? "hanging" : "middle";
2193
+ }
2194
+ __name(getDominantBaseLine, "getDominantBaseLine");
2195
+ function getTextAnchor(verticalPos) {
2196
+ return verticalPos === "left" ? "start" : "middle";
2197
+ }
2198
+ __name(getTextAnchor, "getTextAnchor");
2199
+ function getTransformation(data) {
2200
+ return `translate(${data.x}, ${data.y}) rotate(${data.rotation || 0})`;
2201
+ }
2202
+ __name(getTransformation, "getTransformation");
2203
+ const conf = getConfig2();
2204
+ log.debug("Rendering quadrant chart\n" + txt);
2205
+ const securityLevel = conf.securityLevel;
2206
+ let sandboxElement;
2207
+ if (securityLevel === "sandbox") sandboxElement = select_default("#i" + id);
2208
+ const svg = (securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body")).select(`[id="${id}"]`);
2209
+ const group = svg.append("g").attr("class", "main");
2210
+ const width = conf.quadrantChart?.chartWidth ?? 500;
2211
+ const height = conf.quadrantChart?.chartHeight ?? 500;
2212
+ configureSvgSize(svg, height, width, conf.quadrantChart?.useMaxWidth ?? true);
2213
+ svg.attr("viewBox", "0 0 " + width + " " + height);
2214
+ diagObj.db.setHeight(height);
2215
+ diagObj.db.setWidth(width);
2216
+ const quadrantData = diagObj.db.getQuadrantData();
2217
+ const quadrantsGroup = group.append("g").attr("class", "quadrants");
2218
+ const borderGroup = group.append("g").attr("class", "border");
2219
+ const dataPointGroup = group.append("g").attr("class", "data-points");
2220
+ const labelGroup = group.append("g").attr("class", "labels");
2221
+ const titleGroup = group.append("g").attr("class", "title");
2222
+ if (quadrantData.title) 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);
2223
+ if (quadrantData.borderLines) 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);
2224
+ const quadrants = quadrantsGroup.selectAll("g.quadrant").data(quadrantData.quadrants).enter().append("g").attr("class", "quadrant");
2225
+ 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);
2226
+ quadrants.append("text").attr("x", 0).attr("y", 0).attr("fill", (data) => data.text.fill).attr("font-size", (data) => data.text.fontSize).attr("dominant-baseline", (data) => getDominantBaseLine(data.text.horizontalPos)).attr("text-anchor", (data) => getTextAnchor(data.text.verticalPos)).attr("transform", (data) => getTransformation(data.text)).text((data) => data.text.text);
2227
+ labelGroup.selectAll("g.label").data(quadrantData.axisLabels).enter().append("g").attr("class", "label").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));
2228
+ const dataPoints = dataPointGroup.selectAll("g.data-point").data(quadrantData.points).enter().append("g").attr("class", "data-point");
2229
+ 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);
2230
+ 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("dominant-baseline", (data) => getDominantBaseLine(data.text.horizontalPos)).attr("text-anchor", (data) => getTextAnchor(data.text.verticalPos)).attr("transform", (data) => getTransformation(data.text));
2231
+ }, "draw") },
2232
+ styles: /* @__PURE__ */ __name(() => "", "styles")
2233
+ };
2234
+
2235
+ //#endregion
2236
+ export { diagram };