@cagent/chat-embedding-core 0.0.12 → 0.0.14

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 (317) hide show
  1. package/.env +6 -0
  2. package/README.md +213 -213
  3. package/bun.lock +1548 -1548
  4. package/dist/abnfDiagram-VRR7QNED-3cfb3856.js +1 -0
  5. package/dist/abnfDiagram-VRR7QNED-686410b0.js +1 -0
  6. package/dist/abnfDiagram-VRR7QNED-fb22812d.js +1 -0
  7. package/dist/api/chatRoom.d.ts.map +1 -0
  8. package/dist/arc-24dd4755.js +1 -0
  9. package/dist/arc-5d6257cf.js +1 -0
  10. package/dist/arc-90e71e7e.js +1 -0
  11. package/dist/architecture-TIHT7OUA-a997f441.js +1 -0
  12. package/dist/architecture-TIHT7OUA-faa1f9b3.js +1 -0
  13. package/dist/architectureDiagram-ZJ3FMSHR-87443299.js +1 -0
  14. package/dist/architectureDiagram-ZJ3FMSHR-93988e41.js +1 -0
  15. package/dist/architectureDiagram-ZJ3FMSHR-bde2dd21.js +1 -0
  16. package/dist/blockDiagram-677ZJIJ3-25a94a47.js +1 -0
  17. package/dist/blockDiagram-677ZJIJ3-88bd543c.js +1 -0
  18. package/dist/blockDiagram-677ZJIJ3-c769a3c8.js +1 -0
  19. package/dist/c4Diagram-LMCZKHZV-763880d7.js +1 -0
  20. package/dist/c4Diagram-LMCZKHZV-d7fc839e.js +1 -0
  21. package/dist/c4Diagram-LMCZKHZV-da04a76e.js +1 -0
  22. package/dist/channel-11d3f4bc.js +1 -0
  23. package/dist/channel-534c2e17.js +1 -0
  24. package/dist/channel-c3cf6060.js +1 -0
  25. package/dist/chunk-2Q5K7J3B-2892df89.js +1 -0
  26. package/dist/chunk-2Q5K7J3B-7960ff8e.js +1 -0
  27. package/dist/chunk-2Q5K7J3B-9497bf31.js +1 -0
  28. package/dist/chunk-32BRIVSS-10123eba.js +1 -0
  29. package/dist/chunk-32BRIVSS-10ac68f7.js +1 -0
  30. package/dist/chunk-32BRIVSS-8a8507a2.js +1 -0
  31. package/dist/chunk-5VM5RSS4-36b32f6e.js +1 -0
  32. package/dist/chunk-5VM5RSS4-4b2efd20.js +1 -0
  33. package/dist/chunk-5VM5RSS4-5fc85a49.js +1 -0
  34. package/dist/chunk-EX3LRPZG-36494b87.js +1 -0
  35. package/dist/chunk-EX3LRPZG-6cd1f2fa.js +1 -0
  36. package/dist/chunk-EX3LRPZG-7ac6d0d7.js +1 -0
  37. package/dist/chunk-JWPE2WC7-15a55950.js +1 -0
  38. package/dist/chunk-JWPE2WC7-84faee3d.js +1 -0
  39. package/dist/chunk-JWPE2WC7-e2521b1e.js +1 -0
  40. package/dist/chunk-MOJQB5TN-47f0392f.js +1 -0
  41. package/dist/chunk-MOJQB5TN-5cc2e61b.js +1 -0
  42. package/dist/chunk-MOJQB5TN-ea88675c.js +1 -0
  43. package/dist/chunk-PUDLZKDR-057ec46a.js +1 -0
  44. package/dist/chunk-PUDLZKDR-53309be9.js +1 -0
  45. package/dist/chunk-PUDLZKDR-6de50ada.js +1 -0
  46. package/dist/chunk-RYQCIY6F-06b096c5.js +1 -0
  47. package/dist/chunk-RYQCIY6F-453400cd.js +1 -0
  48. package/dist/chunk-RYQCIY6F-8de649c8.js +1 -0
  49. package/dist/chunk-V7JOEXUC-4083766f.js +1 -0
  50. package/dist/chunk-V7JOEXUC-4e8d7729.js +1 -0
  51. package/dist/chunk-V7JOEXUC-bb2df9b0.js +1 -0
  52. package/dist/chunk-VR4S4FIN-5feb7571.js +1 -0
  53. package/dist/chunk-VR4S4FIN-9df47127.js +1 -0
  54. package/dist/chunk-VR4S4FIN-c4f2681d.js +1 -0
  55. package/dist/chunk-XXDRQBXY-3c9d8bf9.js +1 -0
  56. package/dist/chunk-XXDRQBXY-de00e988.js +1 -0
  57. package/dist/chunk-XXDRQBXY-f923ffed.js +1 -0
  58. package/dist/classDiagram-OUVF2IWQ-5cdf5fe6.js +1 -0
  59. package/dist/classDiagram-OUVF2IWQ-d51bd736.js +1 -0
  60. package/dist/classDiagram-OUVF2IWQ-fc2b54d6.js +1 -0
  61. package/dist/classDiagram-v2-EOCWNBFH-5cdf5fe6.js +1 -0
  62. package/dist/classDiagram-v2-EOCWNBFH-d51bd736.js +1 -0
  63. package/dist/classDiagram-v2-EOCWNBFH-fc2b54d6.js +1 -0
  64. package/dist/components/Badge.d.ts.map +1 -0
  65. package/dist/components/Bot.d.ts.map +1 -0
  66. package/dist/components/FeedbackContentDialog.d.ts.map +1 -0
  67. package/dist/components/RoomReconnectAlert.d.ts.map +1 -0
  68. package/dist/components/Toast.d.ts.map +1 -0
  69. package/dist/components/TypingBubble.d.ts.map +1 -0
  70. package/dist/components/avatars/Avatar.d.ts.map +1 -0
  71. package/dist/components/avatars/DefaultAvatar.d.ts.map +1 -0
  72. package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -0
  73. package/dist/components/bubbles/BotBubble.d.ts.map +1 -0
  74. package/dist/components/bubbles/ChartBubble.d.ts.map +1 -0
  75. package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts.map +1 -0
  76. package/dist/components/bubbles/ChartPlaceholder.d.ts.map +1 -0
  77. package/dist/components/bubbles/ChartPopupModal.d.ts.map +1 -0
  78. package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
  79. package/dist/components/bubbles/GuestBubble.d.ts.map +1 -0
  80. package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +1 -0
  81. package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -0
  82. package/dist/components/bubbles/SourceBubble.d.ts.map +1 -0
  83. package/dist/components/bubbles/StableChartWrapper.d.ts.map +1 -0
  84. package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -0
  85. package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
  86. package/dist/components/buttons/CancelButton.d.ts.map +1 -0
  87. package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
  88. package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
  89. package/dist/components/buttons/FeedbackButtons.d.ts.map +1 -0
  90. package/dist/components/buttons/ImageUploadButton.d.ts.map +1 -0
  91. package/dist/components/buttons/LeadCaptureButtons.d.ts.map +1 -0
  92. package/dist/components/buttons/PopupToast.d.ts.map +1 -0
  93. package/dist/components/buttons/RecordAudioButton.d.ts.map +1 -0
  94. package/dist/components/buttons/SendButton.d.ts.map +1 -0
  95. package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
  96. package/dist/components/icons/AddImageIcon.d.ts.map +1 -0
  97. package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
  98. package/dist/components/icons/CheckIcon.d.ts.map +1 -0
  99. package/dist/components/icons/CircleDotIcon.d.ts.map +1 -0
  100. package/dist/components/icons/ClipboardIcon.d.ts.map +1 -0
  101. package/dist/components/icons/CopyIcon.d.ts.map +1 -0
  102. package/dist/components/icons/DeleteIcon.d.ts.map +1 -0
  103. package/dist/components/icons/EditIcon.d.ts.map +1 -0
  104. package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
  105. package/dist/components/icons/RecordIcon.d.ts.map +1 -0
  106. package/dist/components/icons/ResetZoomIcon.d.ts.map +1 -0
  107. package/dist/components/icons/SendIcon.d.ts.map +1 -0
  108. package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
  109. package/dist/components/icons/StopIcon.d.ts.map +1 -0
  110. package/dist/components/icons/ThumbsDownIcon.d.ts.map +1 -0
  111. package/dist/components/icons/ThumbsUpIcon.d.ts.map +1 -0
  112. package/dist/components/icons/TickIcon.d.ts.map +1 -0
  113. package/dist/components/icons/TrashIcon.d.ts.map +1 -0
  114. package/dist/components/icons/XIcon.d.ts.map +1 -0
  115. package/dist/components/icons/ZoomInIcon.d.ts.map +1 -0
  116. package/dist/components/icons/ZoomOutIcon.d.ts.map +1 -0
  117. package/dist/components/icons/index.d.ts.map +1 -0
  118. package/dist/components/image/PreviewImage.d.ts.map +1 -0
  119. package/dist/components/index.d.ts.map +1 -0
  120. package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
  121. package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -0
  122. package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -0
  123. package/dist/components/inputs/textInput/index.d.ts.map +1 -0
  124. package/dist/constants.d.ts.map +1 -0
  125. package/dist/cose-bilkent-JH36ORCC-ac4d2e28.js +1 -0
  126. package/dist/cose-bilkent-JH36ORCC-c3560feb.js +1 -0
  127. package/dist/cose-bilkent-JH36ORCC-f0ddc3e7.js +1 -0
  128. package/dist/cynefin-VYW2F7L2-2458ad91.js +1 -0
  129. package/dist/cynefin-VYW2F7L2-a8648cf6.js +1 -0
  130. package/dist/cynefinDiagram-TSTJHNR4-62a29383.js +1 -0
  131. package/dist/cynefinDiagram-TSTJHNR4-910b3dfd.js +1 -0
  132. package/dist/cynefinDiagram-TSTJHNR4-deb0bb2c.js +1 -0
  133. package/dist/cytoscape.esm-56d2239f.js +1 -0
  134. package/dist/cytoscape.esm-c9352dc8.js +1 -0
  135. package/dist/dagre-VKFMJZFB-1467d0af.js +1 -0
  136. package/dist/dagre-VKFMJZFB-35daad97.js +1 -0
  137. package/dist/dagre-VKFMJZFB-c5b9a4a0.js +1 -0
  138. package/dist/defaultLocale-b4977250.js +1 -0
  139. package/dist/defaultLocale-e35a4def.js +1 -0
  140. package/dist/diagram-FQU43EPY-41eed431.js +1 -0
  141. package/dist/diagram-FQU43EPY-613e9e4e.js +1 -0
  142. package/dist/diagram-FQU43EPY-d256050e.js +1 -0
  143. package/dist/diagram-G47NLZAW-813bbb70.js +1 -0
  144. package/dist/diagram-G47NLZAW-8ef917d1.js +1 -0
  145. package/dist/diagram-G47NLZAW-aa02607c.js +1 -0
  146. package/dist/diagram-NH7WQ7WH-0af7a921.js +1 -0
  147. package/dist/diagram-NH7WQ7WH-0e4f7f17.js +1 -0
  148. package/dist/diagram-NH7WQ7WH-6f91f6aa.js +1 -0
  149. package/dist/diagram-OA4YK3LP-0fba2475.js +1 -0
  150. package/dist/diagram-OA4YK3LP-587273f4.js +1 -0
  151. package/dist/diagram-OA4YK3LP-6cbfc7a5.js +1 -0
  152. package/dist/diagram-WEI45ONY-0241463f.js +1 -0
  153. package/dist/diagram-WEI45ONY-dd634033.js +1 -0
  154. package/dist/diagram-WEI45ONY-e002e844.js +1 -0
  155. package/dist/ebnfDiagram-CCIWWBDH-20ac4ba3.js +1 -0
  156. package/dist/ebnfDiagram-CCIWWBDH-e9974165.js +1 -0
  157. package/dist/ebnfDiagram-CCIWWBDH-ead44055.js +1 -0
  158. package/dist/erDiagram-Q63AITRT-1febb8fc.js +1 -0
  159. package/dist/erDiagram-Q63AITRT-4ea4b93d.js +1 -0
  160. package/dist/erDiagram-Q63AITRT-bcb00855.js +1 -0
  161. package/dist/eventmodeling-45OFAUF4-a82f1f18.js +1 -0
  162. package/dist/eventmodeling-45OFAUF4-dcf667fc.js +1 -0
  163. package/dist/features/bubble/components/Bubble.d.ts.map +1 -0
  164. package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -0
  165. package/dist/features/bubble/components/Tooltip.d.ts.map +1 -0
  166. package/dist/features/bubble/components/index.d.ts.map +1 -0
  167. package/dist/features/bubble/index.d.ts.map +1 -0
  168. package/dist/features/bubble/types.d.ts.map +1 -0
  169. package/dist/features/full/components/Full.d.ts.map +1 -0
  170. package/dist/features/full/components/index.d.ts.map +1 -0
  171. package/dist/features/full/index.d.ts.map +1 -0
  172. package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
  173. package/dist/features/popup/components/Popup.d.ts.map +1 -0
  174. package/dist/features/popup/components/index.d.ts.map +1 -0
  175. package/dist/features/popup/index.d.ts.map +1 -0
  176. package/dist/features/popup/types.d.ts.map +1 -0
  177. package/dist/flowDiagram-23GEKE2U-14ee2b3c.js +1 -0
  178. package/dist/flowDiagram-23GEKE2U-7ab9c2e4.js +1 -0
  179. package/dist/flowDiagram-23GEKE2U-f7309569.js +1 -0
  180. package/dist/ganttDiagram-NO4QXBWP-249a167d.js +1 -0
  181. package/dist/ganttDiagram-NO4QXBWP-bd530d12.js +1 -0
  182. package/dist/ganttDiagram-NO4QXBWP-e5e495d6.js +1 -0
  183. package/dist/gitGraph-TEB2WS4Q-72ba3362.js +1 -0
  184. package/dist/gitGraph-TEB2WS4Q-d07b15b3.js +1 -0
  185. package/dist/gitGraphDiagram-IHSO6WYX-2964ff91.js +1 -0
  186. package/dist/gitGraphDiagram-IHSO6WYX-4d9324ad.js +1 -0
  187. package/dist/gitGraphDiagram-IHSO6WYX-97bf868b.js +1 -0
  188. package/dist/graph-0df36b9d.js +1 -0
  189. package/dist/graph-c6801890.js +1 -0
  190. package/dist/index.d.ts.map +1 -0
  191. package/dist/info-DKCQHKI2-d8e8a901.js +1 -0
  192. package/dist/info-DKCQHKI2-dd69502c.js +1 -0
  193. package/dist/infoDiagram-FWYZ7A6U-1267309e.js +1 -0
  194. package/dist/infoDiagram-FWYZ7A6U-5b9d28af.js +1 -0
  195. package/dist/infoDiagram-FWYZ7A6U-cc33afe4.js +1 -0
  196. package/dist/init-b029a625.js +1 -0
  197. package/dist/init-cf76ae07.js +1 -0
  198. package/dist/ishikawaDiagram-FXEZZL3T-3f0977e8.js +1 -0
  199. package/dist/ishikawaDiagram-FXEZZL3T-89c1b2f4.js +1 -0
  200. package/dist/ishikawaDiagram-FXEZZL3T-9fef4653.js +1 -0
  201. package/dist/journeyDiagram-5HDEW3XC-563a68ff.js +1 -0
  202. package/dist/journeyDiagram-5HDEW3XC-c8c8d701.js +1 -0
  203. package/dist/journeyDiagram-5HDEW3XC-e6c5e84b.js +1 -0
  204. package/dist/kanban-definition-HUTT4EX6-3719e367.js +1 -0
  205. package/dist/kanban-definition-HUTT4EX6-7bc0cd1e.js +1 -0
  206. package/dist/kanban-definition-HUTT4EX6-d8b002e3.js +1 -0
  207. package/dist/katex-67456a45.js +1 -0
  208. package/dist/katex-b134d23c.js +1 -0
  209. package/dist/layout-e44354bf.js +1 -0
  210. package/dist/layout-ff5d33a1.js +1 -0
  211. package/dist/linear-7b1a23f3.js +1 -0
  212. package/dist/linear-d7ad6d25.js +1 -0
  213. package/dist/linear-e5c99c88.js +1 -0
  214. package/dist/map-05f0ff95.js +1 -0
  215. package/dist/map-d3292a5b.js +1 -0
  216. package/dist/mermaid-parser.core-6df0beec.js +1 -0
  217. package/dist/mermaid-parser.core-d8d1c2b9.js +1 -0
  218. package/dist/mermaid.core-2d237a1e.js +1 -0
  219. package/dist/mermaid.core-70d5aead.js +1 -0
  220. package/dist/mermaid.core-8797d6a9.js +1 -0
  221. package/dist/mindmap-definition-LN4V7U3C-04a12a88.js +1 -0
  222. package/dist/mindmap-definition-LN4V7U3C-86a890ce.js +1 -0
  223. package/dist/mindmap-definition-LN4V7U3C-f495948c.js +1 -0
  224. package/dist/ordinal-221e41d7.js +1 -0
  225. package/dist/ordinal-4a51e46c.js +1 -0
  226. package/dist/packet-7NZHBO7P-b4586e10.js +1 -0
  227. package/dist/packet-7NZHBO7P-f62750ff.js +1 -0
  228. package/dist/pegDiagram-2B236MQR-234fe6d1.js +1 -0
  229. package/dist/pegDiagram-2B236MQR-2826e278.js +1 -0
  230. package/dist/pegDiagram-2B236MQR-64eeb662.js +1 -0
  231. package/dist/pie-RZYD4A2V-106ba3d7.js +1 -0
  232. package/dist/pie-RZYD4A2V-752eda00.js +1 -0
  233. package/dist/pieDiagram-ENE6RG2P-0c3b09b8.js +1 -0
  234. package/dist/pieDiagram-ENE6RG2P-3fb5f734.js +1 -0
  235. package/dist/pieDiagram-ENE6RG2P-af928526.js +1 -0
  236. package/dist/quadrantDiagram-ABIIQ3AL-1a55c0f5.js +1 -0
  237. package/dist/quadrantDiagram-ABIIQ3AL-3d15c26d.js +1 -0
  238. package/dist/quadrantDiagram-ABIIQ3AL-9110fa9c.js +1 -0
  239. package/dist/queries/sendMessageQuery.d.ts.map +1 -0
  240. package/dist/radar-I7S5WNFK-53bde9ff.js +1 -0
  241. package/dist/radar-I7S5WNFK-87e8c5ba.js +1 -0
  242. package/dist/railroad-3IZDKUUU-99427b9f.js +1 -0
  243. package/dist/railroad-3IZDKUUU-9e29587d.js +1 -0
  244. package/dist/railroad-abnf-AHOZXSZD-1d11cb5b.js +1 -0
  245. package/dist/railroad-abnf-AHOZXSZD-c27db0bc.js +1 -0
  246. package/dist/railroad-ebnf-EBAXGLYW-38dff87c.js +1 -0
  247. package/dist/railroad-ebnf-EBAXGLYW-6bb5de0c.js +1 -0
  248. package/dist/railroad-peg-LSFZ7HO6-c9f0aa71.js +1 -0
  249. package/dist/railroad-peg-LSFZ7HO6-efcb0a43.js +1 -0
  250. package/dist/railroadDiagram-RFXS5EU6-14373a87.js +1 -0
  251. package/dist/railroadDiagram-RFXS5EU6-ec9e696e.js +1 -0
  252. package/dist/railroadDiagram-RFXS5EU6-effa5611.js +1 -0
  253. package/dist/register.d.ts.map +1 -0
  254. package/dist/requirementDiagram-TGXJPOKE-3d199581.js +1 -0
  255. package/dist/requirementDiagram-TGXJPOKE-5a337f1a.js +1 -0
  256. package/dist/requirementDiagram-TGXJPOKE-a7960859.js +1 -0
  257. package/dist/sankeyDiagram-HTMAVEWB-209eac30.js +1 -0
  258. package/dist/sankeyDiagram-HTMAVEWB-3c852fda.js +1 -0
  259. package/dist/sankeyDiagram-HTMAVEWB-46aa1eb1.js +1 -0
  260. package/dist/sequenceDiagram-DBY2YBRQ-4121f7c2.js +1 -0
  261. package/dist/sequenceDiagram-DBY2YBRQ-7bad18e4.js +1 -0
  262. package/dist/sequenceDiagram-DBY2YBRQ-af96f48e.js +1 -0
  263. package/dist/sizeCapture-X5ZJPWSS-13826306.js +1 -0
  264. package/dist/sizeCapture-X5ZJPWSS-32e2eec7.js +1 -0
  265. package/dist/sizeCapture-X5ZJPWSS-a078176f.js +1 -0
  266. package/dist/stateDiagram-2N3HPSRC-527374a2.js +1 -0
  267. package/dist/stateDiagram-2N3HPSRC-8047e124.js +1 -0
  268. package/dist/stateDiagram-2N3HPSRC-ba344b5d.js +1 -0
  269. package/dist/stateDiagram-v2-6OUMAXLB-7580bf69.js +1 -0
  270. package/dist/stateDiagram-v2-6OUMAXLB-d4c58fd3.js +1 -0
  271. package/dist/stateDiagram-v2-6OUMAXLB-e5921044.js +1 -0
  272. package/dist/store/constant.d.ts.map +1 -0
  273. package/dist/swimlanes-5IMT3BWC-5834b232.js +1 -0
  274. package/dist/swimlanes-5IMT3BWC-791a3547.js +1 -0
  275. package/dist/swimlanes-5IMT3BWC-db2c593a.js +1 -0
  276. package/dist/swimlanesDiagram-G3AALYLV-36c30eec.js +1 -0
  277. package/dist/swimlanesDiagram-G3AALYLV-89220ddd.js +1 -0
  278. package/dist/swimlanesDiagram-G3AALYLV-b621330d.js +1 -0
  279. package/dist/timeline-definition-FHXFAJF6-0482a67a.js +1 -0
  280. package/dist/timeline-definition-FHXFAJF6-1d165a67.js +1 -0
  281. package/dist/timeline-definition-FHXFAJF6-f9600b97.js +1 -0
  282. package/dist/treeView-QDETBFTQ-0ecf20cd.js +1 -0
  283. package/dist/treeView-QDETBFTQ-96ed8e2f.js +1 -0
  284. package/dist/treemap-6X3UGDF4-0a7f19ca.js +1 -0
  285. package/dist/treemap-6X3UGDF4-9f498e0c.js +1 -0
  286. package/dist/types/chart.d.ts.map +1 -0
  287. package/dist/types.d.ts +1 -0
  288. package/dist/types.d.ts.map +1 -0
  289. package/dist/utils/audioRecording.d.ts.map +1 -0
  290. package/dist/utils/chartInstanceManager.d.ts.map +1 -0
  291. package/dist/utils/chartTagParser.d.ts.map +1 -0
  292. package/dist/utils/chatInputHistory.d.ts.map +1 -0
  293. package/dist/utils/chatStreamHelper.d.ts.map +1 -0
  294. package/dist/utils/index.d.ts.map +1 -0
  295. package/dist/utils/isMobileSignal.d.ts.map +1 -0
  296. package/dist/utils/transcriptApi.d.ts.map +1 -0
  297. package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
  298. package/dist/vennDiagram-L72KCM5P-05176193.js +1 -0
  299. package/dist/vennDiagram-L72KCM5P-25a48393.js +1 -0
  300. package/dist/vennDiagram-L72KCM5P-28cffef7.js +1 -0
  301. package/dist/wardley-OPB4EBWU-08c5f013.js +1 -0
  302. package/dist/wardley-OPB4EBWU-9803a1d9.js +1 -0
  303. package/dist/wardleyDiagram-EHGQE667-052e6de9.js +1 -0
  304. package/dist/wardleyDiagram-EHGQE667-6a614fd9.js +1 -0
  305. package/dist/wardleyDiagram-EHGQE667-d11fe904.js +1 -0
  306. package/dist/web-25bb78b9.js +1 -0
  307. package/dist/web-753300e1.js +1 -0
  308. package/dist/web-c3ed22c4.js +1 -0
  309. package/dist/web.d.ts.map +1 -0
  310. package/dist/web.js +1 -1
  311. package/dist/window.d.ts.map +1 -0
  312. package/dist/xychartDiagram-FW5EYKEG-43118b83.js +1 -0
  313. package/dist/xychartDiagram-FW5EYKEG-d77187fe.js +1 -0
  314. package/dist/xychartDiagram-FW5EYKEG-f2fac492.js +1 -0
  315. package/docs/chart-rendering-implementation-plan.md +565 -0
  316. package/package.json +86 -86
  317. package/server.js +477 -477
