openwork-server 0.18.56 → 0.18.58

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 (299) hide show
  1. package/README.md +2 -2
  2. package/dist/opencode-plugin-deps-1.18.30.tgz +0 -0
  3. package/dist/opencode-plugins/opencode-stop-fence-client.js +6 -0
  4. package/dist/opencode-plugins/openwork-capabilities-knowledge.js +0 -5
  5. package/dist/opencode-plugins/openwork-cloud-skills-v2.js +114 -0
  6. package/dist/opencode-plugins/openwork-codemode-discovery-v2.js +60 -0
  7. package/dist/opencode-plugins/openwork-context-v2.js +13777 -1
  8. package/dist/opencode-plugins/openwork-extensions-preview-steering.js +1 -1
  9. package/dist/opencode-plugins/openwork-extensions-preview.js +97 -8
  10. package/dist/opencode-plugins/openwork-mcp-readiness-v2.js +192 -0
  11. package/dist/opencode-plugins/openwork-mcp-results-v2.js +10836 -13
  12. package/dist/opencode-plugins/openwork-provider-filters-v2.js +5 -7
  13. package/dist/openwork-server.mjs +3278 -3450
  14. package/package.json +1 -1
  15. package/web/assets/abnfDiagram-VCTEODGH-NpzjfSVw.js +1 -0
  16. package/web/assets/app-DAPWjSQy.js +2619 -0
  17. package/web/assets/app-Dt3ByUuG.css +32 -0
  18. package/web/assets/{arc-7SoIBvT7.js → arc-CHKYZ_eM.js} +1 -1
  19. package/web/assets/architectureDiagram-5GKGNRK7-CbtqO0tI.js +36 -0
  20. package/web/assets/{artifact-code-view-WLwX_I1h.js → artifact-code-view-BQF6eKZY.js} +2 -2
  21. package/web/assets/artifact-spreadsheet-editor-CQJKFbub.js +11 -0
  22. package/web/assets/{artifact-text-editor-BHyVrNyR.js → artifact-text-editor-B6E8-x3q.js} +2 -2
  23. package/web/assets/{blockDiagram-OSKFZWR5-Cvqr9DPi.js → blockDiagram-OSKFZWR5-Ceoouvgp.js} +3 -3
  24. package/web/assets/{c4Diagram-7LVT6UL2-CWTWC9C1.js → c4Diagram-7LVT6UL2-DeZ6n4qW.js} +2 -2
  25. package/web/assets/channel-BA95BnJ8.js +1 -0
  26. package/web/assets/{chunk-2Q5K7J3B-DpJkzZ5x.js → chunk-2Q5K7J3B-CpycWP6o.js} +1 -1
  27. package/web/assets/{chunk-5VM5RSS4-BtTBnr9m.js → chunk-5VM5RSS4-DhEpcp77.js} +1 -1
  28. package/web/assets/{chunk-F27PBJKO-BbAvFJAg.js → chunk-F27PBJKO-D0H-x4y2.js} +1 -1
  29. package/web/assets/{chunk-HLEWEB6X-DX5mKBrj.js → chunk-HLEWEB6X-CApTHm_u.js} +1 -1
  30. package/web/assets/{chunk-JWPE2WC7-CugB1e5O.js → chunk-JWPE2WC7-BHCjUPpx.js} +1 -1
  31. package/web/assets/{chunk-POPQ4Y6H-BQ-bWmmo.js → chunk-POPQ4Y6H-CQhggViX.js} +1 -1
  32. package/web/assets/{chunk-SVP7TREG-szCI_Kz9.js → chunk-SVP7TREG-CpeIJurV.js} +1 -1
  33. package/web/assets/{chunk-XXDRQBXY-C5UTO899.js → chunk-XXDRQBXY-CLRkKkAV.js} +1 -1
  34. package/web/assets/{chunk-ZLD2IHE6-D5v_jiDg.js → chunk-ZLD2IHE6-BdYnQ042.js} +1 -1
  35. package/web/assets/classDiagram-CYGNFDIV-DEYczDTV.js +1 -0
  36. package/web/assets/classDiagram-v2-TLXNO2FR-DEYczDTV.js +1 -0
  37. package/web/assets/cose-bilkent-JH36ORCC-DmF8vX7k.js +1 -0
  38. package/web/assets/{cynefin-OW5HDTMX-DSTjm6jO.js → cynefin-OW5HDTMX-NLetkEsX.js} +1 -1
  39. package/web/assets/cynefinDiagram-5FMLGOSQ-DKP1VgT5.js +62 -0
  40. package/web/assets/{dagre-OS7QT2EB-BZMseQyA.js → dagre-OS7QT2EB-CRAAAd8s.js} +2 -2
  41. package/web/assets/{diagram-S7CK7UJ4-Cs2hsmEJ.js → diagram-S7CK7UJ4-DpAtNlvk.js} +2 -2
  42. package/web/assets/diagram-UQ7AKVKN-D3OPArp4.js +41 -0
  43. package/web/assets/{diagram-VSXAHHWV-DxKXQXAC.js → diagram-VSXAHHWV-Ce3MQsSX.js} +2 -2
  44. package/web/assets/diagram-VX7I27RA-DMNK9KDH.js +24 -0
  45. package/web/assets/diagram-Z3DM3KII-CCUXCTwV.js +24 -0
  46. package/web/assets/ebnfDiagram-PWID7BFC-Ch1ZBqfh.js +1 -0
  47. package/web/assets/{erDiagram-2YWLMYGG-B0Mdv5WO.js → erDiagram-2YWLMYGG-DfRCB-xW.js} +2 -2
  48. package/web/assets/{flowDiagram-T62WH6J4-CUnt9AMo.js → flowDiagram-T62WH6J4-Ch9kGwk1.js} +1 -1
  49. package/web/assets/ganttDiagram-EL5Y4UJY-BzB0WGSq.js +292 -0
  50. package/web/assets/gitGraphDiagram-WWUBYQGX-Brbs3apz.js +106 -0
  51. package/web/assets/infoDiagram-FKFFQAWI-Ca71MEwH.js +2 -0
  52. package/web/assets/{ishikawaDiagram-5VMMS53U-jNVSJSu1.js → ishikawaDiagram-5VMMS53U-D0wX8tOf.js} +2 -2
  53. package/web/assets/{journeyDiagram-EYS64GPL-De3j0gPh.js → journeyDiagram-EYS64GPL-PeZPacru.js} +2 -2
  54. package/web/assets/{kanban-definition-UXKFOSKX-Bbc8wjhq.js → kanban-definition-UXKFOSKX-BLh162tT.js} +2 -2
  55. package/web/assets/{layout-BIjP2nup.js → layout-C0RknDsU.js} +1 -1
  56. package/web/assets/{linear-lvQZOiHM.js → linear-B9CiaY59.js} +1 -1
  57. package/web/assets/{mermaid.core-LJPf4T7o.js → mermaid.core-CPTixcx8.js} +10 -10
  58. package/web/assets/{mindmap-definition-THT77NOG-DiboHsg8.js → mindmap-definition-THT77NOG-BKk-svp_.js} +2 -2
  59. package/web/assets/pegDiagram-XKGWAZYB-Bs6f-6OM.js +1 -0
  60. package/web/assets/{pieDiagram-E7YTZNPT-bPvBuBuG.js → pieDiagram-E7YTZNPT-O9rjTBOJ.js} +2 -2
  61. package/web/assets/{quadrantDiagram-AXDQQJYC-BGyrQhlH.js → quadrantDiagram-AXDQQJYC-MPWJAd0o.js} +2 -2
  62. package/web/assets/railroadDiagram-O6MQD6OU-CmtyQoYY.js +1 -0
  63. package/web/assets/{requirementDiagram-IS5BZ75X-atdASt4G.js → requirementDiagram-IS5BZ75X-CiLZ0RyK.js} +2 -2
  64. package/web/assets/{sankeyDiagram-P5KCCOFB-BV9prEKy.js → sankeyDiagram-P5KCCOFB-BLbDh3R4.js} +2 -2
  65. package/web/assets/{sequenceDiagram-WJ2MYXX4-Csfm-fZ-.js → sequenceDiagram-WJ2MYXX4-DQMbAIgI.js} +2 -2
  66. package/web/assets/sizeCapture-INFHLROL-Di7AzhHC.js +1 -0
  67. package/web/assets/stateDiagram-XQSTLZYL-VqhUG217.js +1 -0
  68. package/web/assets/stateDiagram-v2-IH3M54BS-BXsiZKn6.js +1 -0
  69. package/web/assets/swimlanes-V6O3JKXN-BkN28nKF.js +1 -0
  70. package/web/assets/swimlanesDiagram-JKAHXJPX-BuF8_99Y.js +8 -0
  71. package/web/assets/{timeline-definition-24CTP7MA-C8X71OnL.js → timeline-definition-24CTP7MA-B-p3ba39.js} +2 -2
  72. package/web/assets/{vennDiagram-4TSXK5OY-BZo-99ra.js → vennDiagram-4TSXK5OY-Cggk7sJ0.js} +2 -2
  73. package/web/assets/{wardleyDiagram-VM6X3IG4-BHwH6ZLg.js → wardleyDiagram-VM6X3IG4-DZ8iGx_0.js} +2 -2
  74. package/web/assets/{workspace-file-tree-C8iSfvPt.js → workspace-file-tree-BKLzftpj.js} +2 -2
  75. package/web/assets/{xychartDiagram-S5SC5T6Z-BieEi319.js → xychartDiagram-S5SC5T6Z-Dg1J2qoX.js} +2 -2
  76. package/web/ext-microsoft-365.svg +1 -0
  77. package/web/index.html +2 -4
  78. package/web/assets/abnfDiagram-VCTEODGH-Dr1YMfll.js +0 -1
  79. package/web/assets/app-D9Nvta88.js +0 -2631
  80. package/web/assets/app-DOrYoP_4.css +0 -32
  81. package/web/assets/architectureDiagram-5GKGNRK7-BZwevfH9.js +0 -36
  82. package/web/assets/artifact-spreadsheet-editor-BvEnxKsm.js +0 -11
  83. package/web/assets/channel-BkgEJbR-.js +0 -1
  84. package/web/assets/classDiagram-CYGNFDIV-BHINh3-f.js +0 -1
  85. package/web/assets/classDiagram-v2-TLXNO2FR-BHINh3-f.js +0 -1
  86. package/web/assets/cose-bilkent-JH36ORCC-BhG_zAfo.js +0 -1
  87. package/web/assets/cynefinDiagram-5FMLGOSQ-Dqkgb6tF.js +0 -62
  88. package/web/assets/diagram-UQ7AKVKN-CDnRP_yz.js +0 -41
  89. package/web/assets/diagram-VX7I27RA-BJKoseDf.js +0 -24
  90. package/web/assets/diagram-Z3DM3KII-DDcMvRxo.js +0 -24
  91. package/web/assets/ebnfDiagram-PWID7BFC-C2uUm-CC.js +0 -1
  92. package/web/assets/ganttDiagram-EL5Y4UJY-CENsUToC.js +0 -292
  93. package/web/assets/gitGraphDiagram-WWUBYQGX-CrbKh94B.js +0 -106
  94. package/web/assets/index-CyyMNIC_.css +0 -1
  95. package/web/assets/index-D6FUvVB1.js +0 -49
  96. package/web/assets/infoDiagram-FKFFQAWI-B-U-x_qU.js +0 -2
  97. package/web/assets/katex-HP8lGamR.js +0 -257
  98. package/web/assets/overlay-DA5SOee-.js +0 -1
  99. package/web/assets/pegDiagram-XKGWAZYB-DO_edVtr.js +0 -1
  100. package/web/assets/railroadDiagram-O6MQD6OU-XhPIuoOE.js +0 -1
  101. package/web/assets/sizeCapture-INFHLROL-CLmH-AjF.js +0 -1
  102. package/web/assets/stateDiagram-XQSTLZYL-yiSt2fJK.js +0 -1
  103. package/web/assets/stateDiagram-v2-IH3M54BS-BEhxOujx.js +0 -1
  104. package/web/assets/swimlanes-V6O3JKXN-BpXNggx9.js +0 -1
  105. package/web/assets/swimlanesDiagram-JKAHXJPX-DWqwFv9F.js +0 -8
  106. package/web/grain-art/extension/extension-001.png +0 -0
  107. package/web/grain-art/extension/extension-002.png +0 -0
  108. package/web/grain-art/extension/extension-003.png +0 -0
  109. package/web/grain-art/extension/extension-004.png +0 -0
  110. package/web/grain-art/extension/extension-005.png +0 -0
  111. package/web/grain-art/extension/extension-006.png +0 -0
  112. package/web/grain-art/extension/extension-007.png +0 -0
  113. package/web/grain-art/extension/extension-008.png +0 -0
  114. package/web/grain-art/extension/extension-009.png +0 -0
  115. package/web/grain-art/extension/extension-010.png +0 -0
  116. package/web/grain-art/extension/extension-011.png +0 -0
  117. package/web/grain-art/extension/extension-012.png +0 -0
  118. package/web/grain-art/extension/extension-013.png +0 -0
  119. package/web/grain-art/extension/extension-014.png +0 -0
  120. package/web/grain-art/extension/extension-015.png +0 -0
  121. package/web/grain-art/extension/extension-016.png +0 -0
  122. package/web/grain-art/extension/extension-017.png +0 -0
  123. package/web/grain-art/extension/extension-018.png +0 -0
  124. package/web/grain-art/extension/extension-019.png +0 -0
  125. package/web/grain-art/extension/extension-020.png +0 -0
  126. package/web/grain-art/extension/extension-021.png +0 -0
  127. package/web/grain-art/extension/extension-022.png +0 -0
  128. package/web/grain-art/extension/extension-023.png +0 -0
  129. package/web/grain-art/extension/extension-024.png +0 -0
  130. package/web/grain-art/extension/extension-025.png +0 -0
  131. package/web/grain-art/extension/extension-026.png +0 -0
  132. package/web/grain-art/extension/extension-027.png +0 -0
  133. package/web/grain-art/extension/extension-028.png +0 -0
  134. package/web/grain-art/extension/extension-029.png +0 -0
  135. package/web/grain-art/extension/extension-030.png +0 -0
  136. package/web/grain-art/extension/extension-031.png +0 -0
  137. package/web/grain-art/extension/extension-032.png +0 -0
  138. package/web/grain-art/fallback/fallback-001.png +0 -0
  139. package/web/grain-art/fallback/fallback-002.png +0 -0
  140. package/web/grain-art/fallback/fallback-003.png +0 -0
  141. package/web/grain-art/fallback/fallback-004.png +0 -0
  142. package/web/grain-art/fallback/fallback-005.png +0 -0
  143. package/web/grain-art/fallback/fallback-006.png +0 -0
  144. package/web/grain-art/fallback/fallback-007.png +0 -0
  145. package/web/grain-art/fallback/fallback-008.png +0 -0
  146. package/web/grain-art/fallback/fallback-009.png +0 -0
  147. package/web/grain-art/fallback/fallback-010.png +0 -0
  148. package/web/grain-art/fallback/fallback-011.png +0 -0
  149. package/web/grain-art/fallback/fallback-012.png +0 -0
  150. package/web/grain-art/fallback/fallback-013.png +0 -0
  151. package/web/grain-art/fallback/fallback-014.png +0 -0
  152. package/web/grain-art/fallback/fallback-015.png +0 -0
  153. package/web/grain-art/fallback/fallback-016.png +0 -0
  154. package/web/grain-art/fallback/fallback-017.png +0 -0
  155. package/web/grain-art/fallback/fallback-018.png +0 -0
  156. package/web/grain-art/fallback/fallback-019.png +0 -0
  157. package/web/grain-art/fallback/fallback-020.png +0 -0
  158. package/web/grain-art/fallback/fallback-021.png +0 -0
  159. package/web/grain-art/fallback/fallback-022.png +0 -0
  160. package/web/grain-art/fallback/fallback-023.png +0 -0
  161. package/web/grain-art/fallback/fallback-024.png +0 -0
  162. package/web/grain-art/fallback/fallback-025.png +0 -0
  163. package/web/grain-art/fallback/fallback-026.png +0 -0
  164. package/web/grain-art/fallback/fallback-027.png +0 -0
  165. package/web/grain-art/fallback/fallback-028.png +0 -0
  166. package/web/grain-art/fallback/fallback-029.png +0 -0
  167. package/web/grain-art/fallback/fallback-030.png +0 -0
  168. package/web/grain-art/fallback/fallback-031.png +0 -0
  169. package/web/grain-art/fallback/fallback-032.png +0 -0
  170. package/web/grain-art/mcps/mcps-001.png +0 -0
  171. package/web/grain-art/mcps/mcps-002.png +0 -0
  172. package/web/grain-art/mcps/mcps-003.png +0 -0
  173. package/web/grain-art/mcps/mcps-004.png +0 -0
  174. package/web/grain-art/mcps/mcps-005.png +0 -0
  175. package/web/grain-art/mcps/mcps-006.png +0 -0
  176. package/web/grain-art/mcps/mcps-007.png +0 -0
  177. package/web/grain-art/mcps/mcps-008.png +0 -0
  178. package/web/grain-art/mcps/mcps-009.png +0 -0
  179. package/web/grain-art/mcps/mcps-010.png +0 -0
  180. package/web/grain-art/mcps/mcps-011.png +0 -0
  181. package/web/grain-art/mcps/mcps-012.png +0 -0
  182. package/web/grain-art/mcps/mcps-013.png +0 -0
  183. package/web/grain-art/mcps/mcps-014.png +0 -0
  184. package/web/grain-art/mcps/mcps-015.png +0 -0
  185. package/web/grain-art/mcps/mcps-016.png +0 -0
  186. package/web/grain-art/mcps/mcps-017.png +0 -0
  187. package/web/grain-art/mcps/mcps-018.png +0 -0
  188. package/web/grain-art/mcps/mcps-019.png +0 -0
  189. package/web/grain-art/mcps/mcps-020.png +0 -0
  190. package/web/grain-art/mcps/mcps-021.png +0 -0
  191. package/web/grain-art/mcps/mcps-022.png +0 -0
  192. package/web/grain-art/mcps/mcps-023.png +0 -0
  193. package/web/grain-art/mcps/mcps-024.png +0 -0
  194. package/web/grain-art/mcps/mcps-025.png +0 -0
  195. package/web/grain-art/mcps/mcps-026.png +0 -0
  196. package/web/grain-art/mcps/mcps-027.png +0 -0
  197. package/web/grain-art/mcps/mcps-028.png +0 -0
  198. package/web/grain-art/mcps/mcps-029.png +0 -0
  199. package/web/grain-art/mcps/mcps-030.png +0 -0
  200. package/web/grain-art/mcps/mcps-031.png +0 -0
  201. package/web/grain-art/mcps/mcps-032.png +0 -0
  202. package/web/grain-art/plugins/plugins-001.png +0 -0
  203. package/web/grain-art/plugins/plugins-002.png +0 -0
  204. package/web/grain-art/plugins/plugins-003.png +0 -0
  205. package/web/grain-art/plugins/plugins-004.png +0 -0
  206. package/web/grain-art/plugins/plugins-005.png +0 -0
  207. package/web/grain-art/plugins/plugins-006.png +0 -0
  208. package/web/grain-art/plugins/plugins-007.png +0 -0
  209. package/web/grain-art/plugins/plugins-008.png +0 -0
  210. package/web/grain-art/plugins/plugins-009.png +0 -0
  211. package/web/grain-art/plugins/plugins-010.png +0 -0
  212. package/web/grain-art/plugins/plugins-011.png +0 -0
  213. package/web/grain-art/plugins/plugins-012.png +0 -0
  214. package/web/grain-art/plugins/plugins-013.png +0 -0
  215. package/web/grain-art/plugins/plugins-014.png +0 -0
  216. package/web/grain-art/plugins/plugins-015.png +0 -0
  217. package/web/grain-art/plugins/plugins-016.png +0 -0
  218. package/web/grain-art/plugins/plugins-017.png +0 -0
  219. package/web/grain-art/plugins/plugins-018.png +0 -0
  220. package/web/grain-art/plugins/plugins-019.png +0 -0
  221. package/web/grain-art/plugins/plugins-020.png +0 -0
  222. package/web/grain-art/plugins/plugins-021.png +0 -0
  223. package/web/grain-art/plugins/plugins-022.png +0 -0
  224. package/web/grain-art/plugins/plugins-023.png +0 -0
  225. package/web/grain-art/plugins/plugins-024.png +0 -0
  226. package/web/grain-art/plugins/plugins-025.png +0 -0
  227. package/web/grain-art/plugins/plugins-026.png +0 -0
  228. package/web/grain-art/plugins/plugins-027.png +0 -0
  229. package/web/grain-art/plugins/plugins-028.png +0 -0
  230. package/web/grain-art/plugins/plugins-029.png +0 -0
  231. package/web/grain-art/plugins/plugins-030.png +0 -0
  232. package/web/grain-art/plugins/plugins-031.png +0 -0
  233. package/web/grain-art/plugins/plugins-032.png +0 -0
  234. package/web/grain-art/skills/skills-001.png +0 -0
  235. package/web/grain-art/skills/skills-002.png +0 -0
  236. package/web/grain-art/skills/skills-003.png +0 -0
  237. package/web/grain-art/skills/skills-004.png +0 -0
  238. package/web/grain-art/skills/skills-005.png +0 -0
  239. package/web/grain-art/skills/skills-006.png +0 -0
  240. package/web/grain-art/skills/skills-007.png +0 -0
  241. package/web/grain-art/skills/skills-008.png +0 -0
  242. package/web/grain-art/skills/skills-009.png +0 -0
  243. package/web/grain-art/skills/skills-010.png +0 -0
  244. package/web/grain-art/skills/skills-011.png +0 -0
  245. package/web/grain-art/skills/skills-012.png +0 -0
  246. package/web/grain-art/skills/skills-013.png +0 -0
  247. package/web/grain-art/skills/skills-014.png +0 -0
  248. package/web/grain-art/skills/skills-015.png +0 -0
  249. package/web/grain-art/skills/skills-016.png +0 -0
  250. package/web/grain-art/skills/skills-017.png +0 -0
  251. package/web/grain-art/skills/skills-018.png +0 -0
  252. package/web/grain-art/skills/skills-019.png +0 -0
  253. package/web/grain-art/skills/skills-020.png +0 -0
  254. package/web/grain-art/skills/skills-021.png +0 -0
  255. package/web/grain-art/skills/skills-022.png +0 -0
  256. package/web/grain-art/skills/skills-023.png +0 -0
  257. package/web/grain-art/skills/skills-024.png +0 -0
  258. package/web/grain-art/skills/skills-025.png +0 -0
  259. package/web/grain-art/skills/skills-026.png +0 -0
  260. package/web/grain-art/skills/skills-027.png +0 -0
  261. package/web/grain-art/skills/skills-028.png +0 -0
  262. package/web/grain-art/skills/skills-029.png +0 -0
  263. package/web/grain-art/skills/skills-030.png +0 -0
  264. package/web/grain-art/skills/skills-031.png +0 -0
  265. package/web/grain-art/skills/skills-032.png +0 -0
  266. package/web/grain-art/workspaces/workspaces-001.png +0 -0
  267. package/web/grain-art/workspaces/workspaces-002.png +0 -0
  268. package/web/grain-art/workspaces/workspaces-003.png +0 -0
  269. package/web/grain-art/workspaces/workspaces-004.png +0 -0
  270. package/web/grain-art/workspaces/workspaces-005.png +0 -0
  271. package/web/grain-art/workspaces/workspaces-006.png +0 -0
  272. package/web/grain-art/workspaces/workspaces-007.png +0 -0
  273. package/web/grain-art/workspaces/workspaces-008.png +0 -0
  274. package/web/grain-art/workspaces/workspaces-009.png +0 -0
  275. package/web/grain-art/workspaces/workspaces-010.png +0 -0
  276. package/web/grain-art/workspaces/workspaces-011.png +0 -0
  277. package/web/grain-art/workspaces/workspaces-012.png +0 -0
  278. package/web/grain-art/workspaces/workspaces-013.png +0 -0
  279. package/web/grain-art/workspaces/workspaces-014.png +0 -0
  280. package/web/grain-art/workspaces/workspaces-015.png +0 -0
  281. package/web/grain-art/workspaces/workspaces-016.png +0 -0
  282. package/web/grain-art/workspaces/workspaces-017.png +0 -0
  283. package/web/grain-art/workspaces/workspaces-018.png +0 -0
  284. package/web/grain-art/workspaces/workspaces-019.png +0 -0
  285. package/web/grain-art/workspaces/workspaces-020.png +0 -0
  286. package/web/grain-art/workspaces/workspaces-021.png +0 -0
  287. package/web/grain-art/workspaces/workspaces-022.png +0 -0
  288. package/web/grain-art/workspaces/workspaces-023.png +0 -0
  289. package/web/grain-art/workspaces/workspaces-024.png +0 -0
  290. package/web/grain-art/workspaces/workspaces-025.png +0 -0
  291. package/web/grain-art/workspaces/workspaces-026.png +0 -0
  292. package/web/grain-art/workspaces/workspaces-027.png +0 -0
  293. package/web/grain-art/workspaces/workspaces-028.png +0 -0
  294. package/web/grain-art/workspaces/workspaces-029.png +0 -0
  295. package/web/grain-art/workspaces/workspaces-030.png +0 -0
  296. package/web/grain-art/workspaces/workspaces-031.png +0 -0
  297. package/web/grain-art/workspaces/workspaces-032.png +0 -0
  298. package/web/openwork-logo.svg +0 -1
  299. package/web/overlay.html +0 -29
