@baique/pi-web-sky 0.1.39 → 0.1.41

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 (381) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +7 -12
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/react-loadable-manifest.json +51 -51
  6. package/.next/required-server-files.js +1 -1
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +3 -45
  9. package/.next/server/app/_global-error/page.js +2 -2
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page.js +1 -1
  17. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/_not-found.html +1 -1
  19. package/.next/server/app/_not-found.rsc +3 -3
  20. package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  21. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next/server/app/api/agent/[id]/bash-output/route.js +2 -2
  24. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  25. package/.next/server/app/api/agent/[id]/route.js +2 -2
  26. package/.next/server/app/api/agent/new/route.js +1 -1
  27. package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
  28. package/.next/server/app/api/agent/running/route.js +1 -1
  29. package/.next/server/app/api/app-update/route.js +1 -1
  30. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  31. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  32. package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
  33. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  34. package/.next/server/app/api/auth/providers/route.js +1 -1
  35. package/.next/server/app/api/boards/[id]/reconcile/route.js +1 -0
  36. package/.next/server/app/api/boards/[id]/reconcile/route_client-reference-manifest.js +1 -0
  37. package/.next/server/app/api/boards/[id]/route.js +1 -1
  38. package/.next/server/app/api/boards/purge-orphans/route.js +1 -1
  39. package/.next/server/app/api/boards/reorder/route.js +1 -1
  40. package/.next/server/app/api/boards/route.js +1 -1
  41. package/.next/server/app/api/cwd/browse/route.js +1 -1
  42. package/.next/server/app/api/cwd/validate/route.js +2 -2
  43. package/.next/server/app/api/default-cwd/route.js +2 -2
  44. package/.next/server/app/api/file-index/route.js +2 -2
  45. package/.next/server/app/api/files/[...path]/route.js +3 -3
  46. package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -1
  47. package/.next/server/app/api/git/diff/route.js +1 -1
  48. package/.next/server/app/api/git/status/route.js +1 -1
  49. package/.next/server/app/api/home/route.js +1 -1
  50. package/.next/server/app/api/mcp/route.js +1 -1
  51. package/.next/server/app/api/models/route.js +2 -2
  52. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  53. package/.next/server/app/api/models-config/discover/route.js +1 -1
  54. package/.next/server/app/api/models-config/route.js +1 -1
  55. package/.next/server/app/api/models-config/test/route.js +1 -1
  56. package/.next/server/app/api/plugins/route.js +2 -2
  57. package/.next/server/app/api/project-trust/route.js +2 -2
  58. package/.next/server/app/api/quota/route.js +1 -1
  59. package/.next/server/app/api/search/route.js +2 -2
  60. package/.next/server/app/api/sessions/[id]/auto-name/route.js +3 -3
  61. package/.next/server/app/api/sessions/[id]/context/route.js +2 -2
  62. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +2 -2
  63. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  64. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  65. package/.next/server/app/api/sessions/[id]/state/route.js +2 -2
  66. package/.next/server/app/api/sessions/[id]/todos/route.js +2 -2
  67. package/.next/server/app/api/sessions/route.js +2 -2
  68. package/.next/server/app/api/skills/check/route.js +1 -1
  69. package/.next/server/app/api/skills/install/route.js +2 -2
  70. package/.next/server/app/api/skills/route.js +1 -1
  71. package/.next/server/app/api/skills/search/route.js +1 -1
  72. package/.next/server/app/api/skills/update/route.js +1 -1
  73. package/.next/server/app/api/task-card-questions/[id]/answer/route.js +1 -1
  74. package/.next/server/app/api/task-card-questions/route.js +1 -1
  75. package/.next/server/app/api/task-cards/[id]/route.js +1 -1
  76. package/.next/server/app/api/task-cards/route.js +1 -1
  77. package/.next/server/app/api/task-scheduler/status/route.js +1 -1
  78. package/.next/server/app/api/tasks/[id]/board/route.js +1 -1
  79. package/.next/server/app/api/tasks/[id]/route.js +1 -1
  80. package/.next/server/app/api/tasks/reorder/route.js +1 -1
  81. package/.next/server/app/api/tasks/route.js +1 -1
  82. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  83. package/.next/server/app/api/terminal/[id]/route.js +2 -2
  84. package/.next/server/app/api/terminal/route.js +2 -2
  85. package/.next/server/app/api/worktrees/route.js +2 -2
  86. package/.next/server/app/favicon.ico/route.js +1 -1
  87. package/.next/server/app/index.html +1 -1
  88. package/.next/server/app/index.rsc +5 -5
  89. package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  90. package/.next/server/app/index.segments/_full.segment.rsc +5 -5
  91. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  92. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  93. package/.next/server/app/page.js +7 -7
  94. package/.next/server/app/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app-paths-manifest.json +7 -12
  96. package/.next/server/chunks/1094.js +2 -2
  97. package/.next/server/chunks/1601.js +1 -1
  98. package/.next/server/chunks/1860.js +1 -1
  99. package/.next/server/chunks/2075.js +1 -1
  100. package/.next/server/chunks/2169.js +1 -1
  101. package/.next/server/chunks/2404.js +1 -1
  102. package/.next/server/chunks/2524.js +1 -0
  103. package/.next/server/chunks/3012.js +1 -1
  104. package/.next/server/chunks/{5760.js → 3379.js} +1 -1
  105. package/.next/server/chunks/3500.js +1 -1
  106. package/.next/server/chunks/4226.js +5 -2
  107. package/.next/server/chunks/4267.js +1 -1
  108. package/.next/server/chunks/4563.js +1 -1
  109. package/.next/server/chunks/5318.js +1 -1
  110. package/.next/server/chunks/542.js +3 -44
  111. package/.next/server/chunks/5794.js +1 -1
  112. package/.next/server/chunks/6052.js +1 -1
  113. package/.next/server/chunks/6253.js +1 -1
  114. package/.next/server/chunks/6288.js +1 -1
  115. package/.next/server/chunks/6366.js +1 -1
  116. package/.next/server/chunks/673.js +1 -1
  117. package/.next/server/chunks/6916.js +2 -2
  118. package/.next/server/chunks/7128.js +43 -0
  119. package/.next/server/chunks/7265.js +2 -2
  120. package/.next/server/chunks/7799.js +1 -1
  121. package/.next/server/chunks/8106.js +1 -1
  122. package/.next/server/chunks/8333.js +1 -1
  123. package/.next/server/chunks/8604.js +1 -1
  124. package/.next/server/chunks/861.js +1 -0
  125. package/.next/server/chunks/8713.js +1 -1
  126. package/.next/server/chunks/8782.js +2 -2
  127. package/.next/server/chunks/898.js +1 -1
  128. package/.next/server/chunks/922.js +2 -2
  129. package/.next/server/chunks/9280.js +6 -6
  130. package/.next/server/chunks/9510.js +1 -1
  131. package/.next/server/instrumentation.js +1 -1
  132. package/.next/server/instrumentation.js.nft.json +1 -1
  133. package/.next/server/middleware-build-manifest.js +1 -1
  134. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  135. package/.next/server/pages/404.html +1 -1
  136. package/.next/server/pages/500.html +1 -1
  137. package/.next/server/server-reference-manifest.json +1 -1
  138. package/.next/static/chunks/{103.23142a67b02246a8.js → 103.6c91a059aa01d92c.js} +2 -2
  139. package/.next/static/chunks/{1032.12b382a9096ab2a4.js → 1032.9e8f793d46f463f8.js} +1 -1
  140. package/.next/static/chunks/{1063.775c442bdbeef08b.js → 1063.470df8a037dc8409.js} +1 -1
  141. package/.next/static/chunks/1a258343.f4fc2c133917ded8.js +2 -0
  142. package/.next/static/chunks/{1ba63609.b2ae90f43319a29e.js → 1ba63609.569928c7234f832c.js} +1 -1
  143. package/.next/static/chunks/{2181.ba21239d3ac39f81.js → 2181.b8dda21843ef5e74.js} +1 -1
  144. package/.next/static/chunks/{2325.23caf22075e51aa5.js → 2325.23e538886331cf64.js} +1 -1
  145. package/.next/static/chunks/{2356.523277bb8c6bf72a.js → 2356.b7312589c345edec.js} +1 -1
  146. package/.next/static/chunks/{268.72794ee2773c2060.js → 268.a1d90aca268be18a.js} +1 -1
  147. package/.next/static/chunks/{2695.6f49435bae1e6f33.js → 2695.5624aa3aae540e87.js} +1 -1
  148. package/.next/static/chunks/{2703.495a65ed14b2f094.js → 2703.097bc88286733740.js} +1 -1
  149. package/.next/static/chunks/{2821.934bcf60fbdc28c6.js → 2821.d2392a93d192fe92.js} +1 -1
  150. package/.next/static/chunks/3308.2cd6f20e6c0f4e92.js +73 -0
  151. package/.next/static/chunks/{3336.a76f9485fe7cb762.js → 3336.9b1dc9ec3507d64f.js} +1 -1
  152. package/.next/static/chunks/3546.779d2c7646aa77cc.js +1 -0
  153. package/.next/static/chunks/{370.8e8f3cf8eb0e29dd.js → 370.cde2a84caa84054f.js} +1 -1
  154. package/.next/static/chunks/{3716.72bf4c9d7325debd.js → 3716.5bac496cea32ca8f.js} +1 -1
  155. package/.next/static/chunks/{3995.eca0f5bef1fc3ae5.js → 3995.cd112debcd64c610.js} +1 -1
  156. package/.next/static/chunks/{4004.74b9bcf5478b1663.js → 4004.a8f79ef62f32aa30.js} +2 -2
  157. package/.next/static/chunks/{4202.8440832386f023c7.js → 4202.96f5b1beb8b3e3f5.js} +1 -1
  158. package/.next/static/chunks/{4238.6f102dcbcf2ae339.js → 4238.28efbf9aa0c82d90.js} +1 -1
  159. package/.next/static/chunks/{4405.7a19458960a1058e.js → 4405.cda46a596a02aef7.js} +1 -1
  160. package/.next/static/chunks/54a60aa6.5e4421e7afde4de8.js +78 -0
  161. package/.next/static/chunks/{6121.eb9023b1cbc78ee2.js → 6121.5e650e714b402b6f.js} +1 -1
  162. package/.next/static/chunks/{6195.1153369f5f8b13a2.js → 6195.1b7f9dc127381bbc.js} +1 -1
  163. package/.next/static/chunks/6380.d148a8e2c701ad78.js +68 -0
  164. package/.next/static/chunks/6582.fb2c709abc2c5981.js +1 -0
  165. package/.next/static/chunks/6be7e44c.00d0163f409986f0.js +1 -0
  166. package/.next/static/chunks/{7331.2add3c4e125a2dba.js → 7331.4afa66d6353c8e07.js} +1 -1
  167. package/.next/static/chunks/752.a05a2904b96af4d0.js +1 -0
  168. package/.next/static/chunks/{8200.a36b9f8c983c6b9e.js → 8200.350d650649b977eb.js} +1 -1
  169. package/.next/static/chunks/{8885.cf60cac98bf8b70c.js → 8885.2c060cb45c85547b.js} +1 -1
  170. package/.next/static/chunks/{918.6a9bbe564e4a2d0f.js → 918.593eb466d35cb8ad.js} +1 -1
  171. package/.next/static/chunks/{9698.4d09a99b9d99f3e5.js → 9698.758755d0387e0e22.js} +2 -2
  172. package/.next/static/chunks/97.fb73c551e14b3612.js +2 -0
  173. package/.next/static/chunks/{993e5495.8797001fcfcf2889.js → 993e5495.12cdfbc3af5c79e9.js} +1 -1
  174. package/.next/static/chunks/{9974.9a0f79beca65e8c4.js → 9974.5ee982e074ad047e.js} +1 -1
  175. package/.next/static/chunks/app/_global-error/page-bb8f79f321e26750.js +1 -0
  176. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-bb8f79f321e26750.js +1 -0
  177. package/.next/static/chunks/app/api/agent/[id]/events/route-bb8f79f321e26750.js +1 -0
  178. package/.next/static/chunks/app/api/agent/[id]/route-bb8f79f321e26750.js +1 -0
  179. package/.next/static/chunks/app/api/agent/new/route-bb8f79f321e26750.js +1 -0
  180. package/.next/static/chunks/app/api/agent/running/route-bb8f79f321e26750.js +1 -0
  181. package/.next/static/chunks/app/api/app-update/route-bb8f79f321e26750.js +1 -0
  182. package/.next/static/chunks/app/api/auth/all-providers/route-bb8f79f321e26750.js +1 -0
  183. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-bb8f79f321e26750.js +1 -0
  184. package/.next/static/chunks/app/api/auth/login/[provider]/route-bb8f79f321e26750.js +1 -0
  185. package/.next/static/chunks/app/api/auth/logout/[provider]/route-bb8f79f321e26750.js +1 -0
  186. package/.next/static/chunks/app/api/auth/providers/route-bb8f79f321e26750.js +1 -0
  187. package/.next/static/chunks/app/api/boards/[id]/reconcile/route-bb8f79f321e26750.js +1 -0
  188. package/.next/static/chunks/app/api/boards/[id]/route-bb8f79f321e26750.js +1 -0
  189. package/.next/static/chunks/app/api/boards/purge-orphans/route-bb8f79f321e26750.js +1 -0
  190. package/.next/static/chunks/app/api/boards/reorder/route-bb8f79f321e26750.js +1 -0
  191. package/.next/static/chunks/app/api/boards/route-bb8f79f321e26750.js +1 -0
  192. package/.next/static/chunks/app/api/cwd/browse/route-bb8f79f321e26750.js +1 -0
  193. package/.next/static/chunks/app/api/cwd/validate/route-bb8f79f321e26750.js +1 -0
  194. package/.next/static/chunks/app/api/default-cwd/route-bb8f79f321e26750.js +1 -0
  195. package/.next/static/chunks/app/api/file-index/route-bb8f79f321e26750.js +1 -0
  196. package/.next/static/chunks/app/api/files/[...path]/route-bb8f79f321e26750.js +1 -0
  197. package/.next/static/chunks/app/api/git/diff/route-bb8f79f321e26750.js +1 -0
  198. package/.next/static/chunks/app/api/git/status/route-bb8f79f321e26750.js +1 -0
  199. package/.next/static/chunks/app/api/home/route-bb8f79f321e26750.js +1 -0
  200. package/.next/static/chunks/app/api/mcp/route-bb8f79f321e26750.js +1 -0
  201. package/.next/static/chunks/app/api/models/route-bb8f79f321e26750.js +1 -0
  202. package/.next/static/chunks/app/api/models-config/catalog/route-bb8f79f321e26750.js +1 -0
  203. package/.next/static/chunks/app/api/models-config/discover/route-bb8f79f321e26750.js +1 -0
  204. package/.next/static/chunks/app/api/models-config/route-bb8f79f321e26750.js +1 -0
  205. package/.next/static/chunks/app/api/models-config/test/route-bb8f79f321e26750.js +1 -0
  206. package/.next/static/chunks/app/api/plugins/route-bb8f79f321e26750.js +1 -0
  207. package/.next/static/chunks/app/api/project-trust/route-bb8f79f321e26750.js +1 -0
  208. package/.next/static/chunks/app/api/quota/route-bb8f79f321e26750.js +1 -0
  209. package/.next/static/chunks/app/api/search/route-bb8f79f321e26750.js +1 -0
  210. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-bb8f79f321e26750.js +1 -0
  211. package/.next/static/chunks/app/api/sessions/[id]/context/route-bb8f79f321e26750.js +1 -0
  212. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-bb8f79f321e26750.js +1 -0
  213. package/.next/static/chunks/app/api/sessions/[id]/export/route-bb8f79f321e26750.js +1 -0
  214. package/.next/static/chunks/app/api/sessions/[id]/route-bb8f79f321e26750.js +1 -0
  215. package/.next/static/chunks/app/api/sessions/[id]/state/route-bb8f79f321e26750.js +1 -0
  216. package/.next/static/chunks/app/api/sessions/[id]/todos/route-bb8f79f321e26750.js +1 -0
  217. package/.next/static/chunks/app/api/sessions/route-bb8f79f321e26750.js +1 -0
  218. package/.next/static/chunks/app/api/skills/check/route-bb8f79f321e26750.js +1 -0
  219. package/.next/static/chunks/app/api/skills/install/route-bb8f79f321e26750.js +1 -0
  220. package/.next/static/chunks/app/api/skills/route-bb8f79f321e26750.js +1 -0
  221. package/.next/static/chunks/app/api/skills/search/route-bb8f79f321e26750.js +1 -0
  222. package/.next/static/chunks/app/api/skills/update/route-bb8f79f321e26750.js +1 -0
  223. package/.next/static/chunks/app/api/task-card-questions/[id]/answer/route-bb8f79f321e26750.js +1 -0
  224. package/.next/static/chunks/app/api/task-card-questions/route-bb8f79f321e26750.js +1 -0
  225. package/.next/static/chunks/app/api/task-cards/[id]/route-bb8f79f321e26750.js +1 -0
  226. package/.next/static/chunks/app/api/task-cards/route-bb8f79f321e26750.js +1 -0
  227. package/.next/static/chunks/app/api/task-scheduler/status/route-bb8f79f321e26750.js +1 -0
  228. package/.next/static/chunks/app/api/tasks/[id]/board/route-bb8f79f321e26750.js +1 -0
  229. package/.next/static/chunks/app/api/tasks/[id]/route-bb8f79f321e26750.js +1 -0
  230. package/.next/static/chunks/app/api/tasks/reorder/route-bb8f79f321e26750.js +1 -0
  231. package/.next/static/chunks/app/api/tasks/route-bb8f79f321e26750.js +1 -0
  232. package/.next/static/chunks/app/api/terminal/[id]/events/route-bb8f79f321e26750.js +1 -0
  233. package/.next/static/chunks/app/api/terminal/[id]/route-bb8f79f321e26750.js +1 -0
  234. package/.next/static/chunks/app/api/terminal/route-bb8f79f321e26750.js +1 -0
  235. package/.next/static/chunks/app/api/worktrees/route-bb8f79f321e26750.js +1 -0
  236. package/.next/static/chunks/app/{layout-7761e430ed68b347.js → layout-2bec2662143a3d1b.js} +1 -1
  237. package/.next/static/chunks/app/manifest.webmanifest/route-bb8f79f321e26750.js +1 -0
  238. package/.next/static/chunks/app/page-e38c6cf3174fa143.js +89 -0
  239. package/.next/static/chunks/next/dist/client/components/builtin/app-error-bb8f79f321e26750.js +1 -0
  240. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-bb8f79f321e26750.js +1 -0
  241. package/.next/static/chunks/next/dist/client/components/builtin/not-found-bb8f79f321e26750.js +1 -0
  242. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-bb8f79f321e26750.js +1 -0
  243. package/.next/static/chunks/webpack-b4924d2a22ad3650.js +1 -0
  244. package/.next/static/css/0c7244f7214af81f.css +1 -0
  245. package/.next/static/css/12456255969ac8de.css +31 -0
  246. package/.next/trace +8 -49
  247. package/.next/trace-build +1 -1
  248. package/.next/types/app/api/boards/[id]/{reconcile-task-edges → reconcile}/route.ts +3 -3
  249. package/.next/types/routes.d.ts +2 -7
  250. package/.next/types/validator.ts +3 -48
  251. package/README.md +6 -9
  252. package/THIRD_PARTY_NOTICES.md +10 -82
  253. package/bin/pi-web-sky.js +3 -3
  254. package/lib/board-reconcile-scheduler.ts +56 -0
  255. package/lib/board-reconcile.test.mjs +252 -0
  256. package/lib/board-reconcile.ts +421 -0
  257. package/lib/board-store.test.mjs +26 -4
  258. package/lib/board-store.ts +44 -6
  259. package/lib/board-types.ts +7 -2
  260. package/lib/i18n/messages/en.ts +1 -1
  261. package/lib/i18n/messages/zh-CN.ts +1 -1
  262. package/lib/session-delete.ts +5 -0
  263. package/lib/sqlite-db.ts +13 -1
  264. package/lib/task-card-store.test.mjs +16 -1
  265. package/lib/task-card-store.ts +37 -1
  266. package/lib/task-scheduler.test.mjs +79 -0
  267. package/lib/task-scheduler.ts +195 -21
  268. package/lib/yjs-room-server.mjs +139 -0
  269. package/package.json +12 -9
  270. package/server.mjs +7 -7
  271. package/.next/server/app/api/boards/[id]/canvas/route.js +0 -1
  272. package/.next/server/app/api/boards/[id]/canvas/route_client-reference-manifest.js +0 -1
  273. package/.next/server/app/api/boards/[id]/edges/[eid]/route.js +0 -1
  274. package/.next/server/app/api/boards/[id]/edges/[eid]/route.js.nft.json +0 -1
  275. package/.next/server/app/api/boards/[id]/edges/[eid]/route_client-reference-manifest.js +0 -1
  276. package/.next/server/app/api/boards/[id]/edges/route.js +0 -1
  277. package/.next/server/app/api/boards/[id]/edges/route.js.nft.json +0 -1
  278. package/.next/server/app/api/boards/[id]/edges/route_client-reference-manifest.js +0 -1
  279. package/.next/server/app/api/boards/[id]/nodes/[nid]/route.js +0 -1
  280. package/.next/server/app/api/boards/[id]/nodes/[nid]/route.js.nft.json +0 -1
  281. package/.next/server/app/api/boards/[id]/nodes/[nid]/route_client-reference-manifest.js +0 -1
  282. package/.next/server/app/api/boards/[id]/nodes/route.js +0 -1
  283. package/.next/server/app/api/boards/[id]/nodes/route.js.nft.json +0 -1
  284. package/.next/server/app/api/boards/[id]/nodes/route_client-reference-manifest.js +0 -1
  285. package/.next/server/app/api/boards/[id]/reconcile-task-edges/route.js +0 -1
  286. package/.next/server/app/api/boards/[id]/reconcile-task-edges/route.js.nft.json +0 -1
  287. package/.next/server/app/api/boards/[id]/reconcile-task-edges/route_client-reference-manifest.js +0 -1
  288. package/.next/static/chunks/3308.857c554428b3294e.js +0 -73
  289. package/.next/static/chunks/333.bf0651c789b2eb33.js +0 -1
  290. package/.next/static/chunks/5315.dba7515ae6e139ae.js +0 -4
  291. package/.next/static/chunks/54a60aa6.0e43cde7298ebcb7.js +0 -78
  292. package/.next/static/chunks/7999.879d5a20e8641752.js +0 -259
  293. package/.next/static/chunks/app/_global-error/page-d6f52627eddf9119.js +0 -1
  294. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-d6f52627eddf9119.js +0 -1
  295. package/.next/static/chunks/app/api/agent/[id]/events/route-d6f52627eddf9119.js +0 -1
  296. package/.next/static/chunks/app/api/agent/[id]/route-d6f52627eddf9119.js +0 -1
  297. package/.next/static/chunks/app/api/agent/new/route-d6f52627eddf9119.js +0 -1
  298. package/.next/static/chunks/app/api/agent/running/route-d6f52627eddf9119.js +0 -1
  299. package/.next/static/chunks/app/api/app-update/route-d6f52627eddf9119.js +0 -1
  300. package/.next/static/chunks/app/api/auth/all-providers/route-d6f52627eddf9119.js +0 -1
  301. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-d6f52627eddf9119.js +0 -1
  302. package/.next/static/chunks/app/api/auth/login/[provider]/route-d6f52627eddf9119.js +0 -1
  303. package/.next/static/chunks/app/api/auth/logout/[provider]/route-d6f52627eddf9119.js +0 -1
  304. package/.next/static/chunks/app/api/auth/providers/route-d6f52627eddf9119.js +0 -1
  305. package/.next/static/chunks/app/api/boards/[id]/canvas/route-d6f52627eddf9119.js +0 -1
  306. package/.next/static/chunks/app/api/boards/[id]/edges/[eid]/route-d6f52627eddf9119.js +0 -1
  307. package/.next/static/chunks/app/api/boards/[id]/edges/route-d6f52627eddf9119.js +0 -1
  308. package/.next/static/chunks/app/api/boards/[id]/nodes/[nid]/route-d6f52627eddf9119.js +0 -1
  309. package/.next/static/chunks/app/api/boards/[id]/nodes/route-d6f52627eddf9119.js +0 -1
  310. package/.next/static/chunks/app/api/boards/[id]/reconcile-task-edges/route-d6f52627eddf9119.js +0 -1
  311. package/.next/static/chunks/app/api/boards/[id]/route-d6f52627eddf9119.js +0 -1
  312. package/.next/static/chunks/app/api/boards/purge-orphans/route-d6f52627eddf9119.js +0 -1
  313. package/.next/static/chunks/app/api/boards/reorder/route-d6f52627eddf9119.js +0 -1
  314. package/.next/static/chunks/app/api/boards/route-d6f52627eddf9119.js +0 -1
  315. package/.next/static/chunks/app/api/cwd/browse/route-d6f52627eddf9119.js +0 -1
  316. package/.next/static/chunks/app/api/cwd/validate/route-d6f52627eddf9119.js +0 -1
  317. package/.next/static/chunks/app/api/default-cwd/route-d6f52627eddf9119.js +0 -1
  318. package/.next/static/chunks/app/api/file-index/route-d6f52627eddf9119.js +0 -1
  319. package/.next/static/chunks/app/api/files/[...path]/route-d6f52627eddf9119.js +0 -1
  320. package/.next/static/chunks/app/api/git/diff/route-d6f52627eddf9119.js +0 -1
  321. package/.next/static/chunks/app/api/git/status/route-d6f52627eddf9119.js +0 -1
  322. package/.next/static/chunks/app/api/home/route-d6f52627eddf9119.js +0 -1
  323. package/.next/static/chunks/app/api/mcp/route-d6f52627eddf9119.js +0 -1
  324. package/.next/static/chunks/app/api/models/route-d6f52627eddf9119.js +0 -1
  325. package/.next/static/chunks/app/api/models-config/catalog/route-d6f52627eddf9119.js +0 -1
  326. package/.next/static/chunks/app/api/models-config/discover/route-d6f52627eddf9119.js +0 -1
  327. package/.next/static/chunks/app/api/models-config/route-d6f52627eddf9119.js +0 -1
  328. package/.next/static/chunks/app/api/models-config/test/route-d6f52627eddf9119.js +0 -1
  329. package/.next/static/chunks/app/api/plugins/route-d6f52627eddf9119.js +0 -1
  330. package/.next/static/chunks/app/api/project-trust/route-d6f52627eddf9119.js +0 -1
  331. package/.next/static/chunks/app/api/quota/route-d6f52627eddf9119.js +0 -1
  332. package/.next/static/chunks/app/api/search/route-d6f52627eddf9119.js +0 -1
  333. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-d6f52627eddf9119.js +0 -1
  334. package/.next/static/chunks/app/api/sessions/[id]/context/route-d6f52627eddf9119.js +0 -1
  335. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-d6f52627eddf9119.js +0 -1
  336. package/.next/static/chunks/app/api/sessions/[id]/export/route-d6f52627eddf9119.js +0 -1
  337. package/.next/static/chunks/app/api/sessions/[id]/route-d6f52627eddf9119.js +0 -1
  338. package/.next/static/chunks/app/api/sessions/[id]/state/route-d6f52627eddf9119.js +0 -1
  339. package/.next/static/chunks/app/api/sessions/[id]/todos/route-d6f52627eddf9119.js +0 -1
  340. package/.next/static/chunks/app/api/sessions/route-d6f52627eddf9119.js +0 -1
  341. package/.next/static/chunks/app/api/skills/check/route-d6f52627eddf9119.js +0 -1
  342. package/.next/static/chunks/app/api/skills/install/route-d6f52627eddf9119.js +0 -1
  343. package/.next/static/chunks/app/api/skills/route-d6f52627eddf9119.js +0 -1
  344. package/.next/static/chunks/app/api/skills/search/route-d6f52627eddf9119.js +0 -1
  345. package/.next/static/chunks/app/api/skills/update/route-d6f52627eddf9119.js +0 -1
  346. package/.next/static/chunks/app/api/task-card-questions/[id]/answer/route-d6f52627eddf9119.js +0 -1
  347. package/.next/static/chunks/app/api/task-card-questions/route-d6f52627eddf9119.js +0 -1
  348. package/.next/static/chunks/app/api/task-cards/[id]/route-d6f52627eddf9119.js +0 -1
  349. package/.next/static/chunks/app/api/task-cards/route-d6f52627eddf9119.js +0 -1
  350. package/.next/static/chunks/app/api/task-scheduler/status/route-d6f52627eddf9119.js +0 -1
  351. package/.next/static/chunks/app/api/tasks/[id]/board/route-d6f52627eddf9119.js +0 -1
  352. package/.next/static/chunks/app/api/tasks/[id]/route-d6f52627eddf9119.js +0 -1
  353. package/.next/static/chunks/app/api/tasks/reorder/route-d6f52627eddf9119.js +0 -1
  354. package/.next/static/chunks/app/api/tasks/route-d6f52627eddf9119.js +0 -1
  355. package/.next/static/chunks/app/api/terminal/[id]/events/route-d6f52627eddf9119.js +0 -1
  356. package/.next/static/chunks/app/api/terminal/[id]/route-d6f52627eddf9119.js +0 -1
  357. package/.next/static/chunks/app/api/terminal/route-d6f52627eddf9119.js +0 -1
  358. package/.next/static/chunks/app/api/worktrees/route-d6f52627eddf9119.js +0 -1
  359. package/.next/static/chunks/app/manifest.webmanifest/route-d6f52627eddf9119.js +0 -1
  360. package/.next/static/chunks/app/page-2c87c41e7f848f45.js +0 -89
  361. package/.next/static/chunks/e3e7ddb2.a35db430b3564999.js +0 -1
  362. package/.next/static/chunks/next/dist/client/components/builtin/app-error-d6f52627eddf9119.js +0 -1
  363. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-d6f52627eddf9119.js +0 -1
  364. package/.next/static/chunks/next/dist/client/components/builtin/not-found-d6f52627eddf9119.js +0 -1
  365. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d6f52627eddf9119.js +0 -1
  366. package/.next/static/chunks/webpack-4bbf04891e910713.js +0 -1
  367. package/.next/static/css/80c818c5781fbadc.css +0 -4
  368. package/.next/static/css/d3a2b5077b52c727.css +0 -1
  369. package/.next/types/app/api/boards/[id]/canvas/route.ts +0 -353
  370. package/.next/types/app/api/boards/[id]/edges/[eid]/route.ts +0 -353
  371. package/.next/types/app/api/boards/[id]/edges/route.ts +0 -353
  372. package/.next/types/app/api/boards/[id]/nodes/[nid]/route.ts +0 -353
  373. package/.next/types/app/api/boards/[id]/nodes/route.ts +0 -353
  374. package/lib/board-search.test.mjs +0 -110
  375. package/lib/board-search.ts +0 -63
  376. package/lib/file-explorer-state.test.mjs +0 -63
  377. package/lib/file-explorer-state.ts +0 -36
  378. package/lib/sync-room-server.mjs +0 -137
  379. /package/.next/server/app/api/boards/[id]/{canvas → reconcile}/route.js.nft.json +0 -0
  380. /package/.next/static/{IzmOG04jJst1VpUvr_fr5 → 8V884w_cp5HEp_rRpjnCR}/_buildManifest.js +0 -0
  381. /package/.next/static/{IzmOG04jJst1VpUvr_fr5 → 8V884w_cp5HEp_rRpjnCR}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[988],{94340:(t,e,a)=>{a.d(e,{DA:()=>k,IU:()=>R,U:()=>N,U7:()=>ep,U_:()=>ex,Zk:()=>y,aP:()=>ef,gh:()=>em,lC:()=>w,on:()=>eu});var l=a(23462),i=a(77809),r=a(19836),n=a(39457),s=a(86305),h=a(37325),o=a(56037),d=a(89851),c=a(33948),g=a(94529),y=(0,d.K)(async(t,e,a)=>{let l,n=e.useHtmlLabels||(0,h._3)((0,h.D7)()?.htmlLabels),o=t.insert("g").attr("class",a||"node default").attr("id",e.domId||e.id),d=o.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle));l=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let g=!!e.icon||!!e.img,y="markdown"===e.labelType,f=await (0,r.G)(d,(0,h.jZ)((0,s.Sm)(l),(0,h.D7)()),{useHtmlLabels:n,width:e.width||(0,h.D7)().flowchart?.wrappingWidth,classes:y?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:g,markdown:y},(0,h.D7)()),w=f.getBBox(),u=(e?.padding??0)/2;if(n){let t=f.children[0],e=(0,c.Ltv)(f);await (0,i.X)(t,l),w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}return n?d.attr("transform","translate("+-w.width/2+", "+-w.height/2+")"):d.attr("transform","translate(0, "+-w.height/2+")"),e.centerLabel&&d.attr("transform","translate("+-w.width/2+", "+-w.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:o,bbox:w,halfPadding:u,label:d}},"labelHelper"),f=(0,d.K)(async(t,e,a)=>{let l=a.useHtmlLabels??(0,h.E)((0,h.D7)()),i=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),n=await (0,r.G)(i,(0,h.jZ)((0,s.Sm)(e),(0,h.D7)()),{useHtmlLabels:l,width:a.width||(0,h.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),o=n.getBBox(),d=a.padding/2;if((0,h.E)((0,h.D7)())){let t=n.children[0],e=(0,c.Ltv)(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}return l?i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):i.attr("transform","translate(0, "+-o.height/2+")"),a.centerLabel&&i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:o,halfPadding:d,label:i}},"insertLabel"),w=(0,d.K)((t,e)=>{let a=e.node().getBBox();t.width=a.width,t.height=a.height},"updateNodeBounds"),u=(0,d.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function p(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function m(t,e,a,l,i,r){let n=[],s=a-t,h=2*Math.PI/(s/r),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+i*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function x(t,e,a,l,i,r){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}function $(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let i=e.find(t=>"none"!==t.getAttribute("fill")),r=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,d.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");i&&Object.entries({fill:n(i,"fill"),"fill-opacity":n(i,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),r&&Object.entries({stroke:n(r,"stroke"),"stroke-width":n(r,"stroke-width")??"1","stroke-opacity":n(r,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,d.K)(p,"createPathFromPoints"),(0,d.K)(m,"generateFullSineWavePoints"),(0,d.K)(x,"generateCirclePoints"),(0,d.K)($,"mergePaths");var b=(0,d.K)((t,e)=>{var a,l,i=t.x,r=t.y,n=e.x-i,s=e.y-r,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:i+a,y:r+l}},"intersectRect"),k=(0,d.K)(async(t,e,a,l=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let s=(0,h.D7)(),o=(0,h.E)(s);return await (0,r.G)(t,n,{style:a,isTitle:l,useHtmlLabels:o,markdown:!1,isNode:i,width:1/0},s)},"createLabel"),D=(0,d.K)((t,e,a,l,i)=>["M",t+i,e,"H",t+a-i,"A",i,i,"0 0 1",t+a,e+i,"V",e+l-i,"A",i,i,"0 0 1",t+a-i,e+l,"H",t+i,"A",i,i,"0 0 1",t,e+l-i,"V",e+i,"A",i,i,"0 0 1",t+i,e,"Z"].join(" "),"createRoundedRectPathD"),S=(0,d.K)(async(t,e)=>{let a,i,n=(0,h.D7)(),{themeVariables:s,handDrawnSeed:d}=n,{clusterBkg:y,clusterBorder:f}=s,{labelStyles:w,nodeStyles:u,borderStyles:p,backgroundStyles:m}=(0,l.GX)(e),x=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),$=(0,h._3)(n.flowchart.htmlLabels),k="LR"===e.direction,D=x.insert("g").attr("class","cluster-label swimlane-label"),S=await (0,r.G)(D,e.label,{style:e.labelStyle,useHtmlLabels:$,isNode:!0,width:e.width}),M=S.getBBox();if($){let t=S.children[0],e=(0,c.Ltv)(S);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let A=e.padding??0,v=e.width<=M.width+A?M.width+A:e.width;e.width<=M.width+A?e.diff=(v-e.width)/2-A:e.diff=-A;let K=e.height,B=e.y-K/2,C=e.y+K/2,N=e.x-v/2,R=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:B+K/3,L=4*!!k,F=M.height+2*L;if(k){let t=Math.max(F,M.height+2*L),r=N+t,n=Math.max(0,v-t);if("handDrawn"===e.look){let s=g.A.svg(x),h=(0,l.Fr)(e,{roughness:.7,fill:y,stroke:f,fillWeight:3,seed:d}),o=(0,l.Fr)(e,{roughness:.7,fill:"none",stroke:f,seed:d}),c=s.rectangle(N,B,t,K,h);a=x.insert(()=>c,":first-child");let w=s.rectangle(r,B,n,K,o);i=x.insert(()=>w,":first-child"),a.select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",m.join(";").replace("fill","stroke"))}else a=x.insert("rect",":first-child"),i=x.insert("rect",":first-child"),a.attr("class","swimlane-title").attr("style",u).attr("x",N).attr("y",B).attr("width",t).attr("height",K).attr("fill",y).attr("stroke",f),i.attr("class","swimlane-body").attr("style",u).attr("x",r).attr("y",B).attr("width",n).attr("height",K).attr("fill","none").attr("stroke",f);let s=N+t/2,h=e.y;D.attr("transform",`translate(${s}, ${h}) rotate(-90) translate(${-M.width/2}, ${-M.height/2})`)}else{let t=Math.min(F,Math.max(0,R-B)),r=B+t,n=Math.max(0,C-r),s=e.x-v/2;if("handDrawn"===e.look){let h=g.A.svg(x),o=(0,l.Fr)(e,{roughness:.7,fill:y,stroke:f,fillWeight:3,seed:d}),c=(0,l.Fr)(e,{roughness:.7,fill:"none",stroke:f,seed:d}),w=h.rectangle(s,B,v,t,o);a=x.insert(()=>w,":first-child");let u=h.rectangle(s,r,v,n,c);i=x.insert(()=>u,":first-child"),a.select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",m.join(";").replace("fill","stroke"))}else a=x.insert("rect",":first-child"),i=x.insert("rect",":first-child"),a.attr("class","swimlane-title").attr("style",u).attr("x",s).attr("y",B).attr("width",v).attr("height",t).attr("fill",y).attr("stroke",f),i.attr("class","swimlane-body").attr("style",u).attr("x",s).attr("y",r).attr("width",v).attr("height",n).attr("fill","none").attr("stroke",f);let h=e.x-M.width/2,o=B+(t-M.height)/2;D.attr("transform",`translate(${h}, ${o})`)}if(o.R.trace("Swimlane data ",e,JSON.stringify(e)),w){let t=D.select("span");t&&t.attr("style",w)}return e.offsetX=0,e.width=v,e.height=K,e.offsetY=M.height-A/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:M}},"swimlane"),M=(0,d.K)(async(t,e)=>{let a,n;o.R.info("Creating subgraph rect for ",e.id,e);let s=(0,h.D7)(),{themeVariables:d,handDrawnSeed:y}=s,{clusterBkg:f,clusterBorder:w}=d,{labelStyles:u,nodeStyles:p,borderStyles:m,backgroundStyles:x}=(0,l.GX)(e),$=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),S=(0,h.E)(s),M=$.insert("g").attr("class","cluster-label "),A=(a="markdown"===e.labelType?await (0,r.G)(M,e.label,{style:e.labelStyle,useHtmlLabels:S,isNode:!0,width:e.width}):await k(M,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,h.E)(s)){let t=a.children[0],e=(0,c.Ltv)(a);A=t.getBoundingClientRect(),e.attr("width",A.width),e.attr("height",A.height)}let v=e.width<=A.width+e.padding?A.width+e.padding:e.width;e.width<=A.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let K=e.height,B=e.x-v/2,C=e.y-K/2;if(o.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=g.A.svg($),a=(0,l.Fr)(e,{roughness:.7,fill:f,stroke:w,fillWeight:3,seed:y}),i=t.path(D(B,C,v,K,0),a);(n=$.insert(()=>(o.R.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),n.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(n=$.insert("rect",":first-child")).attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",C).attr("width",v).attr("height",K);let{subGraphTitleTopMargin:N}=(0,i.O)(s);if(M.attr("transform",`translate(${e.x-A.width/2}, ${e.y-e.height/2+N})`),u){let t=M.select("span");t&&t.attr("style",u)}let R=n.node().getBBox();return e.offsetX=0,e.width=R.width,e.height=R.height,e.offsetY=A.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:$,labelBBox:A}},"rect"),A=(0,d.K)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.domId),l=a.insert("rect",":first-child"),i=0*e.padding,r=i/2;l.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2-r).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let n=l.node().getBBox();return e.width=n.width,e.height=n.height,e.intersect=function(t){return b(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),v=(0,d.K)(async(t,e)=>{let a,l=(0,h.D7)(),{themeVariables:i,handDrawnSeed:r}=l,{altBackground:n,compositeBackground:s,compositeTitleBackground:o,nodeBorder:d}=i,y=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),f=y.insert("g",":first-child"),w=y.insert("g").attr("class","cluster-label"),u=y.append("rect"),p=await k(w,e.label,e.labelStyle,void 0,!0),m=p.getBBox();if((0,h.E)(l)){let t=p.children[0],e=(0,c.Ltv)(p);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}let x=0*e.padding,$=(e.width<=m.width+e.padding?m.width+e.padding:e.width)+x;e.width<=m.width+e.padding?e.diff=($-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+x,M=e.height+x-m.height-6,A=e.x-$/2,v=e.y-S/2;e.width=$;let K=e.y-e.height/2-x/2+m.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),l=g.A.svg(y),i=e.rx||e.ry?l.path(D(A,v,$,S,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:d,seed:r}):l.rectangle(A,v,$,S,{seed:r});a=y.insert(()=>i,":first-child");let h=l.rectangle(A,K,$,M,{fill:t?n:s,fillStyle:t?"hachure":"solid",stroke:d,seed:r});a=y.insert(()=>i,":first-child"),u=y.insert(()=>h)}else(a=f.insert("rect",":first-child")).attr("class","outer").attr("x",A).attr("y",v).attr("width",$).attr("height",S).attr("data-look",e.look),u.attr("class","inner").attr("x",A).attr("y",K).attr("width",$).attr("height",M);return w.attr("transform",`translate(${e.x-m.width/2}, ${v+1-3*!(0,h.E)(l)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=m.height-e.padding/2,e.labelBBox=m,e.intersect=function(t){return b(e,t)},{cluster:y,labelBBox:m}},"roundedWithTitle"),K=(0,d.K)(async(t,e)=>{let a;o.R.info("Creating subgraph rect for ",e.id,e);let n=(0,h.D7)(),{themeVariables:s,handDrawnSeed:d}=n,{clusterBkg:y,clusterBorder:f}=s,{labelStyles:w,nodeStyles:u,borderStyles:p,backgroundStyles:m}=(0,l.GX)(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),$=(0,h.E)(n),k=x.insert("g").attr("class","cluster-label "),S=await (0,r.G)(k,e.label,{style:e.labelStyle,useHtmlLabels:$,isNode:!0,width:e.width}),M=S.getBBox();if((0,h.E)(n)){let t=S.children[0],e=(0,c.Ltv)(S);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let A=e.width<=M.width+e.padding?M.width+e.padding:e.width;e.width<=M.width+e.padding?e.diff=(A-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height,K=e.x-A/2,B=e.y-v/2;if(o.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=g.A.svg(x),i=(0,l.Fr)(e,{roughness:.7,fill:y,stroke:f,fillWeight:4,seed:d}),r=t.path(D(K,B,A,v,e.rx),i);(a=x.insert(()=>(o.R.debug("Rough node insert CXC",r),r),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",m.join(";").replace("fill","stroke"))}else(a=x.insert("rect",":first-child")).attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",K).attr("y",B).attr("width",A).attr("height",v);let{subGraphTitleTopMargin:C}=(0,i.O)(n);if(k.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+C})`),w){let t=k.select("span");t&&t.attr("style",w)}let N=a.node().getBBox();return e.offsetX=0,e.width=N.width,e.height=N.height,e.offsetY=M.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:M}},"kanbanSection"),B={rect:M,squareRect:M,roundedWithTitle:v,noteGroup:A,divider:(0,d.K)((t,e)=>{let a,{themeVariables:l,handDrawnSeed:i}=(0,h.D7)(),{nodeBorder:r}=l,n=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),s=n.insert("g",":first-child"),o=0*e.padding,d=e.width+o;e.diff=-e.padding;let c=e.height+o,y=e.x-d/2,f=e.y-c/2;if(e.width=d,"handDrawn"===e.look){let t=g.A.svg(n).rectangle(y,f,d,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:r,seed:i});a=n.insert(()=>t,":first-child")}else{a=s.insert("rect",":first-child");let t="outer";e.look,t="divider",a.attr("class",t).attr("x",y).attr("y",f).attr("width",d).attr("height",c).attr("data-look",e.look)}return e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return b(e,t)},{cluster:n,labelBBox:{}}},"divider"),kanbanSection:K,swimlane:S},C=new Map,N=(0,d.K)(async(t,e)=>{let a=e.shape||"rect",l=await B[a](t,e);return C.set(e.id,l),l},"insertCluster"),R=(0,d.K)(()=>{C=new Map},"clear");function L(t,e,a,l){var i=t.x,r=t.y,n=i-l.x,s=r-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<i&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<r&&(d=-d),{x:i+o,y:r+d}}function F(t,e,a){return L(t,e,e,a)}function P(t,e,a,l){{let i=e.y-t.y,r=t.x-e.x,n=e.x*t.y-t.x*e.y,s=i*a.x+r*a.y+n,h=i*l.x+r*l.y+n;if(0!==s&&0!==h&&X(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&X(g,y))return;let f=i*d-o*r;if(0===f)return;let w=Math.abs(f/2),u=r*c-d*n;return{x:u<0?(u-w)/f:(u+w)/f,y:(u=o*n-i*c)<0?(u-w)/f:(u+w)/f}}}function X(t,e){return t*e>0}function G(t,e,a){let l=t.x,i=t.y,r=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=i-t.height/2-s;for(let l=0;l<e.length;l++){let i=e[l],n=e[l<e.length-1?l+1:0],s=P(t,a,{x:h+i.x,y:o+i.y},{x:h+n.x,y:o+n.y});s&&r.push(s)}return r.length?(r.length>1&&r.sort(function(t,e){let l=t.x-a.x,i=t.y-a.y,r=Math.sqrt(l*l+i*i),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return r<h?-1:+(r!==h)}),r[0]):t}(0,d.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,d.K)(L,"intersectEllipse"),(0,d.K)(F,"intersectCircle"),(0,d.K)(P,"intersectLine"),(0,d.K)(X,"sameSign"),(0,d.K)(G,"intersectPolygon");function I(t,e){let{labelStyles:a}=(0,l.GX)(e);e.labelStyle=a;let i=u(e),r=i;i||(r="anchor");let n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),{cssStyles:h}=e,d=g.A.svg(n),c=(0,l.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=d.circle(0,0,2,c),f=n.insert(()=>y,":first-child");return f.attr("class","anchor").attr("style",(0,s.KL)(h)),w(e,f),e.intersect=function(t){return o.R.info("Circle intersect",e,1,t),F(e,1,t)},n}function E(t,e,a,l,i,r,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/i)**2+((l-e)/2/r)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*r*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*i*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/r,(t-d)/i),y=Math.atan2((l-c)/r,(a-d)/i)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+i*Math.cos(e),l=c+r*Math.sin(e);f.push({x:a,y:l})}return f}function T(t,e,a){let[l,i]=[e,a].sort((t,e)=>e-t);return i*(1-Math.sqrt(1-(t/l/2)**2))}async function W(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,h=(0,d.K)(t=>t+s,"calcTotalHeight"),o=(0,d.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:c,bbox:f}=await y(t,e,u(e)),m=h(e?.height?e?.height:f.height),[x,$]=o(m),b=T(m,x,$),k=(e?.width?e?.width:f.width)+2*n+b-b,{cssStyles:D}=e,S=[{x:k/2,y:-m/2},{x:-k/2,y:-m/2},...E(-k/2,-m/2,-k/2,m/2,x,$,!1),{x:k/2,y:m/2},...E(k/2,m/2,k/2,-m/2,x,$,!0)],M=g.A.svg(c),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let v=p(S),K=M.path(v,A),B=c.insert(()=>K,":first-child");return B.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",D),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${x/2}, 0)`),w(e,B),e.intersect=function(t){return G(e,S,t)},c}function H(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}async function j(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?28:n,h="neo"===e.look?24:n,{shapeSvg:o,bbox:d}=await y(t,e,u(e)),c=(e?.width??d.width)+("neo"===e.look?2*s:s+12),f=(e?.height??d.height)+("neo"===e.look?2*h:h),m=-f,x=[{x:12,y:m},{x:c,y:m},{x:c,y:0},{x:0,y:0},{x:0,y:m+12},{x:12,y:m}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=g.A.svg(o),i=(0,l.Fr)(e,{}),r=p(x),n=t.path(r,i);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${f/2})`),$&&a.attr("style",$)}else a=H(o,c,f,x);return r&&a.attr("style",r),w(e,a),e.intersect=function(t){return G(e,x,t)},o}function q(t,e){let{nodeStyles:a}=(0,l.GX)(e);e.label="";let i=t.insert("g").attr("class",u(e)).attr("id",e.domId??e.id),{cssStyles:r}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=g.A.svg(i),o=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let d=p(s),c=h.path(d,o),y=i.insert(()=>c,":first-child");return r&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",r),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return G(e,s,t)},i}async function _(t,e,a){let i,{labelStyles:r,nodeStyles:n}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:h,bbox:d,halfPadding:c}=await y(t,e,u(e)),f=a?.padding??c,p="neo"===e.look?d.width/2+32:d.width/2+f,{cssStyles:m}=e;if("handDrawn"===e.look){let t=g.A.svg(h),a=(0,l.Fr)(e,{}),r=t.circle(0,0,2*p,a);(i=h.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(m))}else i=h.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0);return w(e,i),e.calcIntersect=function(t,e){let a=t.width/2;return F(t,a,e)},e.intersect=function(t){return o.R.info("Circle intersect",e,p,t),F(e,p,t)},h}function z(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,i={x:l/2*e,y:l/2*a},r={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${r.x},${r.y} L ${s.x},${s.y}
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[988],{94340:(t,e,a)=>{a.d(e,{DA:()=>k,IU:()=>R,U:()=>N,U7:()=>ep,U_:()=>ex,Zk:()=>y,aP:()=>ef,gh:()=>em,lC:()=>w,on:()=>eu});var l=a(23462),i=a(77809),r=a(19836),n=a(39457),s=a(86305),h=a(37325),o=a(56037),d=a(89851),c=a(32054),g=a(94529),y=(0,d.K)(async(t,e,a)=>{let l,n=e.useHtmlLabels||(0,h._3)((0,h.D7)()?.htmlLabels),o=t.insert("g").attr("class",a||"node default").attr("id",e.domId||e.id),d=o.insert("g").attr("class","label").attr("style",(0,s.KL)(e.labelStyle));l=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let g=!!e.icon||!!e.img,y="markdown"===e.labelType,f=await (0,r.G)(d,(0,h.jZ)((0,s.Sm)(l),(0,h.D7)()),{useHtmlLabels:n,width:e.width||(0,h.D7)().flowchart?.wrappingWidth,classes:y?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:g,markdown:y},(0,h.D7)()),w=f.getBBox(),u=(e?.padding??0)/2;if(n){let t=f.children[0],e=(0,c.Ltv)(f);await (0,i.X)(t,l),w=t.getBoundingClientRect(),e.attr("width",w.width),e.attr("height",w.height)}return n?d.attr("transform","translate("+-w.width/2+", "+-w.height/2+")"):d.attr("transform","translate(0, "+-w.height/2+")"),e.centerLabel&&d.attr("transform","translate("+-w.width/2+", "+-w.height/2+")"),d.insert("rect",":first-child"),{shapeSvg:o,bbox:w,halfPadding:u,label:d}},"labelHelper"),f=(0,d.K)(async(t,e,a)=>{let l=a.useHtmlLabels??(0,h.E)((0,h.D7)()),i=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),n=await (0,r.G)(i,(0,h.jZ)((0,s.Sm)(e),(0,h.D7)()),{useHtmlLabels:l,width:a.width||(0,h.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),o=n.getBBox(),d=a.padding/2;if((0,h.E)((0,h.D7)())){let t=n.children[0],e=(0,c.Ltv)(n);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}return l?i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):i.attr("transform","translate(0, "+-o.height/2+")"),a.centerLabel&&i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:o,halfPadding:d,label:i}},"insertLabel"),w=(0,d.K)((t,e)=>{let a=e.node().getBBox();t.width=a.width,t.height=a.height},"updateNodeBounds"),u=(0,d.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function p(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function m(t,e,a,l,i,r){let n=[],s=a-t,h=2*Math.PI/(s/r),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+i*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function x(t,e,a,l,i,r){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}function $(t){let e=Array.from(t.childNodes).filter(t=>"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let i=e.find(t=>"none"!==t.getAttribute("fill")),r=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,d.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");i&&Object.entries({fill:n(i,"fill"),"fill-opacity":n(i,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),r&&Object.entries({stroke:n(r,"stroke"),"stroke-width":n(r,"stroke-width")??"1","stroke-opacity":n(r,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,d.K)(p,"createPathFromPoints"),(0,d.K)(m,"generateFullSineWavePoints"),(0,d.K)(x,"generateCirclePoints"),(0,d.K)($,"mergePaths");var b=(0,d.K)((t,e)=>{var a,l,i=t.x,r=t.y,n=e.x-i,s=e.y-r,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:i+a,y:r+l}},"intersectRect"),k=(0,d.K)(async(t,e,a,l=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let s=(0,h.D7)(),o=(0,h.E)(s);return await (0,r.G)(t,n,{style:a,isTitle:l,useHtmlLabels:o,markdown:!1,isNode:i,width:1/0},s)},"createLabel"),D=(0,d.K)((t,e,a,l,i)=>["M",t+i,e,"H",t+a-i,"A",i,i,"0 0 1",t+a,e+i,"V",e+l-i,"A",i,i,"0 0 1",t+a-i,e+l,"H",t+i,"A",i,i,"0 0 1",t,e+l-i,"V",e+i,"A",i,i,"0 0 1",t+i,e,"Z"].join(" "),"createRoundedRectPathD"),S=(0,d.K)(async(t,e)=>{let a,i,n=(0,h.D7)(),{themeVariables:s,handDrawnSeed:d}=n,{clusterBkg:y,clusterBorder:f}=s,{labelStyles:w,nodeStyles:u,borderStyles:p,backgroundStyles:m}=(0,l.GX)(e),x=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),$=(0,h._3)(n.flowchart.htmlLabels),k="LR"===e.direction,D=x.insert("g").attr("class","cluster-label swimlane-label"),S=await (0,r.G)(D,e.label,{style:e.labelStyle,useHtmlLabels:$,isNode:!0,width:e.width}),M=S.getBBox();if($){let t=S.children[0],e=(0,c.Ltv)(S);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let A=e.padding??0,v=e.width<=M.width+A?M.width+A:e.width;e.width<=M.width+A?e.diff=(v-e.width)/2-A:e.diff=-A;let K=e.height,B=e.y-K/2,C=e.y+K/2,N=e.x-v/2,R=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:B+K/3,L=4*!!k,F=M.height+2*L;if(k){let t=Math.max(F,M.height+2*L),r=N+t,n=Math.max(0,v-t);if("handDrawn"===e.look){let s=g.A.svg(x),h=(0,l.Fr)(e,{roughness:.7,fill:y,stroke:f,fillWeight:3,seed:d}),o=(0,l.Fr)(e,{roughness:.7,fill:"none",stroke:f,seed:d}),c=s.rectangle(N,B,t,K,h);a=x.insert(()=>c,":first-child");let w=s.rectangle(r,B,n,K,o);i=x.insert(()=>w,":first-child"),a.select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",m.join(";").replace("fill","stroke"))}else a=x.insert("rect",":first-child"),i=x.insert("rect",":first-child"),a.attr("class","swimlane-title").attr("style",u).attr("x",N).attr("y",B).attr("width",t).attr("height",K).attr("fill",y).attr("stroke",f),i.attr("class","swimlane-body").attr("style",u).attr("x",r).attr("y",B).attr("width",n).attr("height",K).attr("fill","none").attr("stroke",f);let s=N+t/2,h=e.y;D.attr("transform",`translate(${s}, ${h}) rotate(-90) translate(${-M.width/2}, ${-M.height/2})`)}else{let t=Math.min(F,Math.max(0,R-B)),r=B+t,n=Math.max(0,C-r),s=e.x-v/2;if("handDrawn"===e.look){let h=g.A.svg(x),o=(0,l.Fr)(e,{roughness:.7,fill:y,stroke:f,fillWeight:3,seed:d}),c=(0,l.Fr)(e,{roughness:.7,fill:"none",stroke:f,seed:d}),w=h.rectangle(s,B,v,t,o);a=x.insert(()=>w,":first-child");let u=h.rectangle(s,r,v,n,c);i=x.insert(()=>u,":first-child"),a.select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",m.join(";").replace("fill","stroke"))}else a=x.insert("rect",":first-child"),i=x.insert("rect",":first-child"),a.attr("class","swimlane-title").attr("style",u).attr("x",s).attr("y",B).attr("width",v).attr("height",t).attr("fill",y).attr("stroke",f),i.attr("class","swimlane-body").attr("style",u).attr("x",s).attr("y",r).attr("width",v).attr("height",n).attr("fill","none").attr("stroke",f);let h=e.x-M.width/2,o=B+(t-M.height)/2;D.attr("transform",`translate(${h}, ${o})`)}if(o.R.trace("Swimlane data ",e,JSON.stringify(e)),w){let t=D.select("span");t&&t.attr("style",w)}return e.offsetX=0,e.width=v,e.height=K,e.offsetY=M.height-A/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:M}},"swimlane"),M=(0,d.K)(async(t,e)=>{let a,n;o.R.info("Creating subgraph rect for ",e.id,e);let s=(0,h.D7)(),{themeVariables:d,handDrawnSeed:y}=s,{clusterBkg:f,clusterBorder:w}=d,{labelStyles:u,nodeStyles:p,borderStyles:m,backgroundStyles:x}=(0,l.GX)(e),$=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),S=(0,h.E)(s),M=$.insert("g").attr("class","cluster-label "),A=(a="markdown"===e.labelType?await (0,r.G)(M,e.label,{style:e.labelStyle,useHtmlLabels:S,isNode:!0,width:e.width}):await k(M,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,h.E)(s)){let t=a.children[0],e=(0,c.Ltv)(a);A=t.getBoundingClientRect(),e.attr("width",A.width),e.attr("height",A.height)}let v=e.width<=A.width+e.padding?A.width+e.padding:e.width;e.width<=A.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;let K=e.height,B=e.x-v/2,C=e.y-K/2;if(o.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=g.A.svg($),a=(0,l.Fr)(e,{roughness:.7,fill:f,stroke:w,fillWeight:3,seed:y}),i=t.path(D(B,C,v,K,0),a);(n=$.insert(()=>(o.R.debug("Rough node insert CXC",i),i),":first-child")).select("path:nth-child(2)").attr("style",m.join(";")),n.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(n=$.insert("rect",":first-child")).attr("style",p).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",C).attr("width",v).attr("height",K);let{subGraphTitleTopMargin:N}=(0,i.O)(s);if(M.attr("transform",`translate(${e.x-A.width/2}, ${e.y-e.height/2+N})`),u){let t=M.select("span");t&&t.attr("style",u)}let R=n.node().getBBox();return e.offsetX=0,e.width=R.width,e.height=R.height,e.offsetY=A.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:$,labelBBox:A}},"rect"),A=(0,d.K)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.domId),l=a.insert("rect",":first-child"),i=0*e.padding,r=i/2;l.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-r).attr("y",e.y-e.height/2-r).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let n=l.node().getBBox();return e.width=n.width,e.height=n.height,e.intersect=function(t){return b(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),v=(0,d.K)(async(t,e)=>{let a,l=(0,h.D7)(),{themeVariables:i,handDrawnSeed:r}=l,{altBackground:n,compositeBackground:s,compositeTitleBackground:o,nodeBorder:d}=i,y=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),f=y.insert("g",":first-child"),w=y.insert("g").attr("class","cluster-label"),u=y.append("rect"),p=await k(w,e.label,e.labelStyle,void 0,!0),m=p.getBBox();if((0,h.E)(l)){let t=p.children[0],e=(0,c.Ltv)(p);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}let x=0*e.padding,$=(e.width<=m.width+e.padding?m.width+e.padding:e.width)+x;e.width<=m.width+e.padding?e.diff=($-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height+x,M=e.height+x-m.height-6,A=e.x-$/2,v=e.y-S/2;e.width=$;let K=e.y-e.height/2-x/2+m.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),l=g.A.svg(y),i=e.rx||e.ry?l.path(D(A,v,$,S,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:d,seed:r}):l.rectangle(A,v,$,S,{seed:r});a=y.insert(()=>i,":first-child");let h=l.rectangle(A,K,$,M,{fill:t?n:s,fillStyle:t?"hachure":"solid",stroke:d,seed:r});a=y.insert(()=>i,":first-child"),u=y.insert(()=>h)}else(a=f.insert("rect",":first-child")).attr("class","outer").attr("x",A).attr("y",v).attr("width",$).attr("height",S).attr("data-look",e.look),u.attr("class","inner").attr("x",A).attr("y",K).attr("width",$).attr("height",M);return w.attr("transform",`translate(${e.x-m.width/2}, ${v+1-3*!(0,h.E)(l)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=m.height-e.padding/2,e.labelBBox=m,e.intersect=function(t){return b(e,t)},{cluster:y,labelBBox:m}},"roundedWithTitle"),K=(0,d.K)(async(t,e)=>{let a;o.R.info("Creating subgraph rect for ",e.id,e);let n=(0,h.D7)(),{themeVariables:s,handDrawnSeed:d}=n,{clusterBkg:y,clusterBorder:f}=s,{labelStyles:w,nodeStyles:u,borderStyles:p,backgroundStyles:m}=(0,l.GX)(e),x=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),$=(0,h.E)(n),k=x.insert("g").attr("class","cluster-label "),S=await (0,r.G)(k,e.label,{style:e.labelStyle,useHtmlLabels:$,isNode:!0,width:e.width}),M=S.getBBox();if((0,h.E)(n)){let t=S.children[0],e=(0,c.Ltv)(S);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let A=e.width<=M.width+e.padding?M.width+e.padding:e.width;e.width<=M.width+e.padding?e.diff=(A-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height,K=e.x-A/2,B=e.y-v/2;if(o.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=g.A.svg(x),i=(0,l.Fr)(e,{roughness:.7,fill:y,stroke:f,fillWeight:4,seed:d}),r=t.path(D(K,B,A,v,e.rx),i);(a=x.insert(()=>(o.R.debug("Rough node insert CXC",r),r),":first-child")).select("path:nth-child(2)").attr("style",p.join(";")),a.select("path").attr("style",m.join(";").replace("fill","stroke"))}else(a=x.insert("rect",":first-child")).attr("style",u).attr("rx",e.rx).attr("ry",e.ry).attr("x",K).attr("y",B).attr("width",A).attr("height",v);let{subGraphTitleTopMargin:C}=(0,i.O)(n);if(k.attr("transform",`translate(${e.x-M.width/2}, ${e.y-e.height/2+C})`),w){let t=k.select("span");t&&t.attr("style",w)}let N=a.node().getBBox();return e.offsetX=0,e.width=N.width,e.height=N.height,e.offsetY=M.height-e.padding/2,e.intersect=function(t){return b(e,t)},{cluster:x,labelBBox:M}},"kanbanSection"),B={rect:M,squareRect:M,roundedWithTitle:v,noteGroup:A,divider:(0,d.K)((t,e)=>{let a,{themeVariables:l,handDrawnSeed:i}=(0,h.D7)(),{nodeBorder:r}=l,n=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),s=n.insert("g",":first-child"),o=0*e.padding,d=e.width+o;e.diff=-e.padding;let c=e.height+o,y=e.x-d/2,f=e.y-c/2;if(e.width=d,"handDrawn"===e.look){let t=g.A.svg(n).rectangle(y,f,d,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:r,seed:i});a=n.insert(()=>t,":first-child")}else{a=s.insert("rect",":first-child");let t="outer";e.look,t="divider",a.attr("class",t).attr("x",y).attr("y",f).attr("width",d).attr("height",c).attr("data-look",e.look)}return e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return b(e,t)},{cluster:n,labelBBox:{}}},"divider"),kanbanSection:K,swimlane:S},C=new Map,N=(0,d.K)(async(t,e)=>{let a=e.shape||"rect",l=await B[a](t,e);return C.set(e.id,l),l},"insertCluster"),R=(0,d.K)(()=>{C=new Map},"clear");function L(t,e,a,l){var i=t.x,r=t.y,n=i-l.x,s=r-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.x<i&&(o=-o);var d=Math.abs(e*a*s/h);return l.y<r&&(d=-d),{x:i+o,y:r+d}}function F(t,e,a){return L(t,e,e,a)}function P(t,e,a,l){{let i=e.y-t.y,r=t.x-e.x,n=e.x*t.y-t.x*e.y,s=i*a.x+r*a.y+n,h=i*l.x+r*l.y+n;if(0!==s&&0!==h&&X(s,h))return;let o=l.y-a.y,d=a.x-l.x,c=l.x*a.y-a.x*l.y,g=o*t.x+d*t.y+c,y=o*e.x+d*e.y+c;if(1e-6>Math.abs(g)&&1e-6>Math.abs(y)&&X(g,y))return;let f=i*d-o*r;if(0===f)return;let w=Math.abs(f/2),u=r*c-d*n;return{x:u<0?(u-w)/f:(u+w)/f,y:(u=o*n-i*c)<0?(u-w)/f:(u+w)/f}}}function X(t,e){return t*e>0}function G(t,e,a){let l=t.x,i=t.y,r=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=i-t.height/2-s;for(let l=0;l<e.length;l++){let i=e[l],n=e[l<e.length-1?l+1:0],s=P(t,a,{x:h+i.x,y:o+i.y},{x:h+n.x,y:o+n.y});s&&r.push(s)}return r.length?(r.length>1&&r.sort(function(t,e){let l=t.x-a.x,i=t.y-a.y,r=Math.sqrt(l*l+i*i),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return r<h?-1:+(r!==h)}),r[0]):t}(0,d.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,d.K)(L,"intersectEllipse"),(0,d.K)(F,"intersectCircle"),(0,d.K)(P,"intersectLine"),(0,d.K)(X,"sameSign"),(0,d.K)(G,"intersectPolygon");function I(t,e){let{labelStyles:a}=(0,l.GX)(e);e.labelStyle=a;let i=u(e),r=i;i||(r="anchor");let n=t.insert("g").attr("class",r).attr("id",e.domId||e.id),{cssStyles:h}=e,d=g.A.svg(n),c=(0,l.Fr)(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=d.circle(0,0,2,c),f=n.insert(()=>y,":first-child");return f.attr("class","anchor").attr("style",(0,s.KL)(h)),w(e,f),e.intersect=function(t){return o.R.info("Circle intersect",e,1,t),F(e,1,t)},n}function E(t,e,a,l,i,r,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/i)**2+((l-e)/2/r)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*r*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*i*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/r,(t-d)/i),y=Math.atan2((l-c)/r,(a-d)/i)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let f=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+i*Math.cos(e),l=c+r*Math.sin(e);f.push({x:a,y:l})}return f}function T(t,e,a){let[l,i]=[e,a].sort((t,e)=>e-t);return i*(1-Math.sqrt(1-(t/l/2)**2))}async function W(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,h=(0,d.K)(t=>t+s,"calcTotalHeight"),o=(0,d.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:c,bbox:f}=await y(t,e,u(e)),m=h(e?.height?e?.height:f.height),[x,$]=o(m),b=T(m,x,$),k=(e?.width?e?.width:f.width)+2*n+b-b,{cssStyles:D}=e,S=[{x:k/2,y:-m/2},{x:-k/2,y:-m/2},...E(-k/2,-m/2,-k/2,m/2,x,$,!1),{x:k/2,y:m/2},...E(k/2,m/2,k/2,-m/2,x,$,!0)],M=g.A.svg(c),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let v=p(S),K=M.path(v,A),B=c.insert(()=>K,":first-child");return B.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",D),i&&"handDrawn"!==e.look&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${x/2}, 0)`),w(e,B),e.intersect=function(t){return G(e,S,t)},c}function H(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}async function j(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?28:n,h="neo"===e.look?24:n,{shapeSvg:o,bbox:d}=await y(t,e,u(e)),c=(e?.width??d.width)+("neo"===e.look?2*s:s+12),f=(e?.height??d.height)+("neo"===e.look?2*h:h),m=-f,x=[{x:12,y:m},{x:c,y:m},{x:c,y:0},{x:0,y:0},{x:0,y:m+12},{x:12,y:m}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=g.A.svg(o),i=(0,l.Fr)(e,{}),r=p(x),n=t.path(r,i);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${f/2})`),$&&a.attr("style",$)}else a=H(o,c,f,x);return r&&a.attr("style",r),w(e,a),e.intersect=function(t){return G(e,x,t)},o}function q(t,e){let{nodeStyles:a}=(0,l.GX)(e);e.label="";let i=t.insert("g").attr("class",u(e)).attr("id",e.domId??e.id),{cssStyles:r}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=g.A.svg(i),o=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let d=p(s),c=h.path(d,o),y=i.insert(()=>c,":first-child");return r&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",r),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return G(e,s,t)},i}async function _(t,e,a){let i,{labelStyles:r,nodeStyles:n}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:h,bbox:d,halfPadding:c}=await y(t,e,u(e)),f=a?.padding??c,p="neo"===e.look?d.width/2+32:d.width/2+f,{cssStyles:m}=e;if("handDrawn"===e.look){let t=g.A.svg(h),a=(0,l.Fr)(e,{}),r=t.circle(0,0,2*p,a);(i=h.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)(m))}else i=h.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",p).attr("cx",0).attr("cy",0);return w(e,i),e.calcIntersect=function(t,e){let a=t.width/2;return F(t,a,e)},e.intersect=function(t){return o.R.info("Circle intersect",e,p,t),F(e,p,t)},h}function z(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,i={x:l/2*e,y:l/2*a},r={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${r.x},${r.y} L ${s.x},${s.y}
2
2
  M ${i.x},${i.y} L ${n.x},${n.y}`}function O(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a,e.label="";let r=t.insert("g").attr("class",u(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,h=g.A.svg(r),d=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let c=h.circle(0,0,2*n,d),y=z(n),f=h.path(y,d),p=r.insert(()=>c,":first-child");return p.insert(()=>f),p.attr("class","outer-path"),s&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),w(e,p),e.intersect=function(t){return o.R.info("crossedCircle intersect",e,{radius:n,point:t}),F(e,n,t)},r}function Z(t,e,a,l=100,i=0,r=180){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}async function Y(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:r,bbox:n,label:s}=await y(t,e,u(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+h,c=n.height+o,f=Math.max(5,.1*c),{cssStyles:m}=e,x=[...Z(d/2,-c/2,f,30,-90,0),{x:-d/2-f,y:f},...Z(d/2+2*f,-f,f,20,-180,-270),...Z(d/2+2*f,f,f,20,-90,-180),{x:-d/2-f,y:-c/2},...Z(d/2,c/2,f,20,0,90)],$=[{x:d/2,y:-c/2-f},{x:-d/2,y:-c/2-f},...Z(d/2,-c/2,f,20,-90,0),{x:-d/2-f,y:-f},...Z(d/2+.1*d,-f,f,20,-180,-270),...Z(d/2+.1*d,f,f,20,-90,-180),{x:-d/2-f,y:c/2},...Z(d/2,c/2,f,20,0,90),{x:-d/2,y:c/2+f},{x:d/2,y:c/2+f}],b=g.A.svg(r),k=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=p(x).replace("Z",""),S=b.path(D,k),M=p($),A=b.path(M,{...k}),v=r.insert("g",":first-child");return v.insert(()=>A,":first-child").attr("stroke-opacity",0),v.insert(()=>S,":first-child"),v.attr("class","text"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${f}, 0)`),s.attr("transform",`translate(${-d/2+f-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),w(e,v),e.intersect=function(t){return G(e,$,t)},r}function V(t,e,a,l=100,i=0,r=180){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:r,y:o})}return n}async function U(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:r,bbox:n,label:s}=await y(t,e,u(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*h:h),c=n.height+("neo"===e.look?2*o:o),f=Math.max(5,.1*c),{cssStyles:m}=e,x=[...V(d/2,-c/2,f,20,-90,0),{x:d/2+f,y:-f},...V(d/2+2*f,-f,f,20,-180,-270),...V(d/2+2*f,f,f,20,-90,-180),{x:d/2+f,y:c/2},...V(d/2,c/2,f,20,0,90)],$=[{x:-d/2,y:-c/2-f},{x:d/2,y:-c/2-f},...V(d/2,-c/2,f,20,-90,0),{x:d/2+f,y:-f},...V(d/2+2*f,-f,f,20,-180,-270),...V(d/2+2*f,f,f,20,-90,-180),{x:d/2+f,y:c/2},...V(d/2,c/2,f,20,0,90),{x:d/2,y:c/2+f},{x:-d/2,y:c/2+f}],b=g.A.svg(r),k=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=p(x).replace("Z",""),S=b.path(D,k),M=p($),A=b.path(M,{...k}),v=r.insert("g",":first-child");return v.insert(()=>A,":first-child").attr("stroke-opacity",0),v.insert(()=>S,":first-child"),v.attr("class","text"),m&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-f}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),w(e,v),e.intersect=function(t){return G(e,$,t)},r}function J(t,e,a,l=100,i=0,r=180){let n=[],s=i*Math.PI/180,h=(r*Math.PI/180-s)/(l-1);for(let i=0;i<l;i++){let l=s+i*h,r=t+a*Math.cos(l),o=e+a*Math.sin(l);n.push({x:-r,y:-o})}return n}async function Q(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:r,bbox:n,label:s}=await y(t,e,u(e)),h="neo"===e.look?18:e.padding??0,o="neo"===e.look?12:e.padding??0,d=n.width+("neo"===e.look?2*h:h),c=n.height+("neo"===e.look?2*o:o),f=Math.max(5,.1*c),{cssStyles:m}=e,x=[...J(d/2,-c/2,f,30,-90,0),{x:-d/2-f,y:f},...J(d/2+2*f,-f,f,20,-180,-270),...J(d/2+2*f,f,f,20,-90,-180),{x:-d/2-f,y:-c/2},...J(d/2,c/2,f,20,0,90)],$=[...J(-d/2+f+f/2,-c/2,f,20,-90,-180),{x:d/2-f/2,y:f},...J(-d/2-f/2,-f,f,20,0,90),...J(-d/2-f/2,f,f,20,-90,0),{x:d/2-f/2,y:-f},...J(-d/2+f+f/2,c/2,f,30,-180,-270)],b=[{x:d/2,y:-c/2-f},{x:-d/2,y:-c/2-f},...J(d/2,-c/2,f,20,-90,0),{x:-d/2-f,y:-f},...J(d/2+2*f,-f,f,20,-180,-270),...J(d/2+2*f,f,f,20,-90,-180),{x:-d/2-f,y:c/2},...J(d/2,c/2,f,20,0,90),{x:-d/2,y:c/2+f},{x:d/2-f-f/2,y:c/2+f},...J(-d/2+f+f/2,-c/2,f,20,-90,-180),{x:d/2-f/2,y:f},...J(-d/2-f/2,-f,f,20,0,90),...J(-d/2-f/2,f,f,20,-90,0),{x:d/2-f/2,y:-f},...J(-d/2+f+f/2,c/2,f,30,-180,-270)],k=g.A.svg(r),D=(0,l.Fr)(e,{fill:"none"});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=p(x).replace("Z",""),M=k.path(S,D),A=p($).replace("Z",""),v=k.path(A,D),K=p(b),B=k.path(K,{...D}),C=r.insert("g",":first-child");return C.insert(()=>B,":first-child").attr("stroke-opacity",0),C.insert(()=>M,":first-child"),C.insert(()=>v,":first-child"),C.attr("class","text"),m&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",m),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${f-f/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-c/2+(e.padding??0)/2-(n.y-(n.top??0))})`),w(e,C),e.intersect=function(t){return G(e,b,t)},r}async function tt(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=Math.max(20,(o.width+2*n)*1.25,e?.width??0),c=Math.max(5,o.height+2*s,e?.height??0),f=c/2,{cssStyles:m}=e,$=g.A.svg(h),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=d-f,D=c/4,S=[{x:k,y:0},{x:D,y:0},{x:0,y:c/2},{x:D,y:c},{x:k,y:c},...x(-k,-c/2,f,50,270,90)],M=p(S),A=$.path(M,b),v=h.insert(()=>A,":first-child");return v.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",m),i&&"handDrawn"!==e.look&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(${-d/2}, ${-c/2})`),w(e,v),e.intersect=function(t){return G(e,S,t)},h}(0,d.K)(I,"anchor"),(0,d.K)(E,"generateArcPoints"),(0,d.K)(T,"calculateArcSagitta"),(0,d.K)(W,"bowTieRect"),(0,d.K)(H,"insertPolygonShape"),(0,d.K)(j,"card"),(0,d.K)(q,"choice"),(0,d.K)(_,"circle"),(0,d.K)(z,"createLine"),(0,d.K)(O,"crossedCircle"),(0,d.K)(Z,"generateCirclePoints"),(0,d.K)(Y,"curlyBraceLeft"),(0,d.K)(V,"generateCirclePoints"),(0,d.K)(U,"curlyBraceRight"),(0,d.K)(J,"generateCirclePoints"),(0,d.K)(Q,"curlyBraces"),(0,d.K)(tt,"curvedTrapezoid");var te=(0,d.K)((t,e,a,l,i,r)=>`M${t},${e+r} a${i},${r} 0,0,0 ${a},0 a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),ta=(0,d.K)((t,e,a,l,i,r)=>`M${t},${e+r} M${t+a},${e+r} a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),tl=(0,d.K)((t,e,a,l,i,r)=>`M${t-a/2},${-l/2} a${i},${r} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function ti(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,h="neo"===e.look?24:n,o="neo"===e.look?24:n;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-o,e.width<8&&(e.width=8),e.height=(e.height??0)-h-t/2/(2.5+t/50)*3,e.height<8&&(e.height=8)}let{shapeSvg:d,bbox:c,label:f}=await y(t,e,u(e)),p=(e.width?e.width:c.width)+o,m=p/2,x=m/(2.5+p/50),$=(e.height?e.height:c.height)+h+x,{cssStyles:k}=e;if("handDrawn"===e.look){let t=g.A.svg(d),i=ta(0,0,p,$,m,x),r=tl(0,x,p,$,m,x),n=(0,l.Fr)(e,{}),s=t.path(i,n),h=t.path(r,(0,l.Fr)(e,{fill:"none"}));a=d.insert(()=>h,":first-child"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=te(0,0,p,$,m,x);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(k)).attr("style",r)}return a.attr("label-offset-y",x),a.attr("transform",`translate(${-p/2}, ${-($/2+x)})`),w(e,a),f.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(e.padding??0)/1.5-(c.y-(c.top??0))})`),e.intersect=function(t){let a=b(e,t),l=a.x-(e.x??0);if(0!=m&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-x)){let i=x*x*(1-l*l/(m*m));i>0&&(i=Math.sqrt(i)),i=x-i,t.y-(e.y??0)>0&&(i=-i),a.y+=i}return a},d}async function tr(t,e,a){let i,{labelStyles:r,nodeStyles:n}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=Math.max(o.width+2*a.labelPaddingX,e?.width||0),c=Math.max(o.height+2*a.labelPaddingY,e?.height||0),f=-d/2,p=-c/2,{rx:m,ry:x}=e,{cssStyles:$}=e;if(a?.rx&&a.ry&&(m=a.rx,x=a.ry),"handDrawn"===e.look){let t=g.A.svg(h),a=(0,l.Fr)(e,{}),r=m||x?t.path(D(f,p,d,c,m||0),a):t.rectangle(f,p,d,c,a);(i=h.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",(0,s.KL)($))}else(i=h.insert("rect",":first-child")).attr("class","basic label-container").attr("style",n).attr("rx",(0,s.KL)(m)).attr("ry",(0,s.KL)(x)).attr("x",f).attr("y",p).attr("width",d).attr("height",c);return w(e,i),e.calcIntersect=function(t,e){return b(t,e)},e.intersect=function(t){return b(e,t)},h}async function tn(t,e){let{cssClasses:a,labelPaddingX:i,labelPaddingY:r,padding:n,width:s,height:h}=e,o=await tr(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:i??(n??0)*2,labelPaddingY:r??n??0});if("handDrawn"===e.look){let t=g.A.svg(o),a=(0,l.Fr)(e,{}),i=o.select(".basic.label-container > path:nth-child(2)"),r=i.node();if(!r)return o;let n=null;return r instanceof SVGGraphicsElement&&(n=r.getBBox(),o.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),o.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),i.remove()),o}let d=o.select(".basic.label-container"),c=(Number(d.attr("width"))||s)??0,y=(Number(d.attr("height"))||h)??0;return c>0&&y>0&&d.attr("stroke-dasharray",`${c} ${y}`),o}async function ts(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:h,label:o}=await y(t,e,u(e)),d=h.width+r,c=h.height+n,f=.2*c,p=-d/2,m=-c/2-f/2,{cssStyles:x}=e,$=g.A.svg(s),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=$.polygon([{x:p,y:m+f},{x:-p,y:m+f},{x:-p,y:-m},{x:p,y:-m},{x:p,y:m},{x:-p,y:m},{x:-p,y:m+f}].map(t=>[t.x,t.y]),k),S=s.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),x&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",x),i&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",i),o.attr("transform",`translate(${p+(e.padding??0)/2-(h.x-(h.left??0))}, ${m+f+(e.padding??0)/2-(h.y-(h.top??0))})`),w(e,S),e.intersect=function(t){return b(e,t)},s}async function th(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e),n="neo"===e.look?12:5;e.labelStyle=i;let h=e.padding??0,d="neo"===e.look?16:h,{shapeSvg:c,bbox:f}=await y(t,e,u(e)),p=(e?.width?e?.width/2:f.width/2)+(d??0),m=p-n,{cssStyles:x}=e;if("handDrawn"===e.look){let t=g.A.svg(c),i=(0,l.Fr)(e,{roughness:.2,strokeWidth:2.5}),r=(0,l.Fr)(e,{roughness:.2,strokeWidth:1.5}),n=t.circle(0,0,2*p,i),h=t.circle(0,0,2*m,r);(a=c.insert("g",":first-child")).attr("class",(0,s.KL)(e.cssClasses)).attr("style",(0,s.KL)(x)),a.node()?.appendChild(n),a.node()?.appendChild(h)}else{let t=(a=c.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",r),t.attr("class","outer-circle").attr("style",r).attr("r",p).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",r).attr("r",m).attr("cx",0).attr("cy",0)}return w(e,a),e.intersect=function(t){return o.R.info("DoubleCircle intersect",e,p,t),F(e,p,t)},c}function to(t,e,{config:{themeVariables:a}}){let{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=i;let n=t.insert("g").attr("class",u(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,h=g.A.svg(n),{nodeBorder:d}=a,c=(0,l.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(c.roughness=0);let y=h.circle(0,0,14,c),f=n.insert(()=>y,":first-child");return f.selectAll("path").attr("style",`fill: ${d} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),r&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",r),w(e,f),e.intersect=function(t){return o.R.info("filledCircle intersect",e,{radius:7,point:t}),F(e,7,t)},n}async function td(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?2*r:r;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:h,label:d}=await y(t,e,u(e)),c=(e?.width?e?.width:h.width)+(n??0),f=e?.height?e?.height:c+h.height,m=[{x:0,y:-f},{x:f,y:-f},{x:f/2,y:0}],{cssStyles:x}=e,$=g.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=p(m),D=$.path(k,b),S=s.insert(()=>D,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");return x&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",x),i&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",i),e.width=c,e.height=f,w(e,S),d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-f/2+(e.padding??0)/2+(h.y-(h.top??0))})`),e.intersect=function(t){return o.R.info("Triangle intersect",e,m,t),G(e,m,t)},s}function tc(t,e,{dir:a,config:{state:i,themeVariables:r}}){let{nodeStyles:n}=(0,l.GX)(e);e.label="";let s=t.insert("g").attr("class",u(e)).attr("id",e.domId??e.id),{cssStyles:h}=e,o=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===a&&(o=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let c=-1*o/2,y=-1*d/2,f=g.A.svg(s),p=(0,l.Fr)(e,{stroke:r.lineColor,fill:r.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let m=f.rectangle(c,y,o,d,p),x=s.insert(()=>m,":first-child");h&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",h),n&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",n),w(e,x);let $=i?.padding??0;return e.width&&e.height&&(e.width+=$/2||0,e.height+=$/2||0),e.intersect=function(t){return b(e,t)},s}async function tg(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*r,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:h}=await y(t,e,u(e)),d=(e?.width?e?.width:Math.max(15,h.width))+2*r,c=(e?.height?e?.height:Math.max(10,h.height))+2*n,f=c/2,{cssStyles:m}=e,$=g.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-d/2,y:-c/2},{x:d/2-f,y:-c/2},...x(-d/2+f,0,f,50,90,270),{x:d/2-f,y:c/2},{x:-d/2,y:c/2}],D=p(k),S=$.path(D,b),M=s.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",m),i&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",i),w(e,M),e.intersect=function(t){return o.R.info("Pill intersect",e,{radius:f,point:t}),G(e,k,t)},s}(0,d.K)(ti,"cylinder"),(0,d.K)(tr,"drawRect"),(0,d.K)(tn,"datastore"),(0,d.K)(ts,"dividedRectangle"),(0,d.K)(th,"doublecircle"),(0,d.K)(to,"filledCircle"),(0,d.K)(td,"flippedTriangle"),(0,d.K)(tc,"forkJoin"),(0,d.K)(tg,"halfRoundedRectangle");var ty=(0,d.K)((t,e,a,l,i)=>`M${t+i},${e} L${t+a-i},${e} L${t+a},${e-l/2} L${t+a-i},${e-l} L${t+i},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tf(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=i;let s=e.padding??0,h="neo"===e.look?70:s,o="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-o,e.height=(e.height??0)-h}let{shapeSvg:d,bbox:c}=await y(t,e,u(e)),f=(e?.height?e?.height:c.height)+h,p=f/n,m=(e?.width?e?.width:c.width)+2*p+o,x=[{x:p,y:0},{x:m-p,y:0},{x:m,y:-f/2},{x:m-p,y:-f},{x:p,y:-f},{x:0,y:-f/2}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=g.A.svg(d),i=(0,l.Fr)(e,{}),r=ty(0,0,m,f,p),n=t.path(r,i);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-m/2}, ${f/2})`),$&&a.attr("style",$)}else a=H(d,m,f,x);return r&&a.attr("style",r),e.width=m,e.height=f,w(e,a),e.intersect=function(t){return G(e,x,t)},d}async function tw(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:r}=await y(t,e,u(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:h}=e,d=g.A.svg(r),c=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");let f=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],m=p(f),x=d.path(m,c),$=r.insert(()=>x,":first-child");return $.attr("class","basic label-container outer-path"),h&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",i),$.attr("transform",`translate(${-n/2}, ${-s/2})`),w(e,$),e.intersect=function(t){return o.R.info("Pill intersect",e,{points:f}),G(e,f,t)},r}async function tu(t,e,{config:{themeVariables:a,flowchart:i}}){let{labelStyles:r}=(0,l.GX)(e);e.labelStyle=r;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,i?.wrappingWidth??0);let{shapeSvg:h,bbox:d,label:c}=await y(t,e,"icon-shape default"),f="t"===e.pos,{nodeBorder:u}=a,{stylesMap:p}=(0,l.WW)(e),m=-s/2,x=-s/2,$=8*!!e.label,k=g.A.svg(h),D=(0,l.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=k.rectangle(m,x,s,s,D),M=Math.max(s,d.width),A=s+d.height+$,v=k.rectangle(-M/2,-A/2,M,A,{...D,fill:"transparent",stroke:"none"}),K=h.insert(()=>S,":first-child"),B=h.insert(()=>v);if(e.icon){let t=h.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,i=a.height,r=a.x,o=a.y;t.attr("transform",`translate(${-l/2-r},${f?d.height/2+$/2-i/2-o:-d.height/2-$/2-i/2-o})`),t.attr("style",`color: ${p.get("stroke")??u};`)}return c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${f?-A/2:A/2-d.height})`),K.attr("transform",`translate(0,${f?d.height/2+$/2:-d.height/2-$/2})`),w(e,B),e.intersect=function(t){if(o.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return G(e,r=f?[{x:a-d.width/2,y:l-i/2},{x:a+d.width/2,y:l-i/2},{x:a+d.width/2,y:l-i/2+d.height+$},{x:a+s/2,y:l-i/2+d.height+$},{x:a+s/2,y:l+i/2},{x:a-s/2,y:l+i/2},{x:a-s/2,y:l-i/2+d.height+$},{x:a-d.width/2,y:l-i/2+d.height+$}]:[{x:a-s/2,y:l-i/2},{x:a+s/2,y:l-i/2},{x:a+s/2,y:l-i/2+s},{x:a+d.width/2,y:l-i/2+s},{x:a+d.width/2/2,y:l+i/2},{x:a-d.width/2,y:l+i/2},{x:a-d.width/2,y:l-i/2+s},{x:a-s/2,y:l-i/2+s}],t)},h}async function tp(t,e,{config:{themeVariables:a,flowchart:i}}){let{labelStyles:r}=(0,l.GX)(e);e.labelStyle=r;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,i?.wrappingWidth??0);let{shapeSvg:h,bbox:d,label:c}=await y(t,e,"icon-shape default"),f=8*!!e.label,u="t"===e.pos,{nodeBorder:p,mainBkg:m}=a,{stylesMap:x}=(0,l.WW)(e),$=g.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid"),k.stroke=x.get("fill")??m;let D=h.append("g");e.icon&&D.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let S=D.node().getBBox(),M=S.width,A=S.height,v=S.x,K=S.y,B=Math.max(M,A)*Math.SQRT2+40,C=$.circle(0,0,B,k),N=Math.max(B,d.width),R=B+d.height+f,L=$.rectangle(-N/2,-R/2,N,R,{...k,fill:"transparent",stroke:"none"}),F=h.insert(()=>C,":first-child"),P=h.insert(()=>L);return D.attr("transform",`translate(${-M/2-v},${u?d.height/2+f/2-A/2-K:-d.height/2-f/2-A/2-K})`),D.attr("style",`color: ${x.get("stroke")??p};`),c.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-R/2:R/2-d.height})`),F.attr("transform",`translate(0,${u?d.height/2+f/2:-d.height/2-f/2})`),w(e,P),e.intersect=function(t){return o.R.info("iconSquare intersect",e,t),b(e,t)},h}async function tm(t,e,{config:{themeVariables:a,flowchart:i}}){let{labelStyles:r}=(0,l.GX)(e);e.labelStyle=r;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,i?.wrappingWidth??0);let{shapeSvg:h,bbox:d,halfPadding:c,label:f}=await y(t,e,"icon-shape default"),u="t"===e.pos,p=s+2*c,m=s+2*c,{nodeBorder:x,mainBkg:$}=a,{stylesMap:k}=(0,l.WW)(e),S=8*!!e.label,M=g.A.svg(h),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=k.get("fill")??$;let v=M.path(D(-m/2,-p/2,m,p,5),A),K=Math.max(m,d.width),B=p+d.height+S,C=M.rectangle(-K/2,-B/2,K,B,{...A,fill:"transparent",stroke:"none"}),N=h.insert(()=>v,":first-child").attr("class","icon-shape2"),R=h.insert(()=>C);if(e.icon){let t=h.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,i=a.height,r=a.x,o=a.y;t.attr("transform",`translate(${-l/2-r},${u?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),t.attr("style",`color: ${k.get("stroke")??x};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-B/2:B/2-d.height})`),N.attr("transform",`translate(0,${u?d.height/2+S/2:-d.height/2-S/2})`),w(e,R),e.intersect=function(t){if(o.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return G(e,r=u?[{x:a-d.width/2,y:l-i/2},{x:a+d.width/2,y:l-i/2},{x:a+d.width/2,y:l-i/2+d.height+S},{x:a+m/2,y:l-i/2+d.height+S},{x:a+m/2,y:l+i/2},{x:a-m/2,y:l+i/2},{x:a-m/2,y:l-i/2+d.height+S},{x:a-d.width/2,y:l-i/2+d.height+S}]:[{x:a-m/2,y:l-i/2},{x:a+m/2,y:l-i/2},{x:a+m/2,y:l-i/2+p},{x:a+d.width/2,y:l-i/2+p},{x:a+d.width/2/2,y:l+i/2},{x:a-d.width/2,y:l+i/2},{x:a-d.width/2,y:l-i/2+p},{x:a-m/2,y:l-i/2+p}],t)},h}async function tx(t,e,{config:{themeVariables:a,flowchart:i}}){let{labelStyles:r}=(0,l.GX)(e);e.labelStyle=r;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,i?.wrappingWidth??0);let{shapeSvg:h,bbox:d,halfPadding:c,label:f}=await y(t,e,"icon-shape default"),u="t"===e.pos,p=s+2*c,m=s+2*c,{nodeBorder:x,mainBkg:$}=a,{stylesMap:k}=(0,l.WW)(e),S=8*!!e.label,M=g.A.svg(h),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid"),A.stroke=k.get("fill")??$;let v=M.path(D(-m/2,-p/2,m,p,.1),A),K=Math.max(m,d.width),B=p+d.height+S,C=M.rectangle(-K/2,-B/2,K,B,{...A,fill:"transparent",stroke:"none"}),N=h.insert(()=>v,":first-child"),R=h.insert(()=>C);if(e.icon){let t=h.append("g");t.html(`<g>${await (0,n.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);let a=t.node().getBBox(),l=a.width,i=a.height,r=a.x,o=a.y;t.attr("transform",`translate(${-l/2-r},${u?d.height/2+S/2-i/2-o:-d.height/2-S/2-i/2-o})`),t.attr("style",`color: ${k.get("stroke")??x};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${u?-B/2:B/2-d.height})`),N.attr("transform",`translate(0,${u?d.height/2+S/2:-d.height/2-S/2})`),w(e,R),e.intersect=function(t){if(o.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return G(e,r=u?[{x:a-d.width/2,y:l-i/2},{x:a+d.width/2,y:l-i/2},{x:a+d.width/2,y:l-i/2+d.height+S},{x:a+m/2,y:l-i/2+d.height+S},{x:a+m/2,y:l+i/2},{x:a-m/2,y:l+i/2},{x:a-m/2,y:l-i/2+d.height+S},{x:a-d.width/2,y:l-i/2+d.height+S}]:[{x:a-m/2,y:l-i/2},{x:a+m/2,y:l-i/2},{x:a+m/2,y:l-i/2+p},{x:a+d.width/2,y:l-i/2+p},{x:a+d.width/2/2,y:l+i/2},{x:a-d.width/2,y:l+i/2},{x:a-d.width/2,y:l-i/2+p},{x:a-m/2,y:l-i/2+p}],t)},h}async function t$(t,e,{config:{flowchart:a}}){let i=new Image;i.src=e?.img??"",await i.decode();let r=Number(i.naturalWidth.toString().replace("px","")),n=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=r/n;let{labelStyles:s}=(0,l.GX)(e);e.labelStyle=s;let h=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let d=Math.max(e.label?h??0:0,e?.assetWidth??r),c="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:d,f="on"===e.constraint?c/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(c,h??0);let{shapeSvg:u,bbox:p,label:m}=await y(t,e,"image-shape default"),x="t"===e.pos,$=-c/2,k=8*!!e.label,D=g.A.svg(u),S=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let M=D.rectangle($,-f/2,c,f,S),A=Math.max(c,p.width),v=f+p.height+k,K=D.rectangle(-A/2,-v/2,A,v,{...S,fill:"none",stroke:"none"}),B=u.insert(()=>M,":first-child"),C=u.insert(()=>K);if(e.img){let t=u.append("image");t.attr("href",e.img),t.attr("width",c),t.attr("height",f),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-c/2},${x?v/2-f:-v/2})`)}return m.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${x?-f/2-p.height/2-k/2:f/2-p.height/2+k/2})`),B.attr("transform",`translate(0,${x?p.height/2+k/2:-p.height/2-k/2})`),w(e,C),e.intersect=function(t){if(o.R.info("iconSquare intersect",e,t),!e.label)return b(e,t);let a=e.x??0,l=e.y??0,i=e.height??0,r=[];return G(e,r=x?[{x:a-p.width/2,y:l-i/2},{x:a+p.width/2,y:l-i/2},{x:a+p.width/2,y:l-i/2+p.height+k},{x:a+c/2,y:l-i/2+p.height+k},{x:a+c/2,y:l+i/2},{x:a-c/2,y:l+i/2},{x:a-c/2,y:l-i/2+p.height+k},{x:a-p.width/2,y:l-i/2+p.height+k}]:[{x:a-c/2,y:l-i/2},{x:a+c/2,y:l-i/2},{x:a+c/2,y:l-i/2+f},{x:a+p.width/2,y:l-i/2+f},{x:a+p.width/2/2,y:l+i/2},{x:a-p.width/2,y:l+i/2},{x:a-p.width/2,y:l-i/2+f},{x:a-c/2,y:l-i/2+f}],t)},u}async function tb(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=Math.max(o.width+(s??0)*2,e?.width??0),c=Math.max(o.height+(n??0)*2,e?.height??0),f=[{x:0,y:0},{x:d,y:0},{x:d+3*c/6,y:-c},{x:-3*c/6,y:-c}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=g.A.svg(h),i=(0,l.Fr)(e,{}),r=p(f),n=t.path(r,i);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-d/2}, ${c/2})`),m&&a.attr("style",m)}else a=H(h,d,c,f);return r&&a.attr("style",r),e.width=d,e.height=c,w(e,a),e.intersect=function(t){return G(e,f,t)},h}async function tk(t,e){let{shapeSvg:a,bbox:l,label:i}=await y(t,e,"label"),r=a.insert("rect",":first-child");return r.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),w(e,r),e.intersect=function(t){return b(e,t)},a}async function tD(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=(e?.height??o.height)+n,c=(e?.width??o.width)+s,f=[{x:0,y:0},{x:c+3*d/6,y:0},{x:c,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=g.A.svg(h),i=(0,l.Fr)(e,{}),r=p(f),n=t.path(r,i);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),m&&a.attr("style",m)}else a=H(h,c,d,f);return r&&a.attr("style",r),e.width=c,e.height=d,w(e,a),e.intersect=function(t){return G(e,f,t)},h}async function tS(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=(e?.height??o.height)+n,c=(e?.width??o.width)+s,f=[{x:-3*d/6,y:0},{x:c,y:0},{x:c+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:m}=e;if("handDrawn"===e.look){let t=g.A.svg(h),i=(0,l.Fr)(e,{}),r=p(f),n=t.path(r,i);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-c/2}, ${d/2})`),m&&a.attr("style",m)}else a=H(h,c,d,f);return r&&a.attr("style",r),e.width=c,e.height=d,w(e,a),e.intersect=function(t){return G(e,f,t)},h}function tM(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.label="",e.labelStyle=a;let r=t.insert("g").attr("class",u(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),h=Math.max(35,e?.height??0),d=[{x:s,y:0},{x:0,y:h+3.5},{x:s-14,y:h+3.5},{x:0,y:2*h},{x:s,y:h-3.5},{x:14,y:h-3.5}],c=g.A.svg(r),y=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let f=p(d),m=c.path(f,y),x=r.insert(()=>m,":first-child");return x.attr("class","outer-path"),n&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",n),i&&"handDrawn"!==e.look&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${s/2},${-h})`),w(e,x),e.intersect=function(t){return o.R.info("lightningBolt intersect",e,t),G(e,d,t)},r}(0,d.K)(tf,"hexagon"),(0,d.K)(tw,"hourglass"),(0,d.K)(tu,"icon"),(0,d.K)(tp,"iconCircle"),(0,d.K)(tm,"iconRounded"),(0,d.K)(tx,"iconSquare"),(0,d.K)(t$,"imageSquare"),(0,d.K)(tb,"inv_trapezoid"),(0,d.K)(tk,"labelRect"),(0,d.K)(tD,"lean_left"),(0,d.K)(tS,"lean_right"),(0,d.K)(tM,"lightningBolt");var tA=(0,d.K)((t,e,a,l,i,r,n)=>`M${t},${e+r} a${i},${r} 0,0,0 ${a},0 a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l} M${t},${e+r+n} a${i},${r} 0,0,0 ${a},0`,"createCylinderPathD"),tv=(0,d.K)((t,e,a,l,i,r,n)=>`M${t},${e+r} M${t+a},${e+r} a${i},${r} 0,0,0 ${-a},0 l0,${l} a${i},${r} 0,0,0 ${a},0 l0,${-l} M${t},${e+r+n} a${i},${r} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tK=(0,d.K)((t,e,a,l,i,r)=>`M${t-a/2},${-l/2} a${i},${r} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tB(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let n=e.padding??0,h="neo"===e.look?16:n,o="neo"===e.look?24:n;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-h,e.width<10&&(e.width=10),e.height=(e.height??0)-o-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:c,label:f}=await y(t,e,u(e)),p=(e?.width?e?.width:c.width)+2*h,m=p/2,x=m/(2.5+p/50),$=(e?.height?e?.height:c.height)+x+2*o,k=.1*$,{cssStyles:D}=e;if("handDrawn"===e.look){let t=g.A.svg(d),i=tv(0,0,p,$,m,x,k),r=tK(0,x,p,$,m,x),n=(0,l.Fr)(e,{}),s=t.path(i,n),h=t.path(r,n);d.insert(()=>h,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),D&&a.attr("style",D)}else{let t=tA(0,0,p,$,m,x,k);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,s.KL)(D)).attr("style",r)}return a.attr("label-offset-y",x),a.attr("transform",`translate(${-p/2}, ${-($/2+x)})`),w(e,a),f.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+x-(c.y-(c.top??0))})`),e.intersect=function(t){let a=b(e,t),l=a.x-(e.x??0);if(0!=m&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-x)){let i=x*x*(1-l*l/(m*m));i>0&&(i=Math.sqrt(i)),i=x-i,t.y-(e.y??0)>0&&(i=-i),a.y+=i}return a},d}async function tC(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:h,bbox:o,label:d}=await y(t,e,u(e)),c=(e?.width?e?.width:o.width)+(n??0)*2,f=(e?.height?e?.height:o.height)+(s??0)*2,p="neo"===e.look?f/4:f/8,x=f+p,{cssStyles:$}=e,b=g.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=[{x:-c/2-c/2*.1,y:-x/2},{x:-c/2-c/2*.1,y:x/2},...m(-c/2-c/2*.1,x/2,c/2+c/2*.1,x/2,p,.8),{x:c/2+c/2*.1,y:-x/2},{x:-c/2-c/2*.1,y:-x/2},{x:-c/2,y:-x/2},{x:-c/2,y:x/2*1.1},{x:-c/2,y:-x/2}],S=b.polygon(D.map(t=>[t.x,t.y]),k),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-c/2+(e.padding??0)+c/2*.1/2-(o.x-(o.left??0))},${-f/2+(e.padding??0)-p/2-(o.y-(o.top??0))})`),w(e,M),e.intersect=function(t){return G(e,D,t)},h}async function tN(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r,h="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*h,10),e.height=Math.max((e?.height??0)-2*s-2*h,10));let{shapeSvg:o,bbox:d,label:c}=await y(t,e,u(e)),f=(e?.width?e?.width:d.width)+2*n+2*h,m=(e?.height?e?.height:d.height)+2*s+2*h,x=f-2*h,b=m-2*h,k=-x/2,D=-b/2,{cssStyles:S}=e,M=g.A.svg(o),A=(0,l.Fr)(e,{}),v=[{x:k-h,y:D+h},{x:k-h,y:D+b+h},{x:k+x-h,y:D+b+h},{x:k+x-h,y:D+b},{x:k+x,y:D+b},{x:k+x,y:D+b-h},{x:k+x+h,y:D+b-h},{x:k+x+h,y:D-h},{x:k+h,y:D-h},{x:k+h,y:D},{x:k,y:D},{x:k,y:D+h}];"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=p(v),B=M.path(K,A),C=p([{x:k,y:D+h},{x:k+x-h,y:D+h},{x:k+x-h,y:D+b},{x:k+x,y:D+b},{x:k+x,y:D},{x:k,y:D}]),N=M.path(C,A);"handDrawn"!==e.look&&(B=$(B),N=$(N));let R=o.insert("g",":first-child");return R.insert(()=>B),R.insert(()=>N),R.attr("class","basic label-container outer-path"),S&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",S),i&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(d.width/2)-h-(d.x-(d.left??0))}, ${-(d.height/2)+h-(d.y-(d.top??0))})`),w(e,R),e.intersect=function(t){return G(e,v,t)},o}async function tR(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:r,bbox:n,label:s}=await y(t,e,u(e)),h=e.padding??0,o="neo"===e.look?16:h,d="neo"===e.look?12:h,c=!0;(e.width||e.height)&&(c=!1,e.width=(e?.width??0)-2*o,e.height=(e?.height??0)-3*d);let f=Math.max(n.width,e?.width??0)+2*o,x=Math.max(n.height,e?.height??0)+3*d,$="neo"===e.look?x/4:x/8,b=x+(c?$/2:-$/2),k=-f/2,D=-b/2,{cssStyles:S}=e,M=m(k-10,D+b+10,k+f-10,D+b+10,$,.8),A=M?.[M.length-1],v=[{x:k-10,y:D+10},{x:k-10,y:D+b+10},...M,{x:k+f-10,y:A.y-10},{x:k+f,y:A.y-10},{x:k+f,y:A.y-20},{x:k+f+10,y:A.y-20},{x:k+f+10,y:D-10},{x:k+10,y:D-10},{x:k+10,y:D},{x:k,y:D},{x:k,y:D+10}],K=[{x:k,y:D+10},{x:k+f-10,y:D+10},{x:k+f-10,y:A.y-10},{x:k+f,y:A.y-10},{x:k+f,y:D},{x:k,y:D}],B=g.A.svg(r),C=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(C.roughness=0,C.fillStyle="solid");let N=p(v),R=B.path(N,C),L=p(K),F=B.path(L,C),P=r.insert(()=>R,":first-child");return P.insert(()=>F),P.attr("class","basic label-container outer-path"),S&&"handDrawn"!==e.look&&P.selectAll("path").attr("style",S),i&&"handDrawn"!==e.look&&P.selectAll("path").attr("style",i),P.attr("transform",`translate(0,${-$/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-$/2-(n.y-(n.top??0))})`),w(e,P),e.intersect=function(t){return G(e,v,t)},r}async function tL(t,e,{config:{themeVariables:a}}){let{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i,e.useHtmlLabels||(0,h.E)((0,h.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:s,label:o}=await y(t,e,u(e)),d=Math.max(s.width+(e.padding??0)*2,e?.width??0),c=Math.max(s.height+(e.padding??0)*2,e?.height??0),{cssStyles:f}=e,p=g.A.svg(n),m=(0,l.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let x=p.rectangle(-d/2,-c/2,d,c,m),$=n.insert(()=>x,":first-child");return $.attr("class","basic label-container outer-path"),o.attr("class","label noteLabel"),f&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",f),r&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",r),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),w(e,$),e.intersect=function(t){return b(e,t)},n}(0,d.K)(tB,"linedCylinder"),(0,d.K)(tC,"linedWaveEdgedRect"),(0,d.K)(tN,"multiRect"),(0,d.K)(tR,"multiWaveEdgedRectangle"),(0,d.K)(tL,"note");var tF=(0,d.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tP(t,e){let a,{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:n,bbox:s}=await y(t,e,u(e)),h=s.width+(e.padding??0)+(s.height+(e.padding??0)),o=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:d}=e;if("handDrawn"===e.look){let t=g.A.svg(n),i=(0,l.Fr)(e,{}),r=tF(0,0,h),s=t.path(r,i);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-h/2+.5}, ${h/2})`),d&&a.attr("style",d)}else(a=H(n,h,h,o)).attr("transform",`translate(${-h/2+.5}, ${h/2})`);return r&&a.attr("style",r),w(e,a),e.calcIntersect=function(t,e){let a=t.width,l=G(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function tX(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?21:r??0,s="neo"===e.look?12:r??0,{shapeSvg:h,bbox:o,label:d}=await y(t,e,u(e)),c=(e?.width??o.width)+("neo"===e.look?2*n:n),f=(e?.height??o.height)+("neo"===e.look?2*s:s),m=-c/2,x=-f/2,$=x/2,b=[{x:m+$,y:x},{x:m,y:0},{x:m+$,y:-x},{x:-m,y:-x},{x:-m,y:x}],{cssStyles:k}=e,D=g.A.svg(h),S=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");let M=p(b),A=D.path(M,S),v=h.insert(()=>A,":first-child");return v.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",k),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-$/2},0)`),d.attr("transform",`translate(${-$/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),w(e,v),e.intersect=function(t){return G(e,b,t)},h}async function tG(t,e){let a,i,r,{labelStyles:n,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let d=t.insert("g").attr("class",a).attr("id",e.domId||e.id),y=d.insert("g"),f=d.insert("g").attr("class","label").attr("style",s),u=e.description,p=e.label,m=await k(f,p,e.labelStyle,!0,!0),x={width:0,height:0};if((0,h.E)((0,h.D7)())){let t=m.children[0],e=(0,c.Ltv)(m);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}o.R.info("Text 2",u);let $=u||[],S=m.getBBox(),M=await k(f,Array.isArray($)?$.join("<br/>"):$,e.labelStyle,!0,!0),A=M.children[0],v=(0,c.Ltv)(M);x=A.getBoundingClientRect(),v.attr("width",x.width),v.attr("height",x.height);let K=(e.padding||0)/2;(0,c.Ltv)(M).attr("transform","translate( "+(x.width>S.width?0:(S.width-x.width)/2)+", "+(S.height+K+5)+")"),(0,c.Ltv)(m).attr("transform","translate( "+(x.width<S.width?0:-(S.width-x.width)/2)+", 0)"),x=f.node().getBBox(),f.attr("transform","translate("+-x.width/2+", "+(-x.height/2-K+3)+")");let B=x.width+(e.padding||0),C=x.height+(e.padding||0),N=-x.width/2-K,R=-x.height/2-K;if("handDrawn"===e.look){let t=g.A.svg(d),a=(0,l.Fr)(e,{}),n=t.path(D(N,R,B,C,e.rx||0),a),s=t.line(-x.width/2-K,-x.height/2-K+S.height+K,x.width/2+K,-x.height/2-K+S.height+K,a);r=d.insert(()=>(o.R.debug("Rough node insert CXC",n),s),":first-child"),i=d.insert(()=>(o.R.debug("Rough node insert CXC",n),n),":first-child")}else i=y.insert("rect",":first-child"),r=y.insert("line"),i.attr("class","outer title-state").attr("style",s).attr("x",-x.width/2-K).attr("y",-x.height/2-K).attr("width",x.width+(e.padding||0)).attr("height",x.height+(e.padding||0)),r.attr("class","divider").attr("x1",-x.width/2-K).attr("x2",x.width/2+K).attr("y1",-x.height/2-K+S.height+K).attr("y2",-x.height/2-K+S.height+K);return w(e,i),e.intersect=function(t){return b(e,t)},d}async function tI(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,i={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tr(t,e,i)}async function tE(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0,{shapeSvg:h,bbox:o,label:d}=await y(t,e,u(e)),c=(e?.width??o.width)+2*r+("neo"===e.look?8:16),f=(e?.height??o.height)+2*n,p=c-8,m=8-c/2,x=-f/2,{cssStyles:$}=e,k=g.A.svg(h),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=k.polygon([{x:m,y:x},{x:m+p,y:x},{x:m+p,y:x+f},{x:m-8,y:x+f},{x:m-8,y:x},{x:m,y:x},{x:m,y:x+f}].map(t=>[t.x,t.y]),D),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path").attr("style",(0,s.KL)($)),i&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),$&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",i),d.attr("transform",`translate(${4-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),w(e,M),e.intersect=function(t){return b(e,t)},h}async function tT(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:h,bbox:o,label:d}=await y(t,e,u(e)),c=(e?.width?e?.width:o.width)+2*n,f=((e?.height?e?.height:o.height)+2*s)*1.5/1.5,m=-c/2,x=-f/2,{cssStyles:$}=e,b=g.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=[{x:m,y:x},{x:m,y:x+f},{x:m+c,y:x+f},{x:m+c,y:x-f/2}],S=p(D),M=b.path(S,k),A=h.insert(()=>M,":first-child");return A.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",$),i&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",i),A.attr("transform",`translate(0, ${f/4})`),d.attr("transform",`translate(${-c/2+(e.padding??0)-(o.x-(o.left??0))}, ${-f/4+(e.padding??0)-(o.y-(o.top??0))})`),w(e,A),e.intersect=function(t){return G(e,D,t)},h}async function tW(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,i="neo"===e.look?12:a,r={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:i};return tr(t,e,r)}async function tH(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?20:r,s="neo"===e.look?12:r,{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=o.height+("neo"===e.look?2*s:s),c=o.width+d/4+("neo"===e.look?2*n:n),f=d/2,{cssStyles:m}=e,$=g.A.svg(h),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-c/2+f,y:-d/2},{x:c/2-f,y:-d/2},...x(-c/2+f,0,f,50,90,270),{x:c/2-f,y:d/2},...x(c/2-f,0,f,50,270,450)],D=p(k),S=$.path(D,b),M=h.insert(()=>S,":first-child");return M.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",m),i&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",i),w(e,M),e.intersect=function(t){return G(e,k,t)},h}async function tj(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tr(t,e,a)}function tq(t,e,{config:{themeVariables:a}}){let{labelStyles:i,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=i;let{cssStyles:n}=e,{lineColor:s,stateBorder:h,nodeBorder:o,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let c=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),y=g.A.svg(c),f=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let u=y.circle(0,0,e.width,{...f,stroke:s,strokeWidth:2}),p=h??o,m=(e.width??0)*5/14,x=y.circle(0,0,m,{...f,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),$=c.insert(()=>u,":first-child");if($.insert(()=>x),"handDrawn"!==e.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),r&&$.selectAll("path").attr("style",r),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return w(e,$),e.intersect=function(t){return F(e,(e.width??0)/2,t)},c}function t_(t,e,{config:{themeVariables:a}}){let i,{lineColor:r,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=g.A.svg(s).circle(0,0,e.width,(0,l.ue)(r));(i=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(i=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";i.attr("style",`filter:url(#${a})`)}return w(e,i),e.intersect=function(t){return F(e,(e.width??7)/2,t)},s}async function tz(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e?.padding??8,n="neo"===e.look?28:r,h="neo"===e.look?12:r,{shapeSvg:o,bbox:d}=await y(t,e,u(e)),c=(e?.width??d.width)+16+n,f=(e?.height??d.height)+h,p=c-16,m=-c/2,x=-f/2,$=[{x:0,y:0},{x:p,y:0},{x:p,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if("handDrawn"===e.look){let t=g.A.svg(o),a=(0,l.Fr)(e,{}),i=t.rectangle(m,x,p+16,f,a),r=t.line(m+8,x,m+8,x+f,a),n=t.line(m+8+p,x,m+8+p,x+f,a);o.insert(()=>r,":first-child"),o.insert(()=>n,":first-child");let h=o.insert(()=>i,":first-child"),{cssStyles:d}=e;h.attr("class","basic label-container").attr("style",(0,s.KL)(d)),w(e,h)}else{let t=H(o,p,f,$);i&&t.attr("style",i),w(e,t)}return e.intersect=function(t){return G(e,$,t)},o}async function tO(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let r=e.padding??0,n="neo"===e.look?16:r,s="neo"===e.look?12:r;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:h,bbox:o}=await y(t,e,u(e)),d=(e?.height?e?.height:o.height)+2*s,c=.2*d,f=(e?.width?e?.width:o.width)+2*n+c-c,m=-f/2,x=-d/2,{cssStyles:$}=e,b=g.A.svg(h),k=(0,l.Fr)(e,{}),D=[{x:m-c/2,y:x},{x:m+f+c/2,y:x},{x:m+f+c/2,y:x+d},{x:m-c/2,y:x+d}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=p(D),M=b.path(S,k),A=p([{x:m+f-c/2,y:x+d},{x:m+f+c/2,y:x+d},{x:m+f+c/2,y:x+d-.2*d}]),v=b.path(A,{...k,fillStyle:"solid"}),K=h.insert(()=>v,":first-child");return K.insert(()=>M,":first-child"),K.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",i),w(e,K),e.intersect=function(t){return G(e,D,t)},h}async function tZ(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:r,bbox:n,label:s}=await y(t,e,u(e)),h=Math.max(n.width+(e.padding??0)*2,e?.width??0),o=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=o/8,c=.2*h,f=.2*o,x=o+d,{cssStyles:$}=e,b=g.A.svg(r),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=[{x:-h/2-h/2*.1,y:x/2},...m(-h/2-h/2*.1,x/2,h/2+h/2*.1,x/2,d,.8),{x:h/2+h/2*.1,y:-x/2},{x:-h/2-h/2*.1,y:-x/2}],S=-h/2+h/2*.1,M=-x/2-.4*f,A=[{x:S+h-c,y:(M+o)*1.3},{x:S+h,y:M+o-f},{x:S+h,y:(M+o)*.9},...m(S+h,(M+o)*1.25,S+h-c,(M+o)*1.3,-(.02*o),.5)],v=p(D),K=b.path(v,k),B=p(A),C=b.path(B,{...k,fillStyle:"solid"}),N=r.insert(()=>C,":first-child");return N.insert(()=>K,":first-child"),N.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",$),i&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-h/2+(e.padding??0)-(n.x-(n.left??0))},${-o/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),w(e,N),e.intersect=function(t){return G(e,D,t)},r}async function tY(t,e){let{labelStyles:a,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:r,bbox:n}=await y(t,e,u(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),h=Math.max(n.height+(e.padding??0),e?.height||0),o=r.insert("rect",":first-child");return o.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),w(e,o),e.intersect=function(t){return b(e,t)},r}(0,d.K)(tP,"question"),(0,d.K)(tX,"rect_left_inv_arrow"),(0,d.K)(tG,"rectWithTitle"),(0,d.K)(tI,"roundedRect"),(0,d.K)(tE,"shadedProcess"),(0,d.K)(tT,"slopedRect"),(0,d.K)(tW,"squareRect"),(0,d.K)(tH,"stadium"),(0,d.K)(tj,"state"),(0,d.K)(tq,"stateEnd"),(0,d.K)(t_,"stateStart"),(0,d.K)(tz,"subroutine"),(0,d.K)(tO,"taggedRect"),(0,d.K)(tZ,"taggedWaveEdgedRectangle"),(0,d.K)(tY,"text");var tV=(0,d.K)((t,e,a,l,i,r)=>`M${t},${e}
3
3
  a${i},${r} 0,0,1 0,${-l}
4
4
  l${a},0
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9974],{9974:(t,e,n)=>{n.d(e,{diagram:()=>te});var i=n(37325);n(56037);var r=n(89851),s=n(33948);function o(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function l(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function c(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function u(t){return function(){return t}}function f(t,e){return d(t.source,e.source)||t.index-e.index}function y(t,e){return d(t.target,e.target)||t.index-e.index}function d(t,e){return t.y0-e.y0}function p(t){return t.value}function g(t){return t.index}function _(t){return t.nodes}function x(t){return t.links}function k(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function m({nodes:t}){for(let e of t){let t=e.y0,n=t;for(let n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(let t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var b=Math.PI,v=2*b,S=v-1e-6;function E(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function w(){return new E}E.prototype=w.prototype={constructor:E,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t*=1,e*=1,n*=1,i*=1,r*=1;var s=this._x1,o=this._y1,l=n-t,a=i-e,h=s-t,c=o-e,u=h*h+c*c;if(r<0)throw Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>1e-6)if(Math.abs(c*l-a*h)>1e-6&&r){var f=n-s,y=i-o,d=l*l+a*a,p=Math.sqrt(d),g=Math.sqrt(u),_=r*Math.tan((b-Math.acos((d+u-(f*f+y*y))/(2*p*g)))/2),x=_/g,k=_/p;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*h)+","+(e+x*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>h*y)+","+(this._x1=t+k*l)+","+(this._y1=e+k*a)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t*=1,e*=1,n*=1,s=!!s;var o=n*Math.cos(i),l=n*Math.sin(i),a=t+o,h=e+l,c=1^s,u=s?i-r:r-i;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+a+","+h:(Math.abs(this._x1-a)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+a+","+h),n&&(u<0&&(u=u%v+v),u>S?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=a)+","+(this._y1=h):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=b)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var K=Array.prototype.slice;function L(t){return function(){return t}}function A(t){return t[0]}function M(t){return t[1]}function I(t){return t.source}function T(t){return t.target}function N(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function P(t){return[t.source.x1,t.y0]}function C(t){return[t.target.x0,t.y1]}var $=function(){var t=(0,r.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[1,9],n=[1,10],i=[1,5,10,12],s={trace:(0,r.K)(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,r.K)(function(t,e,n,i,r,s,o){var l=s.length-1;switch(r){case 7:let a=i.findOrCreateNode(s[l-4].trim().replaceAll('""','"')),h=i.findOrCreateNode(s[l-2].trim().replaceAll('""','"')),c=parseFloat(s[l].trim());i.addLink(a,h,c);break;case 8:case 9:case 11:this.$=s[l];break;case 10:this.$=s[l-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,r.K)(function(t){var e=this,n=[0],i=[],s=[null],o=[],l=this.table,a="",h=0,c=0,u=0,f=o.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;o.push(g);var _=y.options&&y.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),(0,r.K)(x,"lex");for(var k,m,b,v,S,E,w,K,L,A={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=x()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var M="";for(E in L=[],l[b])this.terminals_[E]&&E>2&&L.push("'"+this.terminals_[E]+"'");M=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:L})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:n.push(k),s.push(y.yytext),o.push(y.yylloc),n.push(v[1]),k=null,m?(k=m,m=null):(c=y.yyleng,a=y.yytext,h=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[v[1]][1],A.$=s[s.length-w],A._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},_&&(A._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(A,[a,c,h,d,v[1],s,o].concat(f))))return S;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),o=o.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),s.push(A.$),o.push(A._$),K=l[n[n.length-2]][n[n.length-1]],n.push(K);break;case 3:return!0}}return!0},"parse")};function o(){this.yy={}}return s.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(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,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in r)this[s]=r[s];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),s=0;s<r.length;s++)if((n=this._input.match(this.rules[r[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(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,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,n,i){switch(n){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,r.K)(o,"Parser"),o.prototype=s,s.Parser=o,new o}();$.parser=$;var D=[],O=[],j=new Map,z=(0,r.K)(()=>{D=[],O=[],j=new Map,(0,i.IU)()},"clear"),F=class{constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}static{(0,r.K)(this,"SankeyLink")}},U=(0,r.K)((t,e,n)=>{D.push(new F(t,e,n))},"addLink"),W=class{constructor(t){this.ID=t}static{(0,r.K)(this,"SankeyNode")}},V=(0,r.K)(t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=j.get(t);return void 0===e&&(e=new W(t),j.set(t,e),O.push(e)),e},"findOrCreateNode"),G=(0,r.K)(()=>O,"getNodes"),X=(0,r.K)(()=>D,"getLinks"),Y=(0,r.K)(()=>({nodes:O.map(t=>({id:t.ID})),links:D.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),q={nodesMap:j,getConfig:(0,r.K)(()=>(0,i.D7)().sankey,"getConfig"),getNodes:G,getLinks:X,getGraph:Y,addLink:U,findOrCreateNode:V,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:z},B=class t{static{(0,r.K)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},Q={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?o(t.sourceLinks,l)-1:0},justify:a},R=(0,r.K)(t=>{let e=0,n=0;for(let i of t){let t=i.value??0;t>e&&(e=t,n=i.layer??0)}return n},"findCentralNodeLayer"),Z=(0,r.K)(function(t,e,n,l){let b,v,{securityLevel:S,sankey:E}=(0,i.D7)(),$=i.ME.sankey;"sandbox"===S&&(b=(0,s.Ltv)("#i"+e));let D="sandbox"===S?(0,s.Ltv)(b.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),O="sandbox"===S?D.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`),j=E?.width??$.width,z=E?.height??$.width,F=E?.useMaxWidth??$.useMaxWidth,U=E?.nodeAlignment??$.nodeAlignment,W=E?.prefix??$.prefix,V=E?.suffix??$.suffix,G=E?.showValues??$.showValues,X=E?.nodeWidth??$.nodeWidth??10,Y=E?.nodePadding??$.nodePadding??12,q=E?.labelStyle??$.labelStyle??"legacy",Z=E?.nodeColors??{},H=l.db.getGraph(),J=Q[U];(function(){let t,e,n=0,i=0,r=1,s=1,l=24,b=8,v,S=g,E=a,w=_,K=x,L=6;function A(){let a={nodes:w.apply(null,arguments),links:K.apply(null,arguments)};return function({nodes:t,links:n}){for(let[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];let i=new Map(t.map((e,n)=>[S(e,n,t),e]));for(let[t,e]of n.entries()){e.index=t;let{source:n,target:r}=e;"object"!=typeof n&&(n=e.source=k(i,n)),"object"!=typeof r&&(r=e.target=k(i,r)),n.sourceLinks.push(e),r.targetLinks.push(e)}if(null!=e)for(let{sourceLinks:n,targetLinks:i}of t)n.sort(e),i.sort(e)}(a),function({nodes:t}){for(let e of t)e.value=void 0===e.fixedValue?Math.max(h(e.sourceLinks,p),h(e.targetLinks,p)):e.fixedValue}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{target:e}of(t.depth=r,t.sourceLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{source:e}of(t.height=r,t.targetLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function(a){let u=function({nodes:e}){let i=c(e,t=>t.depth)+1,s=(r-n-l)/(i-1),o=Array(i);for(let t of e){let e=Math.max(0,Math.min(i-1,Math.floor(E.call(null,t,i))));t.layer=e,t.x0=n+e*s,t.x1=t.x0+l,o[e]?o[e].push(t):o[e]=[t]}if(t)for(let e of o)e.sort(t);return o}(a);v=Math.min(b,(s-i)/(c(u,t=>t.length)-1));let g=o(u,t=>(s-i-(t.length-1)*v)/h(t,p));for(let t of u){let n=i;for(let e of t)for(let t of(e.y0=n,e.y1=n+e.value*g,n=e.y1+v,e.sourceLinks))t.width=t.value*g;n=(s-n+v)/(t.length+1);for(let e=0;e<t.length;++e){let i=t[e];i.y0+=n*(e+1),i.y1+=n*(e+1)}var _=t;if(void 0===e)for(let{sourceLinks:t,targetLinks:e}of _)t.sort(y),e.sort(f)}for(let e=0;e<L;++e){let n=Math.pow(.99,e),i=Math.max(1-n,(e+1)/L);(function(e,n,i){for(let r=e.length,s=r-2;s>=0;--s){let r=e[s];for(let t of r){let e=0,i=0;for(let{target:n,value:r}of t.sourceLinks){let s=r*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*v/2;for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+v}for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}(t,n)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,N(t)}void 0===t&&r.sort(d),M(r,i)}})(u,n,i),function(e,n,i){for(let r=1,s=e.length;r<s;++r){let s=e[r];for(let t of s){let e=0,i=0;for(let{source:n,value:r}of t.targetLinks){let s=r*(t.layer-n.layer);e+=function(t,e){let n=t.y0-(t.sourceLinks.length-1)*v/2;for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n+=r+v}for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n-=r}return n}(n,t)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,N(t)}void 0===t&&s.sort(d),M(s,i)}}(u,n,i)}}(a),m(a),a}function M(t,e){let n=t.length>>1,r=t[n];T(t,r.y0-v,n-1,e),I(t,r.y1+v,n+1,e),T(t,s,t.length-1,e),I(t,i,0,e)}function I(t,e,n,i){for(;n<t.length;++n){let r=t[n],s=(e-r.y0)*i;s>1e-6&&(r.y0+=s,r.y1+=s),e=r.y1+v}}function T(t,e,n,i){for(;n>=0;--n){let r=t[n],s=(r.y1-e)*i;s>1e-6&&(r.y0-=s,r.y1-=s),e=r.y0-v}}function N({sourceLinks:t,targetLinks:n}){if(void 0===e){for(let{source:{sourceLinks:t}}of n)t.sort(y);for(let{target:{targetLinks:e}}of t)e.sort(f)}}return A.update=function(t){return m(t),t},A.nodeId=function(t){return arguments.length?(S="function"==typeof t?t:u(t),A):S},A.nodeAlign=function(t){return arguments.length?(E="function"==typeof t?t:u(t),A):E},A.nodeSort=function(e){return arguments.length?(t=e,A):t},A.nodeWidth=function(t){return arguments.length?(l=+t,A):l},A.nodePadding=function(t){return arguments.length?(b=v=+t,A):b},A.nodes=function(t){return arguments.length?(w="function"==typeof t?t:u(t),A):w},A.links=function(t){return arguments.length?(K="function"==typeof t?t:u(t),A):K},A.linkSort=function(t){return arguments.length?(e=t,A):e},A.size=function(t){return arguments.length?(n=i=0,r=+t[0],s=+t[1],A):[r-n,s-i]},A.extent=function(t){return arguments.length?(n=+t[0][0],r=+t[1][0],i=+t[0][1],s=+t[1][1],A):[[n,i],[r,s]]},A.iterations=function(t){return arguments.length?(L=+t,A):L},A})().nodeId(t=>t.id).nodeWidth(X).nodePadding(Y+15*!!G).nodeAlign(J).extent([[0,0],[j,z]])(H);let tt=R(H.nodes),te=(0,s.UMr)(s.zt),tn=(0,r.K)(t=>Z[t]??te(t),"getNodeColor");O.append("g").attr("class","nodes").selectAll(".node").data(H.nodes).join("g").attr("class","node").attr("id",t=>(t.uid=B.next("node-")).id).attr("transform",function(t){return"translate("+t.x0+","+t.y0+")"}).attr("x",t=>t.x0).attr("y",t=>t.y0).append("rect").attr("height",t=>t.y1-t.y0).attr("width",t=>t.x1-t.x0).attr("fill",t=>tn(t.id));let ti=(0,r.K)(({id:t,value:e})=>G?`${t}
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9974],{9974:(t,e,n)=>{n.d(e,{diagram:()=>te});var i=n(37325);n(56037);var r=n(89851),s=n(32054);function o(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function l(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function c(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function u(t){return function(){return t}}function f(t,e){return d(t.source,e.source)||t.index-e.index}function y(t,e){return d(t.target,e.target)||t.index-e.index}function d(t,e){return t.y0-e.y0}function p(t){return t.value}function g(t){return t.index}function _(t){return t.nodes}function x(t){return t.links}function k(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function m({nodes:t}){for(let e of t){let t=e.y0,n=t;for(let n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(let t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var b=Math.PI,v=2*b,S=v-1e-6;function E(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function w(){return new E}E.prototype=w.prototype={constructor:E,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t*=1,e*=1,n*=1,i*=1,r*=1;var s=this._x1,o=this._y1,l=n-t,a=i-e,h=s-t,c=o-e,u=h*h+c*c;if(r<0)throw Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>1e-6)if(Math.abs(c*l-a*h)>1e-6&&r){var f=n-s,y=i-o,d=l*l+a*a,p=Math.sqrt(d),g=Math.sqrt(u),_=r*Math.tan((b-Math.acos((d+u-(f*f+y*y))/(2*p*g)))/2),x=_/g,k=_/p;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*h)+","+(e+x*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>h*y)+","+(this._x1=t+k*l)+","+(this._y1=e+k*a)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t*=1,e*=1,n*=1,s=!!s;var o=n*Math.cos(i),l=n*Math.sin(i),a=t+o,h=e+l,c=1^s,u=s?i-r:r-i;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+a+","+h:(Math.abs(this._x1-a)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+a+","+h),n&&(u<0&&(u=u%v+v),u>S?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=a)+","+(this._y1=h):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=b)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var K=Array.prototype.slice;function L(t){return function(){return t}}function A(t){return t[0]}function M(t){return t[1]}function I(t){return t.source}function T(t){return t.target}function N(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function P(t){return[t.source.x1,t.y0]}function C(t){return[t.target.x0,t.y1]}var $=function(){var t=(0,r.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[1,9],n=[1,10],i=[1,5,10,12],s={trace:(0,r.K)(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,r.K)(function(t,e,n,i,r,s,o){var l=s.length-1;switch(r){case 7:let a=i.findOrCreateNode(s[l-4].trim().replaceAll('""','"')),h=i.findOrCreateNode(s[l-2].trim().replaceAll('""','"')),c=parseFloat(s[l].trim());i.addLink(a,h,c);break;case 8:case 9:case 11:this.$=s[l];break;case 10:this.$=s[l-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,r.K)(function(t){var e=this,n=[0],i=[],s=[null],o=[],l=this.table,a="",h=0,c=0,u=0,f=o.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;o.push(g);var _=y.options&&y.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),(0,r.K)(x,"lex");for(var k,m,b,v,S,E,w,K,L,A={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=x()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var M="";for(E in L=[],l[b])this.terminals_[E]&&E>2&&L.push("'"+this.terminals_[E]+"'");M=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:L})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:n.push(k),s.push(y.yytext),o.push(y.yylloc),n.push(v[1]),k=null,m?(k=m,m=null):(c=y.yyleng,a=y.yytext,h=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[v[1]][1],A.$=s[s.length-w],A._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},_&&(A._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(A,[a,c,h,d,v[1],s,o].concat(f))))return S;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),o=o.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),s.push(A.$),o.push(A._$),K=l[n[n.length-2]][n[n.length-1]],n.push(K);break;case 3:return!0}}return!0},"parse")};function o(){this.yy={}}return s.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(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,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in r)this[s]=r[s];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),s=0;s<r.length;s++)if((n=this._input.match(this.rules[r[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(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,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,n,i){switch(n){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,r.K)(o,"Parser"),o.prototype=s,s.Parser=o,new o}();$.parser=$;var D=[],O=[],j=new Map,z=(0,r.K)(()=>{D=[],O=[],j=new Map,(0,i.IU)()},"clear"),F=class{constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}static{(0,r.K)(this,"SankeyLink")}},U=(0,r.K)((t,e,n)=>{D.push(new F(t,e,n))},"addLink"),W=class{constructor(t){this.ID=t}static{(0,r.K)(this,"SankeyNode")}},V=(0,r.K)(t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=j.get(t);return void 0===e&&(e=new W(t),j.set(t,e),O.push(e)),e},"findOrCreateNode"),G=(0,r.K)(()=>O,"getNodes"),X=(0,r.K)(()=>D,"getLinks"),Y=(0,r.K)(()=>({nodes:O.map(t=>({id:t.ID})),links:D.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),q={nodesMap:j,getConfig:(0,r.K)(()=>(0,i.D7)().sankey,"getConfig"),getNodes:G,getLinks:X,getGraph:Y,addLink:U,findOrCreateNode:V,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:z},B=class t{static{(0,r.K)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},Q={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?o(t.sourceLinks,l)-1:0},justify:a},R=(0,r.K)(t=>{let e=0,n=0;for(let i of t){let t=i.value??0;t>e&&(e=t,n=i.layer??0)}return n},"findCentralNodeLayer"),Z=(0,r.K)(function(t,e,n,l){let b,v,{securityLevel:S,sankey:E}=(0,i.D7)(),$=i.ME.sankey;"sandbox"===S&&(b=(0,s.Ltv)("#i"+e));let D="sandbox"===S?(0,s.Ltv)(b.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),O="sandbox"===S?D.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`),j=E?.width??$.width,z=E?.height??$.width,F=E?.useMaxWidth??$.useMaxWidth,U=E?.nodeAlignment??$.nodeAlignment,W=E?.prefix??$.prefix,V=E?.suffix??$.suffix,G=E?.showValues??$.showValues,X=E?.nodeWidth??$.nodeWidth??10,Y=E?.nodePadding??$.nodePadding??12,q=E?.labelStyle??$.labelStyle??"legacy",Z=E?.nodeColors??{},H=l.db.getGraph(),J=Q[U];(function(){let t,e,n=0,i=0,r=1,s=1,l=24,b=8,v,S=g,E=a,w=_,K=x,L=6;function A(){let a={nodes:w.apply(null,arguments),links:K.apply(null,arguments)};return function({nodes:t,links:n}){for(let[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];let i=new Map(t.map((e,n)=>[S(e,n,t),e]));for(let[t,e]of n.entries()){e.index=t;let{source:n,target:r}=e;"object"!=typeof n&&(n=e.source=k(i,n)),"object"!=typeof r&&(r=e.target=k(i,r)),n.sourceLinks.push(e),r.targetLinks.push(e)}if(null!=e)for(let{sourceLinks:n,targetLinks:i}of t)n.sort(e),i.sort(e)}(a),function({nodes:t}){for(let e of t)e.value=void 0===e.fixedValue?Math.max(h(e.sourceLinks,p),h(e.targetLinks,p)):e.fixedValue}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{target:e}of(t.depth=r,t.sourceLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{source:e}of(t.height=r,t.targetLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function(a){let u=function({nodes:e}){let i=c(e,t=>t.depth)+1,s=(r-n-l)/(i-1),o=Array(i);for(let t of e){let e=Math.max(0,Math.min(i-1,Math.floor(E.call(null,t,i))));t.layer=e,t.x0=n+e*s,t.x1=t.x0+l,o[e]?o[e].push(t):o[e]=[t]}if(t)for(let e of o)e.sort(t);return o}(a);v=Math.min(b,(s-i)/(c(u,t=>t.length)-1));let g=o(u,t=>(s-i-(t.length-1)*v)/h(t,p));for(let t of u){let n=i;for(let e of t)for(let t of(e.y0=n,e.y1=n+e.value*g,n=e.y1+v,e.sourceLinks))t.width=t.value*g;n=(s-n+v)/(t.length+1);for(let e=0;e<t.length;++e){let i=t[e];i.y0+=n*(e+1),i.y1+=n*(e+1)}var _=t;if(void 0===e)for(let{sourceLinks:t,targetLinks:e}of _)t.sort(y),e.sort(f)}for(let e=0;e<L;++e){let n=Math.pow(.99,e),i=Math.max(1-n,(e+1)/L);(function(e,n,i){for(let r=e.length,s=r-2;s>=0;--s){let r=e[s];for(let t of r){let e=0,i=0;for(let{target:n,value:r}of t.sourceLinks){let s=r*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*v/2;for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+v}for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}(t,n)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,N(t)}void 0===t&&r.sort(d),M(r,i)}})(u,n,i),function(e,n,i){for(let r=1,s=e.length;r<s;++r){let s=e[r];for(let t of s){let e=0,i=0;for(let{source:n,value:r}of t.targetLinks){let s=r*(t.layer-n.layer);e+=function(t,e){let n=t.y0-(t.sourceLinks.length-1)*v/2;for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n+=r+v}for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n-=r}return n}(n,t)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,N(t)}void 0===t&&s.sort(d),M(s,i)}}(u,n,i)}}(a),m(a),a}function M(t,e){let n=t.length>>1,r=t[n];T(t,r.y0-v,n-1,e),I(t,r.y1+v,n+1,e),T(t,s,t.length-1,e),I(t,i,0,e)}function I(t,e,n,i){for(;n<t.length;++n){let r=t[n],s=(e-r.y0)*i;s>1e-6&&(r.y0+=s,r.y1+=s),e=r.y1+v}}function T(t,e,n,i){for(;n>=0;--n){let r=t[n],s=(r.y1-e)*i;s>1e-6&&(r.y0-=s,r.y1-=s),e=r.y0-v}}function N({sourceLinks:t,targetLinks:n}){if(void 0===e){for(let{source:{sourceLinks:t}}of n)t.sort(y);for(let{target:{targetLinks:e}}of t)e.sort(f)}}return A.update=function(t){return m(t),t},A.nodeId=function(t){return arguments.length?(S="function"==typeof t?t:u(t),A):S},A.nodeAlign=function(t){return arguments.length?(E="function"==typeof t?t:u(t),A):E},A.nodeSort=function(e){return arguments.length?(t=e,A):t},A.nodeWidth=function(t){return arguments.length?(l=+t,A):l},A.nodePadding=function(t){return arguments.length?(b=v=+t,A):b},A.nodes=function(t){return arguments.length?(w="function"==typeof t?t:u(t),A):w},A.links=function(t){return arguments.length?(K="function"==typeof t?t:u(t),A):K},A.linkSort=function(t){return arguments.length?(e=t,A):e},A.size=function(t){return arguments.length?(n=i=0,r=+t[0],s=+t[1],A):[r-n,s-i]},A.extent=function(t){return arguments.length?(n=+t[0][0],r=+t[1][0],i=+t[0][1],s=+t[1][1],A):[[n,i],[r,s]]},A.iterations=function(t){return arguments.length?(L=+t,A):L},A})().nodeId(t=>t.id).nodeWidth(X).nodePadding(Y+15*!!G).nodeAlign(J).extent([[0,0],[j,z]])(H);let tt=R(H.nodes),te=(0,s.UMr)(s.zt),tn=(0,r.K)(t=>Z[t]??te(t),"getNodeColor");O.append("g").attr("class","nodes").selectAll(".node").data(H.nodes).join("g").attr("class","node").attr("id",t=>(t.uid=B.next("node-")).id).attr("transform",function(t){return"translate("+t.x0+","+t.y0+")"}).attr("x",t=>t.x0).attr("y",t=>t.y0).append("rect").attr("height",t=>t.y1-t.y0).attr("width",t=>t.x1-t.x0).attr("fill",t=>tn(t.id));let ti=(0,r.K)(({id:t,value:e})=>G?`${t}
2
2
  ${W}${Math.round(100*e)/100}${V}`:t,"getText"),tr=(0,r.K)(t=>"outlined"===q?(t.layer??0)<tt?{x:t.x0-6,anchor:"end"}:{x:t.x1+6,anchor:"start"}:t.x0<j/2?{x:t.x1+6,anchor:"start"}:{x:t.x0-6,anchor:"end"},"getLabelPosition"),ts=O.append("g").attr("class","node-labels").attr("font-size",14),to=(0,r.K)(t=>ts.selectAll(t?`.${t}`:"text").data(H.nodes).join("text").attr("class",t??null).attr("x",t=>tr(t).x).attr("y",t=>(t.y1+t.y0)/2).attr("dy",`${G?"0":"0.35"}em`).attr("text-anchor",t=>tr(t).anchor).text(ti),"appendLabel");"outlined"===q?(to("sankey-label-bg"),to("sankey-label-fg")):to();let tl=O.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(H.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),ta=E?.linkColor??"gradient";if("gradient"===ta){let t=tl.append("linearGradient").attr("id",t=>(t.uid=B.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",t=>t.source.x1).attr("x2",t=>t.target.x0);t.append("stop").attr("offset","0%").attr("stop-color",t=>tn(t.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",t=>tn(t.target.id))}switch(ta){case"gradient":v=(0,r.K)(t=>t.uid,"coloring");break;case"source":v=(0,r.K)(t=>tn(t.source.id),"coloring");break;case"target":v=(0,r.K)(t=>tn(t.target.id),"coloring");break;default:v=ta}tl.append("path").attr("d",(function(t){var e=I,n=T,i=A,r=M,s=null;function o(){var o,l=K.call(arguments),a=e.apply(this,l),h=n.apply(this,l);if(s||(s=o=w()),t(s,+i.apply(this,(l[0]=a,l)),+r.apply(this,l),+i.apply(this,(l[0]=h,l)),+r.apply(this,l)),o)return s=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(i="function"==typeof t?t:L(+t),o):i},o.y=function(t){return arguments.length?(r="function"==typeof t?t:L(+t),o):r},o.context=function(t){return arguments.length?(s=null==t?null:t,o):s},o})(N).source(P).target(C)).attr("stroke",v).attr("stroke-width",t=>Math.max(1,t.width)),(0,i.ot)(void 0,O,0,F)},"draw"),H=(0,r.K)(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),J=(0,r.K)(t=>`.label {
3
3
  font-family: ${t.fontFamily};
4
4
  }
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,356,552,658,827,976,1004,1097,1337,1541,1651,1960,2053,2138,2453,2504,2614,2835,2837,3432,3507,3851,3933,3943,3955,4016,4037,4387,4515,4524,4896,5221,5843,5907,6202,6252,6450,6456,6541,6709,6819,6831,6849,6919,6988,7067,7483,7769,7812,7851,8167,8197,8278,8412,8429,8658,8743,8933,9044,9156,9183,9742,9747,9787,9822,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);