@@ -0,0 +1 @@
1
+ var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{g as n}from"./chunk-XXDRQBXY-f923ffed.js";import{s as i}from"./chunk-VR4S4FIN-9df47127.js";import{_ as s,l as o,d as r,E as a,i as c,y as l,A as h,B as d,G as g,Y as p,$ as u,a0 as y}from"./mermaid.core-70d5aead.js";import"./web-25bb78b9.js";let m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));let f=new Uint8Array(16);function E(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){var i=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(f);if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}(i)}(e,t,n):crypto.randomUUID()}var _=(()=>{var e=s(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,13],n=[1,12],i=[1,15],o=[1,16],r=[1,20],a=[1,19],c=[1,26],l=[1,24],h=[1,25],d=[6,7,11],g=[1,6,13,15,16,19,22],p=[1,33],u=[1,34],y=[1,6,7,11,13,15,16,19,22],m={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:s(function(e,t,n,i,s,o,r){var a=o.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:m=[1,4]},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:m},{6:t,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},e(f=[6,7,8],[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:t,12:21,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},{6:t,9:22,12:11,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},{6:c,7:l,10:23,11:h},e(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:a}),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,23]),e(d,[2,24]),e(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:c,7:l,10:32,11:h},{1:[2,7],6:t,12:21,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},e(g,[2,14],{7:p,11:u}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(d,[2,15]),e(d,[2,16]),e(d,[2,17]),{20:[1,35]},{21:[1,36]},e(g,[2,13],{7:p,11:u}),e(y,[2,11]),e(y,[2,12]),{21:[1,37]},e(d,[2,25]),e(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:s(function(e,t){var n;if(!t.recoverable)throw(n=new Error(e)).hash=t,n;this.trace(e)},"parseError"),parse:s(function(e){var t,n=this,i=[0],o=[],r=[null],a=[],c=this.table,l="",h=0,d=0,g=a.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(u.yy[t]=this.yy[t]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc,m=(a.push(y),p.options&&p.options.ranges);function f(){var e=o.pop()||p.lex()||1;return"number"!=typeof e&&(e instanceof Array&&(e=(o=e).pop()),e=n.symbols_[e]||e),e}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(e){i.length=i.length-2*e,r.length=r.length-e,a.length=a.length-e},"popStack"),s(f,"lex");for(var E,_,k,b,S,N,L={};;){if(_=i[i.length-1],void 0===(k=this.defaultActions[_]||(null==E&&(E=f()),c[_]&&c[_][E]))||!k.length||!k[0]){var x,D=[];for(b in c[_])this.terminals_[b]&&2<b&&D.push("'"+this.terminals_[b]+"'");x=p.showPosition?"Parse error on line "+(h+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==E?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(x,{text:p.match,token:this.terminals_[E]||E,line:p.yylineno,loc:y,expected:D})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+E);switch(k[0]){case 1:i.push(E),r.push(p.yytext),a.push(p.yylloc),i.push(k[1]),E=null,d=p.yyleng,l=p.yytext,h=p.yylineno,y=p.yylloc;break;case 2:if(S=this.productions_[k[1]][1],L.$=r[r.length-S],L._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(L._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(N=this.performAction.apply(L,[l,d,h,u.yy,k[1],r,a].concat(g))))return N;S&&(i=i.slice(0,-1*S*2),r=r.slice(0,-1*S),a=a.slice(0,-1*S)),i.push(this.productions_[k[1]][0]),r.push(L.$),a.push(L._$),N=c[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0},"parse")},f={EOF:1,parseError:s(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:s(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:s(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g),i=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,e=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===e.length?this.yylloc.first_column:0)+e[e.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(e){this.unput(this.match.slice(e))},"less"),pastInput:s(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:s(function(e,t){var n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(i.yylloc.range=this.yylloc.range.slice(0)),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,n,i,s=this._currentRules(),o=0;o<s.length;o++)if((n=this._input.match(this.rules[s[o]]))&&(!t||n[0].length>t[0].length))if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[o])))return e;if(!this._backtrack)return!1;t=!1}else if(!this.options.flex)break;return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){return this.next()||this.lex()},"lex"),begin:s(function(e){this.conditionStack.push(e)},"begin"),popState:s(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:s(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:s(function(e){this.begin(e)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};function E(){this.yy={}}return m.lexer=f,s(E,"Parser"),new((E.prototype=m).Parser=E)})(),k=_.parser=_,b={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},S=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=b,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{s(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;0<=t;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return 0<this.nodes.length?this.nodes[0]:null}addNode(e,t,n,i){o.info("addNode",e,t,n,i);let s=!1;0===this.nodes.length?(this.baseLevel=e,e=0,s=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,s=!1);var l=r();let h=l.mindmap?.padding??a.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2}if(t={id:this.count++,nodeId:c(t,l),level:e,descr:c(n,l),type:i,children:[],width:l.mindmap?.maxNodeWidth??a.mindmap.maxNodeWidth,padding:h,isRoot:s},n=this.getParent(e))n.children.push(t);else if(!s)throw new Error(`There can be only one root. No parent could be found for ("${t.descr}")`);this.nodes.push(t)}getType(e,t){switch(o.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){var t,n;e&&(t=r(),n=this.nodes[this.nodes.length-1],e.icon&&(n.icon=c(e.icon,t)),e.class)&&(n.class=c(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(var[n,i]of e.children.entries())n=0===e.level?n%11:t,this.assignSections(i,n)}flattenNodes(e,t){let n=r();var i=["mindmap-node"],o=(i=(!0===e.isRoot?i.push("section-root","section--1"):void 0!==e.section&&i.push("section-"+e.section),e.class&&i.push(e.class),i.join(" ")),s(e=>{var t=(n.theme?.toLowerCase()??"").includes("redux");switch(e){case b.CIRCLE:return"mindmapCircle";case b.RECT:return"rect";case b.ROUNDED_RECT:return"rounded";case b.CLOUD:return"cloud";case b.BANG:return"bang";case b.HEXAGON:return"hexagon";case b.DEFAULT:return t?"rounded":"defaultMindmapNode";default:return"rect"}},"getShapeFromType"));o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(o),e.children)for(var a of e.children)this.flattenNodes(a,t)}generateEdges(e,t){if(e.children){var n,i=r();for(n of e.children){let o="edge";void 0!==n.section&&(o+=" section-edge-"+n.section);var s=(o+=" edge-depth-"+(s=e.level+1),{id:`edge_${e.id}_`+n.id,start:e.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:i.look,classes:o,depth:e.level,section:n.section});t.push(s),this.generateEdges(n,t)}}}getData(){var e=this.getMindmap(),t=i=r();if(void 0!==l().layout||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};o.debug("getData: mindmapRoot",e,i),this.assignSections(e);var n,i=[],s=[],a=(this.flattenNodes(e,i),this.generateEdges(e,s),o.debug(`getData: processed ${i.length} nodes and ${s.length} edges`),new Map);for(n of i)a.set(n.id,{shape:n.shape,width:n.width,height:n.height,padding:n.padding});return{nodes:i,edges:s,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(a),type:"mindmap",diagramId:"mindmap-"+E()}}getLogger(){return o}},N=s(async(e,t,s,r)=>{o.debug("Rendering mindmap diagram\n"+e);var c=(e=r.db).getData(),l=n(t,c.config.securityLevel);(r=(c.type=r.type,c.layoutAlgorithm=h(c.config.layout,{fallback:"cose-bilkent"}),c.diagramId=t,e.getMindmap()))&&(c.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)}),await d(c,l),t=g().themeVariables,({useGradient:e,gradientStart:r,gradientStop:t}=t),e&&r&&t&&(e=l.attr("id"),(e=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("stop").attr("offset","0%").attr("stop-color",r).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",t).attr("stop-opacity",1)),i(l,c.config.mindmap?.padding??a.mindmap.padding,"mindmapDiagram",c.config.mindmap?.useMaxWidth??a.mindmap.useMaxWidth))},"draw"),L={draw:N},x=s(e=>{var{theme:t,look:n}=e;let i="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],p(e["lineColor"+t])?e["lineColor"+t]=u(e["lineColor"+t],20):e["lineColor"+t]=y(e["lineColor"+t],20);for(let o=0;o<e.THEME_COLOR_LIMIT;o++){var s=""+("neo"===n?Math.max(10-2*(o-1),2):17-3*o);i+=`\n .section-${o-1} rect, .section-${o-1} path, .section-${o-1} circle, .section-${o-1} polygon, .section-${o-1} path {\n fill: ${e["cScale"+o]};\n }\n .section-${o-1} text {\n fill: ${e["cScaleLabel"+o]};\n }\n .section-${o-1} span {\n color: ${e["cScaleLabel"+o]};\n }\n .node-icon-${o-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+o]};\n }\n .section-edge-${o-1}{\n stroke: ${e["cScale"+o]};\n }\n .edge-depth-${o-1}{\n stroke-width: ${s};\n }\n .section-${o-1} line {\n stroke: ${e["cScaleInv"+o]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n [data-look="neo"].mindmap-node.section-${o-1} rect, [data-look="neo"].mindmap-node.section-${o-1} path, [data-look="neo"].mindmap-node.section-${o-1} circle, [data-look="neo"].mindmap-node.section-${o-1} polygon {\n fill: ${"redux"===t||"redux-dark"===t||"neutral"===t?e.mainBkg:e["cScale"+o]};\n stroke: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScale"+o]};\n stroke-width: ${e.strokeWidth??2}px;\n }\n [data-look="neo"].section-edge-${o-1}{\n stroke: ${t?.includes("redux")||"neo-dark"===t?e.nodeBorder:e["cScale"+o]};\n }\n [data-look="neo"].mindmap-node.section-${o-1} text {\n fill: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:o)]};\n }\n `}return i},"genSections"),D=s((e,t,n)=>{let i="";for(let s=0;s<e;s++)i+=`\n [data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {\n stroke: url(${t}-gradient);\n fill: ${n};\n }\n .section-${s-1} line {\n stroke-width: 0;\n }`;return i},"genGradient"),v=s(e=>{var t=e.theme,n=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return`\n .edge {\n stroke-width: 3;\n }\n ${x(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${t?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n [data-look="neo"].mindmap-node {\n filter: ${i};\n }\n [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {\n fill: ${t?.includes("redux")?e.mainBkg:e.git0};\n }\n [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n fill: ${t?.includes("redux")?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:0)]};\n }\n ${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):""}\n`},"getStyles"),I=v,T={get db(){return new S},renderer:L,parser:k,styles:I};export{T as diagram};
@@ -0,0 +1 @@
1
+ var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{g as n}from"./chunk-XXDRQBXY-de00e988.js";import{s as i}from"./chunk-VR4S4FIN-5feb7571.js";import{_ as s,l as o,d as r,E as a,i as c,y as l,A as h,B as d,G as g,Y as p,$ as u,a0 as y}from"./mermaid.core-2d237a1e.js";import"./web-753300e1.js";let m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));let f=new Uint8Array(16);function E(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){var i=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(f);if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}(i)}(e,t,n):crypto.randomUUID()}var _=(()=>{var e=s(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,13],n=[1,12],i=[1,15],o=[1,16],r=[1,20],a=[1,19],c=[1,26],l=[1,24],h=[1,25],d=[6,7,11],g=[1,6,13,15,16,19,22],p=[1,33],u=[1,34],y=[1,6,7,11,13,15,16,19,22],m={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:s(function(e,t,n,i,s,o,r){var a=o.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:m=[1,4]},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:m},{6:t,7:[1,10],9:9,12:11,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},e(f=[6,7,8],[2,3]),{1:[2,2]},e(f,[2,4]),e(f,[2,5]),{1:[2,6],6:t,12:21,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},{6:t,9:22,12:11,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},{6:c,7:l,10:23,11:h},e(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:a}),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),e(d,[2,21]),e(d,[2,23]),e(d,[2,24]),e(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:c,7:l,10:32,11:h},{1:[2,7],6:t,12:21,13:n,14:14,15:i,16:o,17:17,18:18,19:r,22:a},e(g,[2,14],{7:p,11:u}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(d,[2,15]),e(d,[2,16]),e(d,[2,17]),{20:[1,35]},{21:[1,36]},e(g,[2,13],{7:p,11:u}),e(y,[2,11]),e(y,[2,12]),{21:[1,37]},e(d,[2,25]),e(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:s(function(e,t){var n;if(!t.recoverable)throw(n=new Error(e)).hash=t,n;this.trace(e)},"parseError"),parse:s(function(e){var t,n=this,i=[0],o=[],r=[null],a=[],c=this.table,l="",h=0,d=0,g=a.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(u.yy[t]=this.yy[t]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc,m=(a.push(y),p.options&&p.options.ranges);function f(){var e=o.pop()||p.lex()||1;return"number"!=typeof e&&(e instanceof Array&&(e=(o=e).pop()),e=n.symbols_[e]||e),e}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(e){i.length=i.length-2*e,r.length=r.length-e,a.length=a.length-e},"popStack"),s(f,"lex");for(var E,_,k,b,S,N,L={};;){if(_=i[i.length-1],void 0===(k=this.defaultActions[_]||(null==E&&(E=f()),c[_]&&c[_][E]))||!k.length||!k[0]){var x,D=[];for(b in c[_])this.terminals_[b]&&2<b&&D.push("'"+this.terminals_[b]+"'");x=p.showPosition?"Parse error on line "+(h+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[E]||E)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==E?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(x,{text:p.match,token:this.terminals_[E]||E,line:p.yylineno,loc:y,expected:D})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+E);switch(k[0]){case 1:i.push(E),r.push(p.yytext),a.push(p.yylloc),i.push(k[1]),E=null,d=p.yyleng,l=p.yytext,h=p.yylineno,y=p.yylloc;break;case 2:if(S=this.productions_[k[1]][1],L.$=r[r.length-S],L._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(L._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(N=this.performAction.apply(L,[l,d,h,u.yy,k[1],r,a].concat(g))))return N;S&&(i=i.slice(0,-1*S*2),r=r.slice(0,-1*S),a=a.slice(0,-1*S)),i.push(this.productions_[k[1]][0]),r.push(L.$),a.push(L._$),N=c[i[i.length-2]][i[i.length-1]],i.push(N);break;case 3:return!0}}return!0},"parse")},f={EOF:1,parseError:s(function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},"parseError"),setInput:s(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:s(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g),i=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,e=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===e.length?this.yylloc.first_column:0)+e[e.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(e){this.unput(this.match.slice(e))},"less"),pastInput:s(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:s(function(e,t){var n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(i.yylloc.range=this.yylloc.range.slice(0)),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,n,i,s=this._currentRules(),o=0;o<s.length;o++)if((n=this._input.match(this.rules[s[o]]))&&(!t||n[0].length>t[0].length))if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[o])))return e;if(!this._backtrack)return!1;t=!1}else if(!this.options.flex)break;return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){return this.next()||this.lex()},"lex"),begin:s(function(e){this.conditionStack.push(e)},"begin"),popState:s(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:s(function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"},"topState"),pushState:s(function(e){this.begin(e)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};function E(){this.yy={}}return m.lexer=f,s(E,"Parser"),new((E.prototype=m).Parser=E)})(),k=_.parser=_,b={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},S=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=b,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{s(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;0<=t;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return 0<this.nodes.length?this.nodes[0]:null}addNode(e,t,n,i){o.info("addNode",e,t,n,i);let s=!1;0===this.nodes.length?(this.baseLevel=e,e=0,s=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,s=!1);var l=r();let h=l.mindmap?.padding??a.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2}if(t={id:this.count++,nodeId:c(t,l),level:e,descr:c(n,l),type:i,children:[],width:l.mindmap?.maxNodeWidth??a.mindmap.maxNodeWidth,padding:h,isRoot:s},n=this.getParent(e))n.children.push(t);else if(!s)throw new Error(`There can be only one root. No parent could be found for ("${t.descr}")`);this.nodes.push(t)}getType(e,t){switch(o.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){var t,n;e&&(t=r(),n=this.nodes[this.nodes.length-1],e.icon&&(n.icon=c(e.icon,t)),e.class)&&(n.class=c(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(var[n,i]of e.children.entries())n=0===e.level?n%11:t,this.assignSections(i,n)}flattenNodes(e,t){let n=r();var i=["mindmap-node"],o=(i=(!0===e.isRoot?i.push("section-root","section--1"):void 0!==e.section&&i.push("section-"+e.section),e.class&&i.push(e.class),i.join(" ")),s(e=>{var t=(n.theme?.toLowerCase()??"").includes("redux");switch(e){case b.CIRCLE:return"mindmapCircle";case b.RECT:return"rect";case b.ROUNDED_RECT:return"rounded";case b.CLOUD:return"cloud";case b.BANG:return"bang";case b.HEXAGON:return"hexagon";case b.DEFAULT:return t?"rounded":"defaultMindmapNode";default:return"rect"}},"getShapeFromType"));o={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(o),e.children)for(var a of e.children)this.flattenNodes(a,t)}generateEdges(e,t){if(e.children){var n,i=r();for(n of e.children){let o="edge";void 0!==n.section&&(o+=" section-edge-"+n.section);var s=(o+=" edge-depth-"+(s=e.level+1),{id:`edge_${e.id}_`+n.id,start:e.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:i.look,classes:o,depth:e.level,section:n.section});t.push(s),this.generateEdges(n,t)}}}getData(){var e=this.getMindmap(),t=i=r();if(void 0!==l().layout||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};o.debug("getData: mindmapRoot",e,i),this.assignSections(e);var n,i=[],s=[],a=(this.flattenNodes(e,i),this.generateEdges(e,s),o.debug(`getData: processed ${i.length} nodes and ${s.length} edges`),new Map);for(n of i)a.set(n.id,{shape:n.shape,width:n.width,height:n.height,padding:n.padding});return{nodes:i,edges:s,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(a),type:"mindmap",diagramId:"mindmap-"+E()}}getLogger(){return o}},N=s(async(e,t,s,r)=>{o.debug("Rendering mindmap diagram\n"+e);var c=(e=r.db).getData(),l=n(t,c.config.securityLevel);(r=(c.type=r.type,c.layoutAlgorithm=h(c.config.layout,{fallback:"cose-bilkent"}),c.diagramId=t,e.getMindmap()))&&(c.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)}),await d(c,l),t=g().themeVariables,({useGradient:e,gradientStart:r,gradientStop:t}=t),e&&r&&t&&(e=l.attr("id"),(e=l.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("stop").attr("offset","0%").attr("stop-color",r).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",t).attr("stop-opacity",1)),i(l,c.config.mindmap?.padding??a.mindmap.padding,"mindmapDiagram",c.config.mindmap?.useMaxWidth??a.mindmap.useMaxWidth))},"draw"),L={draw:N},x=s(e=>{var{theme:t,look:n}=e;let i="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],p(e["lineColor"+t])?e["lineColor"+t]=u(e["lineColor"+t],20):e["lineColor"+t]=y(e["lineColor"+t],20);for(let o=0;o<e.THEME_COLOR_LIMIT;o++){var s=""+("neo"===n?Math.max(10-2*(o-1),2):17-3*o);i+=`\n .section-${o-1} rect, .section-${o-1} path, .section-${o-1} circle, .section-${o-1} polygon, .section-${o-1} path {\n fill: ${e["cScale"+o]};\n }\n .section-${o-1} text {\n fill: ${e["cScaleLabel"+o]};\n }\n .section-${o-1} span {\n color: ${e["cScaleLabel"+o]};\n }\n .node-icon-${o-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+o]};\n }\n .section-edge-${o-1}{\n stroke: ${e["cScale"+o]};\n }\n .edge-depth-${o-1}{\n stroke-width: ${s};\n }\n .section-${o-1} line {\n stroke: ${e["cScaleInv"+o]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n [data-look="neo"].mindmap-node.section-${o-1} rect, [data-look="neo"].mindmap-node.section-${o-1} path, [data-look="neo"].mindmap-node.section-${o-1} circle, [data-look="neo"].mindmap-node.section-${o-1} polygon {\n fill: ${"redux"===t||"redux-dark"===t||"neutral"===t?e.mainBkg:e["cScale"+o]};\n stroke: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScale"+o]};\n stroke-width: ${e.strokeWidth??2}px;\n }\n [data-look="neo"].section-edge-${o-1}{\n stroke: ${t?.includes("redux")||"neo-dark"===t?e.nodeBorder:e["cScale"+o]};\n }\n [data-look="neo"].mindmap-node.section-${o-1} text {\n fill: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:o)]};\n }\n `}return i},"genSections"),D=s((e,t,n)=>{let i="";for(let s=0;s<e;s++)i+=`\n [data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {\n stroke: url(${t}-gradient);\n fill: ${n};\n }\n .section-${s-1} line {\n stroke-width: 0;\n }`;return i},"genGradient"),v=s(e=>{var t=e.theme,n=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return`\n .edge {\n stroke-width: 3;\n }\n ${x(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${t?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n [data-look="neo"].mindmap-node {\n filter: ${i};\n }\n [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {\n fill: ${t?.includes("redux")?e.mainBkg:e.git0};\n }\n [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n fill: ${t?.includes("redux")?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:0)]};\n }\n ${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):""}\n`},"getStyles"),I=v,T={get db(){return new S},renderer:L,parser:k,styles:I};export{T as diagram};
@@ -0,0 +1 @@
1
+ import{g as e}from"./chunk-XXDRQBXY-3c9d8bf9.js";import{s as t}from"./chunk-VR4S4FIN-c4f2681d.js";import{_ as n,l as i,d as s,E as o,i as r,y as a,A as c,B as l,G as h,Y as d,$ as g,a0 as p}from"./mermaid.core-8797d6a9.js";import"./web-c3ed22c4.js";const u=[];for(let e=0;e<256;++e)u.push((e+256).toString(16).slice(1));const y=new Uint8Array(16);function m(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){var i=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(y);if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()}(i)}(e,t,n):crypto.randomUUID()}var f=function(){var e=n((function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n}),"o"),t=[1,4],i=[1,13],s=[1,12],o=[1,15],r=[1,16],a=[1,20],c=[1,19],l=[6,7,8],h=[1,26],d=[1,24],g=[1,25],p=[6,7,11],u=[1,6,13,15,16,19,22],y=[1,33],m=[1,34],f=[1,6,7,11,13,15,16,19,22];t={trace:n((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:n((function(e,t,n,i,s,o,r){var a=o.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:i,7:[1,10],9:9,12:11,13:s,14:14,15:o,16:r,17:17,18:18,19:a,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:i,12:21,13:s,14:14,15:o,16:r,17:17,18:18,19:a,22:c},{6:i,9:22,12:11,13:s,14:14,15:o,16:r,17:17,18:18,19:a,22:c},{6:h,7:d,10:23,11:g},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:a,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:d,10:32,11:g},{1:[2,7],6:i,12:21,13:s,14:14,15:o,16:r,17:17,18:18,19:a,22:c},e(u,[2,14],{7:y,11:m}),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(u,[2,13],{7:y,11:m}),e(f,[2,11]),e(f,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:n((function(e,t){var n;if(!t.recoverable)throw(n=new Error(e)).hash=t,n;this.trace(e)}),"parseError"),parse:n((function(e){var t,i=this,s=[0],o=[],r=[null],a=[],c=this.table,l="",h=0,d=0,g=a.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,t)&&(u.yy[t]=this.yy[t]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc,m=(a.push(y),p.options&&p.options.ranges);function f(){var e=o.pop()||p.lex()||1;return"number"!=typeof e&&(e instanceof Array&&(e=(o=e).pop()),e=i.symbols_[e]||e),e}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,n((function(e){s.length=s.length-2*e,r.length=r.length-e,a.length=a.length-e}),"popStack"),n(f,"lex");for(var _,E,k,b,S,N,L={};;){if(E=s[s.length-1],void 0===(k=this.defaultActions[E]||(null==_&&(_=f()),c[E]&&c[E][_]))||!k.length||!k[0]){var x,D=[];for(b in c[E])this.terminals_[b]&&2<b&&D.push("'"+this.terminals_[b]+"'");x=p.showPosition?"Parse error on line "+(h+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(x,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:y,expected:D})}if(k[0]instanceof Array&&1<k.length)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(k[0]){case 1:s.push(_),r.push(p.yytext),a.push(p.yylloc),s.push(k[1]),_=null,d=p.yyleng,l=p.yytext,h=p.yylineno,y=p.yylloc;break;case 2:if(S=this.productions_[k[1]][1],L.$=r[r.length-S],L._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(L._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(N=this.performAction.apply(L,[l,d,h,u.yy,k[1],r,a].concat(g))))return N;S&&(s=s.slice(0,-1*S*2),r=r.slice(0,-1*S),a=a.slice(0,-1*S)),s.push(this.productions_[k[1]][0]),r.push(L.$),a.push(L._$),N=c[s[s.length-2]][s[s.length-1]],s.push(N);break;case 3:return!0}}return!0}),"parse")},l={EOF:1,parseError:n((function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)}),"parseError"),setInput:n((function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:n((function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e}),"input"),unput:n((function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g),i=(this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t,e=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===e.length?this.yylloc.first_column:0)+e[e.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this}),"unput"),more:n((function(){return this._more=!0,this}),"more"),reject:n((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})}),"reject"),less:n((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:n((function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(20<e.length?"...":"")+e.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:n((function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(20<e.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:n((function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:n((function(e,t){var n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(i.yylloc.range=this.yylloc.range.slice(0)),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in i)this[s]=i[s];return!1}),"test_match"),next:n((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,n,i,s=this._currentRules(),o=0;o<s.length;o++)if((n=this._input.match(this.rules[s[o]]))&&(!t||n[0].length>t[0].length))if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[o])))return e;if(!this._backtrack)return!1;t=!1}else if(!this.options.flex)break;return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:n((function(){return this.next()||this.lex()}),"lex"),begin:n((function(e){this.conditionStack.push(e)}),"begin"),popState:n((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:n((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:n((function(e){return 0<=(e=this.conditionStack.length-1-Math.abs(e||0))?this.conditionStack[e]:"INITIAL"}),"topState"),pushState:n((function(e){this.begin(e)}),"pushState"),stateStackSize:n((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:n((function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}}),"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};function _(){this.yy={}}return t.lexer=l,n(_,"Parser"),new((_.prototype=t).Parser=_)}(),_=f.parser=f,E={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},k=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=E,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{n(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;0<=t;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return 0<this.nodes.length?this.nodes[0]:null}addNode(e,t,n,a){i.info("addNode",e,t,n,a);let c=!1;0===this.nodes.length?(this.baseLevel=e,e=0,c=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,c=!1);var l=s();let h=l.mindmap?.padding??o.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2}if(t={id:this.count++,nodeId:r(t,l),level:e,descr:r(n,l),type:a,children:[],width:l.mindmap?.maxNodeWidth??o.mindmap.maxNodeWidth,padding:h,isRoot:c},n=this.getParent(e))n.children.push(t);else if(!c)throw new Error(`There can be only one root. No parent could be found for ("${t.descr}")`);this.nodes.push(t)}getType(e,t){switch(i.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){var t,n;e&&(t=s(),n=this.nodes[this.nodes.length-1],e.icon&&(n.icon=r(e.icon,t)),e.class)&&(n.class=r(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(var[n,i]of e.children.entries())n=0===e.level?n%11:t,this.assignSections(i,n)}flattenNodes(e,t){const i=s();var o=["mindmap-node"],r=(o=(!0===e.isRoot?o.push("section-root","section--1"):void 0!==e.section&&o.push("section-"+e.section),e.class&&o.push(e.class),o.join(" ")),n((e=>{var t=(i.theme?.toLowerCase()??"").includes("redux");switch(e){case E.CIRCLE:return"mindmapCircle";case E.RECT:return"rect";case E.ROUNDED_RECT:return"rounded";case E.CLOUD:return"cloud";case E.BANG:return"bang";case E.HEXAGON:return"hexagon";case E.DEFAULT:return t?"rounded":"defaultMindmapNode";default:return"rect"}}),"getShapeFromType"));r={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:r(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:o,cssStyles:[],look:i.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(r),e.children)for(const n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(e.children){var n=s();for(const s of e.children){let o="edge";void 0!==s.section&&(o+=" section-edge-"+s.section);var i=(o+=" edge-depth-"+(i=e.level+1),{id:`edge_${e.id}_`+s.id,start:e.id.toString(),end:s.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:o,depth:e.level,section:s.section});t.push(i),this.generateEdges(s,t)}}}getData(){var e=this.getMindmap(),t=n=s();if(void 0!==a().layout||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};i.debug("getData: mindmapRoot",e,n),this.assignSections(e);var n=[],o=[],r=(this.flattenNodes(e,n),this.generateEdges(e,o),i.debug(`getData: processed ${n.length} nodes and ${o.length} edges`),new Map);for(const e of n)r.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:n,edges:o,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(r),type:"mindmap",diagramId:"mindmap-"+m()}}getLogger(){return i}},b={draw:n((async(n,s,r,a)=>{i.debug("Rendering mindmap diagram\n"+n);var d=(n=a.db).getData(),g=e(s,d.config.securityLevel);(a=(d.type=a.type,d.layoutAlgorithm=c(d.config.layout,{fallback:"cose-bilkent"}),d.diagramId=s,n.getMindmap()))&&(d.nodes.forEach((e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)})),await l(d,g),s=h().themeVariables,({useGradient:n,gradientStart:a,gradientStop:s}=s),n&&a&&s&&(n=g.attr("id"),(n=g.append("defs").append("linearGradient").attr("id",n+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%")).append("stop").attr("offset","0%").attr("stop-color",a).attr("stop-opacity",1),n.append("stop").attr("offset","100%").attr("stop-color",s).attr("stop-opacity",1)),t(g,d.config.mindmap?.padding??o.mindmap.padding,"mindmapDiagram",d.config.mindmap?.useMaxWidth??o.mindmap.useMaxWidth))}),"draw")},S=n((e=>{var{theme:t,look:n}=e;let i="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],d(e["lineColor"+t])?e["lineColor"+t]=g(e["lineColor"+t],20):e["lineColor"+t]=p(e["lineColor"+t],20);for(let o=0;o<e.THEME_COLOR_LIMIT;o++){var s=""+("neo"===n?Math.max(10-2*(o-1),2):17-3*o);i+=`\n .section-${o-1} rect, .section-${o-1} path, .section-${o-1} circle, .section-${o-1} polygon, .section-${o-1} path {\n fill: ${e["cScale"+o]};\n }\n .section-${o-1} text {\n fill: ${e["cScaleLabel"+o]};\n }\n .section-${o-1} span {\n color: ${e["cScaleLabel"+o]};\n }\n .node-icon-${o-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+o]};\n }\n .section-edge-${o-1}{\n stroke: ${e["cScale"+o]};\n }\n .edge-depth-${o-1}{\n stroke-width: ${s};\n }\n .section-${o-1} line {\n stroke: ${e["cScaleInv"+o]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n [data-look="neo"].mindmap-node.section-${o-1} rect, [data-look="neo"].mindmap-node.section-${o-1} path, [data-look="neo"].mindmap-node.section-${o-1} circle, [data-look="neo"].mindmap-node.section-${o-1} polygon {\n fill: ${"redux"===t||"redux-dark"===t||"neutral"===t?e.mainBkg:e["cScale"+o]};\n stroke: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScale"+o]};\n stroke-width: ${e.strokeWidth??2}px;\n }\n [data-look="neo"].section-edge-${o-1}{\n stroke: ${t?.includes("redux")||"neo-dark"===t?e.nodeBorder:e["cScale"+o]};\n }\n [data-look="neo"].mindmap-node.section-${o-1} text {\n fill: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:o)]};\n }\n `}return i}),"genSections"),N=n(((e,t,n)=>{let i="";for(let s=0;s<e;s++)i+=`\n [data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {\n stroke: url(${t}-gradient);\n fill: ${n};\n }\n .section-${s-1} line {\n stroke-width: 0;\n }`;return i}),"genGradient"),L={get db(){return new k},renderer:b,parser:_,styles:n((e=>{var t=e.theme,n=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return`\n .edge {\n stroke-width: 3;\n }\n ${S(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${t?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n [data-look="neo"].mindmap-node {\n filter: ${i};\n }\n [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {\n fill: ${t?.includes("redux")?e.mainBkg:e.git0};\n }\n [data-look="neo"].mindmap-node.section-root .text-inner-tspan {\n fill: ${t?.includes("redux")?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:0)]};\n }\n ${e.useGradient&&n&&e.mainBkg?N(e.THEME_COLOR_LIMIT,n,e.mainBkg):""}\n`}),"getStyles")};export{L as diagram};
@@ -0,0 +1 @@
1
+ import{i as e}from"./init-cf76ae07.js";class t extends Map{constructor(e,t=r){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){return t=t(n),e.has(t)?e.get(t):(e.set(t,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){return t=t(n),e.has(t)&&(n=e.get(t),e.delete(t)),n}(this,e))}}function n({_intern:e,_key:t},n){return t=t(n),e.has(t)?e.get(t):n}function r(e){return null!==e&&"object"==typeof e?e.valueOf():e}const u=Symbol("implicit");function s(){var n=new t,r=[],i=[],o=u;function f(e){let t=n.get(e);if(void 0===t){if(o!==u)return o;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return f.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(const t of e)n.has(t)||n.set(t,r.push(t)-1);return f},f.range=function(e){return arguments.length?(i=Array.from(e),f):i.slice()},f.unknown=function(e){return arguments.length?(o=e,f):o},f.copy=function(){return s(r,i).unknown(o)},e.apply(f,arguments),f}export{s as o};
@@ -0,0 +1 @@
1
+ var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{i as n}from"./init-b029a625.js";class r extends Map{constructor(e,t=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){return t=t(n),e.has(t)?e.get(t):(e.set(t,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){return t=t(n),e.has(t)&&(n=e.get(t),e.delete(t)),n}(this,e))}}function i({_intern:e,_key:t},n){return t=t(n),e.has(t)?e.get(t):n}function s(e){return null!==e&&"object"==typeof e?e.valueOf():e}let u=Symbol("implicit");function l(){var e=new r,t=[],i=[],s=u;function o(n){let r=e.get(n);if(void 0===r){if(s!==u)return s;e.set(n,r=t.push(n)-1)}return i[r%i.length]}return o.domain=function(n){if(!arguments.length)return t.slice();for(var i of(t=[],e=new r,n))e.has(i)||e.set(i,t.push(i)-1);return o},o.range=function(e){return arguments.length?(i=Array.from(e),o):i.slice()},o.unknown=function(e){return arguments.length?(s=e,o):s},o.copy=function(){return l(t,i).unknown(s)},n.apply(o,arguments),o}export{l as o};
@@ -0,0 +1 @@
1
+ ((e,a)=>{e&&!e.getElementById("livereloadscript")&&((a=e.createElement("script")).async=1,a.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",a.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(a))})(self.document);export{P as PacketModule,a as createPacketServices}from"./mermaid-parser.core-6df0beec.js";
@@ -0,0 +1 @@
1
+ export{P as PacketModule,a as createPacketServices}from"./mermaid-parser.core-d8d1c2b9.js";
@@ -0,0 +1 @@
1
+ var e,r;(e=self.document)&&!e.getElementById("livereloadscript")&&((r=e.createElement("script")).async=1,r.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",r.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(r));import{d as t,r as a,g as s}from"./chunk-MOJQB5TN-47f0392f.js";import{p as n}from"./chunk-JWPE2WC7-15a55950.js";import{_ as o,l as i}from"./mermaid.core-70d5aead.js";import{q as l,M as p}from"./mermaid-parser.core-6df0beec.js";import"./web-25bb78b9.js";var m=l().RailroadPeg.parser.LangiumParser,u=o(e=>1===(e=e.alternatives.map(c)).length?e[0]:{type:"choice",alternatives:e},"transformOrderedChoice"),c=o(e=>1===(e=e.elements.map(d)).length?e[0]:{type:"sequence",elements:e},"transformSequence"),d=o(e=>{var r=y(e.suffix);return e.operator?{type:"special",text:"&"===e.operator?"&"+f(r):"!"+f(r)}:r},"transformPrefix"),f=o(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),y=o(e=>{var r=g(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error("Unsupported PEG suffix operator: "+e.operator)}},"transformSuffix"),g=o(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return u(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error("Unsupported PEG primary node: "+e.$type)}},"transformPrimary"),h=o(e=>({name:e.name,definition:u(e.definition)}),"transformRule"),P=o(e=>{n(e,t),e.title&&t.setTitle(e.title),e.rules.map(e=>t.addRule(h(e)))},"populateDb"),v={parse:o(e=>{if(t.clear(),i.debug("[PEG Parser] Starting Langium parse"),0<(e=m.parse(e)).lexerErrors.length||0<e.parserErrors.length)throw new p(e);e=e.value,i.debug("[PEG Parser] Parsed rules:",e.rules.length),P(e),i.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:t}},E={parser:v,db:t,renderer:a,styles:s};export{E as diagram};
@@ -0,0 +1 @@
1
+ import{d as e,r,g as t}from"./chunk-MOJQB5TN-ea88675c.js";import{p as a}from"./chunk-JWPE2WC7-e2521b1e.js";import{_ as n,l as s}from"./mermaid.core-8797d6a9.js";import{q as o,M as i}from"./mermaid-parser.core-d8d1c2b9.js";import"./web-c3ed22c4.js";var p=o().RailroadPeg.parser.LangiumParser,m=n((e=>1===(e=e.alternatives.map(l)).length?e[0]:{type:"choice",alternatives:e}),"transformOrderedChoice"),l=n((e=>1===(e=e.elements.map(u)).length?e[0]:{type:"sequence",elements:e}),"transformSequence"),u=n((e=>{var r=d(e.suffix);return e.operator?{type:"special",text:"&"===e.operator?"&"+c(r):"!"+c(r)}:r}),"transformPrefix"),c=n((e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}}),"nodeToLabel"),d=n((e=>{var r=f(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error("Unsupported PEG suffix operator: "+e.operator)}}),"transformSuffix"),f=n((e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return m(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error("Unsupported PEG primary node: "+e.$type)}}),"transformPrimary"),y=n((e=>({name:e.name,definition:m(e.definition)})),"transformRule"),P=n((r=>{a(r,e),r.title&&e.setTitle(r.title),r.rules.map((r=>e.addRule(y(r))))}),"populateDb"),g={parser:{parse:n((r=>{if(e.clear(),s.debug("[PEG Parser] Starting Langium parse"),0<(r=p.parse(r)).lexerErrors.length||0<r.parserErrors.length)throw new i(r);r=r.value,s.debug("[PEG Parser] Parsed rules:",r.rules.length),P(r),s.debug("[PEG Parser] Parse complete")}),"parse"),parser:{yy:e}},db:e,renderer:r,styles:t};export{g as diagram};
@@ -0,0 +1 @@
1
+ var e,r;(e=self.document)&&!e.getElementById("livereloadscript")&&((r=e.createElement("script")).async=1,r.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",r.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(r));import{d as t,r as a,g as s}from"./chunk-MOJQB5TN-5cc2e61b.js";import{p as n}from"./chunk-JWPE2WC7-84faee3d.js";import{_ as o,l as i}from"./mermaid.core-2d237a1e.js";import{q as l,M as p}from"./mermaid-parser.core-6df0beec.js";import"./web-753300e1.js";var m=l().RailroadPeg.parser.LangiumParser,u=o(e=>1===(e=e.alternatives.map(c)).length?e[0]:{type:"choice",alternatives:e},"transformOrderedChoice"),c=o(e=>1===(e=e.elements.map(d)).length?e[0]:{type:"sequence",elements:e},"transformSequence"),d=o(e=>{var r=y(e.suffix);return e.operator?{type:"special",text:"&"===e.operator?"&"+f(r):"!"+f(r)}:r},"transformPrefix"),f=o(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),y=o(e=>{var r=g(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error("Unsupported PEG suffix operator: "+e.operator)}},"transformSuffix"),g=o(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return u(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error("Unsupported PEG primary node: "+e.$type)}},"transformPrimary"),h=o(e=>({name:e.name,definition:u(e.definition)}),"transformRule"),P=o(e=>{n(e,t),e.title&&t.setTitle(e.title),e.rules.map(e=>t.addRule(h(e)))},"populateDb"),v={parse:o(e=>{if(t.clear(),i.debug("[PEG Parser] Starting Langium parse"),0<(e=m.parse(e)).lexerErrors.length||0<e.parserErrors.length)throw new p(e);e=e.value,i.debug("[PEG Parser] Parsed rules:",e.rules.length),P(e),i.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:t}},E={parser:v,db:t,renderer:a,styles:s};export{E as diagram};
@@ -0,0 +1 @@
1
+ export{b as PieModule,d as createPieServices}from"./mermaid-parser.core-d8d1c2b9.js";
@@ -0,0 +1 @@
1
+ var e,r;(e=self.document)&&!e.getElementById("livereloadscript")&&((r=e.createElement("script")).async=1,r.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",r.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(r));export{b as PieModule,d as createPieServices}from"./mermaid-parser.core-6df0beec.js";
@@ -0,0 +1 @@
1
+ var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{p as a}from"./chunk-JWPE2WC7-84faee3d.js";import{ac as n,a4 as r,b8 as i,E as l,n as s,o,s as c,g as p,c as d,b as u,_ as h,l as g,v as f,d as m,F as v,K as y,Q as w,k as x}from"./mermaid.core-2d237a1e.js";import{v as b}from"./mermaid-parser.core-6df0beec.js";import{d as S}from"./arc-90e71e7e.js";import{o as $}from"./ordinal-4a51e46c.js";import"./web-753300e1.js";import"./init-b029a625.js";function C(e,t){return t<e?-1:e<t?1:e<=t?0:NaN}function A(e){return e}var T=l.pie,k={sections:new Map,showData:!1,config:T},D=k.sections,M=k.showData,j=structuredClone(T),O=h(()=>structuredClone(j),"getConfig"),z=h(()=>{D=new Map,M=k.showData,f()},"clear"),E=h(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),g.debug(`added new section: ${e}, with value: `+t))},"addSection"),F=h(()=>D,"getSections"),R=h(e=>{M=e},"setShowData"),W={getConfig:O,clear:z,setDiagramTitle:s,getDiagramTitle:o,setAccTitle:c,getAccTitle:p,setAccDescription:d,getAccDescription:u,addSection:E,getSections:F,setShowData:R,getShowData:h(()=>M,"getShowData")},B=h((e,t)=>{a(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),H={parse:h(async e=>{e=await b("pie",e),g.debug(e),B(e,W)},"parse")},N=h(e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieCircle.highlighted{\n scale: 1.05;\n opacity: 1;\n }\n .pieCircle.highlightedOnHover:hover{\n transition-duration: 250ms;\n scale: 1.05;\n opacity: 1;\n }\n .pieOuterCircle{\n stroke: ${e.pieOuterStrokeColor};\n stroke-width: ${e.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`,"getStyles"),P=h(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0);return e=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>1<=e.value/t*100),function(){var e=A,t=C,a=null,l=n(0),s=n(r),o=n(0);function c(n){for(var c,p,d,u=(n=i(n)).length,h=0,g=new Array(u),f=new Array(u),m=+l.apply(this,arguments),v=Math.min(r,Math.max(-r,s.apply(this,arguments)-m)),y=Math.min(Math.abs(v)/u,o.apply(this,arguments)),w=y*(v<0?-1:1),x=0;x<u;++x)0<(d=f[g[x]=x]=+e(n[x],x,n))&&(h+=d);for(null!=t?g.sort(function(e,a){return t(f[e],f[a])}):null!=a&&g.sort(function(e,t){return a(n[e],n[t])}),x=0,c=h?(v-u*w)/h:0;x<u;++x,m=p)p=g[x],d=f[p],f[p]={data:n[p],index:x,value:d,startAngle:m,endAngle:p=m+(0<d?d*c:0)+w,padAngle:y};return f}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,a=null,c):t},c.sort=function(e){return arguments.length?(a=e,t=null,c):a},c.startAngle=function(e){return arguments.length?(l="function"==typeof e?e:n(+e),c):l},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:n(+e),c):s},c.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:n(+e),c):o},c}().value(e=>e.value).sort(null)(e)},"createPieArcs"),L=h((e,t,a,n)=>{g.debug("rendering pie chart\n"+e);let r=n.db;e=m();let i=v(r.getConfig(),e.pie);e=((t=(n=y(t)).append("g")).attr("transform","translate(225,225)"),e).themeVariables;var[l]=w(e.pieOuterStrokeWidth),s=(l??=2,i.legendPosition),o=i.textPosition,c=0<i.donutHole&&i.donutHole<=.9?i.donutHole:0;let p=Math.min(450,450)/2-40;c=S().innerRadius(c*p).outerRadius(p);let d=S().innerRadius(p*o).outerRadius(p*o);var u=t.append("g"),l=(o=(u.append("circle").attr("cx",0).attr("cy",0).attr("r",p+l/2).attr("class","pieOuterCircle"),r.getSections()),P(o));e=[e.pie1,e.pie2,e.pie3,e.pie4,e.pie5,e.pie6,e.pie7,e.pie8,e.pie9,e.pie10,e.pie11,e.pie12];let h=0;o.forEach(e=>{h+=e}),l=l.filter(e=>"0"!==(e.data.value/h*100).toFixed(0));let f=$(e).domain([...o.keys()]);u.selectAll("mySlices").data(l).enter().append("path").attr("d",c).attr("fill",e=>f(e.data.label)).attr("class",e=>{let t="pieCircle";return"hover"===i.highlightSlice?t+=" highlightedOnHover":i.highlightSlice===e.data.label&&(t+=" highlighted"),t}),u.selectAll("mySlices").data(l).enter().append("text").text(e=>(e.data.value/h*100).toFixed(0)+"%").attr("transform",e=>"translate("+d.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),e=t.append("text").text(r.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");let b=[...o.entries()].map(([e,t])=>({label:e,value:t}));var C=t.selectAll(".legend").data(b).enter().append("g").attr("class","legend");C.append("rect").attr("width",18).attr("height",18).style("fill",e=>f(e.label)).style("stroke",e=>f(e.label)),C.append("text").attr("x",22).attr("y",14).text(e=>r.getShowData()?e.label+` [${e.value}]`:e.label);let A=Math.max(...C.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),T=450,k=490,D=22*b.length;switch(s){case"center":C.attr("transform",(e,t)=>{var a=22*b.length/2;return"translate("+(-A/2-22)+","+(22*t-a)+")"});break;case"top":T+=D,C.attr("transform",(e,t)=>`translate(${-A/2-22}, ${22*t-p})`),u.attr("transform",()=>`translate(0, ${22+D})`);break;case"bottom":T+=D,C.attr("transform",(e,t)=>"translate("+(-A/2-22)+","+(22*t-(-p-22))+")");break;case"left":k+=22+A,C.attr("transform",(e,t)=>{var a=22*b.length/2;return"translate("+(-p-22)+","+(22*t-a)+")"}),u.attr("transform",()=>`translate(${A+18+4}, 0)`);break;default:k+=22+A,C.attr("transform",(e,t)=>"translate(216,"+(22*t-22*b.length/2)+")")}l=225+(c=e.node()?.getBoundingClientRect().width??0)/2,o=Math.min(0,225-c/2),t=Math.max(k,l)-o,n.attr("viewBox",o+` 0 ${t} `+T),x(n,T,t,i.useMaxWidth)},"draw"),V={parser:H,db:W,renderer:{draw:L},styles:N};export{V as diagram};
@@ -0,0 +1 @@
1
+ var e,t;(e=self.document)&&!e.getElementById("livereloadscript")&&((t=e.createElement("script")).async=1,t.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",t.id="livereloadscript",e.getElementsByTagName("head")[0].appendChild(t));import{p as a}from"./chunk-JWPE2WC7-15a55950.js";import{ac as n,a4 as r,b8 as i,E as l,n as s,o,s as c,g as p,c as d,b as u,_ as h,l as g,v as f,d as m,F as v,K as y,Q as w,k as x}from"./mermaid.core-70d5aead.js";import{v as b}from"./mermaid-parser.core-6df0beec.js";import{d as S}from"./arc-24dd4755.js";import{o as $}from"./ordinal-4a51e46c.js";import"./web-25bb78b9.js";import"./init-b029a625.js";function C(e,t){return t<e?-1:e<t?1:e<=t?0:NaN}function A(e){return e}var T=l.pie,k={sections:new Map,showData:!1,config:T},D=k.sections,M=k.showData,j=structuredClone(T),O=h(()=>structuredClone(j),"getConfig"),z=h(()=>{D=new Map,M=k.showData,f()},"clear"),E=h(({label:e,value:t})=>{if(t<0)throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),g.debug(`added new section: ${e}, with value: `+t))},"addSection"),F=h(()=>D,"getSections"),R=h(e=>{M=e},"setShowData"),W={getConfig:O,clear:z,setDiagramTitle:s,getDiagramTitle:o,setAccTitle:c,getAccTitle:p,setAccDescription:d,getAccDescription:u,addSection:E,getSections:F,setShowData:R,getShowData:h(()=>M,"getShowData")},B=h((e,t)=>{a(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),H={parse:h(async e=>{e=await b("pie",e),g.debug(e),B(e,W)},"parse")},N=h(e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieCircle.highlighted{\n scale: 1.05;\n opacity: 1;\n }\n .pieCircle.highlightedOnHover:hover{\n transition-duration: 250ms;\n scale: 1.05;\n opacity: 1;\n }\n .pieOuterCircle{\n stroke: ${e.pieOuterStrokeColor};\n stroke-width: ${e.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`,"getStyles"),P=h(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0);return e=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>1<=e.value/t*100),function(){var e=A,t=C,a=null,l=n(0),s=n(r),o=n(0);function c(n){for(var c,p,d,u=(n=i(n)).length,h=0,g=new Array(u),f=new Array(u),m=+l.apply(this,arguments),v=Math.min(r,Math.max(-r,s.apply(this,arguments)-m)),y=Math.min(Math.abs(v)/u,o.apply(this,arguments)),w=y*(v<0?-1:1),x=0;x<u;++x)0<(d=f[g[x]=x]=+e(n[x],x,n))&&(h+=d);for(null!=t?g.sort(function(e,a){return t(f[e],f[a])}):null!=a&&g.sort(function(e,t){return a(n[e],n[t])}),x=0,c=h?(v-u*w)/h:0;x<u;++x,m=p)p=g[x],d=f[p],f[p]={data:n[p],index:x,value:d,startAngle:m,endAngle:p=m+(0<d?d*c:0)+w,padAngle:y};return f}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:n(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,a=null,c):t},c.sort=function(e){return arguments.length?(a=e,t=null,c):a},c.startAngle=function(e){return arguments.length?(l="function"==typeof e?e:n(+e),c):l},c.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:n(+e),c):s},c.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:n(+e),c):o},c}().value(e=>e.value).sort(null)(e)},"createPieArcs"),L=h((e,t,a,n)=>{g.debug("rendering pie chart\n"+e);let r=n.db;e=m();let i=v(r.getConfig(),e.pie);e=((t=(n=y(t)).append("g")).attr("transform","translate(225,225)"),e).themeVariables;var[l]=w(e.pieOuterStrokeWidth),s=(l??=2,i.legendPosition),o=i.textPosition,c=0<i.donutHole&&i.donutHole<=.9?i.donutHole:0;let p=Math.min(450,450)/2-40;c=S().innerRadius(c*p).outerRadius(p);let d=S().innerRadius(p*o).outerRadius(p*o);var u=t.append("g"),l=(o=(u.append("circle").attr("cx",0).attr("cy",0).attr("r",p+l/2).attr("class","pieOuterCircle"),r.getSections()),P(o));e=[e.pie1,e.pie2,e.pie3,e.pie4,e.pie5,e.pie6,e.pie7,e.pie8,e.pie9,e.pie10,e.pie11,e.pie12];let h=0;o.forEach(e=>{h+=e}),l=l.filter(e=>"0"!==(e.data.value/h*100).toFixed(0));let f=$(e).domain([...o.keys()]);u.selectAll("mySlices").data(l).enter().append("path").attr("d",c).attr("fill",e=>f(e.data.label)).attr("class",e=>{let t="pieCircle";return"hover"===i.highlightSlice?t+=" highlightedOnHover":i.highlightSlice===e.data.label&&(t+=" highlighted"),t}),u.selectAll("mySlices").data(l).enter().append("text").text(e=>(e.data.value/h*100).toFixed(0)+"%").attr("transform",e=>"translate("+d.centroid(e)+")").style("text-anchor","middle").attr("class","slice"),e=t.append("text").text(r.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");let b=[...o.entries()].map(([e,t])=>({label:e,value:t}));var C=t.selectAll(".legend").data(b).enter().append("g").attr("class","legend");C.append("rect").attr("width",18).attr("height",18).style("fill",e=>f(e.label)).style("stroke",e=>f(e.label)),C.append("text").attr("x",22).attr("y",14).text(e=>r.getShowData()?e.label+` [${e.value}]`:e.label);let A=Math.max(...C.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),T=450,k=490,D=22*b.length;switch(s){case"center":C.attr("transform",(e,t)=>{var a=22*b.length/2;return"translate("+(-A/2-22)+","+(22*t-a)+")"});break;case"top":T+=D,C.attr("transform",(e,t)=>`translate(${-A/2-22}, ${22*t-p})`),u.attr("transform",()=>`translate(0, ${22+D})`);break;case"bottom":T+=D,C.attr("transform",(e,t)=>"translate("+(-A/2-22)+","+(22*t-(-p-22))+")");break;case"left":k+=22+A,C.attr("transform",(e,t)=>{var a=22*b.length/2;return"translate("+(-p-22)+","+(22*t-a)+")"}),u.attr("transform",()=>`translate(${A+18+4}, 0)`);break;default:k+=22+A,C.attr("transform",(e,t)=>"translate(216,"+(22*t-22*b.length/2)+")")}l=225+(c=e.node()?.getBoundingClientRect().width??0)/2,o=Math.min(0,225-c/2),t=Math.max(k,l)-o,n.attr("viewBox",o+` 0 ${t} `+T),x(n,T,t,i.useMaxWidth)},"draw"),V={parser:H,db:W,renderer:{draw:L},styles:N};export{V as diagram};
@@ -0,0 +1 @@
1
+ import{p as t}from"./chunk-JWPE2WC7-e2521b1e.js";import{ac as e,a4 as a,b8 as n,E as r,n as i,o as l,s as o,g as s,c,b as p,_ as d,l as u,v as h,d as g,F as f,K as m,Q as v,k as w}from"./mermaid.core-8797d6a9.js";import{v as x}from"./mermaid-parser.core-d8d1c2b9.js";import{d as y}from"./arc-5d6257cf.js";import{o as b}from"./ordinal-221e41d7.js";import"./web-c3ed22c4.js";import"./init-cf76ae07.js";function S(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}function $(t){return t}var C=r.pie,A={sections:new Map,showData:!1,config:C},k=A.sections,T=A.showData,D=structuredClone(C),M={getConfig:d((()=>structuredClone(D)),"getConfig"),clear:d((()=>{k=new Map,T=A.showData,h()}),"clear"),setDiagramTitle:i,getDiagramTitle:l,setAccTitle:o,getAccTitle:s,setAccDescription:c,getAccDescription:p,addSection:d((({label:t,value:e})=>{if(e<0)throw new Error(`"${t}" has invalid value: ${e}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);k.has(t)||(k.set(t,e),u.debug(`added new section: ${t}, with value: `+e))}),"addSection"),getSections:d((()=>k),"getSections"),setShowData:d((t=>{T=t}),"setShowData"),getShowData:d((()=>T),"getShowData")},O=d(((e,a)=>{t(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)}),"populateDb"),j={parse:d((async t=>{t=await x("pie",t),u.debug(t),O(t,M)}),"parse")},z=d((t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\n }\n .pieCircle.highlighted{\n scale: 1.05;\n opacity: 1;\n }\n .pieCircle.highlightedOnHover:hover{\n transition-duration: 250ms;\n scale: 1.05;\n opacity: 1;\n }\n .pieOuterCircle{\n stroke: ${t.pieOuterStrokeColor};\n stroke-width: ${t.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${t.pieTitleTextSize};\n fill: ${t.pieTitleTextColor};\n font-family: ${t.fontFamily};\n }\n .slice {\n font-family: ${t.fontFamily};\n fill: ${t.pieSectionTextColor};\n font-size:${t.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${t.pieLegendTextColor};\n font-family: ${t.fontFamily};\n font-size: ${t.pieLegendTextSize};\n }\n`),"getStyles"),F=d((t=>{const r=[...t.values()].reduce(((t,e)=>t+e),0);return t=[...t.entries()].map((([t,e])=>({label:t,value:e}))).filter((t=>1<=t.value/r*100)),function(){var t=$,r=S,i=null,l=e(0),o=e(a),s=e(0);function c(e){for(var c,p,d,u=(e=n(e)).length,h=0,g=new Array(u),f=new Array(u),m=+l.apply(this,arguments),v=Math.min(a,Math.max(-a,o.apply(this,arguments)-m)),w=Math.min(Math.abs(v)/u,s.apply(this,arguments)),x=w*(v<0?-1:1),y=0;y<u;++y)0<(d=f[g[y]=y]=+t(e[y],y,e))&&(h+=d);for(null!=r?g.sort((function(t,e){return r(f[t],f[e])})):null!=i&&g.sort((function(t,a){return i(e[t],e[a])})),y=0,c=h?(v-u*x)/h:0;y<u;++y,m=p)p=g[y],d=f[p],f[p]={data:e[p],index:y,value:d,startAngle:m,endAngle:p=m+(0<d?d*c:0)+x,padAngle:w};return f}return c.value=function(a){return arguments.length?(t="function"==typeof a?a:e(+a),c):t},c.sortValues=function(t){return arguments.length?(r=t,i=null,c):r},c.sort=function(t){return arguments.length?(i=t,r=null,c):i},c.startAngle=function(t){return arguments.length?(l="function"==typeof t?t:e(+t),c):l},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:e(+t),c):o},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:e(+t),c):s},c}().value((t=>t.value)).sort(null)(t)}),"createPieArcs"),R=d(((t,e,a,n)=>{u.debug("rendering pie chart\n"+t);const r=n.db;t=g();const i=f(r.getConfig(),t.pie);t=((e=(n=m(e)).append("g")).attr("transform","translate(225,225)"),t).themeVariables;var[l]=v(t.pieOuterStrokeWidth),o=(l??=2,i.legendPosition),s=i.textPosition,c=0<i.donutHole&&i.donutHole<=.9?i.donutHole:0;const p=Math.min(450,450)/2-40;c=y().innerRadius(c*p).outerRadius(p);const d=y().innerRadius(p*s).outerRadius(p*s);var h=e.append("g"),l=(s=(h.append("circle").attr("cx",0).attr("cy",0).attr("r",p+l/2).attr("class","pieOuterCircle"),r.getSections()),F(s));t=[t.pie1,t.pie2,t.pie3,t.pie4,t.pie5,t.pie6,t.pie7,t.pie8,t.pie9,t.pie10,t.pie11,t.pie12];let x=0;s.forEach((t=>{x+=t})),l=l.filter((t=>"0"!==(t.data.value/x*100).toFixed(0)));const S=b(t).domain([...s.keys()]);h.selectAll("mySlices").data(l).enter().append("path").attr("d",c).attr("fill",(t=>S(t.data.label))).attr("class",(t=>{let e="pieCircle";return"hover"===i.highlightSlice?e+=" highlightedOnHover":i.highlightSlice===t.data.label&&(e+=" highlighted"),e})),h.selectAll("mySlices").data(l).enter().append("text").text((t=>(t.data.value/x*100).toFixed(0)+"%")).attr("transform",(t=>"translate("+d.centroid(t)+")")).style("text-anchor","middle").attr("class","slice"),t=e.append("text").text(r.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");const $=[...s.entries()].map((([t,e])=>({label:t,value:e})));var C=e.selectAll(".legend").data($).enter().append("g").attr("class","legend");C.append("rect").attr("width",18).attr("height",18).style("fill",(t=>S(t.label))).style("stroke",(t=>S(t.label))),C.append("text").attr("x",22).attr("y",14).text((t=>r.getShowData()?`${t.label} [${t.value}]`:t.label));const A=Math.max(...C.selectAll("text").nodes().map((t=>t?.getBoundingClientRect().width??0)));let k=450,T=490;const D=22*$.length;switch(o){case"center":C.attr("transform",((t,e)=>{var a=22*$.length/2;return"translate("+(-A/2-22)+","+(22*e-a)+")"}));break;case"top":k+=D,C.attr("transform",((t,e)=>`translate(${-A/2-22}, ${22*e-p})`)),h.attr("transform",(()=>`translate(0, ${22+D})`));break;case"bottom":k+=D,C.attr("transform",((t,e)=>"translate("+(-A/2-22)+","+(22*e-(-p-22))+")"));break;case"left":T+=22+A,C.attr("transform",((t,e)=>{var a=22*$.length/2;return"translate("+(-p-22)+","+(22*e-a)+")"})),h.attr("transform",(()=>`translate(${A+18+4}, 0)`));break;default:T+=22+A,C.attr("transform",((t,e)=>"translate(216,"+(22*e-22*$.length/2)+")"))}l=225+(c=t.node()?.getBoundingClientRect().width??0)/2,s=Math.min(0,225-c/2),e=Math.max(T,l)-s,n.attr("viewBox",s+` 0 ${e} `+k),w(n,k,e,i.useMaxWidth)}),"draw"),W={parser:j,db:M,renderer:{draw:R},styles:z};export{W as diagram};
@@ -0,0 +1 @@
1
+ var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{_ as i,L as a,E as n,l as s,i as r,d as o,o as l,s as h,g as c,n as d,b as u,c as x,v as g,j as f,k as p}from"./mermaid.core-70d5aead.js";import{l as y}from"./linear-d7ad6d25.js";import"./web-25bb78b9.js";import"./init-b029a625.js";import"./defaultLocale-b4977250.js";var T=(()=>{var t=i(function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i},"o"),e=[1,5],a=[1,6],n=[1,7],s=[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],r=[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],o=[55,56,57],l=[2,36],h=[1,37],c=[1,36],d=[1,38],u=[1,35],x=[1,43],g=[1,41],f=[1,45],p=[1,14],y=[1,23],T=[1,18],m=[1,19],q=[1,20],A=[1,21],_=[1,22],b=[1,24],S=[1,25],k=[1,26],F=[1,27],P=[1,28],C=[1,29],v=[1,32],L=[1,33],E=[1,34],D=[1,39],z=[1,40],I=[1,42],w=[1,44],N=[1,63],B=[1,62],W=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],R=[1,66],$=[1,67],U=[1,68],Q=[1,69],O=[1,70],X=[1,71],H=[1,72],M=[1,73],Y=[1,74],j=[1,75],G=[1,76],K=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,91],J=[1,92],tt=[1,93],et=[1,100],it=[1,94],at=[1,97],nt=[1,95],st=[1,96],rt=[1,98],ot=[1,99],lt=[1,103],ht=[10,55,56,57],ct=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],dt={trace:i(function(){},"trace"),yy:{},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},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"},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]],performAction:i(function(t,e,i,a,n,s,r){var o=s.length-1;switch(n){case 23:case 68:this.$=s[o];break;case 24:case 69:this.$=s[o-1]+""+s[o];break;case 26:this.$=s[o-1]+s[o];break;case 27:this.$=[s[o].trim()];break;case 28:s[o-2].push(s[o].trim()),this.$=s[o-2];break;case 29:this.$=s[o-4],a.addClass(s[o-2],s[o]);break;case 37:this.$=[];break;case 42:this.$=s[o].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[o].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[o].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 47:a.addPoint(s[o-3],"",s[o-1],s[o],[]);break;case 48:a.addPoint(s[o-4],s[o-3],s[o-1],s[o],[]);break;case 49:a.addPoint(s[o-4],"",s[o-2],s[o-1],s[o]);break;case 50:a.addPoint(s[o-5],s[o-4],s[o-2],s[o-1],s[o]);break;case 51:a.setXAxisLeftText(s[o-2]),a.setXAxisRightText(s[o]);break;case 52:s[o-1].text+=" ⟶ ",a.setXAxisLeftText(s[o-1]);break;case 53:a.setXAxisLeftText(s[o]);break;case 54:a.setYAxisBottomText(s[o-2]),a.setYAxisTopText(s[o]);break;case 55:s[o-1].text+=" ⟶ ",a.setYAxisBottomText(s[o-1]);break;case 56:a.setYAxisBottomText(s[o]);break;case 57:a.setQuadrant1Text(s[o]);break;case 58:a.setQuadrant2Text(s[o]);break;case 59:a.setQuadrant3Text(s[o]);break;case 60:a.setQuadrant4Text(s[o]);break;case 64:case 66:this.$={text:s[o],type:"text"};break;case 65:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 67:this.$={text:s[o],type:"markdown"}}},"anonymous"),table:[{18:dt=[1,3],26:1,27:2,28:ut=[1,4],55:e,56:a,57:n},{1:[3]},{18:dt,26:8,27:2,28:ut,55:e,56:a,57:n},{18:dt,26:9,27:2,28:ut,55:e,56:a,57:n},t(s,[2,33],{29:10}),t(r,[2,61]),t(r,[2,62]),t(r,[2,63]),{1:[2,30]},{1:[2,31]},t(o,l,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:h,5:c,10:d,12:u,13:x,14:g,15:f,18:p,25:y,35:T,37:m,39:q,41:A,42:_,48:b,50:S,51:k,52:F,53:P,54:C,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),t(s,[2,34]),{27:46,55:e,56:a,57:n},t(o,[2,37]),t(o,l,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:h,5:c,10:d,12:u,13:x,14:g,15:f,18:p,25:y,35:T,37:m,39:q,41:A,42:_,48:b,50:S,51:k,52:F,53:P,54:C,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),t(o,[2,39]),t(o,[2,40]),t(o,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(o,[2,45]),t(o,[2,46]),{18:[1,51]},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:52,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:53,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:54,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:55,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:56,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:57,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,44:[1,58],47:[1,59],58:61,59:60,63:E,64:D,65:z,66:I,67:w},t(W,[2,64]),t(W,[2,66]),t(W,[2,67]),t(W,[2,70]),t(W,[2,71]),t(W,[2,72]),t(W,[2,73]),t(W,[2,74]),t(W,[2,75]),t(W,[2,76]),t(W,[2,77]),t(W,[2,78]),t(W,[2,79]),t(W,[2,80]),t(W,[2,81]),t(s,[2,35]),t(o,[2,38]),t(o,[2,42]),t(o,[2,43]),t(o,[2,44]),{3:65,4:R,5:$,6:U,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:K,21:64},t(o,[2,53],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,49:[1,78],63:E,64:D,65:z,66:I,67:w}),t(o,[2,56],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,49:[1,79],63:E,64:D,65:z,66:I,67:w}),t(o,[2,57],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,58],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,59],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,60],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),{45:[1,80]},{44:[1,81]},t(W,[2,65]),t(W,[2,82]),t(W,[2,83]),t(W,[2,84]),{3:83,4:R,5:$,6:U,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:K,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(o,[2,52],{58:31,43:84,4:h,5:c,10:d,12:u,13:x,14:g,15:f,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),t(o,[2,55],{58:31,43:85,4:h,5:c,10:d,12:u,13:x,14:g,15:f,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),{46:[1,86]},{45:[1,87]},{4:Z,5:J,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:89,23:88},t(V,[2,24]),t(o,[2,51],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,54],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,47],{22:89,16:90,23:101,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,102]},t(o,[2,29],{10:lt}),t(ht,[2,27],{16:104,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(ct,[2,25]),t(ct,[2,13]),t(ct,[2,14]),t(ct,[2,15]),t(ct,[2,16]),t(ct,[2,17]),t(ct,[2,18]),t(ct,[2,19]),t(ct,[2,20]),t(ct,[2,21]),t(ct,[2,22]),t(o,[2,49],{10:lt}),t(o,[2,48],{22:89,16:90,23:105,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:Z,5:J,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:106},t(ct,[2,26]),t(o,[2,50],{10:lt}),t(ht,[2,28],{16:104,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:i(function(t,e){var i;if(!e.recoverable)throw(i=new Error(t)).hash=e,i;this.trace(t)},"parseError"),parse:i(function(t){var e,a=this,n=[0],s=[],r=[null],o=[],l=this.table,h="",c=0,d=0,u=o.slice.call(arguments,1),x=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);x.setInput(t,g.yy),g.yy.lexer=x,g.yy.parser=this,void 0===x.yylloc&&(x.yylloc={});var f=x.yylloc,p=(o.push(f),x.options&&x.options.ranges);function y(){var t=s.pop()||x.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(s=t).pop()),t=a.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){n.length=n.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),i(y,"lex");for(var T,m,q,A,_,b,S={};;){if(m=n[n.length-1],void 0===(q=this.defaultActions[m]||(null==T&&(T=y()),l[m]&&l[m][T]))||!q.length||!q[0]){var k,F=[];for(A in l[m])this.terminals_[A]&&2<A&&F.push("'"+this.terminals_[A]+"'");k=x.showPosition?"Parse error on line "+(c+1)+":\n"+x.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(k,{text:x.match,token:this.terminals_[T]||T,line:x.yylineno,loc:f,expected:F})}if(q[0]instanceof Array&&1<q.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+T);switch(q[0]){case 1:n.push(T),r.push(x.yytext),o.push(x.yylloc),n.push(q[1]),T=null,d=x.yyleng,h=x.yytext,c=x.yylineno,f=x.yylloc;break;case 2:if(_=this.productions_[q[1]][1],S.$=r[r.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},p&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(b=this.performAction.apply(S,[h,d,c,g.yy,q[1],r,o].concat(u))))return b;_&&(n=n.slice(0,-1*_*2),r=r.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[q[1]][0]),r.push(S.$),o.push(S._$),b=l[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0},"parse")},ut={EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g),a=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===t.length?this.yylloc.first_column:0)+t[t.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(a.yylloc.range=this.yylloc.range.slice(0)),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,a,n=this._currentRules(),s=0;s<n.length;s++)if((i=this._input.match(this.rules[n[s]]))&&(!e||i[0].length>e[0].length))if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){return this.next()||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:i(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),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],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}}};function xt(){this.yy={}}return dt.lexer=ut,i(xt,"Parser"),new((xt.prototype=dt).Parser=xt)})(),m=T.parser=T,q=a(),A=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{i(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:n.quadrantChart?.chartWidth||500,chartWidth:n.quadrantChart?.chartHeight||500,titlePadding:n.quadrantChart?.titlePadding||10,titleFontSize:n.quadrantChart?.titleFontSize||20,quadrantPadding:n.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:n.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:n.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:n.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:n.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:n.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:n.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:n.quadrantChart?.pointTextPadding||5,pointLabelFontSize:n.quadrantChart?.pointLabelFontSize||12,pointRadius:n.quadrantChart?.pointRadius||5,xAxisPosition:n.quadrantChart?.xAxisPosition||"top",yAxisPosition:n.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:n.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:n.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:q.quadrant1Fill,quadrant2Fill:q.quadrant2Fill,quadrant3Fill:q.quadrant3Fill,quadrant4Fill:q.quadrant4Fill,quadrant1TextFill:q.quadrant1TextFill,quadrant2TextFill:q.quadrant2TextFill,quadrant3TextFill:q.quadrant3TextFill,quadrant4TextFill:q.quadrant4TextFill,quadrantPointFill:q.quadrantPointFill,quadrantPointTextFill:q.quadrantPointTextFill,quadrantXAxisTextFill:q.quadrantXAxisTextFill,quadrantYAxisTextFill:q.quadrantYAxisTextFill,quadrantTitleFill:q.quadrantTitleFill,quadrantInternalBorderStrokeFill:q.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:q.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,s.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){s.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){s.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){var n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s=(t={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},e=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,n={left:"left"===this.config.yAxisPosition&&i?e:0,right:"right"===this.config.yAxisPosition&&i?e:0},i=this.config.titleFontSize+2*this.config.titlePadding,e={top:a?i:0},a=this.config.quadrantPadding+n.left,i=this.config.quadrantPadding+t.top+e.top,this.config.chartWidth-2*this.config.quadrantPadding-n.left-n.right),r=this.config.chartHeight-2*this.config.quadrantPadding-t.top-t.bottom-e.top;return{xAxisSpace:t,yAxisSpace:n,titleSpace:e,quadrantSpace:{quadrantLeft:a,quadrantTop:i,quadrantWidth:s,quadrantHalfWidth:s/2,quadrantHeight:r,quadrantHalfHeight:r/2}}}getAxisLabels(t,e,i,a){var{quadrantSpace:a,titleSpace:n}=a,{quadrantHalfHeight:a,quadrantHeight:s,quadrantLeft:r,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:h}=a,c=Boolean(this.data.xAxisRightText),d=Boolean(this.data.yAxisTopText),u=[];return this.data.xAxisLeftText&&e&&u.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:r+(c?o/2:0),y:"top"===t?this.config.xAxisLabelPadding+n.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:c?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&u.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:r+o+(c?o/2:0),y:"top"===t?this.config.xAxisLabelPadding+n.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:c?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&u.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+r+h+this.config.quadrantPadding,y:l+s-(d?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&u.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+r+h+this.config.quadrantPadding,y:l+a-(d?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),u}getQuadrants(t){t=t.quadrantSpace;var e,{quadrantHalfHeight:t,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:n}=t,i=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:n,width:a,height:t,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:n,width:a,height:t,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:n+t,width:a,height:t,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:n+t,width:a,height:t,fill:this.themeConfig.quadrant4Fill}];for(e of i)e.text.x=e.x+e.width/2,0===this.data.points.length?(e.text.y=e.y+e.height/2,e.text.horizontalPos="middle"):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos="top");return i}getQuadrantPoints(t){t=t.quadrantSpace;var{quadrantHeight:t,quadrantLeft:e,quadrantTop:i,quadrantWidth:a}=t;let n=y().domain([0,1]).range([e,a+e]),s=y().domain([0,1]).range([t+i,i]);return this.data.points.map(t=>{var e;return e=((e=this.classes.get(t.className))&&(t={...e,...t}),{x:n(t.x),y:s(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:n(t.x),y:s(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"})})}getBorders(t){var e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantHalfHeight:t,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s,quadrantWidth:r}=(t=t.quadrantSpace,t);return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s,x2:a+r+e,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+r,y1:s+e,x2:a+r,y2:s+i-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s+i,x2:a+r+e,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+e,x2:a,y2:s+i-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+n,y1:s+e,x2:a+n,y2:s+i-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:s+t,x2:a+r-e,y2:s+t}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){var t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=0<this.data.points.length?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},_=class extends Error{static{i(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid `+i),this.name="InvalidStyleError"}};function b(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function S(t){return!/^\d+$/.test(t)}function k(t){return!/^\d+px$/.test(t)}function F(t){return r(t.trim(),o())}i(b,"validateHexCode"),i(S,"validateNumber"),i(k,"validateSizeInPixels"),i(F,"textSanitizer");var P=new A;function C(t){P.setData({quadrant1Text:F(t.text)})}function v(t){P.setData({quadrant2Text:F(t.text)})}function L(t){P.setData({quadrant3Text:F(t.text)})}function E(t){P.setData({quadrant4Text:F(t.text)})}function D(t){P.setData({xAxisLeftText:F(t.text)})}function z(t){P.setData({xAxisRightText:F(t.text)})}function I(t){P.setData({yAxisTopText:F(t.text)})}function w(t){P.setData({yAxisBottomText:F(t.text)})}function N(t){var e,i={};for(e of t){var[a,n]=e.trim().split(/\s*:\s*/);if("radius"===a){if(S(n))throw new _(a,n,"number");i.radius=parseInt(n)}else if("color"===a){if(b(n))throw new _(a,n,"hex code");i.color=n}else if("stroke-color"===a){if(b(n))throw new _(a,n,"hex code");i.strokeColor=n}else{if("stroke-width"!==a)throw new Error(`style named ${a} is not supported.`);if(k(n))throw new _(a,n,"number of pixels (eg. 10px)");i.strokeWidth=n}}return i}function B(t,e,i,a,n){n=N(n),P.addPoints([{x:i,y:a,text:F(t.text),className:e,...n}])}function W(t,e){P.addClass(t,N(e))}function R(t){P.setConfig({chartWidth:t})}function $(t){P.setConfig({chartHeight:t})}function U(){var{themeVariables:t,quadrantChart:e}=o();return e&&P.setConfig(e),P.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),P.setData({titleText:l()}),P.build()}i(C,"setQuadrant1Text"),i(v,"setQuadrant2Text"),i(L,"setQuadrant3Text"),i(E,"setQuadrant4Text"),i(D,"setXAxisLeftText"),i(z,"setXAxisRightText"),i(I,"setYAxisTopText"),i(w,"setYAxisBottomText"),i(N,"parseStyles"),i(B,"addPoint"),i(W,"addClass"),i(R,"setWidth"),i($,"setHeight"),i(U,"getQuadrantData");var Q={setWidth:R,setHeight:$,setQuadrant1Text:C,setQuadrant2Text:v,setQuadrant3Text:L,setQuadrant4Text:E,setXAxisLeftText:D,setXAxisRightText:z,setYAxisTopText:I,setYAxisBottomText:w,parseStyles:N,addPoint:B,addClass:W,getQuadrantData:U,clear:i(function(){P.clear(),g()},"clear"),setAccTitle:h,getAccTitle:c,setDiagramTitle:d,getDiagramTitle:l,getAccDescription:u,setAccDescription:x},O=i((t,e,a,n)=>{function r(t){return"top"===t?"hanging":"middle"}function l(t){return"left"===t?"start":"middle"}function h(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}i(r,"getDominantBaseLine"),i(l,"getTextAnchor"),i(h,"getTransformation");var c=o();let d;"sandbox"===(t=(s.debug("Rendering quadrant chart\n"+t),c.securityLevel))&&(d=f("#i"+e));e=(t=f("sandbox"===t?d.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)).append("g").attr("class","main");var u=c.quadrantChart?.chartWidth??500,x=c.quadrantChart?.chartHeight??500;p(t,x,u,c.quadrantChart?.useMaxWidth??!0),t.attr("viewBox","0 0 "+u+" "+x),n.db.setHeight(x),n.db.setWidth(u),c=n.db.getQuadrantData(),t=e.append("g").attr("class","quadrants"),x=e.append("g").attr("class","border"),u=e.append("g").attr("class","data-points"),n=e.append("g").attr("class","labels"),e=e.append("g").attr("class","title");(e=(c.title&&e.append("text").attr("x",0).attr("y",0).attr("fill",c.title.fill).attr("font-size",c.title.fontSize).attr("dominant-baseline",r(c.title.horizontalPos)).attr("text-anchor",l(c.title.verticalPos)).attr("transform",h(c.title)).text(c.title.text),c.borderLines&&x.selectAll("line").data(c.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth),t.selectAll("g.quadrant").data(c.quadrants).enter().append("g").attr("class","quadrant"))).append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),e.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>r(t.text.horizontalPos)).attr("text-anchor",t=>l(t.text.verticalPos)).attr("transform",t=>h(t.text)).text(t=>t.text.text),n.selectAll("g.label").data(c.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>r(t.horizontalPos)).attr("text-anchor",t=>l(t.verticalPos)).attr("transform",t=>h(t)),(x=u.selectAll("g.data-point").data(c.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),x.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>r(t.text.horizontalPos)).attr("text-anchor",t=>l(t.text.verticalPos)).attr("transform",t=>h(t.text))},"draw"),X={parser:m,db:Q,renderer:{draw:O},styles:i(()=>"","styles")};export{X as diagram};
@@ -0,0 +1 @@
1
+ var t,e;(t=self.document)&&!t.getElementById("livereloadscript")&&((e=t.createElement("script")).async=1,e.src="//"+(self.location.host||"localhost").split(":")[0]+":35729/livereload.js?snipver=1",e.id="livereloadscript",t.getElementsByTagName("head")[0].appendChild(e));import{_ as i,L as a,E as n,l as s,i as r,d as o,o as l,s as h,g as c,n as d,b as u,c as x,v as g,j as f,k as p}from"./mermaid.core-2d237a1e.js";import{l as y}from"./linear-e5c99c88.js";import"./web-753300e1.js";import"./init-b029a625.js";import"./defaultLocale-b4977250.js";var T=(()=>{var t=i(function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i},"o"),e=[1,5],a=[1,6],n=[1,7],s=[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],r=[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],o=[55,56,57],l=[2,36],h=[1,37],c=[1,36],d=[1,38],u=[1,35],x=[1,43],g=[1,41],f=[1,45],p=[1,14],y=[1,23],T=[1,18],m=[1,19],q=[1,20],A=[1,21],_=[1,22],b=[1,24],S=[1,25],k=[1,26],F=[1,27],P=[1,28],C=[1,29],v=[1,32],L=[1,33],E=[1,34],D=[1,39],z=[1,40],I=[1,42],w=[1,44],N=[1,63],B=[1,62],W=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],R=[1,66],$=[1,67],U=[1,68],Q=[1,69],O=[1,70],X=[1,71],H=[1,72],M=[1,73],Y=[1,74],j=[1,75],G=[1,76],K=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,91],J=[1,92],tt=[1,93],et=[1,100],it=[1,94],at=[1,97],nt=[1,95],st=[1,96],rt=[1,98],ot=[1,99],lt=[1,103],ht=[10,55,56,57],ct=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],dt={trace:i(function(){},"trace"),yy:{},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},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"},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]],performAction:i(function(t,e,i,a,n,s,r){var o=s.length-1;switch(n){case 23:case 68:this.$=s[o];break;case 24:case 69:this.$=s[o-1]+""+s[o];break;case 26:this.$=s[o-1]+s[o];break;case 27:this.$=[s[o].trim()];break;case 28:s[o-2].push(s[o].trim()),this.$=s[o-2];break;case 29:this.$=s[o-4],a.addClass(s[o-2],s[o]);break;case 37:this.$=[];break;case 42:this.$=s[o].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[o].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[o].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 47:a.addPoint(s[o-3],"",s[o-1],s[o],[]);break;case 48:a.addPoint(s[o-4],s[o-3],s[o-1],s[o],[]);break;case 49:a.addPoint(s[o-4],"",s[o-2],s[o-1],s[o]);break;case 50:a.addPoint(s[o-5],s[o-4],s[o-2],s[o-1],s[o]);break;case 51:a.setXAxisLeftText(s[o-2]),a.setXAxisRightText(s[o]);break;case 52:s[o-1].text+=" ⟶ ",a.setXAxisLeftText(s[o-1]);break;case 53:a.setXAxisLeftText(s[o]);break;case 54:a.setYAxisBottomText(s[o-2]),a.setYAxisTopText(s[o]);break;case 55:s[o-1].text+=" ⟶ ",a.setYAxisBottomText(s[o-1]);break;case 56:a.setYAxisBottomText(s[o]);break;case 57:a.setQuadrant1Text(s[o]);break;case 58:a.setQuadrant2Text(s[o]);break;case 59:a.setQuadrant3Text(s[o]);break;case 60:a.setQuadrant4Text(s[o]);break;case 64:case 66:this.$={text:s[o],type:"text"};break;case 65:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 67:this.$={text:s[o],type:"markdown"}}},"anonymous"),table:[{18:dt=[1,3],26:1,27:2,28:ut=[1,4],55:e,56:a,57:n},{1:[3]},{18:dt,26:8,27:2,28:ut,55:e,56:a,57:n},{18:dt,26:9,27:2,28:ut,55:e,56:a,57:n},t(s,[2,33],{29:10}),t(r,[2,61]),t(r,[2,62]),t(r,[2,63]),{1:[2,30]},{1:[2,31]},t(o,l,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:h,5:c,10:d,12:u,13:x,14:g,15:f,18:p,25:y,35:T,37:m,39:q,41:A,42:_,48:b,50:S,51:k,52:F,53:P,54:C,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),t(s,[2,34]),{27:46,55:e,56:a,57:n},t(o,[2,37]),t(o,l,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:h,5:c,10:d,12:u,13:x,14:g,15:f,18:p,25:y,35:T,37:m,39:q,41:A,42:_,48:b,50:S,51:k,52:F,53:P,54:C,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),t(o,[2,39]),t(o,[2,40]),t(o,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(o,[2,45]),t(o,[2,46]),{18:[1,51]},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:52,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:53,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:54,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:55,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:56,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,10:d,12:u,13:x,14:g,15:f,43:57,58:31,60:v,61:L,63:E,64:D,65:z,66:I,67:w},{4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,44:[1,58],47:[1,59],58:61,59:60,63:E,64:D,65:z,66:I,67:w},t(W,[2,64]),t(W,[2,66]),t(W,[2,67]),t(W,[2,70]),t(W,[2,71]),t(W,[2,72]),t(W,[2,73]),t(W,[2,74]),t(W,[2,75]),t(W,[2,76]),t(W,[2,77]),t(W,[2,78]),t(W,[2,79]),t(W,[2,80]),t(W,[2,81]),t(s,[2,35]),t(o,[2,38]),t(o,[2,42]),t(o,[2,43]),t(o,[2,44]),{3:65,4:R,5:$,6:U,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:K,21:64},t(o,[2,53],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,49:[1,78],63:E,64:D,65:z,66:I,67:w}),t(o,[2,56],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,49:[1,79],63:E,64:D,65:z,66:I,67:w}),t(o,[2,57],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,58],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,59],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,60],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),{45:[1,80]},{44:[1,81]},t(W,[2,65]),t(W,[2,82]),t(W,[2,83]),t(W,[2,84]),{3:83,4:R,5:$,6:U,7:Q,8:O,9:X,10:H,11:M,12:Y,13:j,14:G,15:K,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(o,[2,52],{58:31,43:84,4:h,5:c,10:d,12:u,13:x,14:g,15:f,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),t(o,[2,55],{58:31,43:85,4:h,5:c,10:d,12:u,13:x,14:g,15:f,60:v,61:L,63:E,64:D,65:z,66:I,67:w}),{46:[1,86]},{45:[1,87]},{4:Z,5:J,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:89,23:88},t(V,[2,24]),t(o,[2,51],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,54],{59:60,58:61,4:h,5:c,8:N,10:d,12:u,13:x,14:g,15:f,18:B,63:E,64:D,65:z,66:I,67:w}),t(o,[2,47],{22:89,16:90,23:101,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,102]},t(o,[2,29],{10:lt}),t(ht,[2,27],{16:104,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(ct,[2,25]),t(ct,[2,13]),t(ct,[2,14]),t(ct,[2,15]),t(ct,[2,16]),t(ct,[2,17]),t(ct,[2,18]),t(ct,[2,19]),t(ct,[2,20]),t(ct,[2,21]),t(ct,[2,22]),t(o,[2,49],{10:lt}),t(o,[2,48],{22:89,16:90,23:105,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:Z,5:J,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:106},t(ct,[2,26]),t(o,[2,50],{10:lt}),t(ht,[2,28],{16:104,4:Z,5:J,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:i(function(t,e){var i;if(!e.recoverable)throw(i=new Error(t)).hash=e,i;this.trace(t)},"parseError"),parse:i(function(t){var e,a=this,n=[0],s=[],r=[null],o=[],l=this.table,h="",c=0,d=0,u=o.slice.call(arguments,1),x=Object.create(this.lexer),g={yy:{}};for(e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,e)&&(g.yy[e]=this.yy[e]);x.setInput(t,g.yy),g.yy.lexer=x,g.yy.parser=this,void 0===x.yylloc&&(x.yylloc={});var f=x.yylloc,p=(o.push(f),x.options&&x.options.ranges);function y(){var t=s.pop()||x.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(s=t).pop()),t=a.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){n.length=n.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),i(y,"lex");for(var T,m,q,A,_,b,S={};;){if(m=n[n.length-1],void 0===(q=this.defaultActions[m]||(null==T&&(T=y()),l[m]&&l[m][T]))||!q.length||!q[0]){var k,F=[];for(A in l[m])this.terminals_[A]&&2<A&&F.push("'"+this.terminals_[A]+"'");k=x.showPosition?"Parse error on line "+(c+1)+":\n"+x.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(k,{text:x.match,token:this.terminals_[T]||T,line:x.yylineno,loc:f,expected:F})}if(q[0]instanceof Array&&1<q.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+T);switch(q[0]){case 1:n.push(T),r.push(x.yytext),o.push(x.yylloc),n.push(q[1]),T=null,d=x.yyleng,h=x.yytext,c=x.yylineno,f=x.yylloc;break;case 2:if(_=this.productions_[q[1]][1],S.$=r[r.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},p&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(b=this.performAction.apply(S,[h,d,c,g.yy,q[1],r,o].concat(u))))return b;_&&(n=n.slice(0,-1*_*2),r=r.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[q[1]][0]),r.push(S.$),o.push(S._$),b=l[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0},"parse")},ut={EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g),a=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===t.length?this.yylloc.first_column:0)+t[t.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(a.yylloc.range=this.yylloc.range.slice(0)),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,a,n=this._currentRules(),s=0;s<n.length;s++)if((i=this._input.match(this.rules[n[s]]))&&(!e||i[0].length>e[0].length))if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){return this.next()||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules},"_currentRules"),topState:i(function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:i(function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),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],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}}};function xt(){this.yy={}}return dt.lexer=ut,i(xt,"Parser"),new((xt.prototype=dt).Parser=xt)})(),m=T.parser=T,q=a(),A=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{i(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:n.quadrantChart?.chartWidth||500,chartWidth:n.quadrantChart?.chartHeight||500,titlePadding:n.quadrantChart?.titlePadding||10,titleFontSize:n.quadrantChart?.titleFontSize||20,quadrantPadding:n.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:n.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:n.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:n.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:n.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:n.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:n.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:n.quadrantChart?.pointTextPadding||5,pointLabelFontSize:n.quadrantChart?.pointLabelFontSize||12,pointRadius:n.quadrantChart?.pointRadius||5,xAxisPosition:n.quadrantChart?.xAxisPosition||"top",yAxisPosition:n.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:n.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:n.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:q.quadrant1Fill,quadrant2Fill:q.quadrant2Fill,quadrant3Fill:q.quadrant3Fill,quadrant4Fill:q.quadrant4Fill,quadrant1TextFill:q.quadrant1TextFill,quadrant2TextFill:q.quadrant2TextFill,quadrant3TextFill:q.quadrant3TextFill,quadrant4TextFill:q.quadrant4TextFill,quadrantPointFill:q.quadrantPointFill,quadrantPointTextFill:q.quadrantPointTextFill,quadrantXAxisTextFill:q.quadrantXAxisTextFill,quadrantYAxisTextFill:q.quadrantYAxisTextFill,quadrantTitleFill:q.quadrantTitleFill,quadrantInternalBorderStrokeFill:q.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:q.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,s.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){s.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){s.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){var n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s=(t={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},e=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,n={left:"left"===this.config.yAxisPosition&&i?e:0,right:"right"===this.config.yAxisPosition&&i?e:0},i=this.config.titleFontSize+2*this.config.titlePadding,e={top:a?i:0},a=this.config.quadrantPadding+n.left,i=this.config.quadrantPadding+t.top+e.top,this.config.chartWidth-2*this.config.quadrantPadding-n.left-n.right),r=this.config.chartHeight-2*this.config.quadrantPadding-t.top-t.bottom-e.top;return{xAxisSpace:t,yAxisSpace:n,titleSpace:e,quadrantSpace:{quadrantLeft:a,quadrantTop:i,quadrantWidth:s,quadrantHalfWidth:s/2,quadrantHeight:r,quadrantHalfHeight:r/2}}}getAxisLabels(t,e,i,a){var{quadrantSpace:a,titleSpace:n}=a,{quadrantHalfHeight:a,quadrantHeight:s,quadrantLeft:r,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:h}=a,c=Boolean(this.data.xAxisRightText),d=Boolean(this.data.yAxisTopText),u=[];return this.data.xAxisLeftText&&e&&u.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:r+(c?o/2:0),y:"top"===t?this.config.xAxisLabelPadding+n.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:c?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&u.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:r+o+(c?o/2:0),y:"top"===t?this.config.xAxisLabelPadding+n.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:c?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&u.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+r+h+this.config.quadrantPadding,y:l+s-(d?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&u.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+r+h+this.config.quadrantPadding,y:l+a-(d?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),u}getQuadrants(t){t=t.quadrantSpace;var e,{quadrantHalfHeight:t,quadrantLeft:i,quadrantHalfWidth:a,quadrantTop:n}=t,i=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:n,width:a,height:t,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:n,width:a,height:t,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i,y:n+t,width:a,height:t,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:i+a,y:n+t,width:a,height:t,fill:this.themeConfig.quadrant4Fill}];for(e of i)e.text.x=e.x+e.width/2,0===this.data.points.length?(e.text.y=e.y+e.height/2,e.text.horizontalPos="middle"):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos="top");return i}getQuadrantPoints(t){t=t.quadrantSpace;var{quadrantHeight:t,quadrantLeft:e,quadrantTop:i,quadrantWidth:a}=t;let n=y().domain([0,1]).range([e,a+e]),s=y().domain([0,1]).range([t+i,i]);return this.data.points.map(t=>{var e;return e=((e=this.classes.get(t.className))&&(t={...e,...t}),{x:n(t.x),y:s(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:n(t.x),y:s(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"})})}getBorders(t){var e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantHalfHeight:t,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s,quadrantWidth:r}=(t=t.quadrantSpace,t);return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s,x2:a+r+e,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+r,y1:s+e,x2:a+r,y2:s+i-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s+i,x2:a+r+e,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+e,x2:a,y2:s+i-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+n,y1:s+e,x2:a+n,y2:s+i-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:s+t,x2:a+r-e,y2:s+t}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){var t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=0<this.data.points.length?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},_=class extends Error{static{i(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid `+i),this.name="InvalidStyleError"}};function b(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function S(t){return!/^\d+$/.test(t)}function k(t){return!/^\d+px$/.test(t)}function F(t){return r(t.trim(),o())}i(b,"validateHexCode"),i(S,"validateNumber"),i(k,"validateSizeInPixels"),i(F,"textSanitizer");var P=new A;function C(t){P.setData({quadrant1Text:F(t.text)})}function v(t){P.setData({quadrant2Text:F(t.text)})}function L(t){P.setData({quadrant3Text:F(t.text)})}function E(t){P.setData({quadrant4Text:F(t.text)})}function D(t){P.setData({xAxisLeftText:F(t.text)})}function z(t){P.setData({xAxisRightText:F(t.text)})}function I(t){P.setData({yAxisTopText:F(t.text)})}function w(t){P.setData({yAxisBottomText:F(t.text)})}function N(t){var e,i={};for(e of t){var[a,n]=e.trim().split(/\s*:\s*/);if("radius"===a){if(S(n))throw new _(a,n,"number");i.radius=parseInt(n)}else if("color"===a){if(b(n))throw new _(a,n,"hex code");i.color=n}else if("stroke-color"===a){if(b(n))throw new _(a,n,"hex code");i.strokeColor=n}else{if("stroke-width"!==a)throw new Error(`style named ${a} is not supported.`);if(k(n))throw new _(a,n,"number of pixels (eg. 10px)");i.strokeWidth=n}}return i}function B(t,e,i,a,n){n=N(n),P.addPoints([{x:i,y:a,text:F(t.text),className:e,...n}])}function W(t,e){P.addClass(t,N(e))}function R(t){P.setConfig({chartWidth:t})}function $(t){P.setConfig({chartHeight:t})}function U(){var{themeVariables:t,quadrantChart:e}=o();return e&&P.setConfig(e),P.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),P.setData({titleText:l()}),P.build()}i(C,"setQuadrant1Text"),i(v,"setQuadrant2Text"),i(L,"setQuadrant3Text"),i(E,"setQuadrant4Text"),i(D,"setXAxisLeftText"),i(z,"setXAxisRightText"),i(I,"setYAxisTopText"),i(w,"setYAxisBottomText"),i(N,"parseStyles"),i(B,"addPoint"),i(W,"addClass"),i(R,"setWidth"),i($,"setHeight"),i(U,"getQuadrantData");var Q={setWidth:R,setHeight:$,setQuadrant1Text:C,setQuadrant2Text:v,setQuadrant3Text:L,setQuadrant4Text:E,setXAxisLeftText:D,setXAxisRightText:z,setYAxisTopText:I,setYAxisBottomText:w,parseStyles:N,addPoint:B,addClass:W,getQuadrantData:U,clear:i(function(){P.clear(),g()},"clear"),setAccTitle:h,getAccTitle:c,setDiagramTitle:d,getDiagramTitle:l,getAccDescription:u,setAccDescription:x},O=i((t,e,a,n)=>{function r(t){return"top"===t?"hanging":"middle"}function l(t){return"left"===t?"start":"middle"}function h(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}i(r,"getDominantBaseLine"),i(l,"getTextAnchor"),i(h,"getTransformation");var c=o();let d;"sandbox"===(t=(s.debug("Rendering quadrant chart\n"+t),c.securityLevel))&&(d=f("#i"+e));e=(t=f("sandbox"===t?d.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)).append("g").attr("class","main");var u=c.quadrantChart?.chartWidth??500,x=c.quadrantChart?.chartHeight??500;p(t,x,u,c.quadrantChart?.useMaxWidth??!0),t.attr("viewBox","0 0 "+u+" "+x),n.db.setHeight(x),n.db.setWidth(u),c=n.db.getQuadrantData(),t=e.append("g").attr("class","quadrants"),x=e.append("g").attr("class","border"),u=e.append("g").attr("class","data-points"),n=e.append("g").attr("class","labels"),e=e.append("g").attr("class","title");(e=(c.title&&e.append("text").attr("x",0).attr("y",0).attr("fill",c.title.fill).attr("font-size",c.title.fontSize).attr("dominant-baseline",r(c.title.horizontalPos)).attr("text-anchor",l(c.title.verticalPos)).attr("transform",h(c.title)).text(c.title.text),c.borderLines&&x.selectAll("line").data(c.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth),t.selectAll("g.quadrant").data(c.quadrants).enter().append("g").attr("class","quadrant"))).append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),e.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>r(t.text.horizontalPos)).attr("text-anchor",t=>l(t.text.verticalPos)).attr("transform",t=>h(t.text)).text(t=>t.text.text),n.selectAll("g.label").data(c.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>r(t.horizontalPos)).attr("text-anchor",t=>l(t.verticalPos)).attr("transform",t=>h(t)),(x=u.selectAll("g.data-point").data(c.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),x.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>r(t.text.horizontalPos)).attr("text-anchor",t=>l(t.text.verticalPos)).attr("transform",t=>h(t.text))},"draw"),X={parser:m,db:Q,renderer:{draw:O},styles:i(()=>"","styles")};export{X as diagram};
@@ -0,0 +1 @@
1
+ import{_ as t,L as e,E as i,l as a,i as n,d as s,o as r,s as o,g as l,n as h,b as c,c as d,v as u,j as x,k as g}from"./mermaid.core-8797d6a9.js";import{l as f}from"./linear-7b1a23f3.js";import"./web-c3ed22c4.js";import"./init-cf76ae07.js";import"./defaultLocale-e35a4def.js";var p=function(){var e=t((function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i}),"o"),i=[1,3],a=[1,4],n=[1,5],s=[1,6],r=[1,7],o=[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],l=[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],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],g=[1,35],f=[1,43],p=[1,41],y=[1,45],T=[1,14],m=[1,23],q=[1,18],A=[1,19],_=[1,20],b=[1,21],S=[1,22],k=[1,24],F=[1,25],P=[1,26],C=[1,27],v=[1,28],L=[1,29],E=[1,32],D=[1,33],z=[1,34],I=[1,39],w=[1,40],N=[1,42],B=[1,44],W=[1,63],R=[1,62],$=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],U=[1,66],Q=[1,67],O=[1,68],X=[1,69],H=[1,70],M=[1,71],Y=[1,72],j=[1,73],G=[1,74],K=[1,75],V=[1,76],Z=[1,77],J=[4,5,6,7,8,9,10,11,12,13,14,15,18],tt=[1,91],et=[1,92],it=[1,93],at=[1,100],nt=[1,94],st=[1,97],rt=[1,95],ot=[1,96],lt=[1,98],ht=[1,99],ct=[1,103],dt=[10,55,56,57],ut=[4,5,6,8,10,11,13,17,18,19,20,55,56,57];i={trace:t((function(){}),"trace"),yy:{},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},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"},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]],performAction:t((function(t,e,i,a,n,s,r){var o=s.length-1;switch(n){case 23:case 68:this.$=s[o];break;case 24:case 69:this.$=s[o-1]+""+s[o];break;case 26:this.$=s[o-1]+s[o];break;case 27:this.$=[s[o].trim()];break;case 28:s[o-2].push(s[o].trim()),this.$=s[o-2];break;case 29:this.$=s[o-4],a.addClass(s[o-2],s[o]);break;case 37:this.$=[];break;case 42:this.$=s[o].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[o].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[o].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 47:a.addPoint(s[o-3],"",s[o-1],s[o],[]);break;case 48:a.addPoint(s[o-4],s[o-3],s[o-1],s[o],[]);break;case 49:a.addPoint(s[o-4],"",s[o-2],s[o-1],s[o]);break;case 50:a.addPoint(s[o-5],s[o-4],s[o-2],s[o-1],s[o]);break;case 51:a.setXAxisLeftText(s[o-2]),a.setXAxisRightText(s[o]);break;case 52:s[o-1].text+=" ⟶ ",a.setXAxisLeftText(s[o-1]);break;case 53:a.setXAxisLeftText(s[o]);break;case 54:a.setYAxisBottomText(s[o-2]),a.setYAxisTopText(s[o]);break;case 55:s[o-1].text+=" ⟶ ",a.setYAxisBottomText(s[o-1]);break;case 56:a.setYAxisBottomText(s[o]);break;case 57:a.setQuadrant1Text(s[o]);break;case 58:a.setQuadrant2Text(s[o]);break;case 59:a.setQuadrant3Text(s[o]);break;case 60:a.setQuadrant4Text(s[o]);break;case 64:case 66:this.$={text:s[o],type:"text"};break;case 65:this.$={text:s[o-1].text+""+s[o],type:s[o-1].type};break;case 67:this.$={text:s[o],type:"markdown"}}}),"anonymous"),table:[{18:i,26:1,27:2,28:a,55:n,56:s,57:r},{1:[3]},{18:i,26:8,27:2,28:a,55:n,56:s,57:r},{18:i,26:9,27:2,28:a,55:n,56:s,57:r},e(o,[2,33],{29:10}),e(l,[2,61]),e(l,[2,62]),e(l,[2,63]),{1:[2,30]},{1:[2,31]},e(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:g,13:f,14:p,15:y,18:T,25:m,35:q,37:A,39:_,41:b,42:S,48:k,50:F,51:P,52:C,53:v,54:L,60:E,61:D,63:z,64:I,65:w,66:N,67:B}),e(o,[2,34]),{27:46,55:n,56:s,57:r},e(h,[2,37]),e(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:u,10:x,12:g,13:f,14:p,15:y,18:T,25:m,35:q,37:A,39:_,41:b,42:S,48:k,50:F,51:P,52:C,53:v,54:L,60:E,61:D,63:z,64:I,65:w,66:N,67:B}),e(h,[2,39]),e(h,[2,40]),e(h,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(h,[2,45]),e(h,[2,46]),{18:[1,51]},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:52,58:31,60:E,61:D,63:z,64:I,65:w,66:N,67:B},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:53,58:31,60:E,61:D,63:z,64:I,65:w,66:N,67:B},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:54,58:31,60:E,61:D,63:z,64:I,65:w,66:N,67:B},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:55,58:31,60:E,61:D,63:z,64:I,65:w,66:N,67:B},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:56,58:31,60:E,61:D,63:z,64:I,65:w,66:N,67:B},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:57,58:31,60:E,61:D,63:z,64:I,65:w,66:N,67:B},{4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,44:[1,58],47:[1,59],58:61,59:60,63:z,64:I,65:w,66:N,67:B},e($,[2,64]),e($,[2,66]),e($,[2,67]),e($,[2,70]),e($,[2,71]),e($,[2,72]),e($,[2,73]),e($,[2,74]),e($,[2,75]),e($,[2,76]),e($,[2,77]),e($,[2,78]),e($,[2,79]),e($,[2,80]),e($,[2,81]),e(o,[2,35]),e(h,[2,38]),e(h,[2,42]),e(h,[2,43]),e(h,[2,44]),{3:65,4:U,5:Q,6:O,7:X,8:H,9:M,10:Y,11:j,12:G,13:K,14:V,15:Z,21:64},e(h,[2,53],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,49:[1,78],63:z,64:I,65:w,66:N,67:B}),e(h,[2,56],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,49:[1,79],63:z,64:I,65:w,66:N,67:B}),e(h,[2,57],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,63:z,64:I,65:w,66:N,67:B}),e(h,[2,58],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,63:z,64:I,65:w,66:N,67:B}),e(h,[2,59],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,63:z,64:I,65:w,66:N,67:B}),e(h,[2,60],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,63:z,64:I,65:w,66:N,67:B}),{45:[1,80]},{44:[1,81]},e($,[2,65]),e($,[2,82]),e($,[2,83]),e($,[2,84]),{3:83,4:U,5:Q,6:O,7:X,8:H,9:M,10:Y,11:j,12:G,13:K,14:V,15:Z,18:[1,82]},e(J,[2,23]),e(J,[2,1]),e(J,[2,2]),e(J,[2,3]),e(J,[2,4]),e(J,[2,5]),e(J,[2,6]),e(J,[2,7]),e(J,[2,8]),e(J,[2,9]),e(J,[2,10]),e(J,[2,11]),e(J,[2,12]),e(h,[2,52],{58:31,43:84,4:d,5:u,10:x,12:g,13:f,14:p,15:y,60:E,61:D,63:z,64:I,65:w,66:N,67:B}),e(h,[2,55],{58:31,43:85,4:d,5:u,10:x,12:g,13:f,14:p,15:y,60:E,61:D,63:z,64:I,65:w,66:N,67:B}),{46:[1,86]},{45:[1,87]},{4:tt,5:et,6:it,8:at,11:nt,13:st,16:90,17:rt,18:ot,19:lt,20:ht,22:89,23:88},e(J,[2,24]),e(h,[2,51],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,63:z,64:I,65:w,66:N,67:B}),e(h,[2,54],{59:60,58:61,4:d,5:u,8:W,10:x,12:g,13:f,14:p,15:y,18:R,63:z,64:I,65:w,66:N,67:B}),e(h,[2,47],{22:89,16:90,23:101,4:tt,5:et,6:it,8:at,11:nt,13:st,17:rt,18:ot,19:lt,20:ht}),{46:[1,102]},e(h,[2,29],{10:ct}),e(dt,[2,27],{16:104,4:tt,5:et,6:it,8:at,11:nt,13:st,17:rt,18:ot,19:lt,20:ht}),e(ut,[2,25]),e(ut,[2,13]),e(ut,[2,14]),e(ut,[2,15]),e(ut,[2,16]),e(ut,[2,17]),e(ut,[2,18]),e(ut,[2,19]),e(ut,[2,20]),e(ut,[2,21]),e(ut,[2,22]),e(h,[2,49],{10:ct}),e(h,[2,48],{22:89,16:90,23:105,4:tt,5:et,6:it,8:at,11:nt,13:st,17:rt,18:ot,19:lt,20:ht}),{4:tt,5:et,6:it,8:at,11:nt,13:st,16:90,17:rt,18:ot,19:lt,20:ht,22:106},e(ut,[2,26]),e(h,[2,50],{10:ct}),e(dt,[2,28],{16:104,4:tt,5:et,6:it,8:at,11:nt,13:st,17:rt,18:ot,19:lt,20:ht})],defaultActions:{8:[2,30],9:[2,31]},parseError:t((function(t,e){var i;if(!e.recoverable)throw(i=new Error(t)).hash=e,i;this.trace(t)}),"parseError"),parse:t((function(e){var i,a=this,n=[0],s=[],r=[null],o=[],l=this.table,h="",c=0,d=0,u=o.slice.call(arguments,1),x=Object.create(this.lexer),g={yy:{}};for(i in this.yy)Object.prototype.hasOwnProperty.call(this.yy,i)&&(g.yy[i]=this.yy[i]);x.setInput(e,g.yy),g.yy.lexer=x,g.yy.parser=this,void 0===x.yylloc&&(x.yylloc={});var f=x.yylloc,p=(o.push(f),x.options&&x.options.ranges);function y(){var t=s.pop()||x.lex()||1;return"number"!=typeof t&&(t instanceof Array&&(t=(s=t).pop()),t=a.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t((function(t){n.length=n.length-2*t,r.length=r.length-t,o.length=o.length-t}),"popStack"),t(y,"lex");for(var T,m,q,A,_,b,S={};;){if(m=n[n.length-1],void 0===(q=this.defaultActions[m]||(null==T&&(T=y()),l[m]&&l[m][T]))||!q.length||!q[0]){var k,F=[];for(A in l[m])this.terminals_[A]&&2<A&&F.push("'"+this.terminals_[A]+"'");k=x.showPosition?"Parse error on line "+(c+1)+":\n"+x.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(k,{text:x.match,token:this.terminals_[T]||T,line:x.yylineno,loc:f,expected:F})}if(q[0]instanceof Array&&1<q.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+T);switch(q[0]){case 1:n.push(T),r.push(x.yytext),o.push(x.yylloc),n.push(q[1]),T=null,d=x.yyleng,h=x.yytext,c=x.yylineno,f=x.yylloc;break;case 2:if(_=this.productions_[q[1]][1],S.$=r[r.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},p&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(b=this.performAction.apply(S,[h,d,c,g.yy,q[1],r,o].concat(u))))return b;_&&(n=n.slice(0,-1*_*2),r=r.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[q[1]][0]),r.push(S.$),o.push(S._$),b=l[n[n.length-2]][n[n.length-1]],n.push(b);break;case 3:return!0}}return!0}),"parse")},a={EOF:1,parseError:t((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:t((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:t((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:t((function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g),a=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e,t=this.match.split(/(?:\r\n?|\n)/g),this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===t.length?this.yylloc.first_column:0)+t[t.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:t((function(){return this._more=!0,this}),"more"),reject:t((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})}),"reject"),less:t((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:t((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:t((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:t((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:t((function(t,e){var i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)&&(a.yylloc.range=this.yylloc.range.slice(0)),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var n in a)this[n]=a[n];return!1}),"test_match"),next:t((function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,a,n=this._currentRules(),s=0;s<n.length;s++)if((i=this._input.match(this.rules[n[s]]))&&(!e||i[0].length>e[0].length))if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(!this._backtrack)return!1;e=!1}else if(!this.options.flex)break;return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:t((function(){return this.next()||this.lex()}),"lex"),begin:t((function(t){this.conditionStack.push(t)}),"begin"),popState:t((function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:t((function(){return(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL).rules}),"_currentRules"),topState:t((function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:t((function(t){this.begin(t)}),"pushState"),stateStackSize:t((function(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":!0},performAction:t((function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}}),"anonymous"),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],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}}};function xt(){this.yy={}}return i.lexer=a,t(xt,"Parser"),new((xt.prototype=i).Parser=xt)}(),y=p.parser=p,T=e(),m=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:i.quadrantChart?.chartWidth||500,chartWidth:i.quadrantChart?.chartHeight||500,titlePadding:i.quadrantChart?.titlePadding||10,titleFontSize:i.quadrantChart?.titleFontSize||20,quadrantPadding:i.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:i.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:i.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:i.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:i.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:i.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:i.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:i.quadrantChart?.pointTextPadding||5,pointLabelFontSize:i.quadrantChart?.pointLabelFontSize||12,pointRadius:i.quadrantChart?.pointRadius||5,xAxisPosition:i.quadrantChart?.xAxisPosition||"top",yAxisPosition:i.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:i.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:i.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:T.quadrant1Fill,quadrant2Fill:T.quadrant2Fill,quadrant3Fill:T.quadrant3Fill,quadrant4Fill:T.quadrant4Fill,quadrant1TextFill:T.quadrant1TextFill,quadrant2TextFill:T.quadrant2TextFill,quadrant3TextFill:T.quadrant3TextFill,quadrant4TextFill:T.quadrant4TextFill,quadrantPointFill:T.quadrantPointFill,quadrantPointTextFill:T.quadrantPointTextFill,quadrantXAxisTextFill:T.quadrantXAxisTextFill,quadrantYAxisTextFill:T.quadrantYAxisTextFill,quadrantTitleFill:T.quadrantTitleFill,quadrantInternalBorderStrokeFill:T.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:T.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,a.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){a.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){a.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){var n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s=(t={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},e=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,n={left:"left"===this.config.yAxisPosition&&i?e:0,right:"right"===this.config.yAxisPosition&&i?e:0},i=this.config.titleFontSize+2*this.config.titlePadding,e={top:a?i:0},a=this.config.quadrantPadding+n.left,i=this.config.quadrantPadding+t.top+e.top,this.config.chartWidth-2*this.config.quadrantPadding-n.left-n.right),r=this.config.chartHeight-2*this.config.quadrantPadding-t.top-t.bottom-e.top;return{xAxisSpace:t,yAxisSpace:n,titleSpace:e,quadrantSpace:{quadrantLeft:a,quadrantTop:i,quadrantWidth:s,quadrantHalfWidth:s/2,quadrantHeight:r,quadrantHalfHeight:r/2}}}getAxisLabels(t,e,i,a){var{quadrantSpace:a,titleSpace:n}=a,{quadrantHalfHeight:a,quadrantHeight:s,quadrantLeft:r,quadrantHalfWidth:o,quadrantTop:l,quadrantWidth:h}=a,c=Boolean(this.data.xAxisRightText),d=Boolean(this.data.yAxisTopText),u=[];return this.data.xAxisLeftText&&e&&u.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:r+(c?o/2:0),y:"top"===t?this.config.xAxisLabelPadding+n.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:c?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&u.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:r+o+(c?o/2:0),y:"top"===t?this.config.xAxisLabelPadding+n.top:this.config.xAxisLabelPadding+l+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:c?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&u.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+r+h+this.config.quadrantPadding,y:l+s-(d?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&u.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+r+h+this.config.quadrantPadding,y:l+a-(d?a/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:d?"center":"left",horizontalPos:"top",rotation:-90}),u}getQuadrants(t){t=t.quadrantSpace;var{quadrantHalfHeight:t,quadrantLeft:e,quadrantHalfWidth:i,quadrantTop:a}=t,e=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:e+i,y:a,width:i,height:t,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:e,y:a,width:i,height:t,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:e,y:a+t,width:i,height:t,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:e+i,y:a+t,width:i,height:t,fill:this.themeConfig.quadrant4Fill}];for(const t of e)t.text.x=t.x+t.width/2,0===this.data.points.length?(t.text.y=t.y+t.height/2,t.text.horizontalPos="middle"):(t.text.y=t.y+this.config.quadrantTextTopPadding,t.text.horizontalPos="top");return e}getQuadrantPoints(t){t=t.quadrantSpace;var{quadrantHeight:t,quadrantLeft:e,quadrantTop:i,quadrantWidth:a}=t;const n=f().domain([0,1]).range([e,a+e]),s=f().domain([0,1]).range([t+i,i]);return this.data.points.map((t=>{var e;return e=((e=this.classes.get(t.className))&&(t={...e,...t}),{x:n(t.x),y:s(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:n(t.x),y:s(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"})}))}getBorders(t){var e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantHalfHeight:t,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s,quadrantWidth:r}=(t=t.quadrantSpace,t);return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s,x2:a+r+e,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+r,y1:s+e,x2:a+r,y2:s+i-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-e,y1:s+i,x2:a+r+e,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+e,x2:a,y2:s+i-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+n,y1:s+e,x2:a+n,y2:s+i-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+e,y1:s+t,x2:a+r-e,y2:s+t}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){var t=this.config.showXAxis&&!(!this.data.xAxisLeftText&&!this.data.xAxisRightText),e=this.config.showYAxis&&!(!this.data.yAxisTopText&&!this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=0<this.data.points.length?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},q=class extends Error{static{t(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid `+i),this.name="InvalidStyleError"}};function A(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function _(t){return!/^\d+$/.test(t)}function b(t){return!/^\d+px$/.test(t)}function S(t){return n(t.trim(),s())}t(A,"validateHexCode"),t(_,"validateNumber"),t(b,"validateSizeInPixels"),t(S,"textSanitizer");var k=new m;function F(t){k.setData({quadrant1Text:S(t.text)})}function P(t){k.setData({quadrant2Text:S(t.text)})}function C(t){k.setData({quadrant3Text:S(t.text)})}function v(t){k.setData({quadrant4Text:S(t.text)})}function L(t){k.setData({xAxisLeftText:S(t.text)})}function E(t){k.setData({xAxisRightText:S(t.text)})}function D(t){k.setData({yAxisTopText:S(t.text)})}function z(t){k.setData({yAxisBottomText:S(t.text)})}function I(t){var e={};for(const n of t){var[i,a]=n.trim().split(/\s*:\s*/);if("radius"===i){if(_(a))throw new q(i,a,"number");e.radius=parseInt(a)}else if("color"===i){if(A(a))throw new q(i,a,"hex code");e.color=a}else if("stroke-color"===i){if(A(a))throw new q(i,a,"hex code");e.strokeColor=a}else{if("stroke-width"!==i)throw new Error(`style named ${i} is not supported.`);if(b(a))throw new q(i,a,"number of pixels (eg. 10px)");e.strokeWidth=a}}return e}function w(t,e,i,a,n){n=I(n),k.addPoints([{x:i,y:a,text:S(t.text),className:e,...n}])}function N(t,e){k.addClass(t,I(e))}function B(t){k.setConfig({chartWidth:t})}function W(t){k.setConfig({chartHeight:t})}function R(){var{themeVariables:t,quadrantChart:e}=s();return e&&k.setConfig(e),k.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),k.setData({titleText:r()}),k.build()}t(F,"setQuadrant1Text"),t(P,"setQuadrant2Text"),t(C,"setQuadrant3Text"),t(v,"setQuadrant4Text"),t(L,"setXAxisLeftText"),t(E,"setXAxisRightText"),t(D,"setYAxisTopText"),t(z,"setYAxisBottomText"),t(I,"parseStyles"),t(w,"addPoint"),t(N,"addClass"),t(B,"setWidth"),t(W,"setHeight"),t(R,"getQuadrantData");var $={parser:y,db:{setWidth:B,setHeight:W,setQuadrant1Text:F,setQuadrant2Text:P,setQuadrant3Text:C,setQuadrant4Text:v,setXAxisLeftText:L,setXAxisRightText:E,setYAxisTopText:D,setYAxisBottomText:z,parseStyles:I,addPoint:w,addClass:N,getQuadrantData:R,clear:t((function(){k.clear(),u()}),"clear"),setAccTitle:o,getAccTitle:l,setDiagramTitle:h,getDiagramTitle:r,getAccDescription:c,setAccDescription:d},renderer:{draw:t(((e,i,n,r)=>{function o(t){return"top"===t?"hanging":"middle"}function l(t){return"left"===t?"start":"middle"}function h(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}t(o,"getDominantBaseLine"),t(l,"getTextAnchor"),t(h,"getTransformation");var c=s();let d;"sandbox"===(e=(a.debug("Rendering quadrant chart\n"+e),c.securityLevel))&&(d=x("#i"+i));i=(e=x("sandbox"===e?d.nodes()[0].contentDocument.body:"body").select(`[id="${i}"]`)).append("g").attr("class","main");var u=c.quadrantChart?.chartWidth??500,f=c.quadrantChart?.chartHeight??500;g(e,f,u,c.quadrantChart?.useMaxWidth??!0),e.attr("viewBox","0 0 "+u+" "+f),r.db.setHeight(f),r.db.setWidth(u),c=r.db.getQuadrantData(),e=i.append("g").attr("class","quadrants"),f=i.append("g").attr("class","border"),u=i.append("g").attr("class","data-points"),r=i.append("g").attr("class","labels"),i=i.append("g").attr("class","title");(i=(c.title&&i.append("text").attr("x",0).attr("y",0).attr("fill",c.title.fill).attr("font-size",c.title.fontSize).attr("dominant-baseline",o(c.title.horizontalPos)).attr("text-anchor",l(c.title.verticalPos)).attr("transform",h(c.title)).text(c.title.text),c.borderLines&&f.selectAll("line").data(c.borderLines).enter().append("line").attr("x1",(t=>t.x1)).attr("y1",(t=>t.y1)).attr("x2",(t=>t.x2)).attr("y2",(t=>t.y2)).style("stroke",(t=>t.strokeFill)).style("stroke-width",(t=>t.strokeWidth)),e.selectAll("g.quadrant").data(c.quadrants).enter().append("g").attr("class","quadrant"))).append("rect").attr("x",(t=>t.x)).attr("y",(t=>t.y)).attr("width",(t=>t.width)).attr("height",(t=>t.height)).attr("fill",(t=>t.fill)),i.append("text").attr("x",0).attr("y",0).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>o(t.text.horizontalPos))).attr("text-anchor",(t=>l(t.text.verticalPos))).attr("transform",(t=>h(t.text))).text((t=>t.text.text)),r.selectAll("g.label").data(c.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((t=>t.text)).attr("fill",(t=>t.fill)).attr("font-size",(t=>t.fontSize)).attr("dominant-baseline",(t=>o(t.horizontalPos))).attr("text-anchor",(t=>l(t.verticalPos))).attr("transform",(t=>h(t))),(f=u.selectAll("g.data-point").data(c.points).enter().append("g").attr("class","data-point")).append("circle").attr("cx",(t=>t.x)).attr("cy",(t=>t.y)).attr("r",(t=>t.radius)).attr("fill",(t=>t.fill)).attr("stroke",(t=>t.strokeColor)).attr("stroke-width",(t=>t.strokeWidth)),f.append("text").attr("x",0).attr("y",0).text((t=>t.text.text)).attr("fill",(t=>t.text.fill)).attr("font-size",(t=>t.text.fontSize)).attr("dominant-baseline",(t=>o(t.text.horizontalPos))).attr("text-anchor",(t=>l(t.text.verticalPos))).attr("transform",(t=>h(t.text)))}),"draw")},styles:t((()=>""),"styles")};export{$ as diagram};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIvD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,WAAW,GAAG;IACxD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,QAAO;IAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAgBlH,CAAC;AAEF,eAAO,MAAM,iBAAiB,6CAAwE,qBAAqB;;;EASvH,CAAC;AAEL,eAAO,MAAM,sBAAsB,sCAAiE,6BAA6B;;;EAQ7H,CAAC;AAEL,eAAO,MAAM,mBAAmB,qCAAgE,qBAAqB;;;EASjH,CAAC;AAEL,eAAO,MAAM,gBAAgB,6CAAwE,cAAc;;;EAYlH,CAAC;AAEF,eAAO,MAAM,4BAA4B,iDAA4E,aAAa;;;EAU9H,CAAC;AAEL,eAAO,MAAM,6BAA6B,iDAA4E,aAAa;;;EAU/H,CAAC;AAEL,eAAO,MAAM,gBAAgB,uCAAkE,cAAc;;;EAQzG,CAAC;AAEL,eAAO,MAAM,cAAc;;;;eAAgG,MAAM;0DAShI,CAAC;AAEF,eAAO,MAAM,aAAa,iCAA4D,cAAc;;;EAUnG,CAAC;AAEF,eAAO,MAAM,sBAAsB,uCAAkE,cAAc;;;EAQ/G,CAAC;AAEL,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CAA0E,uBAAuB;;;EAQ1H,CAAC;AAEL,eAAO,MAAM,qBAAqB,iCAA4D,cAAc;;;EAUxG,CAAC;AAEL,eAAO,MAAM,gBAAgB;;SAMtB,MAAM;2BACW,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAMjD,CAAC;AAEL,eAAO,MAAM,YAAY,iCAA4D,kBAAkB;;;EASnG,CAAC;AAEL,eAAO,MAAM,eAAe;;;WAQnB,MAAM;2BACS,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,qBAAqB;gBAMpB,MAAM;;WAEX,MAAM;2BACS,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,cAAc;;UAMnB,MAAM;2BACU,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAUpD,CAAC;AAEF,eAAO,MAAM,cAAc;;UAMnB;QACJ,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB;2BACqB,WAAW,KAAK,QAAQ,IAAI,CAAC;MACjD,QAAQ;IAAE,IAAI,CAAC,EAAE,GAAG,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAYxC,CAAC"}