@@ -1,4 +1,4 @@
1
- import{r as U,j as oe,c as Ul}from"./index-D6FUvVB1.js";import{b as Kl,u as Wl,I as Gl,c as Yl,S as Xl,d as Ql,B as Jl,R as Zl}from"./app-D9Nvta88.js";const cr="file-tree-container",vo="data-file-tree-style",yo="data-file-tree-unsafe-css",ea="data-file-tree-scrollbar-measure",bo="data-file-tree-scrollbar-gutter-measured",ta="--trees-scrollbar-gutter-measured",Vn="header",Yt="context-menu",na="context-menu-trigger",Io=typeof window>"u"?U.useEffect:U.useLayoutEffect;function ra(e,t,n){const r=e!=null?oe.jsx("div",{slot:Vn,children:e}):null,o=t!=null&&n!=null?oe.jsx("div",{slot:Yt,children:t(n.item,n.context)}):null;return r==null&&o==null?null:oe.jsxs(oe.Fragment,{children:[r,o]})}function oa(e,t){return typeof window>"u"&&t!=null?oe.jsxs(oe.Fragment,{children:[oe.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):oe.jsx(oe.Fragment,{children:e})}function ia(e){const t=e.shadowRoot;return t?.querySelector("[data-file-tree-id]")instanceof HTMLElement||t?.querySelector("[data-file-tree-id]")instanceof SVGElement?!0:e.querySelector('template[shadowrootmode="open"]')instanceof HTMLTemplateElement}function sa(e,t,n,r,o){const i={...e??{}};if(t!=null&&delete i.header,n){const s=e?.contextMenu,l=s?.onClose,a=s?.onOpen;i.contextMenu={...s??{},enabled:!0,onClose:()=>{l?.(),r()},onOpen:(d,h)=>{o(d,h),a?.(d,h)}},delete i.contextMenu.render}return i.header!=null||i.contextMenu!=null?i:void 0}function la({header:e,id:t,model:n,preloadedData:r,renderContextMenu:o,...i}){const[s,l]=U.useState(null),[a,d]=U.useState(null),h=U.useRef(n.getComposition()),f=U.useRef(n);f.current!==n&&(f.current=n,h.current=n.getComposition());const c=o!=null,m=U.useCallback(()=>{l(null)},[]),p=U.useCallback((S,E)=>{l({context:E,item:S})},[]),g=h.current,v=U.useMemo(()=>sa(g,e,c,m,p),[g,m,p,c,e]),w=U.useCallback(S=>{d(S)},[]);U.useEffect(()=>{c||l(null)},[c]),Io(()=>{n.setComposition(v)},[v,n]),Io(()=>{if(a!=null)return r!=null&&ia(a)?n.hydrate({fileTreeContainer:a}):n.render({fileTreeContainer:a}),()=>{n.unmount(),n.setComposition(g)}},[g,a,n,r]);const x=oa(ra(e,o,s),r),b=t??r?.id,I={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...i.style};return oe.jsx(cr,{...i,id:b,ref:w,style:I,suppressHydrationWarning:r!=null,children:x})}const zi=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
1
+ import{r as U,j as oe,d as Ul,u as Kl,I as Wl,e as Gl,S as Yl,h as Xl,B as Ql,R as Jl,c as Zl}from"./app-DAPWjSQy.js";const cr="file-tree-container",vo="data-file-tree-style",yo="data-file-tree-unsafe-css",ea="data-file-tree-scrollbar-measure",bo="data-file-tree-scrollbar-gutter-measured",ta="--trees-scrollbar-gutter-measured",Vn="header",Yt="context-menu",na="context-menu-trigger",Io=typeof window>"u"?U.useEffect:U.useLayoutEffect;function ra(e,t,n){const r=e!=null?oe.jsx("div",{slot:Vn,children:e}):null,o=t!=null&&n!=null?oe.jsx("div",{slot:Yt,children:t(n.item,n.context)}):null;return r==null&&o==null?null:oe.jsxs(oe.Fragment,{children:[r,o]})}function oa(e,t){return typeof window>"u"&&t!=null?oe.jsxs(oe.Fragment,{children:[oe.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:t.shadowHtml}}),e]}):oe.jsx(oe.Fragment,{children:e})}function ia(e){const t=e.shadowRoot;return t?.querySelector("[data-file-tree-id]")instanceof HTMLElement||t?.querySelector("[data-file-tree-id]")instanceof SVGElement?!0:e.querySelector('template[shadowrootmode="open"]')instanceof HTMLTemplateElement}function sa(e,t,n,r,o){const i={...e??{}};if(t!=null&&delete i.header,n){const s=e?.contextMenu,l=s?.onClose,a=s?.onOpen;i.contextMenu={...s??{},enabled:!0,onClose:()=>{l?.(),r()},onOpen:(d,h)=>{o(d,h),a?.(d,h)}},delete i.contextMenu.render}return i.header!=null||i.contextMenu!=null?i:void 0}function la({header:e,id:t,model:n,preloadedData:r,renderContextMenu:o,...i}){const[s,l]=U.useState(null),[a,d]=U.useState(null),h=U.useRef(n.getComposition()),f=U.useRef(n);f.current!==n&&(f.current=n,h.current=n.getComposition());const c=o!=null,m=U.useCallback(()=>{l(null)},[]),p=U.useCallback((S,E)=>{l({context:E,item:S})},[]),g=h.current,v=U.useMemo(()=>sa(g,e,c,m,p),[g,m,p,c,e]),w=U.useCallback(S=>{d(S)},[]);U.useEffect(()=>{c||l(null)},[c]),Io(()=>{n.setComposition(v)},[v,n]),Io(()=>{if(a!=null)return r!=null&&ia(a)?n.hydrate({fileTreeContainer:a}):n.render({fileTreeContainer:a}),()=>{n.unmount(),n.setComposition(g)}},[g,a,n,r]);const x=oa(ra(e,o,s),r),b=t??r?.id,I={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...i.style};return oe.jsx(cr,{...i,id:b,ref:w,style:I,suppressHydrationWarning:r!=null,children:x})}const zi=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
2
2
  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
