@kong-ui-public/documentation 1.7.21 → 1.7.22-pr.3646.2d80ddaf3.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 (159) hide show
  1. package/package.json +4 -4
  2. package/dist/arc-DZdQjcG8-CduayE88.js +0 -79
  3. package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
  4. package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
  5. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
  6. package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
  7. package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
  8. package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
  9. package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
  10. package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
  11. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
  12. package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
  13. package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
  14. package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
  15. package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
  16. package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
  17. package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
  18. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
  19. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
  20. package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
  21. package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
  22. package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
  23. package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
  24. package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
  25. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
  26. package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
  27. package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
  28. package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
  29. package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
  30. package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
  31. package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
  32. package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
  33. package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
  34. package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
  35. package/dist/documentation.es.js +0 -7
  36. package/dist/documentation.umd.js +0 -3474
  37. package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
  38. package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
  39. package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
  40. package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
  41. package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
  42. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
  43. package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
  44. package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
  45. package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
  46. package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
  47. package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
  48. package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
  49. package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
  50. package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
  51. package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
  52. package/dist/index-DfVKdDwj.js +0 -40029
  53. package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
  54. package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
  55. package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
  56. package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
  57. package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
  58. package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
  59. package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
  60. package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
  61. package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
  62. package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
  63. package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
  64. package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
  65. package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
  66. package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
  67. package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
  68. package/dist/latex-COX74REd-l1quglTx.js +0 -5
  69. package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
  70. package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
  71. package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
  72. package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
  73. package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
  74. package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
  75. package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
  76. package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
  77. package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
  78. package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
  79. package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
  80. package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
  81. package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
  82. package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
  83. package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
  84. package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
  85. package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
  86. package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
  87. package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
  88. package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
  89. package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
  90. package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
  91. package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
  92. package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
  93. package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
  94. package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
  95. package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
  96. package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
  97. package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
  98. package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
  99. package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
  100. package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
  101. package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
  102. package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
  103. package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
  104. package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
  105. package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
  106. package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
  107. package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
  108. package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
  109. package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
  110. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
  111. package/dist/style.css +0 -1
  112. package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
  113. package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
  114. package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
  115. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
  116. package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
  117. package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
  118. package/dist/twig-Bst4uh7S-C3aA9tng.js +0 -18
  119. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  120. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  121. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  122. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  123. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  124. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  125. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  126. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  127. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  128. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  129. package/dist/types/composables/index.d.ts +0 -6
  130. package/dist/types/composables/index.d.ts.map +0 -1
  131. package/dist/types/composables/useI18n.d.ts +0 -9
  132. package/dist/types/composables/useI18n.d.ts.map +0 -1
  133. package/dist/types/external-links.d.ts +0 -5
  134. package/dist/types/external-links.d.ts.map +0 -1
  135. package/dist/types/helpers.d.ts +0 -8
  136. package/dist/types/helpers.d.ts.map +0 -1
  137. package/dist/types/index.d.ts +0 -7
  138. package/dist/types/index.d.ts.map +0 -1
  139. package/dist/types/types/document-list.d.ts +0 -28
  140. package/dist/types/types/document-list.d.ts.map +0 -1
  141. package/dist/types/types/document-modal.d.ts +0 -8
  142. package/dist/types/types/document-modal.d.ts.map +0 -1
  143. package/dist/types/types/index.d.ts +0 -3
  144. package/dist/types/types/index.d.ts.map +0 -1
  145. package/dist/typescript-8ogSSNer-B0ag8pir.js +0 -4
  146. package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
  147. package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
  148. package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
  149. package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
  150. package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
  151. package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
  152. package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
  153. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
  154. package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
  155. package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
  156. package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
  157. package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
  158. package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
  159. package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
