@surething/cockpit 1.0.190 → 1.0.192

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 (847) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +21 -19
  3. package/.next-prod/build-manifest.json +5 -5
  4. package/.next-prod/diagnostics/framework.json +1 -1
  5. package/.next-prod/images-manifest.json +1 -0
  6. package/.next-prod/next-minimal-server.js.nft.json +1 -1
  7. package/.next-prod/next-server.js.nft.json +1 -1
  8. package/.next-prod/prerender-manifest.json +3 -3
  9. package/.next-prod/react-loadable-manifest.json +2 -258
  10. package/.next-prod/required-server-files.js +18 -6
  11. package/.next-prod/required-server-files.json +18 -6
  12. package/.next-prod/routes-manifest.json +13 -0
  13. package/.next-prod/server/app/_global-error/page.js +32 -3
  14. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  15. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  16. package/.next-prod/server/app/_global-error.html +1 -2
  17. package/.next-prod/server/app/_global-error.rsc +8 -6
  18. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +8 -6
  19. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  20. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +2 -1
  21. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  22. package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +2 -1
  23. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  24. package/.next-prod/server/app/_not-found/page.js +2 -2
  25. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  26. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  27. package/.next-prod/server/app/_not-found.html +2 -2
  28. package/.next-prod/server/app/_not-found.rsc +11 -9
  29. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +11 -9
  30. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  31. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  32. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  33. package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +2 -1
  34. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  35. package/.next-prod/server/app/api/bash/route.js +1 -1
  36. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  37. package/.next-prod/server/app/api/bash/route_client-reference-manifest.js +1 -1
  38. package/.next-prod/server/app/api/chat/codex/route.js +13 -13
  39. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  40. package/.next-prod/server/app/api/chat/codex/route_client-reference-manifest.js +1 -1
  41. package/.next-prod/server/app/api/chat/kimi/route.js +3 -3
  42. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  43. package/.next-prod/server/app/api/chat/kimi/route_client-reference-manifest.js +1 -1
  44. package/.next-prod/server/app/api/chat/ollama/route.js +3 -3
  45. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  46. package/.next-prod/server/app/api/chat/ollama/route_client-reference-manifest.js +1 -1
  47. package/.next-prod/server/app/api/chat/route.js +3 -3
  48. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  49. package/.next-prod/server/app/api/chat/route_client-reference-manifest.js +1 -1
  50. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  51. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  52. package/.next-prod/server/app/api/claude-stats/route_client-reference-manifest.js +1 -1
  53. package/.next-prod/server/app/api/commands/route.js +1 -1
  54. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  55. package/.next-prod/server/app/api/commands/route_client-reference-manifest.js +1 -1
  56. package/.next-prod/server/app/api/comments/route.js +1 -1
  57. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  58. package/.next-prod/server/app/api/comments/route_client-reference-manifest.js +1 -1
  59. package/.next-prod/server/app/api/db/columns/route.js +2 -2
  60. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  61. package/.next-prod/server/app/api/db/columns/route_client-reference-manifest.js +1 -1
  62. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  63. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  64. package/.next-prod/server/app/api/db/connect/route_client-reference-manifest.js +1 -1
  65. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  66. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  67. package/.next-prod/server/app/api/db/disconnect/route_client-reference-manifest.js +1 -1
  68. package/.next-prod/server/app/api/db/export/route.js +1 -1
  69. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  70. package/.next-prod/server/app/api/db/export/route_client-reference-manifest.js +1 -1
  71. package/.next-prod/server/app/api/db/query/route.js +1 -1
  72. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  73. package/.next-prod/server/app/api/db/query/route_client-reference-manifest.js +1 -1
  74. package/.next-prod/server/app/api/db/schemas/route.js +2 -2
  75. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  76. package/.next-prod/server/app/api/db/schemas/route_client-reference-manifest.js +1 -1
  77. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  78. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  79. package/.next-prod/server/app/api/extension/version/route_client-reference-manifest.js +1 -1
  80. package/.next-prod/server/app/api/file/route.js +1 -1
  81. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  82. package/.next-prod/server/app/api/file/route_client-reference-manifest.js +1 -1
  83. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  84. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  85. package/.next-prod/server/app/api/files/blame/route_client-reference-manifest.js +1 -1
  86. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  87. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  88. package/.next-prod/server/app/api/files/clipboard/route_client-reference-manifest.js +1 -1
  89. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  90. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  91. package/.next-prod/server/app/api/files/copy/route_client-reference-manifest.js +1 -1
  92. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  93. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  94. package/.next-prod/server/app/api/files/delete/route_client-reference-manifest.js +1 -1
  95. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  96. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  97. package/.next-prod/server/app/api/files/expanded/route_client-reference-manifest.js +1 -1
  98. package/.next-prod/server/app/api/files/index/route.js +1 -1
  99. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  100. package/.next-prod/server/app/api/files/index/route_client-reference-manifest.js +1 -1
  101. package/.next-prod/server/app/api/files/init/route.js +1 -1
  102. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  103. package/.next-prod/server/app/api/files/init/route_client-reference-manifest.js +1 -1
  104. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  105. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  106. package/.next-prod/server/app/api/files/paste/route_client-reference-manifest.js +1 -1
  107. package/.next-prod/server/app/api/files/read/route.js +1 -1
  108. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  109. package/.next-prod/server/app/api/files/read/route_client-reference-manifest.js +1 -1
  110. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  111. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  112. package/.next-prod/server/app/api/files/readdir/route_client-reference-manifest.js +1 -1
  113. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  114. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  115. package/.next-prod/server/app/api/files/recent/route_client-reference-manifest.js +1 -1
  116. package/.next-prod/server/app/api/files/save/route.js +1 -1
  117. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  118. package/.next-prod/server/app/api/files/save/route_client-reference-manifest.js +1 -1
  119. package/.next-prod/server/app/api/files/search/route.js +1 -1
  120. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  121. package/.next-prod/server/app/api/files/search/route_client-reference-manifest.js +1 -1
  122. package/.next-prod/server/app/api/files/stat/route.js +1 -0
  123. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -0
  124. package/.next-prod/server/app/api/files/stat/route_client-reference-manifest.js +1 -0
  125. package/.next-prod/server/app/api/files/text/route.js +1 -0
  126. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -0
  127. package/.next-prod/server/app/api/files/text/route_client-reference-manifest.js +1 -0
  128. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  129. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  130. package/.next-prod/server/app/api/git/branch-diff/route_client-reference-manifest.js +1 -1
  131. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  132. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  133. package/.next-prod/server/app/api/git/branches/route_client-reference-manifest.js +1 -1
  134. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  135. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  136. package/.next-prod/server/app/api/git/commit-diff/route_client-reference-manifest.js +1 -1
  137. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  138. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  139. package/.next-prod/server/app/api/git/commits/route_client-reference-manifest.js +1 -1
  140. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  141. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  142. package/.next-prod/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
  143. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  144. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  145. package/.next-prod/server/app/api/git/discard/route_client-reference-manifest.js +1 -1
  146. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  147. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  148. package/.next-prod/server/app/api/git/stage/route_client-reference-manifest.js +1 -1
  149. package/.next-prod/server/app/api/git/status/route.js +1 -1
  150. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  151. package/.next-prod/server/app/api/git/status/route_client-reference-manifest.js +1 -1
  152. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  153. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  154. package/.next-prod/server/app/api/git/unstage/route_client-reference-manifest.js +1 -1
  155. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  156. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  157. package/.next-prod/server/app/api/git/worktree/route_client-reference-manifest.js +1 -1
  158. package/.next-prod/server/app/api/global-state/route.js +1 -1
  159. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  160. package/.next-prod/server/app/api/global-state/route_client-reference-manifest.js +1 -1
  161. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  162. package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
  163. package/.next-prod/server/app/api/jupyter/load/route_client-reference-manifest.js +1 -1
  164. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  165. package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
  166. package/.next-prod/server/app/api/jupyter/save/route_client-reference-manifest.js +1 -1
  167. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  168. package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
  169. package/.next-prod/server/app/api/jupyter/shutdown/route_client-reference-manifest.js +1 -1
  170. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  171. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  172. package/.next-prod/server/app/api/lsp/definition/route_client-reference-manifest.js +1 -1
  173. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  174. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  175. package/.next-prod/server/app/api/lsp/hover/route_client-reference-manifest.js +1 -1
  176. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  177. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  178. package/.next-prod/server/app/api/lsp/references/route_client-reference-manifest.js +1 -1
  179. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  180. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  181. package/.next-prod/server/app/api/lsp/status/route_client-reference-manifest.js +1 -1
  182. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  183. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  184. package/.next-prod/server/app/api/lsp/warmup/route_client-reference-manifest.js +1 -1
  185. package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
  186. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  187. package/.next-prod/server/app/api/mysql/columns/route_client-reference-manifest.js +1 -1
  188. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  189. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  190. package/.next-prod/server/app/api/mysql/connect/route_client-reference-manifest.js +1 -1
  191. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  192. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  193. package/.next-prod/server/app/api/mysql/disconnect/route_client-reference-manifest.js +1 -1
  194. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  195. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  196. package/.next-prod/server/app/api/mysql/export/route_client-reference-manifest.js +1 -1
  197. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  198. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  199. package/.next-prod/server/app/api/mysql/query/route_client-reference-manifest.js +1 -1
  200. package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
  201. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  202. package/.next-prod/server/app/api/mysql/schemas/route_client-reference-manifest.js +1 -1
  203. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  204. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  205. package/.next-prod/server/app/api/neo4j/connect/route_client-reference-manifest.js +1 -1
  206. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  207. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  208. package/.next-prod/server/app/api/neo4j/disconnect/route_client-reference-manifest.js +1 -1
  209. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  210. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  211. package/.next-prod/server/app/api/neo4j/query/route_client-reference-manifest.js +1 -1
  212. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  213. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  214. package/.next-prod/server/app/api/neo4j/schema/route_client-reference-manifest.js +1 -1
  215. package/.next-prod/server/app/api/note/route.js +1 -1
  216. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  217. package/.next-prod/server/app/api/note/route_client-reference-manifest.js +1 -1
  218. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  219. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  220. package/.next-prod/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  221. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  222. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  223. package/.next-prod/server/app/api/ollama/start/route_client-reference-manifest.js +1 -1
  224. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  225. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  226. package/.next-prod/server/app/api/open-cursor/route_client-reference-manifest.js +1 -1
  227. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  228. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  229. package/.next-prod/server/app/api/open-vscode/route_client-reference-manifest.js +1 -1
  230. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  231. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  232. package/.next-prod/server/app/api/pick-folder/route_client-reference-manifest.js +1 -1
  233. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  234. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  235. package/.next-prod/server/app/api/pinned-sessions/route_client-reference-manifest.js +1 -1
  236. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  237. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  238. package/.next-prod/server/app/api/project-settings/route_client-reference-manifest.js +1 -1
  239. package/.next-prod/server/app/api/project-state/route.js +1 -1
  240. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  241. package/.next-prod/server/app/api/project-state/route_client-reference-manifest.js +1 -1
  242. package/.next-prod/server/app/api/projects/route.js +1 -1
  243. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  244. package/.next-prod/server/app/api/projects/route_client-reference-manifest.js +1 -1
  245. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  246. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  247. package/.next-prod/server/app/api/redis/command/route_client-reference-manifest.js +1 -1
  248. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  249. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  250. package/.next-prod/server/app/api/redis/connect/route_client-reference-manifest.js +1 -1
  251. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  252. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  253. package/.next-prod/server/app/api/redis/delete/route_client-reference-manifest.js +1 -1
  254. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  255. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  256. package/.next-prod/server/app/api/redis/disconnect/route_client-reference-manifest.js +1 -1
  257. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  258. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  259. package/.next-prod/server/app/api/redis/get/route_client-reference-manifest.js +1 -1
  260. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  261. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  262. package/.next-prod/server/app/api/redis/keys/route_client-reference-manifest.js +1 -1
  263. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  264. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  265. package/.next-prod/server/app/api/redis/set/route_client-reference-manifest.js +1 -1
  266. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  267. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  268. package/.next-prod/server/app/api/review/[id]/comments/route_client-reference-manifest.js +1 -1
  269. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  270. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  271. package/.next-prod/server/app/api/review/[id]/replies/route_client-reference-manifest.js +1 -1
  272. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  273. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  274. package/.next-prod/server/app/api/review/[id]/route_client-reference-manifest.js +1 -1
  275. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  276. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  277. package/.next-prod/server/app/api/review/identify/route_client-reference-manifest.js +1 -1
  278. package/.next-prod/server/app/api/review/order/route.js +1 -1
  279. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  280. package/.next-prod/server/app/api/review/order/route_client-reference-manifest.js +1 -1
  281. package/.next-prod/server/app/api/review/route.js +1 -1
  282. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  283. package/.next-prod/server/app/api/review/route_client-reference-manifest.js +1 -1
  284. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  285. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  286. package/.next-prod/server/app/api/review/share-info/route_client-reference-manifest.js +1 -1
  287. package/.next-prod/server/app/api/review/users/route.js +1 -1
  288. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  289. package/.next-prod/server/app/api/review/users/route_client-reference-manifest.js +1 -1
  290. package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -1
  291. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  292. package/.next-prod/server/app/api/scheduled-tasks/route_client-reference-manifest.js +1 -1
  293. package/.next-prod/server/app/api/services/config/route.js +1 -1
  294. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  295. package/.next-prod/server/app/api/services/config/route_client-reference-manifest.js +1 -1
  296. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  297. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  298. package/.next-prod/server/app/api/services/scripts/route_client-reference-manifest.js +1 -1
  299. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  300. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  301. package/.next-prod/server/app/api/session/[sessionId]/fork/route_client-reference-manifest.js +1 -1
  302. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  303. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  304. package/.next-prod/server/app/api/session/[sessionId]/history/route_client-reference-manifest.js +1 -1
  305. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  306. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  307. package/.next-prod/server/app/api/session-by-path/route_client-reference-manifest.js +1 -1
  308. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  309. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  310. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route_client-reference-manifest.js +1 -1
  311. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  312. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  313. package/.next-prod/server/app/api/sessions/projects/route_client-reference-manifest.js +1 -1
  314. package/.next-prod/server/app/api/sessions/route.js +1 -1
  315. package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
  316. package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  317. package/.next-prod/server/app/api/settings/route.js +1 -1
  318. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  319. package/.next-prod/server/app/api/settings/route_client-reference-manifest.js +1 -1
  320. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  321. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  322. package/.next-prod/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
  323. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  324. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  325. package/.next-prod/server/app/api/skills/content/route_client-reference-manifest.js +1 -1
  326. package/.next-prod/server/app/api/skills/route.js +1 -1
  327. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  328. package/.next-prod/server/app/api/skills/route_client-reference-manifest.js +1 -1
  329. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  330. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  331. package/.next-prod/server/app/api/terminal/aliases/route_client-reference-manifest.js +1 -1
  332. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  333. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  334. package/.next-prod/server/app/api/terminal/autocomplete/route_client-reference-manifest.js +1 -1
  335. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  336. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  337. package/.next-prod/server/app/api/terminal/bubble-order/route_client-reference-manifest.js +1 -1
  338. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  339. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  340. package/.next-prod/server/app/api/terminal/env/route_client-reference-manifest.js +1 -1
  341. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  342. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  343. package/.next-prod/server/app/api/terminal/history/route_client-reference-manifest.js +1 -1
  344. package/.next-prod/server/app/api/version/route.js +1 -1
  345. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  346. package/.next-prod/server/app/api/version/route_client-reference-manifest.js +1 -1
  347. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  348. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  349. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  350. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  351. package/.next-prod/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  352. package/.next-prod/server/app/page.js +6 -6
  353. package/.next-prod/server/app/page.js.nft.json +1 -1
  354. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  355. package/.next-prod/server/app/project/page.js +8 -8
  356. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  357. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  358. package/.next-prod/server/app/review/[id]/page.js +2 -2
  359. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  360. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  361. package/.next-prod/server/app-paths-manifest.json +21 -19
  362. package/.next-prod/server/chunks/1813.js +1 -1
  363. package/.next-prod/server/chunks/2338.js +1 -1
  364. package/.next-prod/server/chunks/3269.js +1 -1
  365. package/.next-prod/server/chunks/3353.js +1 -0
  366. package/.next-prod/server/chunks/4098.js +1 -1
  367. package/.next-prod/server/chunks/4490.js +3 -3
  368. package/.next-prod/server/chunks/4732.js +1 -0
  369. package/.next-prod/server/chunks/4741.js +5 -9
  370. package/.next-prod/server/chunks/4793.js +1 -1
  371. package/.next-prod/server/chunks/5147.js +1 -1
  372. package/.next-prod/server/chunks/700.js +1 -1
  373. package/.next-prod/server/chunks/7514.js +1 -1
  374. package/.next-prod/server/chunks/8465.js +15 -0
  375. package/.next-prod/server/middleware-build-manifest.js +1 -1
  376. package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
  377. package/.next-prod/server/pages/404.html +2 -2
  378. package/.next-prod/server/pages/500.html +1 -2
  379. package/.next-prod/server/prefetch-hints.json +1 -0
  380. package/.next-prod/server/server-reference-manifest.json +1 -1
  381. package/.next-prod/static/chunks/3530-74191451ec2a46c4.js +14 -0
  382. package/.next-prod/static/chunks/3579-70c6663ba8c0cf1b.js +1 -0
  383. package/.next-prod/static/chunks/{3695-f14fb3e48483755c.js → 3695-9503d0b646958dd4.js} +2 -2
  384. package/.next-prod/static/chunks/3700-e32aa43691d128b2.js +1 -0
  385. package/.next-prod/static/chunks/{3743-66d6d2ef6629c733.js → 3743-5e5ffaf674977450.js} +1 -1
  386. package/.next-prod/static/chunks/3794-3fb4e6ee851037bb.js +32 -0
  387. package/.next-prod/static/chunks/4bd1b696-e356ca5ba0218e27.js +1 -0
  388. package/.next-prod/static/chunks/{7650.18f74243e9325242.js → 5269.2e771096652dc113.js} +1 -1
  389. package/.next-prod/static/chunks/54a60aa6-1a0e6738c5ca0c78.js +79 -0
  390. package/.next-prod/static/chunks/{9062-a330afa1af7f133e.js → 9062-ea4adbf70cf62f01.js} +1 -1
  391. package/.next-prod/static/chunks/{aaea2bcf-4f9eb5012da21e0f.js → aaea2bcf-be8b39a8f32280f3.js} +1 -1
  392. package/.next-prod/static/chunks/app/_global-error/page-94e40d01eb0846a0.js +1 -0
  393. package/.next-prod/static/chunks/app/api/bash/route-94e40d01eb0846a0.js +1 -0
  394. package/.next-prod/static/chunks/app/api/chat/codex/route-94e40d01eb0846a0.js +1 -0
  395. package/.next-prod/static/chunks/app/api/chat/kimi/route-94e40d01eb0846a0.js +1 -0
  396. package/.next-prod/static/chunks/app/api/chat/ollama/route-94e40d01eb0846a0.js +1 -0
  397. package/.next-prod/static/chunks/app/api/chat/route-94e40d01eb0846a0.js +1 -0
  398. package/.next-prod/static/chunks/app/api/claude-stats/route-94e40d01eb0846a0.js +1 -0
  399. package/.next-prod/static/chunks/app/api/commands/route-94e40d01eb0846a0.js +1 -0
  400. package/.next-prod/static/chunks/app/api/comments/route-94e40d01eb0846a0.js +1 -0
  401. package/.next-prod/static/chunks/app/api/db/columns/route-94e40d01eb0846a0.js +1 -0
  402. package/.next-prod/static/chunks/app/api/db/connect/route-94e40d01eb0846a0.js +1 -0
  403. package/.next-prod/static/chunks/app/api/db/disconnect/route-94e40d01eb0846a0.js +1 -0
  404. package/.next-prod/static/chunks/app/api/db/export/route-94e40d01eb0846a0.js +1 -0
  405. package/.next-prod/static/chunks/app/api/db/query/route-94e40d01eb0846a0.js +1 -0
  406. package/.next-prod/static/chunks/app/api/db/schemas/route-94e40d01eb0846a0.js +1 -0
  407. package/.next-prod/static/chunks/app/api/extension/version/route-94e40d01eb0846a0.js +1 -0
  408. package/.next-prod/static/chunks/app/api/file/route-94e40d01eb0846a0.js +1 -0
  409. package/.next-prod/static/chunks/app/api/files/blame/route-94e40d01eb0846a0.js +1 -0
  410. package/.next-prod/static/chunks/app/api/files/clipboard/route-94e40d01eb0846a0.js +1 -0
  411. package/.next-prod/static/chunks/app/api/files/copy/route-94e40d01eb0846a0.js +1 -0
  412. package/.next-prod/static/chunks/app/api/files/delete/route-94e40d01eb0846a0.js +1 -0
  413. package/.next-prod/static/chunks/app/api/files/expanded/route-94e40d01eb0846a0.js +1 -0
  414. package/.next-prod/static/chunks/app/api/files/index/route-94e40d01eb0846a0.js +1 -0
  415. package/.next-prod/static/chunks/app/api/files/init/route-94e40d01eb0846a0.js +1 -0
  416. package/.next-prod/static/chunks/app/api/files/paste/route-94e40d01eb0846a0.js +1 -0
  417. package/.next-prod/static/chunks/app/api/files/read/route-94e40d01eb0846a0.js +1 -0
  418. package/.next-prod/static/chunks/app/api/files/readdir/route-94e40d01eb0846a0.js +1 -0
  419. package/.next-prod/static/chunks/app/api/files/recent/route-94e40d01eb0846a0.js +1 -0
  420. package/.next-prod/static/chunks/app/api/files/save/route-94e40d01eb0846a0.js +1 -0
  421. package/.next-prod/static/chunks/app/api/files/search/route-94e40d01eb0846a0.js +1 -0
  422. package/.next-prod/static/chunks/app/api/files/stat/route-94e40d01eb0846a0.js +1 -0
  423. package/.next-prod/static/chunks/app/api/files/text/route-94e40d01eb0846a0.js +1 -0
  424. package/.next-prod/static/chunks/app/api/git/branch-diff/route-94e40d01eb0846a0.js +1 -0
  425. package/.next-prod/static/chunks/app/api/git/branches/route-94e40d01eb0846a0.js +1 -0
  426. package/.next-prod/static/chunks/app/api/git/commit-diff/route-94e40d01eb0846a0.js +1 -0
  427. package/.next-prod/static/chunks/app/api/git/commits/route-94e40d01eb0846a0.js +1 -0
  428. package/.next-prod/static/chunks/app/api/git/diff/route-94e40d01eb0846a0.js +1 -0
  429. package/.next-prod/static/chunks/app/api/git/discard/route-94e40d01eb0846a0.js +1 -0
  430. package/.next-prod/static/chunks/app/api/git/stage/route-94e40d01eb0846a0.js +1 -0
  431. package/.next-prod/static/chunks/app/api/git/status/route-94e40d01eb0846a0.js +1 -0
  432. package/.next-prod/static/chunks/app/api/git/unstage/route-94e40d01eb0846a0.js +1 -0
  433. package/.next-prod/static/chunks/app/api/git/worktree/route-94e40d01eb0846a0.js +1 -0
  434. package/.next-prod/static/chunks/app/api/global-state/route-94e40d01eb0846a0.js +1 -0
  435. package/.next-prod/static/chunks/app/api/jupyter/load/route-94e40d01eb0846a0.js +1 -0
  436. package/.next-prod/static/chunks/app/api/jupyter/save/route-94e40d01eb0846a0.js +1 -0
  437. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-94e40d01eb0846a0.js +1 -0
  438. package/.next-prod/static/chunks/app/api/lsp/definition/route-94e40d01eb0846a0.js +1 -0
  439. package/.next-prod/static/chunks/app/api/lsp/hover/route-94e40d01eb0846a0.js +1 -0
  440. package/.next-prod/static/chunks/app/api/lsp/references/route-94e40d01eb0846a0.js +1 -0
  441. package/.next-prod/static/chunks/app/api/lsp/status/route-94e40d01eb0846a0.js +1 -0
  442. package/.next-prod/static/chunks/app/api/lsp/warmup/route-94e40d01eb0846a0.js +1 -0
  443. package/.next-prod/static/chunks/app/api/mysql/columns/route-94e40d01eb0846a0.js +1 -0
  444. package/.next-prod/static/chunks/app/api/mysql/connect/route-94e40d01eb0846a0.js +1 -0
  445. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-94e40d01eb0846a0.js +1 -0
  446. package/.next-prod/static/chunks/app/api/mysql/export/route-94e40d01eb0846a0.js +1 -0
  447. package/.next-prod/static/chunks/app/api/mysql/query/route-94e40d01eb0846a0.js +1 -0
  448. package/.next-prod/static/chunks/app/api/mysql/schemas/route-94e40d01eb0846a0.js +1 -0
  449. package/.next-prod/static/chunks/app/api/neo4j/connect/route-94e40d01eb0846a0.js +1 -0
  450. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-94e40d01eb0846a0.js +1 -0
  451. package/.next-prod/static/chunks/app/api/neo4j/query/route-94e40d01eb0846a0.js +1 -0
  452. package/.next-prod/static/chunks/app/api/neo4j/schema/route-94e40d01eb0846a0.js +1 -0
  453. package/.next-prod/static/chunks/app/api/note/route-94e40d01eb0846a0.js +1 -0
  454. package/.next-prod/static/chunks/app/api/ollama/models/route-94e40d01eb0846a0.js +1 -0
  455. package/.next-prod/static/chunks/app/api/ollama/start/route-94e40d01eb0846a0.js +1 -0
  456. package/.next-prod/static/chunks/app/api/open-cursor/route-94e40d01eb0846a0.js +1 -0
  457. package/.next-prod/static/chunks/app/api/open-vscode/route-94e40d01eb0846a0.js +1 -0
  458. package/.next-prod/static/chunks/app/api/pick-folder/route-94e40d01eb0846a0.js +1 -0
  459. package/.next-prod/static/chunks/app/api/pinned-sessions/route-94e40d01eb0846a0.js +1 -0
  460. package/.next-prod/static/chunks/app/api/project-settings/route-94e40d01eb0846a0.js +1 -0
  461. package/.next-prod/static/chunks/app/api/project-state/route-94e40d01eb0846a0.js +1 -0
  462. package/.next-prod/static/chunks/app/api/projects/route-94e40d01eb0846a0.js +1 -0
  463. package/.next-prod/static/chunks/app/api/redis/command/route-94e40d01eb0846a0.js +1 -0
  464. package/.next-prod/static/chunks/app/api/redis/connect/route-94e40d01eb0846a0.js +1 -0
  465. package/.next-prod/static/chunks/app/api/redis/delete/route-94e40d01eb0846a0.js +1 -0
  466. package/.next-prod/static/chunks/app/api/redis/disconnect/route-94e40d01eb0846a0.js +1 -0
  467. package/.next-prod/static/chunks/app/api/redis/get/route-94e40d01eb0846a0.js +1 -0
  468. package/.next-prod/static/chunks/app/api/redis/keys/route-94e40d01eb0846a0.js +1 -0
  469. package/.next-prod/static/chunks/app/api/redis/set/route-94e40d01eb0846a0.js +1 -0
  470. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-94e40d01eb0846a0.js +1 -0
  471. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-94e40d01eb0846a0.js +1 -0
  472. package/.next-prod/static/chunks/app/api/review/[id]/route-94e40d01eb0846a0.js +1 -0
  473. package/.next-prod/static/chunks/app/api/review/identify/route-94e40d01eb0846a0.js +1 -0
  474. package/.next-prod/static/chunks/app/api/review/order/route-94e40d01eb0846a0.js +1 -0
  475. package/.next-prod/static/chunks/app/api/review/route-94e40d01eb0846a0.js +1 -0
  476. package/.next-prod/static/chunks/app/api/review/share-info/route-94e40d01eb0846a0.js +1 -0
  477. package/.next-prod/static/chunks/app/api/review/users/route-94e40d01eb0846a0.js +1 -0
  478. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-94e40d01eb0846a0.js +1 -0
  479. package/.next-prod/static/chunks/app/api/services/config/route-94e40d01eb0846a0.js +1 -0
  480. package/.next-prod/static/chunks/app/api/services/scripts/route-94e40d01eb0846a0.js +1 -0
  481. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-94e40d01eb0846a0.js +1 -0
  482. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-94e40d01eb0846a0.js +1 -0
  483. package/.next-prod/static/chunks/app/api/session-by-path/route-94e40d01eb0846a0.js +1 -0
  484. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-94e40d01eb0846a0.js +1 -0
  485. package/.next-prod/static/chunks/app/api/sessions/projects/route-94e40d01eb0846a0.js +1 -0
  486. package/.next-prod/static/chunks/app/api/sessions/route-94e40d01eb0846a0.js +1 -0
  487. package/.next-prod/static/chunks/app/api/settings/route-94e40d01eb0846a0.js +1 -0
  488. package/.next-prod/static/chunks/app/api/skills/[id]/route-94e40d01eb0846a0.js +1 -0
  489. package/.next-prod/static/chunks/app/api/skills/content/route-94e40d01eb0846a0.js +1 -0
  490. package/.next-prod/static/chunks/app/api/skills/route-94e40d01eb0846a0.js +1 -0
  491. package/.next-prod/static/chunks/app/api/terminal/aliases/route-94e40d01eb0846a0.js +1 -0
  492. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-94e40d01eb0846a0.js +1 -0
  493. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-94e40d01eb0846a0.js +1 -0
  494. package/.next-prod/static/chunks/app/api/terminal/env/route-94e40d01eb0846a0.js +1 -0
  495. package/.next-prod/static/chunks/app/api/terminal/history/route-94e40d01eb0846a0.js +1 -0
  496. package/.next-prod/static/chunks/app/api/version/route-94e40d01eb0846a0.js +1 -0
  497. package/.next-prod/static/chunks/app/manifest.webmanifest/route-94e40d01eb0846a0.js +1 -0
  498. package/.next-prod/static/chunks/app/{page-e0d663a97bc29595.js → page-95c3cb3c5c7c5ef1.js} +1 -1
  499. package/.next-prod/static/chunks/app/project/page-180bad159db256a5.js +29 -0
  500. package/.next-prod/static/chunks/app/review/[id]/page-e81c220af0b68e3e.js +1 -0
  501. package/.next-prod/static/chunks/d3ac728e-ba6c269aebe5932e.js +1 -0
  502. package/.next-prod/static/chunks/{e868780c.a081703edc1bc551.js → e868780c.16e43c5968ccf2bf.js} +3 -3
  503. package/.next-prod/static/chunks/framework-52c9cc950957e3ac.js +1 -0
  504. package/.next-prod/static/chunks/main-5a46314a5491113b.js +5 -0
  505. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-94e40d01eb0846a0.js +1 -0
  506. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-94e40d01eb0846a0.js +1 -0
  507. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-94e40d01eb0846a0.js +1 -0
  508. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-94e40d01eb0846a0.js +1 -0
  509. package/.next-prod/static/chunks/webpack-067b7836d8df9226.js +1 -0
  510. package/.next-prod/static/css/aefab4a01c890b38.css +3 -0
  511. package/.next-prod/static/smsKM7xQ0sAR3fsFWgImc/_buildManifest.js +1 -0
  512. package/.next-prod/trace +12 -13
  513. package/.next-prod/trace-build +1 -1
  514. package/.next-prod/types/app/api/bash/route.ts +3 -2
  515. package/.next-prod/types/app/api/chat/codex/route.ts +3 -2
  516. package/.next-prod/types/app/api/chat/kimi/route.ts +3 -2
  517. package/.next-prod/types/app/api/chat/ollama/route.ts +3 -2
  518. package/.next-prod/types/app/api/chat/route.ts +3 -2
  519. package/.next-prod/types/app/api/claude-stats/route.ts +3 -2
  520. package/.next-prod/types/app/api/commands/route.ts +3 -2
  521. package/.next-prod/types/app/api/comments/route.ts +3 -2
  522. package/.next-prod/types/app/api/db/columns/route.ts +3 -2
  523. package/.next-prod/types/app/api/db/connect/route.ts +3 -2
  524. package/.next-prod/types/app/api/db/disconnect/route.ts +3 -2
  525. package/.next-prod/types/app/api/db/export/route.ts +3 -2
  526. package/.next-prod/types/app/api/db/query/route.ts +3 -2
  527. package/.next-prod/types/app/api/db/schemas/route.ts +3 -2
  528. package/.next-prod/types/app/api/extension/version/route.ts +3 -2
  529. package/.next-prod/types/app/api/file/route.ts +3 -2
  530. package/.next-prod/types/app/api/files/blame/route.ts +3 -2
  531. package/.next-prod/types/app/api/files/clipboard/route.ts +3 -2
  532. package/.next-prod/types/app/api/files/copy/route.ts +3 -2
  533. package/.next-prod/types/app/api/files/delete/route.ts +3 -2
  534. package/.next-prod/types/app/api/files/expanded/route.ts +3 -2
  535. package/.next-prod/types/app/api/files/index/route.ts +3 -2
  536. package/.next-prod/types/app/api/files/init/route.ts +3 -2
  537. package/.next-prod/types/app/api/files/paste/route.ts +3 -2
  538. package/.next-prod/types/app/api/files/read/route.ts +3 -2
  539. package/.next-prod/types/app/api/files/readdir/route.ts +3 -2
  540. package/.next-prod/types/app/api/files/recent/route.ts +3 -2
  541. package/.next-prod/types/app/api/files/save/route.ts +3 -2
  542. package/.next-prod/types/app/api/files/search/route.ts +3 -2
  543. package/.next-prod/types/app/api/files/stat/route.ts +351 -0
  544. package/.next-prod/types/app/api/files/text/route.ts +351 -0
  545. package/.next-prod/types/app/api/git/branch-diff/route.ts +3 -2
  546. package/.next-prod/types/app/api/git/branches/route.ts +3 -2
  547. package/.next-prod/types/app/api/git/commit-diff/route.ts +3 -2
  548. package/.next-prod/types/app/api/git/commits/route.ts +3 -2
  549. package/.next-prod/types/app/api/git/diff/route.ts +3 -2
  550. package/.next-prod/types/app/api/git/discard/route.ts +3 -2
  551. package/.next-prod/types/app/api/git/stage/route.ts +3 -2
  552. package/.next-prod/types/app/api/git/status/route.ts +3 -2
  553. package/.next-prod/types/app/api/git/unstage/route.ts +3 -2
  554. package/.next-prod/types/app/api/git/worktree/route.ts +3 -2
  555. package/.next-prod/types/app/api/global-state/route.ts +3 -2
  556. package/.next-prod/types/app/api/jupyter/load/route.ts +3 -2
  557. package/.next-prod/types/app/api/jupyter/save/route.ts +3 -2
  558. package/.next-prod/types/app/api/jupyter/shutdown/route.ts +3 -2
  559. package/.next-prod/types/app/api/lsp/definition/route.ts +3 -2
  560. package/.next-prod/types/app/api/lsp/hover/route.ts +3 -2
  561. package/.next-prod/types/app/api/lsp/references/route.ts +3 -2
  562. package/.next-prod/types/app/api/lsp/status/route.ts +3 -2
  563. package/.next-prod/types/app/api/lsp/warmup/route.ts +3 -2
  564. package/.next-prod/types/app/api/mysql/columns/route.ts +3 -2
  565. package/.next-prod/types/app/api/mysql/connect/route.ts +3 -2
  566. package/.next-prod/types/app/api/mysql/disconnect/route.ts +3 -2
  567. package/.next-prod/types/app/api/mysql/export/route.ts +3 -2
  568. package/.next-prod/types/app/api/mysql/query/route.ts +3 -2
  569. package/.next-prod/types/app/api/mysql/schemas/route.ts +3 -2
  570. package/.next-prod/types/app/api/neo4j/connect/route.ts +3 -2
  571. package/.next-prod/types/app/api/neo4j/disconnect/route.ts +3 -2
  572. package/.next-prod/types/app/api/neo4j/query/route.ts +3 -2
  573. package/.next-prod/types/app/api/neo4j/schema/route.ts +3 -2
  574. package/.next-prod/types/app/api/note/route.ts +3 -2
  575. package/.next-prod/types/app/api/ollama/models/route.ts +3 -2
  576. package/.next-prod/types/app/api/ollama/start/route.ts +3 -2
  577. package/.next-prod/types/app/api/open-cursor/route.ts +3 -2
  578. package/.next-prod/types/app/api/open-vscode/route.ts +3 -2
  579. package/.next-prod/types/app/api/pick-folder/route.ts +3 -2
  580. package/.next-prod/types/app/api/pinned-sessions/route.ts +3 -2
  581. package/.next-prod/types/app/api/project-settings/route.ts +3 -2
  582. package/.next-prod/types/app/api/project-state/route.ts +3 -2
  583. package/.next-prod/types/app/api/projects/route.ts +3 -2
  584. package/.next-prod/types/app/api/redis/command/route.ts +3 -2
  585. package/.next-prod/types/app/api/redis/connect/route.ts +3 -2
  586. package/.next-prod/types/app/api/redis/delete/route.ts +3 -2
  587. package/.next-prod/types/app/api/redis/disconnect/route.ts +3 -2
  588. package/.next-prod/types/app/api/redis/get/route.ts +3 -2
  589. package/.next-prod/types/app/api/redis/keys/route.ts +3 -2
  590. package/.next-prod/types/app/api/redis/set/route.ts +3 -2
  591. package/.next-prod/types/app/api/review/[id]/comments/route.ts +3 -2
  592. package/.next-prod/types/app/api/review/[id]/replies/route.ts +3 -2
  593. package/.next-prod/types/app/api/review/[id]/route.ts +3 -2
  594. package/.next-prod/types/app/api/review/identify/route.ts +3 -2
  595. package/.next-prod/types/app/api/review/order/route.ts +3 -2
  596. package/.next-prod/types/app/api/review/route.ts +3 -2
  597. package/.next-prod/types/app/api/review/share-info/route.ts +3 -2
  598. package/.next-prod/types/app/api/review/users/route.ts +3 -2
  599. package/.next-prod/types/app/api/scheduled-tasks/route.ts +3 -2
  600. package/.next-prod/types/app/api/services/config/route.ts +3 -2
  601. package/.next-prod/types/app/api/services/scripts/route.ts +3 -2
  602. package/.next-prod/types/app/api/session/[sessionId]/fork/route.ts +3 -2
  603. package/.next-prod/types/app/api/session/[sessionId]/history/route.ts +3 -2
  604. package/.next-prod/types/app/api/session-by-path/route.ts +3 -2
  605. package/.next-prod/types/app/api/sessions/projects/[encodedPath]/route.ts +3 -2
  606. package/.next-prod/types/app/api/sessions/projects/route.ts +3 -2
  607. package/.next-prod/types/app/api/sessions/route.ts +3 -2
  608. package/.next-prod/types/app/api/settings/route.ts +3 -2
  609. package/.next-prod/types/app/api/skills/[id]/route.ts +3 -2
  610. package/.next-prod/types/app/api/skills/content/route.ts +3 -2
  611. package/.next-prod/types/app/api/skills/route.ts +3 -2
  612. package/.next-prod/types/app/api/terminal/aliases/route.ts +3 -2
  613. package/.next-prod/types/app/api/terminal/autocomplete/route.ts +3 -2
  614. package/.next-prod/types/app/api/terminal/bubble-order/route.ts +3 -2
  615. package/.next-prod/types/app/api/terminal/env/route.ts +3 -2
  616. package/.next-prod/types/app/api/terminal/history/route.ts +3 -2
  617. package/.next-prod/types/app/api/version/route.ts +3 -2
  618. package/.next-prod/types/app/page.ts +3 -2
  619. package/.next-prod/types/app/project/page.ts +3 -2
  620. package/.next-prod/types/app/review/[id]/page.ts +3 -2
  621. package/.next-prod/types/cache-life.d.ts +145 -0
  622. package/.next-prod/types/routes.d.ts +3 -1
  623. package/.next-prod/types/validator.ts +18 -0
  624. package/README.md +1 -1
  625. package/README.zh.md +1 -1
  626. package/bin/cock-browser.mjs +26 -0
  627. package/dist/wsServer.mjs +56 -6
  628. package/package.json +2 -3
  629. package/server.mjs +49 -5
  630. package/.next-prod/server/chunks/1639.js +0 -1
  631. package/.next-prod/server/chunks/1661.js +0 -1
  632. package/.next-prod/server/chunks/1667.js +0 -1
  633. package/.next-prod/server/chunks/1912.js +0 -1
  634. package/.next-prod/server/chunks/2325.js +0 -82
  635. package/.next-prod/server/chunks/2376.js +0 -36
  636. package/.next-prod/server/chunks/2816.js +0 -1
  637. package/.next-prod/server/chunks/2840.js +0 -62
  638. package/.next-prod/server/chunks/3434.js +0 -1
  639. package/.next-prod/server/chunks/3441.js +0 -24
  640. package/.next-prod/server/chunks/3503.js +0 -29
  641. package/.next-prod/server/chunks/3932.js +0 -56
  642. package/.next-prod/server/chunks/4073.js +0 -1
  643. package/.next-prod/server/chunks/4097.js +0 -136
  644. package/.next-prod/server/chunks/4268.js +0 -4
  645. package/.next-prod/server/chunks/4309.js +0 -141
  646. package/.next-prod/server/chunks/4345.js +0 -1
  647. package/.next-prod/server/chunks/4367.js +0 -1
  648. package/.next-prod/server/chunks/4388.js +0 -24
  649. package/.next-prod/server/chunks/4442.js +0 -1
  650. package/.next-prod/server/chunks/459.js +0 -1
  651. package/.next-prod/server/chunks/5152.js +0 -1
  652. package/.next-prod/server/chunks/5460.js +0 -201
  653. package/.next-prod/server/chunks/5481.js +0 -1
  654. package/.next-prod/server/chunks/5536.js +0 -148
  655. package/.next-prod/server/chunks/5733.js +0 -5
  656. package/.next-prod/server/chunks/582.js +0 -1
  657. package/.next-prod/server/chunks/5958.js +0 -1
  658. package/.next-prod/server/chunks/6117.js +0 -13
  659. package/.next-prod/server/chunks/6142.js +0 -287
  660. package/.next-prod/server/chunks/6346.js +0 -1
  661. package/.next-prod/server/chunks/6443.js +0 -1
  662. package/.next-prod/server/chunks/6804.js +0 -43
  663. package/.next-prod/server/chunks/7122.js +0 -1
  664. package/.next-prod/server/chunks/7265.js +0 -93
  665. package/.next-prod/server/chunks/7307.js +0 -1
  666. package/.next-prod/server/chunks/7483.js +0 -1
  667. package/.next-prod/server/chunks/7484.js +0 -64
  668. package/.next-prod/server/chunks/7800.js +0 -166
  669. package/.next-prod/server/chunks/8068.js +0 -63
  670. package/.next-prod/server/chunks/8351.js +0 -23
  671. package/.next-prod/server/chunks/8585.js +0 -198
  672. package/.next-prod/server/chunks/887.js +0 -215
  673. package/.next-prod/server/chunks/911.js +0 -1
  674. package/.next-prod/server/chunks/9116.js +0 -65
  675. package/.next-prod/server/chunks/925.js +0 -68
  676. package/.next-prod/server/chunks/9401.js +0 -1
  677. package/.next-prod/server/chunks/9408.js +0 -1
  678. package/.next-prod/static/chunks/1310.c38c5fbf05820fcd.js +0 -166
  679. package/.next-prod/static/chunks/1409.9f81cd6d2cab4b67.js +0 -1
  680. package/.next-prod/static/chunks/142.e09e154342f02da4.js +0 -4
  681. package/.next-prod/static/chunks/1590.05549e036336164c.js +0 -65
  682. package/.next-prod/static/chunks/1948.bf7e0d9ede202530.js +0 -29
  683. package/.next-prod/static/chunks/1987.226da043eabc8911.js +0 -5
  684. package/.next-prod/static/chunks/1991.d869abe5092c9011.js +0 -1
  685. package/.next-prod/static/chunks/2020.46a0112747939389.js +0 -1
  686. package/.next-prod/static/chunks/2235.b4453110c06e2b09.js +0 -1
  687. package/.next-prod/static/chunks/254.8b4308512ac955b5.js +0 -24
  688. package/.next-prod/static/chunks/2729.826909b4d5229ba6.js +0 -68
  689. package/.next-prod/static/chunks/2821.fa74c6e87f6e759a.js +0 -1
  690. package/.next-prod/static/chunks/2921.26016c4c7eb031e8.js +0 -1
  691. package/.next-prod/static/chunks/2ff9d716.93c18c265de76cfb.js +0 -136
  692. package/.next-prod/static/chunks/3126.c89ab7ce8e10978e.js +0 -1
  693. package/.next-prod/static/chunks/3530-49f50405e2b2a8c2.js +0 -14
  694. package/.next-prod/static/chunks/3613.9a37e282a0b018d7.js +0 -1
  695. package/.next-prod/static/chunks/3682.d8c0079db560c625.js +0 -1
  696. package/.next-prod/static/chunks/3700-1edddcc68c5c2ac3.js +0 -1
  697. package/.next-prod/static/chunks/3794-337d1ca25ad99a89.js +0 -2
  698. package/.next-prod/static/chunks/4699.8603b2742a761084.js +0 -1
  699. package/.next-prod/static/chunks/4892.1674cc00200143ba.js +0 -1
  700. package/.next-prod/static/chunks/4bd1b696-e5d7c65570c947b7.js +0 -1
  701. package/.next-prod/static/chunks/5019.2906d96e77b98f68.js +0 -198
  702. package/.next-prod/static/chunks/5139.83dc2c84aeea716b.js +0 -63
  703. package/.next-prod/static/chunks/5199.5faac6a2cc104a4c.js +0 -36
  704. package/.next-prod/static/chunks/5269.25d99df0164521ad.js +0 -23
  705. package/.next-prod/static/chunks/5325.aad15a16a5d57787.js +0 -1
  706. package/.next-prod/static/chunks/5364.2e5ba480c24d7854.js +0 -148
  707. package/.next-prod/static/chunks/5394.9d260f733e336357.js +0 -287
  708. package/.next-prod/static/chunks/54a60aa6-f60235f3d6b54466.js +0 -79
  709. package/.next-prod/static/chunks/5788.e5d5040b65e5edf3.js +0 -1
  710. package/.next-prod/static/chunks/6026.4027a04696ef04db.js +0 -1
  711. package/.next-prod/static/chunks/6108-df36466c7d900315.js +0 -1
  712. package/.next-prod/static/chunks/6383.ca3e074feb80c69c.js +0 -1
  713. package/.next-prod/static/chunks/6460.8ce93fe47320f6c5.js +0 -1
  714. package/.next-prod/static/chunks/6871.38519003bd87ac1c.js +0 -62
  715. package/.next-prod/static/chunks/6878-b27072ccf7fd4eba.js +0 -1
  716. package/.next-prod/static/chunks/6962.3bbd080592d4efa0.js +0 -64
  717. package/.next-prod/static/chunks/7084.921c9737b83f55eb.js +0 -1
  718. package/.next-prod/static/chunks/7085.b16e7c0e24741232.js +0 -215
  719. package/.next-prod/static/chunks/7443.124211e5abc05d3f.js +0 -93
  720. package/.next-prod/static/chunks/7479.433d3878625aba75.js +0 -24
  721. package/.next-prod/static/chunks/7547.54b68d37b50c2f21.js +0 -43
  722. package/.next-prod/static/chunks/7874.8db6929b94cdf697.js +0 -1
  723. package/.next-prod/static/chunks/8317.9c6f22e0c8cd07a8.js +0 -141
  724. package/.next-prod/static/chunks/8776.6fb12270eca03fd3.js +0 -149
  725. package/.next-prod/static/chunks/8863.4a09596cf95e996a.js +0 -82
  726. package/.next-prod/static/chunks/90542734.58d84d15ab7a8c98.js +0 -1
  727. package/.next-prod/static/chunks/9233.124321d2f404e01c.js +0 -1
  728. package/.next-prod/static/chunks/9318.ba24787a52cefe4c.js +0 -56
  729. package/.next-prod/static/chunks/9373.6206c440af44002a.js +0 -1
  730. package/.next-prod/static/chunks/af7f6608.85a7e1eb0d4130b0.js +0 -53
  731. package/.next-prod/static/chunks/app/_global-error/page-f626fdfbc87b7a2c.js +0 -1
  732. package/.next-prod/static/chunks/app/api/bash/route-f626fdfbc87b7a2c.js +0 -1
  733. package/.next-prod/static/chunks/app/api/chat/codex/route-f626fdfbc87b7a2c.js +0 -1
  734. package/.next-prod/static/chunks/app/api/chat/kimi/route-f626fdfbc87b7a2c.js +0 -1
  735. package/.next-prod/static/chunks/app/api/chat/ollama/route-f626fdfbc87b7a2c.js +0 -1
  736. package/.next-prod/static/chunks/app/api/chat/route-f626fdfbc87b7a2c.js +0 -1
  737. package/.next-prod/static/chunks/app/api/claude-stats/route-f626fdfbc87b7a2c.js +0 -1
  738. package/.next-prod/static/chunks/app/api/commands/route-f626fdfbc87b7a2c.js +0 -1
  739. package/.next-prod/static/chunks/app/api/comments/route-f626fdfbc87b7a2c.js +0 -1
  740. package/.next-prod/static/chunks/app/api/db/columns/route-f626fdfbc87b7a2c.js +0 -1
  741. package/.next-prod/static/chunks/app/api/db/connect/route-f626fdfbc87b7a2c.js +0 -1
  742. package/.next-prod/static/chunks/app/api/db/disconnect/route-f626fdfbc87b7a2c.js +0 -1
  743. package/.next-prod/static/chunks/app/api/db/export/route-f626fdfbc87b7a2c.js +0 -1
  744. package/.next-prod/static/chunks/app/api/db/query/route-f626fdfbc87b7a2c.js +0 -1
  745. package/.next-prod/static/chunks/app/api/db/schemas/route-f626fdfbc87b7a2c.js +0 -1
  746. package/.next-prod/static/chunks/app/api/extension/version/route-f626fdfbc87b7a2c.js +0 -1
  747. package/.next-prod/static/chunks/app/api/file/route-f626fdfbc87b7a2c.js +0 -1
  748. package/.next-prod/static/chunks/app/api/files/blame/route-f626fdfbc87b7a2c.js +0 -1
  749. package/.next-prod/static/chunks/app/api/files/clipboard/route-f626fdfbc87b7a2c.js +0 -1
  750. package/.next-prod/static/chunks/app/api/files/copy/route-f626fdfbc87b7a2c.js +0 -1
  751. package/.next-prod/static/chunks/app/api/files/delete/route-f626fdfbc87b7a2c.js +0 -1
  752. package/.next-prod/static/chunks/app/api/files/expanded/route-f626fdfbc87b7a2c.js +0 -1
  753. package/.next-prod/static/chunks/app/api/files/index/route-f626fdfbc87b7a2c.js +0 -1
  754. package/.next-prod/static/chunks/app/api/files/init/route-f626fdfbc87b7a2c.js +0 -1
  755. package/.next-prod/static/chunks/app/api/files/paste/route-f626fdfbc87b7a2c.js +0 -1
  756. package/.next-prod/static/chunks/app/api/files/read/route-f626fdfbc87b7a2c.js +0 -1
  757. package/.next-prod/static/chunks/app/api/files/readdir/route-f626fdfbc87b7a2c.js +0 -1
  758. package/.next-prod/static/chunks/app/api/files/recent/route-f626fdfbc87b7a2c.js +0 -1
  759. package/.next-prod/static/chunks/app/api/files/save/route-f626fdfbc87b7a2c.js +0 -1
  760. package/.next-prod/static/chunks/app/api/files/search/route-f626fdfbc87b7a2c.js +0 -1
  761. package/.next-prod/static/chunks/app/api/git/branch-diff/route-f626fdfbc87b7a2c.js +0 -1
  762. package/.next-prod/static/chunks/app/api/git/branches/route-f626fdfbc87b7a2c.js +0 -1
  763. package/.next-prod/static/chunks/app/api/git/commit-diff/route-f626fdfbc87b7a2c.js +0 -1
  764. package/.next-prod/static/chunks/app/api/git/commits/route-f626fdfbc87b7a2c.js +0 -1
  765. package/.next-prod/static/chunks/app/api/git/diff/route-f626fdfbc87b7a2c.js +0 -1
  766. package/.next-prod/static/chunks/app/api/git/discard/route-f626fdfbc87b7a2c.js +0 -1
  767. package/.next-prod/static/chunks/app/api/git/stage/route-f626fdfbc87b7a2c.js +0 -1
  768. package/.next-prod/static/chunks/app/api/git/status/route-f626fdfbc87b7a2c.js +0 -1
  769. package/.next-prod/static/chunks/app/api/git/unstage/route-f626fdfbc87b7a2c.js +0 -1
  770. package/.next-prod/static/chunks/app/api/git/worktree/route-f626fdfbc87b7a2c.js +0 -1
  771. package/.next-prod/static/chunks/app/api/global-state/route-f626fdfbc87b7a2c.js +0 -1
  772. package/.next-prod/static/chunks/app/api/jupyter/load/route-f626fdfbc87b7a2c.js +0 -1
  773. package/.next-prod/static/chunks/app/api/jupyter/save/route-f626fdfbc87b7a2c.js +0 -1
  774. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-f626fdfbc87b7a2c.js +0 -1
  775. package/.next-prod/static/chunks/app/api/lsp/definition/route-f626fdfbc87b7a2c.js +0 -1
  776. package/.next-prod/static/chunks/app/api/lsp/hover/route-f626fdfbc87b7a2c.js +0 -1
  777. package/.next-prod/static/chunks/app/api/lsp/references/route-f626fdfbc87b7a2c.js +0 -1
  778. package/.next-prod/static/chunks/app/api/lsp/status/route-f626fdfbc87b7a2c.js +0 -1
  779. package/.next-prod/static/chunks/app/api/lsp/warmup/route-f626fdfbc87b7a2c.js +0 -1
  780. package/.next-prod/static/chunks/app/api/mysql/columns/route-f626fdfbc87b7a2c.js +0 -1
  781. package/.next-prod/static/chunks/app/api/mysql/connect/route-f626fdfbc87b7a2c.js +0 -1
  782. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-f626fdfbc87b7a2c.js +0 -1
  783. package/.next-prod/static/chunks/app/api/mysql/export/route-f626fdfbc87b7a2c.js +0 -1
  784. package/.next-prod/static/chunks/app/api/mysql/query/route-f626fdfbc87b7a2c.js +0 -1
  785. package/.next-prod/static/chunks/app/api/mysql/schemas/route-f626fdfbc87b7a2c.js +0 -1
  786. package/.next-prod/static/chunks/app/api/neo4j/connect/route-f626fdfbc87b7a2c.js +0 -1
  787. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-f626fdfbc87b7a2c.js +0 -1
  788. package/.next-prod/static/chunks/app/api/neo4j/query/route-f626fdfbc87b7a2c.js +0 -1
  789. package/.next-prod/static/chunks/app/api/neo4j/schema/route-f626fdfbc87b7a2c.js +0 -1
  790. package/.next-prod/static/chunks/app/api/note/route-f626fdfbc87b7a2c.js +0 -1
  791. package/.next-prod/static/chunks/app/api/ollama/models/route-f626fdfbc87b7a2c.js +0 -1
  792. package/.next-prod/static/chunks/app/api/ollama/start/route-f626fdfbc87b7a2c.js +0 -1
  793. package/.next-prod/static/chunks/app/api/open-cursor/route-f626fdfbc87b7a2c.js +0 -1
  794. package/.next-prod/static/chunks/app/api/open-vscode/route-f626fdfbc87b7a2c.js +0 -1
  795. package/.next-prod/static/chunks/app/api/pick-folder/route-f626fdfbc87b7a2c.js +0 -1
  796. package/.next-prod/static/chunks/app/api/pinned-sessions/route-f626fdfbc87b7a2c.js +0 -1
  797. package/.next-prod/static/chunks/app/api/project-settings/route-f626fdfbc87b7a2c.js +0 -1
  798. package/.next-prod/static/chunks/app/api/project-state/route-f626fdfbc87b7a2c.js +0 -1
  799. package/.next-prod/static/chunks/app/api/projects/route-f626fdfbc87b7a2c.js +0 -1
  800. package/.next-prod/static/chunks/app/api/redis/command/route-f626fdfbc87b7a2c.js +0 -1
  801. package/.next-prod/static/chunks/app/api/redis/connect/route-f626fdfbc87b7a2c.js +0 -1
  802. package/.next-prod/static/chunks/app/api/redis/delete/route-f626fdfbc87b7a2c.js +0 -1
  803. package/.next-prod/static/chunks/app/api/redis/disconnect/route-f626fdfbc87b7a2c.js +0 -1
  804. package/.next-prod/static/chunks/app/api/redis/get/route-f626fdfbc87b7a2c.js +0 -1
  805. package/.next-prod/static/chunks/app/api/redis/keys/route-f626fdfbc87b7a2c.js +0 -1
  806. package/.next-prod/static/chunks/app/api/redis/set/route-f626fdfbc87b7a2c.js +0 -1
  807. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-f626fdfbc87b7a2c.js +0 -1
  808. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-f626fdfbc87b7a2c.js +0 -1
  809. package/.next-prod/static/chunks/app/api/review/[id]/route-f626fdfbc87b7a2c.js +0 -1
  810. package/.next-prod/static/chunks/app/api/review/identify/route-f626fdfbc87b7a2c.js +0 -1
  811. package/.next-prod/static/chunks/app/api/review/order/route-f626fdfbc87b7a2c.js +0 -1
  812. package/.next-prod/static/chunks/app/api/review/route-f626fdfbc87b7a2c.js +0 -1
  813. package/.next-prod/static/chunks/app/api/review/share-info/route-f626fdfbc87b7a2c.js +0 -1
  814. package/.next-prod/static/chunks/app/api/review/users/route-f626fdfbc87b7a2c.js +0 -1
  815. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-f626fdfbc87b7a2c.js +0 -1
  816. package/.next-prod/static/chunks/app/api/services/config/route-f626fdfbc87b7a2c.js +0 -1
  817. package/.next-prod/static/chunks/app/api/services/scripts/route-f626fdfbc87b7a2c.js +0 -1
  818. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-f626fdfbc87b7a2c.js +0 -1
  819. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-f626fdfbc87b7a2c.js +0 -1
  820. package/.next-prod/static/chunks/app/api/session-by-path/route-f626fdfbc87b7a2c.js +0 -1
  821. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-f626fdfbc87b7a2c.js +0 -1
  822. package/.next-prod/static/chunks/app/api/sessions/projects/route-f626fdfbc87b7a2c.js +0 -1
  823. package/.next-prod/static/chunks/app/api/sessions/route-f626fdfbc87b7a2c.js +0 -1
  824. package/.next-prod/static/chunks/app/api/settings/route-f626fdfbc87b7a2c.js +0 -1
  825. package/.next-prod/static/chunks/app/api/skills/[id]/route-f626fdfbc87b7a2c.js +0 -1
  826. package/.next-prod/static/chunks/app/api/skills/content/route-f626fdfbc87b7a2c.js +0 -1
  827. package/.next-prod/static/chunks/app/api/skills/route-f626fdfbc87b7a2c.js +0 -1
  828. package/.next-prod/static/chunks/app/api/terminal/aliases/route-f626fdfbc87b7a2c.js +0 -1
  829. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-f626fdfbc87b7a2c.js +0 -1
  830. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-f626fdfbc87b7a2c.js +0 -1
  831. package/.next-prod/static/chunks/app/api/terminal/env/route-f626fdfbc87b7a2c.js +0 -1
  832. package/.next-prod/static/chunks/app/api/terminal/history/route-f626fdfbc87b7a2c.js +0 -1
  833. package/.next-prod/static/chunks/app/api/version/route-f626fdfbc87b7a2c.js +0 -1
  834. package/.next-prod/static/chunks/app/manifest.webmanifest/route-f626fdfbc87b7a2c.js +0 -1
  835. package/.next-prod/static/chunks/app/project/page-ff9fb0aaf89c8457.js +0 -29
  836. package/.next-prod/static/chunks/app/review/[id]/page-be83af23e89a03f9.js +0 -1
  837. package/.next-prod/static/chunks/d3ac728e-d1ae8819b8f0be6a.js +0 -1
  838. package/.next-prod/static/chunks/framework-81b2e59ffe13bb24.js +0 -1
  839. package/.next-prod/static/chunks/main-ac50dc1e450895a2.js +0 -5
  840. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-f626fdfbc87b7a2c.js +0 -1
  841. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-f626fdfbc87b7a2c.js +0 -1
  842. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-f626fdfbc87b7a2c.js +0 -1
  843. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-f626fdfbc87b7a2c.js +0 -1
  844. package/.next-prod/static/chunks/webpack-0f527ee7ab644d02.js +0 -1
  845. package/.next-prod/static/css/75f39a8350e8177f.css +0 -3
  846. package/.next-prod/static/wxVgEFGuD9nbopEcuclYA/_buildManifest.js +0 -1
  847. /package/.next-prod/static/{wxVgEFGuD9nbopEcuclYA → smsKM7xQ0sAR3fsFWgImc}/_ssgManifest.js +0 -0
@@ -1,4 +0,0 @@
1
- "use strict";exports.id=4268,exports.ids=[4268],exports.modules={4268:(a,b,c)=>{c.d(b,{diagram:()=>aa});var d=c(24795),e=c(21143),f=c(69085);function g(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c>b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c>e||void 0===c&&e>=e)&&(c=e)}return c}function h(a){return a.target.depth}function i(a,b){return a.sourceLinks.length?a.depth:b-1}function j(a,b){let c=0;if(void 0===b)for(let b of a)(b*=1)&&(c+=b);else{let d=-1;for(let e of a)(e=+b(e,++d,a))&&(c+=e)}return c}function k(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c<b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c<e||void 0===c&&e>=e)&&(c=e)}return c}function l(a){return function(){return a}}function m(a,b){return o(a.source,b.source)||a.index-b.index}function n(a,b){return o(a.target,b.target)||a.index-b.index}function o(a,b){return a.y0-b.y0}function p(a){return a.value}function q(a){return a.index}function r(a){return a.nodes}function s(a){return a.links}function t(a,b){let c=a.get(b);if(!c)throw Error("missing: "+b);return c}function u({nodes:a}){for(let b of a){let a=b.y0,c=a;for(let c of b.sourceLinks)c.y0=a+c.width/2,a+=c.width;for(let a of b.targetLinks)a.y1=c+a.width/2,c+=a.width}}var v=Math.PI,w=2*v,x=w-1e-6;function y(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function z(){return new y}y.prototype=z.prototype={constructor:y,moveTo:function(a,b){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,b){this._+="L"+(this._x1=+a)+","+(this._y1=+b)},quadraticCurveTo:function(a,b,c,d){this._+="Q"+ +a+","+ +b+","+(this._x1=+c)+","+(this._y1=+d)},bezierCurveTo:function(a,b,c,d,e,f){this._+="C"+ +a+","+ +b+","+ +c+","+ +d+","+(this._x1=+e)+","+(this._y1=+f)},arcTo:function(a,b,c,d,e){a*=1,b*=1,c*=1,d*=1,e*=1;var f=this._x1,g=this._y1,h=c-a,i=d-b,j=f-a,k=g-b,l=j*j+k*k;if(e<0)throw Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=a)+","+(this._y1=b);else if(l>1e-6)if(Math.abs(k*h-i*j)>1e-6&&e){var m=c-f,n=d-g,o=h*h+i*i,p=Math.sqrt(o),q=Math.sqrt(l),r=e*Math.tan((v-Math.acos((o+l-(m*m+n*n))/(2*p*q)))/2),s=r/q,t=r/p;Math.abs(s-1)>1e-6&&(this._+="L"+(a+s*j)+","+(b+s*k)),this._+="A"+e+","+e+",0,0,"+ +(k*m>j*n)+","+(this._x1=a+t*h)+","+(this._y1=b+t*i)}else this._+="L"+(this._x1=a)+","+(this._y1=b)},arc:function(a,b,c,d,e,f){a*=1,b*=1,c*=1,f=!!f;var g=c*Math.cos(d),h=c*Math.sin(d),i=a+g,j=b+h,k=1^f,l=f?d-e:e-d;if(c<0)throw Error("negative radius: "+c);null===this._x1?this._+="M"+i+","+j:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-j)>1e-6)&&(this._+="L"+i+","+j),c&&(l<0&&(l=l%w+w),l>x?this._+="A"+c+","+c+",0,1,"+k+","+(a-g)+","+(b-h)+"A"+c+","+c+",0,1,"+k+","+(this._x1=i)+","+(this._y1=j):l>1e-6&&(this._+="A"+c+","+c+",0,"+ +(l>=v)+","+k+","+(this._x1=a+c*Math.cos(e))+","+(this._y1=b+c*Math.sin(e))))},rect:function(a,b,c,d){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)+"h"+ +c+"v"+ +d+"h"+-c+"Z"},toString:function(){return this._}};var A=Array.prototype.slice;function B(a){return function(){return a}}function C(a){return a[0]}function D(a){return a[1]}function E(a){return a.source}function F(a){return a.target}function G(a,b,c,d,e){a.moveTo(b,c),a.bezierCurveTo(b=(b+d)/2,c,b,e,d,e)}function H(a){return[a.source.x1,a.y0]}function I(a){return[a.target.x0,a.y1]}var J=function(){var a=(0,e.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,9],c=[1,10],d=[1,5,10,12],f={trace:(0,e.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,e.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 7:let i=d.findOrCreateNode(f[h-4].trim().replaceAll('""','"')),j=d.findOrCreateNode(f[h-2].trim().replaceAll('""','"')),k=parseFloat(f[h].trim());d.addLink(i,j,k);break;case 8:case 9:case 11:this.$=f[h];break;case 10:this.$=f[h-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:b,20:c},{1:[2,6],7:11,10:[1,12]},a(c,[2,4],{9:13,5:[1,14]}),{12:[1,15]},a(d,[2,8]),a(d,[2,9]),{19:[1,16]},a(d,[2,11]),{1:[2,1]},{1:[2,5]},a(c,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:b,20:c},{15:18,16:7,17:8,18:b,20:c},{18:[1,19]},a(c,[2,3]),{12:[1,20]},a(d,[2,10]),{15:21,16:7,17:8,18:b,20:c},a([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,e.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,e.K2)(function(a){var b=this,c=[0],d=[],f=[null],g=[],h=this.table,i="",j=0,k=0,l=0,m=g.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;g.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,e.K2)(function(a){c.length=c.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,e.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),f.push(n.yytext),g.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=f[f.length-z],C._$={first_line:g[g.length-(z||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(z||1)].first_column,last_column:g[g.length-1].last_column},r&&(C._$.range=[g[g.length-(z||1)].range[0],g[g.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],f,g].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function g(){this.yy={}}return f.lexer={EOF:1,parseError:(0,e.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,e.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,e.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:(0,e.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,e.K2)(function(){return this._more=!0,this},"more"),reject:(0,e.K2)(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:(0,e.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,e.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,e.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,e.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,e.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,e.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===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:(0,e.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,e.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,e.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,e.K2)(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:(0,e.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,e.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,e.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,e.K2)(function(a,b,c,d){switch(c){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,e.K2)(g,"Parser"),g.prototype=f,f.Parser=g,new g}();J.parser=J;var K=[],L=[],M=new Map,N=(0,e.K2)(()=>{K=[],L=[],M=new Map,(0,d.IU)()},"clear"),O=class{constructor(a,b,c=0){this.source=a,this.target=b,this.value=c}static{(0,e.K2)(this,"SankeyLink")}},P=(0,e.K2)((a,b,c)=>{K.push(new O(a,b,c))},"addLink"),Q=class{constructor(a){this.ID=a}static{(0,e.K2)(this,"SankeyNode")}},R=(0,e.K2)(a=>{a=d.Y2.sanitizeText(a,(0,d.D7)());let b=M.get(a);return void 0===b&&(b=new Q(a),M.set(a,b),L.push(b)),b},"findOrCreateNode"),S=(0,e.K2)(()=>L,"getNodes"),T=(0,e.K2)(()=>K,"getLinks"),U=(0,e.K2)(()=>({nodes:L.map(a=>({id:a.ID})),links:K.map(a=>({source:a.source.ID,target:a.target.ID,value:a.value}))}),"getGraph"),V={nodesMap:M,getConfig:(0,e.K2)(()=>(0,d.D7)().sankey,"getConfig"),getNodes:S,getLinks:T,getGraph:U,addLink:P,findOrCreateNode:R,getAccTitle:d.iN,setAccTitle:d.SV,getAccDescription:d.m7,setAccDescription:d.EI,getDiagramTitle:d.ab,setDiagramTitle:d.ke,clear:N},W=class a{static{(0,e.K2)(this,"Uid")}static{this.count=0}static next(b){return new a(b+ ++a.count)}constructor(a){this.id=a,this.href=`#${a}`}toString(){return"url("+this.href+")"}},X={left:function(a){return a.depth},right:function(a,b){return b-1-a.height},center:function(a){return a.targetLinks.length?a.depth:a.sourceLinks.length?g(a.sourceLinks,h)-1:0},justify:i},Y=(0,e.K2)(function(a,b,c,h){let v,w,{securityLevel:x,sankey:y}=(0,d.D7)(),J=d.ME.sankey;"sandbox"===x&&(v=(0,f.Ltv)("#i"+b));let K="sandbox"===x?(0,f.Ltv)(v.nodes()[0].contentDocument.body):(0,f.Ltv)("body"),L="sandbox"===x?K.select(`[id="${b}"]`):(0,f.Ltv)(`[id="${b}"]`),M=y?.width??J.width,N=y?.height??J.width,O=y?.useMaxWidth??J.useMaxWidth,P=y?.nodeAlignment??J.nodeAlignment,Q=y?.prefix??J.prefix,R=y?.suffix??J.suffix,S=y?.showValues??J.showValues,T=h.db.getGraph(),U=X[P];(function(){let a,b,c=0,d=0,e=1,f=1,h=24,v=8,w,x=q,y=i,z=r,A=s,B=6;function C(){let i={nodes:z.apply(null,arguments),links:A.apply(null,arguments)};return function({nodes:a,links:c}){for(let[b,c]of a.entries())c.index=b,c.sourceLinks=[],c.targetLinks=[];let d=new Map(a.map((b,c)=>[x(b,c,a),b]));for(let[a,b]of c.entries()){b.index=a;let{source:c,target:e}=b;"object"!=typeof c&&(c=b.source=t(d,c)),"object"!=typeof e&&(e=b.target=t(d,e)),c.sourceLinks.push(b),e.targetLinks.push(b)}if(null!=b)for(let{sourceLinks:c,targetLinks:d}of a)c.sort(b),d.sort(b)}(i),function({nodes:a}){for(let b of a)b.value=void 0===b.fixedValue?Math.max(j(b.sourceLinks,p),j(b.targetLinks,p)):b.fixedValue}(i),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{target:b}of(a.depth=e,a.sourceLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(i),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{source:b}of(a.height=e,a.targetLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(i),function(i){let l=function({nodes:b}){let d=k(b,a=>a.depth)+1,f=(e-c-h)/(d-1),g=Array(d);for(let a of b){let b=Math.max(0,Math.min(d-1,Math.floor(y.call(null,a,d))));a.layer=b,a.x0=c+b*f,a.x1=a.x0+h,g[b]?g[b].push(a):g[b]=[a]}if(a)for(let b of g)b.sort(a);return g}(i);w=Math.min(v,(f-d)/(k(l,a=>a.length)-1));let q=g(l,a=>(f-d-(a.length-1)*w)/j(a,p));for(let a of l){let c=d;for(let b of a)for(let a of(b.y0=c,b.y1=c+b.value*q,c=b.y1+w,b.sourceLinks))a.width=a.value*q;c=(f-c+w)/(a.length+1);for(let b=0;b<a.length;++b){let d=a[b];d.y0+=c*(b+1),d.y1+=c*(b+1)}var r=a;if(void 0===b)for(let{sourceLinks:a,targetLinks:b}of r)a.sort(n),b.sort(m)}for(let b=0;b<B;++b){let c=Math.pow(.99,b),d=Math.max(1-c,(b+1)/B);(function(b,c,d){for(let e=b.length,f=e-2;f>=0;--f){let e=b[f];for(let a of e){let b=0,d=0;for(let{target:c,value:e}of a.sourceLinks){let f=e*(c.layer-a.layer);b+=function(a,b){let c=b.y0-(b.targetLinks.length-1)*w/2;for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c+=e+w}for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c-=e}return c}(a,c)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&e.sort(o),D(e,d)}})(l,c,d),function(b,c,d){for(let e=1,f=b.length;e<f;++e){let f=b[e];for(let a of f){let b=0,d=0;for(let{source:c,value:e}of a.targetLinks){let f=e*(a.layer-c.layer);b+=function(a,b){let c=a.y0-(a.sourceLinks.length-1)*w/2;for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c+=e+w}for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c-=e}return c}(c,a)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&f.sort(o),D(f,d)}}(l,c,d)}}(i),u(i),i}function D(a,b){let c=a.length>>1,e=a[c];F(a,e.y0-w,c-1,b),E(a,e.y1+w,c+1,b),F(a,f,a.length-1,b),E(a,d,0,b)}function E(a,b,c,d){for(;c<a.length;++c){let e=a[c],f=(b-e.y0)*d;f>1e-6&&(e.y0+=f,e.y1+=f),b=e.y1+w}}function F(a,b,c,d){for(;c>=0;--c){let e=a[c],f=(e.y1-b)*d;f>1e-6&&(e.y0-=f,e.y1-=f),b=e.y0-w}}function G({sourceLinks:a,targetLinks:c}){if(void 0===b){for(let{source:{sourceLinks:a}}of c)a.sort(n);for(let{target:{targetLinks:b}}of a)b.sort(m)}}return C.update=function(a){return u(a),a},C.nodeId=function(a){return arguments.length?(x="function"==typeof a?a:l(a),C):x},C.nodeAlign=function(a){return arguments.length?(y="function"==typeof a?a:l(a),C):y},C.nodeSort=function(b){return arguments.length?(a=b,C):a},C.nodeWidth=function(a){return arguments.length?(h=+a,C):h},C.nodePadding=function(a){return arguments.length?(v=w=+a,C):v},C.nodes=function(a){return arguments.length?(z="function"==typeof a?a:l(a),C):z},C.links=function(a){return arguments.length?(A="function"==typeof a?a:l(a),C):A},C.linkSort=function(a){return arguments.length?(b=a,C):b},C.size=function(a){return arguments.length?(c=d=0,e=+a[0],f=+a[1],C):[e-c,f-d]},C.extent=function(a){return arguments.length?(c=+a[0][0],e=+a[1][0],d=+a[0][1],f=+a[1][1],C):[[c,d],[e,f]]},C.iterations=function(a){return arguments.length?(B=+a,C):B},C})().nodeId(a=>a.id).nodeWidth(10).nodePadding(10+15*!!S).nodeAlign(U).extent([[0,0],[M,N]])(T);let V=(0,f.UMr)(f.zt);L.append("g").attr("class","nodes").selectAll(".node").data(T.nodes).join("g").attr("class","node").attr("id",a=>(a.uid=W.next("node-")).id).attr("transform",function(a){return"translate("+a.x0+","+a.y0+")"}).attr("x",a=>a.x0).attr("y",a=>a.y0).append("rect").attr("height",a=>a.y1-a.y0).attr("width",a=>a.x1-a.x0).attr("fill",a=>V(a.id));let Y=(0,e.K2)(({id:a,value:b})=>S?`${a}
2
- ${Q}${Math.round(100*b)/100}${R}`:a,"getText");L.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(T.nodes).join("text").attr("x",a=>a.x0<M/2?a.x1+6:a.x0-6).attr("y",a=>(a.y1+a.y0)/2).attr("dy",`${S?"0":"0.35"}em`).attr("text-anchor",a=>a.x0<M/2?"start":"end").text(Y);let Z=L.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(T.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),$=y?.linkColor??"gradient";if("gradient"===$){let a=Z.append("linearGradient").attr("id",a=>(a.uid=W.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",a=>a.source.x1).attr("x2",a=>a.target.x0);a.append("stop").attr("offset","0%").attr("stop-color",a=>V(a.source.id)),a.append("stop").attr("offset","100%").attr("stop-color",a=>V(a.target.id))}switch($){case"gradient":w=(0,e.K2)(a=>a.uid,"coloring");break;case"source":w=(0,e.K2)(a=>V(a.source.id),"coloring");break;case"target":w=(0,e.K2)(a=>V(a.target.id),"coloring");break;default:w=$}Z.append("path").attr("d",(function(a){var b=E,c=F,d=C,e=D,f=null;function g(){var g,h=A.call(arguments),i=b.apply(this,h),j=c.apply(this,h);if(f||(f=g=z()),a(f,+d.apply(this,(h[0]=i,h)),+e.apply(this,h),+d.apply(this,(h[0]=j,h)),+e.apply(this,h)),g)return f=null,g+""||null}return g.source=function(a){return arguments.length?(b=a,g):b},g.target=function(a){return arguments.length?(c=a,g):c},g.x=function(a){return arguments.length?(d="function"==typeof a?a:B(+a),g):d},g.y=function(a){return arguments.length?(e="function"==typeof a?a:B(+a),g):e},g.context=function(a){return arguments.length?(f=null==a?null:a,g):f},g})(G).source(H).target(I)).attr("stroke",w).attr("stroke-width",a=>Math.max(1,a.width)),(0,d.ot)(void 0,L,0,O)},"draw"),Z=(0,e.K2)(a=>a.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),$=(0,e.K2)(a=>`.label {
3
- font-family: ${a.fontFamily};
4
- }`,"getStyles"),_=J.parse.bind(J);J.parse=a=>_(Z(a));var aa={styles:$,parser:J,db:V,renderer:{draw:Y}}}};
@@ -1,141 +0,0 @@
1
- "use strict";exports.id=4309,exports.ids=[4309],exports.modules={34309:(a,b,c)=>{c.d(b,{diagram:()=>bh});var d=c(61827),e=c(22775),f=c(75761),g=c(68705),h=c(94222),i=c(24795),j=c(21143),k=c(37603),l=c(75899),m=c(14120),n=c(69085),o=c(74367),p=function(){var a=(0,j.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,15],c=[1,7],d=[1,13],e=[1,14],f=[1,19],g=[1,16],h=[1,17],i=[1,18],k=[8,30],l=[8,10,21,28,29,30,31,39,43,46],m=[1,23],n=[1,24],o=[8,10,15,16,21,28,29,30,31,39,43,46],p=[8,10,15,16,21,27,28,29,30,31,39,43,46],q=[1,49],r={trace:(0,j.K2)(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,j.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",f[h-1]),d.setHierarchy(f[h-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",f[h]),"number"==typeof f[h].length?this.$=f[h]:this.$=[f[h]];break;case 13:d.getLogger().debug("Rule: statement #2: ",f[h-1]),this.$=[f[h-1]].concat(f[h]);break;case 14:d.getLogger().debug("Rule: link: ",f[h],a),this.$={edgeTypeStr:f[h],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",f[h-3],f[h-1],f[h]),this.$={edgeTypeStr:f[h],label:f[h-1]};break;case 18:let i=parseInt(f[h]),j=d.generateId();this.$={id:j,type:"space",label:"",width:i,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",f[h-2],f[h-1],f[h]," typestr: ",f[h-1].edgeTypeStr);let k=d.edgeStrToEdgeData(f[h-1].edgeTypeStr);this.$=[{id:f[h-2].id,label:f[h-2].label,type:f[h-2].type,directions:f[h-2].directions},{id:f[h-2].id+"-"+f[h].id,start:f[h-2].id,end:f[h].id,label:f[h-1].label,type:"edge",directions:f[h].directions,arrowTypeEnd:k,arrowTypeStart:"arrow_open"},{id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",f[h-1],f[h]),this.$={id:f[h-1].id,label:f[h-1].label,type:d.typeStr2Type(f[h-1].typeStr),directions:f[h-1].directions,widthInColumns:parseInt(f[h],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",f[h]),this.$={id:f[h].id,label:f[h].label,type:d.typeStr2Type(f[h].typeStr),directions:f[h].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",f[h]),this.$={type:"column-setting",columns:"auto"===f[h]?-1:parseInt(f[h])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",f[h-2],f[h-1]),d.generateId(),this.$={...f[h-2],type:"composite",children:f[h-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",f[h-2],f[h-1],f[h]);let l=d.generateId();this.$={id:l,type:"composite",label:"",children:f[h-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",f[h]),this.$={id:f[h]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",f[h-1],f[h]),this.$={id:f[h-1],label:f[h].label,typeStr:f[h].typeStr,directions:f[h].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",f[h]),this.$=[f[h]];break;case 32:d.getLogger().debug("Rule: dirList: ",f[h-1],f[h]),this.$=[f[h-1]].concat(f[h]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",f[h-2],f[h-1],f[h]),this.$={typeStr:f[h-2]+f[h],label:f[h-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",f[h-3],f[h-2]," #3:",f[h-1],f[h]),this.$={typeStr:f[h-3]+f[h],label:f[h-2],directions:f[h-1]};break;case 35:case 36:this.$={type:"classDef",id:f[h-1].trim(),css:f[h].trim()};break;case 37:this.$={type:"applyClass",id:f[h-1].trim(),styleClass:f[h].trim()};break;case 38:this.$={type:"applyStyles",id:f[h-1].trim(),stylesStr:f[h].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:b,11:3,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{8:[1,20]},a(k,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:b,21:c,28:d,29:e,31:f,39:g,43:h,46:i}),a(l,[2,16],{14:22,15:m,16:n}),a(l,[2,17]),a(l,[2,18]),a(l,[2,19]),a(l,[2,20]),a(l,[2,21]),a(l,[2,22]),a(o,[2,25],{27:[1,25]}),a(l,[2,26]),{19:26,26:12,31:f},{10:b,11:27,13:4,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},a(p,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},a(k,[2,13]),{26:35,31:f},{31:[2,14]},{17:[1,36]},a(o,[2,24]),{10:b,11:37,13:4,14:22,15:m,16:n,19:5,20:6,21:c,22:8,23:9,24:10,25:11,26:12,28:d,29:e,31:f,39:g,43:h,46:i},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},a(p,[2,30]),{18:[1,43]},{18:[1,44]},a(o,[2,23]),{18:[1,45]},{30:[1,46]},a(l,[2,28]),a(l,[2,35]),a(l,[2,36]),a(l,[2,37]),a(l,[2,38]),{36:[1,47]},{33:48,34:q},{15:[1,50]},a(l,[2,27]),a(p,[2,33]),{38:[1,51]},{33:52,34:q,38:[2,31]},{31:[2,15]},a(p,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,j.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,j.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",i=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,j.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,j.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(i+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,i=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,i,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function s(){this.yy={}}return r.lexer={EOF:1,parseError:(0,j.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,j.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,j.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:(0,j.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,j.K2)(function(){return this._more=!0,this},"more"),reject:(0,j.K2)(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:(0,j.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,j.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,j.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,j.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,j.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,j.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===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:(0,j.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,j.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,j.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,j.K2)(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:(0,j.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,j.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,j.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,j.K2)(function(a,b,c,d){switch(c){case 0:return a.getLogger().debug("Found block-beta"),10;case 1:return a.getLogger().debug("Found id-block"),29;case 2:return a.getLogger().debug("Found block"),10;case 3:a.getLogger().debug(".",b.yytext);break;case 4:a.getLogger().debug("_",b.yytext);break;case 5:return 5;case 6:return b.yytext=-1,28;case 7:return b.yytext=b.yytext.replace(/columns\s+/,""),a.getLogger().debug("COLUMNS (LEX)",b.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:a.getLogger().debug("LEX: POPPING STR:",b.yytext),this.popState();break;case 13:return a.getLogger().debug("LEX: STR end:",b.yytext),"STR";case 14:return b.yytext=b.yytext.replace(/space\:/,""),a.getLogger().debug("SPACE NUM (LEX)",b.yytext),21;case 15:return b.yytext="1",a.getLogger().debug("COLUMNS (LEX)",b.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),a.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),a.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),a.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),a.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),a.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),a.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),a.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),a.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),a.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),a.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),a.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),a.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return a.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return a.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return a.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return a.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return a.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return a.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return a.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return a.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),a.getLogger().debug("LEX ARR START"),37;case 74:return a.getLogger().debug("Lex: NODE_ID",b.yytext),31;case 75:return a.getLogger().debug("Lex: EOF",b.yytext),8;case 78:return"NODE_DESCR";case 80:a.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:a.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return a.getLogger().debug("LEX: NODE_DESCR:",b.yytext),"NODE_DESCR";case 83:a.getLogger().debug("LEX POPPING"),this.popState();break;case 84:a.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (right): dir:",b.yytext),"DIR";case 86:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (left):",b.yytext),"DIR";case 87:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (x):",b.yytext),"DIR";case 88:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (y):",b.yytext),"DIR";case 89:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (up):",b.yytext),"DIR";case 90:return b.yytext=b.yytext.replace(/^,\s*/,""),a.getLogger().debug("Lex (down):",b.yytext),"DIR";case 91:return b.yytext="]>",a.getLogger().debug("Lex (ARROW_DIR end):",b.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 93:case 94:case 95:return a.getLogger().debug("Lex: LINK",b.yytext),15;case 96:case 97:case 98:return a.getLogger().debug("Lex: START_LINK",b.yytext),this.pushState("LLABEL"),16;case 100:return a.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),a.getLogger().debug("Lex: LINK","#"+b.yytext+"#"),15;case 102:case 103:return this.popState(),a.getLogger().debug("Lex: LINK",b.yytext),15;case 104:return a.getLogger().debug("Lex: COLON",b.yytext),b.yytext=b.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,j.K2)(s,"Parser"),s.prototype=r,r.Parser=s,new s}();p.parser=p;var q=new Map,r=[],s=new Map,t="color",u="fill",v=(0,i.D7)(),w=new Map,x=(0,j.K2)(a=>i.Y2.sanitizeText(a,v),"sanitizeText"),y=(0,j.K2)(function(a,b=""){let c=w.get(a);c||(c={id:a,styles:[],textStyles:[]},w.set(a,c)),null!=b&&b.split(",").forEach(a=>{let b=a.replace(/([^;]*);/,"$1").trim();if(RegExp(t).exec(a)){let a=b.replace(u,"bgFill").replace(t,u);c.textStyles.push(a)}c.styles.push(b)})},"addStyleClass"),z=(0,j.K2)(function(a,b=""){let c=q.get(a);null!=b&&(c.styles=b.split(","))},"addStyle2Node"),A=(0,j.K2)(function(a,b){a.split(",").forEach(function(a){let c=q.get(a);if(void 0===c){let b=a.trim();c={id:b,type:"na",children:[]},q.set(b,c)}c.classes||(c.classes=[]),c.classes.push(b)})},"setCssClass"),B=(0,j.K2)((a,b)=>{let c=a.flat(),d=[],e=c.find(a=>a?.type==="column-setting"),f=e?.columns??-1;for(let a of c){if("number"==typeof f&&f>0&&"column-setting"!==a.type&&"number"==typeof a.widthInColumns&&a.widthInColumns>f&&j.Rm.warn(`Block ${a.id} width ${a.widthInColumns} exceeds configured column width ${f}`),a.label&&(a.label=x(a.label)),"classDef"===a.type){y(a.id,a.css);continue}if("applyClass"===a.type){A(a.id,a?.styleClass??"");continue}if("applyStyles"===a.type){a?.stylesStr&&z(a.id,a?.stylesStr);continue}if("column-setting"===a.type)b.columns=a.columns??-1;else if("edge"===a.type){let b=(s.get(a.id)??0)+1;s.set(a.id,b),a.id=b+"-"+a.id,r.push(a)}else{a.label||("composite"===a.type?a.label="":a.label=a.id);let b=q.get(a.id);if(void 0===b?q.set(a.id,a):("na"!==a.type&&(b.type=a.type),a.label!==a.id&&(b.label=a.label)),a.children&&B(a.children,a),"space"===a.type){let b=a.width??1;for(let c=0;c<b;c++){let b=(0,k.A)(a);b.id=b.id+"-"+c,q.set(b.id,b),d.push(b)}}else void 0===b&&d.push(a)}}b.children=d},"populateBlockDatabase"),C=[],D={id:"root",type:"composite",children:[],columns:-1},E=(0,j.K2)(()=>{j.Rm.debug("Clear called"),(0,i.IU)(),q=new Map([["root",D={id:"root",type:"composite",children:[],columns:-1}]]),C=[],w=new Map,r=[],s=new Map},"clear");function F(a){switch(j.Rm.debug("typeStr2Type",a),a){case"[]":return"square";case"()":return j.Rm.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function G(a){return(j.Rm.debug("typeStr2Type",a),"=="===a)?"thick":"normal"}function H(a){switch(a.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}(0,j.K2)(F,"typeStr2Type"),(0,j.K2)(G,"edgeTypeStr2Type"),(0,j.K2)(H,"edgeStrToEdgeData");var I=0,J=(0,j.K2)(()=>(I++,"id-"+Math.random().toString(36).substr(2,12)+"-"+I),"generateId"),K=(0,j.K2)(a=>{D.children=a,B(a,D),C=D.children},"setHierarchy"),L=(0,j.K2)(a=>{let b=q.get(a);return b?b.columns?b.columns:b.children?b.children.length:-1:-1},"getColumns"),M=(0,j.K2)(()=>[...q.values()],"getBlocksFlat"),N=(0,j.K2)(()=>C||[],"getBlocks"),O=(0,j.K2)(()=>r,"getEdges"),P=(0,j.K2)(a=>q.get(a),"getBlock"),Q=(0,j.K2)(a=>{q.set(a.id,a)},"setBlock"),R=(0,j.K2)(()=>j.Rm,"getLogger"),S=(0,j.K2)(function(){return w},"getClasses"),T={getConfig:(0,j.K2)(()=>(0,i.zj)().block,"getConfig"),typeStr2Type:F,edgeTypeStr2Type:G,edgeStrToEdgeData:H,getLogger:R,getBlocksFlat:M,getBlocks:N,getEdges:O,setHierarchy:K,getBlock:P,setBlock:Q,getColumns:L,getClasses:S,clear:E,generateId:J},U=(0,j.K2)((a,b)=>{let c=l.A,d=c(a,"r"),e=c(a,"g"),f=c(a,"b");return m.A(d,e,f,b)},"fade"),V=(0,j.K2)(a=>`.label {
2
- font-family: ${a.fontFamily};
3
- color: ${a.nodeTextColor||a.textColor};
4
- }
5
- .cluster-label text {
6
- fill: ${a.titleColor};
7
- }
8
- .cluster-label span,p {
9
- color: ${a.titleColor};
10
- }
11
-
12
-
13
-
14
- .label text,span,p {
15
- fill: ${a.nodeTextColor||a.textColor};
16
- color: ${a.nodeTextColor||a.textColor};
17
- }
18
-
19
- .node rect,
20
- .node circle,
21
- .node ellipse,
22
- .node polygon,
23
- .node path {
24
- fill: ${a.mainBkg};
25
- stroke: ${a.nodeBorder};
26
- stroke-width: 1px;
27
- }
28
- .flowchart-label text {
29
- text-anchor: middle;
30
- }
31
- // .flowchart-label .text-outer-tspan {
32
- // text-anchor: middle;
33
- // }
34
- // .flowchart-label .text-inner-tspan {
35
- // text-anchor: start;
36
- // }
37
-
38
- .node .label {
39
- text-align: center;
40
- }
41
- .node.clickable {
42
- cursor: pointer;
43
- }
44
-
45
- .arrowheadPath {
46
- fill: ${a.arrowheadColor};
47
- }
48
-
49
- .edgePath .path {
50
- stroke: ${a.lineColor};
51
- stroke-width: 2.0px;
52
- }
53
-
54
- .flowchart-link {
55
- stroke: ${a.lineColor};
56
- fill: none;
57
- }
58
-
59
- .edgeLabel {
60
- background-color: ${a.edgeLabelBackground};
61
- /*
62
- * This is for backward compatibility with existing code that didn't
63
- * add a \`<p>\` around edge labels.
64
- *
65
- * TODO: We should probably remove this in a future release.
66
- */
67
- p {
68
- margin: 0;
69
- padding: 0;
70
- display: inline;
71
- }
72
- rect {
73
- opacity: 0.5;
74
- background-color: ${a.edgeLabelBackground};
75
- fill: ${a.edgeLabelBackground};
76
- }
77
- text-align: center;
78
- }
79
-
80
- /* For html labels only */
81
- .labelBkg {
82
- background-color: ${a.edgeLabelBackground};
83
- }
84
-
85
- .node .cluster {
86
- // fill: ${U(a.mainBkg,.5)};
87
- fill: ${U(a.clusterBkg,.5)};
88
- stroke: ${U(a.clusterBorder,.2)};
89
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
90
- stroke-width: 1px;
91
- }
92
-
93
- .cluster text {
94
- fill: ${a.titleColor};
95
- }
96
-
97
- .cluster span,p {
98
- color: ${a.titleColor};
99
- }
100
- /* .cluster div {
101
- color: ${a.titleColor};
102
- } */
103
-
104
- div.mermaidTooltip {
105
- position: absolute;
106
- text-align: center;
107
- max-width: 200px;
108
- padding: 2px;
109
- font-family: ${a.fontFamily};
110
- font-size: 12px;
111
- background: ${a.tertiaryColor};
112
- border: 1px solid ${a.border2};
113
- border-radius: 2px;
114
- pointer-events: none;
115
- z-index: 100;
116
- }
117
-
118
- .flowchartTitleText {
119
- text-anchor: middle;
120
- font-size: 18px;
121
- fill: ${a.textColor};
122
- }
123
- ${(0,d.o)()}
124
- `,"getStyles"),W=(0,j.K2)((a,b,c,d)=>{b.forEach(b=>{ac[b](a,c,d)})},"insertMarkers"),X=(0,j.K2)((a,b,c)=>{j.Rm.trace("Making markers for ",c),a.append("defs").append("marker").attr("id",c+"_"+b+"-extensionStart").attr("class","marker extension "+b).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-extensionEnd").attr("class","marker extension "+b).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Y=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-compositionStart").attr("class","marker composition "+b).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-compositionEnd").attr("class","marker composition "+b).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Z=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-aggregationStart").attr("class","marker aggregation "+b).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-aggregationEnd").attr("class","marker aggregation "+b).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),$=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-dependencyStart").attr("class","marker dependency "+b).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),a.append("defs").append("marker").attr("id",c+"_"+b+"-dependencyEnd").attr("class","marker dependency "+b).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),_=(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-lollipopStart").attr("class","marker lollipop "+b).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),a.append("defs").append("marker").attr("id",c+"_"+b+"-lollipopEnd").attr("class","marker lollipop "+b).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),aa=(0,j.K2)((a,b,c)=>{a.append("marker").attr("id",c+"_"+b+"-pointEnd").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",c+"_"+b+"-pointStart").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),ab=(0,j.K2)((a,b,c)=>{a.append("marker").attr("id",c+"_"+b+"-circleEnd").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),a.append("marker").attr("id",c+"_"+b+"-circleStart").attr("class","marker "+b).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),ac={extension:X,composition:Y,aggregation:Z,dependency:$,lollipop:_,point:aa,circle:ab,cross:(0,j.K2)((a,b,c)=>{a.append("marker").attr("id",c+"_"+b+"-crossEnd").attr("class","marker cross "+b).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),a.append("marker").attr("id",c+"_"+b+"-crossStart").attr("class","marker cross "+b).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:(0,j.K2)((a,b,c)=>{a.append("defs").append("marker").attr("id",c+"_"+b+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb")},ad=(0,i.D7)()?.block?.padding??8;function ae(a,b){if(0===a||!Number.isInteger(a))throw Error("Columns must be an integer !== 0.");if(b<0||!Number.isInteger(b))throw Error("Position must be a non-negative integer."+b);return a<0?{px:b,py:0}:1===a?{px:0,py:b}:{px:b%a,py:Math.floor(b/a)}}(0,j.K2)(ae,"calculateBlockPosition");var af=(0,j.K2)(a=>{let b=0,c=0;for(let d of a.children){let{width:a,height:e,x:f,y:g}=d.size??{width:0,height:0,x:0,y:0};j.Rm.debug("getMaxChildSize abc95 child:",d.id,"width:",a,"height:",e,"x:",f,"y:",g,d.type),"space"!==d.type&&(a>b&&(b=a/(d.widthInColumns??1)),e>c&&(c=e))}return{width:b,height:c}},"getMaxChildSize");function ag(a,b,c=0,d=0){j.Rm.debug("setBlockSizes abc95 (start)",a.id,a?.size?.x,"block width =",a?.size,"siblingWidth",c),a?.size?.width||(a.size={width:c,height:d,x:0,y:0});let e=0,f=0;if(a.children?.length>0){for(let c of a.children)ag(c,b);let g=af(a);for(let b of(e=g.width,f=g.height,j.Rm.debug("setBlockSizes abc95 maxWidth of",a.id,":s children is ",e,f),a.children))b.size&&(j.Rm.debug(`abc95 Setting size of children of ${a.id} id=${b.id} ${e} ${f} ${JSON.stringify(b.size)}`),b.size.width=e*(b.widthInColumns??1)+ad*((b.widthInColumns??1)-1),b.size.height=f,b.size.x=0,b.size.y=0,j.Rm.debug(`abc95 updating size of ${a.id} children child:${b.id} maxWidth:${e} maxHeight:${f}`));for(let c of a.children)ag(c,b,e,f);let h=a.columns??-1,i=0;for(let b of a.children)i+=b.widthInColumns??1;let k=a.children.length;h>0&&h<i&&(k=h);let l=Math.ceil(i/k),m=k*(e+ad)+ad,n=l*(f+ad)+ad;if(m<c){j.Rm.debug(`Detected to small sibling: abc95 ${a.id} siblingWidth ${c} siblingHeight ${d} width ${m}`),m=c,n=d;let b=(c-k*ad-ad)/k,g=(d-l*ad-ad)/l;for(let c of(j.Rm.debug("Size indata abc88",a.id,"childWidth",b,"maxWidth",e),j.Rm.debug("Size indata abc88",a.id,"childHeight",g,"maxHeight",f),j.Rm.debug("Size indata abc88 xSize",k,"padding",ad),a.children))c.size&&(c.size.width=b,c.size.height=g,c.size.x=0,c.size.y=0)}if(j.Rm.debug(`abc95 (finale calc) ${a.id} xSize ${k} ySize ${l} columns ${h}${a.children.length} width=${Math.max(m,a.size?.width||0)}`),m<(a?.size?.width||0)){m=a?.size?.width||0;let b=h>0?Math.min(a.children.length,h):a.children.length;if(b>0){let c=(m-b*ad-ad)/b;for(let b of(j.Rm.debug("abc95 (growing to fit) width",a.id,m,a.size?.width,c),a.children))b.size&&(b.size.width=c)}}a.size={width:m,height:n,x:0,y:0}}j.Rm.debug("setBlockSizes abc94 (done)",a.id,a?.size?.x,a?.size?.width,a?.size?.y,a?.size?.height)}function ah(a,b){j.Rm.debug(`abc85 layout blocks (=>layoutBlocks) ${a.id} x: ${a?.size?.x} y: ${a?.size?.y} width: ${a?.size?.width}`);let c=a.columns??-1;if(j.Rm.debug("layoutBlocks columns abc95",a.id,"=>",c,a),a.children&&a.children.length>0){let d=a?.children[0]?.size?.width??0,e=a.children.length*d+(a.children.length-1)*ad;j.Rm.debug("widthOfChildren 88",e,"posX");let f=new Map;{let b=0;for(let d of a.children){if(!d.size)continue;let{py:a}=ae(c,b),e=f.get(a)??0;d.size.height>e&&f.set(a,d.size.height);let g=d?.widthInColumns??1;c>0&&(g=Math.min(g,c-b%c)),b+=g}}let g=new Map;{let a=0;for(let b of[...f.keys()].sort((a,b)=>a-b))g.set(b,a),a+=(f.get(b)??0)+ad}let h=0;j.Rm.debug("abc91 block?.size?.x",a.id,a?.size?.x);let i=a?.size?.x?a?.size?.x+(-a?.size?.width/2||0):-ad,k=0;for(let d of a.children){if(!d.size)continue;let{width:e,height:l}=d.size,{px:m,py:n}=ae(c,h);if(n!=k&&(k=n,i=a?.size?.x?a?.size?.x+(-a?.size?.width/2||0):-ad,j.Rm.debug("New row in layout for block",a.id," and child ",d.id,k)),j.Rm.debug(`abc89 layout blocks (child) id: ${d.id} Pos: ${h} (px, py) ${m},${n} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${e}${ad}`),a.size){let b=e/2;d.size.x=i+ad+b,j.Rm.debug(`abc91 layout blocks (calc) px, pyid:${d.id} startingPos=X${i} new startingPosX${d.size.x} ${b} padding=${ad} width=${e} halfWidth=${b} => x:${d.size.x} y:${d.size.y} ${d.widthInColumns} (width * (child?.w || 1)) / 2 ${e*(d?.widthInColumns??1)/2}`),i=d.size.x+b;let c=g.get(n)??0,h=f.get(n)??l;d.size.y=a.size.y-a.size.height/2+c+h/2+ad,j.Rm.debug(`abc88 layout blocks (calc) px, pyid:${d.id}startingPosX${i}${ad}${b}=>x:${d.size.x}y:${d.size.y}${d.widthInColumns}(width * (child?.w || 1)) / 2${e*(d?.widthInColumns??1)/2}`)}d.children&&ah(d,b);let o=d?.widthInColumns??1;c>0&&(o=Math.min(o,c-h%c)),h+=o,j.Rm.debug("abc88 columnsPos",d,h)}}j.Rm.debug(`layout blocks (<==layoutBlocks) ${a.id} x: ${a?.size?.x} y: ${a?.size?.y} width: ${a?.size?.width}`)}function ai(a,{minX:b,minY:c,maxX:d,maxY:e}={minX:0,minY:0,maxX:0,maxY:0}){if(a.size&&"root"!==a.id){let{x:f,y:g,width:h,height:i}=a.size;f-h/2<b&&(b=f-h/2),g-i/2<c&&(c=g-i/2),f+h/2>d&&(d=f+h/2),g+i/2>e&&(e=g+i/2)}if(a.children)for(let f of a.children)({minX:b,minY:c,maxX:d,maxY:e}=ai(f,{minX:b,minY:c,maxX:d,maxY:e}));return{minX:b,minY:c,maxX:d,maxY:e}}function aj(a){let b=a.getBlock("root");if(!b)return;ag(b,a,0,0),ah(b,a),j.Rm.debug("getBlocks",JSON.stringify(b,null,2));let{minX:c,minY:d,maxX:e,maxY:f}=ai(b);return{x:c,y:d,width:e-c,height:f-d}}(0,j.K2)(ag,"setBlockSizes"),(0,j.K2)(ah,"layoutBlocks"),(0,j.K2)(ai,"findBounds"),(0,j.K2)(aj,"layout");var ak=(0,j.K2)(async(a,b,c,d=!1,e=!1)=>{let f=b||"";"object"==typeof f&&(f=f[0]);let h=(0,i.D7)(),j=(0,i.E)(h);return await (0,g.GZ)(a,f,{style:c,isTitle:d,useHtmlLabels:j,markdown:!1,isNode:e,width:1/0},h)},"createLabel"),al=(0,j.K2)((a,b,c,d,e)=>{b.arrowTypeStart&&an(a,"start",b.arrowTypeStart,c,d,e),b.arrowTypeEnd&&an(a,"end",b.arrowTypeEnd,c,d,e)},"addEdgeMarkers"),am={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},an=(0,j.K2)((a,b,c,d,e,f)=>{let g=am[c];g?a.attr(`marker-${b}`,`url(${d}#${e}_${f}-${g}${"start"===b?"Start":"End"})`):j.Rm.warn(`Unknown arrow type: ${c}`)},"addEdgeMarker"),ao={},ap={},aq=(0,j.K2)(async(a,b)=>{let c,d=(0,i.D7)(),f=(0,i.E)(d),h=a.insert("g").attr("class","edgeLabel"),j=h.insert("g").attr("class","label"),k="markdown"===b.labelType,l=await (0,g.GZ)(a,b.label,{style:b.labelStyle,useHtmlLabels:f,addSvgBackground:k,isNode:!1,markdown:k,width:k?void 0:1/0},d);j.node().appendChild(l);let m=l.getBBox(),o=m;if(f){let a=l.children[0],b=(0,n.Ltv)(l);o=m=a.getBoundingClientRect(),b.attr("width",m.width),b.attr("height",m.height)}else{let a=(0,n.Ltv)(l).select("text").node();a&&"function"==typeof a.getBBox&&(o=a.getBBox())}if(j.attr("transform",(0,e.Wg)(o,f)),ao[b.id]=h,b.width=m.width,b.height=m.height,b.startLabelLeft){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await ak(g,b.startLabelLeft,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,n.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),ap[b.id]||(ap[b.id]={}),ap[b.id].startLeft=d,ar(c,b.startLabelLeft)}if(b.startLabelRight){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await ak(d,b.startLabelRight,b.labelStyle);c=h,g.node().appendChild(h);let i=h.getBBox();if(f){let a=h.children[0],b=(0,n.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),ap[b.id]||(ap[b.id]={}),ap[b.id].startRight=d,ar(c,b.startLabelRight)}if(b.endLabelLeft){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await ak(g,b.endLabelLeft,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,n.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),d.node().appendChild(h),ap[b.id]||(ap[b.id]={}),ap[b.id].endLeft=d,ar(c,b.endLabelLeft)}if(b.endLabelRight){let d=a.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),h=await ak(g,b.endLabelRight,b.labelStyle);c=h;let i=h.getBBox();if(f){let a=h.children[0],b=(0,n.Ltv)(h);i=a.getBoundingClientRect(),b.attr("width",i.width),b.attr("height",i.height)}g.attr("transform",(0,e.Wg)(i,f)),d.node().appendChild(h),ap[b.id]||(ap[b.id]={}),ap[b.id].endRight=d,ar(c,b.endLabelRight)}return l},"insertEdgeLabel");function ar(a,b){(0,i.E)((0,i.D7)())&&a&&(a.style.width=9*b.length+"px",a.style.height="12px")}(0,j.K2)(ar,"setTerminalWidth");var as=(0,j.K2)((a,b)=>{j.Rm.debug("Moving label abc88 ",a.id,a.label,ao[a.id],b);let c=b.updatedPath?b.updatedPath:b.originalPath,d=(0,i.D7)(),{subGraphTitleTotalMargin:e}=(0,f.O)(d);if(a.label){let d=ao[a.id],f=a.x,g=a.y;if(c){let d=h._K.calcLabelPosition(c);j.Rm.debug("Moving label "+a.label+" from (",f,",",g,") to (",d.x,",",d.y,") abc88"),b.updatedPath&&(f=d.x,g=d.y)}d.attr("transform",`translate(${f}, ${g+e/2})`)}if(a.startLabelLeft){let b=ap[a.id].startLeft,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeStart,"start_left",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}if(a.startLabelRight){let b=ap[a.id].startRight,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeStart,"start_right",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}if(a.endLabelLeft){let b=ap[a.id].endLeft,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeEnd,"end_left",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}if(a.endLabelRight){let b=ap[a.id].endRight,d=a.x,e=a.y;if(c){let b=h._K.calcTerminalLabelPosition(10*!!a.arrowTypeEnd,"end_right",c);d=b.x,e=b.y}b.attr("transform",`translate(${d}, ${e})`)}},"positionEdgeLabel"),at=(0,j.K2)((a,b)=>{let c=a.x,d=a.y,e=Math.abs(b.x-c),f=Math.abs(b.y-d),g=a.width/2,h=a.height/2;return!!(e>=g)||!!(f>=h)},"outsideNode"),au=(0,j.K2)((a,b,c)=>{j.Rm.debug(`intersection calc abc89:
125
- outsidePoint: ${JSON.stringify(b)}
126
- insidePoint : ${JSON.stringify(c)}
127
- node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);let d=a.x,e=a.y,f=Math.abs(d-c.x),g=a.width/2,h=c.x<b.x?g-f:g+f,i=a.height/2,k=Math.abs(b.y-c.y),l=Math.abs(b.x-c.x);if(Math.abs(e-b.y)*g>Math.abs(d-b.x)*i){let a=c.y<b.y?b.y-i-e:e-i-b.y;h=l*a/k;let d={x:c.x<b.x?c.x+h:c.x-l+h,y:c.y<b.y?c.y+k-a:c.y-k+a};return 0===h&&(d.x=b.x,d.y=b.y),0===l&&(d.x=b.x),0===k&&(d.y=b.y),j.Rm.debug(`abc89 topp/bott calc, Q ${k}, q ${a}, R ${l}, r ${h}`,d),d}{let a=k*(h=c.x<b.x?b.x-g-d:d-g-b.x)/l,e=c.x<b.x?c.x+l-h:c.x-l+h,f=c.y<b.y?c.y+a:c.y-a;return j.Rm.debug(`sides calc abc89, Q ${k}, q ${a}, R ${l}, r ${h}`,{_x:e,_y:f}),0===h&&(e=b.x,f=b.y),0===l&&(e=b.x),0===k&&(f=b.y),{x:e,y:f}}},"intersection"),av=(0,j.K2)((a,b)=>{j.Rm.debug("abc88 cutPathAtIntersect",a,b);let c=[],d=a[0],e=!1;return a.forEach(a=>{if(at(b,a)||e)d=a,e||c.push(a);else{let f=au(b,d,a),g=!1;c.forEach(a=>{g=g||a.x===f.x&&a.y===f.y}),c.some(a=>a.x===f.x&&a.y===f.y)||c.push(f),e=!0}}),c},"cutPathAtIntersect"),aw=(0,j.K2)(function(a,b,c,d,f,g,h){let k,l=c.points;j.Rm.debug("abc88 InsertEdge: edge=",c,"e=",b);let m=!1,o=g.node(b.v);var p=g.node(b.w);p?.intersect&&o?.intersect&&((l=l.slice(1,c.points.length-1)).unshift(o.intersect(l[0])),l.push(p.intersect(l[l.length-1]))),c.toCluster&&(j.Rm.debug("to cluster abc88",d[c.toCluster]),l=av(c.points,d[c.toCluster].node),m=!0),c.fromCluster&&(j.Rm.debug("from cluster abc88",d[c.fromCluster]),l=av(l.reverse(),d[c.fromCluster].node).reverse(),m=!0);let q=l.filter(a=>!Number.isNaN(a.y)),r=n.qrM;c.curve&&("graph"===f||"flowchart"===f)&&(r=c.curve);let{x:s,y:t}=(0,e.RI)(c),u=(0,n.n8j)().x(s).y(t).curve(r);switch(c.thickness){case"normal":k="edge-thickness-normal";break;case"thick":case"invisible":k="edge-thickness-thick";break;default:k=""}switch(c.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed"}let v=a.append("path").attr("d",u(q)).attr("id",c.id).attr("class"," "+k+(c.classes?" "+c.classes:"")).attr("style",c.style),w="";((0,i.D7)().flowchart.arrowMarkerAbsolute||(0,i.D7)().state.arrowMarkerAbsolute)&&(w=(0,i.ID)(!0)),al(v,c,w,h,f);let x={};return m&&(x.updatedPath=l),x.originalPath=c.points,x},"insertEdge"),ax=(0,j.K2)(a=>{let b=new Set;for(let c of a)switch(c){case"x":b.add("right"),b.add("left");break;case"y":b.add("up"),b.add("down");break;default:b.add(c)}return b},"expandAndDeduplicateDirections"),ay=(0,j.K2)((a,b,c)=>{let d=ax(a),e=b.height+2*c.padding,f=e/2,g=b.width+2*f+c.padding,h=c.padding/2;return d.has("right")&&d.has("left")&&d.has("up")&&d.has("down")?[{x:0,y:0},{x:f,y:0},{x:g/2,y:2*h},{x:g-f,y:0},{x:g,y:0},{x:g,y:-e/3},{x:g+2*h,y:-e/2},{x:g,y:-2*e/3},{x:g,y:-e},{x:g-f,y:-e},{x:g/2,y:-e-2*h},{x:f,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*h,y:-e/2},{x:0,y:-e/3}]:d.has("right")&&d.has("left")&&d.has("up")?[{x:f,y:0},{x:g-f,y:0},{x:g,y:-e/2},{x:g-f,y:-e},{x:f,y:-e},{x:0,y:-e/2}]:d.has("right")&&d.has("left")&&d.has("down")?[{x:0,y:0},{x:f,y:-e},{x:g-f,y:-e},{x:g,y:0}]:d.has("right")&&d.has("up")&&d.has("down")?[{x:0,y:0},{x:g,y:-f},{x:g,y:-e+f},{x:0,y:-e}]:d.has("left")&&d.has("up")&&d.has("down")?[{x:g,y:0},{x:0,y:-f},{x:0,y:-e+f},{x:g,y:-e}]:d.has("right")&&d.has("left")?[{x:f,y:0},{x:f,y:-h},{x:g-f,y:-h},{x:g-f,y:0},{x:g,y:-e/2},{x:g-f,y:-e},{x:g-f,y:-e+h},{x:f,y:-e+h},{x:f,y:-e},{x:0,y:-e/2}]:d.has("up")&&d.has("down")?[{x:g/2,y:0},{x:0,y:-h},{x:f,y:-h},{x:f,y:-e+h},{x:0,y:-e+h},{x:g/2,y:-e},{x:g,y:-e+h},{x:g-f,y:-e+h},{x:g-f,y:-h},{x:g,y:-h}]:d.has("right")&&d.has("up")?[{x:0,y:0},{x:g,y:-f},{x:0,y:-e}]:d.has("right")&&d.has("down")?[{x:0,y:0},{x:g,y:0},{x:0,y:-e}]:d.has("left")&&d.has("up")?[{x:g,y:0},{x:0,y:-f},{x:g,y:-e}]:d.has("left")&&d.has("down")?[{x:g,y:0},{x:0,y:0},{x:g,y:-e}]:d.has("right")?[{x:f,y:-h},{x:f,y:-h},{x:g-f,y:-h},{x:g-f,y:0},{x:g,y:-e/2},{x:g-f,y:-e},{x:g-f,y:-e+h},{x:f,y:-e+h},{x:f,y:-e+h}]:d.has("left")?[{x:f,y:0},{x:f,y:-h},{x:g-f,y:-h},{x:g-f,y:-e+h},{x:f,y:-e+h},{x:f,y:-e},{x:0,y:-e/2}]:d.has("up")?[{x:f,y:-h},{x:f,y:-e+h},{x:0,y:-e+h},{x:g/2,y:-e},{x:g,y:-e+h},{x:g-f,y:-e+h},{x:g-f,y:-h}]:d.has("down")?[{x:g/2,y:0},{x:0,y:-h},{x:f,y:-h},{x:f,y:-e+h},{x:g-f,y:-e+h},{x:g-f,y:-h},{x:g,y:-h}]:[{x:0,y:0}]},"getArrowPoints");function az(a,b,c,d){var e=a.x,f=a.y,g=e-d.x,h=f-d.y,i=Math.sqrt(b*b*h*h+c*c*g*g),j=Math.abs(b*c*g/i);d.x<e&&(j=-j);var k=Math.abs(b*c*h/i);return d.y<f&&(k=-k),{x:e+j,y:f+k}}function aA(a,b,c){return az(a,b,b,c)}function aB(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q;if(e=b.y-a.y,g=a.x-b.x,i=b.x*a.y-a.x*b.y,m=e*c.x+g*c.y+i,n=e*d.x+g*d.y+i,!(0!==m&&0!==n&&aC(m,n))){if((f=d.y-c.y,h=c.x-d.x,j=d.x*c.y-c.x*d.y,k=f*a.x+h*a.y+j,l=f*b.x+h*b.y+j,!(0!==k&&0!==l&&aC(k,l)))&&0!=(o=e*h-f*g))return p=Math.abs(o/2),{x:(q=g*j-h*i)<0?(q-p)/o:(q+p)/o,y:(q=f*i-e*j)<0?(q-p)/o:(q+p)/o}}}function aC(a,b){return a*b>0}function aD(a,b,c){var d=a.x,e=a.y,f=[],g=1/0,h=1/0;"function"==typeof b.forEach?b.forEach(function(a){g=Math.min(g,a.x),h=Math.min(h,a.y)}):(g=Math.min(g,b.x),h=Math.min(h,b.y));for(var i=d-a.width/2-g,j=e-a.height/2-h,k=0;k<b.length;k++){var l=b[k],m=b[k<b.length-1?k+1:0],n=aB(a,c,{x:i+l.x,y:j+l.y},{x:i+m.x,y:j+m.y});n&&f.push(n)}return f.length?(f.length>1&&f.sort(function(a,b){var d=a.x-c.x,e=a.y-c.y,f=Math.sqrt(d*d+e*e),g=b.x-c.x,h=b.y-c.y,i=Math.sqrt(g*g+h*h);return f<i?-1:+(f!==i)}),f[0]):a}(0,j.K2)(function(a,b){return a.intersect(b)},"intersectNode"),(0,j.K2)(az,"intersectEllipse"),(0,j.K2)(aA,"intersectCircle"),(0,j.K2)(aB,"intersectLine"),(0,j.K2)(aC,"sameSign"),(0,j.K2)(aD,"intersectPolygon");var aE=(0,j.K2)((a,b)=>{var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;return Math.abs(h)*i>Math.abs(g)*j?(h<0&&(j=-j),c=0===h?0:j*g/h,d=j):(g<0&&(i=-i),c=i,d=0===g?0:i*h/g),{x:e+c,y:f+d}},"intersectRect"),aF=(0,j.K2)(async(a,b,c,d)=>{let e,j,k=(0,i.D7)(),l=b.useHtmlLabels||(0,i.E)(k),m=a.insert("g").attr("class",c||"node default").attr("id",b.domId||b.id),o=m.insert("g").attr("class","label").attr("style",b.labelStyle);e=void 0===b.labelText?"":"string"==typeof b.labelText?b.labelText:b.labelText[0];let p=(j="markdown"===b.labelType?(0,g.GZ)(o,(0,i.jZ)((0,h.Sm)(e),k),{useHtmlLabels:l,width:b.width||k.flowchart.wrappingWidth,classes:"markdown-node-label"},k):await ak(o,(0,i.jZ)((0,h.Sm)(e),k),b.labelStyle,!1,d)).getBBox(),q=b.padding/2;if((0,i.E)(k)){let a=j.children[0],b=(0,n.Ltv)(j);await (0,f.X)(a,e),p=a.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height)}return l?o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):o.attr("transform","translate(0, "+-p.height/2+")"),b.centerLabel&&o.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:m,bbox:p,halfPadding:q,label:o}},"labelHelper"),aG=(0,j.K2)((a,b)=>{let c=b.node().getBBox();a.width=c.width,a.height=c.height},"updateNodeBounds");function aH(a,b,c,d){return a.insert("polygon",":first-child").attr("points",d.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-b/2+","+c/2+")")}(0,j.K2)(aH,"insertPolygonShape");var aI=(0,j.K2)(async(a,b)=>{b.useHtmlLabels||(0,i.E)((0,i.D7)())||(b.centerLabel=!0);let{shapeSvg:c,bbox:d,halfPadding:e}=await aF(a,b,"node "+b.classes,!0);j.Rm.info("Classes = ",b.classes);let f=c.insert("rect",":first-child");return f.attr("rx",b.rx).attr("ry",b.ry).attr("x",-d.width/2-e).attr("y",-d.height/2-e).attr("width",d.width+b.padding).attr("height",d.height+b.padding),aG(b,f),b.intersect=function(a){return aE(b,a)},c},"note"),aJ=(0,j.K2)(a=>a?" "+a:"","formatClass"),aK=(0,j.K2)((a,b)=>`${b||"node default"}${aJ(a.classes)} ${aJ(a.class)}`,"getClassesFromNode"),aL=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding+(d.height+b.padding),f=[{x:e/2,y:0},{x:e,y:-e/2},{x:e/2,y:-e},{x:0,y:-e/2}];j.Rm.info("Question main (Circle)");let g=aH(c,e,e,f);return g.attr("style",b.style),aG(b,g),b.intersect=function(a){return j.Rm.warn("Intersect called"),aD(b,f,a)},c},"question"),aM=(0,j.K2)((a,b)=>{let c=a.insert("g").attr("class","node default").attr("id",b.domId||b.id);return c.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(a){return a.x+","+a.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),b.width=28,b.height=28,b.intersect=function(a){return aA(b,14,a)},c},"choice"),aN=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.height+b.padding,f=e/4,g=d.width+2*f+b.padding,h=[{x:f,y:0},{x:g-f,y:0},{x:g,y:-e/2},{x:g-f,y:-e},{x:f,y:-e},{x:0,y:-e/2}],i=aH(c,g,e,h);return i.attr("style",b.style),aG(b,i),b.intersect=function(a){return aD(b,h,a)},c},"hexagon"),aO=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,void 0,!0),e=d.height+2*b.padding,f=e/2,g=d.width+2*f+b.padding,h=ay(b.directions,d,b),i=aH(c,g,e,h);return i.attr("style",b.style),aG(b,i),b.intersect=function(a){return aD(b,h,a)},c},"block_arrow"),aP=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:-f/2,y:0},{x:e,y:0},{x:e,y:-f},{x:-f/2,y:-f},{x:0,y:-f/2}];return aH(c,e,f,g).attr("style",b.style),b.width=e+f,b.height=f,b.intersect=function(a){return aD(b,g,a)},c},"rect_left_inv_arrow"),aQ=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:-2*f/6,y:0},{x:e-f/6,y:0},{x:e+2*f/6,y:-f},{x:f/6,y:-f}],h=aH(c,e,f,g);return h.attr("style",b.style),aG(b,h),b.intersect=function(a){return aD(b,g,a)},c},"lean_right"),aR=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:2*f/6,y:0},{x:e+f/6,y:0},{x:e-2*f/6,y:-f},{x:-f/6,y:-f}],h=aH(c,e,f,g);return h.attr("style",b.style),aG(b,h),b.intersect=function(a){return aD(b,g,a)},c},"lean_left"),aS=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:-2*f/6,y:0},{x:e+2*f/6,y:0},{x:e-f/6,y:-f},{x:f/6,y:-f}],h=aH(c,e,f,g);return h.attr("style",b.style),aG(b,h),b.intersect=function(a){return aD(b,g,a)},c},"trapezoid"),aT=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:f/6,y:0},{x:e-f/6,y:0},{x:e+2*f/6,y:-f},{x:-2*f/6,y:-f}],h=aH(c,e,f,g);return h.attr("style",b.style),aG(b,h),b.intersect=function(a){return aD(b,g,a)},c},"inv_trapezoid"),aU=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:0,y:0},{x:e+f/2,y:0},{x:e,y:-f/2},{x:e+f/2,y:-f},{x:0,y:-f}],h=aH(c,e,f,g);return h.attr("style",b.style),aG(b,h),b.intersect=function(a){return aD(b,g,a)},c},"rect_right_inv_arrow"),aV=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=e/2,g=f/(2.5+e/50),h=d.height+g+b.padding,i="M 0,"+g+" a "+f+","+g+" 0,0,0 "+e+" 0 a "+f+","+g+" 0,0,0 "+-e+" 0 l 0,"+h+" a "+f+","+g+" 0,0,0 "+e+" 0 l 0,"+-h,j=c.attr("label-offset-y",g).insert("path",":first-child").attr("style",b.style).attr("d",i).attr("transform","translate("+-e/2+","+-(h/2+g)+")");return aG(b,j),b.intersect=function(a){let c=aE(b,a),d=c.x-b.x;if(0!=f&&(Math.abs(d)<b.width/2||Math.abs(d)==b.width/2&&Math.abs(c.y-b.y)>b.height/2-g)){let e=g*g*(1-d*d/(f*f));0!=e&&(e=Math.sqrt(e)),e=g-e,a.y-b.y>0&&(e=-e),c.y+=e}return c},c},"cylinder"),aW=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aF(a,b,"node "+b.classes+" "+b.class,!0),f=c.insert("rect",":first-child"),g=b.positioned?b.width:d.width+b.padding,h=b.positioned?b.height:d.height+b.padding,i=b.positioned?-g/2:-d.width/2-e,k=b.positioned?-h/2:-d.height/2-e;if(f.attr("class","basic label-container").attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("x",i).attr("y",k).attr("width",g).attr("height",h),b.props){let a=new Set(Object.keys(b.props));b.props.borders&&(aZ(f,b.props.borders,g,h),a.delete("borders")),a.forEach(a=>{j.Rm.warn(`Unknown node property ${a}`)})}return aG(b,f),b.intersect=function(a){return aE(b,a)},c},"rect"),aX=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aF(a,b,"node "+b.classes,!0),f=c.insert("rect",":first-child"),g=b.positioned?b.width:d.width+b.padding,h=b.positioned?b.height:d.height+b.padding,i=b.positioned?-g/2:-d.width/2-e,k=b.positioned?-h/2:-d.height/2-e;if(f.attr("class","basic cluster composite label-container").attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("x",i).attr("y",k).attr("width",g).attr("height",h),b.props){let a=new Set(Object.keys(b.props));b.props.borders&&(aZ(f,b.props.borders,g,h),a.delete("borders")),a.forEach(a=>{j.Rm.warn(`Unknown node property ${a}`)})}return aG(b,f),b.intersect=function(a){return aE(b,a)},c},"composite"),aY=(0,j.K2)(async(a,b)=>{let{shapeSvg:c}=await aF(a,b,"label",!0);j.Rm.trace("Classes = ",b.class);let d=c.insert("rect",":first-child");if(d.attr("width",0).attr("height",0),c.attr("class","label edgeLabel"),b.props){let a=new Set(Object.keys(b.props));b.props.borders&&(aZ(d,b.props.borders,0,0),a.delete("borders")),a.forEach(a=>{j.Rm.warn(`Unknown node property ${a}`)})}return aG(b,d),b.intersect=function(a){return aE(b,a)},c},"labelRect");function aZ(a,b,c,d){let e=[],f=(0,j.K2)(a=>{e.push(a,0)},"addBorder"),g=(0,j.K2)(a=>{e.push(0,a)},"skipBorder");b.includes("t")?(j.Rm.debug("add top border"),f(c)):g(c),b.includes("r")?(j.Rm.debug("add right border"),f(d)):g(d),b.includes("b")?(j.Rm.debug("add bottom border"),f(c)):g(c),b.includes("l")?(j.Rm.debug("add left border"),f(d)):g(d),a.attr("stroke-dasharray",e.join(" "))}(0,j.K2)(aZ,"applyNodePropertyBorders");var a$=(0,j.K2)(async(a,b)=>{let c;c=b.classes?"node "+b.classes:"node default";let d=a.insert("g").attr("class",c).attr("id",b.domId||b.id),e=d.insert("rect",":first-child"),f=d.insert("line"),g=d.insert("g").attr("class","label"),h=b.labelText.flat?b.labelText.flat():b.labelText,k="";k="object"==typeof h?h[0]:h,j.Rm.info("Label text abc79",k,h,"object"==typeof h);let l=await ak(g,k,b.labelStyle,!0,!0),m={width:0,height:0};if((0,i.E)((0,i.D7)())){let a=l.children[0],b=(0,n.Ltv)(l);m=a.getBoundingClientRect(),b.attr("width",m.width),b.attr("height",m.height)}j.Rm.info("Text 2",h);let o=h.slice(1,h.length),p=l.getBBox(),q=await ak(g,o.join?o.join("<br/>"):o,b.labelStyle,!0,!0);if((0,i.E)((0,i.D7)())){let a=q.children[0],b=(0,n.Ltv)(q);m=a.getBoundingClientRect(),b.attr("width",m.width),b.attr("height",m.height)}let r=b.padding/2;return(0,n.Ltv)(q).attr("transform","translate( "+(m.width>p.width?0:(p.width-m.width)/2)+", "+(p.height+r+5)+")"),(0,n.Ltv)(l).attr("transform","translate( "+(m.width<p.width?0:-(p.width-m.width)/2)+", 0)"),m=g.node().getBBox(),g.attr("transform","translate("+-m.width/2+", "+(-m.height/2-r+3)+")"),e.attr("class","outer title-state").attr("x",-m.width/2-r).attr("y",-m.height/2-r).attr("width",m.width+b.padding).attr("height",m.height+b.padding),f.attr("class","divider").attr("x1",-m.width/2-r).attr("x2",m.width/2+r).attr("y1",-m.height/2-r+p.height+r).attr("y2",-m.height/2-r+p.height+r),aG(b,e),b.intersect=function(a){return aE(b,a)},d},"rectWithTitle"),a_=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.height+b.padding,f=d.width+e/4+b.padding,g=c.insert("rect",":first-child").attr("style",b.style).attr("rx",e/2).attr("ry",e/2).attr("x",-f/2).attr("y",-e/2).attr("width",f).attr("height",e);return aG(b,g),b.intersect=function(a){return aE(b,a)},c},"stadium"),a0=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aF(a,b,aK(b,void 0),!0),f=c.insert("circle",":first-child");return f.attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("r",d.width/2+e).attr("width",d.width+b.padding).attr("height",d.height+b.padding),j.Rm.info("Circle main"),aG(b,f),b.intersect=function(a){return j.Rm.info("Circle intersect",b,d.width/2+e,a),aA(b,d.width/2+e,a)},c},"circle"),a1=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d,halfPadding:e}=await aF(a,b,aK(b,void 0),!0),f=c.insert("g",":first-child"),g=f.insert("circle"),h=f.insert("circle");return f.attr("class",b.class),g.attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("r",d.width/2+e+5).attr("width",d.width+b.padding+10).attr("height",d.height+b.padding+10),h.attr("style",b.style).attr("rx",b.rx).attr("ry",b.ry).attr("r",d.width/2+e).attr("width",d.width+b.padding).attr("height",d.height+b.padding),j.Rm.info("DoubleCircle main"),aG(b,g),b.intersect=function(a){return j.Rm.info("DoubleCircle intersect",b,d.width/2+e+5,a),aA(b,d.width/2+e+5,a)},c},"doublecircle"),a2=(0,j.K2)(async(a,b)=>{let{shapeSvg:c,bbox:d}=await aF(a,b,aK(b,void 0),!0),e=d.width+b.padding,f=d.height+b.padding,g=[{x:0,y:0},{x:e,y:0},{x:e,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:e+8,y:0},{x:e+8,y:-f},{x:-8,y:-f},{x:-8,y:0}],h=aH(c,e,f,g);return h.attr("style",b.style),aG(b,h),b.intersect=function(a){return aD(b,g,a)},c},"subroutine"),a3=(0,j.K2)((a,b)=>{let c=a.insert("g").attr("class","node default").attr("id",b.domId||b.id),d=c.insert("circle",":first-child");return d.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),aG(b,d),b.intersect=function(a){return aA(b,7,a)},c},"start"),a4=(0,j.K2)((a,b,c)=>{let d=a.insert("g").attr("class","node default").attr("id",b.domId||b.id),e=70,f=10;return"LR"===c&&(e=10,f=70),aG(b,d.append("rect").attr("x",-1*e/2).attr("y",-1*f/2).attr("width",e).attr("height",f).attr("class","fork-join")),b.height=b.height+b.padding/2,b.width=b.width+b.padding/2,b.intersect=function(a){return aE(b,a)},d},"forkJoin"),a5={rhombus:aL,composite:aX,question:aL,rect:aW,labelRect:aY,rectWithTitle:a$,choice:aM,circle:a0,doublecircle:a1,stadium:a_,hexagon:aN,block_arrow:aO,rect_left_inv_arrow:aP,lean_right:aQ,lean_left:aR,trapezoid:aS,inv_trapezoid:aT,rect_right_inv_arrow:aU,cylinder:aV,start:a3,end:(0,j.K2)((a,b)=>{let c=a.insert("g").attr("class","node default").attr("id",b.domId||b.id),d=c.insert("circle",":first-child"),e=c.insert("circle",":first-child");return e.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),d.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),aG(b,e),b.intersect=function(a){return aA(b,7,a)},c},"end"),note:aI,subroutine:a2,fork:a4,join:a4,class_box:(0,j.K2)(async(a,b)=>{let c,d=b.padding/2;c=b.classes?"node "+b.classes:"node default";let e=a.insert("g").attr("class",c).attr("id",b.domId||b.id),f=e.insert("rect",":first-child"),g=e.insert("line"),h=e.insert("line"),j=0,k=4,l=e.insert("g").attr("class","label"),m=0,o=b.classData.annotations?.[0],p=b.classData.annotations[0]?"\xab"+b.classData.annotations[0]+"\xbb":"",q=await ak(l,p,b.labelStyle,!0,!0),r=q.getBBox();if((0,i.E)((0,i.D7)())){let a=q.children[0],b=(0,n.Ltv)(q);r=a.getBoundingClientRect(),b.attr("width",r.width),b.attr("height",r.height)}b.classData.annotations[0]&&(k+=r.height+4,j+=r.width);let s=b.classData.label;void 0!==b.classData.type&&""!==b.classData.type&&((0,i.E)((0,i.D7)())?s+="&lt;"+b.classData.type+"&gt;":s+="<"+b.classData.type+">");let t=await ak(l,s,b.labelStyle,!0,!0);(0,n.Ltv)(t).attr("class","classTitle");let u=t.getBBox();if((0,i.E)((0,i.D7)())){let a=t.children[0],b=(0,n.Ltv)(t);u=a.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}k+=u.height+4,u.width>j&&(j=u.width);let v=[];b.classData.members.forEach(async a=>{let c=a.getDisplayDetails(),d=c.displayText;(0,i.E)((0,i.D7)())&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let e=await ak(l,d,c.cssStyle?c.cssStyle:b.labelStyle,!0,!0),f=e.getBBox();if((0,i.E)((0,i.D7)())){let a=e.children[0],b=(0,n.Ltv)(e);f=a.getBoundingClientRect(),b.attr("width",f.width),b.attr("height",f.height)}f.width>j&&(j=f.width),k+=f.height+4,v.push(e)}),k+=8;let w=[];if(b.classData.methods.forEach(async a=>{let c=a.getDisplayDetails(),d=c.displayText;(0,i.E)((0,i.D7)())&&(d=d.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let e=await ak(l,d,c.cssStyle?c.cssStyle:b.labelStyle,!0,!0),f=e.getBBox();if((0,i.E)((0,i.D7)())){let a=e.children[0],b=(0,n.Ltv)(e);f=a.getBoundingClientRect(),b.attr("width",f.width),b.attr("height",f.height)}f.width>j&&(j=f.width),k+=f.height+4,w.push(e)}),k+=8,o){let a=(j-r.width)/2;(0,n.Ltv)(q).attr("transform","translate( "+(-1*j/2+a)+", "+-1*k/2+")"),m=r.height+4}let x=(j-u.width)/2;return(0,n.Ltv)(t).attr("transform","translate( "+(-1*j/2+x)+", "+(-1*k/2+m)+")"),m+=u.height+4,g.attr("class","divider").attr("x1",-j/2-d).attr("x2",j/2+d).attr("y1",-k/2-d+8+m).attr("y2",-k/2-d+8+m),m+=8,v.forEach(a=>{(0,n.Ltv)(a).attr("transform","translate( "+-j/2+", "+(-1*k/2+m+4)+")");let b=a?.getBBox();m+=(b?.height??0)+4}),m+=8,h.attr("class","divider").attr("x1",-j/2-d).attr("x2",j/2+d).attr("y1",-k/2-d+8+m).attr("y2",-k/2-d+8+m),m+=8,w.forEach(a=>{(0,n.Ltv)(a).attr("transform","translate( "+-j/2+", "+(-1*k/2+m)+")");let b=a?.getBBox();m+=(b?.height??0)+4}),f.attr("style",b.style).attr("class","outer title-state").attr("x",-j/2-d).attr("y",-(k/2)-d).attr("width",j+b.padding).attr("height",k+b.padding),aG(b,f),b.intersect=function(a){return aE(b,a)},e},"class_box")},a6={},a7=(0,j.K2)(async(a,b,c)=>{let d,e;if(b.link){let f;"sandbox"===(0,i.D7)().securityLevel?f="_top":b.linkTarget&&(f=b.linkTarget||"_blank"),d=a.insert("svg:a").attr("xlink:href",b.link).attr("target",f),e=await a5[b.shape](d,b,c)}else d=e=await a5[b.shape](a,b,c);return b.tooltip&&e.attr("title",b.tooltip),b.class&&e.attr("class","node default "+b.class),a6[b.id]=d,b.haveCallback&&a6[b.id].attr("class",a6[b.id].attr("class")+" clickable"),d},"insertNode"),a8=(0,j.K2)(a=>{let b=a6[a.id];j.Rm.trace("Transforming node",a.diff,a,"translate("+(a.x-a.width/2-5)+", "+a.width/2+")");let c=a.diff||0;return a.clusterNode?b.attr("transform","translate("+(a.x+c-a.width/2)+", "+(a.y-a.height/2-8)+")"):b.attr("transform","translate("+a.x+", "+a.y+")"),c},"positionNode");function a9(a,b,c=!1){let d,e="default";(a?.classes?.length||0)>0&&(e=(a?.classes??[]).join(" ")),e+=" flowchart-label";let f=0,g="";switch(a.type){case"round":f=5,g="rect";break;case"composite":f=0,g="composite",d=0;break;case"square":case"group":default:g="rect";break;case"diamond":g="question";break;case"hexagon":g="hexagon";break;case"block_arrow":g="block_arrow";break;case"odd":case"rect_left_inv_arrow":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"doublecircle":g="doublecircle"}let j=(0,h.sM)(a?.styles??[]),k=a.label,l=a.size??{width:0,height:0,x:0,y:0};return{labelStyle:j.labelStyle,shape:g,labelText:k,rx:f,ry:f,class:e,style:j.style,id:a.id,directions:a.directions,width:l.width,height:l.height,x:l.x,y:l.y,positioned:c,intersect:void 0,type:a.type,padding:d??(0,i.zj)()?.block?.padding??0}}async function ba(a,b,c){let d=a9(b,c,!1);if("group"===d.type)return;let e=(0,i.zj)(),f=await a7(a,d,{config:e}),g=f.node().getBBox(),h=c.getBlock(d.id);h.size={width:g.width,height:g.height,x:0,y:0,node:f},c.setBlock(h),f.remove()}async function bb(a,b,c){let d=a9(b,c,!0);if("space"!==c.getBlock(d.id).type){let c=(0,i.zj)();await a7(a,d,{config:c}),b.intersect=d?.intersect,a8(d)}}async function bc(a,b,c,d){for(let e of b)await d(a,e,c),e.children&&await bc(a,e.children,c,d)}async function bd(a,b,c){await bc(a,b,c,ba)}async function be(a,b,c){await bc(a,b,c,bb)}async function bf(a,b,c,d,e){let f=new o.T({multigraph:!0,compound:!0});for(let a of(f.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8}),c))a.size&&f.setNode(a.id,{width:a.size.width,height:a.size.height,intersect:a.intersect});for(let c of b)if(c.start&&c.end){let b=d.getBlock(c.start),g=d.getBlock(c.end);if(b?.size&&g?.size){let d=b.size,h=g.size,i=[{x:d.x,y:d.y},{x:d.x+(h.x-d.x)/2,y:d.y+(h.y-d.y)/2},{x:h.x,y:h.y}];aw(a,{v:c.start,w:c.end,name:c.id},{...c,arrowTypeEnd:c.arrowTypeEnd,arrowTypeStart:c.arrowTypeStart,points:i,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",f,e),c.label&&(await aq(a,{...c,label:c.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:c.arrowTypeEnd,arrowTypeStart:c.arrowTypeStart,points:i,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),as({...c,x:i[1].x,y:i[1].y},{originalPath:i}))}}}(0,j.K2)(a9,"getNodeFromBlock"),(0,j.K2)(ba,"calculateBlockSize"),(0,j.K2)(bb,"insertBlockPositioned"),(0,j.K2)(bc,"performOperations"),(0,j.K2)(bd,"calculateBlockSizes"),(0,j.K2)(be,"insertBlocks"),(0,j.K2)(bf,"insertEdges");var bg=(0,j.K2)(function(a,b){return b.db.getClasses()},"getClasses"),bh={parser:p,db:T,renderer:{draw:(0,j.K2)(async function(a,b,c,d){let e,{securityLevel:f,block:g}=(0,i.zj)(),h=d.db;"sandbox"===f&&(e=(0,n.Ltv)("#i"+b));let k="sandbox"===f?(0,n.Ltv)(e.nodes()[0].contentDocument.body):(0,n.Ltv)("body"),l="sandbox"===f?k.select(`[id="${b}"]`):(0,n.Ltv)(`[id="${b}"]`);W(l,["point","circle","cross"],d.type,b);let m=h.getBlocks(),o=h.getBlocksFlat(),p=h.getEdges(),q=l.insert("g").attr("class","block");await bd(q,m,h);let r=aj(h);if(await be(q,m,h),await bf(q,p,o,h,b),r){let a=Math.max(1,Math.round(.125*(r.width/r.height))),b=r.height+a+10,c=r.width+10,{useMaxWidth:d}=g;(0,i.a$)(l,b,c,!!d),j.Rm.debug("Here Bounds",r,r),l.attr("viewBox",`${r.x-5} ${r.y-5} ${r.width+10} ${r.height+10}`)}},"draw"),getClasses:bg},styles:V}},37603:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(72008);let e=function(a){return(0,d.A)(a,4)}},61827:(a,b,c)=>{c.d(b,{o:()=>d});var d=(0,c(21143).K2)(()=>`
128
- /* Font Awesome icon styling - consolidated */
129
- .label-icon {
130
- display: inline-block;
131
- height: 1em;
132
- overflow: visible;
133
- vertical-align: -0.125em;
134
- }
135
-
136
- .node .label-icon path {
137
- fill: currentColor;
138
- stroke: revert;
139
- stroke-width: revert;
140
- }
141
- `,"getIconStyles")},75899:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(73946),e=c(363);let f=(a,b)=>d.A.lang.round(e.A.parse(a)[b])}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=4345,exports.ids=[4345],exports.modules={84345:(a,b,c)=>{c.d(b,{diagram:()=>ab});var d,e=c(11861),f=c(68705),g=c(94222),h=c(24795),i=c(21143),j=c(69085),k=function(){var a=(0,i.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,10,12,14,16,18,19,21,23],c=[2,6],d=[1,3],e=[1,5],f=[1,6],g=[1,7],h=[1,5,10,12,14,16,18,19,21,23,34,35,36],j=[1,25],k=[1,26],l=[1,28],m=[1,29],n=[1,30],o=[1,31],p=[1,32],q=[1,33],r=[1,34],s=[1,35],t=[1,36],u=[1,37],v=[1,43],w=[1,42],x=[1,47],y=[1,50],z=[1,10,12,14,16,18,19,21,23,34,35,36],A=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],B=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],C=[1,64],D={trace:(0,i.K2)(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,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$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",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"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],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,i.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 5:d.setOrientation(f[h]);break;case 9:d.setDiagramTitle(f[h].text.trim());break;case 12:d.setLineData({text:"",type:"text"},f[h]);break;case 13:d.setLineData(f[h-1],f[h]);break;case 14:d.setBarData({text:"",type:"text"},f[h]);break;case 15:d.setBarData(f[h-1],f[h]);break;case 16:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 19:case 27:this.$=f[h-1];break;case 20:this.$=[Number(f[h-2]),...f[h]];break;case 21:this.$=[Number(f[h])];break;case 22:d.setXAxisTitle(f[h]);break;case 23:d.setXAxisTitle(f[h-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(f[h]);break;case 26:d.setXAxisRangeData(Number(f[h-2]),Number(f[h]));break;case 28:this.$=[f[h-2],...f[h]];break;case 29:this.$=[f[h]];break;case 30:d.setYAxisTitle(f[h]);break;case 31:d.setYAxisTitle(f[h-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(f[h-2]),Number(f[h]));break;case 37:case 38:this.$={text:f[h],type:"text"};break;case 39:this.$={text:f[h],type:"markdown"};break;case 40:this.$=f[h];break;case 41:this.$=f[h-1]+""+f[h]}},"anonymous"),table:[a(b,c,{3:1,4:2,7:4,5:d,34:e,35:f,36:g}),{1:[3]},a(b,c,{4:2,7:4,3:8,5:d,34:e,35:f,36:g}),a(b,c,{4:2,7:4,6:9,3:10,5:d,8:[1,11],34:e,35:f,36:g}),{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]},a(h,[2,34]),a(h,[2,35]),a(h,[2,36]),{1:[2,1]},a(b,c,{4:2,7:4,3:21,5:d,34:e,35:f,36:g}),{1:[2,3]},a(h,[2,5]),a(b,[2,7],{4:22,34:e,35:f,36:g}),{11:23,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},{11:39,13:38,24:v,27:w,29:40,30:41,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},{11:45,15:44,27:x,33:46,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},{11:49,17:48,24:y,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},{11:52,17:51,24:y,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},{20:[1,53]},{22:[1,54]},a(z,[2,18]),{1:[2,2]},a(z,[2,8]),a(z,[2,9]),a(A,[2,37],{40:55,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u}),a(A,[2,38]),a(A,[2,39]),a(B,[2,40]),a(B,[2,42]),a(B,[2,43]),a(B,[2,44]),a(B,[2,45]),a(B,[2,46]),a(B,[2,47]),a(B,[2,48]),a(B,[2,49]),a(B,[2,50]),a(B,[2,51]),a(z,[2,10]),a(z,[2,22],{30:41,29:56,24:v,27:w}),a(z,[2,24]),a(z,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},a(z,[2,11]),a(z,[2,30],{33:60,27:x}),a(z,[2,32]),{31:[1,61]},a(z,[2,12]),{17:62,24:y},{25:63,27:C},a(z,[2,14]),{17:65,24:y},a(z,[2,16]),a(z,[2,17]),a(B,[2,41]),a(z,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},a(z,[2,31]),{27:[1,69]},a(z,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},a(z,[2,15]),a(z,[2,26]),a(z,[2,27]),{11:59,32:72,37:24,38:j,39:k,40:27,41:l,42:m,43:n,44:o,45:p,46:q,47:r,48:s,49:t,50:u},a(z,[2,33]),a(z,[2,19]),{25:73,27:C},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,i.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function E(){this.yy={}}return D.lexer={EOF:1,parseError:(0,i.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,i.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.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),a},"input"),unput:(0,i.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(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:(0,i.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===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:(0,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(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:(0,i.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,b,c,d){switch(c){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;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:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14: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 31;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 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"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}}},(0,i.K2)(E,"Parser"),E.prototype=D,D.Parser=E,new E}();function l(a){return"bar"===a.type}function m(a){return"band"===a.type}function n(a){return"linear"===a.type}k.parser=k,(0,i.K2)(l,"isBarPlot"),(0,i.K2)(m,"isBandAxisData"),(0,i.K2)(n,"isLinearAxisData");var o=class{constructor(a){this.parentGroup=a}static{(0,i.K2)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(a,b){if(!this.parentGroup)return{width:a.reduce((a,b)=>Math.max(b.length,a),0)*b,height:b};let c={width:0,height:0},d=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",b);for(let e of a){let a=(0,f.W6)(d,1,e),g=a?a.width:e.length*b,h=a?a.height:b;c.width=Math.max(c.width,g),c.height=Math.max(c.height,h)}return d.remove(),c}},p=class{constructor(a,b,c,d){this.axisConfig=a,this.title=b,this.textDimensionCalculator=c,this.axisThemeConfig=d,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.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{(0,i.K2)(this,"BaseAxis")}setRange(a){this.range=a,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=a[1]-a[0]:this.boundingRect.width=a[1]-a[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(a){this.axisPosition=a,this.setRange(this.range)}getTickDistance(){let a=this.getRange();return Math.abs(a[0]-a[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(a=>a.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(a){let b=a.height;if(this.axisConfig.showAxisLine&&b>this.axisConfig.axisLineWidth&&(b-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let c=this.getLabelDimension(),d=.2*a.width;this.outerPadding=Math.min(c.width/2,d);let e=c.height+2*this.axisConfig.labelPadding;this.labelTextHeight=c.height,e<=b&&(b-=e,this.showLabel=!0)}if(this.axisConfig.showTick&&b>=this.axisConfig.tickLength&&(this.showTick=!0,b-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),c=a.height+2*this.axisConfig.titlePadding;this.titleTextHeight=a.height,c<=b&&(b-=c,this.showTitle=!0)}this.boundingRect.width=a.width,this.boundingRect.height=a.height-b}calculateSpaceIfDrawnVertical(a){let b=a.width;if(this.axisConfig.showAxisLine&&b>this.axisConfig.axisLineWidth&&(b-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let c=this.getLabelDimension(),d=.2*a.height;this.outerPadding=Math.min(c.height/2,d);let e=c.width+2*this.axisConfig.labelPadding;e<=b&&(b-=e,this.showLabel=!0)}if(this.axisConfig.showTick&&b>=this.axisConfig.tickLength&&(this.showTick=!0,b-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let a=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),c=a.height+2*this.axisConfig.titlePadding;this.titleTextHeight=a.height,c<=b&&(b-=c,this.showTitle=!0)}this.boundingRect.width=a.width-b,this.boundingRect.height=a.height}calculateSpace(a){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(a):this.calculateSpaceIfDrawnHorizontally(a),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(a){this.boundingRect.x=a.x,this.boundingRect.y=a.y}getDrawableElementsForLeftAxis(){let a=[];if(this.showAxisLine){let b=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;a.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${b},${this.boundingRect.y} L ${b},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&a.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(a=>({text:a.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(a),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let b=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);a.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${b},${this.getScaleValue(a)} L ${b-this.axisConfig.tickLength},${this.getScaleValue(a)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&a.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"}]}),a}getDrawableElementsForBottomAxis(){let a=[];if(this.showAxisLine){let b=this.boundingRect.y+this.axisConfig.axisLineWidth/2;a.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${b} L ${this.boundingRect.x+this.boundingRect.width},${b}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&a.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(a=>({text:a.toString(),x:this.getScaleValue(a),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let b=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);a.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${b} L ${this.getScaleValue(a)},${b+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&a.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"}]}),a}getDrawableElementsForTopAxis(){let a=[];if(this.showAxisLine){let b=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;a.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${b} L ${this.boundingRect.x+this.boundingRect.width},${b}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&a.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(a=>({text:a.toString(),x:this.getScaleValue(a),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let b=this.boundingRect.y;a.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(a=>({path:`M ${this.getScaleValue(a)},${b+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(a)},${b+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&a.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"}]}),a}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},q=class extends p{static{(0,i.K2)(this,"BandAxis")}constructor(a,b,c,d,e){super(a,d,e,b),this.categories=c,this.scale=(0,j.WH)().domain(this.categories).range(this.getRange())}setRange(a){super.setRange(a)}recalculateScale(){this.scale=(0,j.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),i.Rm.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(a){return this.scale(a)??this.getRange()[0]}},r=class extends p{static{(0,i.K2)(this,"LinearAxis")}constructor(a,b,c,d,e){super(a,d,e,b),this.domain=c,this.scale=(0,j.m4Y)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let a=[...this.domain];"left"===this.axisPosition&&a.reverse(),this.scale=(0,j.m4Y)().domain(a).range(this.getRange())}getScaleValue(a){return this.scale(a)}};function s(a,b,c,d){let e=new o(d);return m(a)?new q(b,c,a.categories,a.title,e):new r(b,c,[a.min,a.max],a.title,e)}(0,i.K2)(s,"getAxis");var t=class{constructor(a,b,c,d){this.textDimensionCalculator=a,this.chartConfig=b,this.chartData=c,this.chartThemeConfig=d,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{(0,i.K2)(this,"ChartTitle")}setBoundingBoxXY(a){this.boundingRect.x=a.x,this.boundingRect.y=a.y}calculateSpace(a){let b=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),c=Math.max(b.width,a.width),d=b.height+2*this.chartConfig.titlePadding;return b.width<=c&&b.height<=d&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=c,this.boundingRect.height=d,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let a=[];return this.showChartTitle&&a.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}]}),a}};function u(a,b,c,d){return new t(new o(d),a,b,c)}(0,i.K2)(u,"getChartTitleComponent");var v=class{constructor(a,b,c,d,e){this.plotData=a,this.xAxis=b,this.yAxis=c,this.orientation=d,this.plotIndex=e}static{(0,i.K2)(this,"LinePlot")}getDrawableElement(){let a,b=this.plotData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]);return(a="horizontal"===this.orientation?(0,j.n8j)().y(a=>a[0]).x(a=>a[1])(b):(0,j.n8j)().x(a=>a[0]).y(a=>a[1])(b))?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:a,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},w=class{constructor(a,b,c,d,e,f){this.barData=a,this.boundingRect=b,this.xAxis=c,this.yAxis=d,this.orientation=e,this.plotIndex=f}static{(0,i.K2)(this,"BarPlot")}getDrawableElement(){let a=this.barData.data.map(a=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),b=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),c=b/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:a.map(a=>({x:this.boundingRect.x,y:a[0]-c,height:b,width:a[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:a.map(a=>({x:a[0]-c,y:a[1],width:b,height:this.boundingRect.y+this.boundingRect.height-a[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},x=class{constructor(a,b,c){this.chartConfig=a,this.chartData=b,this.chartThemeConfig=c,this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,i.K2)(this,"BasePlot")}setAxes(a,b){this.xAxis=a,this.yAxis=b}setBoundingBoxXY(a){this.boundingRect.x=a.x,this.boundingRect.y=a.y}calculateSpace(a){return this.boundingRect.width=a.width,this.boundingRect.height=a.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let a=[];for(let[b,c]of this.chartData.plots.entries())switch(c.type){case"line":{let d=new v(c,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,b);a.push(...d.getDrawableElement())}break;case"bar":{let d=new w(c,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,b);a.push(...d.getDrawableElement())}}return a}};function y(a,b,c){return new x(a,b,c)}(0,i.K2)(y,"getPlotComponent");var z=class{constructor(a,b,c,d){this.chartConfig=a,this.chartData=b,this.componentStore={title:u(a,b,c,d),plot:y(a,b,c),xAxis:s(b.xAxis,a.xAxis,{titleColor:c.xAxisTitleColor,labelColor:c.xAxisLabelColor,tickColor:c.xAxisTickColor,axisLineColor:c.xAxisLineColor},d),yAxis:s(b.yAxis,a.yAxis,{titleColor:c.yAxisTitleColor,labelColor:c.yAxisLabelColor,tickColor:c.yAxisTickColor,axisLineColor:c.yAxisLineColor},d)}}static{(0,i.K2)(this,"Orchestrator")}calculateVerticalSpace(){let a=this.chartConfig.width,b=this.chartConfig.height,c=0,d=0,e=Math.floor(a*this.chartConfig.plotReservedSpacePercent/100),f=Math.floor(b*this.chartConfig.plotReservedSpacePercent/100),g=this.componentStore.plot.calculateSpace({width:e,height:f});a-=g.width,b-=g.height,d=(g=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:b})).height,b-=g.height,this.componentStore.xAxis.setAxisPosition("bottom"),g=this.componentStore.xAxis.calculateSpace({width:a,height:b}),b-=g.height,this.componentStore.yAxis.setAxisPosition("left"),c=(g=this.componentStore.yAxis.calculateSpace({width:a,height:b})).width,(a-=g.width)>0&&(e+=a,a=0),b>0&&(f+=b,b=0),this.componentStore.plot.calculateSpace({width:e,height:f}),this.componentStore.plot.setBoundingBoxXY({x:c,y:d}),this.componentStore.xAxis.setRange([c,c+e]),this.componentStore.xAxis.setBoundingBoxXY({x:c,y:d+f}),this.componentStore.yAxis.setRange([d,d+f]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:d}),this.chartData.plots.some(a=>l(a))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let a=this.chartConfig.width,b=this.chartConfig.height,c=0,d=0,e=0,f=Math.floor(a*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(b*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:f,height:g});a-=h.width,b-=h.height,c=(h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:b})).height,b-=h.height,this.componentStore.xAxis.setAxisPosition("left"),h=this.componentStore.xAxis.calculateSpace({width:a,height:b}),a-=h.width,d=h.width,this.componentStore.yAxis.setAxisPosition("top"),h=this.componentStore.yAxis.calculateSpace({width:a,height:b}),b-=h.height,e=c+h.height,a>0&&(f+=a,a=0),b>0&&(g+=b,b=0),this.componentStore.plot.calculateSpace({width:f,height:g}),this.componentStore.plot.setBoundingBoxXY({x:d,y:e}),this.componentStore.yAxis.setRange([d,d+f]),this.componentStore.yAxis.setBoundingBoxXY({x:d,y:c}),this.componentStore.xAxis.setRange([e,e+g]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:e}),this.chartData.plots.some(a=>l(a))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let a=[];for(let b of(this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis),Object.values(this.componentStore)))a.push(...b.getDrawableElements());return a}},A=class{static{(0,i.K2)(this,"XYChartBuilder")}static build(a,b,c,d){return new z(a,b,c,d).getDrawableElement()}},B=0,C=J(),D=I(),E=K(),F=D.plotColorPalette.split(",").map(a=>a.trim()),G=!1,H=!1;function I(){let a=(0,h.P$)(),b=(0,h.zj)();return(0,g.$t)(a.xyChart,b.themeVariables.xyChart)}function J(){let a=(0,h.zj)();return(0,g.$t)(h.UI.xyChart,a.xyChart)}function K(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function L(a){let b=(0,h.zj)();return(0,h.jZ)(a.trim(),b)}function M(a){d=a}function N(a){"horizontal"===a?C.chartOrientation="horizontal":C.chartOrientation="vertical"}function O(a){E.xAxis.title=L(a.text)}function P(a,b){E.xAxis={type:"linear",title:E.xAxis.title,min:a,max:b},G=!0}function Q(a){E.xAxis={type:"band",title:E.xAxis.title,categories:a.map(a=>L(a.text))},G=!0}function R(a){E.yAxis.title=L(a.text)}function S(a,b){E.yAxis={type:"linear",title:E.yAxis.title,min:a,max:b},H=!0}function T(a){let b=Math.min(...a),c=Math.max(...a),d=n(E.yAxis)?E.yAxis.min:1/0,e=n(E.yAxis)?E.yAxis.max:-1/0;E.yAxis={type:"linear",title:E.yAxis.title,min:Math.min(d,b),max:Math.max(e,c)}}function U(a){let b=[];if(0===a.length)return b;if(G||P(Math.min(n(E.xAxis)?E.xAxis.min:1/0,1),Math.max(n(E.xAxis)?E.xAxis.max:-1/0,a.length)),H||T(a),m(E.xAxis)&&(b=E.xAxis.categories.map((b,c)=>[b,a[c]])),n(E.xAxis)){let c=E.xAxis.min,d=E.xAxis.max,e=(d-c)/(a.length-1),f=[];for(let a=c;a<=d;a+=e)f.push(`${a}`);b=f.map((b,c)=>[b,a[c]])}return b}function V(a){return F[0===a?0:a%F.length]}function W(a,b){let c=U(b);E.plots.push({type:"line",strokeFill:V(B),strokeWidth:2,data:c}),B++}function X(a,b){let c=U(b);E.plots.push({type:"bar",fill:V(B),data:c}),B++}function Y(){if(0===E.plots.length)throw Error("No Plot to render, please provide a plot with some data");return E.title=(0,h.ab)(),A.build(C,E,D,d)}function Z(){return D}function $(){return C}function _(){return E}(0,i.K2)(I,"getChartDefaultThemeConfig"),(0,i.K2)(J,"getChartDefaultConfig"),(0,i.K2)(K,"getChartDefaultData"),(0,i.K2)(L,"textSanitizer"),(0,i.K2)(M,"setTmpSVGG"),(0,i.K2)(N,"setOrientation"),(0,i.K2)(O,"setXAxisTitle"),(0,i.K2)(P,"setXAxisRangeData"),(0,i.K2)(Q,"setXAxisBand"),(0,i.K2)(R,"setYAxisTitle"),(0,i.K2)(S,"setYAxisRangeData"),(0,i.K2)(T,"setYAxisRangeFromPlotData"),(0,i.K2)(U,"transformDataWithoutCategory"),(0,i.K2)(V,"getPlotColorFromPalette"),(0,i.K2)(W,"setLineData"),(0,i.K2)(X,"setBarData"),(0,i.K2)(Y,"getDrawableElem"),(0,i.K2)(Z,"getChartThemeConfig"),(0,i.K2)($,"getChartConfig"),(0,i.K2)(_,"getXYChartData");var aa={getDrawableElem:Y,clear:(0,i.K2)(function(){(0,h.IU)(),B=0,C=J(),E=K(),F=(D=I()).plotColorPalette.split(",").map(a=>a.trim()),G=!1,H=!1},"clear"),setAccTitle:h.SV,getAccTitle:h.iN,setDiagramTitle:h.ke,getDiagramTitle:h.ab,getAccDescription:h.m7,setAccDescription:h.EI,setOrientation:N,setXAxisTitle:O,setXAxisRangeData:P,setXAxisBand:Q,setYAxisTitle:R,setYAxisRangeData:S,setLineData:W,setBarData:X,setTmpSVGG:M,getChartThemeConfig:Z,getChartConfig:$,getXYChartData:_},ab={parser:k,db:aa,renderer:{draw:(0,i.K2)((a,b,c,d)=>{let f=d.db,g=f.getChartThemeConfig(),j=f.getChartConfig(),k=f.getXYChartData().plots[0].data.map(a=>a[1]);function l(a){return"top"===a?"text-before-edge":"middle"}function m(a){return"left"===a?"start":"right"===a?"end":"middle"}function n(a){return`translate(${a.x}, ${a.y}) rotate(${a.rotation||0})`}(0,i.K2)(l,"getDominantBaseLine"),(0,i.K2)(m,"getTextAnchor"),(0,i.K2)(n,"getTextTransformation"),i.Rm.debug("Rendering xychart chart\n"+a);let o=(0,e.D)(b),p=o.append("g").attr("class","main"),q=p.append("rect").attr("width",j.width).attr("height",j.height).attr("class","background");(0,h.a$)(o,j.height,j.width,!0),o.attr("viewBox",`0 0 ${j.width} ${j.height}`),q.attr("fill",g.backgroundColor),f.setTmpSVGG(o.append("g").attr("class","mermaid-tmp-group"));let r=f.getDrawableElem(),s={};function t(a){let b=p,c="";for(let[d]of a.entries()){let e=p;d>0&&s[c]&&(e=s[c]),c+=a[d],(b=s[c])||(b=s[c]=e.append("g").attr("class",a[d]))}return b}for(let a of((0,i.K2)(t,"getGroup"),r)){if(0===a.data.length)continue;let b=t(a.groupTexts);switch(a.type){case"rect":if(b.selectAll("rect").data(a.data).enter().append("rect").attr("x",a=>a.x).attr("y",a=>a.y).attr("width",a=>a.width).attr("height",a=>a.height).attr("fill",a=>a.fill).attr("stroke",a=>a.strokeFill).attr("stroke-width",a=>a.strokeWidth),j.showDataLabel)if("horizontal"===j.chartOrientation){let c=function(a,b){let{data:c,label:e}=a;return b*e.length*d<=c.width-10};(0,i.K2)(c,"fitsHorizontally");let d=.7,e=a.data.map((a,b)=>({data:a,label:k[b].toString()})).filter(a=>a.data.width>0&&a.data.height>0),f=Math.floor(Math.min(...e.map(a=>{let{data:b}=a,d=.7*b.height;for(;!c(a,d)&&d>0;)d-=1;return d})));b.selectAll("text").data(e).enter().append("text").attr("x",a=>a.data.x+a.data.width-10).attr("y",a=>a.data.y+a.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${f}px`).text(a=>a.label)}else{let c=function(a,b,c){let{data:d,label:e}=a,f=b*e.length*.7,g=d.x+d.width/2,h=g-f/2,i=g+f/2,j=h>=d.x&&i<=d.x+d.width,k=d.y+c+b<=d.y+d.height;return j&&k};(0,i.K2)(c,"fitsInBar");let d=a.data.map((a,b)=>({data:a,label:k[b].toString()})).filter(a=>a.data.width>0&&a.data.height>0),e=Math.floor(Math.min(...d.map(a=>{let{data:b,label:d}=a,e=b.width/(.7*d.length);for(;!c(a,e,10)&&e>0;)e-=1;return e})));b.selectAll("text").data(d).enter().append("text").attr("x",a=>a.data.x+a.data.width/2).attr("y",a=>a.data.y+10).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${e}px`).text(a=>a.label)}break;case"text":b.selectAll("text").data(a.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",a=>a.fill).attr("font-size",a=>a.fontSize).attr("dominant-baseline",a=>l(a.verticalPos)).attr("text-anchor",a=>m(a.horizontalPos)).attr("transform",a=>n(a)).text(a=>a.text);break;case"path":b.selectAll("path").data(a.data).enter().append("path").attr("d",a=>a.path).attr("fill",a=>a.fill?a.fill:"none").attr("stroke",a=>a.strokeFill).attr("stroke-width",a=>a.strokeWidth)}}},"draw")}}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=4367,exports.ids=[4367],exports.modules={30778:(a,b,c)=>{c.d(b,{T:()=>r});var d=c(86060),e=c(10228),f=c(45680),g=c(11850),h=c(73159),i=c(85992),j=c(98122),k=c(78959),l=c(9672),m=c(94287),n=c(45015),o=(0,l.A)(function(a){return(0,m.A)((0,k.A)(a,1,n.A,!0))}),p=c(21152),q=c(46171);class r{constructor(a={}){this._isDirected=!Object.prototype.hasOwnProperty.call(a,"directed")||a.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(a,"multigraph")&&a.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(a,"compound")&&a.compound,this._label=void 0,this._defaultNodeLabelFn=d.A(void 0),this._defaultEdgeLabelFn=d.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(a){return this._label=a,this}graph(){return this._label}setDefaultNodeLabel(a){return e.A(a)||(a=d.A(a)),this._defaultNodeLabelFn=a,this}nodeCount(){return this._nodeCount}nodes(){return f.A(this._nodes)}sources(){var a=this;return g.A(this.nodes(),function(b){return h.A(a._in[b])})}sinks(){var a=this;return g.A(this.nodes(),function(b){return h.A(a._out[b])})}setNodes(a,b){var c=arguments,d=this;return i.A(a,function(a){c.length>1?d.setNode(a,b):d.setNode(a)}),this}setNode(a,b){return Object.prototype.hasOwnProperty.call(this._nodes,a)?arguments.length>1&&(this._nodes[a]=b):(this._nodes[a]=arguments.length>1?b:this._defaultNodeLabelFn(a),this._isCompound&&(this._parent[a]="\0",this._children[a]={},this._children["\0"][a]=!0),this._in[a]={},this._preds[a]={},this._out[a]={},this._sucs[a]={},++this._nodeCount),this}node(a){return this._nodes[a]}hasNode(a){return Object.prototype.hasOwnProperty.call(this._nodes,a)}removeNode(a){if(Object.prototype.hasOwnProperty.call(this._nodes,a)){var b=a=>this.removeEdge(this._edgeObjs[a]);delete this._nodes[a],this._isCompound&&(this._removeFromParentsChildList(a),delete this._parent[a],i.A(this.children(a),a=>{this.setParent(a)}),delete this._children[a]),i.A(f.A(this._in[a]),b),delete this._in[a],delete this._preds[a],i.A(f.A(this._out[a]),b),delete this._out[a],delete this._sucs[a],--this._nodeCount}return this}setParent(a,b){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(j.A(b))b="\0";else{b+="";for(var c=b;!j.A(c);c=this.parent(c))if(c===a)throw Error("Setting "+b+" as parent of "+a+" would create a cycle");this.setNode(b)}return this.setNode(a),this._removeFromParentsChildList(a),this._parent[a]=b,this._children[b][a]=!0,this}_removeFromParentsChildList(a){delete this._children[this._parent[a]][a]}parent(a){if(this._isCompound){var b=this._parent[a];if("\0"!==b)return b}}children(a){if(j.A(a)&&(a="\0"),this._isCompound){var b=this._children[a];if(b)return f.A(b)}else if("\0"===a)return this.nodes();else if(this.hasNode(a))return[]}predecessors(a){var b=this._preds[a];if(b)return f.A(b)}successors(a){var b=this._sucs[a];if(b)return f.A(b)}neighbors(a){var b=this.predecessors(a);if(b)return o(b,this.successors(a))}isLeaf(a){return 0===(this.isDirected()?this.successors(a):this.neighbors(a)).length}filterNodes(a){var b=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});b.setGraph(this.graph());var c=this;i.A(this._nodes,function(c,d){a(d)&&b.setNode(d,c)}),i.A(this._edgeObjs,function(a){b.hasNode(a.v)&&b.hasNode(a.w)&&b.setEdge(a,c.edge(a))});var d={};return this._isCompound&&i.A(b.nodes(),function(a){b.setParent(a,function a(e){var f=c.parent(e);return void 0===f||b.hasNode(f)?(d[e]=f,f):f in d?d[f]:a(f)}(a))}),b}setDefaultEdgeLabel(a){return e.A(a)||(a=d.A(a)),this._defaultEdgeLabelFn=a,this}edgeCount(){return this._edgeCount}edges(){return p.A(this._edgeObjs)}setPath(a,b){var c=this,d=arguments;return q.A(a,function(a,e){return d.length>1?c.setEdge(a,e,b):c.setEdge(a,e),e}),this}setEdge(){var a,b,c,d,e=!1,f=arguments[0];"object"==typeof f&&null!==f&&"v"in f?(a=f.v,b=f.w,c=f.name,2==arguments.length&&(d=arguments[1],e=!0)):(a=f,b=arguments[1],c=arguments[3],arguments.length>2&&(d=arguments[2],e=!0)),a=""+a,b=""+b,j.A(c)||(c=""+c);var g=u(this._isDirected,a,b,c);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,g))return e&&(this._edgeLabels[g]=d),this;if(!j.A(c)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(a),this.setNode(b),this._edgeLabels[g]=e?d:this._defaultEdgeLabelFn(a,b,c);var h=function(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}var h={v:e,w:f};return d&&(h.name=d),h}(this._isDirected,a,b,c);return a=h.v,b=h.w,Object.freeze(h),this._edgeObjs[g]=h,s(this._preds[b],a),s(this._sucs[a],b),this._in[b][g]=h,this._out[a][g]=h,this._edgeCount++,this}edge(a,b,c){var d=1==arguments.length?v(this._isDirected,arguments[0]):u(this._isDirected,a,b,c);return this._edgeLabels[d]}hasEdge(a,b,c){var d=1==arguments.length?v(this._isDirected,arguments[0]):u(this._isDirected,a,b,c);return Object.prototype.hasOwnProperty.call(this._edgeLabels,d)}removeEdge(a,b,c){var d=1==arguments.length?v(this._isDirected,arguments[0]):u(this._isDirected,a,b,c),e=this._edgeObjs[d];return e&&(a=e.v,b=e.w,delete this._edgeLabels[d],delete this._edgeObjs[d],t(this._preds[b],a),t(this._sucs[a],b),delete this._in[b][d],delete this._out[a][d],this._edgeCount--),this}inEdges(a,b){var c=this._in[a];if(c){var d=p.A(c);return b?g.A(d,function(a){return a.v===b}):d}}outEdges(a,b){var c=this._out[a];if(c){var d=p.A(c);return b?g.A(d,function(a){return a.w===b}):d}}nodeEdges(a,b){var c=this.inEdges(a,b);if(c)return c.concat(this.outEdges(a,b))}}function s(a,b){a[b]?a[b]++:a[b]=1}function t(a,b){--a[b]||delete a[b]}function u(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}return e+"\x01"+f+"\x01"+(j.A(d)?"\0":d)}function v(a,b){return u(a,b.v,b.w,b.name)}r.prototype._nodeCount=0,r.prototype._edgeCount=0},74367:(a,b,c)=>{c.d(b,{T:()=>d.T});var d=c(30778)}};
@@ -1,24 +0,0 @@
1
- exports.id=4388,exports.ids=[4388],exports.modules={82518:a=>{function b(a){var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b}b.keys=()=>[],b.resolve=b,b.id=82518,a.exports=b},93273:(a,b,c)=>{"use strict";function d(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}c.d(b,{S:()=>d}),(0,c(21143).K2)(d,"populateCommonDb")},96209:(a,b,c)=>{"use strict";c.d(b,{diagram:()=>u});var d=c(11861),e=c(99573),f=c(62002),g=c(93273),h=c(94222),i=c(24795),j=c(21143),k=c(92325),l=c(69085),m=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=i.SV,this.getAccTitle=i.iN,this.setDiagramTitle=i.ke,this.getDiagramTitle=i.ab,this.getAccDescription=i.m7,this.setAccDescription=i.EI}static{(0,j.K2)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let a=i.UI,b=(0,i.zj)();return(0,h.$t)({...a.treemap,...b.treemap??{}})}addNode(a,b){this.nodes.push(a),this.levels.set(a,b),0===b&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,b){let c=this.classes.get(a)??{id:a,styles:[],textStyles:[]},d=b.replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");d&&d.forEach(a=>{(0,f.KX)(a)&&(c?.textStyles?c.textStyles.push(a):c.textStyles=[a]),c?.styles?c.styles.push(a):c.styles=[a]}),this.classes.set(a,c)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){(0,i.IU)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function n(a){if(!a.length)return[];let b=[],c=[];return a.forEach(a=>{let d={name:a.name,children:"Leaf"===a.type?void 0:[]};for(d.classSelector=a?.classSelector,a?.cssCompiledStyles&&(d.cssCompiledStyles=a.cssCompiledStyles),"Leaf"===a.type&&void 0!==a.value&&(d.value=a.value);c.length>0&&c[c.length-1].level>=a.level;)c.pop();if(0===c.length)b.push(d);else{let a=c[c.length-1].node;a.children?a.children.push(d):a.children=[d]}"Leaf"!==a.type&&c.push({node:d,level:a.level})}),b}(0,j.K2)(n,"buildHierarchy");var o=(0,j.K2)((a,b)=>{(0,g.S)(a,b);let c=[];for(let c of a.TreemapRows??[])"ClassDefStatement"===c.$type&&b.addClass(c.className??"",c.styleText??"");for(let d of a.TreemapRows??[]){let a=d.item;if(!a)continue;let e=d.indent?parseInt(d.indent):0,f=p(a),g=a.classSelector?b.getStylesForClass(a.classSelector):[],h=g.length>0?g:void 0,i={level:e,name:f,type:a.$type,value:a.value,classSelector:a.classSelector,cssCompiledStyles:h};c.push(i)}let d=n(c),e=(0,j.K2)((a,c)=>{for(let d of a)b.addNode(d,c),d.children&&d.children.length>0&&e(d.children,c+1)},"addNodesRecursively");e(d,0)},"populate"),p=(0,j.K2)(a=>a.name?String(a.name):"","getItemName"),q={parser:{yy:void 0},parse:(0,j.K2)(async a=>{try{let b=k.qg,c=await b("treemap",a);j.Rm.debug("Treemap AST:",c);let d=q.parser?.yy;if(!(d instanceof m))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");o(c,d)}catch(a){throw j.Rm.error("Error parsing treemap:",a),a}},"parse")},r=(0,j.K2)((a,b,c,g)=>{let h,k=g.db,m=k.getConfig(),n=m.padding??10,o=k.getDiagramTitle(),p=k.getRoot(),{themeVariables:q}=(0,i.zj)();if(!p)return;let r=30*!!o,s=(0,d.D)(b),t=m.nodeWidth?10*m.nodeWidth:960,u=m.nodeHeight?10*m.nodeHeight:500,v=u+r;s.attr("viewBox",`0 0 ${t} ${v}`),(0,i.a$)(s,v,t,m.useMaxWidth);try{let a=m.valueFormat||",";if("$0,0"===a)h=(0,j.K2)(a=>"$"+(0,l.GPZ)(",")(a),"valueFormat");else if(a.startsWith("$")&&a.includes(",")){let b=/\.\d+/.exec(a),c=b?b[0]:"";h=(0,j.K2)(a=>"$"+(0,l.GPZ)(","+c)(a),"valueFormat")}else if(a.startsWith("$")){let b=a.substring(1);h=(0,j.K2)(a=>"$"+(0,l.GPZ)(b||"")(a),"valueFormat")}else h=(0,l.GPZ)(a)}catch(a){j.Rm.error("Error creating format function:",a),h=(0,l.GPZ)(",")}let w=(0,l.UMr)().range(["transparent",q.cScale0,q.cScale1,q.cScale2,q.cScale3,q.cScale4,q.cScale5,q.cScale6,q.cScale7,q.cScale8,q.cScale9,q.cScale10,q.cScale11]),x=(0,l.UMr)().range(["transparent",q.cScalePeer0,q.cScalePeer1,q.cScalePeer2,q.cScalePeer3,q.cScalePeer4,q.cScalePeer5,q.cScalePeer6,q.cScalePeer7,q.cScalePeer8,q.cScalePeer9,q.cScalePeer10,q.cScalePeer11]),y=(0,l.UMr)().range([q.cScaleLabel0,q.cScaleLabel1,q.cScaleLabel2,q.cScaleLabel3,q.cScaleLabel4,q.cScaleLabel5,q.cScaleLabel6,q.cScaleLabel7,q.cScaleLabel8,q.cScaleLabel9,q.cScaleLabel10,q.cScaleLabel11]);o&&s.append("text").attr("x",t/2).attr("y",r/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(o);let z=s.append("g").attr("transform",`translate(0, ${r})`).attr("class","treemapContainer"),A=(0,l.Sk5)(p).sum(a=>a.value??0).sort((a,b)=>(b.value??0)-(a.value??0)),B=(0,l.hkb)().size([t,u]).paddingTop(a=>a.children&&a.children.length>0?35:0).paddingInner(n).paddingLeft(a=>a.children&&a.children.length>0?10:0).paddingRight(a=>a.children&&a.children.length>0?10:0).paddingBottom(a=>a.children&&a.children.length>0?10:0).round(!0)(A),C=B.descendants().filter(a=>a.children&&a.children.length>0),D=z.selectAll(".treemapSection").data(C).enter().append("g").attr("class","treemapSection").attr("transform",a=>`translate(${a.x0},${a.y0})`);D.append("rect").attr("width",a=>a.x1-a.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",a=>0===a.depth?"display: none;":""),D.append("clipPath").attr("id",(a,c)=>`clip-section-${b}-${c}`).append("rect").attr("width",a=>Math.max(0,a.x1-a.x0-12)).attr("height",25),D.append("rect").attr("width",a=>a.x1-a.x0).attr("height",a=>a.y1-a.y0).attr("class",(a,b)=>`treemapSection section${b}`).attr("fill",a=>w(a.data.name)).attr("fill-opacity",.6).attr("stroke",a=>x(a.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",a=>{if(0===a.depth)return"display: none;";let b=(0,f.GX)({cssCompiledStyles:a.data.cssCompiledStyles});return b.nodeStyles+";"+b.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(a=>0===a.depth?"":a.data.name).attr("font-weight","bold").attr("style",a=>0===a.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+y(a.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,f.GX)({cssCompiledStyles:a.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(a){if(0===a.depth)return;let b=(0,l.Ltv)(this),c=a.data.name;b.text(c);let d=a.x1-a.x0,e=Math.max(15,!1!==m.showValues&&a.value?d-10-30-10-6:d-6-6),f=b.node();if(f.getComputedTextLength()>e){let a=c;for(;a.length>0;){if(0===(a=c.substring(0,a.length-1)).length){b.text("..."),f.getComputedTextLength()>e&&b.text("");break}if(b.text(a+"..."),f.getComputedTextLength()<=e)break}}}),!1!==m.showValues&&D.append("text").attr("class","treemapSectionValue").attr("x",a=>a.x1-a.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(a=>a.value?h(a.value):"").attr("font-style","italic").attr("style",a=>0===a.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+y(a.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,f.GX)({cssCompiledStyles:a.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let E=B.leaves(),F=z.selectAll(".treemapLeafGroup").data(E).enter().append("g").attr("class",(a,b)=>`treemapNode treemapLeafGroup leaf${b}${a.data.classSelector?` ${a.data.classSelector}`:""}x`).attr("transform",a=>`translate(${a.x0},${a.y0})`);F.append("rect").attr("width",a=>a.x1-a.x0).attr("height",a=>a.y1-a.y0).attr("class","treemapLeaf").attr("fill",a=>a.parent?w(a.parent.data.name):w(a.data.name)).attr("style",a=>(0,f.GX)({cssCompiledStyles:a.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",a=>a.parent?w(a.parent.data.name):w(a.data.name)).attr("stroke-width",3),F.append("clipPath").attr("id",(a,c)=>`clip-${b}-${c}`).append("rect").attr("width",a=>Math.max(0,a.x1-a.x0-4)).attr("height",a=>Math.max(0,a.y1-a.y0-4)),F.append("text").attr("class","treemapLabel").attr("x",a=>(a.x1-a.x0)/2).attr("y",a=>(a.y1-a.y0)/2).attr("style",a=>"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+y(a.data.name)+";"+(0,f.GX)({cssCompiledStyles:a.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(a,c)=>`url(#clip-${b}-${c})`).text(a=>a.data.name).each(function(a){let b=(0,l.Ltv)(this),c=a.x1-a.x0,d=a.y1-a.y0,e=b.node(),f=c-8,g=d-8;if(f<10||g<10)return void b.style("display","none");let h=parseInt(b.style("font-size"),10);for(;e.getComputedTextLength()>f&&h>8;)h--,b.style("font-size",`${h}px`);let i=Math.max(6,Math.min(28,Math.round(.6*h))),j=h+2+i;for(;j>g&&h>8&&(!((i=Math.max(6,Math.min(28,Math.round(.6*--h))))<6)||8!==h);)b.style("font-size",`${h}px`),j=h+2+i;b.style("font-size",`${h}px`),(e.getComputedTextLength()>f||h<8||g<h)&&b.style("display","none")}),!1!==m.showValues&&F.append("text").attr("class","treemapValue").attr("x",a=>(a.x1-a.x0)/2).attr("y",function(a){return(a.y1-a.y0)/2}).attr("style",a=>"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+y(a.data.name)+";"+(0,f.GX)({cssCompiledStyles:a.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(a,c)=>`url(#clip-${b}-${c})`).text(a=>a.value?h(a.value):"").each(function(a){let b=(0,l.Ltv)(this),c=this.parentNode;if(!c)return void b.style("display","none");let d=(0,l.Ltv)(c).select(".treemapLabel");if(d.empty()||"none"===d.style("display"))return void b.style("display","none");let e=parseFloat(d.style("font-size")),f=Math.max(6,Math.min(28,Math.round(.6*e)));b.style("font-size",`${f}px`);let g=(a.y1-a.y0)/2+e/2+2;b.attr("y",g);let h=a.x1-a.x0,i=a.y1-a.y0;b.node().getComputedTextLength()>h-8||g+f>i-4||f<6?b.style("display","none"):b.style("display",null)});let G=m.diagramPadding??8;(0,e.P)(s,G,"flowchart",m?.useMaxWidth||!1)},"draw"),s=(0,j.K2)(function(a,b){return b.db.getClasses()},"getClasses"),t={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},u={parser:q,get db(){return new m},renderer:{draw:r,getClasses:s},styles:(0,j.K2)(({treemap:a}={})=>{let b=(0,h.$t)(t,a);return`
2
- .treemapNode.section {
3
- stroke: ${b.sectionStrokeColor};
4
- stroke-width: ${b.sectionStrokeWidth};
5
- fill: ${b.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${b.leafStrokeColor};
9
- stroke-width: ${b.leafStrokeWidth};
10
- fill: ${b.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${b.labelColor};
14
- font-size: ${b.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${b.valueColor};
18
- font-size: ${b.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${b.titleColor};
22
- font-size: ${b.titleFontSize};
23
- }
24
- `},"getStyles")}},99573:(a,b,c)=>{"use strict";c.d(b,{P:()=>f});var d=c(24795),e=c(21143),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")}};