3
3
  <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
4
4
  </symbol>
@@ -1275,4 +1275,4 @@ import{r as U,j as oe,c as Ul}from"./index-D6FUvVB1.js";import{b as Kl,u as Wl,I
1275
1275
  --trees-font-size-override: 12px;
1276
1276
  }
1277
1277
  button[data-type='item'] { border-radius: 5px; }
1278
- `;function hf(e,t,n){const r=document.createElement("div");r.setAttribute("role","menu"),r.className="bg-popover text-popover-foreground min-w-36 rounded-lg border border-border p-1 shadow-md";for(const o of t){const i=document.createElement("button");i.type="button",i.setAttribute("role","menuitem"),i.className="hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground flex w-full items-center rounded-md px-2 py-1.5 text-start text-xs outline-none",i.textContent=o.label,i.addEventListener("click",()=>{n(),o.run(e)}),r.appendChild(i)}return r}function ff(e){return e.kind==="dir"?`${e.path}/`:e.path}function gf({client:e,workspaceId:t,workspaceName:n,selectedPath:r,onOpenFile:o,fileActions:i}){const s=Kl(),l=U.useRef(s);l.current=s;const a=Wl({queryKey:["workspace-file-tree",t],queryFn:()=>e.listWorkspaceFiles(t),staleTime:3e4,refetchOnWindowFocus:!1}),d=a.data?.items??[],h=U.useMemo(()=>new Map(d.map(v=>[v.path,v])),[d]),f=U.useRef(h);f.current=h;const c=U.useRef(i);c.current=i;const m=U.useMemo(()=>d.map(ff),[d]),{model:p}=of({composition:{contextMenu:{triggerMode:"both",buttonVisibility:"when-needed",onOpen:(v,w)=>{const x=l.current;if(!x||(w.close(),v.kind!=="file"))return;const b=f.current.get(v.path.replace(/\/$/,"")),I=c.current??[];!b||b.kind!=="file"||I.length===0||x(I.map(S=>({type:"item",id:S.id,label:S.label,onSelect:()=>S.run(b)})),{point:{x:w.anchorRect.left,y:w.anchorRect.bottom}})},render:(v,w)=>{if(l.current||v.kind!=="file")return null;const x=f.current.get(v.path.replace(/\/$/,"")),b=c.current??[];return!x||x.kind!=="file"||b.length===0?null:hf(x,b,()=>w.close())}}},density:"compact",fileTreeSearchMode:"hide-non-matches",flattenEmptyDirectories:!0,initialExpansion:1,onSelectionChange:v=>{const w=v.at(-1)?.replace(/\/$/,""),x=w?f.current.get(w):void 0;x?.kind==="file"&&o(x)},paths:[],search:!1,unsafeCSS:df}),g=uf(p);return U.useEffect(()=>p.resetPaths(m),[p,m]),U.useEffect(()=>{const v=p.getItem(r);if(v){for(const w of p.getSelectedPaths())p.getItem(w)?.deselect();v.select()}},[p,m,r]),oe.jsxs("aside",{className:"flex h-full min-h-0 w-40 shrink-0 flex-col border-r border-border bg-muted/20","data-workspace-file-tree":!0,"data-workspace-file-count":d.length,children:[oe.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border px-1.5",children:[oe.jsxs(Gl,{className:"h-7 min-w-0 flex-1 bg-background",children:[oe.jsx(Yl,{align:"inline-start",children:oe.jsx(Xl,{})}),oe.jsx(Ql,{"aria-label":`Search ${n} files`,placeholder:"Search files",value:g.value,onChange:v=>{const w=v.target.value;w.trim()?g.setValue(w):g.close()}})]}),oe.jsx(Jl,{variant:"ghost",size:"icon-xs","aria-label":"Refresh workspace files",onClick:()=>void a.refetch(),children:oe.jsx(Zl,{className:Ul(a.isFetching&&"animate-spin")})})]}),a.isError?oe.jsx("p",{role:"alert",className:"p-3 text-xs text-dls-secondary",children:"Could not load workspace files. Use Refresh to try again."}):oe.jsx(la,{model:p,"aria-label":`${n} files`,className:"min-h-0 flex-1 overflow-hidden",style:{"--trees-fg-override":"var(--foreground)"}}),a.data?.incomplete?oe.jsx("p",{role:"status",className:"border-t border-border px-2 py-1 text-[10px] text-muted-foreground",children:"Some folders could not be read. Check their permissions and refresh."}):null]})}export{gf as WorkspaceFileTree};
1278
+ `;function hf(e,t,n){const r=document.createElement("div");r.setAttribute("role","menu"),r.className="bg-popover text-popover-foreground min-w-36 rounded-lg border border-border p-1 shadow-md";for(const o of t){const i=document.createElement("button");i.type="button",i.setAttribute("role","menuitem"),i.className="hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground flex w-full items-center rounded-md px-2 py-1.5 text-start text-xs outline-none",i.textContent=o.label,i.addEventListener("click",()=>{n(),o.run(e)}),r.appendChild(i)}return r}function ff(e){return e.kind==="dir"?`${e.path}/`:e.path}function mf({client:e,workspaceId:t,workspaceName:n,selectedPath:r,onOpenFile:o,fileActions:i}){const s=Ul(),l=U.useRef(s);l.current=s;const a=Kl({queryKey:["workspace-file-tree",t],queryFn:()=>e.listWorkspaceFiles(t),staleTime:3e4,refetchOnWindowFocus:!1}),d=a.data?.items??[],h=U.useMemo(()=>new Map(d.map(v=>[v.path,v])),[d]),f=U.useRef(h);f.current=h;const c=U.useRef(i);c.current=i;const m=U.useMemo(()=>d.map(ff),[d]),{model:p}=of({composition:{contextMenu:{triggerMode:"both",buttonVisibility:"when-needed",onOpen:(v,w)=>{const x=l.current;if(!x||(w.close(),v.kind!=="file"))return;const b=f.current.get(v.path.replace(/\/$/,"")),I=c.current??[];!b||b.kind!=="file"||I.length===0||x(I.map(S=>({type:"item",id:S.id,label:S.label,onSelect:()=>S.run(b)})),{point:{x:w.anchorRect.left,y:w.anchorRect.bottom}})},render:(v,w)=>{if(l.current||v.kind!=="file")return null;const x=f.current.get(v.path.replace(/\/$/,"")),b=c.current??[];return!x||x.kind!=="file"||b.length===0?null:hf(x,b,()=>w.close())}}},density:"compact",fileTreeSearchMode:"hide-non-matches",flattenEmptyDirectories:!0,initialExpansion:1,onSelectionChange:v=>{const w=v.at(-1)?.replace(/\/$/,""),x=w?f.current.get(w):void 0;x?.kind==="file"&&o(x)},paths:[],search:!1,unsafeCSS:df}),g=uf(p);return U.useEffect(()=>p.resetPaths(m),[p,m]),U.useEffect(()=>{const v=p.getItem(r);if(v){for(const w of p.getSelectedPaths())p.getItem(w)?.deselect();v.select()}},[p,m,r]),oe.jsxs("aside",{className:"flex h-full min-h-0 w-40 shrink-0 flex-col border-r border-border bg-muted/20","data-workspace-file-tree":!0,"data-workspace-file-count":d.length,children:[oe.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border px-1.5",children:[oe.jsxs(Wl,{className:"h-7 min-w-0 flex-1 bg-background",children:[oe.jsx(Gl,{align:"inline-start",children:oe.jsx(Yl,{})}),oe.jsx(Xl,{"aria-label":`Search ${n} files`,placeholder:"Search files",value:g.value,onChange:v=>{const w=v.target.value;w.trim()?g.setValue(w):g.close()}})]}),oe.jsx(Ql,{variant:"ghost",size:"icon-xs","aria-label":"Refresh workspace files",onClick:()=>void a.refetch(),children:oe.jsx(Jl,{className:Zl(a.isFetching&&"animate-spin")})})]}),a.isError?oe.jsx("p",{role:"alert",className:"p-3 text-xs text-dls-secondary",children:"Could not load workspace files. Use Refresh to try again."}):oe.jsx(la,{model:p,"aria-label":`${n} files`,className:"min-h-0 flex-1 overflow-hidden",style:{"--trees-fg-override":"var(--foreground)"}}),a.data?.incomplete?oe.jsx("p",{role:"status",className:"border-t border-border px-2 py-1 text-[10px] text-muted-foreground",children:"Some folders could not be read. Check their permissions and refresh."}):null]})}export{mf as WorkspaceFileTree};
@@ -1,7 +1,7 @@
1
- import{s as ai,g as oi,q as It,p as ri,a as hi,b as li,_ as a,l as Bt,G as ci,d as gi,r as ui,A as mt,i as di,D as zt,E as xi,X as fi,aB as pi,a8 as vt}from"./mermaid.core-LJPf4T7o.js";import{i as mi}from"./init-Gi6I4Gst.js";import{o as yi}from"./ordinal-Cboi1Yqb.js";import{l as Lt}from"./linear-lvQZOiHM.js";import"./app-D9Nvta88.js";import"./index-D6FUvVB1.js";import"./defaultLocale-DX6XiGOO.js";function bi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,h=new Array(n);++s<n;)h[s]=t+s*e;return h}function ut(){var t=yi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,h,l,d=!1,x=0,C=0,k=.5;delete t.unknown;function R(){var b=i().length,E=n<s,v=E?n:s,L=E?s:n;h=(L-v)/Math.max(1,b-x+C*2),d&&(h=Math.floor(h)),v+=(L-v-h*(b-x))*k,l=h*(1-x),d&&(v=Math.round(v),l=Math.round(l));var M=bi(b).map(function(m){return v+h*m});return e(E?M.reverse():M)}return t.domain=function(b){return arguments.length?(i(b),R()):i()},t.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,R()):[s,n]},t.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,d=!0,R()},t.bandwidth=function(){return l},t.step=function(){return h},t.round=function(b){return arguments.length?(d=!!b,R()):d},t.padding=function(b){return arguments.length?(x=Math.min(1,C=+b),R()):x},t.paddingInner=function(b){return arguments.length?(x=Math.min(1,b),R()):x},t.paddingOuter=function(b){return arguments.length?(C=+b,R()):C},t.align=function(b){return arguments.length?(k=Math.max(0,Math.min(1,b)),R()):k},t.copy=function(){return ut(i(),[s,n]).round(d).paddingInner(x).paddingOuter(C).align(k)},mi.apply(R(),arguments)}var dt=(function(){var t=a(function(W,r,g,u){for(g=g||{},u=W.length;u--;g[W[u]]=r);return g},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],h=[1,6],l=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],x=[1,25],C=[1,26],k=[1,28],R=[1,29],b=[1,30],E=[1,31],v=[1,32],L=[1,33],M=[1,34],m=[1,35],D=[1,36],c=[1,37],z=[1,43],F=[1,42],X=[1,47],N=[1,50],_=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],w=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],O=[26,28],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(r,g,u,f,S,o,Z){var p=o.length-1;switch(S){case 5:f.setOrientation(o[p]);break;case 9:f.setDiagramTitle(o[p].text.trim());break;case 12:f.setLineData({text:"",type:"text"},o[p]);break;case 13:f.setLineData(o[p-1],o[p]);break;case 14:f.setBarData({text:"",type:"text"},o[p]);break;case 15:f.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),f.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),f.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:f.setXAxisTitle(o[p]);break;case 25:f.setXAxisTitle(o[p-1]);break;case 26:f.setXAxisTitle({type:"text",text:""});break;case 27:f.setXAxisBand(o[p]);break;case 28:f.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:f.setYAxisTitle(o[p]);break;case 33:f.setYAxisTitle(o[p-1]);break;case 34:f.setYAxisTitle({type:"text",text:""});break;case 35:f.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:n,37:h,38:l}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:n,37:h,38:l}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:h,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:n,37:h,38:l}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:n,37:h,38:l}),{11:23,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:39,13:38,24:z,29:F,30:x,31:40,32:41,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:45,15:44,29:X,30:x,35:46,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:49,17:48,24:N,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:52,17:51,24:N,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(H,[2,39],{41:55,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c}),t(H,[2,40]),t(H,[2,41]),t(w,[2,42]),t(w,[2,44]),t(w,[2,45]),t(w,[2,46]),t(w,[2,47]),t(w,[2,48]),t(w,[2,49]),t(w,[2,50]),t(w,[2,51]),t(w,[2,52]),t(w,[2,53]),t(_,[2,10]),t(_,[2,24],{32:41,31:56,24:z,29:F}),t(_,[2,26]),t(_,[2,27]),{33:[1,57]},{11:59,30:x,34:58,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},t(_,[2,11]),t(_,[2,32],{35:60,29:X}),t(_,[2,34]),{33:[1,61]},t(_,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(_,[2,14]),{17:66,24:N},t(_,[2,16]),t(_,[2,17]),t(w,[2,43]),t(_,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(_,[2,33]),{29:[1,70]},t(_,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(O,[2,23],{30:[1,73]}),t(_,[2,15]),t(_,[2,28]),t(_,[2,29]),{11:59,30:x,34:74,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},t(_,[2,35]),t(_,[2,19]),{25:75,27:64,29:A},t(O,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:a(function(r){var g=this,u=[0],f=[],S=[null],o=[],Z=this.table,p="",et=0,kt=0,ii=2,Tt=1,ei=o.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&($.yy[ht]=this.yy[ht]);P.setInput(r,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var lt=P.yylloc;o.push(lt);var si=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ni(B){u.length=u.length-2*B,S.length=S.length-B,o.length=o.length-B}a(ni,"popStack");function Dt(){var B;return B=f.pop()||P.lex()||Tt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=g.symbols_[B]||B),B}a(Dt,"lex");for(var I,U,V,ct,j={},st,Y,Pt,nt;;){if(U=u[u.length-1],this.defaultActions[U]?V=this.defaultActions[U]:((I===null||typeof I>"u")&&(I=Dt()),V=Z[U]&&Z[U][I]),typeof V>"u"||!V.length||!V[0]){var gt="";nt=[];for(st in Z[U])this.terminals_[st]&&st>ii&&nt.push("'"+this.terminals_[st]+"'");P.showPosition?gt="Parse error on line "+(et+1)+`:
1
+ import{s as ai,g as oi,q as It,p as ri,a as hi,b as li,_ as a,l as Bt,G as ci,d as gi,r as ui,A as mt,i as di,D as zt,E as xi,X as fi,aB as pi,a8 as vt}from"./mermaid.core-CPTixcx8.js";import{i as mi}from"./init-Gi6I4Gst.js";import{o as yi}from"./ordinal-Cboi1Yqb.js";import{l as Lt}from"./linear-B9CiaY59.js";import"./app-DAPWjSQy.js";import"./defaultLocale-DX6XiGOO.js";function bi(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=Math.max(0,Math.ceil((i-t)/e))|0,h=new Array(n);++s<n;)h[s]=t+s*e;return h}function ut(){var t=yi().unknown(void 0),i=t.domain,e=t.range,s=0,n=1,h,l,d=!1,x=0,C=0,k=.5;delete t.unknown;function R(){var b=i().length,E=n<s,v=E?n:s,L=E?s:n;h=(L-v)/Math.max(1,b-x+C*2),d&&(h=Math.floor(h)),v+=(L-v-h*(b-x))*k,l=h*(1-x),d&&(v=Math.round(v),l=Math.round(l));var M=bi(b).map(function(m){return v+h*m});return e(E?M.reverse():M)}return t.domain=function(b){return arguments.length?(i(b),R()):i()},t.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,R()):[s,n]},t.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,d=!0,R()},t.bandwidth=function(){return l},t.step=function(){return h},t.round=function(b){return arguments.length?(d=!!b,R()):d},t.padding=function(b){return arguments.length?(x=Math.min(1,C=+b),R()):x},t.paddingInner=function(b){return arguments.length?(x=Math.min(1,b),R()):x},t.paddingOuter=function(b){return arguments.length?(C=+b,R()):C},t.align=function(b){return arguments.length?(k=Math.max(0,Math.min(1,b)),R()):k},t.copy=function(){return ut(i(),[s,n]).round(d).paddingInner(x).paddingOuter(C).align(k)},mi.apply(R(),arguments)}var dt=(function(){var t=a(function(W,r,g,u){for(g=g||{},u=W.length;u--;g[W[u]]=r);return g},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],h=[1,6],l=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],x=[1,25],C=[1,26],k=[1,28],R=[1,29],b=[1,30],E=[1,31],v=[1,32],L=[1,33],M=[1,34],m=[1,35],D=[1,36],c=[1,37],z=[1,43],F=[1,42],X=[1,47],N=[1,50],_=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],w=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],A=[1,65],O=[26,28],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(r,g,u,f,S,o,Z){var p=o.length-1;switch(S){case 5:f.setOrientation(o[p]);break;case 9:f.setDiagramTitle(o[p].text.trim());break;case 12:f.setLineData({text:"",type:"text"},o[p]);break;case 13:f.setLineData(o[p-1],o[p]);break;case 14:f.setBarData({text:"",type:"text"},o[p]);break;case 15:f.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),f.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),f.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:f.setXAxisTitle(o[p]);break;case 25:f.setXAxisTitle(o[p-1]);break;case 26:f.setXAxisTitle({type:"text",text:""});break;case 27:f.setXAxisBand(o[p]);break;case 28:f.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:f.setYAxisTitle(o[p]);break;case 33:f.setYAxisTitle(o[p-1]);break;case 34:f.setYAxisTitle({type:"text",text:""});break;case 35:f.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:n,37:h,38:l}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:n,37:h,38:l}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:h,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:n,37:h,38:l}),{1:[2,3]},t(d,[2,5]),t(i,[2,7],{4:22,36:n,37:h,38:l}),{11:23,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:39,13:38,24:z,29:F,30:x,31:40,32:41,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:45,15:44,29:X,30:x,35:46,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:49,17:48,24:N,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{11:52,17:51,24:N,30:x,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(H,[2,39],{41:55,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c}),t(H,[2,40]),t(H,[2,41]),t(w,[2,42]),t(w,[2,44]),t(w,[2,45]),t(w,[2,46]),t(w,[2,47]),t(w,[2,48]),t(w,[2,49]),t(w,[2,50]),t(w,[2,51]),t(w,[2,52]),t(w,[2,53]),t(_,[2,10]),t(_,[2,24],{32:41,31:56,24:z,29:F}),t(_,[2,26]),t(_,[2,27]),{33:[1,57]},{11:59,30:x,34:58,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},t(_,[2,11]),t(_,[2,32],{35:60,29:X}),t(_,[2,34]),{33:[1,61]},t(_,[2,12]),{17:62,24:N},{25:63,27:64,29:A},t(_,[2,14]),{17:66,24:N},t(_,[2,16]),t(_,[2,17]),t(w,[2,43]),t(_,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(_,[2,33]),{29:[1,70]},t(_,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(O,[2,23],{30:[1,73]}),t(_,[2,15]),t(_,[2,28]),t(_,[2,29]),{11:59,30:x,34:74,39:24,40:C,41:27,42:k,43:R,44:b,45:E,46:v,47:L,48:M,49:m,50:D,51:c},t(_,[2,35]),t(_,[2,19]),{25:75,27:64,29:A},t(O,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:a(function(r){var g=this,u=[0],f=[],S=[null],o=[],Z=this.table,p="",et=0,kt=0,ii=2,Tt=1,ei=o.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&($.yy[ht]=this.yy[ht]);P.setInput(r,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var lt=P.yylloc;o.push(lt);var si=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ni(B){u.length=u.length-2*B,S.length=S.length-B,o.length=o.length-B}a(ni,"popStack");function Dt(){var B;return B=f.pop()||P.lex()||Tt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=g.symbols_[B]||B),B}a(Dt,"lex");for(var I,U,V,ct,j={},st,Y,Pt,nt;;){if(U=u[u.length-1],this.defaultActions[U]?V=this.defaultActions[U]:((I===null||typeof I>"u")&&(I=Dt()),V=Z[U]&&Z[U][I]),typeof V>"u"||!V.length||!V[0]){var gt="";nt=[];for(st in Z[U])this.terminals_[st]&&st>ii&&nt.push("'"+this.terminals_[st]+"'");P.showPosition?gt="Parse error on line "+(et+1)+`:
2
2
  `+P.showPosition()+`
3
3
  Expecting `+nt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":gt="Parse error on line "+(et+1)+": Unexpected "+(I==Tt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(gt,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:lt,expected:nt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+I);switch(V[0]){case 1:u.push(I),S.push(P.yytext),o.push(P.yylloc),u.push(V[1]),I=null,kt=P.yyleng,p=P.yytext,et=P.yylineno,lt=P.yylloc;break;case 2:if(Y=this.productions_[V[1]][1],j.$=S[S.length-Y],j._$={first_line:o[o.length-(Y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Y||1)].first_column,last_column:o[o.length-1].last_column},si&&(j._$.range=[o[o.length-(Y||1)].range[0],o[o.length-1].range[1]]),ct=this.performAction.apply(j,[p,kt,et,$.yy,V[1],S,o].concat(ei)),typeof ct<"u")return ct;Y&&(u=u.slice(0,-1*Y*2),S=S.slice(0,-1*Y),o=o.slice(0,-1*Y)),u.push(this.productions_[V[1]][0]),S.push(j.$),o.push(j._$),Pt=Z[u[u.length-2]][u[u.length-1]],u.push(Pt);break;case 3:return!0}}return!0},"parse")},K=(function(){var W={EOF:1,parseError:a(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:a(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={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:a(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var f=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),u.length-1&&(this.yylineno-=u.length-1);var S=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:u?(u.length===f.length?this.yylloc.first_column:0)+f[f.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
5
  `+g+"^"},"showPosition"),test_match:a(function(r,g){var u,f,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),f=r[0].match(/(?:\r\n?|\n).*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],u=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u)return u;if(this._backtrack){for(var o in S)this[o]=S[o];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,g,u,f;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),o=0;o<S.length;o++)if(u=this._input.match(this.rules[S[o]]),u&&(!g||u[0].length>g[0].length)){if(g=u,f=o,this.options.backtrack_lexer){if(r=this.test_match(u,S[o]),r!==!1)return r;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(r=this.test_match(g,S[f]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
6
  `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var g=this.next();return g||this.lex()},"lex"),begin:a(function(g){this.conditionStack.push(g)},"begin"),popState:a(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:a(function(g){this.begin(g)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(g,u,f,S){switch(f){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W})();T.lexer=K;function q(){this.yy={}}return a(q,"Parser"),q.prototype=T,T.Parser=q,new q})();dt.parser=dt;var wi=dt;function at(t){return t.type==="bar"}a(at,"isBarPlot");function ot(t){return t.type==="band"}a(ot,"isBandAxisData");function Q(t){return t.type==="linear"}a(Q,"isLinearAxisData");var yt=class{constructor(t){this.parentGroup=t}static{a(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((n,h)=>Math.max(h.length,n),0)*i,height:i};const e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const n of t){const h=pi(s,1,n),l=h?h.width:n.length*i,d=h?h.height:i;e.width=Math.max(e.width,l),e.height=Math.max(e.height,d)}return s.remove(),e}},Et=.7,Mt=.2,Ot=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{a(this,"BaseAxis")}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Et*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Et*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=Mt*t.width;this.outerPadding=Math.min(e.width/2,s);let n=e.height;this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0&&(n=Math.max(n,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*e.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*e.height))),n+=this.axisConfig.labelPadding*2,this.labelTextHeight=e.height,n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,s<=i&&(i-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=Mt*t.height;this.outerPadding=Math.min(e.height/2,s);const n=e.width+this.axisConfig.labelPadding*2;n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,s<=i&&(i-=s,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){const i=this.normalizedLabelRotationInRad;return i===0?0:Math.sin(i)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${i},${this.getScaleValue(e)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${i} L ${this.getScaleValue(e)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},Ai=class extends Ot{static{a(this,"BandAxis")}constructor(t,i,e,s,n){super(t,s,n,i),this.categories=e,this.scale=ut().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=ut().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Bt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},Ci=class extends Ot{static{a(this,"LinearAxis")}constructor(t,i,e,s,n){super(t,s,n,i),this.domain=e,this.scale=Lt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=Lt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function xt(t,i,e,s){const n=new yt(s);return ot(t)?new Ai(i,e,t.categories,t.title,n):new Ci(i,e,[t.min,t.max],t.title,n)}a(xt,"getAxis");var Si=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{a(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function Vt(t,i,e,s){const n=new yt(s);return new Si(n,t,i,e)}a(Vt,"getChartTitleComponent");var Ri=.75,_i=.5,ki=.35;function ft(t){return{fontSize:t,markerSize:t*Ri,markerSpacing:t*ki,itemSpacing:t*_i}}a(ft,"getLegendLayout");var Ti=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{a(this,"ChartLegend")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(x=>x.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};const{fontSize:i,markerSize:e,markerSpacing:s,itemSpacing:n}=ft(this.chartConfig.legendFontSize),h=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(x=>x.title),i),l=this.chartConfig.legendPadding*2+e+s+h.width,d=this.chartConfig.legendPadding*2+this.visiblePlots.length*i+(this.visiblePlots.length-1)*n;return l<=t.width&&d<=t.height?(this.boundingRect.width=l,this.boundingRect.height=d):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];const{fontSize:t,markerSize:i,markerSpacing:e,itemSpacing:s}=ft(this.chartConfig.legendFontSize),n=t+s,h=this.boundingRect.x+this.chartConfig.legendPadding,l=this.boundingRect.y+this.chartConfig.legendPadding,d=[],x=[];for(const[C,k]of this.visiblePlots.entries())if(at(k))d.push({x:h,y:l+C*n,width:i,height:i,fill:k.fill,strokeFill:k.fill,strokeWidth:0});else{const R=l+C*n+i/2;x.push({path:`M ${h},${R} L ${h+i},${R}`,strokeFill:k.strokeFill,strokeWidth:k.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:d},{groupTexts:["legend","markers"],type:"path",data:x},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((C,k)=>({text:C.title,x:h+i+e,y:l+k*n+i/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};function Ft(t,i,e,s){const n=new yt(s);return new Ti(n,t,i,e)}a(Ft,"getChartLegendComponent");var Di=class{constructor(t,i,e,s,n){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=n}static{a(this,"LinePlot")}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;if(this.orientation==="horizontal"?i=vt().y(s=>s[0]).x(s=>s[1])(t):i=vt().x(s=>s[0]).y(s=>s[1])(t),!i)return[];const e=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){const h=[];for(const[l,[d,x]]of t.entries()){const C=this.plotData.pointLabels[l];C&&(this.orientation==="horizontal"?h.push({x:x+10,y:d,text:C,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):h.push({x:d,y:x-10,text:C,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}h.length>0&&e.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:h})}return e}},Pi=class{constructor(t,i,e,s,n,h){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=n,this.plotIndex=h}static{a(this,"BarPlot")}getDrawableElement(){const t=this.barData.data.map(n=>[this.xAxis.getScaleValue(n[0]),this.yAxis.getScaleValue(n[1])]),e=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),s=e/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(n=>({x:this.boundingRect.x,y:n[0]-s,height:e,width:n[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(n=>({x:n[0]-s,y:n[1],width:e,height:this.boundingRect.y+this.boundingRect.height-n[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},vi=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{a(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{const s=new Di(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new Pi(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break}return t}};function Wt(t,i,e){return new vi(t,i,e)}a(Wt,"getPlotComponent");var Li=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:Vt(t,i,e,s),plot:Wt(t,i,e),legend:Ft(t,i,e,s),xAxis:xt(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:xt(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{a(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n={width:0,height:0},h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),l=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:h,height:l});t-=d.width,i-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=d.height,i-=d.height,this.componentStore.xAxis.setAxisPosition("bottom"),d=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=d.height,this.componentStore.yAxis.setAxisPosition("left"),d=this.componentStore.yAxis.calculateSpace({width:t,height:i}),e=d.width,t-=d.width,n=this.componentStore.legend.calculateSpace({width:t,height:l}),t-=n.width,t>0&&(h+=t,t=0),i>0&&(l+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:l}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.legend.setBoundingBoxXY({x:e+h,y:s+Math.max((l-n.height)/2,0)}),this.componentStore.xAxis.setRange([e,e+h]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+l}),this.componentStore.yAxis.setRange([s,s+l]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(x=>at(x))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=0,h={width:0,height:0},l=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),x=this.componentStore.plot.calculateSpace({width:l,height:d});t-=x.width,i-=x.height,x=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=x.height,i-=x.height,this.componentStore.xAxis.setAxisPosition("left"),x=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=x.width,s=x.width,this.componentStore.yAxis.setAxisPosition("top"),x=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=x.height,n=e+x.height,h=this.componentStore.legend.calculateSpace({width:t,height:d}),t-=h.width,t>0&&(l+=t,t=0),i>0&&(d+=i,i=0),this.componentStore.plot.calculateSpace({width:l,height:d}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.legend.setBoundingBoxXY({x:s+l,y:n+Math.max((d-h.height)/2,0)}),this.componentStore.yAxis.setRange([s,s+l]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([n,n+d]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(C=>at(C))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},Ei=class{static{a(this,"XYChartBuilder")}static build(t,i,e,s){return new Li(t,i,e,s).getDrawableElement()}},J=0,Xt,tt=At(),it=wt(),y=Ct(),pt=it.plotColorPalette.split(",").map(t=>t.trim()),rt=!1,bt=!1;function wt(){const t=fi(),i=mt();return zt(t.xyChart,i.themeVariables.xyChart)}a(wt,"getChartDefaultThemeConfig");function At(){const t=mt();return zt(xi.xyChart,t.xyChart)}a(At,"getChartDefaultConfig");function Ct(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Ct,"getChartDefaultData");function G(t){const i=mt();return di(t.trim(),i)}a(G,"textSanitizer");function Nt(t){Xt=t}a(Nt,"setTmpSVGG");function Yt(t){t==="horizontal"?tt.chartOrientation="horizontal":tt.chartOrientation="vertical"}a(Yt,"setOrientation");function Ht(t){y.xAxis.title=G(t.text)}a(Ht,"setXAxisTitle");function St(t,i){y.xAxis={type:"linear",title:y.xAxis.title,min:t,max:i},rt=!0}a(St,"setXAxisRangeData");function $t(t){y.xAxis={type:"band",title:y.xAxis.title,categories:t.map(i=>G(i.text))},rt=!0}a($t,"setXAxisBand");function Ut(t){y.yAxis.title=G(t.text)}a(Ut,"setYAxisTitle");function Gt(t,i){y.yAxis={type:"linear",title:y.yAxis.title,min:t,max:i},bt=!0}a(Gt,"setYAxisRangeData");function qt(t){const i=Math.min(...t),e=Math.max(...t),s=Q(y.yAxis)?y.yAxis.min:1/0,n=Q(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,i),max:Math.max(n,e)}}a(qt,"setYAxisRangeFromPlotData");function Rt(t){let i=[];if(t.length===0)return i;if(!rt){const e=Q(y.xAxis)?y.xAxis.min:1/0,s=Q(y.xAxis)?y.xAxis.max:-1/0;St(Math.min(e,1),Math.max(s,t.length))}if(ot(y.xAxis)&&t.length>y.xAxis.categories.length&&(t=t.slice(0,y.xAxis.categories.length)),bt||qt(t),ot(y.xAxis)&&(i=y.xAxis.categories.map((e,s)=>[e,t[s]])),Q(y.xAxis)){const e=y.xAxis.min,s=y.xAxis.max;if(t.length===1)i=[[`${e}`,t[0]]];else{const n=(s-e)/(t.length-1);i=t.map((h,l)=>[`${e+l*n}`,h])}}return i}a(Rt,"transformDataWithoutCategory");function _t(t){return pt[t===0?0:t%pt.length]}a(_t,"getPlotColorFromPalette");function jt(t,i){const e=i.map(l=>l.value),s=i.map(l=>l.label?G(l.label):""),n=Rt(e),h=s.some(l=>l!=="");y.plots.push({type:"line",title:G(t.text),strokeFill:_t(J),strokeWidth:2,data:n,...h?{pointLabels:s}:{}}),J++}a(jt,"setLineData");function Qt(t,i){const e=i.map(n=>n.value),s=Rt(e);y.plots.push({type:"bar",title:G(t.text),fill:_t(J),data:s}),J++}a(Qt,"setBarData");function Kt(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=It(),Ei.build(tt,y,it,Xt)}a(Kt,"getDrawableElem");function Zt(){return it}a(Zt,"getChartThemeConfig");function Jt(){return tt}a(Jt,"getChartConfig");function ti(){return y}a(ti,"getXYChartData");var Mi=a(function(){ui(),J=0,tt=At(),y=Ct(),it=wt(),pt=it.plotColorPalette.split(",").map(t=>t.trim()),rt=!1,bt=!1},"clear"),Ii={getDrawableElem:Kt,clear:Mi,setAccTitle:li,getAccTitle:hi,setDiagramTitle:ri,getDiagramTitle:It,getAccDescription:oi,setAccDescription:ai,setOrientation:Yt,setXAxisTitle:Ht,setXAxisRangeData:St,setXAxisBand:$t,setYAxisTitle:Ut,setYAxisRangeData:Gt,setLineData:jt,setBarData:Qt,setTmpSVGG:Nt,getChartThemeConfig:Zt,getChartConfig:Jt,getXYChartData:ti},Bi=a((t,i,e,s)=>{const n=s.db,h=n.getChartThemeConfig(),l=n.getChartConfig(),d=n.getXYChartData().plots[0].data.map(m=>m[1]);function x(m){return m==="top"?"text-before-edge":"middle"}a(x,"getDominantBaseLine");function C(m){return m==="left"?"start":m==="right"?"end":"middle"}a(C,"getTextAnchor");function k(m){return`translate(${m.x}, ${m.y}) rotate(${m.rotation||0})`}a(k,"getTextTransformation"),Bt.debug(`Rendering xychart chart
7
- `+t);const R=ci(i),b=R.append("g").attr("class","main"),E=b.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");gi(R,l.height,l.width,!0),R.attr("viewBox",`0 0 ${l.width} ${l.height}`),E.attr("fill",h.backgroundColor),n.setTmpSVGG(R.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(m){let D=b,c="";for(const[z]of m.entries()){let F=b;z>0&&L[c]&&(F=L[c]),c+=m[z],D=L[c],D||(D=L[c]=F.append("g").attr("class",m[z]))}return D}a(M,"getGroup");for(const m of v){if(m.data.length===0)continue;const D=M(m.groupTexts);switch(m.type){case"rect":if(D.selectAll("rect").data(m.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),l.showDataLabel){const c=l.showDataLabelOutsideBar;if(l.chartOrientation==="horizontal"){let z=function(A,O){const{data:T,label:K}=A;return O*K.length*F<=T.width-X};a(z,"fitsHorizontally");const F=.7,X=10,N=m.data.map((A,O)=>({data:A,label:d[O].toString()})).filter(A=>A.data.width>0&&A.data.height>0),_=N.map(A=>{const{data:O}=A;let T=O.height*.7;for(;!z(A,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(..._)),w=a(A=>c?A.data.x+A.data.width+X:A.data.x+A.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",w).attr("y",A=>A.data.y+A.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${H}px`).text(A=>A.label)}else{let z=function(w,A,O){const{data:T,label:K}=w,W=A*K.length*.7,r=T.x+T.width/2,g=r-W/2,u=r+W/2,f=g>=T.x&&u<=T.x+T.width,S=T.y+O+A<=T.y+T.height;return f&&S};a(z,"fitsInBar");const F=10,X=m.data.map((w,A)=>({data:w,label:d[A].toString()})).filter(w=>w.data.width>0&&w.data.height>0),N=X.map(w=>{const{data:A,label:O}=w;let T=A.width/(O.length*.7);for(;!z(w,T,F)&&T>0;)T-=1;return T}),_=Math.floor(Math.min(...N)),H=a(w=>c?w.data.y-F:w.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",w=>w.data.x+w.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${_}px`).text(w=>w.label)}}break;case"text":D.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>x(c.verticalPos)).attr("text-anchor",c=>C(c.horizontalPos)).attr("transform",c=>k(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(m.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),zi={draw:Bi},Hi={parser:wi,db:Ii,renderer:zi};export{Hi as diagram};
7
+ `+t);const R=ci(i),b=R.append("g").attr("class","main"),E=b.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");gi(R,l.height,l.width,!0),R.attr("viewBox",`0 0 ${l.width} ${l.height}`),E.attr("fill",h.backgroundColor),n.setTmpSVGG(R.append("g").attr("class","mermaid-tmp-group"));const v=n.getDrawableElem(),L={};function M(m){let D=b,c="";for(const[z]of m.entries()){let F=b;z>0&&L[c]&&(F=L[c]),c+=m[z],D=L[c],D||(D=L[c]=F.append("g").attr("class",m[z]))}return D}a(M,"getGroup");for(const m of v){if(m.data.length===0)continue;const D=M(m.groupTexts);switch(m.type){case"rect":if(D.selectAll("rect").data(m.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),l.showDataLabel){const c=l.showDataLabelOutsideBar;if(l.chartOrientation==="horizontal"){let z=function(A,O){const{data:T,label:K}=A;return O*K.length*F<=T.width-X};a(z,"fitsHorizontally");const F=.7,X=10,N=m.data.map((A,O)=>({data:A,label:d[O].toString()})).filter(A=>A.data.width>0&&A.data.height>0),_=N.map(A=>{const{data:O}=A;let T=O.height*.7;for(;!z(A,T)&&T>0;)T-=1;return T}),H=Math.floor(Math.min(..._)),w=a(A=>c?A.data.x+A.data.width+X:A.data.x+A.data.width-X,"determineLabelXPosition");D.selectAll("text").data(N).enter().append("text").attr("x",w).attr("y",A=>A.data.y+A.data.height/2).attr("text-anchor",c?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${H}px`).text(A=>A.label)}else{let z=function(w,A,O){const{data:T,label:K}=w,W=A*K.length*.7,r=T.x+T.width/2,g=r-W/2,u=r+W/2,f=g>=T.x&&u<=T.x+T.width,S=T.y+O+A<=T.y+T.height;return f&&S};a(z,"fitsInBar");const F=10,X=m.data.map((w,A)=>({data:w,label:d[A].toString()})).filter(w=>w.data.width>0&&w.data.height>0),N=X.map(w=>{const{data:A,label:O}=w;let T=A.width/(O.length*.7);for(;!z(w,T,F)&&T>0;)T-=1;return T}),_=Math.floor(Math.min(...N)),H=a(w=>c?w.data.y-F:w.data.y+F,"determineLabelYPosition");D.selectAll("text").data(X).enter().append("text").attr("x",w=>w.data.x+w.data.width/2).attr("y",H).attr("text-anchor","middle").attr("dominant-baseline",c?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${_}px`).text(w=>w.label)}}break;case"text":D.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>x(c.verticalPos)).attr("text-anchor",c=>C(c.horizontalPos)).attr("transform",c=>k(c)).text(c=>c.text);break;case"path":D.selectAll("path").data(m.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),zi={draw:Bi},Yi={parser:wi,db:Ii,renderer:zi};export{Yi as diagram};
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23"><path fill="#f25022" d="M1 1h10v10H1z"/><path fill="#7fba00" d="M12 1h10v10H12z"/><path fill="#00a4ef" d="M1 12h10v10H1z"/><path fill="#ffb900" d="M12 12h10v10H12z"/></svg>
package/web/index.html CHANGED
@@ -102,10 +102,8 @@
102
102
  } catch (e) {}
103
103
  })();
104
104
  </script>
105
- <script type="module" crossorigin src="/assets/app-D9Nvta88.js"></script>
106
- <link rel="modulepreload" crossorigin href="/assets/index-D6FUvVB1.js">
107
- <link rel="stylesheet" crossorigin href="/assets/index-CyyMNIC_.css">
108
- <link rel="stylesheet" crossorigin href="/assets/app-DOrYoP_4.css">
105
+ <script type="module" crossorigin src="/assets/app-DAPWjSQy.js"></script>
106
+ <link rel="stylesheet" crossorigin href="/assets/app-Dt3ByUuG.css">
109
107
  </head>
110
108
  <body class="bg-dls-surface text-dls-text mac:bg-transparent">
111
109
  <div id="root">
@@ -1 +0,0 @@
1
- import{g as p,r as u,d as a}from"./chunk-SVP7TREG-szCI_Kz9.js";import{p as f}from"./chunk-JWPE2WC7-CugB1e5O.js";import{_ as n,l as o}from"./mermaid.core-LJPf4T7o.js";import{M as c,b as d}from"./cynefin-OW5HDTMX-DSTjm6jO.js";import"./app-D9Nvta88.js";import"./index-D6FUvVB1.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram};