@orangelogic/design-system 2.161.0 → 2.163.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 (271) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.CUPqX8XL.js → asset-link-format.BdB6fQA_.js} +194 -194
  33. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  34. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  35. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  36. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  37. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  38. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  39. package/library/chunks/channel.s_XjcUYI.js +5 -0
  40. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  41. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  42. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  43. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  44. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  45. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  46. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  47. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  48. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  49. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  50. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  51. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  52. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  53. package/library/chunks/{color-swatch-group.Dg5avknJ.js → color-swatch-group.w5DMzNco.js} +2433 -2647
  54. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  55. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  56. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  57. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  58. package/library/chunks/{content-builder.BU8X7I6V.js → content-builder.BX4pHujE.js} +1 -1
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.gyH0NGM5.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dh4SX0eU.js} +5 -5
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  124. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  125. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  126. package/library/chunks/range.DdOGybNB.js +9 -0
  127. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  128. package/library/chunks/sankey.BR94A-8L.js +294 -0
  129. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  130. package/library/chunks/select.C6_sM3Pr.js +7 -0
  131. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  132. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  133. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  134. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  135. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  136. package/library/chunks/step.almIqwJ6.js +51 -0
  137. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  138. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  139. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  140. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  141. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  142. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  143. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  144. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  145. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  146. package/library/chunks/{toast.TDU3wVhq.js → toast.C5Ir5yKA.js} +1 -1
  147. package/library/chunks/transformation.D1alV_s4.js +189 -0
  148. package/library/chunks/{tree.C2dPd6gt.js → tree.Dvnw_4vz.js} +3 -3
  149. package/library/chunks/value.BXEGBVFV.js +44 -0
  150. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  151. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  152. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  153. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  154. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  155. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  156. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  157. package/library/components/alert.js +2 -2
  158. package/library/components/am-chart.js +3 -3
  159. package/library/components/animated-image.js +2 -2
  160. package/library/components/animation.js +2 -2
  161. package/library/components/array-line-clamp.js +1 -1
  162. package/library/components/asset-link-format.js +5 -5
  163. package/library/components/atoms.js +29 -29
  164. package/library/components/audio.js +3 -3
  165. package/library/components/avatar.js +2 -2
  166. package/library/components/border-input-group.js +1 -1
  167. package/library/components/breadcrumb-item.js +1 -1
  168. package/library/components/breadcrumb.js +1 -1
  169. package/library/components/button.js +3 -3
  170. package/library/components/checkbox.js +195 -18
  171. package/library/components/color-picker.js +4 -4
  172. package/library/components/color-swatch-group.js +5 -5
  173. package/library/components/color-swatch.js +2 -2
  174. package/library/components/confirm-popover.js +3 -3
  175. package/library/components/copy-button.js +2 -2
  176. package/library/components/corner-position-input-group.js +2 -2
  177. package/library/components/cropper.js +3 -3
  178. package/library/components/date-calendar.js +1 -1
  179. package/library/components/details.js +2 -2
  180. package/library/components/dialog.js +3 -3
  181. package/library/components/diff.js +1 -1
  182. package/library/components/divider.js +1 -1
  183. package/library/components/document-viewer.js +3 -3
  184. package/library/components/dot-pagination.js +2 -2
  185. package/library/components/drawer.js +3 -3
  186. package/library/components/dropdown.js +2 -2
  187. package/library/components/dynamic-select.js +6 -6
  188. package/library/components/e-chart.js +1 -1
  189. package/library/components/element-clamp.js +2 -2
  190. package/library/components/file-on-demand.js +350 -374
  191. package/library/components/folder-select.js +5 -5
  192. package/library/components/format-time.js +2 -2
  193. package/library/components/grid-item.js +1 -1
  194. package/library/components/header.js +2 -2
  195. package/library/components/hub-connection.js +2 -2
  196. package/library/components/icon-button.js +2 -2
  197. package/library/components/icon.js +2 -2
  198. package/library/components/iframe.js +2 -2
  199. package/library/components/image-comparer.js +2 -2
  200. package/library/components/image.js +3 -3
  201. package/library/components/include.js +1 -1
  202. package/library/components/input.js +3 -3
  203. package/library/components/line-clamp.js +1 -1
  204. package/library/components/markdown.js +11 -2704
  205. package/library/components/masonry.js +3 -3
  206. package/library/components/menu-item.js +2 -2
  207. package/library/components/molecules.js +3 -3
  208. package/library/components/mutation-observer.js +1 -1
  209. package/library/components/option.js +3 -3
  210. package/library/components/organisms.js +2 -2
  211. package/library/components/padding-input-group.js +1 -1
  212. package/library/components/pagination.js +6 -6
  213. package/library/components/qr-code.js +1 -1
  214. package/library/components/radio-button.js +1 -1
  215. package/library/components/radio-card.js +1 -1
  216. package/library/components/radio-group.js +1 -1
  217. package/library/components/radio.js +2 -2
  218. package/library/components/range.js +1 -1
  219. package/library/components/rating.js +2 -2
  220. package/library/components/resize-observer.js +1 -1
  221. package/library/components/select.js +3 -3
  222. package/library/components/shadow-input-group.js +1 -1
  223. package/library/components/share-option-list.js +2 -2
  224. package/library/components/sidebar.js +3 -3
  225. package/library/components/size-input-group.js +3 -3
  226. package/library/components/split-panel.js +1 -1
  227. package/library/components/step.js +1 -1
  228. package/library/components/stepper-wizard.js +1 -1
  229. package/library/components/stepper.js +1 -1
  230. package/library/components/switch.js +1 -1
  231. package/library/components/tab-group.js +4 -4
  232. package/library/components/tab-panel.js +1 -1
  233. package/library/components/tab.js +2 -2
  234. package/library/components/tag.js +1 -1
  235. package/library/components/textarea.js +1 -1
  236. package/library/components/timecode.js +1 -1
  237. package/library/components/tooltip.js +1 -1
  238. package/library/components/tree-item.js +4 -4
  239. package/library/components/tree.js +2 -2
  240. package/library/components/typeface.js +2 -2
  241. package/library/components/types.js +122526 -120875
  242. package/library/components/video.js +2 -2
  243. package/library/package.json +2 -1
  244. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  245. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  246. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  247. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Page/Page.d.ts +6 -0
  248. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/Validate.d.ts +6 -0
  249. package/library/packages/molecules/src/index.d.ts +1 -0
  250. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  251. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  252. package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.d.ts +1 -0
  253. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  254. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  255. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  256. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  257. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  258. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  259. package/library/packages/types/src/pdf-viewer-toolbar.d.ts +4 -3
  260. package/library/packages/utils/src/transformation/transformation.d.ts +8 -0
  261. package/library/react-web-component.d.ts +72 -6
  262. package/library/utils.js +9 -8
  263. package/package.json +2 -1
  264. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  265. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  266. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  267. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  268. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  269. package/library/chunks/index.DU0XUO4k.js +0 -176
  270. package/library/chunks/transformation.BDmd3kER.js +0 -163
  271. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,1026 @@
