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