@@ -1,2046 +0,0 @@
1
- import { G as Se, K as ke, i as ae, f as Fe, W as Pe, U as Ce, p as r, Z as Lt, g as Tt, q as ee, A as Le, H as ve, F as D, c as Ee, ah as ze } from "./index-DfVKdDwj.js";
2
- import { q as ie } from "./linear-1MXhYum8-9C1jno9G.js";
3
- var Pt = (function() {
4
- var t = /* @__PURE__ */ r(function(n, A, u, o) {
5
- for (u ||= {}, o = n.length; o--; u[n[o]] = A) ;
6
- return u;
7
- }, "o"), l = [1, 3], x = [1, 4], c = [1, 5], h = [1, 6], f = [1, 7], g = [
8
- 1,
9
- 4,
10
- 5,
11
- 10,
12
- 12,
13
- 13,
14
- 14,
15
- 15,
16
- 18,
17
- 25,
18
- 35,
19
- 37,
20
- 39,
21
- 41,
22
- 42,
23
- 48,
24
- 50,
25
- 51,
26
- 52,
27
- 53,
28
- 54,
29
- 55,
30
- 56,
31
- 57,
32
- 60,
33
- 61,
34
- 63,
35
- 64,
36
- 65,
37
- 66,
38
- 67
39
- ], _ = [
40
- 1,
41
- 4,
42
- 5,
43
- 10,
44
- 12,
45
- 13,
46
- 14,
47
- 15,
48
- 18,
49
- 25,
50
- 28,
51
- 35,
52
- 37,
53
- 39,
54
- 41,
55
- 42,
56
- 48,
57
- 50,
58
- 51,
59
- 52,
60
- 53,
61
- 54,
62
- 55,
63
- 56,
64
- 57,
65
- 60,
66
- 61,
67
- 63,
68
- 64,
69
- 65,
70
- 66,
71
- 67
72
- ], a = [
73
- 55,
74
- 56,
75
- 57
76
- ], m = [2, 36], p = [1, 37], y = [1, 36], q = [1, 38], T = [1, 35], d = [1, 43], b = [1, 41], k = [1, 45], dt = [1, 14], ut = [1, 23], xt = [1, 18], ot = [1, 19], ht = [1, 20], i = [1, 21], vt = [1, 22], Et = [1, 24], zt = [1, 25], Dt = [1, 26], It = [1, 27], Nt = [1, 28], wt = [1, 29], U = [1, 32], Q = [1, 33], F = [1, 34], P = [1, 39], C = [1, 40], L = [1, 42], v = [1, 44], X = [1, 63], O = [1, 62], E = [
77
- 4,
78
- 5,
79
- 8,
80
- 10,
81
- 12,
82
- 13,
83
- 14,
84
- 15,
85
- 18,
86
- 44,
87
- 47,
88
- 49,
89
- 55,
90
- 56,
91
- 57,
92
- 63,
93
- 64,
94
- 65,
95
- 66,
96
- 67
97
- ], Wt = [1, 66], $t = [1, 67], Bt = [1, 68], Rt = [1, 69], Ut = [1, 70], Qt = [1, 71], Ht = [1, 72], Xt = [1, 73], Ot = [1, 74], Mt = [1, 75], Yt = [1, 76], jt = [1, 77], w = [
98
- 4,
99
- 5,
100
- 6,
101
- 7,
102
- 8,
103
- 9,
104
- 10,
105
- 11,
106
- 12,
107
- 13,
108
- 14,
109
- 15,
110
- 18
111
- ], G = [1, 91], K = [1, 92], Z = [1, 93], J = [1, 100], V = [1, 94], tt = [1, 97], et = [1, 95], it = [1, 96], at = [1, 98], nt = [1, 99], At = [1, 103], Gt = [
112
- 10,
113
- 55,
114
- 56,
115
- 57
116
- ], $ = [
117
- 4,
118
- 5,
119
- 6,
120
- 8,
121
- 10,
122
- 11,
123
- 13,
124
- 17,
125
- 18,
126
- 19,
127
- 20,
128
- 55,
129
- 56,
130
- 57
131
- ], bt = {
132
- trace: /* @__PURE__ */ r(function() {
133
- }, "trace"),
134
- yy: {},
135
- symbols_: {
136
- error: 2,
137
- idStringToken: 3,
138
- ALPHA: 4,
139
- NUM: 5,
140
- NODE_STRING: 6,
141
- DOWN: 7,
142
- MINUS: 8,
143
- DEFAULT: 9,
144
- COMMA: 10,
145
- COLON: 11,
146
- AMP: 12,
147
- BRKT: 13,
148
- MULT: 14,
149
- UNICODE_TEXT: 15,
150
- styleComponent: 16,
151
- UNIT: 17,
152
- SPACE: 18,
153
- STYLE: 19,
154
- PCT: 20,
155
- idString: 21,
156
- style: 22,
157
- stylesOpt: 23,
158
- classDefStatement: 24,
159
- CLASSDEF: 25,
160
- start: 26,
161
- eol: 27,
162
- QUADRANT: 28,
163
- document: 29,
164
- line: 30,
165
- statement: 31,
166
- axisDetails: 32,
167
- quadrantDetails: 33,
168
- points: 34,
169
- title: 35,
170
- title_value: 36,
171
- acc_title: 37,
172
- acc_title_value: 38,
173
- acc_descr: 39,
174
- acc_descr_value: 40,
175
- acc_descr_multiline_value: 41,
176
- section: 42,
177
- text: 43,
178
- point_start: 44,
179
- point_x: 45,
180
- point_y: 46,
181
- class_name: 47,
182
- "X-AXIS": 48,
183
- "AXIS-TEXT-DELIMITER": 49,
184
- "Y-AXIS": 50,
185
- QUADRANT_1: 51,
186
- QUADRANT_2: 52,
187
- QUADRANT_3: 53,
188
- QUADRANT_4: 54,
189
- NEWLINE: 55,
190
- SEMI: 56,
191
- EOF: 57,
192
- alphaNumToken: 58,
193
- textNoTagsToken: 59,
194
- STR: 60,
195
- MD_STR: 61,
196
- alphaNum: 62,
197
- PUNCTUATION: 63,
198
- PLUS: 64,
199
- EQUALS: 65,
200
- DOT: 66,
201
- UNDERSCORE: 67,
202
- $accept: 0,
203
- $end: 1
204
- },
205
- terminals_: {
206
- 2: "error",
207
- 4: "ALPHA",
208
- 5: "NUM",
209
- 6: "NODE_STRING",
210
- 7: "DOWN",
211
- 8: "MINUS",
212
- 9: "DEFAULT",
213
- 10: "COMMA",
214
- 11: "COLON",
215
- 12: "AMP",
216
- 13: "BRKT",
217
- 14: "MULT",
218
- 15: "UNICODE_TEXT",
219
- 17: "UNIT",
220
- 18: "SPACE",
221
- 19: "STYLE",
222
- 20: "PCT",
223
- 25: "CLASSDEF",
224
- 28: "QUADRANT",
225
- 35: "title",
226
- 36: "title_value",
227
- 37: "acc_title",
228
- 38: "acc_title_value",
229
- 39: "acc_descr",
230
- 40: "acc_descr_value",
231
- 41: "acc_descr_multiline_value",
232
- 42: "section",
233
- 44: "point_start",
234
- 45: "point_x",
235
- 46: "point_y",
236
- 47: "class_name",
237
- 48: "X-AXIS",
238
- 49: "AXIS-TEXT-DELIMITER",
239
- 50: "Y-AXIS",
240
- 51: "QUADRANT_1",
241
- 52: "QUADRANT_2",
242
- 53: "QUADRANT_3",
243
- 54: "QUADRANT_4",
244
- 55: "NEWLINE",
245
- 56: "SEMI",
246
- 57: "EOF",
247
- 60: "STR",
248
- 61: "MD_STR",
249
- 63: "PUNCTUATION",
250
- 64: "PLUS",
251
- 65: "EQUALS",
252
- 66: "DOT",
253
- 67: "UNDERSCORE"
254
- },
255
- productions_: [
256
- 0,
257
- [3, 1],
258
- [3, 1],
259
- [3, 1],
260
- [3, 1],
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
- [16, 1],
270
- [16, 1],
271
- [16, 1],
272
- [16, 1],
273
- [16, 1],
274
- [16, 1],
275
- [16, 1],
276
- [16, 1],
277
- [16, 1],
278
- [16, 1],
279
- [21, 1],
280
- [21, 2],
281
- [22, 1],
282
- [22, 2],
283
- [23, 1],
284
- [23, 3],
285
- [24, 5],
286
- [26, 2],
287
- [26, 2],
288
- [26, 2],
289
- [29, 0],
290
- [29, 2],
291
- [30, 2],
292
- [31, 0],
293
- [31, 1],
294
- [31, 2],
295
- [31, 1],
296
- [31, 1],
297
- [31, 1],
298
- [31, 2],
299
- [31, 2],
300
- [31, 2],
301
- [31, 1],
302
- [31, 1],
303
- [34, 4],
304
- [34, 5],
305
- [34, 5],
306
- [34, 6],
307
- [32, 4],
308
- [32, 3],
309
- [32, 2],
310
- [32, 4],
311
- [32, 3],
312
- [32, 2],
313
- [33, 2],
314
- [33, 2],
315
- [33, 2],
316
- [33, 2],
317
- [27, 1],
318
- [27, 1],
319
- [27, 1],
320
- [43, 1],
321
- [43, 2],
322
- [43, 1],
323
- [43, 1],
324
- [62, 1],
325
- [62, 2],
326
- [58, 1],
327
- [58, 1],
328
- [58, 1],
329
- [58, 1],
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
- [59, 1],
339
- [59, 1],
340
- [59, 1]
341
- ],
342
- performAction: /* @__PURE__ */ r(function(n, A, u, o, S, e, ct) {
343
- var s = e.length - 1;
344
- switch (S) {
345
- case 23:
346
- this.$ = e[s];
347
- break;
348
- case 24:
349
- this.$ = e[s - 1] + "" + e[s];
350
- break;
351
- case 26:
352
- this.$ = e[s - 1] + e[s];
353
- break;
354
- case 27:
355
- this.$ = [e[s].trim()];
356
- break;
357
- case 28:
358
- e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
359
- break;
360
- case 29:
361
- this.$ = e[s - 4], o.addClass(e[s - 2], e[s]);
362
- break;
363
- case 37:
364
- this.$ = [];
365
- break;
366
- case 42:
367
- this.$ = e[s].trim(), o.setDiagramTitle(this.$);
368
- break;
369
- case 43:
370
- this.$ = e[s].trim(), o.setAccTitle(this.$);
371
- break;
372
- case 44:
373
- case 45:
374
- this.$ = e[s].trim(), o.setAccDescription(this.$);
375
- break;
376
- case 46:
377
- o.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
378
- break;
379
- case 47:
380
- o.addPoint(e[s - 3], "", e[s - 1], e[s], []);
381
- break;
382
- case 48:
383
- o.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
384
- break;
385
- case 49:
386
- o.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
387
- break;
388
- case 50:
389
- o.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
390
- break;
391
- case 51:
392
- o.setXAxisLeftText(e[s - 2]), o.setXAxisRightText(e[s]);
393
- break;
394
- case 52:
395
- e[s - 1].text += " ⟶ ", o.setXAxisLeftText(e[s - 1]);
396
- break;
397
- case 53:
398
- o.setXAxisLeftText(e[s]);
399
- break;
400
- case 54:
401
- o.setYAxisBottomText(e[s - 2]), o.setYAxisTopText(e[s]);
402
- break;
403
- case 55:
404
- e[s - 1].text += " ⟶ ", o.setYAxisBottomText(e[s - 1]);
405
- break;
406
- case 56:
407
- o.setYAxisBottomText(e[s]);
408
- break;
409
- case 57:
410
- o.setQuadrant1Text(e[s]);
411
- break;
412
- case 58:
413
- o.setQuadrant2Text(e[s]);
414
- break;
415
- case 59:
416
- o.setQuadrant3Text(e[s]);
417
- break;
418
- case 60:
419
- o.setQuadrant4Text(e[s]);
420
- break;
421
- case 64:
422
- this.$ = {
423
- text: e[s],
424
- type: "text"
425
- };
426
- break;
427
- case 65:
428
- this.$ = {
429
- text: e[s - 1].text + "" + e[s],
430
- type: e[s - 1].type
431
- };
432
- break;
433
- case 66:
434
- this.$ = {
435
- text: e[s],
436
- type: "text"
437
- };
438
- break;
439
- case 67:
440
- this.$ = {
441
- text: e[s],
442
- type: "markdown"
443
- };
444
- break;
445
- case 68:
446
- this.$ = e[s];
447
- break;
448
- case 69:
449
- this.$ = e[s - 1] + "" + e[s];
450
- break;
451
- }
452
- }, "anonymous"),
453
- table: [
454
- {
455
- 18: l,
456
- 26: 1,
457
- 27: 2,
458
- 28: x,
459
- 55: c,
460
- 56: h,
461
- 57: f
462
- },
463
- { 1: [3] },
464
- {
465
- 18: l,
466
- 26: 8,
467
- 27: 2,
468
- 28: x,
469
- 55: c,
470
- 56: h,
471
- 57: f
472
- },
473
- {
474
- 18: l,
475
- 26: 9,
476
- 27: 2,
477
- 28: x,
478
- 55: c,
479
- 56: h,
480
- 57: f
481
- },
482
- t(g, [2, 33], { 29: 10 }),
483
- t(_, [2, 61]),
484
- t(_, [2, 62]),
485
- t(_, [2, 63]),
486
- { 1: [2, 30] },
487
- { 1: [2, 31] },
488
- t(a, m, {
489
- 30: 11,
490
- 31: 12,
491
- 24: 13,
492
- 32: 15,
493
- 33: 16,
494
- 34: 17,
495
- 43: 30,
496
- 58: 31,
497
- 1: [2, 32],
498
- 4: p,
499
- 5: y,
500
- 10: q,
501
- 12: T,
502
- 13: d,
503
- 14: b,
504
- 15: k,
505
- 18: dt,
506
- 25: ut,
507
- 35: xt,
508
- 37: ot,
509
- 39: ht,
510
- 41: i,
511
- 42: vt,
512
- 48: Et,
513
- 50: zt,
514
- 51: Dt,
515
- 52: It,
516
- 53: Nt,
517
- 54: wt,
518
- 60: U,
519
- 61: Q,
520
- 63: F,
521
- 64: P,
522
- 65: C,
523
- 66: L,
524
- 67: v
525
- }),
526
- t(g, [2, 34]),
527
- {
528
- 27: 46,
529
- 55: c,
530
- 56: h,
531
- 57: f
532
- },
533
- t(a, [2, 37]),
534
- t(a, m, {
535
- 24: 13,
536
- 32: 15,
537
- 33: 16,
538
- 34: 17,
539
- 43: 30,
540
- 58: 31,
541
- 31: 47,
542
- 4: p,
543
- 5: y,
544
- 10: q,
545
- 12: T,
546
- 13: d,
547
- 14: b,
548
- 15: k,
549
- 18: dt,
550
- 25: ut,
551
- 35: xt,
552
- 37: ot,
553
- 39: ht,
554
- 41: i,
555
- 42: vt,
556
- 48: Et,
557
- 50: zt,
558
- 51: Dt,
559
- 52: It,
560
- 53: Nt,
561
- 54: wt,
562
- 60: U,
563
- 61: Q,
564
- 63: F,
565
- 64: P,
566
- 65: C,
567
- 66: L,
568
- 67: v
569
- }),
570
- t(a, [2, 39]),
571
- t(a, [2, 40]),
572
- t(a, [2, 41]),
573
- { 36: [1, 48] },
574
- { 38: [1, 49] },
575
- { 40: [1, 50] },
576
- t(a, [2, 45]),
577
- t(a, [2, 46]),
578
- { 18: [1, 51] },
579
- {
580
- 4: p,
581
- 5: y,
582
- 10: q,
583
- 12: T,
584
- 13: d,
585
- 14: b,
586
- 15: k,
587
- 43: 52,
588
- 58: 31,
589
- 60: U,
590
- 61: Q,
591
- 63: F,
592
- 64: P,
593
- 65: C,
594
- 66: L,
595
- 67: v
596
- },
597
- {
598
- 4: p,
599
- 5: y,
600
- 10: q,
601
- 12: T,
602
- 13: d,
603
- 14: b,
604
- 15: k,
605
- 43: 53,
606
- 58: 31,
607
- 60: U,
608
- 61: Q,
609
- 63: F,
610
- 64: P,
611
- 65: C,
612
- 66: L,
613
- 67: v
614
- },
615
- {
616
- 4: p,
617
- 5: y,
618
- 10: q,
619
- 12: T,
620
- 13: d,
621
- 14: b,
622
- 15: k,
623
- 43: 54,
624
- 58: 31,
625
- 60: U,
626
- 61: Q,
627
- 63: F,
628
- 64: P,
629
- 65: C,
630
- 66: L,
631
- 67: v
632
- },
633
- {
634
- 4: p,
635
- 5: y,
636
- 10: q,
637
- 12: T,
638
- 13: d,
639
- 14: b,
640
- 15: k,
641
- 43: 55,
642
- 58: 31,
643
- 60: U,
644
- 61: Q,
645
- 63: F,
646
- 64: P,
647
- 65: C,
648
- 66: L,
649
- 67: v
650
- },
651
- {
652
- 4: p,
653
- 5: y,
654
- 10: q,
655
- 12: T,
656
- 13: d,
657
- 14: b,
658
- 15: k,
659
- 43: 56,
660
- 58: 31,
661
- 60: U,
662
- 61: Q,
663
- 63: F,
664
- 64: P,
665
- 65: C,
666
- 66: L,
667
- 67: v
668
- },
669
- {
670
- 4: p,
671
- 5: y,
672
- 10: q,
673
- 12: T,
674
- 13: d,
675
- 14: b,
676
- 15: k,
677
- 43: 57,
678
- 58: 31,
679
- 60: U,
680
- 61: Q,
681
- 63: F,
682
- 64: P,
683
- 65: C,
684
- 66: L,
685
- 67: v
686
- },
687
- {
688
- 4: p,
689
- 5: y,
690
- 8: X,
691
- 10: q,
692
- 12: T,
693
- 13: d,
694
- 14: b,
695
- 15: k,
696
- 18: O,
697
- 44: [1, 58],
698
- 47: [1, 59],
699
- 58: 61,
700
- 59: 60,
701
- 63: F,
702
- 64: P,
703
- 65: C,
704
- 66: L,
705
- 67: v
706
- },
707
- t(E, [2, 64]),
708
- t(E, [2, 66]),
709
- t(E, [2, 67]),
710
- t(E, [2, 70]),
711
- t(E, [2, 71]),
712
- t(E, [2, 72]),
713
- t(E, [2, 73]),
714
- t(E, [2, 74]),
715
- t(E, [2, 75]),
716
- t(E, [2, 76]),
717
- t(E, [2, 77]),
718
- t(E, [2, 78]),
719
- t(E, [2, 79]),
720
- t(E, [2, 80]),
721
- t(E, [2, 81]),
722
- t(g, [2, 35]),
723
- t(a, [2, 38]),
724
- t(a, [2, 42]),
725
- t(a, [2, 43]),
726
- t(a, [2, 44]),
727
- {
728
- 3: 65,
729
- 4: Wt,
730
- 5: $t,
731
- 6: Bt,
732
- 7: Rt,
733
- 8: Ut,
734
- 9: Qt,
735
- 10: Ht,
736
- 11: Xt,
737
- 12: Ot,
738
- 13: Mt,
739
- 14: Yt,
740
- 15: jt,
741
- 21: 64
742
- },
743
- t(a, [2, 53], {
744
- 59: 60,
745
- 58: 61,
746
- 4: p,
747
- 5: y,
748
- 8: X,
749
- 10: q,
750
- 12: T,
751
- 13: d,
752
- 14: b,
753
- 15: k,
754
- 18: O,
755
- 49: [1, 78],
756
- 63: F,
757
- 64: P,
758
- 65: C,
759
- 66: L,
760
- 67: v
761
- }),
762
- t(a, [2, 56], {
763
- 59: 60,
764
- 58: 61,
765
- 4: p,
766
- 5: y,
767
- 8: X,
768
- 10: q,
769
- 12: T,
770
- 13: d,
771
- 14: b,
772
- 15: k,
773
- 18: O,
774
- 49: [1, 79],
775
- 63: F,
776
- 64: P,
777
- 65: C,
778
- 66: L,
779
- 67: v
780
- }),
781
- t(a, [2, 57], {
782
- 59: 60,
783
- 58: 61,
784
- 4: p,
785
- 5: y,
786
- 8: X,
787
- 10: q,
788
- 12: T,
789
- 13: d,
790
- 14: b,
791
- 15: k,
792
- 18: O,
793
- 63: F,
794
- 64: P,
795
- 65: C,
796
- 66: L,
797
- 67: v
798
- }),
799
- t(a, [2, 58], {
800
- 59: 60,
801
- 58: 61,
802
- 4: p,
803
- 5: y,
804
- 8: X,
805
- 10: q,
806
- 12: T,
807
- 13: d,
808
- 14: b,
809
- 15: k,
810
- 18: O,
811
- 63: F,
812
- 64: P,
813
- 65: C,
814
- 66: L,
815
- 67: v
816
- }),
817
- t(a, [2, 59], {
818
- 59: 60,
819
- 58: 61,
820
- 4: p,
821
- 5: y,
822
- 8: X,
823
- 10: q,
824
- 12: T,
825
- 13: d,
826
- 14: b,
827
- 15: k,
828
- 18: O,
829
- 63: F,
830
- 64: P,
831
- 65: C,
832
- 66: L,
833
- 67: v
834
- }),
835
- t(a, [2, 60], {
836
- 59: 60,
837
- 58: 61,
838
- 4: p,
839
- 5: y,
840
- 8: X,
841
- 10: q,
842
- 12: T,
843
- 13: d,
844
- 14: b,
845
- 15: k,
846
- 18: O,
847
- 63: F,
848
- 64: P,
849
- 65: C,
850
- 66: L,
851
- 67: v
852
- }),
853
- { 45: [1, 80] },
854
- { 44: [1, 81] },
855
- t(E, [2, 65]),
856
- t(E, [2, 82]),
857
- t(E, [2, 83]),
858
- t(E, [2, 84]),
859
- {
860
- 3: 83,
861
- 4: Wt,
862
- 5: $t,
863
- 6: Bt,
864
- 7: Rt,
865
- 8: Ut,
866
- 9: Qt,
867
- 10: Ht,
868
- 11: Xt,
869
- 12: Ot,
870
- 13: Mt,
871
- 14: Yt,
872
- 15: jt,
873
- 18: [1, 82]
874
- },
875
- t(w, [2, 23]),
876
- t(w, [2, 1]),
877
- t(w, [2, 2]),
878
- t(w, [2, 3]),
879
- t(w, [2, 4]),
880
- t(w, [2, 5]),
881
- t(w, [2, 6]),
882
- t(w, [2, 7]),
883
- t(w, [2, 8]),
884
- t(w, [2, 9]),
885
- t(w, [2, 10]),
886
- t(w, [2, 11]),
887
- t(w, [2, 12]),
888
- t(a, [2, 52], {
889
- 58: 31,
890
- 43: 84,
891
- 4: p,
892
- 5: y,
893
- 10: q,
894
- 12: T,
895
- 13: d,
896
- 14: b,
897
- 15: k,
898
- 60: U,
899
- 61: Q,
900
- 63: F,
901
- 64: P,
902
- 65: C,
903
- 66: L,
904
- 67: v
905
- }),
906
- t(a, [2, 55], {
907
- 58: 31,
908
- 43: 85,
909
- 4: p,
910
- 5: y,
911
- 10: q,
912
- 12: T,
913
- 13: d,
914
- 14: b,
915
- 15: k,
916
- 60: U,
917
- 61: Q,
918
- 63: F,
919
- 64: P,
920
- 65: C,
921
- 66: L,
922
- 67: v
923
- }),
924
- { 46: [1, 86] },
925
- { 45: [1, 87] },
926
- {
927
- 4: G,
928
- 5: K,
929
- 6: Z,
930
- 8: J,
931
- 11: V,
932
- 13: tt,
933
- 16: 90,
934
- 17: et,
935
- 18: it,
936
- 19: at,
937
- 20: nt,
938
- 22: 89,
939
- 23: 88
940
- },
941
- t(w, [2, 24]),
942
- t(a, [2, 51], {
943
- 59: 60,
944
- 58: 61,
945
- 4: p,
946
- 5: y,
947
- 8: X,
948
- 10: q,
949
- 12: T,
950
- 13: d,
951
- 14: b,
952
- 15: k,
953
- 18: O,
954
- 63: F,
955
- 64: P,
956
- 65: C,
957
- 66: L,
958
- 67: v
959
- }),
960
- t(a, [2, 54], {
961
- 59: 60,
962
- 58: 61,
963
- 4: p,
964
- 5: y,
965
- 8: X,
966
- 10: q,
967
- 12: T,
968
- 13: d,
969
- 14: b,
970
- 15: k,
971
- 18: O,
972
- 63: F,
973
- 64: P,
974
- 65: C,
975
- 66: L,
976
- 67: v
977
- }),
978
- t(a, [2, 47], {
979
- 22: 89,
980
- 16: 90,
981
- 23: 101,
982
- 4: G,
983
- 5: K,
984
- 6: Z,
985
- 8: J,
986
- 11: V,
987
- 13: tt,
988
- 17: et,
989
- 18: it,
990
- 19: at,
991
- 20: nt
992
- }),
993
- { 46: [1, 102] },
994
- t(a, [2, 29], { 10: At }),
995
- t(Gt, [2, 27], {
996
- 16: 104,
997
- 4: G,
998
- 5: K,
999
- 6: Z,
1000
- 8: J,
1001
- 11: V,
1002
- 13: tt,
1003
- 17: et,
1004
- 18: it,
1005
- 19: at,
1006
- 20: nt
1007
- }),
1008
- t($, [2, 25]),
1009
- t($, [2, 13]),
1010
- t($, [2, 14]),
1011
- t($, [2, 15]),
1012
- t($, [2, 16]),
1013
- t($, [2, 17]),
1014
- t($, [2, 18]),
1015
- t($, [2, 19]),
1016
- t($, [2, 20]),
1017
- t($, [2, 21]),
1018
- t($, [2, 22]),
1019
- t(a, [2, 49], { 10: At }),
1020
- t(a, [2, 48], {
1021
- 22: 89,
1022
- 16: 90,
1023
- 23: 105,
1024
- 4: G,
1025
- 5: K,
1026
- 6: Z,
1027
- 8: J,
1028
- 11: V,
1029
- 13: tt,
1030
- 17: et,
1031
- 18: it,
1032
- 19: at,
1033
- 20: nt
1034
- }),
1035
- {
1036
- 4: G,
1037
- 5: K,
1038
- 6: Z,
1039
- 8: J,
1040
- 11: V,
1041
- 13: tt,
1042
- 16: 90,
1043
- 17: et,
1044
- 18: it,
1045
- 19: at,
1046
- 20: nt,
1047
- 22: 106
1048
- },
1049
- t($, [2, 26]),
1050
- t(a, [2, 50], { 10: At }),
1051
- t(Gt, [2, 28], {
1052
- 16: 104,
1053
- 4: G,
1054
- 5: K,
1055
- 6: Z,
1056
- 8: J,
1057
- 11: V,
1058
- 13: tt,
1059
- 17: et,
1060
- 18: it,
1061
- 19: at,
1062
- 20: nt
1063
- })
1064
- ],
1065
- defaultActions: {
1066
- 8: [2, 30],
1067
- 9: [2, 31]
1068
- },
1069
- parseError: /* @__PURE__ */ r(function(n, A) {
1070
- if (A.recoverable) this.trace(n);
1071
- else {
1072
- var u = Error(n);
1073
- throw u.hash = A, u;
1074
- }
1075
- }, "parseError"),
1076
- parse: /* @__PURE__ */ r(function(n) {
1077
- var A = this, u = [0], o = [], S = [null], e = [], ct = this.table, s = "", gt = 0, Kt = 0, Te = 0, qe = 2, Zt = 1, Ae = e.slice.call(arguments, 1), z = Object.create(this.lexer), Y = { yy: {} };
1078
- for (var _t in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _t) && (Y.yy[_t] = this.yy[_t]);
1079
- z.setInput(n, Y.yy), Y.yy.lexer = z, Y.yy.parser = this, z.yylloc === void 0 && (z.yylloc = {});
1080
- var St = z.yylloc;
1081
- e.push(St);
1082
- var be = z.options && z.options.ranges;
1083
- typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1084
- function _e(R) {
1085
- u.length -= 2 * R, S.length -= R, e.length -= R;
1086
- }
1087
- r(_e, "popStack");
1088
- function Jt() {
1089
- var R = o.pop() || z.lex() || Zt;
1090
- return typeof R != "number" && (R instanceof Array && (o = R, R = o.pop()), R = A.symbols_[R] || R), R;
1091
- }
1092
- r(Jt, "lex");
1093
- for (var W, kt, j, B, Ft, st = {}, pt, M, Vt, yt; ; ) {
1094
- if (j = u[u.length - 1], this.defaultActions[j] ? B = this.defaultActions[j] : (W ??= Jt(), B = ct[j] && ct[j][W]), B === void 0 || !B.length || !B[0]) {
1095
- var te = "";
1096
- for (pt in yt = [], ct[j]) this.terminals_[pt] && pt > qe && yt.push("'" + this.terminals_[pt] + "'");
1097
- te = z.showPosition ? "Parse error on line " + (gt + 1) + `:
1098
- ` + z.showPosition() + `
1099
- Expecting ` + yt.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : "Parse error on line " + (gt + 1) + ": Unexpected " + (W == Zt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(te, {
1100
- text: z.match,
1101
- token: this.terminals_[W] || W,
1102
- line: z.yylineno,
1103
- loc: St,
1104
- expected: yt
1105
- });
1106
- }
1107
- if (B[0] instanceof Array && B.length > 1) throw Error("Parse Error: multiple actions possible at state: " + j + ", token: " + W);
1108
- switch (B[0]) {
1109
- case 1:
1110
- u.push(W), S.push(z.yytext), e.push(z.yylloc), u.push(B[1]), W = null, kt ? (W = kt, kt = null) : (Kt = z.yyleng, s = z.yytext, gt = z.yylineno, St = z.yylloc, Te > 0);
1111
- break;
1112
- case 2:
1113
- if (M = this.productions_[B[1]][1], st.$ = S[S.length - M], st._$ = {
1114
- first_line: e[e.length - (M || 1)].first_line,
1115
- last_line: e[e.length - 1].last_line,
1116
- first_column: e[e.length - (M || 1)].first_column,
1117
- last_column: e[e.length - 1].last_column
1118
- }, be && (st._$.range = [e[e.length - (M || 1)].range[0], e[e.length - 1].range[1]]), Ft = this.performAction.apply(st, [
1119
- s,
1120
- Kt,
1121
- gt,
1122
- Y.yy,
1123
- B[1],
1124
- S,
1125
- e
1126
- ].concat(Ae)), Ft !== void 0) return Ft;
1127
- M && (u = u.slice(0, -1 * M * 2), S = S.slice(0, -1 * M), e = e.slice(0, -1 * M)), u.push(this.productions_[B[1]][0]), S.push(st.$), e.push(st._$), Vt = ct[u[u.length - 2]][u[u.length - 1]], u.push(Vt);
1128
- break;
1129
- case 3:
1130
- return !0;
1131
- }
1132
- }
1133
- return !0;
1134
- }, "parse")
1135
- };
1136
- bt.lexer = /* @__PURE__ */ (function() {
1137
- return {
1138
- EOF: 1,
1139
- parseError: /* @__PURE__ */ r(function(n, A) {
1140
- if (this.yy.parser) this.yy.parser.parseError(n, A);
1141
- else throw Error(n);
1142
- }, "parseError"),
1143
- setInput: /* @__PURE__ */ r(function(n, A) {
1144
- return this.yy = A || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1145
- first_line: 1,
1146
- first_column: 0,
1147
- last_line: 1,
1148
- last_column: 0
1149
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1150
- }, "setInput"),
1151
- input: /* @__PURE__ */ r(function() {
1152
- var n = this._input[0];
1153
- return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
1154
- }, "input"),
1155
- unput: /* @__PURE__ */ r(function(n) {
1156
- var A = n.length, u = n.split(/(?:\r\n?|\n)/g);
1157
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - A), this.offset -= A;
1158
- var o = this.match.split(/(?:\r\n?|\n)/g);
1159
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
1160
- var S = this.yylloc.range;
1161
- return this.yylloc = {
1162
- first_line: this.yylloc.first_line,
1163
- last_line: this.yylineno + 1,
1164
- first_column: this.yylloc.first_column,
1165
- last_column: u ? (u.length === o.length ? this.yylloc.first_column : 0) + o[o.length - u.length].length - u[0].length : this.yylloc.first_column - A
1166
- }, this.options.ranges && (this.yylloc.range = [S[0], S[0] + this.yyleng - A]), this.yyleng = this.yytext.length, this;
1167
- }, "unput"),
1168
- more: /* @__PURE__ */ r(function() {
1169
- return this._more = !0, this;
1170
- }, "more"),
1171
- reject: /* @__PURE__ */ r(function() {
1172
- if (this.options.backtrack_lexer) this._backtrack = !0;
1173
- 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).
1174
- ` + this.showPosition(), {
1175
- text: "",
1176
- token: null,
1177
- line: this.yylineno
1178
- });
1179
- return this;
1180
- }, "reject"),
1181
- less: /* @__PURE__ */ r(function(n) {
1182
- this.unput(this.match.slice(n));
1183
- }, "less"),
1184
- pastInput: /* @__PURE__ */ r(function() {
1185
- var n = this.matched.substr(0, this.matched.length - this.match.length);
1186
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
1187
- }, "pastInput"),
1188
- upcomingInput: /* @__PURE__ */ r(function() {
1189
- var n = this.match;
1190
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
1191
- }, "upcomingInput"),
1192
- showPosition: /* @__PURE__ */ r(function() {
1193
- var n = this.pastInput(), A = Array(n.length + 1).join("-");
1194
- return n + this.upcomingInput() + `
1195
- ` + A + "^";
1196
- }, "showPosition"),
1197
- test_match: /* @__PURE__ */ r(function(n, A) {
1198
- var u, o, S;
1199
- if (this.options.backtrack_lexer && (S = {
1200
- yylineno: this.yylineno,
1201
- yylloc: {
1202
- first_line: this.yylloc.first_line,
1203
- last_line: this.last_line,
1204
- first_column: this.yylloc.first_column,
1205
- last_column: this.yylloc.last_column
1206
- },
1207
- yytext: this.yytext,
1208
- match: this.match,
1209
- matches: this.matches,
1210
- matched: this.matched,
1211
- yyleng: this.yyleng,
1212
- offset: this.offset,
1213
- _more: this._more,
1214
- _input: this._input,
1215
- yy: this.yy,
1216
- conditionStack: this.conditionStack.slice(0),
1217
- done: this.done
1218
- }, this.options.ranges && (S.yylloc.range = this.yylloc.range.slice(0))), o = n[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
1219
- first_line: this.yylloc.last_line,
1220
- last_line: this.yylineno + 1,
1221
- first_column: this.yylloc.last_column,
1222
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
1223
- }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], u = this.performAction.call(this, this.yy, this, A, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
1224
- if (this._backtrack) {
1225
- for (var e in S) this[e] = S[e];
1226
- return !1;
1227
- }
1228
- return !1;
1229
- }, "test_match"),
1230
- next: /* @__PURE__ */ r(function() {
1231
- if (this.done) return this.EOF;
1232
- this._input || (this.done = !0);
1233
- var n, A, u, o;
1234
- this._more || (this.yytext = "", this.match = "");
1235
- for (var S = this._currentRules(), e = 0; e < S.length; e++) if (u = this._input.match(this.rules[S[e]]), u && (!A || u[0].length > A[0].length)) {
1236
- if (A = u, o = e, this.options.backtrack_lexer) {
1237
- if (n = this.test_match(u, S[e]), n !== !1) return n;
1238
- if (this._backtrack) {
1239
- A = !1;
1240
- continue;
1241
- } else return !1;
1242
- } else if (!this.options.flex) break;
1243
- }
1244
- return A ? (n = this.test_match(A, S[o]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1245
- ` + this.showPosition(), {
1246
- text: "",
1247
- token: null,
1248
- line: this.yylineno
1249
- });
1250
- }, "next"),
1251
- lex: /* @__PURE__ */ r(function() {
1252
- return this.next() || this.lex();
1253
- }, "lex"),
1254
- begin: /* @__PURE__ */ r(function(n) {
1255
- this.conditionStack.push(n);
1256
- }, "begin"),
1257
- popState: /* @__PURE__ */ r(function() {
1258
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1259
- }, "popState"),
1260
- _currentRules: /* @__PURE__ */ r(function() {
1261
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1262
- }, "_currentRules"),
1263
- topState: /* @__PURE__ */ r(function(n) {
1264
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
1265
- }, "topState"),
1266
- pushState: /* @__PURE__ */ r(function(n) {
1267
- this.begin(n);
1268
- }, "pushState"),
1269
- stateStackSize: /* @__PURE__ */ r(function() {
1270
- return this.conditionStack.length;
1271
- }, "stateStackSize"),
1272
- options: { "case-insensitive": !0 },
1273
- performAction: /* @__PURE__ */ r(function(n, A, u, o) {
1274
- switch (u) {
1275
- case 0:
1276
- break;
1277
- case 1:
1278
- break;
1279
- case 2:
1280
- return 55;
1281
- case 3:
1282
- break;
1283
- case 4:
1284
- return this.begin("title"), 35;
1285
- case 5:
1286
- return this.popState(), "title_value";
1287
- case 6:
1288
- return this.begin("acc_title"), 37;
1289
- case 7:
1290
- return this.popState(), "acc_title_value";
1291
- case 8:
1292
- return this.begin("acc_descr"), 39;
1293
- case 9:
1294
- return this.popState(), "acc_descr_value";
1295
- case 10:
1296
- this.begin("acc_descr_multiline");
1297
- break;
1298
- case 11:
1299
- this.popState();
1300
- break;
1301
- case 12:
1302
- return "acc_descr_multiline_value";
1303
- case 13:
1304
- return 48;
1305
- case 14:
1306
- return 50;
1307
- case 15:
1308
- return 49;
1309
- case 16:
1310
- return 51;
1311
- case 17:
1312
- return 52;
1313
- case 18:
1314
- return 53;
1315
- case 19:
1316
- return 54;
1317
- case 20:
1318
- return 25;
1319
- case 21:
1320
- this.begin("md_string");
1321
- break;
1322
- case 22:
1323
- return "MD_STR";
1324
- case 23:
1325
- this.popState();
1326
- break;
1327
- case 24:
1328
- this.begin("string");
1329
- break;
1330
- case 25:
1331
- this.popState();
1332
- break;
1333
- case 26:
1334
- return "STR";
1335
- case 27:
1336
- this.begin("class_name");
1337
- break;
1338
- case 28:
1339
- return this.popState(), 47;
1340
- case 29:
1341
- return this.begin("point_start"), 44;
1342
- case 30:
1343
- return this.begin("point_x"), 45;
1344
- case 31:
1345
- this.popState();
1346
- break;
1347
- case 32:
1348
- this.popState(), this.begin("point_y");
1349
- break;
1350
- case 33:
1351
- return this.popState(), 46;
1352
- case 34:
1353
- return 28;
1354
- case 35:
1355
- return 4;
1356
- case 36:
1357
- return 15;
1358
- case 37:
1359
- return 11;
1360
- case 38:
1361
- return 64;
1362
- case 39:
1363
- return 10;
1364
- case 40:
1365
- return 65;
1366
- case 41:
1367
- return 65;
1368
- case 42:
1369
- return 14;
1370
- case 43:
1371
- return 13;
1372
- case 44:
1373
- return 67;
1374
- case 45:
1375
- return 66;
1376
- case 46:
1377
- return 12;
1378
- case 47:
1379
- return 8;
1380
- case 48:
1381
- return 5;
1382
- case 49:
1383
- return 18;
1384
- case 50:
1385
- return 56;
1386
- case 51:
1387
- return 63;
1388
- case 52:
1389
- return 57;
1390
- }
1391
- }, "anonymous"),
1392
- rules: [
1393
- /^(?:%%(?!\{)[^\n]*)/i,
1394
- /^(?:[^\}]%%[^\n]*)/i,
1395
- /^(?:[\n\r]+)/i,
1396
- /^(?:%%[^\n]*)/i,
1397
- /^(?:title\b)/i,
1398
- /^(?:(?!\n||)*[^\n]*)/i,
1399
- /^(?:accTitle\s*:\s*)/i,
1400
- /^(?:(?!\n||)*[^\n]*)/i,
1401
- /^(?:accDescr\s*:\s*)/i,
1402
- /^(?:(?!\n||)*[^\n]*)/i,
1403
- /^(?:accDescr\s*\{\s*)/i,
1404
- /^(?:[\}])/i,
1405
- /^(?:[^\}]*)/i,
1406
- /^(?: *x-axis *)/i,
1407
- /^(?: *y-axis *)/i,
1408
- /^(?: *--+> *)/i,
1409
- /^(?: *quadrant-1 *)/i,
1410
- /^(?: *quadrant-2 *)/i,
1411
- /^(?: *quadrant-3 *)/i,
1412
- /^(?: *quadrant-4 *)/i,
1413
- /^(?:classDef\b)/i,
1414
- /^(?:["][`])/i,
1415
- /^(?:[^`"]+)/i,
1416
- /^(?:[`]["])/i,
1417
- /^(?:["])/i,
1418
- /^(?:["])/i,
1419
- /^(?:[^"]*)/i,
1420
- /^(?::::)/i,
1421
- /^(?:^\w+)/i,
1422
- /^(?:\s*:\s*\[\s*)/i,
1423
- /^(?:(1)|(0(.\d+)?))/i,
1424
- /^(?:\s*\] *)/i,
1425
- /^(?:\s*,\s*)/i,
1426
- /^(?:(1)|(0(.\d+)?))/i,
1427
- /^(?: *quadrantChart *)/i,
1428
- /^(?:[A-Za-z]+)/i,
1429
- /^(?:[^\x00-\x7F]+)/i,
1430
- /^(?::)/i,
1431
- /^(?:\+)/i,
1432
- /^(?:,)/i,
1433
- /^(?:=)/i,
1434
- /^(?:=)/i,
1435
- /^(?:\*)/i,
1436
- /^(?:#)/i,
1437
- /^(?:[\_])/i,
1438
- /^(?:\.)/i,
1439
- /^(?:&)/i,
1440
- /^(?:-)/i,
1441
- /^(?:[0-9]+)/i,
1442
- /^(?:\s)/i,
1443
- /^(?:;)/i,
1444
- /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1445
- /^(?:$)/i
1446
- ],
1447
- conditions: {
1448
- class_name: {
1449
- rules: [28],
1450
- inclusive: !1
1451
- },
1452
- point_y: {
1453
- rules: [33],
1454
- inclusive: !1
1455
- },
1456
- point_x: {
1457
- rules: [32],
1458
- inclusive: !1
1459
- },
1460
- point_start: {
1461
- rules: [30, 31],
1462
- inclusive: !1
1463
- },
1464
- acc_descr_multiline: {
1465
- rules: [11, 12],
1466
- inclusive: !1
1467
- },
1468
- acc_descr: {
1469
- rules: [9],
1470
- inclusive: !1
1471
- },
1472
- acc_title: {
1473
- rules: [7],
1474
- inclusive: !1
1475
- },
1476
- title: {
1477
- rules: [5],
1478
- inclusive: !1
1479
- },
1480
- md_string: {
1481
- rules: [22, 23],
1482
- inclusive: !1
1483
- },
1484
- string: {
1485
- rules: [25, 26],
1486
- inclusive: !1
1487
- },
1488
- INITIAL: {
1489
- rules: [
1490
- 0,
1491
- 1,
1492
- 2,
1493
- 3,
1494
- 4,
1495
- 6,
1496
- 8,
1497
- 10,
1498
- 13,
1499
- 14,
1500
- 15,
1501
- 16,
1502
- 17,
1503
- 18,
1504
- 19,
1505
- 20,
1506
- 21,
1507
- 24,
1508
- 27,
1509
- 29,
1510
- 34,
1511
- 35,
1512
- 36,
1513
- 37,
1514
- 38,
1515
- 39,
1516
- 40,
1517
- 41,
1518
- 42,
1519
- 43,
1520
- 44,
1521
- 45,
1522
- 46,
1523
- 47,
1524
- 48,
1525
- 49,
1526
- 50,
1527
- 51,
1528
- 52
1529
- ],
1530
- inclusive: !0
1531
- }
1532
- }
1533
- };
1534
- })();
1535
- function ft() {
1536
- this.yy = {};
1537
- }
1538
- return r(ft, "Parser"), ft.prototype = bt, bt.Parser = ft, new ft();
1539
- })();
1540
- Pt.parser = Pt;
1541
- var De = Pt, N = ze(), rt, Ie = (rt = class {
1542
- constructor() {
1543
- this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1544
- }
1545
- getDefaultData() {
1546
- return {
1547
- titleText: "",
1548
- quadrant1Text: "",
1549
- quadrant2Text: "",
1550
- quadrant3Text: "",
1551
- quadrant4Text: "",
1552
- xAxisLeftText: "",
1553
- xAxisRightText: "",
1554
- yAxisBottomText: "",
1555
- yAxisTopText: "",
1556
- points: []
1557
- };
1558
- }
1559
- getDefaultConfig() {
1560
- return {
1561
- showXAxis: !0,
1562
- showYAxis: !0,
1563
- showTitle: !0,
1564
- chartHeight: D.quadrantChart?.chartWidth || 500,
1565
- chartWidth: D.quadrantChart?.chartHeight || 500,
1566
- titlePadding: D.quadrantChart?.titlePadding || 10,
1567
- titleFontSize: D.quadrantChart?.titleFontSize || 20,
1568
- quadrantPadding: D.quadrantChart?.quadrantPadding || 5,
1569
- xAxisLabelPadding: D.quadrantChart?.xAxisLabelPadding || 5,
1570
- yAxisLabelPadding: D.quadrantChart?.yAxisLabelPadding || 5,
1571
- xAxisLabelFontSize: D.quadrantChart?.xAxisLabelFontSize || 16,
1572
- yAxisLabelFontSize: D.quadrantChart?.yAxisLabelFontSize || 16,
1573
- quadrantLabelFontSize: D.quadrantChart?.quadrantLabelFontSize || 16,
1574
- quadrantTextTopPadding: D.quadrantChart?.quadrantTextTopPadding || 5,
1575
- pointTextPadding: D.quadrantChart?.pointTextPadding || 5,
1576
- pointLabelFontSize: D.quadrantChart?.pointLabelFontSize || 12,
1577
- pointRadius: D.quadrantChart?.pointRadius || 5,
1578
- xAxisPosition: D.quadrantChart?.xAxisPosition || "top",
1579
- yAxisPosition: D.quadrantChart?.yAxisPosition || "left",
1580
- quadrantInternalBorderStrokeWidth: D.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
1581
- quadrantExternalBorderStrokeWidth: D.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
1582
- };
1583
- }
1584
- getDefaultThemeConfig() {
1585
- return {
1586
- quadrant1Fill: N.quadrant1Fill,
1587
- quadrant2Fill: N.quadrant2Fill,
1588
- quadrant3Fill: N.quadrant3Fill,
1589
- quadrant4Fill: N.quadrant4Fill,
1590
- quadrant1TextFill: N.quadrant1TextFill,
1591
- quadrant2TextFill: N.quadrant2TextFill,
1592
- quadrant3TextFill: N.quadrant3TextFill,
1593
- quadrant4TextFill: N.quadrant4TextFill,
1594
- quadrantPointFill: N.quadrantPointFill,
1595
- quadrantPointTextFill: N.quadrantPointTextFill,
1596
- quadrantXAxisTextFill: N.quadrantXAxisTextFill,
1597
- quadrantYAxisTextFill: N.quadrantYAxisTextFill,
1598
- quadrantTitleFill: N.quadrantTitleFill,
1599
- quadrantInternalBorderStrokeFill: N.quadrantInternalBorderStrokeFill,
1600
- quadrantExternalBorderStrokeFill: N.quadrantExternalBorderStrokeFill
1601
- };
1602
- }
1603
- clear() {
1604
- this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), Tt.info("clear called");
1605
- }
1606
- setData(l) {
1607
- this.data = {
1608
- ...this.data,
1609
- ...l
1610
- };
1611
- }
1612
- addPoints(l) {
1613
- this.data.points = [...l, ...this.data.points];
1614
- }
1615
- addClass(l, x) {
1616
- this.classes.set(l, x);
1617
- }
1618
- setConfig(l) {
1619
- Tt.trace("setConfig called with: ", l), this.config = {
1620
- ...this.config,
1621
- ...l
1622
- };
1623
- }
1624
- setThemeConfig(l) {
1625
- Tt.trace("setThemeConfig called with: ", l), this.themeConfig = {
1626
- ...this.themeConfig,
1627
- ...l
1628
- };
1629
- }
1630
- calculateSpace(l, x, c, h) {
1631
- let f = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, g = {
1632
- top: l === "top" && x ? f : 0,
1633
- bottom: l === "bottom" && x ? f : 0
1634
- }, _ = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
1635
- left: this.config.yAxisPosition === "left" && c ? _ : 0,
1636
- right: this.config.yAxisPosition === "right" && c ? _ : 0
1637
- }, m = this.config.titleFontSize + this.config.titlePadding * 2, p = { top: h ? m : 0 }, y = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + g.top + p.top, T = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, d = this.config.chartHeight - this.config.quadrantPadding * 2 - g.top - g.bottom - p.top;
1638
- return {
1639
- xAxisSpace: g,
1640
- yAxisSpace: a,
1641
- titleSpace: p,
1642
- quadrantSpace: {
1643
- quadrantLeft: y,
1644
- quadrantTop: q,
1645
- quadrantWidth: T,
1646
- quadrantHalfWidth: T / 2,
1647
- quadrantHeight: d,
1648
- quadrantHalfHeight: d / 2
1649
- }
1650
- };
1651
- }
1652
- getAxisLabels(l, x, c, h) {
1653
- let { quadrantSpace: f, titleSpace: g } = h, { quadrantHalfHeight: _, quadrantHeight: a, quadrantLeft: m, quadrantHalfWidth: p, quadrantTop: y, quadrantWidth: q } = f, T = !!this.data.xAxisRightText, d = !!this.data.yAxisTopText, b = [];
1654
- return this.data.xAxisLeftText && x && b.push({
1655
- text: this.data.xAxisLeftText,
1656
- fill: this.themeConfig.quadrantXAxisTextFill,
1657
- x: m + (T ? p / 2 : 0),
1658
- y: l === "top" ? this.config.xAxisLabelPadding + g.top : this.config.xAxisLabelPadding + y + a + this.config.quadrantPadding,
1659
- fontSize: this.config.xAxisLabelFontSize,
1660
- verticalPos: T ? "center" : "left",
1661
- horizontalPos: "top",
1662
- rotation: 0
1663
- }), this.data.xAxisRightText && x && b.push({
1664
- text: this.data.xAxisRightText,
1665
- fill: this.themeConfig.quadrantXAxisTextFill,
1666
- x: m + p + (T ? p / 2 : 0),
1667
- y: l === "top" ? this.config.xAxisLabelPadding + g.top : this.config.xAxisLabelPadding + y + a + this.config.quadrantPadding,
1668
- fontSize: this.config.xAxisLabelFontSize,
1669
- verticalPos: T ? "center" : "left",
1670
- horizontalPos: "top",
1671
- rotation: 0
1672
- }), this.data.yAxisBottomText && c && b.push({
1673
- text: this.data.yAxisBottomText,
1674
- fill: this.themeConfig.quadrantYAxisTextFill,
1675
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + m + q + this.config.quadrantPadding,
1676
- y: y + a - (d ? _ / 2 : 0),
1677
- fontSize: this.config.yAxisLabelFontSize,
1678
- verticalPos: d ? "center" : "left",
1679
- horizontalPos: "top",
1680
- rotation: -90
1681
- }), this.data.yAxisTopText && c && b.push({
1682
- text: this.data.yAxisTopText,
1683
- fill: this.themeConfig.quadrantYAxisTextFill,
1684
- x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + m + q + this.config.quadrantPadding,
1685
- y: y + _ - (d ? _ / 2 : 0),
1686
- fontSize: this.config.yAxisLabelFontSize,
1687
- verticalPos: d ? "center" : "left",
1688
- horizontalPos: "top",
1689
- rotation: -90
1690
- }), b;
1691
- }
1692
- getQuadrants(l) {
1693
- let { quadrantSpace: x } = l, { quadrantHalfHeight: c, quadrantLeft: h, quadrantHalfWidth: f, quadrantTop: g } = x, _ = [
1694
- {
1695
- text: {
1696
- text: this.data.quadrant1Text,
1697
- fill: this.themeConfig.quadrant1TextFill,
1698
- x: 0,
1699
- y: 0,
1700
- fontSize: this.config.quadrantLabelFontSize,
1701
- verticalPos: "center",
1702
- horizontalPos: "middle",
1703
- rotation: 0
1704
- },
1705
- x: h + f,
1706
- y: g,
1707
- width: f,
1708
- height: c,
1709
- fill: this.themeConfig.quadrant1Fill
1710
- },
1711
- {
1712
- text: {
1713
- text: this.data.quadrant2Text,
1714
- fill: this.themeConfig.quadrant2TextFill,
1715
- x: 0,
1716
- y: 0,
1717
- fontSize: this.config.quadrantLabelFontSize,
1718
- verticalPos: "center",
1719
- horizontalPos: "middle",
1720
- rotation: 0
1721
- },
1722
- x: h,
1723
- y: g,
1724
- width: f,
1725
- height: c,
1726
- fill: this.themeConfig.quadrant2Fill
1727
- },
1728
- {
1729
- text: {
1730
- text: this.data.quadrant3Text,
1731
- fill: this.themeConfig.quadrant3TextFill,
1732
- x: 0,
1733
- y: 0,
1734
- fontSize: this.config.quadrantLabelFontSize,
1735
- verticalPos: "center",
1736
- horizontalPos: "middle",
1737
- rotation: 0
1738
- },
1739
- x: h,
1740
- y: g + c,
1741
- width: f,
1742
- height: c,
1743
- fill: this.themeConfig.quadrant3Fill
1744
- },
1745
- {
1746
- text: {
1747
- text: this.data.quadrant4Text,
1748
- fill: this.themeConfig.quadrant4TextFill,
1749
- x: 0,
1750
- y: 0,
1751
- fontSize: this.config.quadrantLabelFontSize,
1752
- verticalPos: "center",
1753
- horizontalPos: "middle",
1754
- rotation: 0
1755
- },
1756
- x: h + f,
1757
- y: g + c,
1758
- width: f,
1759
- height: c,
1760
- fill: this.themeConfig.quadrant4Fill
1761
- }
1762
- ];
1763
- for (let a of _) a.text.x = a.x + a.width / 2, this.data.points.length === 0 ? (a.text.y = a.y + a.height / 2, a.text.horizontalPos = "middle") : (a.text.y = a.y + this.config.quadrantTextTopPadding, a.text.horizontalPos = "top");
1764
- return _;
1765
- }
1766
- getQuadrantPoints(l) {
1767
- let { quadrantSpace: x } = l, { quadrantHeight: c, quadrantLeft: h, quadrantTop: f, quadrantWidth: g } = x, _ = ie().domain([0, 1]).range([h, g + h]), a = ie().domain([0, 1]).range([c + f, f]);
1768
- return this.data.points.map((m) => {
1769
- let p = this.classes.get(m.className);
1770
- return p && (m = {
1771
- ...p,
1772
- ...m
1773
- }), {
1774
- x: _(m.x),
1775
- y: a(m.y),
1776
- fill: m.color ?? this.themeConfig.quadrantPointFill,
1777
- radius: m.radius ?? this.config.pointRadius,
1778
- text: {
1779
- text: m.text,
1780
- fill: this.themeConfig.quadrantPointTextFill,
1781
- x: _(m.x),
1782
- y: a(m.y) + this.config.pointTextPadding,
1783
- verticalPos: "center",
1784
- horizontalPos: "top",
1785
- fontSize: this.config.pointLabelFontSize,
1786
- rotation: 0
1787
- },
1788
- strokeColor: m.strokeColor ?? this.themeConfig.quadrantPointFill,
1789
- strokeWidth: m.strokeWidth ?? "0px"
1790
- };
1791
- });
1792
- }
1793
- getBorders(l) {
1794
- let x = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: c } = l, { quadrantHalfHeight: h, quadrantHeight: f, quadrantLeft: g, quadrantHalfWidth: _, quadrantTop: a, quadrantWidth: m } = c;
1795
- return [
1796
- {
1797
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1798
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1799
- x1: g - x,
1800
- y1: a,
1801
- x2: g + m + x,
1802
- y2: a
1803
- },
1804
- {
1805
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1806
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1807
- x1: g + m,
1808
- y1: a + x,
1809
- x2: g + m,
1810
- y2: a + f - x
1811
- },
1812
- {
1813
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1814
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1815
- x1: g - x,
1816
- y1: a + f,
1817
- x2: g + m + x,
1818
- y2: a + f
1819
- },
1820
- {
1821
- strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
1822
- strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
1823
- x1: g,
1824
- y1: a + x,
1825
- x2: g,
1826
- y2: a + f - x
1827
- },
1828
- {
1829
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1830
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1831
- x1: g + _,
1832
- y1: a + x,
1833
- x2: g + _,
1834
- y2: a + f - x
1835
- },
1836
- {
1837
- strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
1838
- strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
1839
- x1: g + x,
1840
- y1: a + h,
1841
- x2: g + m - x,
1842
- y2: a + h
1843
- }
1844
- ];
1845
- }
1846
- getTitle(l) {
1847
- if (l) return {
1848
- text: this.data.titleText,
1849
- fill: this.themeConfig.quadrantTitleFill,
1850
- fontSize: this.config.titleFontSize,
1851
- horizontalPos: "top",
1852
- verticalPos: "center",
1853
- rotation: 0,
1854
- y: this.config.titlePadding,
1855
- x: this.config.chartWidth / 2
1856
- };
1857
- }
1858
- build() {
1859
- let l = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), x = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), c = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, f = this.calculateSpace(h, l, x, c);
1860
- return {
1861
- points: this.getQuadrantPoints(f),
1862
- quadrants: this.getQuadrants(f),
1863
- axisLabels: this.getAxisLabels(h, l, x, f),
1864
- borderLines: this.getBorders(f),
1865
- title: this.getTitle(c)
1866
- };
1867
- }
1868
- }, r(rt, "QuadrantBuilder"), rt), lt, mt = (lt = class extends Error {
1869
- constructor(l, x, c) {
1870
- super(`value for ${l} ${x} is invalid, please use a valid ${c}`), this.name = "InvalidStyleError";
1871
- }
1872
- }, r(lt, "InvalidStyleError"), lt);
1873
- function Ct(t) {
1874
- return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
1875
- }
1876
- r(Ct, "validateHexCode");
1877
- function ne(t) {
1878
- return !/^\d+$/.test(t);
1879
- }
1880
- r(ne, "validateNumber");
1881
- function se(t) {
1882
- return !/^\d+px$/.test(t);
1883
- }
1884
- r(se, "validateSizeInPixels");
1885
- var Ne = Lt();
1886
- function H(t) {
1887
- return Ee(t.trim(), Ne);
1888
- }
1889
- r(H, "textSanitizer");
1890
- var I = new Ie();
1891
- function re(t) {
1892
- I.setData({ quadrant1Text: H(t.text) });
1893
- }
1894
- r(re, "setQuadrant1Text");
1895
- function le(t) {
1896
- I.setData({ quadrant2Text: H(t.text) });
1897
- }
1898
- r(le, "setQuadrant2Text");
1899
- function oe(t) {
1900
- I.setData({ quadrant3Text: H(t.text) });
1901
- }
1902
- r(oe, "setQuadrant3Text");
1903
- function he(t) {
1904
- I.setData({ quadrant4Text: H(t.text) });
1905
- }
1906
- r(he, "setQuadrant4Text");
1907
- function ce(t) {
1908
- I.setData({ xAxisLeftText: H(t.text) });
1909
- }
1910
- r(ce, "setXAxisLeftText");
1911
- function de(t) {
1912
- I.setData({ xAxisRightText: H(t.text) });
1913
- }
1914
- r(de, "setXAxisRightText");
1915
- function ue(t) {
1916
- I.setData({ yAxisTopText: H(t.text) });
1917
- }
1918
- r(ue, "setYAxisTopText");
1919
- function xe(t) {
1920
- I.setData({ yAxisBottomText: H(t.text) });
1921
- }
1922
- r(xe, "setYAxisBottomText");
1923
- function qt(t) {
1924
- let l = {};
1925
- for (let x of t) {
1926
- let [c, h] = x.trim().split(/\s*:\s*/);
1927
- if (c === "radius") {
1928
- if (ne(h)) throw new mt(c, h, "number");
1929
- l.radius = parseInt(h);
1930
- } else if (c === "color") {
1931
- if (Ct(h)) throw new mt(c, h, "hex code");
1932
- l.color = h;
1933
- } else if (c === "stroke-color") {
1934
- if (Ct(h)) throw new mt(c, h, "hex code");
1935
- l.strokeColor = h;
1936
- } else if (c === "stroke-width") {
1937
- if (se(h)) throw new mt(c, h, "number of pixels (eg. 10px)");
1938
- l.strokeWidth = h;
1939
- } else throw Error(`style named ${c} is not supported.`);
1940
- }
1941
- return l;
1942
- }
1943
- r(qt, "parseStyles");
1944
- function fe(t, l, x, c, h) {
1945
- let f = qt(h);
1946
- I.addPoints([{
1947
- x,
1948
- y: c,
1949
- text: H(t.text),
1950
- className: l,
1951
- ...f
1952
- }]);
1953
- }
1954
- r(fe, "addPoint");
1955
- function ge(t, l) {
1956
- I.addClass(t, qt(l));
1957
- }
1958
- r(ge, "addClass");
1959
- function pe(t) {
1960
- I.setConfig({ chartWidth: t });
1961
- }
1962
- r(pe, "setWidth");
1963
- function ye(t) {
1964
- I.setConfig({ chartHeight: t });
1965
- }
1966
- r(ye, "setHeight");
1967
- function me() {
1968
- let { themeVariables: t, quadrantChart: l } = Lt();
1969
- return l && I.setConfig(l), I.setThemeConfig({
1970
- quadrant1Fill: t.quadrant1Fill,
1971
- quadrant2Fill: t.quadrant2Fill,
1972
- quadrant3Fill: t.quadrant3Fill,
1973
- quadrant4Fill: t.quadrant4Fill,
1974
- quadrant1TextFill: t.quadrant1TextFill,
1975
- quadrant2TextFill: t.quadrant2TextFill,
1976
- quadrant3TextFill: t.quadrant3TextFill,
1977
- quadrant4TextFill: t.quadrant4TextFill,
1978
- quadrantPointFill: t.quadrantPointFill,
1979
- quadrantPointTextFill: t.quadrantPointTextFill,
1980
- quadrantXAxisTextFill: t.quadrantXAxisTextFill,
1981
- quadrantYAxisTextFill: t.quadrantYAxisTextFill,
1982
- quadrantExternalBorderStrokeFill: t.quadrantExternalBorderStrokeFill,
1983
- quadrantInternalBorderStrokeFill: t.quadrantInternalBorderStrokeFill,
1984
- quadrantTitleFill: t.quadrantTitleFill
1985
- }), I.setData({ titleText: ae() }), I.build();
1986
- }
1987
- r(me, "getQuadrantData");
1988
- var $e = {
1989
- parser: De,
1990
- db: {
1991
- setWidth: pe,
1992
- setHeight: ye,
1993
- setQuadrant1Text: re,
1994
- setQuadrant2Text: le,
1995
- setQuadrant3Text: oe,
1996
- setQuadrant4Text: he,
1997
- setXAxisLeftText: ce,
1998
- setXAxisRightText: de,
1999
- setYAxisTopText: ue,
2000
- setYAxisBottomText: xe,
2001
- parseStyles: qt,
2002
- addPoint: fe,
2003
- addClass: ge,
2004
- getQuadrantData: me,
2005
- clear: /* @__PURE__ */ r(function() {
2006
- I.clear(), ve();
2007
- }, "clear"),
2008
- setAccTitle: Ce,
2009
- getAccTitle: Pe,
2010
- setDiagramTitle: Fe,
2011
- getDiagramTitle: ae,
2012
- getAccDescription: ke,
2013
- setAccDescription: Se
2014
- },
2015
- renderer: { draw: /* @__PURE__ */ r((t, l, x, c) => {
2016
- function h(i) {
2017
- return i === "top" ? "hanging" : "middle";
2018
- }
2019
- r(h, "getDominantBaseLine");
2020
- function f(i) {
2021
- return i === "left" ? "start" : "middle";
2022
- }
2023
- r(f, "getTextAnchor");
2024
- function g(i) {
2025
- return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
2026
- }
2027
- r(g, "getTransformation");
2028
- let _ = Lt();
2029
- Tt.debug(`Rendering quadrant chart
2030
- ` + t);
2031
- let a = _.securityLevel, m;
2032
- a === "sandbox" && (m = ee("#i" + l));
2033
- let p = ee(a === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${l}"]`), y = p.append("g").attr("class", "main"), q = _.quadrantChart?.chartWidth ?? 500, T = _.quadrantChart?.chartHeight ?? 500;
2034
- Le(p, T, q, _.quadrantChart?.useMaxWidth ?? !0), p.attr("viewBox", "0 0 " + q + " " + T), c.db.setHeight(T), c.db.setWidth(q);
2035
- let d = c.db.getQuadrantData(), b = y.append("g").attr("class", "quadrants"), k = y.append("g").attr("class", "border"), dt = y.append("g").attr("class", "data-points"), ut = y.append("g").attr("class", "labels"), xt = y.append("g").attr("class", "title");
2036
- d.title && xt.append("text").attr("x", 0).attr("y", 0).attr("fill", d.title.fill).attr("font-size", d.title.fontSize).attr("dominant-baseline", h(d.title.horizontalPos)).attr("text-anchor", f(d.title.verticalPos)).attr("transform", g(d.title)).text(d.title.text), d.borderLines && k.selectAll("line").data(d.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
2037
- let ot = b.selectAll("g.quadrant").data(d.quadrants).enter().append("g").attr("class", "quadrant");
2038
- ot.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), ot.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr("dominant-baseline", (i) => h(i.text.horizontalPos)).attr("text-anchor", (i) => f(i.text.verticalPos)).attr("transform", (i) => g(i.text)).text((i) => i.text.text), ut.selectAll("g.label").data(d.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => f(i.verticalPos)).attr("transform", (i) => g(i));
2039
- let ht = dt.selectAll("g.data-point").data(d.points).enter().append("g").attr("class", "data-point");
2040
- ht.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), ht.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr("dominant-baseline", (i) => h(i.text.horizontalPos)).attr("text-anchor", (i) => f(i.text.verticalPos)).attr("transform", (i) => g(i.text));
2041
- }, "draw") },
2042
- styles: /* @__PURE__ */ r(() => "", "styles")
2043
- };
2044
- export {
2045
- $e as diagram
2046
- };