1
+ import { _ as o, s as Ae, g as ke, o as ae, n as Fe, a as Pe, b as ve, c as zt, l as bt, d as Ce, p as Le, B as z, F as Ee, h as De } from "./mermaid.core.Dspbw7Ig.js";
2
+ import "./index.CrhRU5m8.js";
3
+ import "./transform.BuqENXeT.js";
4
+ import { l as ie } from "./linear.TNHhsH1m.js";
5
+ import { s as Lt } from "./select.C6_sM3Pr.js";
6
+ var Et = function() {
7
+ var t = /* @__PURE__ */ o(function(Y, r, l, x) {
8
+ for (l = l || {}, x = Y.length; x--; l[Y[x]] = r) ;
9
+ return l;
10
+ }, "o"), n = [1, 3], f = [1, 4], d = [1, 5], h = [1, 6], p = [1, 7], y = [1, 4, 5, 10, 12, 13, 14, 15, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], _ = [1, 4, 5, 10, 12, 13, 14, 15, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], a = [55, 56, 57], k = [2, 36], u = [1, 37], T = [1, 36], m = [1, 38], q = [1, 35], b = [1, 43], g = [1, 41], A = [1, 45], ht = [1, 14], xt = [1, 23], ft = [1, 18], gt = [1, 19], ct = [1, 20], _t = [1, 21], dt = [1, 22], i = [1, 24], Vt = [1, 25], It = [1, 26], wt = [1, 27], Bt = [1, 28], Rt = [1, 29], U = [1, 32], Q = [1, 33], F = [1, 34], P = [1, 39], v = [1, 40], C = [1, 42], L = [1, 44], H = [1, 63], X = [1, 62], E = [4, 5, 8, 10, 12, 13, 14, 15, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Nt = [1, 66], Wt = [1, 67], Ut = [1, 68], Qt = [1, 69], Ot = [1, 70], Ht = [1, 71], Xt = [1, 72], Mt = [1, 73], Yt = [1, 74], jt = [1, 75], Gt = [1, 76], Kt = [1, 77], w = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], K = [1, 91], Z = [1, 92], J = [1, 93], $ = [1, 100], tt = [1, 94], et = [1, 97], it = [1, 95], at = [1, 96], nt = [1, 98], st = [1, 99], At = [1, 103], Zt = [10, 55, 56, 57], N = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], kt = {
11
+ trace: /* @__PURE__ */ o(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ 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 },
15
+ 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" },
16
+ 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], [58, 1], [59, 1], [59, 1], [59, 1]],
17
+ performAction: /* @__PURE__ */ o(function(r, l, x, c, S, e, ut) {
18
+ var s = e.length - 1;
19
+ switch (S) {
20
+ case 23:
21
+ this.$ = e[s];
22
+ break;
23
+ case 24:
24
+ this.$ = e[s - 1] + "" + e[s];
25
+ break;
26
+ case 26:
27
+ this.$ = e[s - 1] + e[s];
28
+ break;
29
+ case 27:
30
+ this.$ = [e[s].trim()];
31
+ break;
32
+ case 28:
33
+ e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
34
+ break;
35
+ case 29:
36
+ this.$ = e[s - 4], c.addClass(e[s - 2], e[s]);
37
+ break;
38
+ case 37:
39
+ this.$ = [];
40
+ break;
41
+ case 42:
42
+ this.$ = e[s].trim(), c.setDiagramTitle(this.$);
43
+ break;
44
+ case 43:
45
+ this.$ = e[s].trim(), c.setAccTitle(this.$);
46
+ break;
47
+ case 44:
48
+ case 45:
49
+ this.$ = e[s].trim(), c.setAccDescription(this.$);
50
+ break;
51
+ case 46:
52
+ c.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
53
+ break;
54
+ case 47:
55
+ c.addPoint(e[s - 3], "", e[s - 1], e[s], []);
56
+ break;
57
+ case 48:
58
+ c.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
59
+ break;
60
+ case 49:
61
+ c.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
62
+ break;
63
+ case 50:
64
+ c.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
65
+ break;
66
+ case 51:
67
+ c.setXAxisLeftText(e[s - 2]), c.setXAxisRightText(e[s]);
68
+ break;
69
+ case 52:
70
+ e[s - 1].text += " ⟶ ", c.setXAxisLeftText(e[s - 1]);
71
+ break;
72
+ case 53:
73
+ c.setXAxisLeftText(e[s]);
74
+ break;
75
+ case 54:
76
+ c.setYAxisBottomText(e[s - 2]), c.setYAxisTopText(e[s]);
77
+ break;
78
+ case 55:
79
+ e[s - 1].text += " ⟶ ", c.setYAxisBottomText(e[s - 1]);
80
+ break;
81
+ case 56:
82
+ c.setYAxisBottomText(e[s]);
83
+ break;
84
+ case 57:
85
+ c.setQuadrant1Text(e[s]);
86
+ break;
87
+ case 58:
88
+ c.setQuadrant2Text(e[s]);
89
+ break;
90
+ case 59:
91
+ c.setQuadrant3Text(e[s]);
92
+ break;
93
+ case 60:
94
+ c.setQuadrant4Text(e[s]);
95
+ break;
96
+ case 64:
97
+ this.$ = { text: e[s], type: "text" };
98
+ break;
99
+ case 65:
100
+ this.$ = { text: e[s - 1].text + "" + e[s], type: e[s - 1].type };
101
+ break;
102
+ case 66:
103
+ this.$ = { text: e[s], type: "text" };
104
+ break;
105
+ case 67:
106
+ this.$ = { text: e[s], type: "markdown" };
107
+ break;
108
+ case 68:
109
+ this.$ = e[s];
110
+ break;
111
+ case 69:
112
+ this.$ = e[s - 1] + "" + e[s];
113
+ break;
114
+ }
115
+ }, "anonymous"),
116
+ table: [{ 18: n, 26: 1, 27: 2, 28: f, 55: d, 56: h, 57: p }, { 1: [3] }, { 18: n, 26: 8, 27: 2, 28: f, 55: d, 56: h, 57: p }, { 18: n, 26: 9, 27: 2, 28: f, 55: d, 56: h, 57: p }, t(y, [2, 33], { 29: 10 }), t(_, [2, 61]), t(_, [2, 62]), t(_, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(a, k, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 18: ht, 25: xt, 35: ft, 37: gt, 39: ct, 41: _t, 42: dt, 48: i, 50: Vt, 51: It, 52: wt, 53: Bt, 54: Rt, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), t(y, [2, 34]), { 27: 46, 55: d, 56: h, 57: p }, t(a, [2, 37]), t(a, k, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 47, 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 18: ht, 25: xt, 35: ft, 37: gt, 39: ct, 41: _t, 42: dt, 48: i, 50: Vt, 51: It, 52: wt, 53: Bt, 54: Rt, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 39]), t(a, [2, 40]), t(a, [2, 41]), { 36: [1, 48] }, { 38: [1, 49] }, { 40: [1, 50] }, t(a, [2, 45]), t(a, [2, 46]), { 18: [1, 51] }, { 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 43: 52, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 43: 53, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 43: 54, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 43: 55, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 43: 56, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 43: 57, 58: 31, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }, { 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 44: [1, 58], 47: [1, 59], 58: 61, 59: 60, 63: F, 64: P, 65: v, 66: C, 67: L }, t(E, [2, 64]), t(E, [2, 66]), t(E, [2, 67]), t(E, [2, 70]), t(E, [2, 71]), t(E, [2, 72]), t(E, [2, 73]), t(E, [2, 74]), t(E, [2, 75]), t(E, [2, 76]), t(E, [2, 77]), t(E, [2, 78]), t(E, [2, 79]), t(E, [2, 80]), t(E, [2, 81]), t(y, [2, 35]), t(a, [2, 38]), t(a, [2, 42]), t(a, [2, 43]), t(a, [2, 44]), { 3: 65, 4: Nt, 5: Wt, 6: Ut, 7: Qt, 8: Ot, 9: Ht, 10: Xt, 11: Mt, 12: Yt, 13: jt, 14: Gt, 15: Kt, 21: 64 }, t(a, [2, 53], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 49: [1, 78], 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 56], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 49: [1, 79], 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 57], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 58], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 59], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 60], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), { 45: [1, 80] }, { 44: [1, 81] }, t(E, [2, 65]), t(E, [2, 82]), t(E, [2, 83]), t(E, [2, 84]), { 3: 83, 4: Nt, 5: Wt, 6: Ut, 7: Qt, 8: Ot, 9: Ht, 10: Xt, 11: Mt, 12: Yt, 13: jt, 14: Gt, 15: Kt, 18: [1, 82] }, t(w, [2, 23]), t(w, [2, 1]), t(w, [2, 2]), t(w, [2, 3]), t(w, [2, 4]), t(w, [2, 5]), t(w, [2, 6]), t(w, [2, 7]), t(w, [2, 8]), t(w, [2, 9]), t(w, [2, 10]), t(w, [2, 11]), t(w, [2, 12]), t(a, [2, 52], { 58: 31, 43: 84, 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 55], { 58: 31, 43: 85, 4: u, 5: T, 10: m, 12: q, 13: b, 14: g, 15: A, 60: U, 61: Q, 63: F, 64: P, 65: v, 66: C, 67: L }), { 46: [1, 86] }, { 45: [1, 87] }, { 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 16: 90, 17: it, 18: at, 19: nt, 20: st, 22: 89, 23: 88 }, t(w, [2, 24]), t(a, [2, 51], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 54], { 59: 60, 58: 61, 4: u, 5: T, 8: H, 10: m, 12: q, 13: b, 14: g, 15: A, 18: X, 63: F, 64: P, 65: v, 66: C, 67: L }), t(a, [2, 47], { 22: 89, 16: 90, 23: 101, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), { 46: [1, 102] }, t(a, [2, 29], { 10: At }), t(Zt, [2, 27], { 16: 104, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), t(N, [2, 25]), t(N, [2, 13]), t(N, [2, 14]), t(N, [2, 15]), t(N, [2, 16]), t(N, [2, 17]), t(N, [2, 18]), t(N, [2, 19]), t(N, [2, 20]), t(N, [2, 21]), t(N, [2, 22]), t(a, [2, 49], { 10: At }), t(a, [2, 48], { 22: 89, 16: 90, 23: 105, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), { 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 16: 90, 17: it, 18: at, 19: nt, 20: st, 22: 106 }, t(N, [2, 26]), t(a, [2, 50], { 10: At }), t(Zt, [2, 28], { 16: 104, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st })],
117
+ defaultActions: { 8: [2, 30], 9: [2, 31] },
118
+ parseError: /* @__PURE__ */ o(function(r, l) {
119
+ if (l.recoverable)
120
+ this.trace(r);
121
+ else {
122
+ var x = new Error(r);
123
+ throw x.hash = l, x;
124
+ }
125
+ }, "parseError"),
126
+ parse: /* @__PURE__ */ o(function(r) {
127
+ var l = this, x = [0], c = [], S = [null], e = [], ut = this.table, s = "", yt = 0, Jt = 0, qe = 2, $t = 1, be = e.slice.call(arguments, 1), D = Object.create(this.lexer), j = { yy: {} };
128
+ for (var Ft in this.yy)
129
+ Object.prototype.hasOwnProperty.call(this.yy, Ft) && (j.yy[Ft] = this.yy[Ft]);
130
+ D.setInput(r, j.yy), j.yy.lexer = D, j.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
131
+ var Pt = D.yylloc;
132
+ e.push(Pt);
133
+ var Se = D.options && D.options.ranges;
134
+ typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
135
+ function _e(R) {
136
+ x.length = x.length - 2 * R, S.length = S.length - R, e.length = e.length - R;
137
+ }
138
+ o(_e, "popStack");
139
+ function te() {
140
+ var R;
141
+ return R = c.pop() || D.lex() || $t, typeof R != "number" && (R instanceof Array && (c = R, R = c.pop()), R = l.symbols_[R] || R), R;
142
+ }
143
+ o(te, "lex");
144
+ for (var B, G, W, vt, rt = {}, Tt, M, ee, mt; ; ) {
145
+ if (G = x[x.length - 1], this.defaultActions[G] ? W = this.defaultActions[G] : ((B === null || typeof B > "u") && (B = te()), W = ut[G] && ut[G][B]), typeof W > "u" || !W.length || !W[0]) {
146
+ var Ct = "";
147
+ mt = [];
148
+ for (Tt in ut[G])
149
+ this.terminals_[Tt] && Tt > qe && mt.push("'" + this.terminals_[Tt] + "'");
150
+ D.showPosition ? Ct = "Parse error on line " + (yt + 1) + `:
151
+ ` + D.showPosition() + `
152
+ Expecting ` + mt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ct = "Parse error on line " + (yt + 1) + ": Unexpected " + (B == $t ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Ct, {
153
+ text: D.match,
154
+ token: this.terminals_[B] || B,
155
+ line: D.yylineno,
156
+ loc: Pt,
157
+ expected: mt
158
+ });
159
+ }
160
+ if (W[0] instanceof Array && W.length > 1)
161
+ throw new Error("Parse Error: multiple actions possible at state: " + G + ", token: " + B);
162
+ switch (W[0]) {
163
+ case 1:
164
+ x.push(B), S.push(D.yytext), e.push(D.yylloc), x.push(W[1]), B = null, Jt = D.yyleng, s = D.yytext, yt = D.yylineno, Pt = D.yylloc;
165
+ break;
166
+ case 2:
167
+ if (M = this.productions_[W[1]][1], rt.$ = S[S.length - M], rt._$ = {
168
+ first_line: e[e.length - (M || 1)].first_line,
169
+ last_line: e[e.length - 1].last_line,
170
+ first_column: e[e.length - (M || 1)].first_column,
171
+ last_column: e[e.length - 1].last_column
172
+ }, Se && (rt._$.range = [
173
+ e[e.length - (M || 1)].range[0],
174
+ e[e.length - 1].range[1]
175
+ ]), vt = this.performAction.apply(rt, [
176
+ s,
177
+ Jt,
178
+ yt,
179
+ j.yy,
180
+ W[1],
181
+ S,
182
+ e
183
+ ].concat(be)), typeof vt < "u")
184
+ return vt;
185
+ M && (x = x.slice(0, -1 * M * 2), S = S.slice(0, -1 * M), e = e.slice(0, -1 * M)), x.push(this.productions_[W[1]][0]), S.push(rt.$), e.push(rt._$), ee = ut[x[x.length - 2]][x[x.length - 1]], x.push(ee);
186
+ break;
187
+ case 3:
188
+ return !0;
189
+ }
190
+ }
191
+ return !0;
192
+ }, "parse")
193
+ }, me = /* @__PURE__ */ function() {
194
+ var Y = {
195
+ EOF: 1,
196
+ parseError: /* @__PURE__ */ o(function(l, x) {
197
+ if (this.yy.parser)
198
+ this.yy.parser.parseError(l, x);
199
+ else
200
+ throw new Error(l);
201
+ }, "parseError"),
202
+ // resets the lexer, sets new input
203
+ setInput: /* @__PURE__ */ o(function(r, l) {
204
+ return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
205
+ first_line: 1,
206
+ first_column: 0,
207
+ last_line: 1,
208
+ last_column: 0
209
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
210
+ }, "setInput"),
211
+ // consumes and returns one char from the input
212
+ input: /* @__PURE__ */ o(function() {
213
+ var r = this._input[0];
214
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
215
+ var l = r.match(/(?:\r\n?|\n).*/g);
216
+ return l ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
217
+ }, "input"),
218
+ // unshifts one char (or a string) into the input
219
+ unput: /* @__PURE__ */ o(function(r) {
220
+ var l = r.length, x = r.split(/(?:\r\n?|\n)/g);
221
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
222
+ var c = this.match.split(/(?:\r\n?|\n)/g);
223
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
224
+ var S = this.yylloc.range;
225
+ return this.yylloc = {
226
+ first_line: this.yylloc.first_line,
227
+ last_line: this.yylineno + 1,
228
+ first_column: this.yylloc.first_column,
229
+ last_column: x ? (x.length === c.length ? this.yylloc.first_column : 0) + c[c.length - x.length].length - x[0].length : this.yylloc.first_column - l
230
+ }, this.options.ranges && (this.yylloc.range = [S[0], S[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
231
+ }, "unput"),
232
+ // When called from action, caches matched text and appends it on next action
233
+ more: /* @__PURE__ */ o(function() {
234
+ return this._more = !0, this;
235
+ }, "more"),
236
+ // 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.
237
+ reject: /* @__PURE__ */ o(function() {
238
+ if (this.options.backtrack_lexer)
239
+ this._backtrack = !0;
240
+ else
241
+ 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).
242
+ ` + this.showPosition(), {
243
+ text: "",
244
+ token: null,
245
+ line: this.yylineno
246
+ });
247
+ return this;
248
+ }, "reject"),
249
+ // retain first n characters of the match
250
+ less: /* @__PURE__ */ o(function(r) {
251
+ this.unput(this.match.slice(r));
252
+ }, "less"),
253
+ // displays already matched input, i.e. for error messages
254
+ pastInput: /* @__PURE__ */ o(function() {
255
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
256
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
257
+ }, "pastInput"),
258
+ // displays upcoming input, i.e. for error messages
259
+ upcomingInput: /* @__PURE__ */ o(function() {
260
+ var r = this.match;
261
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
262
+ }, "upcomingInput"),
263
+ // displays the character position where the lexing error occurred, i.e. for error messages
264
+ showPosition: /* @__PURE__ */ o(function() {
265
+ var r = this.pastInput(), l = new Array(r.length + 1).join("-");
266
+ return r + this.upcomingInput() + `
267
+ ` + l + "^";
268
+ }, "showPosition"),
269
+ // test the lexed token: return FALSE when not a match, otherwise return token
270
+ test_match: /* @__PURE__ */ o(function(r, l) {
271
+ var x, c, S;
272
+ if (this.options.backtrack_lexer && (S = {
273
+ yylineno: this.yylineno,
274
+ yylloc: {
275
+ first_line: this.yylloc.first_line,
276
+ last_line: this.last_line,
277
+ first_column: this.yylloc.first_column,
278
+ last_column: this.yylloc.last_column
279
+ },
280
+ yytext: this.yytext,
281
+ match: this.match,
282
+ matches: this.matches,
283
+ matched: this.matched,
284
+ yyleng: this.yyleng,
285
+ offset: this.offset,
286
+ _more: this._more,
287
+ _input: this._input,
288
+ yy: this.yy,
289
+ conditionStack: this.conditionStack.slice(0),
290
+ done: this.done
291
+ }, this.options.ranges && (S.yylloc.range = this.yylloc.range.slice(0))), c = r[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
292
+ first_line: this.yylloc.last_line,
293
+ last_line: this.yylineno + 1,
294
+ first_column: this.yylloc.last_column,
295
+ last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
296
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], x = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x)
297
+ return x;
298
+ if (this._backtrack) {
299
+ for (var e in S)
300
+ this[e] = S[e];
301
+ return !1;
302
+ }
303
+ return !1;
304
+ }, "test_match"),
305
+ // return next match in input
306
+ next: /* @__PURE__ */ o(function() {
307
+ if (this.done)
308
+ return this.EOF;
309
+ this._input || (this.done = !0);
310
+ var r, l, x, c;
311
+ this._more || (this.yytext = "", this.match = "");
312
+ for (var S = this._currentRules(), e = 0; e < S.length; e++)
313
+ if (x = this._input.match(this.rules[S[e]]), x && (!l || x[0].length > l[0].length)) {
314
+ if (l = x, c = e, this.options.backtrack_lexer) {
315
+ if (r = this.test_match(x, S[e]), r !== !1)
316
+ return r;
317
+ if (this._backtrack) {
318
+ l = !1;
319
+ continue;
320
+ } else
321
+ return !1;
322
+ } else if (!this.options.flex)
323
+ break;
324
+ }
325
+ return l ? (r = this.test_match(l, S[c]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
326
+ ` + this.showPosition(), {
327
+ text: "",
328
+ token: null,
329
+ line: this.yylineno
330
+ });
331
+ }, "next"),
332
+ // return next match that has a token
333
+ lex: /* @__PURE__ */ o(function() {
334
+ var l = this.next();
335
+ return l || this.lex();
336
+ }, "lex"),
337
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
338
+ begin: /* @__PURE__ */ o(function(l) {
339
+ this.conditionStack.push(l);
340
+ }, "begin"),
341
+ // pop the previously active lexer condition state off the condition stack
342
+ popState: /* @__PURE__ */ o(function() {
343
+ var l = this.conditionStack.length - 1;
344
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
345
+ }, "popState"),
346
+ // produce the lexer rule set which is active for the currently active lexer condition state
347
+ _currentRules: /* @__PURE__ */ o(function() {
348
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
349
+ }, "_currentRules"),
350
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
351
+ topState: /* @__PURE__ */ o(function(l) {
352
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
353
+ }, "topState"),
354
+ // alias for begin(condition)
355
+ pushState: /* @__PURE__ */ o(function(l) {
356
+ this.begin(l);
357
+ }, "pushState"),
358
+ // return the number of states currently on the stack
359
+ stateStackSize: /* @__PURE__ */ o(function() {
360
+ return this.conditionStack.length;
361
+ }, "stateStackSize"),
362
+ options: { "case-insensitive": !0 },
363
+ performAction: /* @__PURE__ */ o(function(l, x, c, S) {
364
+ switch (c) {
365
+ case 0:
366
+ break;
367
+ case 1:
368
+ break;
369
+ case 2:
370
+ return 55;
371
+ case 3:
372
+ break;
373
+ case 4:
374
+ return this.begin("title"), 35;
375
+ case 5:
376
+ return this.popState(), "title_value";
377
+ case 6:
378
+ return this.begin("acc_title"), 37;
379
+ case 7:
380
+ return this.popState(), "acc_title_value";
381
+ case 8:
382
+ return this.begin("acc_descr"), 39;
383
+ case 9:
384
+ return this.popState(), "acc_descr_value";
385
+ case 10:
386
+ this.begin("acc_descr_multiline");
387
+ break;
388
+ case 11:
389
+ this.popState();
390
+ break;
391
+ case 12:
392
+ return "acc_descr_multiline_value";
393
+ case 13:
394
+ return 48;
395
+ case 14:
396
+ return 50;
397
+ case 15:
398
+ return 49;
399
+ case 16:
400
+ return 51;
401
+ case 17:
402
+ return 52;
403
+ case 18:
404
+ return 53;
405
+ case 19:
406
+ return 54;
407
+ case 20:
408
+ return 25;
409
+ case 21:
410
+ this.begin("md_string");
411
+ break;
412
+ case 22:
413
+ return "MD_STR";
414
+ case 23:
415
+ this.popState();
416
+ break;
417
+ case 24:
418
+ this.begin("string");
419
+ break;
420
+ case 25:
421
+ this.popState();
422
+ break;
423
+ case 26:
424
+ return "STR";
425
+ case 27:
426
+ this.begin("class_name");
427
+ break;
428
+ case 28:
429
+ return this.popState(), 47;
430
+ case 29:
431
+ return this.begin("point_start"), 44;
432
+ case 30:
433
+ return this.begin("point_x"), 45;
434
+ case 31:
435
+ this.popState();
436
+ break;
437
+ case 32:
438
+ this.popState(), this.begin("point_y");
439
+ break;
440
+ case 33:
441
+ return this.popState(), 46;
442
+ case 34:
443
+ return 28;
444
+ case 35:
445
+ return 4;
446
+ case 36:
447
+ return 15;
448
+ case 37:
449
+ return 11;
450
+ case 38:
451
+ return 64;
452
+ case 39:
453
+ return 10;
454
+ case 40:
455
+ return 65;
456
+ case 41:
457
+ return 65;
458
+ case 42:
459
+ return 14;
460
+ case 43:
461
+ return 13;
462
+ case 44:
463
+ return 67;
464
+ case 45:
465
+ return 66;
466
+ case 46:
467
+ return 12;
468
+ case 47:
469
+ return 8;
470
+ case 48:
471
+ return 5;
472
+ case 49:
473
+ return 18;
474
+ case 50:
475
+ return 56;
476
+ case 51:
477
+ return 63;
478
+ case 52:
479
+ return 57;
480
+ }
481
+ }, "anonymous"),
482
+ 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, /^(?:[^\x00-\x7F]+)/i, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
483
+ conditions: { class_name: { rules: [28], inclusive: !1 }, point_y: { rules: [33], inclusive: !1 }, point_x: { rules: [32], inclusive: !1 }, point_start: { rules: [30, 31], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, title: { rules: [5], inclusive: !1 }, md_string: { rules: [22, 23], inclusive: !1 }, string: { rules: [25, 26], inclusive: !1 }, 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, 52], inclusive: !0 } }
484
+ };
485
+ return Y;
486
+ }();
487
+ kt.lexer = me;
488
+ function pt() {
489
+ this.yy = {};
490
+ }
491
+ return o(pt, "Parser"), pt.prototype = kt, kt.Parser = pt, new pt();
492
+ }();
493
+ Et.parser = Et;
494
+ var ze = Et, I = Ee(), ot, Ve = (ot = class {
495
+ constructor() {
496
+ this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
497
+ }
498
+ getDefaultData() {
499
+ return {
500
+ titleText: "",
501
+ quadrant1Text: "",
502
+ quadrant2Text: "",
503
+ quadrant3Text: "",
504
+ quadrant4Text: "",
505
+ xAxisLeftText: "",
506
+ xAxisRightText: "",
507
+ yAxisBottomText: "",
508
+ yAxisTopText: "",
509
+ points: []
510
+ };
511
+ }
512
+ getDefaultConfig() {
513
+ return {
514
+ showXAxis: !0,
515
+ showYAxis: !0,
516
+ showTitle: !0,
517
+ chartHeight: z.quadrantChart?.chartWidth || 500,
518
+ chartWidth: z.quadrantChart?.chartHeight || 500,
519
+ titlePadding: z.quadrantChart?.titlePadding || 10,
520
+ titleFontSize: z.quadrantChart?.titleFontSize || 20,
521
+ quadrantPadding: z.quadrantChart?.quadrantPadding || 5,
522
+ xAxisLabelPadding: z.quadrantChart?.xAxisLabelPadding || 5,
523
+ yAxisLabelPadding: z.quadrantChart?.yAxisLabelPadding || 5,
524
+ xAxisLabelFontSize: z.quadrantChart?.xAxisLabelFontSize || 16,
525
+ yAxisLabelFontSize: z.quadrantChart?.yAxisLabelFontSize || 16,
526
+ quadrantLabelFontSize: z.quadrantChart?.quadrantLabelFontSize || 16,
527
+ quadrantTextTopPadding: z.quadrantChart?.quadrantTextTopPadding || 5,
528
+ pointTextPadding: z.quadrantChart?.pointTextPadding || 5,
529
+ pointLabelFontSize: z.quadrantChart?.pointLabelFontSize || 12,
530
+ pointRadius: z.quadrantChart?.pointRadius || 5,
531
+ xAxisPosition: z.quadrantChart?.xAxisPosition || "top",
532
+ yAxisPosition: z.quadrantChart?.yAxisPosition || "left",
533
+ quadrantInternalBorderStrokeWidth: z.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
534
+ quadrantExternalBorderStrokeWidth: z.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
535
+ };
536
+ }
537
+ getDefaultThemeConfig() {
538
+ return {
539
+ quadrant1Fill: I.quadrant1Fill,
540
+ quadrant2Fill: I.quadrant2Fill,
541
+ quadrant3Fill: I.quadrant3Fill,
542
+ quadrant4Fill: I.quadrant4Fill,
543
+ quadrant1TextFill: I.quadrant1TextFill,
544
+ quadrant2TextFill: I.quadrant2TextFill,
545
+ quadrant3TextFill: I.quadrant3TextFill,
546
+ quadrant4TextFill: I.quadrant4TextFill,
547
+ quadrantPointFill: I.quadrantPointFill,
548
+ quadrantPointTextFill: I.quadrantPointTextFill,
549
+ quadrantXAxisTextFill: I.quadrantXAxisTextFill,
550
+ quadrantYAxisTextFill: I.quadrantYAxisTextFill,
551
+ quadrantTitleFill: I.quadrantTitleFill,
552
+ quadrantInternalBorderStrokeFill: I.quadrantInternalBorderStrokeFill,
553
+ quadrantExternalBorderStrokeFill: I.quadrantExternalBorderStrokeFill
554
+ };
555
+ }
556
+ clear() {
557
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), bt.info("clear called");
558
+ }
559
+ setData(n) {
560
+ this.data = { ...this.data, ...n };
561
+ }
562
+ addPoints(n) {
563
+ this.data.points = [...n, ...this.data.points];
564
+ }
565
+ addClass(n, f) {
566
+ this.classes.set(n, f);
567
+ }
568
+ setConfig(n) {
569
+ bt.trace("setConfig called with: ", n), this.config = { ...this.config, ...n };
570
+ }
571
+ setThemeConfig(n) {
572
+ bt.trace("setThemeConfig called with: ", n), this.themeConfig = { ...this.themeConfig, ...n };
573
+ }
574
+ calculateSpace(n, f, d, h) {
575
+ const p = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, y = {
576
+ top: n === "top" && f ? p : 0,
577
+ bottom: n === "bottom" && f ? p : 0
578
+ }, _ = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
579
+ left: this.config.yAxisPosition === "left" && d ? _ : 0,
580
+ right: this.config.yAxisPosition === "right" && d ? _ : 0
581
+ }, k = this.config.titleFontSize + this.config.titlePadding * 2, u = {
582
+ top: h ? k : 0
583
+ }, T = this.config.quadrantPadding + a.left, m = this.config.quadrantPadding + y.top + u.top, q = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, b = this.config.chartHeight - this.config.quadrantPadding * 2 - y.top - y.bottom - u.top, g = q / 2, A = b / 2;
584
+ return {
585
+ xAxisSpace: y,
586
+ yAxisSpace: a,
587
+ titleSpace: u,
588
+ quadrantSpace: {
589
+ quadrantLeft: T,
590
+ quadrantTop: m,
591
+ quadrantWidth: q,
592
+ quadrantHalfWidth: g,
593
+ quadrantHeight: b,
594
+ quadrantHalfHeight: A
595
+ }
596
+ };
597
+ }
598
+ getAxisLabels(n, f, d, h) {
599
+ const { quadrantSpace: p, titleSpace: y } = h, {
600
+ quadrantHalfHeight: _,
601
+ quadrantHeight: a,
602
+ quadrantLeft: k,
603
+ quadrantHalfWidth: u,
604
+ quadrantTop: T,
605
+ quadrantWidth: m
606
+ } = p, q = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText, g = [];
607
+ return this.data.xAxisLeftText && f && g.push({
608
+ text: this.data.xAxisLeftText,
609
+ fill: this.themeConfig.quadrantXAxisTextFill,
610
+ x: k + (q ? u / 2 : 0),
611
+ y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
612
+ fontSize: this.config.xAxisLabelFontSize,
613
+ verticalPos: q ? "center" : "left",
614
+ horizontalPos: "top",
615
+ rotation: 0
616
+ }), this.data.xAxisRightText && f && g.push({
617
+ text: this.data.xAxisRightText,
618
+ fill: this.themeConfig.quadrantXAxisTextFill,
619
+ x: k + u + (q ? u / 2 : 0),
620
+ y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
621
+ fontSize: this.config.xAxisLabelFontSize,
622
+ verticalPos: q ? "center" : "left",
623
+ horizontalPos: "top",
624
+ rotation: 0
625
+ }), this.data.yAxisBottomText && d && g.push({
626
+ text: this.data.yAxisBottomText,
627
+ fill: this.themeConfig.quadrantYAxisTextFill,
628
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + k + m + this.config.quadrantPadding,
629
+ y: T + a - (b ? _ / 2 : 0),
630
+ fontSize: this.config.yAxisLabelFontSize,
631
+ verticalPos: b ? "center" : "left",
632
+ horizontalPos: "top",
633
+ rotation: -90
634
+ }), this.data.yAxisTopText && d && g.push({
635
+ text: this.data.yAxisTopText,
636
+ fill: this.themeConfig.quadrantYAxisTextFill,
637
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + k + m + this.config.quadrantPadding,
638
+ y: T + _ - (b ? _ / 2 : 0),
639
+ fontSize: this.config.yAxisLabelFontSize,
640
+ verticalPos: b ? "center" : "left",
641
+ horizontalPos: "top",
642
+ rotation: -90
643
+ }), g;
644
+ }
645
+ getQuadrants(n) {
646
+ const { quadrantSpace: f } = n, { quadrantHalfHeight: d, quadrantLeft: h, quadrantHalfWidth: p, quadrantTop: y } = f, _ = [
647
+ {
648
+ text: {
649
+ text: this.data.quadrant1Text,
650
+ fill: this.themeConfig.quadrant1TextFill,
651
+ x: 0,
652
+ y: 0,
653
+ fontSize: this.config.quadrantLabelFontSize,
654
+ verticalPos: "center",
655
+ horizontalPos: "middle",
656
+ rotation: 0
657
+ },
658
+ x: h + p,
659
+ y,
660
+ width: p,
661
+ height: d,
662
+ fill: this.themeConfig.quadrant1Fill
663
+ },
664
+ {
665
+ text: {
666
+ text: this.data.quadrant2Text,
667
+ fill: this.themeConfig.quadrant2TextFill,
668
+ x: 0,
669
+ y: 0,
670
+ fontSize: this.config.quadrantLabelFontSize,
671
+ verticalPos: "center",
672
+ horizontalPos: "middle",
673
+ rotation: 0
674
+ },
675
+ x: h,
676
+ y,
677
+ width: p,
678
+ height: d,
679
+ fill: this.themeConfig.quadrant2Fill
680
+ },
681
+ {
682
+ text: {
683
+ text: this.data.quadrant3Text,
684
+ fill: this.themeConfig.quadrant3TextFill,
685
+ x: 0,
686
+ y: 0,
687
+ fontSize: this.config.quadrantLabelFontSize,
688
+ verticalPos: "center",
689
+ horizontalPos: "middle",
690
+ rotation: 0
691
+ },
692
+ x: h,
693
+ y: y + d,
694
+ width: p,
695
+ height: d,
696
+ fill: this.themeConfig.quadrant3Fill
697
+ },
698
+ {
699
+ text: {
700
+ text: this.data.quadrant4Text,
701
+ fill: this.themeConfig.quadrant4TextFill,
702
+ x: 0,
703
+ y: 0,
704
+ fontSize: this.config.quadrantLabelFontSize,
705
+ verticalPos: "center",
706
+ horizontalPos: "middle",
707
+ rotation: 0
708
+ },
709
+ x: h + p,
710
+ y: y + d,
711
+ width: p,
712
+ height: d,
713
+ fill: this.themeConfig.quadrant4Fill
714
+ }
715
+ ];
716
+ for (const a of _)
717
+ 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");
718
+ return _;
719
+ }
720
+ getQuadrantPoints(n) {
721
+ const { quadrantSpace: f } = n, { quadrantHeight: d, quadrantLeft: h, quadrantTop: p, quadrantWidth: y } = f, _ = ie().domain([0, 1]).range([h, y + h]), a = ie().domain([0, 1]).range([d + p, p]);
722
+ return this.data.points.map((u) => {
723
+ const T = this.classes.get(u.className);
724
+ return T && (u = { ...T, ...u }), {
725
+ x: _(u.x),
726
+ y: a(u.y),
727
+ fill: u.color ?? this.themeConfig.quadrantPointFill,
728
+ radius: u.radius ?? this.config.pointRadius,
729
+ text: {
730
+ text: u.text,
731
+ fill: this.themeConfig.quadrantPointTextFill,
732
+ x: _(u.x),
733
+ y: a(u.y) + this.config.pointTextPadding,
734
+ verticalPos: "center",
735
+ horizontalPos: "top",
736
+ fontSize: this.config.pointLabelFontSize,
737
+ rotation: 0
738
+ },
739
+ strokeColor: u.strokeColor ?? this.themeConfig.quadrantPointFill,
740
+ strokeWidth: u.strokeWidth ?? "0px"
741
+ };
742
+ });
743
+ }
744
+ getBorders(n) {
745
+ const f = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: d } = n, {
746
+ quadrantHalfHeight: h,
747
+ quadrantHeight: p,
748
+ quadrantLeft: y,
749
+ quadrantHalfWidth: _,
750
+ quadrantTop: a,
751
+ quadrantWidth: k
752
+ } = d;
753
+ return [
754
+ // top border
755
+ {
756
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
757
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
758
+ x1: y - f,
759
+ y1: a,
760
+ x2: y + k + f,
761
+ y2: a
762
+ },
763
+ // right border
764
+ {
765
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
766
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
767
+ x1: y + k,
768
+ y1: a + f,
769
+ x2: y + k,
770
+ y2: a + p - f
771
+ },
772
+ // bottom border
773
+ {
774
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
775
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
776
+ x1: y - f,
777
+ y1: a + p,
778
+ x2: y + k + f,
779
+ y2: a + p
780
+ },
781
+ // left border
782
+ {
783
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
784
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
785
+ x1: y,
786
+ y1: a + f,
787
+ x2: y,
788
+ y2: a + p - f
789
+ },
790
+ // vertical inner border
791
+ {
792
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
793
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
794
+ x1: y + _,
795
+ y1: a + f,
796
+ x2: y + _,
797
+ y2: a + p - f
798
+ },
799
+ // horizontal inner border
800
+ {
801
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
802
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
803
+ x1: y + f,
804
+ y1: a + h,
805
+ x2: y + k - f,
806
+ y2: a + h
807
+ }
808
+ ];
809
+ }
810
+ getTitle(n) {
811
+ if (n)
812
+ return {
813
+ text: this.data.titleText,
814
+ fill: this.themeConfig.quadrantTitleFill,
815
+ fontSize: this.config.titleFontSize,
816
+ horizontalPos: "top",
817
+ verticalPos: "center",
818
+ rotation: 0,
819
+ y: this.config.titlePadding,
820
+ x: this.config.chartWidth / 2
821
+ };
822
+ }
823
+ build() {
824
+ const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), f = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), d = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, p = this.calculateSpace(h, n, f, d);
825
+ return {
826
+ points: this.getQuadrantPoints(p),
827
+ quadrants: this.getQuadrants(p),
828
+ axisLabels: this.getAxisLabels(h, n, f, p),
829
+ borderLines: this.getBorders(p),
830
+ title: this.getTitle(d)
831
+ };
832
+ }
833
+ }, o(ot, "QuadrantBuilder"), ot), lt, qt = (lt = class extends Error {
834
+ constructor(n, f, d) {
835
+ super(`value for ${n} ${f} is invalid, please use a valid ${d}`), this.name = "InvalidStyleError";
836
+ }
837
+ }, o(lt, "InvalidStyleError"), lt);
838
+ function Dt(t) {
839
+ return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
840
+ }
841
+ o(Dt, "validateHexCode");
842
+ function ne(t) {
843
+ return !/^\d+$/.test(t);
844
+ }
845
+ o(ne, "validateNumber");
846
+ function se(t) {
847
+ return !/^\d+px$/.test(t);
848
+ }
849
+ o(se, "validateSizeInPixels");
850
+ function O(t) {
851
+ return De(t.trim(), zt());
852
+ }
853
+ o(O, "textSanitizer");
854
+ var V = new Ve();
855
+ function re(t) {
856
+ V.setData({ quadrant1Text: O(t.text) });
857
+ }
858
+ o(re, "setQuadrant1Text");
859
+ function oe(t) {
860
+ V.setData({ quadrant2Text: O(t.text) });
861
+ }
862
+ o(oe, "setQuadrant2Text");
863
+ function le(t) {
864
+ V.setData({ quadrant3Text: O(t.text) });
865
+ }
866
+ o(le, "setQuadrant3Text");
867
+ function he(t) {
868
+ V.setData({ quadrant4Text: O(t.text) });
869
+ }
870
+ o(he, "setQuadrant4Text");
871
+ function ce(t) {
872
+ V.setData({ xAxisLeftText: O(t.text) });
873
+ }
874
+ o(ce, "setXAxisLeftText");
875
+ function de(t) {
876
+ V.setData({ xAxisRightText: O(t.text) });
877
+ }
878
+ o(de, "setXAxisRightText");
879
+ function ue(t) {
880
+ V.setData({ yAxisTopText: O(t.text) });
881
+ }
882
+ o(ue, "setYAxisTopText");
883
+ function xe(t) {
884
+ V.setData({ yAxisBottomText: O(t.text) });
885
+ }
886
+ o(xe, "setYAxisBottomText");
887
+ function St(t) {
888
+ const n = {};
889
+ for (const f of t) {
890
+ const [d, h] = f.trim().split(/\s*:\s*/);
891
+ if (d === "radius") {
892
+ if (ne(h))
893
+ throw new qt(d, h, "number");
894
+ n.radius = parseInt(h);
895
+ } else if (d === "color") {
896
+ if (Dt(h))
897
+ throw new qt(d, h, "hex code");
898
+ n.color = h;
899
+ } else if (d === "stroke-color") {
900
+ if (Dt(h))
901
+ throw new qt(d, h, "hex code");
902
+ n.strokeColor = h;
903
+ } else if (d === "stroke-width") {
904
+ if (se(h))
905
+ throw new qt(d, h, "number of pixels (eg. 10px)");
906
+ n.strokeWidth = h;
907
+ } else
908
+ throw new Error(`style named ${d} is not supported.`);
909
+ }
910
+ return n;
911
+ }
912
+ o(St, "parseStyles");
913
+ function fe(t, n, f, d, h) {
914
+ const p = St(h);
915
+ V.addPoints([
916
+ {
917
+ x: f,
918
+ y: d,
919
+ text: O(t.text),
920
+ className: n,
921
+ ...p
922
+ }
923
+ ]);
924
+ }
925
+ o(fe, "addPoint");
926
+ function ge(t, n) {
927
+ V.addClass(t, St(n));
928
+ }
929
+ o(ge, "addClass");
930
+ function pe(t) {
931
+ V.setConfig({ chartWidth: t });
932
+ }
933
+ o(pe, "setWidth");
934
+ function ye(t) {
935
+ V.setConfig({ chartHeight: t });
936
+ }
937
+ o(ye, "setHeight");
938
+ function Te() {
939
+ const t = zt(), { themeVariables: n, quadrantChart: f } = t;
940
+ return f && V.setConfig(f), V.setThemeConfig({
941
+ quadrant1Fill: n.quadrant1Fill,
942
+ quadrant2Fill: n.quadrant2Fill,
943
+ quadrant3Fill: n.quadrant3Fill,
944
+ quadrant4Fill: n.quadrant4Fill,
945
+ quadrant1TextFill: n.quadrant1TextFill,
946
+ quadrant2TextFill: n.quadrant2TextFill,
947
+ quadrant3TextFill: n.quadrant3TextFill,
948
+ quadrant4TextFill: n.quadrant4TextFill,
949
+ quadrantPointFill: n.quadrantPointFill,
950
+ quadrantPointTextFill: n.quadrantPointTextFill,
951
+ quadrantXAxisTextFill: n.quadrantXAxisTextFill,
952
+ quadrantYAxisTextFill: n.quadrantYAxisTextFill,
953
+ quadrantExternalBorderStrokeFill: n.quadrantExternalBorderStrokeFill,
954
+ quadrantInternalBorderStrokeFill: n.quadrantInternalBorderStrokeFill,
955
+ quadrantTitleFill: n.quadrantTitleFill
956
+ }), V.setData({ titleText: ae() }), V.build();
957
+ }
958
+ o(Te, "getQuadrantData");
959
+ var Ie = /* @__PURE__ */ o(function() {
960
+ V.clear(), Le();
961
+ }, "clear"), we = {
962
+ setWidth: pe,
963
+ setHeight: ye,
964
+ setQuadrant1Text: re,
965
+ setQuadrant2Text: oe,
966
+ setQuadrant3Text: le,
967
+ setQuadrant4Text: he,
968
+ setXAxisLeftText: ce,
969
+ setXAxisRightText: de,
970
+ setYAxisTopText: ue,
971
+ setYAxisBottomText: xe,
972
+ parseStyles: St,
973
+ addPoint: fe,
974
+ addClass: ge,
975
+ getQuadrantData: Te,
976
+ clear: Ie,
977
+ setAccTitle: ve,
978
+ getAccTitle: Pe,
979
+ setDiagramTitle: Fe,
980
+ getDiagramTitle: ae,
981
+ getAccDescription: ke,
982
+ setAccDescription: Ae
983
+ }, Be = /* @__PURE__ */ o((t, n, f, d) => {
984
+ function h(i) {
985
+ return i === "top" ? "hanging" : "middle";
986
+ }
987
+ o(h, "getDominantBaseLine");
988
+ function p(i) {
989
+ return i === "left" ? "start" : "middle";
990
+ }
991
+ o(p, "getTextAnchor");
992
+ function y(i) {
993
+ return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
994
+ }
995
+ o(y, "getTransformation");
996
+ const _ = zt();
997
+ bt.debug(`Rendering quadrant chart
998
+ ` + t);
999
+ const a = _.securityLevel;
1000
+ let k;
1001
+ a === "sandbox" && (k = Lt("#i" + n));
1002
+ const T = (a === "sandbox" ? Lt(k.nodes()[0].contentDocument.body) : Lt("body")).select(`[id="${n}"]`), m = T.append("g").attr("class", "main"), q = _.quadrantChart?.chartWidth ?? 500, b = _.quadrantChart?.chartHeight ?? 500;
1003
+ Ce(T, b, q, _.quadrantChart?.useMaxWidth ?? !0), T.attr("viewBox", "0 0 " + q + " " + b), d.db.setHeight(b), d.db.setWidth(q);
1004
+ const g = d.db.getQuadrantData(), A = m.append("g").attr("class", "quadrants"), ht = m.append("g").attr("class", "border"), xt = m.append("g").attr("class", "data-points"), ft = m.append("g").attr("class", "labels"), gt = m.append("g").attr("class", "title");
1005
+ g.title && gt.append("text").attr("x", 0).attr("y", 0).attr("fill", g.title.fill).attr("font-size", g.title.fontSize).attr("dominant-baseline", h(g.title.horizontalPos)).attr("text-anchor", p(g.title.verticalPos)).attr("transform", y(g.title)).text(g.title.text), g.borderLines && ht.selectAll("line").data(g.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);
1006
+ const ct = A.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class", "quadrant");
1007
+ ct.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), ct.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
1008
+ "dominant-baseline",
1009
+ (i) => h(i.text.horizontalPos)
1010
+ ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text), ft.selectAll("g.label").data(g.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) => p(i.verticalPos)).attr("transform", (i) => y(i));
1011
+ const dt = xt.selectAll("g.data-point").data(g.points).enter().append("g").attr("class", "data-point");
1012
+ dt.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), dt.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(
1013
+ "dominant-baseline",
1014
+ (i) => h(i.text.horizontalPos)
1015
+ ).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text));
1016
+ }, "draw"), Re = {
1017
+ draw: Be
1018
+ }, He = {
1019
+ parser: ze,
1020
+ db: we,
1021
+ renderer: Re,
1022
+ styles: /* @__PURE__ */ o(() => "", "styles")
1023
+ };
1024
+ export {
1025
+ He as diagram
1026
+ };