@qt4798/pi-web 0.18.14 → 0.18.16
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.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +29 -27
- package/.next/build-manifest.json +5 -5
- package/.next/diagnostics/build-diagnostics.json +1 -1
- package/.next/prerender-manifest.json +6 -6
- package/.next/react-loadable-manifest.json +73 -71
- package/.next/required-server-files.js +20 -9
- package/.next/required-server-files.json +20 -9
- package/.next/routes-manifest.json +12 -0
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +4 -4
- package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
- package/.next/server/app/api/agent/[id]/lease/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/running/events/route.js +1 -1
- package/.next/server/app/api/agent/running/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/combined/route.js +1 -1
- package/.next/server/app/api/auth/combined/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
- package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/backup/export/route.js +1 -1
- package/.next/server/app/api/backup/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/backup/import/route.js +1 -1
- package/.next/server/app/api/backup/import/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/events/route.js +2 -2
- package/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/features/route.js +1 -1
- package/.next/server/app/api/features/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -1
- package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +2 -2
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/diff/route.js +1 -1
- package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/push/route.js +1 -1
- package/.next/server/app/api/git/push/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/stash/route.js +1 -1
- package/.next/server/app/api/git/stash/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/git/status/route.js +2 -2
- package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/home/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/import/discover/route.js +1 -1
- package/.next/server/app/api/import/discover/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/import/execute/route.js +1 -1
- package/.next/server/app/api/import/execute/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/import/status/route.js +1 -1
- package/.next/server/app/api/import/status/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/logs/route.js +1 -1
- package/.next/server/app/api/logs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/restart/route.js +1 -1
- package/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -2
- package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/enabled/route.js +1 -1
- package/.next/server/app/api/models/enabled/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/refresh/route.js +1 -1
- package/.next/server/app/api/models/refresh/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/builtin/route.js +1 -1
- package/.next/server/app/api/models-config/builtin/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/import/route.js +1 -0
- package/.next/server/app/api/models-config/import/route.js.nft.json +1 -0
- package/.next/server/app/api/models-config/import/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/modes/route.js +1 -1
- package/.next/server/app/api/modes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plugins/check/route.js +1 -1
- package/.next/server/app/api/plugins/check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/project-aliases/route.js +1 -1
- package/.next/server/app/api/project-aliases/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/projects/visibility/route.js +1 -1
- package/.next/server/app/api/projects/visibility/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/provider-usage/query/route.js +1 -1
- package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/proxy/route.js +1 -1
- package/.next/server/app/api/proxy/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/proxy/test/route.js +1 -1
- package/.next/server/app/api/proxy/test/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/details/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/details/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/queue-recovery/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/queue-recovery/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sessions/search/route.js +1 -1
- package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/settings/appearance/route.js +1 -0
- package/.next/server/app/api/settings/appearance/route.js.nft.json +1 -0
- package/.next/server/app/api/settings/appearance/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/settings/title-model/route.js +1 -1
- package/.next/server/app/api/settings/title-model/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/snippets/[id]/route.js +1 -1
- package/.next/server/app/api/snippets/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/snippets/route.js +1 -1
- package/.next/server/app/api/snippets/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js +1 -1
- package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/profiles/route.js +1 -1
- package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/subagents/settings/route.js +1 -1
- package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/[action]/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/[action]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/changed-files/route.js +2 -2
- package/.next/server/app/api/tasks/[id]/changed-files/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/diff/route.js +2 -2
- package/.next/server/app/api/tasks/[id]/diff/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/events/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/[id]/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/batch/route.js +1 -1
- package/.next/server/app/api/tasks/batch/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/events/route.js +1 -1
- package/.next/server/app/api/tasks/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/route.js +1 -1
- package/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/settings/route.js +1 -1
- package/.next/server/app/api/tasks/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tasks/templates/route.js +1 -1
- package/.next/server/app/api/tasks/templates/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
- package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/[id]/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/terminal/route.js +1 -1
- package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/themes/[name]/route.js +1 -1
- package/.next/server/app/api/themes/[name]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/themes/route.js +1 -1
- package/.next/server/app/api/themes/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tools/extension-tools/route.js +2 -2
- package/.next/server/app/api/tools/extension-tools/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/tools/settings/route.js +1 -1
- package/.next/server/app/api/tools/settings/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/usage/route.js +1 -1
- package/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/vision-config/route.js +2 -2
- package/.next/server/app/api/vision-config/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/web-auth/route.js +1 -1
- package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
- package/.next/server/app/icon.ico/route.js +1 -1
- package/.next/server/app/icon.png/route.js +1 -1
- package/.next/server/app/icon.svg/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +6 -6
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/.next/server/app/index.segments/_full.segment.rsc +6 -6
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login/page.js +1 -1
- package/.next/server/app/login/page.js.nft.json +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +5 -5
- package/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/page.js +15 -15
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +29 -27
- package/.next/server/chunks/1625.js +1 -1
- package/.next/server/chunks/2325.js +1 -1
- package/.next/server/chunks/2430.js +4 -4
- package/.next/server/chunks/3379.js +1 -1
- package/.next/server/chunks/4253.js +5 -5
- package/.next/server/chunks/5437.js +1 -1
- package/.next/server/chunks/5582.js +3 -3
- package/.next/server/chunks/5725.js +1 -1
- package/.next/server/chunks/{3400.js → 5924.js} +2 -2
- package/.next/server/chunks/6429.js +2 -2
- package/.next/server/chunks/8050.js +1 -0
- package/.next/server/chunks/8526.js +1 -0
- package/.next/server/chunks/9280.js +6 -6
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +7 -7
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/PXIvaiEmgDyK__UouWrME/_buildManifest.js +1 -0
- package/.next/static/chunks/{103.23142a67b02246a8.js → 103.bfbf2ceb209ee60a.js} +3 -3
- package/.next/static/chunks/1063.e4ab1eacb59256e4.js +1 -0
- package/.next/static/chunks/{1ba63609.b2ae90f43319a29e.js → 1ba63609.56aacc9b9c1fc3c9.js} +3 -3
- package/.next/static/chunks/202.2eb729e44266c67c.js +1 -0
- package/.next/static/chunks/{2539.c5a4f2fd8e421c70.js → 2539.3edf131e2ca8ce95.js} +2 -2
- package/.next/static/chunks/{268.72794ee2773c2060.js → 268.13b43d4bc938ecaf.js} +1 -1
- package/.next/static/chunks/{2703.495a65ed14b2f094.js → 2703.8c74b7bfdb7420f4.js} +2 -2
- package/.next/static/chunks/2787-8d358343705fcc68.js +1 -0
- package/.next/static/chunks/3308.de64beaa0de14c14.js +73 -0
- package/.next/static/chunks/{3336.a76f9485fe7cb762.js → 3336.0f9ee646d3cb3d78.js} +1 -1
- package/.next/static/chunks/{370.8e8f3cf8eb0e29dd.js → 370.a485dd5092c76362.js} +1 -1
- package/.next/static/chunks/3716.9ca94f5f4438e674.js +1 -0
- package/.next/static/chunks/3794-1fcd61e8ecc94071.js +52 -0
- package/.next/static/chunks/398.abb6ae5bffac7bc8.js +77 -0
- package/.next/static/chunks/3995.ce807d1cb0b49dc6.js +38 -0
- package/.next/static/chunks/3e0fc59a.bdaacbd7105103cc.js +146 -0
- package/.next/static/chunks/4202.e56ae229379586da.js +226 -0
- package/.next/static/chunks/{4405.c4b4ce2efac94ed2.js → 4405.81f03b286f952606.js} +1 -1
- package/.next/static/chunks/5091.175b669ec3e8380f.js +15 -0
- package/.next/static/chunks/5170-3e328b87bd2a2070.js +1 -0
- package/.next/static/chunks/5526.dbe8850524c3a0b7.js +86 -0
- package/.next/static/chunks/5609943a.724ce4262fb3117f.js +127 -0
- package/.next/static/chunks/{5681.dd0e66b0de16e54b.js → 5681.970265b4caa33e0c.js} +10 -10
- package/.next/static/chunks/6195.5dc951f896dbe7c7.js +24 -0
- package/.next/static/chunks/7047.198a0b3b75b24ea9.js +22 -0
- package/.next/static/chunks/7268.e1589e6f1b33dc69.js +1 -0
- package/.next/static/chunks/{7331.2add3c4e125a2dba.js → 7331.4dab6a47177b021e.js} +4 -4
- package/.next/static/chunks/{8403.1f5a2b397c89fd5e.js → 8403.1d6d08894b1a96a2.js} +1 -1
- package/.next/static/chunks/8863.82d37740ec1cddf2.js +1 -0
- package/.next/static/chunks/{8885.cf60cac98bf8b70c.js → 8885.b3380514638e6caa.js} +1 -1
- package/.next/static/chunks/{918.6a9bbe564e4a2d0f.js → 918.24d797d64aea10eb.js} +1 -1
- package/.next/static/chunks/{9614.3221013d7f0af27f.js → 9614.b33d76486b6ddeba.js} +1 -1
- package/.next/static/chunks/{9698.4d09a99b9d99f3e5.js → 9698.3597679011d58a99.js} +1 -1
- package/.next/static/chunks/9873.c36038f319fa59ae.js +15 -0
- package/.next/static/chunks/99.4406f0eb0e571f3e.js +24 -0
- package/.next/static/chunks/993e5495.65b5fe07838b22d4.js +62 -0
- package/.next/static/chunks/{9974.9a0f79beca65e8c4.js → 9974.7f033cb2770e1d6a.js} +2 -2
- package/.next/static/chunks/app/_global-error/page-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/_not-found/page-a500a3059c57d262.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/lease/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/agent/running/events/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/auth/combined/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/backup/export/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/backup/import/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/events/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/features/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/git/push/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/git/stash/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/home/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/import/discover/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/import/execute/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/import/status/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/logs/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/mcp/restart/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models/enabled/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models/refresh/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models-config/builtin/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models-config/import/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/modes/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/project-aliases/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/projects/visibility/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/provider-usage/query/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/proxy/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/proxy/test/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/details/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/settings/appearance/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/settings/title-model/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/skills/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/snippets/[id]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/snippets/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/events/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/batch/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/events/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/settings/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tasks/templates/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/themes/[name]/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/themes/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tools/extension-tools/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/usage/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/vision-config/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/web-auth/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/app/layout-5719770bb4c2db1c.js +1 -0
- package/.next/static/chunks/app/login/{page-9b153b8af0f90735.js → page-7d898795adddde04.js} +1 -1
- package/.next/static/chunks/app/page-7b80403208ca6e44.js +237 -0
- package/.next/static/chunks/bf2ff291.6dc9ad1bc7ff61cb.js +122 -0
- package/.next/static/chunks/c3448d49.887dde9a549859d4.js +5 -0
- package/.next/static/chunks/da12927c.83795b5f3ef6b27b.js +82 -0
- package/.next/static/chunks/db9d41be.d429ba23973269f2.js +1 -0
- package/.next/static/chunks/main-4dd0e30beb0a1520.js +5 -0
- package/.next/static/chunks/{main-app-8944008299d05701.js → main-app-0b45ce7a4444c85e.js} +1 -1
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-9b3287a6309b286c.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-8b1369cbf4e0a858.js +1 -0
- package/.next/static/chunks/webpack-31cab65cc5a39c4d.js +1 -0
- package/.next/static/css/5a620688241e1a56.css +1 -0
- package/.next/static/css/9bf1ae2d877ac1bd.css +1 -0
- package/.next/trace +10 -83
- package/.next/trace-build +1 -1
- package/.next/types/app/api/agent/[id]/bash-output/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/events/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/lease/route.ts +1 -1
- package/.next/types/app/api/agent/[id]/route.ts +1 -1
- package/.next/types/app/api/agent/new/route.ts +1 -1
- package/.next/types/app/api/agent/running/events/route.ts +1 -1
- package/.next/types/app/api/agent/running/route.ts +1 -1
- package/.next/types/app/api/app-update/route.ts +1 -1
- package/.next/types/app/api/auth/api-key/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/combined/route.ts +1 -1
- package/.next/types/app/api/auth/login/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/logout/[provider]/route.ts +1 -1
- package/.next/types/app/api/auth/providers/route.ts +1 -1
- package/.next/types/app/api/backup/export/route.ts +1 -1
- package/.next/types/app/api/backup/import/route.ts +1 -1
- package/.next/types/app/api/cwd/browse/route.ts +1 -1
- package/.next/types/app/api/cwd/validate/route.ts +1 -1
- package/.next/types/app/api/default-cwd/route.ts +1 -1
- package/.next/types/app/api/events/route.ts +1 -1
- package/.next/types/app/api/features/route.ts +1 -1
- package/.next/types/app/api/file-index/route.ts +1 -1
- package/.next/types/app/api/files/[...path]/route.ts +1 -1
- package/.next/types/app/api/git/diff/route.ts +1 -1
- package/.next/types/app/api/git/push/route.ts +1 -1
- package/.next/types/app/api/git/stash/route.ts +1 -1
- package/.next/types/app/api/git/status/route.ts +1 -1
- package/.next/types/app/api/home/route.ts +1 -1
- package/.next/types/app/api/import/discover/route.ts +1 -1
- package/.next/types/app/api/import/execute/route.ts +1 -1
- package/.next/types/app/api/import/status/route.ts +1 -1
- package/.next/types/app/api/logs/route.ts +1 -1
- package/.next/types/app/api/mcp/restart/route.ts +1 -1
- package/.next/types/app/api/mcp/route.ts +1 -1
- package/.next/types/app/api/models/enabled/route.ts +1 -1
- package/.next/types/app/api/models/refresh/route.ts +1 -1
- package/.next/types/app/api/models/route.ts +1 -1
- package/.next/types/app/api/models-config/builtin/route.ts +1 -1
- package/.next/types/app/api/models-config/catalog/route.ts +1 -1
- package/.next/types/app/api/models-config/discover/route.ts +1 -1
- package/.next/types/app/api/models-config/import/route.ts +353 -0
- package/.next/types/app/api/models-config/route.ts +1 -1
- package/.next/types/app/api/models-config/test/route.ts +1 -1
- package/.next/types/app/api/modes/route.ts +1 -1
- package/.next/types/app/api/plugins/check/route.ts +1 -1
- package/.next/types/app/api/plugins/route.ts +1 -1
- package/.next/types/app/api/project-aliases/route.ts +1 -1
- package/.next/types/app/api/project-trust/route.ts +1 -1
- package/.next/types/app/api/projects/visibility/route.ts +1 -1
- package/.next/types/app/api/provider-usage/query/route.ts +1 -1
- package/.next/types/app/api/proxy/route.ts +1 -1
- package/.next/types/app/api/proxy/test/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/auto-name/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/context/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/details/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/export/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/queue-recovery/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/route.ts +1 -1
- package/.next/types/app/api/sessions/[id]/state/route.ts +1 -1
- package/.next/types/app/api/sessions/route.ts +1 -1
- package/.next/types/app/api/sessions/search/route.ts +1 -1
- package/.next/types/app/api/settings/appearance/route.ts +353 -0
- package/.next/types/app/api/settings/title-model/route.ts +1 -1
- package/.next/types/app/api/skills/check/route.ts +1 -1
- package/.next/types/app/api/skills/install/route.ts +1 -1
- package/.next/types/app/api/skills/route.ts +1 -1
- package/.next/types/app/api/skills/search/route.ts +1 -1
- package/.next/types/app/api/skills/update/route.ts +1 -1
- package/.next/types/app/api/snippets/[id]/route.ts +1 -1
- package/.next/types/app/api/snippets/route.ts +1 -1
- package/.next/types/app/api/subagents/[id]/route.ts +1 -1
- package/.next/types/app/api/subagents/profiles/route.ts +1 -1
- package/.next/types/app/api/subagents/settings/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/[action]/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/changed-files/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/diff/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/events/route.ts +1 -1
- package/.next/types/app/api/tasks/[id]/route.ts +1 -1
- package/.next/types/app/api/tasks/batch/route.ts +1 -1
- package/.next/types/app/api/tasks/events/route.ts +1 -1
- package/.next/types/app/api/tasks/route.ts +1 -1
- package/.next/types/app/api/tasks/settings/route.ts +1 -1
- package/.next/types/app/api/tasks/templates/route.ts +1 -1
- package/.next/types/app/api/terminal/[id]/events/route.ts +1 -1
- package/.next/types/app/api/terminal/[id]/route.ts +1 -1
- package/.next/types/app/api/terminal/route.ts +1 -1
- package/.next/types/app/api/themes/[name]/route.ts +1 -1
- package/.next/types/app/api/themes/route.ts +1 -1
- package/.next/types/app/api/tools/extension-tools/route.ts +1 -1
- package/.next/types/app/api/tools/settings/route.ts +1 -1
- package/.next/types/app/api/usage/route.ts +1 -1
- package/.next/types/app/api/vision-config/route.ts +1 -1
- package/.next/types/app/api/web-auth/route.ts +1 -1
- package/.next/types/app/api/worktrees/route.ts +1 -1
- package/.next/types/app/layout.ts +1 -1
- package/.next/types/app/login/page.ts +1 -1
- package/.next/types/app/page.ts +1 -1
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +18 -0
- package/bin/pi-web.js +10 -0
- package/bin/rotate-preview-secrets.js +105 -0
- package/next.config.ts +21 -0
- package/package.json +9 -1
- package/.next/server/chunks/8692.js +0 -1
- package/.next/static/YMj6bx3-waKfetNnywU4u/_buildManifest.js +0 -1
- package/.next/static/chunks/1063.775c442bdbeef08b.js +0 -1
- package/.next/static/chunks/1781.866132cea8e77cd0.js +0 -1
- package/.next/static/chunks/3308.18c2954e9a937988.js +0 -73
- package/.next/static/chunks/3716.72bf4c9d7325debd.js +0 -1
- package/.next/static/chunks/3794-6e153c69bf16369e.js +0 -52
- package/.next/static/chunks/398.ffa02af9062a3950.js +0 -77
- package/.next/static/chunks/3995.eca0f5bef1fc3ae5.js +0 -38
- package/.next/static/chunks/4004.74b9bcf5478b1663.js +0 -160
- package/.next/static/chunks/4202.8440832386f023c7.js +0 -226
- package/.next/static/chunks/4238.8c87d84edfed6131.js +0 -141
- package/.next/static/chunks/5170-1843a50074eff480.js +0 -1
- package/.next/static/chunks/5526.ff46471041fdcb79.js +0 -86
- package/.next/static/chunks/6195.1153369f5f8b13a2.js +0 -24
- package/.next/static/chunks/7268.236544be8e242c16.js +0 -1
- package/.next/static/chunks/8200.a36b9f8c983c6b9e.js +0 -5
- package/.next/static/chunks/8272-a2dd6dc928b6876e.js +0 -1
- package/.next/static/chunks/8863.fa0320ea586efb3b.js +0 -1
- package/.next/static/chunks/973.88e865b52eff479a.js +0 -8
- package/.next/static/chunks/99.280e10a836dfdb17.js +0 -24
- package/.next/static/chunks/993e5495.8797001fcfcf2889.js +0 -62
- package/.next/static/chunks/app/_global-error/page-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/_not-found/page-0e8bb074c3dbf54e.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/lease/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/agent/running/events/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/auth/combined/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/backup/export/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/backup/import/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/events/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/features/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/git/push/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/git/stash/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/home/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/import/discover/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/import/execute/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/import/status/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/logs/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/mcp/restart/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models/enabled/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models/refresh/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models-config/builtin/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/modes/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/plugins/check/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/project-aliases/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/projects/visibility/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/provider-usage/query/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/proxy/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/proxy/test/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/details/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/settings/title-model/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/skills/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/snippets/[id]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/snippets/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/subagents/[id]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/subagents/profiles/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/subagents/settings/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/events/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/batch/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/events/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/settings/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tasks/templates/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/themes/[name]/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/themes/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tools/extension-tools/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/tools/settings/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/usage/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/vision-config/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/web-auth/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/app/layout-740df3abbdf0ae0c.js +0 -1
- package/.next/static/chunks/app/page-5588e64c6d7ae092.js +0 -237
- package/.next/static/chunks/bf2ff291.3a109dffc1fe84af.js +0 -122
- package/.next/static/chunks/da12927c.df8334cb8b491be6.js +0 -82
- package/.next/static/chunks/db9d41be.e72ce090a86a3691.js +0 -1
- package/.next/static/chunks/main-6400935cf7d44c96.js +0 -5
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-a57ff04541d78dd4.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-43ebd38332159d0f.js +0 -1
- package/.next/static/chunks/webpack-8937e0633207540f.js +0 -1
- package/.next/static/css/2d92ddfd19010e95.css +0 -1
- package/.next/static/css/e7f4c5cc504068dd.css +0 -1
- /package/.next/static/{YMj6bx3-waKfetNnywU4u → PXIvaiEmgDyK__UouWrME}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5526],{80650:(e,t,r)=>{function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}r.d(t,{S:()=>i}),(0,r(89851).K)(i,"populateCommonDb")},87701:(e,t,r)=>{r.d(t,{$:()=>O,U:()=>V,db:()=>S});var i=r(56174),a=r(37325),n=r(56037),o=r(89851),l="",s="",d="",m=[],c=new Map,h=(0,o.K)(e=>(0,a.jZ)(e,(0,a.D7)()),"sanitizeText"),p=(0,o.K)(e=>{switch(e.type){case"terminal":return{...e,value:h(e.value)};case"nonterminal":return{...e,name:h(e.name)};case"sequence":return{...e,elements:e.elements.map(p)};case"choice":return{...e,alternatives:e.alternatives.map(p)};case"optional":return{...e,element:p(e.element)};case"repetition":return{...e,element:p(e.element),separator:e.separator?p(e.separator):void 0};case"special":return{...e,text:h(e.text)}}},"sanitizeAstNode"),u=(0,o.K)(()=>{l="",s="",d="",m.length=0,c.clear(),(0,a.IU)(),n.R.debug("[Railroad] Database cleared")},"clear"),g=(0,o.K)(e=>{l=h(e),n.R.debug("[Railroad] Title set:",e)},"setTitle"),T=(0,o.K)(()=>l,"getTitle"),f=(0,o.K)(e=>{let t={...e,name:h(e.name),definition:p(e.definition),comment:e.comment?h(e.comment):void 0};n.R.debug("[Railroad] Adding rule:",t.name),c.has(t.name)&&n.R.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),m.push(t),c.set(t.name,t)},"addRule"),x=(0,o.K)(()=>m,"getRules"),w=(0,o.K)(e=>c.get(e),"getRule"),k=(0,o.K)(e=>{s=h(e).replace(/^\s+/g,""),n.R.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),C=(0,o.K)(()=>s,"getAccTitle"),$=(0,o.K)(e=>{d=h(e).replace(/\n\s+/g,"\n"),n.R.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),S={clear:u,setTitle:g,getTitle:T,addRule:f,getRules:x,getRule:w,setAccTitle:k,getAccTitle:C,setAccDescription:$,getAccDescription:(0,o.K)(()=>d,"getAccDescription"),setDiagramTitle:g,getDiagramTitle:T},F={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},y=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,R=/^[\w "',.-]+$/,b=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),v=(0,o.K)(e=>!!e&&Object.keys(e).every(e=>"railroad"===e||b.has(e)),"isRailroadStyleOptions"),z=(0,o.K)(e=>e?"railroad"in e&&e.railroad?e.railroad:v(e)?e:{}:{},"extractRailroadOverrides"),K=(0,o.K)(e=>{if(!e||v(e))return{};let{railroad:t,svgId:r,theme:i,look:a,...n}=e;return n},"extractThemeOverrides"),N=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;let r=e.trim();return y.test(r)?r:t},"sanitizeColorValue"),M=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;let r=e.trim();return R.test(r)?r:t},"sanitizeFontFamilyValue"),A=(0,o.K)((e,t)=>{let r="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):NaN;return Number.isFinite(r)&&r>=0?r:t},"sanitizeNumberValue"),D=(0,o.K)(e=>{let t="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),E=(0,o.K)(e=>{let t=M(e.fontFamily,F.fontFamily),r=D(e.fontSize)??F.fontSize;return{...F,fontFamily:t,fontSize:r,terminalFill:N(e.secondBkg??e.secondaryColor,F.terminalFill),terminalStroke:N(e.secondaryBorderColor??e.lineColor,F.terminalStroke),terminalTextColor:N(e.secondaryTextColor??e.textColor,F.terminalTextColor),nonTerminalFill:N(e.mainBkg??e.background,F.nonTerminalFill),nonTerminalStroke:N(e.primaryBorderColor??e.lineColor,F.nonTerminalStroke),nonTerminalTextColor:N(e.primaryTextColor??e.textColor,F.nonTerminalTextColor),lineColor:N(e.lineColor,F.lineColor),markerFill:N(e.lineColor,F.markerFill),commentFill:N(e.labelBackground??e.tertiaryColor,F.commentFill),commentStroke:N(e.tertiaryBorderColor??e.lineColor,F.commentStroke),commentTextColor:N(e.tertiaryTextColor??e.textColor,F.commentTextColor),specialFill:N(e.tertiaryColor??e.secondaryColor,F.specialFill),specialStroke:N(e.tertiaryBorderColor??e.secondaryBorderColor,F.specialStroke),ruleNameColor:N(e.titleColor??e.textColor,F.ruleNameColor)}},"buildThemeDefaults"),B=(0,o.K)(e=>{let t=(0,a.zj)(),r=E({...(0,a.P$)(),...t.themeVariables??{},...K(e)}),i={...t.railroad??{},...z(e)};return{compactMode:i.compactMode??r.compactMode,padding:A(i.padding,r.padding),verticalSeparation:A(i.verticalSeparation,r.verticalSeparation),horizontalSeparation:A(i.horizontalSeparation,r.horizontalSeparation),arcRadius:A(i.arcRadius,r.arcRadius),fontSize:A(i.fontSize,r.fontSize),fontFamily:M(i.fontFamily,r.fontFamily),terminalFill:N(i.terminalFill,r.terminalFill),terminalStroke:N(i.terminalStroke,r.terminalStroke),terminalTextColor:N(i.terminalTextColor,r.terminalTextColor),nonTerminalFill:N(i.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:N(i.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:N(i.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:N(i.lineColor,r.lineColor),strokeWidth:A(i.strokeWidth,r.strokeWidth),markerFill:N(i.markerFill,r.markerFill),commentFill:N(i.commentFill,r.commentFill),commentStroke:N(i.commentStroke,r.commentStroke),commentTextColor:N(i.commentTextColor,r.commentTextColor),specialFill:N(i.specialFill,r.specialFill),specialStroke:N(i.specialStroke,r.specialStroke),ruleNameColor:N(i.ruleNameColor,r.ruleNameColor),showMarkers:i.showMarkers??r.showMarkers,markerRadius:A(i.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),O=(0,o.K)(e=>{let{fontFamily:t,fontSize:r,terminalFill:i,terminalStroke:a,terminalTextColor:n,nonTerminalFill:o,nonTerminalStroke:l,nonTerminalTextColor:s,lineColor:d,strokeWidth:m,markerFill:c,commentFill:h,commentStroke:p,commentTextColor:u,specialFill:g,specialStroke:T,ruleNameColor:f}=B(e);return`
|
|
2
|
+
.railroad-diagram {
|
|
3
|
+
font-family: ${t};
|
|
4
|
+
font-size: ${r}px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.railroad-terminal rect {
|
|
8
|
+
fill: ${i};
|
|
9
|
+
stroke: ${a};
|
|
10
|
+
stroke-width: ${m}px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.railroad-terminal text {
|
|
14
|
+
fill: ${n};
|
|
15
|
+
font-family: ${t};
|
|
16
|
+
font-size: ${r}px;
|
|
17
|
+
text-anchor: middle;
|
|
18
|
+
dominant-baseline: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.railroad-nonterminal rect {
|
|
22
|
+
fill: ${o};
|
|
23
|
+
stroke: ${l};
|
|
24
|
+
stroke-width: ${m}px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.railroad-nonterminal text {
|
|
28
|
+
fill: ${s};
|
|
29
|
+
font-family: ${t};
|
|
30
|
+
font-size: ${r}px;
|
|
31
|
+
text-anchor: middle;
|
|
32
|
+
dominant-baseline: middle;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.railroad-line {
|
|
36
|
+
stroke: ${d};
|
|
37
|
+
stroke-width: ${m}px;
|
|
38
|
+
fill: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.railroad-start circle,
|
|
42
|
+
.railroad-end circle {
|
|
43
|
+
fill: ${c};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.railroad-comment ellipse {
|
|
47
|
+
fill: ${h};
|
|
48
|
+
stroke: ${p};
|
|
49
|
+
stroke-width: ${m}px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.railroad-comment text {
|
|
53
|
+
fill: ${u};
|
|
54
|
+
font-style: italic;
|
|
55
|
+
font-family: ${t};
|
|
56
|
+
font-size: ${r}px;
|
|
57
|
+
text-anchor: middle;
|
|
58
|
+
dominant-baseline: middle;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.railroad-special rect {
|
|
62
|
+
fill: ${g};
|
|
63
|
+
stroke: ${T};
|
|
64
|
+
stroke-width: ${m}px;
|
|
65
|
+
stroke-dasharray: 5,3;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.railroad-special text {
|
|
69
|
+
fill: ${s};
|
|
70
|
+
font-family: ${t};
|
|
71
|
+
font-size: ${r}px;
|
|
72
|
+
text-anchor: middle;
|
|
73
|
+
dominant-baseline: middle;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.railroad-rule-name {
|
|
77
|
+
font-weight: bold;
|
|
78
|
+
fill: ${f};
|
|
79
|
+
font-family: ${t};
|
|
80
|
+
font-size: ${r}px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.railroad-group {
|
|
84
|
+
/* Grouping container, no specific styles */
|
|
85
|
+
}
|
|
86
|
+
`},"getStyles"),W=class{constructor(){this.d=""}static #e=(0,o.K)(this,"PathBuilder");moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,r,i,a,n,o){return this.d+=`A ${e} ${t} ${r} ${+!!i} ${+!!a} ${n} ${o} `,this}build(){return this.d.trim()}},_=class{constructor(e,t=B()){this.textCache=new Map,this.svg=e,this.config=t}static #e=(0,o.K)(this,"RailroadRenderer");measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),r=t.node().getBBox(),i={width:r.width,height:r.height};return t.remove(),this.textCache.set(e,i),i}renderTerminal(e,t){let r=this.measureText(t),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a).attr("rx",10).attr("ry",10),n.append("text").attr("x",i/2).attr("y",a/2).text(t),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderNonTerminal(e,t){let r=this.measureText(t),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a),n.append("text").attr("x",i/2).attr("y",a/2).text(t),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderSequence(e,t){let r=t.map(t=>this.renderExpression(e,t)),i=0,a=0,n=0;for(let e of r)i+=e.dimensions.width,a=Math.max(a,e.dimensions.up),n=Math.max(n,e.dimensions.down);i+=(r.length-1)*this.config.horizontalSeparation;let o=e.append("g").attr("class","railroad-sequence"),l=0;for(let e=0;e<r.length;e++){let t=r[e],i=a-t.dimensions.up;if(o.node().appendChild(t.element).setAttribute("transform",`translate(${l}, ${i})`),e<r.length-1){let e=l+t.dimensions.width,r=e+this.config.horizontalSeparation,i=a;o.append("path").attr("class","railroad-line").attr("d",new W().moveTo(e,i).lineTo(r,i).build())}l+=t.dimensions.width+this.config.horizontalSeparation}return{element:o.node(),dimensions:{width:i,height:a+n,up:a,down:n}}}renderChoice(e,t){let r=t.map(t=>this.renderExpression(e,t)),i=0,a=0;for(let e of r)i=Math.max(i,e.dimensions.width),a+=e.dimensions.height;a+=(r.length-1)*this.config.verticalSeparation;let n=this.config.arcRadius,o=i+4*n,l=e.append("g").attr("class","railroad-choice"),s=0,d=a/2;for(let e of r){let t=s,r=t+e.dimensions.up,a=2*n+(i-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute("transform",`translate(${a}, ${t})`);let m=new W,c=r>d;r===d?m.moveTo(0,d).lineTo(a,r):m.moveTo(0,d).arcTo(n,n,0,!1,c,n,d+(c?n:-n)).lineTo(n,r-(c?n:-n)).arcTo(n,n,0,!1,!c,2*n,r).lineTo(a,r),l.append("path").attr("class","railroad-line").attr("d",m.build());let h=new W,p=a+e.dimensions.width,u=o-2*n;r===d?h.moveTo(p,r).lineTo(o,d):h.moveTo(p,r).lineTo(u,r).arcTo(n,n,0,!1,!c,o-n,r+(c?-n:n)).lineTo(o-n,d+(c?n:-n)).arcTo(n,n,0,!1,c,o,d),l.append("path").attr("class","railroad-line").attr("d",h.build()),s+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:o,height:a,up:d,down:a-d}}}renderOptional(e,t){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=2*i,n=r.dimensions.width+4*i,o=r.dimensions.height+a,l=e.append("g").attr("class","railroad-optional"),s=2*i;l.node().appendChild(r.element).setAttribute("transform",`translate(${s}, ${a})`);let d=a+r.dimensions.up,m=new W().moveTo(0,d).lineTo(2*i,d);l.append("path").attr("class","railroad-line").attr("d",m.build());let c=new W().moveTo(s+r.dimensions.width,d).lineTo(n,d);l.append("path").attr("class","railroad-line").attr("d",c.build());let h=new W().moveTo(0,d).arcTo(i,i,0,!1,!1,i,d-i).lineTo(i,i).arcTo(i,i,0,!1,!0,2*i,0).lineTo(n-2*i,0).arcTo(i,i,0,!1,!0,n-i,i).lineTo(n-i,d-i).arcTo(i,i,0,!1,!1,n,d);return l.append("path").attr("class","railroad-line").attr("d",h.build()),{element:l.node(),dimensions:{width:n,height:o,up:d,down:o-d}}}renderRepetition(e,t,r){let i=this.renderExpression(e,t),a=this.config.arcRadius,n=2*a,o=i.dimensions.width+4*a,l=0===r,s=i.dimensions.height+n+(l?n:0),d=e.append("g").attr("class","railroad-repetition"),m=2*a,c=l?n:0;d.node().appendChild(i.element).setAttribute("transform",`translate(${m}, ${c})`);let h=c+i.dimensions.up;d.append("path").attr("class","railroad-line").attr("d",new W().moveTo(0,h).lineTo(2*a,h).build()),d.append("path").attr("class","railroad-line").attr("d",new W().moveTo(m+i.dimensions.width,h).lineTo(o,h).build());let p=c+i.dimensions.height+a,u=new W().moveTo(m+i.dimensions.width,h).arcTo(a,a,0,!1,!0,m+i.dimensions.width+a,h+a).lineTo(m+i.dimensions.width+a,p).arcTo(a,a,0,!1,!0,m+i.dimensions.width,p+a).lineTo(2*a,p+a).arcTo(a,a,0,!1,!0,a,p).lineTo(a,h+a).arcTo(a,a,0,!1,!0,2*a,h);if(d.append("path").attr("class","railroad-line").attr("d",u.build()),l){let e=new W().moveTo(0,h).arcTo(a,a,0,!1,!1,a,h-a).lineTo(a,a).arcTo(a,a,0,!1,!0,2*a,0).lineTo(o-2*a,0).arcTo(a,a,0,!1,!0,o-a,a).lineTo(o-a,h-a).arcTo(a,a,0,!1,!1,o,h);d.append("path").attr("class","railroad-line").attr("d",e.build())}return{element:d.node(),dimensions:{width:o,height:s,up:h,down:s-h}}}renderSpecial(e,t){let r=this.measureText("? "+t+" ?"),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a),n.append("text").attr("x",i/2).attr("y",a/2).text("? "+t+" ?"),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderExpression(e,t){switch(t.type){case"terminal":return this.renderTerminal(e,t.value);case"nonterminal":return this.renderNonTerminal(e,t.name);case"sequence":return this.renderSequence(e,t.elements);case"choice":return this.renderChoice(e,t.alternatives);case"optional":return this.renderOptional(e,t.element);case"repetition":return this.renderRepetition(e,t.element,t.min);case"special":return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let r=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${t})`),i=e.name+" =",a=this.measureText(i).width+20,n=a+20,o=r.append("g"),l=this.renderExpression(o,e.definition),s=Math.max(20,l.dimensions.up),d=s-l.dimensions.up;return o.attr("transform",`translate(${n}, ${d})`),r.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(i),r.append("g").attr("class","railroad-start").append("circle").attr("cx",a).attr("cy",s).attr("r",this.config.markerRadius),r.append("g").attr("class","railroad-end").append("circle").attr("cx",n+l.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),r.append("path").attr("class","railroad-line").attr("d",new W().moveTo(a+this.config.markerRadius,s).lineTo(n,s).build()),r.append("path").attr("class","railroad-line").attr("d",new W().moveTo(n+l.dimensions.width,s).lineTo(n+l.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,d+l.dimensions.height+2*this.config.padding),width:n+l.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,r=0;for(let i of e){let e=this.renderRule(i,t);t+=e.height+this.config.verticalSeparation,r=Math.max(r,e.width)}return{width:r+2*this.config.padding,height:t+this.config.padding}}},q=(0,o.K)((e,t,r)=>{(0,a.a$)(e,t.height,t.width,r),e.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),V={draw:(0,o.K)((e,t,r)=>{n.R.debug("[Railroad] Rendering diagram\n"+e);try{let e=(0,i.D)(t);e.attr("class","railroad-diagram");let r=(0,a.zj)().railroad,o=r?.useMaxWidth??!0,l=S.getRules();if(n.R.debug(`[Railroad] Rendering ${l.length} rules`),0===l.length){n.R.warn("[Railroad] No rules to render"),q(e,{height:100,width:200},o);return}let s=new _(e,B()).renderDiagram(l);q(e,s,o),n.R.debug("[Railroad] Render complete")}catch(e){throw n.R.error("[Railroad] Render error:",e),e}},"draw")}}}]);
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2432],{5377:(t,e,r)=>{r.d(e,{diagram:()=>eg});var a=r(71662),i=r(44701),s=r(77809),n=r(19836);r(39457);var l=r(86305),o=r(37325),d=r(56037),c=r(89851),h=r(9898),g=r(72555),u=r(13222),y=r(33948),p=r(92821),x=function(){var t=(0,c.K)(function(t,e,r,a){for(r=r||{},a=t.length;a--;r[t[a]]=e);return r},"o"),e=[1,15],r=[1,7],a=[1,13],i=[1,14],s=[1,19],n=[1,16],l=[1,17],o=[1,18],d=[8,30],h=[8,10,21,28,29,30,31,39,43,46],g=[1,23],u=[1,24],y=[8,10,15,16,21,28,29,30,31,39,43,46],p=[8,10,15,16,21,27,28,29,30,31,39,43,46],x=[1,49],b={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,c.K)(function(t,e,r,a,i,s,n){var l=s.length-1;switch(i){case 4:a.getLogger().debug("Rule: separator (NL) ");break;case 5:a.getLogger().debug("Rule: separator (Space) ");break;case 6:a.getLogger().debug("Rule: separator (EOF) ");break;case 7:a.getLogger().debug("Rule: hierarchy: ",s[l-1]),a.setHierarchy(s[l-1]);break;case 8:a.getLogger().debug("Stop NL ");break;case 9:a.getLogger().debug("Stop EOF ");break;case 10:a.getLogger().debug("Stop NL2 ");break;case 11:a.getLogger().debug("Stop EOF2 ");break;case 12:a.getLogger().debug("Rule: statement: ",s[l]),"number"==typeof s[l].length?this.$=s[l]:this.$=[s[l]];break;case 13:a.getLogger().debug("Rule: statement #2: ",s[l-1]),this.$=[s[l-1]].concat(s[l]);break;case 14:a.getLogger().debug("Rule: link: ",s[l],t),this.$={edgeTypeStr:s[l],label:""};break;case 15:a.getLogger().debug("Rule: LABEL link: ",s[l-3],s[l-1],s[l]),this.$={edgeTypeStr:s[l],label:s[l-1]};break;case 18:let o=parseInt(s[l]),d=a.generateId();this.$={id:d,type:"space",label:"",width:o,children:[]};break;case 23:a.getLogger().debug("Rule: (nodeStatement link node) ",s[l-2],s[l-1],s[l]," typestr: ",s[l-1].edgeTypeStr);let c=a.edgeStrToEdgeData(s[l-1].edgeTypeStr),h=a.edgeStrToEdgeStartData(s[l-1].edgeTypeStr),g=a.edgeStrToThickness(s[l-1].edgeTypeStr),u=a.edgeStrToPattern(s[l-1].edgeTypeStr);this.$=[{id:s[l-2].id,label:s[l-2].label,type:s[l-2].type,directions:s[l-2].directions},{id:s[l-2].id+"-"+s[l].id,start:s[l-2].id,end:s[l].id,label:s[l-1].label,type:"edge",thickness:g,pattern:u,directions:s[l].directions,arrowTypeEnd:c,arrowTypeStart:h},{id:s[l].id,label:s[l].label,type:a.typeStr2Type(s[l].typeStr),directions:s[l].directions}];break;case 24:a.getLogger().debug("Rule: nodeStatement (abc88 node size) ",s[l-1],s[l]),this.$={id:s[l-1].id,label:s[l-1].label,type:a.typeStr2Type(s[l-1].typeStr),directions:s[l-1].directions,widthInColumns:parseInt(s[l],10)};break;case 25:a.getLogger().debug("Rule: nodeStatement (node) ",s[l]),this.$={id:s[l].id,label:s[l].label,type:a.typeStr2Type(s[l].typeStr),directions:s[l].directions,widthInColumns:1};break;case 26:a.getLogger().debug("APA123",this?this:"na"),a.getLogger().debug("COLUMNS: ",s[l]),this.$={type:"column-setting",columns:"auto"===s[l]?-1:parseInt(s[l])};break;case 27:a.getLogger().debug("Rule: id-block statement : ",s[l-2],s[l-1]),a.generateId(),this.$={...s[l-2],type:"composite",children:s[l-1]};break;case 28:a.getLogger().debug("Rule: blockStatement : ",s[l-2],s[l-1],s[l]);let y=a.generateId();this.$={id:y,type:"composite",label:"",children:s[l-1]};break;case 29:a.getLogger().debug("Rule: node (NODE_ID separator): ",s[l]),this.$={id:s[l]};break;case 30:a.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",s[l-1],s[l]),this.$={id:s[l-1],label:s[l].label,typeStr:s[l].typeStr,directions:s[l].directions};break;case 31:a.getLogger().debug("Rule: dirList: ",s[l]),this.$=[s[l]];break;case 32:a.getLogger().debug("Rule: dirList: ",s[l-1],s[l]),this.$=[s[l-1]].concat(s[l]);break;case 33:a.getLogger().debug("Rule: nodeShapeNLabel: ",s[l-2],s[l-1],s[l]),this.$={typeStr:s[l-2]+s[l],label:s[l-1]};break;case 34:a.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",s[l-3],s[l-2]," #3:",s[l-1],s[l]),this.$={typeStr:s[l-3]+s[l],label:s[l-2],directions:s[l-1]};break;case 35:case 36:this.$={type:"classDef",id:s[l-1].trim(),css:s[l].trim()};break;case 37:this.$={type:"applyClass",id:s[l-1].trim(),styleClass:s[l].trim()};break;case 38:this.$={type:"applyStyles",id:s[l-1].trim(),stylesStr:s[l].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:i,31:s,39:n,43:l,46:o},{8:[1,20]},t(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:a,29:i,31:s,39:n,43:l,46:o}),t(h,[2,16],{14:22,15:g,16:u}),t(h,[2,17]),t(h,[2,18]),t(h,[2,19]),t(h,[2,20]),t(h,[2,21]),t(h,[2,22]),t(y,[2,25],{27:[1,25]}),t(h,[2,26]),{19:26,26:12,31:s},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:i,31:s,39:n,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(p,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(d,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},t(y,[2,24]),{10:e,11:37,13:4,14:22,15:g,16:u,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:i,31:s,39:n,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(p,[2,30]),{18:[1,43]},{18:[1,44]},t(y,[2,23]),{18:[1,45]},{30:[1,46]},t(h,[2,28]),t(h,[2,35]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),{36:[1,47]},{33:48,34:x},{15:[1,50]},t(h,[2,27]),t(p,[2,33]),{38:[1,51]},{33:52,34:x,38:[2,31]},{31:[2,15]},t(p,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,c.K)(function(t,e){if(e.recoverable)this.trace(t);else{var r=Error(t);throw r.hash=e,r}},"parseError"),parse:(0,c.K)(function(t){var e=this,r=[0],a=[],i=[null],s=[],n=this.table,l="",o=0,d=0,h=0,g=s.slice.call(arguments,1),u=Object.create(this.lexer),y={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(y[p]=this.yy[p]);u.setInput(t,y),y.lexer=u,y.parser=this,void 0===u.yylloc&&(u.yylloc={});var x=u.yylloc;s.push(x);var b=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=a.pop()||u.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(t){r.length=r.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,c.K)(f,"lex");for(var w,m,k,L,S,_,E,D,R,K={};;){if(k=r[r.length-1],this.defaultActions[k]?L=this.defaultActions[k]:(null==w&&(w=f()),L=n[k]&&n[k][w]),void 0===L||!L.length||!L[0]){var $="";for(_ in R=[],n[k])this.terminals_[_]&&_>2&&R.push("'"+this.terminals_[_]+"'");$=u.showPosition?"Parse error on line "+(o+1)+":\n"+u.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError($,{text:u.match,token:this.terminals_[w]||w,line:u.yylineno,loc:x,expected:R})}if(L[0]instanceof Array&&L.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+w);switch(L[0]){case 1:r.push(w),i.push(u.yytext),s.push(u.yylloc),r.push(L[1]),w=null,m?(w=m,m=null):(d=u.yyleng,l=u.yytext,o=u.yylineno,x=u.yylloc,h>0&&h--);break;case 2:if(E=this.productions_[L[1]][1],K.$=i[i.length-E],K._$={first_line:s[s.length-(E||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(E||1)].first_column,last_column:s[s.length-1].last_column},b&&(K._$.range=[s[s.length-(E||1)].range[0],s[s.length-1].range[1]]),void 0!==(S=this.performAction.apply(K,[l,d,o,y,L[1],i,s].concat(g))))return S;E&&(r=r.slice(0,-1*E*2),i=i.slice(0,-1*E),s=s.slice(0,-1*E)),r.push(this.productions_[L[1]][0]),i.push(K.$),s.push(K._$),D=n[r[r.length-2]][r[r.length-1]],r.push(D);break;case 3:return!0}}return!0},"parse")};function f(){this.yy={}}return b.lexer={EOF:1,parseError:(0,c.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,c.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,c.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,c.K)(function(t){var e=t.length,r=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 a=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),r.length-1&&(this.yylineno-=r.length-1);var i=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.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,c.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,c.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,c.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,c.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,c.K)(function(t,e){var r,a,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.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],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,r,a,i=this._currentRules(),s=0;s<i.length;s++)if((r=this._input.match(this.rules[i[s]]))&&(!e||r[0].length>e[0].length)){if(e=r,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,c.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.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,c.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,c.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,c.K)(function(t,e,r,a){switch(r){case 0:return t.getLogger().debug("Found block-beta"),10;case 1:return t.getLogger().debug("Found id-block"),29;case 2:return t.getLogger().debug("Found block"),10;case 3:t.getLogger().debug(".",e.yytext);break;case 4:t.getLogger().debug("_",e.yytext);break;case 5:return 5;case 6:return e.yytext=-1,28;case 7:return e.yytext=e.yytext.replace(/columns\s+/,""),t.getLogger().debug("COLUMNS (LEX)",e.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:t.getLogger().debug("LEX: POPPING STR:",e.yytext),this.popState();break;case 13:return t.getLogger().debug("LEX: STR end:",e.yytext),"STR";case 14:return e.yytext=e.yytext.replace(/space\:/,""),t.getLogger().debug("SPACE NUM (LEX)",e.yytext),21;case 15:return e.yytext="1",t.getLogger().debug("COLUMNS (LEX)",e.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),t.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),t.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),t.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),t.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),t.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),t.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),t.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),t.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),t.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),t.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),t.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),t.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return t.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return t.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return t.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return t.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return t.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return t.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return t.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return t.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),t.getLogger().debug("LEX ARR START"),37;case 74:return t.getLogger().debug("Lex: NODE_ID",e.yytext),31;case 75:return t.getLogger().debug("Lex: EOF",e.yytext),8;case 78:return"NODE_DESCR";case 80:t.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:t.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return t.getLogger().debug("LEX: NODE_DESCR:",e.yytext),"NODE_DESCR";case 83:t.getLogger().debug("LEX POPPING"),this.popState();break;case 84:t.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (right): dir:",e.yytext),"DIR";case 86:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (left):",e.yytext),"DIR";case 87:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (x):",e.yytext),"DIR";case 88:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (y):",e.yytext),"DIR";case 89:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (up):",e.yytext),"DIR";case 90:return e.yytext=e.yytext.replace(/^,\s*/,""),t.getLogger().debug("Lex (down):",e.yytext),"DIR";case 91:return e.yytext="]>",t.getLogger().debug("Lex (ARROW_DIR end):",e.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 93:case 94:case 95:return t.getLogger().debug("Lex: LINK",e.yytext),15;case 96:case 97:case 98:return t.getLogger().debug("Lex: START_LINK",e.yytext),this.pushState("LLABEL"),16;case 100:return t.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),t.getLogger().debug("Lex: LINK","#"+e.yytext+"#"),15;case 102:case 103:return this.popState(),t.getLogger().debug("Lex: LINK",e.yytext),15;case 104:return t.getLogger().debug("Lex: COLON",e.yytext),e.yytext=e.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,c.K)(f,"Parser"),f.prototype=b,b.Parser=f,new f}();x.parser=x;var b=new Map,f=[],w=new Map,m="color",k="fill",L=new Map,S="",_=(0,c.K)(t=>o.Y2.sanitizeText(t,(0,o.D7)()),"sanitizeText"),E=(0,c.K)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=L.get(t);r||(r={id:t,styles:[],textStyles:[]},L.set(t,r)),null!=e&&e.split(",").forEach(t=>{let e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(m).exec(t)){let t=e.replace(k,"bgFill").replace(m,k);r.textStyles.push(t)}r.styles.push(e)})},"addStyleClass"),D=(0,c.K)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=b.get(t);null!=e&&(r.styles=e.split(","))},"addStyle2Node"),R=(0,c.K)(function(t,e){t.split(",").forEach(function(t){let r=b.get(t);if(void 0===r){let e=t.trim();r={id:e,type:"na",children:[]},b.set(e,r)}r.classes||(r.classes=[]),r.classes.push(e)})},"setCssClass"),K=(0,c.K)((t,e)=>{let r=t.flat(),a=[],i=r.find(t=>t?.type==="column-setting"),s=i?.columns??-1;for(let t of r){if("number"==typeof s&&s>0&&"column-setting"!==t.type&&"number"==typeof t.widthInColumns&&t.widthInColumns>s&&d.R.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${s}`),t.label&&(t.label=_(t.label)),"classDef"===t.type){E(t.id,t.css);continue}if("applyClass"===t.type){R(t.id,t?.styleClass??"");continue}if("applyStyles"===t.type){t?.stylesStr&&D(t.id,t?.stylesStr);continue}if("column-setting"===t.type)e.columns=t.columns??-1;else if("edge"===t.type){let e=(w.get(t.id)??0)+1;w.set(t.id,e),t.id=e+"-"+t.id,f.push(t)}else{t.label||("composite"===t.type?t.label="":t.label=t.id);let e=b.get(t.id);if(void 0===e?b.set(t.id,t):("na"!==t.type&&(e.type=t.type),t.label!==t.id&&(e.label=t.label)),t.children&&K(t.children,t),"space"===t.type){let e=t.width??1;for(let r=0;r<e;r++){let e=(0,h.o)(t);e.id=e.id+"-"+r,b.set(e.id,e),a.push(e)}}else void 0===e&&a.push(t)}}e.children=a},"populateBlockDatabase"),$=[],v={id:"root",type:"composite",children:[],columns:-1},T=(0,c.K)(()=>{d.R.debug("Clear called"),(0,o.IU)(),b=new Map([["root",v={id:"root",type:"composite",children:[],columns:-1}]]),$=[],L=new Map,f=[],w=new Map,S=""},"clear");function C(t){switch(d.R.debug("typeStr2Type",t),t){case"[]":return"square";case"()":return d.R.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function I(t){return(d.R.debug("typeStr2Type",t),"=="===t)?"thick":"normal"}function N(t){switch(t.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function B(t){switch(t.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function z(t){return t.includes("==")?"thick":"normal"}function O(t){return t.includes(".-")?"dotted":"solid"}(0,c.K)(C,"typeStr2Type"),(0,c.K)(I,"edgeTypeStr2Type"),(0,c.K)(N,"edgeStrToEdgeData"),(0,c.K)(B,"edgeStrToEdgeStartData"),(0,c.K)(z,"edgeStrToThickness"),(0,c.K)(O,"edgeStrToPattern");var A=0,M=(0,c.K)(()=>(A++,"id-"+Math.random().toString(36).substr(2,12)+"-"+A),"generateId"),P=(0,c.K)(t=>{v.children=t,K(t,v),$=v.children},"setHierarchy"),W=(0,c.K)(t=>{let e=b.get(t);return e?e.columns?e.columns:e.children?e.children.length:-1:-1},"getColumns"),Y=(0,c.K)(()=>[...b.values()],"getBlocksFlat"),F=(0,c.K)(()=>$||[],"getBlocks"),X=(0,c.K)(()=>f,"getEdges"),j=(0,c.K)(t=>b.get(t),"getBlock"),U=(0,c.K)(t=>{b.set(t.id,t)},"setBlock"),H=(0,c.K)(t=>{S=t},"setDiagramId"),Z=(0,c.K)(()=>S,"getDiagramId"),q=(0,c.K)(()=>d.R,"getLogger"),G=(0,c.K)(function(){return L},"getClasses"),J={getConfig:(0,c.K)(()=>(0,o.zj)().block,"getConfig"),typeStr2Type:C,edgeTypeStr2Type:I,edgeStrToEdgeData:N,edgeStrToEdgeStartData:B,edgeStrToThickness:z,edgeStrToPattern:O,getLogger:q,getBlocksFlat:Y,getBlocks:F,getEdges:X,setHierarchy:P,getBlock:j,setBlock:U,getColumns:W,getClasses:G,clear:T,generateId:M,setDiagramId:H,getDiagramId:Z},Q=(0,c.K)((t,e)=>{let r=g.A,a=r(t,"r"),i=r(t,"g"),s=r(t,"b");return u.A(a,i,s,e)},"fade"),V=(0,c.K)(t=>`.label {
|
|
2
|
+
font-family: ${t.fontFamily};
|
|
3
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
4
|
+
}
|
|
5
|
+
.cluster-label text {
|
|
6
|
+
fill: ${t.titleColor};
|
|
7
|
+
}
|
|
8
|
+
.cluster-label span,p {
|
|
9
|
+
color: ${t.titleColor};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.label text,span,p {
|
|
15
|
+
fill: ${t.nodeTextColor||t.textColor};
|
|
16
|
+
color: ${t.nodeTextColor||t.textColor};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.node rect,
|
|
20
|
+
.node circle,
|
|
21
|
+
.node ellipse,
|
|
22
|
+
.node polygon,
|
|
23
|
+
.node path {
|
|
24
|
+
fill: ${t.mainBkg};
|
|
25
|
+
stroke: ${t.nodeBorder};
|
|
26
|
+
stroke-width: 1px;
|
|
27
|
+
}
|
|
28
|
+
.flowchart-label text {
|
|
29
|
+
text-anchor: middle;
|
|
30
|
+
}
|
|
31
|
+
// .flowchart-label .text-outer-tspan {
|
|
32
|
+
// text-anchor: middle;
|
|
33
|
+
// }
|
|
34
|
+
// .flowchart-label .text-inner-tspan {
|
|
35
|
+
// text-anchor: start;
|
|
36
|
+
// }
|
|
37
|
+
|
|
38
|
+
.node .label {
|
|
39
|
+
text-align: center;
|
|
40
|
+
}
|
|
41
|
+
.node.clickable {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.arrowheadPath {
|
|
46
|
+
fill: ${t.arrowheadColor};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.edgePath .path {
|
|
50
|
+
stroke: ${t.lineColor};
|
|
51
|
+
stroke-width: 2.0px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.flowchart-link {
|
|
55
|
+
stroke: ${t.lineColor};
|
|
56
|
+
fill: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.edgeLabel {
|
|
60
|
+
background-color: ${t.edgeLabelBackground};
|
|
61
|
+
/*
|
|
62
|
+
* This is for backward compatibility with existing code that didn't
|
|
63
|
+
* add a \`<p>\` around edge labels.
|
|
64
|
+
*
|
|
65
|
+
* TODO: We should probably remove this in a future release.
|
|
66
|
+
*/
|
|
67
|
+
p {
|
|
68
|
+
margin: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
display: inline;
|
|
71
|
+
}
|
|
72
|
+
rect {
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
background-color: ${t.edgeLabelBackground};
|
|
75
|
+
fill: ${t.edgeLabelBackground};
|
|
76
|
+
}
|
|
77
|
+
text-align: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* For html labels only */
|
|
81
|
+
.labelBkg {
|
|
82
|
+
background-color: ${t.edgeLabelBackground};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.node .cluster {
|
|
86
|
+
// fill: ${Q(t.mainBkg,.5)};
|
|
87
|
+
fill: ${Q(t.clusterBkg,.5)};
|
|
88
|
+
stroke: ${Q(t.clusterBorder,.2)};
|
|
89
|
+
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
90
|
+
stroke-width: 1px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cluster text {
|
|
94
|
+
fill: ${t.titleColor};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cluster span,p {
|
|
98
|
+
color: ${t.titleColor};
|
|
99
|
+
}
|
|
100
|
+
/* .cluster div {
|
|
101
|
+
color: ${t.titleColor};
|
|
102
|
+
} */
|
|
103
|
+
|
|
104
|
+
div.mermaidTooltip {
|
|
105
|
+
position: absolute;
|
|
106
|
+
text-align: center;
|
|
107
|
+
max-width: 200px;
|
|
108
|
+
padding: 2px;
|
|
109
|
+
font-family: ${t.fontFamily};
|
|
110
|
+
font-size: 12px;
|
|
111
|
+
background: ${t.tertiaryColor};
|
|
112
|
+
border: 1px solid ${t.border2};
|
|
113
|
+
border-radius: 2px;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
z-index: 100;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.flowchartTitleText {
|
|
119
|
+
text-anchor: middle;
|
|
120
|
+
font-size: 18px;
|
|
121
|
+
fill: ${t.textColor};
|
|
122
|
+
}
|
|
123
|
+
${(0,a.o)()}
|
|
124
|
+
`,"getStyles"),tt=(0,c.K)((t,e,r,a)=>{e.forEach(e=>{to[e](t,r,a)})},"insertMarkers"),te=(0,c.K)((t,e,r)=>{d.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),tr=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),ta=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),ti=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),ts=(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),tn=(0,c.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),tl=(0,c.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),to={extension:te,composition:tr,aggregation:ta,dependency:ti,lollipop:ts,point:tn,circle:tl,cross:(0,c.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:(0,c.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb")};function td(t,e){if(0===t||!Number.isInteger(t))throw Error("Columns must be an integer !== 0.");if(e<0||!Number.isInteger(e))throw Error("Position must be a non-negative integer."+e);if(t<0)return{px:e,py:0};if(1===t)return{px:0,py:e};let r=Math.floor(e/t);return{px:e%t,py:r}}(0,c.K)(td,"calculateBlockPosition");var tc=(0,c.K)(t=>{let e=0,r=0;for(let a of t.children){let{width:t,height:i,x:s,y:n}=a.size??{width:0,height:0,x:0,y:0};if(d.R.debug("getMaxChildSize abc95 child:",a.id,"width:",t,"height:",i,"x:",s,"y:",n,a.type),"space"===a.type)continue;let l=t/(a.widthInColumns??1);l>e&&(e=l),i>r&&(r=i)}return{width:e,height:r}},"getMaxChildSize");function th(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:8;d.R.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",r),t?.size?.width||(t.size={width:r,height:a,x:0,y:0});let s=0,n=0;if(t.children?.length>0){for(let r of t.children)th(r,e,0,0,i);let l=tc(t);for(let e of(s=l.width,n=l.height,d.R.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",s,n),t.children))e.size&&(d.R.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${s} ${n} ${JSON.stringify(e.size)}`),e.size.width=s*(e.widthInColumns??1)+i*((e.widthInColumns??1)-1),e.size.height=n,e.size.x=0,e.size.y=0,d.R.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${s} maxHeight:${n}`));for(let r of t.children)th(r,e,s,n,i);let o=t.columns??-1,c=0;for(let e of t.children)c+=e.widthInColumns??1;let h=t.children.length;o>0&&o<c&&(h=o);let g=Math.ceil(c/h),u=h*(s+i)+i,y=g*(n+i)+i;if(u<r){d.R.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${r} siblingHeight ${a} width ${u}`),u=r,y=a;let e=(r-h*i-i)/h,l=(a-g*i-i)/g;for(let r of(d.R.debug("Size indata abc88",t.id,"childWidth",e,"maxWidth",s),d.R.debug("Size indata abc88",t.id,"childHeight",l,"maxHeight",n),d.R.debug("Size indata abc88 xSize",h,"padding",i),t.children))r.size&&(r.size.width=e,r.size.height=l,r.size.x=0,r.size.y=0)}if(d.R.debug(`abc95 (finale calc) ${t.id} xSize ${h} ySize ${g} columns ${o}${t.children.length} width=${Math.max(u,t.size?.width||0)}`),u<(t?.size?.width||0)){u=t?.size?.width||0;let e=o>0?Math.min(t.children.length,o):t.children.length;if(e>0){let r=(u-e*i-i)/e;for(let e of(d.R.debug("abc95 (growing to fit) width",t.id,u,t.size?.width,r),t.children))e.size&&(e.size.width=r)}}t.size={width:u,height:y,x:0,y:0}}d.R.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}function tg(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;d.R.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);let a=t.columns??-1;if(d.R.debug("layoutBlocks columns abc95",t.id,"=>",a,t),t.children&&t.children.length>0){let i=t?.children[0]?.size?.width??0,s=t.children.length*i+(t.children.length-1)*r;d.R.debug("widthOfChildren 88",s,"posX");let n=new Map;{let e=0;for(let r of t.children){if(!r.size)continue;let{py:t}=td(a,e),i=n.get(t)??0;r.size.height>i&&n.set(t,r.size.height);let s=r?.widthInColumns??1;a>0&&(s=Math.min(s,a-e%a)),e+=s}}let l=new Map;{let t=0;for(let e of[...n.keys()].sort((t,e)=>t-e))l.set(e,t),t+=(n.get(e)??0)+r}let o=0;d.R.debug("abc91 block?.size?.x",t.id,t?.size?.x);let c=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-r,h=0;for(let i of t.children){if(!i.size)continue;let{width:s,height:g}=i.size,{px:u,py:y}=td(a,o);if(y!=h&&(h=y,c=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-r,d.R.debug("New row in layout for block",t.id," and child ",i.id,h)),d.R.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${o} (px, py) ${u},${y} (${t?.size?.x},${t?.size?.y}) parent: ${t.id} width: ${s}${r}`),t.size){let e=s/2;i.size.x=c+r+e,d.R.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${c} new startingPosX${i.size.x} ${e} padding=${r} width=${s} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${s*(i?.widthInColumns??1)/2}`),c=i.size.x+e;let a=l.get(y)??0,o=n.get(y)??g;i.size.y=t.size.y-t.size.height/2+a+o/2+r,d.R.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${c}${r}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${s*(i?.widthInColumns??1)/2}`)}i.children&&tg(i,e,r);let p=i?.widthInColumns??1;a>0&&(p=Math.min(p,a-o%a)),o+=p,d.R.debug("abc88 columnsPos",i,o)}}d.R.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}function tu(t){let{minX:e,minY:r,maxX:a,maxY:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{minX:0,minY:0,maxX:0,maxY:0};if(t.size&&"root"!==t.id){let{x:s,y:n,width:l,height:o}=t.size;s-l/2<e&&(e=s-l/2),n-o/2<r&&(r=n-o/2),s+l/2>a&&(a=s+l/2),n+o/2>i&&(i=n+o/2)}if(t.children)for(let s of t.children)({minX:e,minY:r,maxX:a,maxY:i}=tu(s,{minX:e,minY:r,maxX:a,maxY:i}));return{minX:e,minY:r,maxX:a,maxY:i}}function ty(t){let e=t.getBlock("root");if(!e)return;let r=(0,o.D7)()?.block?.padding??8;th(e,t,0,0,r),tg(e,t,r),d.R.debug("getBlocks",JSON.stringify(e,null,2));let{minX:a,minY:i,maxX:s,maxY:n}=tu(e);return{x:a,y:i,width:s-a,height:n-i}}(0,c.K)(th,"setBlockSizes"),(0,c.K)(tg,"layoutBlocks"),(0,c.K)(tu,"findBounds"),(0,c.K)(ty,"layout");var tp=(0,c.K)(async function(t,e,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=e||"";"object"==typeof s&&(s=s[0]);let l=(0,o.D7)(),d=(0,o.E)(l);return await (0,n.G)(t,s,{style:r,isTitle:a,useHtmlLabels:d,markdown:!1,isNode:i,width:1/0},l)},"createLabel"),tx=(0,c.K)((t,e,r,a,i)=>{e.arrowTypeStart&&tf(t,"start",e.arrowTypeStart,r,a,i),e.arrowTypeEnd&&tf(t,"end",e.arrowTypeEnd,r,a,i)},"addEdgeMarkers"),tb={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},tf=(0,c.K)((t,e,r,a,i,s)=>{let n=tb[r];n?t.attr(`marker-${e}`,`url(${a}#${i}_${s}-${n}${"start"===e?"Start":"End"})`):d.R.warn(`Unknown arrow type: ${r}`)},"addEdgeMarker"),tw={},tm={},tk=(0,c.K)(async(t,e)=>{let r,a=(0,o.D7)(),s=(0,o.E)(a),l=t.insert("g").attr("class","edgeLabel"),d=l.insert("g").attr("class","label"),c="markdown"===e.labelType,h=await (0,n.G)(t,e.label,{style:e.labelStyle,useHtmlLabels:s,addSvgBackground:c,isNode:!1,markdown:c,width:c?void 0:1/0},a);d.node().appendChild(h);let g=h.getBBox(),u=g;if(s){let t=h.children[0],e=(0,y.Ltv)(h);u=g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}else{let t=(0,y.Ltv)(h).select("text").node();t&&"function"==typeof t.getBBox&&(u=t.getBBox())}if(d.attr("transform",(0,i.Wg)(u,s)),tw[e.id]=l,e.width=g.width,e.height=g.height,e.startLabelLeft){let a=t.insert("g").attr("class","edgeTerminals"),n=a.insert("g").attr("class","inner"),l=await tp(n,e.startLabelLeft,e.labelStyle);r=l;let o=l.getBBox();if(s){let t=l.children[0],e=(0,y.Ltv)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,i.Wg)(o,s)),tm[e.id]||(tm[e.id]={}),tm[e.id].startLeft=a,tL(r,e.startLabelLeft)}if(e.startLabelRight){let a=t.insert("g").attr("class","edgeTerminals"),n=a.insert("g").attr("class","inner"),l=await tp(n,e.startLabelRight,e.labelStyle);r=l;let o=l.getBBox();if(s){let t=l.children[0],e=(0,y.Ltv)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,i.Wg)(o,s)),tm[e.id]||(tm[e.id]={}),tm[e.id].startRight=a,tL(r,e.startLabelRight)}if(e.endLabelLeft){let a=t.insert("g").attr("class","edgeTerminals"),n=a.insert("g").attr("class","inner"),l=await tp(a,e.endLabelLeft,e.labelStyle);r=l;let o=l.getBBox();if(s){let t=l.children[0],e=(0,y.Ltv)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,i.Wg)(o,s)),tm[e.id]||(tm[e.id]={}),tm[e.id].endLeft=a,tL(r,e.endLabelLeft)}if(e.endLabelRight){let a=t.insert("g").attr("class","edgeTerminals"),n=a.insert("g").attr("class","inner"),l=await tp(a,e.endLabelRight,e.labelStyle);r=l;let o=l.getBBox();if(s){let t=l.children[0],e=(0,y.Ltv)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,i.Wg)(o,s)),tm[e.id]||(tm[e.id]={}),tm[e.id].endRight=a,tL(r,e.endLabelRight)}return h},"insertEdgeLabel");function tL(t,e){(0,o.E)((0,o.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,c.K)(tL,"setTerminalWidth");var tS=(0,c.K)((t,e)=>{d.R.debug("Moving label abc88 ",t.id,t.label,tw[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath,a=(0,o.D7)(),{subGraphTitleTotalMargin:i}=(0,s.O)(a);if(t.label){let a=tw[t.id],s=t.x,n=t.y;if(r){let a=l._K.calcLabelPosition(r);d.R.debug("Moving label "+t.label+" from (",s,",",n,") to (",a.x,",",a.y,") abc88"),e.updatedPath&&(s=a.x,n=a.y)}a.attr("transform",`translate(${s}, ${n+i/2})`)}if(t.startLabelLeft){let e=tm[t.id].startLeft,a=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.startLabelRight){let e=tm[t.id].startRight,a=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.endLabelLeft){let e=tm[t.id].endLeft,a=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}if(t.endLabelRight){let e=tm[t.id].endRight,a=t.x,i=t.y;if(r){let e=l._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);a=e.x,i=e.y}e.attr("transform",`translate(${a}, ${i})`)}},"positionEdgeLabel"),t_=(0,c.K)((t,e)=>{let r=t.x,a=t.y,i=Math.abs(e.x-r),s=Math.abs(e.y-a),n=t.width/2,l=t.height/2;return!!(i>=n)||!!(s>=l)},"outsideNode"),tE=(0,c.K)((t,e,r)=>{d.R.debug(`intersection calc abc89:
|
|
125
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
126
|
+
insidePoint : ${JSON.stringify(r)}
|
|
127
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let a=t.x,i=t.y,s=Math.abs(a-r.x),n=t.width/2,l=r.x<e.x?n-s:n+s,o=t.height/2,c=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*n>Math.abs(a-e.x)*o){let t=r.y<e.y?e.y-o-i:i-o-e.y;l=h*t/c;let a={x:r.x<e.x?r.x+l:r.x-h+l,y:r.y<e.y?r.y+c-t:r.y-c+t};return 0===l&&(a.x=e.x,a.y=e.y),0===h&&(a.x=e.x),0===c&&(a.y=e.y),d.R.debug(`abc89 topp/bott calc, Q ${c}, q ${t}, R ${h}, r ${l}`,a),a}{let t=c*(l=r.x<e.x?e.x-n-a:a-n-e.x)/h,i=r.x<e.x?r.x+h-l:r.x-h+l,s=r.y<e.y?r.y+t:r.y-t;return d.R.debug(`sides calc abc89, Q ${c}, q ${t}, R ${h}, r ${l}`,{_x:i,_y:s}),0===l&&(i=e.x,s=e.y),0===h&&(i=e.x),0===c&&(s=e.y),{x:i,y:s}}},"intersection"),tD=(0,c.K)((t,e)=>{d.R.debug("abc88 cutPathAtIntersect",t,e);let r=[],a=t[0],i=!1;return t.forEach(t=>{if(t_(e,t)||i)a=t,i||r.push(t);else{let s=tE(e,a,t),n=!1;r.forEach(t=>{n=n||t.x===s.x&&t.y===s.y}),r.some(t=>t.x===s.x&&t.y===s.y)||r.push(s),i=!0}}),r},"cutPathAtIntersect"),tR=(0,c.K)(function(t,e,r,a,s,n,l){let c,h=r.points;d.R.debug("abc88 InsertEdge: edge=",r,"e=",e);let g=!1,u=n.node(e.v);var p=n.node(e.w);p?.intersect&&u?.intersect&&((h=h.slice(1,r.points.length-1)).unshift(u.intersect(h[0])),h.push(p.intersect(h[h.length-1]))),r.toCluster&&(d.R.debug("to cluster abc88",a[r.toCluster]),h=tD(r.points,a[r.toCluster].node),g=!0),r.fromCluster&&(d.R.debug("from cluster abc88",a[r.fromCluster]),h=tD(h.reverse(),a[r.fromCluster].node).reverse(),g=!0);let x=h.filter(t=>!Number.isNaN(t.y)),b=y.qrM;r.curve&&("graph"===s||"flowchart"===s)&&(b=r.curve);let{x:f,y:w}=(0,i.RI)(r),m=(0,y.n8j)().x(f).y(w).curve(b);switch(r.thickness){case"normal":c="edge-thickness-normal";break;case"thick":case"invisible":c="edge-thickness-thick";break;default:c=""}switch(r.pattern){case"solid":c+=" edge-pattern-solid";break;case"dotted":c+=" edge-pattern-dotted";break;case"dashed":c+=" edge-pattern-dashed"}let k=t.append("path").attr("d",m(x)).attr("id",r.id).attr("class"," "+c+(r.classes?" "+r.classes:"")).attr("style",r.style),L="";((0,o.D7)().flowchart.arrowMarkerAbsolute||(0,o.D7)().state.arrowMarkerAbsolute)&&(L=(0,o.ID)(!0)),tx(k,r,L,l,s);let S={};return g&&(S.updatedPath=h),S.originalPath=r.points,S},"insertEdge"),tK=(0,c.K)(t=>{let e=new Set;for(let r of t)switch(r){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(r)}return e},"expandAndDeduplicateDirections"),t$=(0,c.K)((t,e,r,a)=>{let i=tK(t),s=e.height+2*r.padding,n=s/2,l=a??e.width+2*n+r.padding,o=r.padding/2;return i.has("right")&&i.has("left")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:n,y:0},{x:l/2,y:2*o},{x:l-n,y:0},{x:l,y:0},{x:l,y:-s/3},{x:l+2*o,y:-s/2},{x:l,y:-2*s/3},{x:l,y:-s},{x:l-n,y:-s},{x:l/2,y:-s-2*o},{x:n,y:-s},{x:0,y:-s},{x:0,y:-2*s/3},{x:-2*o,y:-s/2},{x:0,y:-s/3}]:i.has("right")&&i.has("left")&&i.has("up")?[{x:n,y:0},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:n,y:-s},{x:0,y:-s/2}]:i.has("right")&&i.has("left")&&i.has("down")?[{x:0,y:0},{x:n,y:-s},{x:l-n,y:-s},{x:l,y:0}]:i.has("right")&&i.has("up")&&i.has("down")?[{x:0,y:0},{x:l,y:-n},{x:l,y:-s+n},{x:0,y:-s}]:i.has("left")&&i.has("up")&&i.has("down")?[{x:l,y:0},{x:0,y:-n},{x:0,y:-s+n},{x:l,y:-s}]:i.has("right")&&i.has("left")?[{x:n,y:0},{x:n,y:-o},{x:l-n,y:-o},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:l-n,y:-s+o},{x:n,y:-s+o},{x:n,y:-s},{x:0,y:-s/2}]:i.has("up")&&i.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-n,y:-s+o},{x:l-n,y:-o},{x:l,y:-o}]:i.has("right")&&i.has("up")?[{x:0,y:0},{x:l,y:-n},{x:0,y:-s}]:i.has("right")&&i.has("down")?[{x:0,y:0},{x:l,y:0},{x:0,y:-s}]:i.has("left")&&i.has("up")?[{x:l,y:0},{x:0,y:-n},{x:l,y:-s}]:i.has("left")&&i.has("down")?[{x:l,y:0},{x:0,y:0},{x:l,y:-s}]:i.has("right")?[{x:n,y:-o},{x:n,y:-o},{x:l-n,y:-o},{x:l-n,y:0},{x:l,y:-s/2},{x:l-n,y:-s},{x:l-n,y:-s+o},{x:n,y:-s+o},{x:n,y:-s+o}]:i.has("left")?[{x:n,y:0},{x:n,y:-o},{x:l-n,y:-o},{x:l-n,y:-s+o},{x:n,y:-s+o},{x:n,y:-s},{x:0,y:-s/2}]:i.has("up")?[{x:n,y:-o},{x:n,y:-s+o},{x:0,y:-s+o},{x:l/2,y:-s},{x:l,y:-s+o},{x:l-n,y:-s+o},{x:l-n,y:-o}]:i.has("down")?[{x:l/2,y:0},{x:0,y:-o},{x:n,y:-o},{x:n,y:-s+o},{x:l-n,y:-s+o},{x:l-n,y:-o},{x:l,y:-o}]:[{x:0,y:0}]},"getArrowPoints");function tv(t,e,r,a){var i=t.x,s=t.y,n=i-a.x,l=s-a.y,o=Math.sqrt(e*e*l*l+r*r*n*n),d=Math.abs(e*r*n/o);a.x<i&&(d=-d);var c=Math.abs(e*r*l/o);return a.y<s&&(c=-c),{x:i+d,y:s+c}}function tT(t,e,r){return tv(t,e,e,r)}function tC(t,e,r,a){var i,s,n,l,o,d,c,h,g,u,y,p,x;if(i=e.y-t.y,n=t.x-e.x,o=e.x*t.y-t.x*e.y,g=i*r.x+n*r.y+o,u=i*a.x+n*a.y+o,!(0!==g&&0!==u&&tI(g,u))){if((s=a.y-r.y,l=r.x-a.x,d=a.x*r.y-r.x*a.y,c=s*t.x+l*t.y+d,h=s*e.x+l*e.y+d,!(0!==c&&0!==h&&tI(c,h)))&&0!=(y=i*l-s*n))return p=Math.abs(y/2),{x:(x=n*d-l*o)<0?(x-p)/y:(x+p)/y,y:(x=s*o-i*d)<0?(x-p)/y:(x+p)/y}}}function tI(t,e){return t*e>0}function tN(t,e,r){var a=t.x,i=t.y,s=[],n=1/0,l=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),l=Math.min(l,t.y)}):(n=Math.min(n,e.x),l=Math.min(l,e.y));for(var o=a-t.width/2-n,d=i-t.height/2-l,c=0;c<e.length;c++){var h=e[c],g=e[c<e.length-1?c+1:0],u=tC(t,r,{x:o+h.x,y:d+h.y},{x:o+g.x,y:d+g.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(t,e){var a=t.x-r.x,i=t.y-r.y,s=Math.sqrt(a*a+i*i),n=e.x-r.x,l=e.y-r.y,o=Math.sqrt(n*n+l*l);return s<o?-1:+(s!==o)}),s[0]):t}(0,c.K)(function(t,e){return t.intersect(e)},"intersectNode"),(0,c.K)(tv,"intersectEllipse"),(0,c.K)(tT,"intersectCircle"),(0,c.K)(tC,"intersectLine"),(0,c.K)(tI,"sameSign"),(0,c.K)(tN,"intersectPolygon");var tB=(0,c.K)((t,e)=>{var r,a,i=t.x,s=t.y,n=e.x-i,l=e.y-s,o=t.width/2,d=t.height/2;return Math.abs(l)*o>Math.abs(n)*d?(l<0&&(d=-d),r=0===l?0:d*n/l,a=d):(n<0&&(o=-o),r=o,a=0===n?0:o*l/n),{x:i+r,y:s+a}},"intersectRect"),tz=(0,c.K)(async(t,e,r,a)=>{let i,d,c=(0,o.D7)(),h=e.useHtmlLabels||(0,o.E)(c),g=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),u=g.insert("g").attr("class","label").attr("style",e.labelStyle);i=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];let p=(d="markdown"===e.labelType?(0,n.G)(u,(0,o.jZ)((0,l.Sm)(i),c),{useHtmlLabels:h,width:e.width||c.flowchart.wrappingWidth,classes:"markdown-node-label"},c):await tp(u,(0,o.jZ)((0,l.Sm)(i),c),e.labelStyle,!1,a)).getBBox(),x=e.padding/2;if((0,o.E)(c)){let t=d.children[0],e=(0,y.Ltv)(d);await (0,s.X)(t,i),p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}return h?u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"):u.attr("transform","translate(0, "+-p.height/2+")"),e.centerLabel&&u.attr("transform","translate("+-p.width/2+", "+-p.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:g,bbox:p,halfPadding:x,label:u}},"labelHelper"),tO=(0,c.K)((t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds");function tA(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,c.K)(tA,"insertPolygonShape");var tM=(0,c.K)(async(t,e)=>{e.useHtmlLabels||(0,o.E)((0,o.D7)())||(e.centerLabel=!0);let{shapeSvg:r,bbox:a,halfPadding:i}=await tz(t,e,"node "+e.classes,!0);d.R.info("Classes = ",e.classes);let s=r.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-a.width/2-i).attr("y",-a.height/2-i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),tO(e,s),e.intersect=function(t){return tB(e,t)},r},"note"),tP=(0,c.K)(t=>t?" "+t:"","formatClass"),tW=(0,c.K)((t,e)=>`${e||"node default"}${tP(t.classes)} ${tP(t.class)}`,"getClassesFromNode"),tY=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding+(a.height+e.padding),s=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];d.R.info("Question main (Circle)");let n=tA(r,i,i,s);return n.attr("style",e.style),tO(e,n),e.intersect=function(t){return d.R.warn("Intersect called"),tN(e,s,t)},r},"question"),tF=(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(t){return t.x+","+t.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return tT(e,14,t)},r},"choice"),tX=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=e.positioned?e.height:a.height+e.padding,s=i/4,n=e.positioned?e.width:a.width+2*s+e.padding,l=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],o=tA(r,n,i,l);return o.attr("style",e.style),tO(e,o),e.intersect=function(t){return tN(e,l,t)},r},"hexagon"),tj=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,void 0,!0),i=a.height+2*e.padding,s=i/2,n=a.width+2*s+e.padding,l=e.positioned&&(e.widthInColumns??1)>1&&e.width>n?e.width:n,o=t$(e.directions,a,e,l),d=tA(r,l,i,o);return d.attr("style",e.style),tO(e,d),e.intersect=function(t){return tN(e,o,t)},r},"block_arrow"),tU=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-s/2,y:0},{x:i,y:0},{x:i,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return tA(r,i,s,n).attr("style",e.style),e.width=i+s,e.height=s,e.intersect=function(t){return tN(e,n,t)},r},"rect_left_inv_arrow"),tH=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-2*s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:s/6,y:-s}],l=tA(r,i,s,n);return l.attr("style",e.style),tO(e,l),e.intersect=function(t){return tN(e,n,t)},r},"lean_right"),tZ=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:2*s/6,y:0},{x:i+s/6,y:0},{x:i-2*s/6,y:-s},{x:-s/6,y:-s}],l=tA(r,i,s,n);return l.attr("style",e.style),tO(e,l),e.intersect=function(t){return tN(e,n,t)},r},"lean_left"),tq=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:-2*s/6,y:0},{x:i+2*s/6,y:0},{x:i-s/6,y:-s},{x:s/6,y:-s}],l=tA(r,i,s,n);return l.attr("style",e.style),tO(e,l),e.intersect=function(t){return tN(e,n,t)},r},"trapezoid"),tG=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=tA(r,i,s,n);return l.attr("style",e.style),tO(e,l),e.intersect=function(t){return tN(e,n,t)},r},"inv_trapezoid"),tJ=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:0,y:0},{x:i+s/2,y:0},{x:i,y:-s/2},{x:i+s/2,y:-s},{x:0,y:-s}],l=tA(r,i,s,n);return l.attr("style",e.style),tO(e,l),e.intersect=function(t){return tN(e,n,t)},r},"rect_right_inv_arrow"),tQ=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=i/2,n=s/(2.5+i/50),l=a.height+n+e.padding,o="M 0,"+n+" a "+s+","+n+" 0,0,0 "+i+" 0 a "+s+","+n+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+s+","+n+" 0,0,0 "+i+" 0 l 0,"+-l,d=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",o).attr("transform","translate("+-i/2+","+-(l/2+n)+")");return tO(e,d),e.intersect=function(t){let r=tB(e,t),a=r.x-e.x;if(0!=s&&(Math.abs(a)<e.width/2||Math.abs(a)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-n)){let i=n*n*(1-a*a/(s*s));0!=i&&(i=Math.sqrt(i)),i=n-i,t.y-e.y>0&&(i=-i),r.y+=i}return r},r},"cylinder"),tV=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tz(t,e,"node "+e.classes+" "+e.class,!0),s=r.insert("rect",":first-child"),n=e.positioned?e.width:a.width+e.padding,l=e.positioned?e.height:a.height+e.padding,o=e.positioned?-n/2:-a.width/2-i,c=e.positioned?-l/2:-a.height/2-i;if(s.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",o).attr("y",c).attr("width",n).attr("height",l),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(t2(s,e.props.borders,n,l),t.delete("borders")),t.forEach(t=>{d.R.warn(`Unknown node property ${t}`)})}return tO(e,s),e.intersect=function(t){return tB(e,t)},r},"rect"),t0=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tz(t,e,"node "+e.classes,!0),s=r.insert("rect",":first-child"),n=e.positioned?e.width:a.width+e.padding,l=e.positioned?e.height:a.height+e.padding,o=e.positioned?-n/2:-a.width/2-i,c=e.positioned?-l/2:-a.height/2-i;if(s.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",o).attr("y",c).attr("width",n).attr("height",l),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(t2(s,e.props.borders,n,l),t.delete("borders")),t.forEach(t=>{d.R.warn(`Unknown node property ${t}`)})}return tO(e,s),e.intersect=function(t){return tB(e,t)},r},"composite"),t1=(0,c.K)(async(t,e)=>{let{shapeSvg:r}=await tz(t,e,"label",!0);d.R.trace("Classes = ",e.class);let a=r.insert("rect",":first-child");if(a.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(t2(a,e.props.borders,0,0),t.delete("borders")),t.forEach(t=>{d.R.warn(`Unknown node property ${t}`)})}return tO(e,a),e.intersect=function(t){return tB(e,t)},r},"labelRect");function t2(t,e,r,a){let i=[],s=(0,c.K)(t=>{i.push(t,0)},"addBorder"),n=(0,c.K)(t=>{i.push(0,t)},"skipBorder");e.includes("t")?(d.R.debug("add top border"),s(r)):n(r),e.includes("r")?(d.R.debug("add right border"),s(a)):n(a),e.includes("b")?(d.R.debug("add bottom border"),s(r)):n(r),e.includes("l")?(d.R.debug("add left border"),s(a)):n(a),t.attr("stroke-dasharray",i.join(" "))}(0,c.K)(t2,"applyNodePropertyBorders");var t3=(0,c.K)(async(t,e)=>{let r;r=e.classes?"node "+e.classes:"node default";let a=t.insert("g").attr("class",r).attr("id",e.domId||e.id),i=a.insert("rect",":first-child"),s=a.insert("line"),n=a.insert("g").attr("class","label"),l=e.labelText.flat?e.labelText.flat():e.labelText,c="";c="object"==typeof l?l[0]:l,d.R.info("Label text abc79",c,l,"object"==typeof l);let h=await tp(n,c,e.labelStyle,!0,!0),g={width:0,height:0};if((0,o.E)((0,o.D7)())){let t=h.children[0],e=(0,y.Ltv)(h);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}d.R.info("Text 2",l);let u=l.slice(1,l.length),p=h.getBBox(),x=await tp(n,u.join?u.join("<br/>"):u,e.labelStyle,!0,!0);if((0,o.E)((0,o.D7)())){let t=x.children[0],e=(0,y.Ltv)(x);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}let b=e.padding/2;return(0,y.Ltv)(x).attr("transform","translate( "+(g.width>p.width?0:(p.width-g.width)/2)+", "+(p.height+b+5)+")"),(0,y.Ltv)(h).attr("transform","translate( "+(g.width<p.width?0:-(p.width-g.width)/2)+", 0)"),g=n.node().getBBox(),n.attr("transform","translate("+-g.width/2+", "+(-g.height/2-b+3)+")"),i.attr("class","outer title-state").attr("x",-g.width/2-b).attr("y",-g.height/2-b).attr("width",g.width+e.padding).attr("height",g.height+e.padding),s.attr("class","divider").attr("x1",-g.width/2-b).attr("x2",g.width/2+b).attr("y1",-g.height/2-b+p.height+b).attr("y2",-g.height/2-b+p.height+b),tO(e,i),e.intersect=function(t){return tB(e,t)},a},"rectWithTitle"),t4=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.height+e.padding,s=a.width+i/4+e.padding,n=r.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-s/2).attr("y",-i/2).attr("width",s).attr("height",i);return tO(e,n),e.intersect=function(t){return tB(e,t)},r},"stadium"),t8=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tz(t,e,tW(e,void 0),!0),s=r.insert("circle",":first-child");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),d.R.info("Circle main"),tO(e,s),e.intersect=function(t){return d.R.info("Circle intersect",e,a.width/2+i,t),tT(e,a.width/2+i,t)},r},"circle"),t5=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a,halfPadding:i}=await tz(t,e,tW(e,void 0),!0),s=r.insert("g",":first-child"),n=s.insert("circle"),l=s.insert("circle");return s.attr("class",e.class),n.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+i+5).attr("width",a.width+e.padding+10).attr("height",a.height+e.padding+10),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+i).attr("width",a.width+e.padding).attr("height",a.height+e.padding),d.R.info("DoubleCircle main"),tO(e,n),e.intersect=function(t){return d.R.info("DoubleCircle intersect",e,a.width/2+i+5,t),tT(e,a.width/2+i+5,t)},r},"doublecircle"),t7=(0,c.K)(async(t,e)=>{let{shapeSvg:r,bbox:a}=await tz(t,e,tW(e,void 0),!0),i=a.width+e.padding,s=a.height+e.padding,n=[{x:0,y:0},{x:i,y:0},{x:i,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=tA(r,i,s,n);return l.attr("style",e.style),tO(e,l),e.intersect=function(t){return tN(e,n,t)},r},"subroutine"),t9=(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),tO(e,a),e.intersect=function(t){return tT(e,7,t)},r},"start"),t6=(0,c.K)((t,e,r)=>{let a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,s=10;return"LR"===r&&(i=10,s=70),tO(e,a.append("rect").attr("x",-1*i/2).attr("y",-1*s/2).attr("width",i).attr("height",s).attr("class","fork-join")),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return tB(e,t)},a},"forkJoin"),et={rhombus:tY,composite:t0,question:tY,rect:tV,labelRect:t1,rectWithTitle:t3,choice:tF,circle:t8,doublecircle:t5,stadium:t4,hexagon:tX,block_arrow:tj,rect_left_inv_arrow:tU,lean_right:tH,lean_left:tZ,trapezoid:tq,inv_trapezoid:tG,rect_right_inv_arrow:tJ,cylinder:tQ,start:t9,end:(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),i=r.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),tO(e,i),e.intersect=function(t){return tT(e,7,t)},r},"end"),note:tM,subroutine:t7,fork:t6,join:t6,class_box:(0,c.K)(async(t,e)=>{let r,a=e.padding/2;r=e.classes?"node "+e.classes:"node default";let i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=i.insert("rect",":first-child"),n=i.insert("line"),l=i.insert("line"),d=0,c=4,h=i.insert("g").attr("class","label"),g=0,u=e.classData.annotations?.[0],p=e.classData.annotations[0]?"\xab"+e.classData.annotations[0]+"\xbb":"",x=await tp(h,p,e.labelStyle,!0,!0),b=x.getBBox();if((0,o.E)((0,o.D7)())){let t=x.children[0],e=(0,y.Ltv)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}e.classData.annotations[0]&&(c+=b.height+4,d+=b.width);let f=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&((0,o.E)((0,o.D7)())?f+="<"+e.classData.type+">":f+="<"+e.classData.type+">");let w=await tp(h,f,e.labelStyle,!0,!0);(0,y.Ltv)(w).attr("class","classTitle");let m=w.getBBox();if((0,o.E)((0,o.D7)())){let t=w.children[0],e=(0,y.Ltv)(w);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}c+=m.height+4,m.width>d&&(d=m.width);let k=[];e.classData.members.forEach(async t=>{let r=t.getDisplayDetails(),a=r.displayText;(0,o.E)((0,o.D7)())&&(a=a.replace(/</g,"<").replace(/>/g,">"));let i=await tp(h,a,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0),s=i.getBBox();if((0,o.E)((0,o.D7)())){let t=i.children[0],e=(0,y.Ltv)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>d&&(d=s.width),c+=s.height+4,k.push(i)}),c+=8;let L=[];if(e.classData.methods.forEach(async t=>{let r=t.getDisplayDetails(),a=r.displayText;(0,o.E)((0,o.D7)())&&(a=a.replace(/</g,"<").replace(/>/g,">"));let i=await tp(h,a,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0),s=i.getBBox();if((0,o.E)((0,o.D7)())){let t=i.children[0],e=(0,y.Ltv)(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>d&&(d=s.width),c+=s.height+4,L.push(i)}),c+=8,u){let t=(d-b.width)/2;(0,y.Ltv)(x).attr("transform","translate( "+(-1*d/2+t)+", "+-1*c/2+")"),g=b.height+4}let S=(d-m.width)/2;return(0,y.Ltv)(w).attr("transform","translate( "+(-1*d/2+S)+", "+(-1*c/2+g)+")"),g+=m.height+4,n.attr("class","divider").attr("x1",-d/2-a).attr("x2",d/2+a).attr("y1",-c/2-a+8+g).attr("y2",-c/2-a+8+g),g+=8,k.forEach(t=>{(0,y.Ltv)(t).attr("transform","translate( "+-d/2+", "+(-1*c/2+g+4)+")");let e=t?.getBBox();g+=(e?.height??0)+4}),g+=8,l.attr("class","divider").attr("x1",-d/2-a).attr("x2",d/2+a).attr("y1",-c/2-a+8+g).attr("y2",-c/2-a+8+g),g+=8,L.forEach(t=>{(0,y.Ltv)(t).attr("transform","translate( "+-d/2+", "+(-1*c/2+g)+")");let e=t?.getBBox();g+=(e?.height??0)+4}),s.attr("style",e.style).attr("class","outer title-state").attr("x",-d/2-a).attr("y",-(c/2)-a).attr("width",d+e.padding).attr("height",c+e.padding),tO(e,s),e.intersect=function(t){return tB(e,t)},i},"class_box")},ee={},er=(0,c.K)(async(t,e,r)=>{let a,i;if(e.link){let s;"sandbox"===(0,o.D7)().securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s),i=await et[e.shape](a,e,r)}else a=i=await et[e.shape](t,e,r);return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),ee[e.id]=a,e.haveCallback&&ee[e.id].attr("class",ee[e.id].attr("class")+" clickable"),a},"insertNode"),ea=(0,c.K)(t=>{let e=ee[t.id];d.R.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode");function ei(t,e){let r,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="default";(t?.classes?.length||0)>0&&(i=(t?.classes??[]).join(" ")),i+=" flowchart-label";let s=0,n="";switch(t.type){case"round":s=5,n="rect";break;case"composite":s=0,n="composite",r=0;break;case"square":case"group":default:n="rect";break;case"diamond":n="question";break;case"hexagon":n="hexagon";break;case"block_arrow":n="block_arrow";break;case"odd":case"rect_left_inv_arrow":n="rect_left_inv_arrow";break;case"lean_right":n="lean_right";break;case"lean_left":n="lean_left";break;case"trapezoid":n="trapezoid";break;case"inv_trapezoid":n="inv_trapezoid";break;case"circle":n="circle";break;case"ellipse":n="ellipse";break;case"stadium":n="stadium";break;case"subroutine":n="subroutine";break;case"cylinder":n="cylinder";break;case"doublecircle":n="doublecircle"}let d=(0,l.sM)(t?.styles??[]),c=t.label,h=t.size??{width:0,height:0,x:0,y:0},g=e.getDiagramId();return{labelStyle:d.labelStyle,shape:n,labelText:c,rx:s,ry:s,class:i,style:d.style,id:t.id,domId:g?`${g}-${t.id}`:t.id,directions:t.directions,width:h.width,height:h.height,x:h.x,y:h.y,positioned:a,intersect:void 0,type:t.type,padding:r??(0,o.zj)()?.block?.padding??0,widthInColumns:t.widthInColumns??1}}async function es(t,e,r){let a=ei(e,r,!1);if("group"===a.type)return;let i=(0,o.zj)(),s=await er(t,a,{config:i}),n=s.node().getBBox(),l=r.getBlock(a.id);l.size={width:n.width,height:n.height,x:0,y:0,node:s},r.setBlock(l),s.remove()}async function en(t,e,r){let a=ei(e,r,!0);if("space"!==r.getBlock(a.id).type){let r=(0,o.zj)();await er(t,a,{config:r}),e.intersect=a?.intersect,ea(a)}}async function el(t,e,r,a){for(let i of e)await a(t,i,r),i.children&&await el(t,i.children,r,a)}async function eo(t,e,r){await el(t,e,r,es)}async function ed(t,e,r){await el(t,e,r,en)}async function ec(t,e,r,a,i){let s=new p.T({multigraph:!0,compound:!0});for(let t of(s.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8}),r))t.size&&s.setNode(t.id,{width:t.size.width,height:t.size.height,intersect:t.intersect});for(let r of e)if(r.start&&r.end){let e=a.getBlock(r.start),n=a.getBlock(r.end);if(e?.size&&n?.size){let a=e.size,l=n.size,o=[{x:a.x,y:a.y},{x:a.x+(l.x-a.x)/2,y:a.y+(l.y-a.y)/2},{x:l.x,y:l.y}],d=i?`${i}-${r.id}`:r.id,c="thick"===r.thickness?"edge-thickness-thick":"edge-thickness-normal",h="dotted"===r.pattern?"edge-pattern-dotted":"edge-pattern-solid",g=`${c} ${h} flowchart-link LS-a1 LE-b1`;tR(t,{v:r.start,w:r.end,name:d},{...r,id:d,arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:o,classes:g},void 0,"block",s,i),r.label&&(await tk(t,{...r,label:r.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:r.arrowTypeEnd,arrowTypeStart:r.arrowTypeStart,points:o,classes:g}),tS({...r,x:o[1].x,y:o[1].y},{originalPath:o}))}}}(0,c.K)(ei,"getNodeFromBlock"),(0,c.K)(es,"calculateBlockSize"),(0,c.K)(en,"insertBlockPositioned"),(0,c.K)(el,"performOperations"),(0,c.K)(eo,"calculateBlockSizes"),(0,c.K)(ed,"insertBlocks"),(0,c.K)(ec,"insertEdges");var eh=(0,c.K)(function(t,e){return e.db.getClasses()},"getClasses"),eg={parser:x,db:J,renderer:{draw:(0,c.K)(async function(t,e,r,a){let i,{securityLevel:s,block:n}=(0,o.zj)(),l=a.db;l.setDiagramId(e),"sandbox"===s&&(i=(0,y.Ltv)("#i"+e));let c="sandbox"===s?(0,y.Ltv)(i.nodes()[0].contentDocument.body):(0,y.Ltv)("body"),h="sandbox"===s?c.select(`[id="${e}"]`):(0,y.Ltv)(`[id="${e}"]`);tt(h,["point","circle","cross"],a.type,e);let g=l.getBlocks(),u=l.getBlocksFlat(),p=l.getEdges(),x=h.insert("g").attr("class","block");await eo(x,g,l);let b=ty(l);if(await ed(x,g,l),await ec(x,p,u,l,e),b){let t=Math.max(1,Math.round(.125*(b.width/b.height))),e=b.height+t+10,r=b.width+10,{useMaxWidth:a}=n;(0,o.a$)(h,e,r,!!a),d.R.debug("Here Bounds",b,b),h.attr("viewBox",`${b.x-5} ${b.y-5} ${b.width+10} ${b.height+10}`)}},"draw"),getClasses:eh},styles:V}}}]);
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5681],{25681:(e,t,i)=>{i.d(t,{diagram:()=>
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5681],{25681:(e,t,i)=>{i.d(t,{diagram:()=>_});var r=i(94434),n=i(80650),o=i(56174),a=i(39457),l=i(86305),s=i(37325),d=i(56037),c=i(89851),h=i(88863),f=/[─━│┃└┗├┣]/,p=/[└┗├┣]/,g=/[─━]/,u=/^[\s│┃]+$/,w=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,x=/^\s*%%/;function m(e){return e.some(e=>f.test(e))}function b(e){for(let t of e){let e=p.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function y(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let r=parseInt(i,10),n=t.get(r);return n?`line ${n}`:e})}function $(e){let t=e.split("\n"),i=new Map,r=-1;for(let[e,i]of t.entries())if("treeView-beta"===i.trim()){r=e;break}if(-1===r)return{text:e,lineMap:i};let n=[];for(let e=r+1;e<t.length;e++){let i=t[e];!(""===i.trim()||x.test(i)||w.test(i))&&(u.test(i)||n.push(i.replace(/\t/g," ")))}if(!m(n))return{text:e,lineMap:i};let o=b(n),a=[],l=0;for(let e=0;e<=r;e++)a.push(t[e]),l++,i.set(l,e+1);for(let e=r+1;e<t.length;e++){let r=t[e],n=r.trim(),s=e+1;if(""===n||x.test(r)||w.test(r)){a.push(r),l++,i.set(l,s);continue}if(u.test(r))continue;let d=r.replace(/\t/g," "),c=p.exec(d);if(c?.index!==void 0){let e=c.index,t=Math.round(e/o)+1,r=e+1;for(;r<d.length&&g.test(d[r]);)r++;for(;r<d.length&&" "===d[r];)r++;let n=d.slice(r).trimEnd();if(!n)throw Error(`Line ${s}: Empty node \u2014 expected a filename or directory name after the box-drawing prefix`);let h=" ".repeat(t);a.push(h+n),l++,i.set(l,s)}else if(/^[\s─━│┃└┗├┣]+$/.test(d))continue;else if(f.test(d))a.push(r),l++,i.set(l,s);else if(/^\s+/.test(d))throw Error(`Line ${s}: Unexpected indentation without box-drawing characters. In box-drawing format, use \u251C\u2500\u2500 or \u2514\u2500\u2500 prefixes for indented nodes.`);else a.push(r),l++,i.set(l,s)}return{text:a.join("\n"),lineMap:i}}(0,c.K)(m,"isBoxDrawingFormat"),(0,c.K)(b,"inferSegmentWidth"),(0,c.K)(y,"remapErrorLines"),(0,c.K)($,"preprocessBoxDrawing");var k=new r.m(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),K=(0,c.K)(()=>{k.reset(),(0,s.IU)()},"clear"),v=(0,c.K)(()=>k.records.stack[0],"getRoot"),V=(0,c.K)(()=>k.records.cnt,"getCount"),B=s.UI.treeView,C=(0,c.K)(()=>(0,l.$t)(B,(0,s.zj)().treeView),"getConfig"),I={clear:K,addNode:(0,c.K)((e,t,i,r,n,o)=>{for(;e<=k.records.stack[k.records.stack.length-1].level;)k.records.stack.pop();let a={id:k.records.cnt++,level:e,name:t,nodeType:i,icon:n,cssClass:r,description:o,children:[]};k.records.stack[k.records.stack.length-1].children.push(a),k.records.stack.push(a)},"addNode"),getRoot:v,getCount:V,getConfig:C,getAccTitle:s.iN,getAccDescription:s.m7,getDiagramTitle:s.ab,setAccDescription:s.EI,setAccTitle:s.SV,setDiagramTitle:s.ke},T=(0,c.K)(e=>{for(let t of((0,n.S)(e,I),e.nodes)){let e="number"==typeof t.indent?t.indent:0,i=t.name,r=i.endsWith("/");r&&(i=i.slice(0,-1));let n=r?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,l=void 0!==a?a||"none":void 0,d=t.descAnnotation||void 0,c=d?(0,s.jZ)(d,(0,s.zj)()):void 0;I.addNode(e,i,n,o,l,c)}},"populate"),D={parse:(0,c.K)(async e=>{let{text:t,lineMap:i}=$(e);try{let e=await (0,h.qg)("treeView",t);d.R.debug(e),T(e)}catch(e){throw i.size>0&&e instanceof Error&&(e.message=y(e.message,i)),e}},"parse")},E={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function A(e,t){let i=t?.filenameIcons?.[e];if(i)return i;let r=e.lastIndexOf(".");if(r>0){let i=e.substring(r).toLowerCase(),n=t?.extensionIcons;return n?.[i]??n?.[i.slice(1)]}}function M(e,t){return e.includes(":")?e:e in E.icons||!t?`${E.prefix}:${e}`:`${t}:${e}`}function N(e,t){if("none"!==e.icon){if(e.icon)return M(e.icon,t.defaultIconPack);if(t.showIcons){if("file"===e.nodeType){let i=A(e.name,t);if("none"===i)return;if(i)return M(i,t.defaultIconPack)}return`${E.prefix}:${"directory"===e.nodeType?"folder":"file"}`}}}(0,c.K)(A,"detectIcon"),(0,c.K)(M,"qualifyIcon"),(0,c.K)(N,"getNodeIcon"),(0,a.pC)([{name:E.prefix,icons:E}]);var S=(0,c.K)((e,t)=>`tv-icon-${e}-${t.replace(/[^\w-]/g,"-")}`,"iconSymbolId"),z=(0,c.K)(async(e,t,i,r)=>{let n=new Set,o=(0,c.K)(e=>{let t=N(e,i);t&&n.add(t),e.children.forEach(o)},"collect");if(o(t),0===n.size)return;let l=await Promise.all([...n].map(async e=>({icon:e,svg:await (0,a.WY)(e,{height:14,width:14})}))),s=e.append("defs");for(let{icon:e,svg:t}of l)s.append("g").attr("id",S(r,e)).html(t)},"injectIconDefs"),X=(0,c.K)((e,t,i,r,n,o)=>{let a=r.append("g"),l="treeView-node-label";"directory"===i.nodeType&&(l+=" treeView-node-dir"),i.cssClass&&(l+=` ${i.cssClass}`);let s=N(i,n),d=void 0!==s;s&&a.append("use").attr("xlink:href",`#${S(o,s)}`).attr("x",e+n.paddingX).attr("y",t+n.paddingY).attr("class","treeView-node-icon");let c=a.append("text").text(i.name).attr("dominant-baseline","middle").attr("class",l),{height:h,width:f}=c.node().getBBox(),p=h+2*n.paddingY,g=e+n.paddingX+18*!!d;c.attr("x",g),c.attr("y",t+p/2);let u=g+f;return i.BBox={x:e,y:t,width:f+2*n.paddingX+18*!!d,height:p},i.cssClass?.split(/\s+/).includes("highlight")&&a.insert("rect",":first-child").attr("x",e).attr("y",t+1).attr("width",0).attr("height",p-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:i,nodeGroup:a,labelRightEdge:u,centerY:t+p/2}},"positionLabel"),L=(0,c.K)((e,t,i,r,n,o)=>e.append("line").attr("x1",t).attr("y1",i).attr("x2",r).attr("y2",n).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),R=(0,c.K)((e,t,i,r)=>{let n=0,o=0,a=[],l=(0,c.K)((e,t,i,l)=>{let s=l*(i.rowIndent+i.paddingX),d=X(s,n,t,e,i,r);a.push(d);let{height:c,width:h}=t.BBox;L(e,s-i.rowIndent,n+c/2,s,n+c/2,i.lineThickness),o=Math.max(o,s+h),n+=c},"drawNode"),s=(0,c.K)(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e,t,i,r),t.children.forEach(e=>{s(e,r+1)});let{x:n,y:o,height:a}=t.BBox;if(t.children.length){let{y:r,height:l}=t.children[t.children.length-1].BBox;L(e,n+i.paddingX,o+a,n+i.paddingX,r+l/2+i.lineThickness/2,i.lineThickness)}},"processNode");s(t);let d=a.filter(e=>e.node.description);if(d.length>0){let e=Math.max(...a.map(e=>e.labelRightEdge))+16;for(let t of d){let r=t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",e).attr("y",t.centerY).node().getBBox();o=Math.max(o,e+r.width+i.paddingX)}}for(let e of a)if(e.node.cssClass?.split(/\s+/).includes("highlight")){let t=e.nodeGroup.select(".treeView-highlight-bg");if(!t.empty()){let i=o-e.node.BBox.x+8;t.attr("width",i),o=Math.max(o,e.node.BBox.x+i+2)}}return{totalHeight:n,totalWidth:o}},"drawTree"),j=(0,c.K)(async(e,t,i,r)=>{d.R.debug("Rendering treeView diagram\n"+e);let n=r.db,a=n.getRoot(),l=n.getConfig(),c=(0,o.D)(t);await z(c,a,l,t);let h=c.append("g");h.attr("class","tree-view");let{totalHeight:f,totalWidth:p}=R(h,a,l,t);c.attr("viewBox",`-${l.lineThickness/2} 0 ${p} ${f}`),(0,s.a$)(c,f,p,l.useMaxWidth)},"draw"),Y={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},_={db:I,renderer:{draw:j},parser:D,styles:(0,c.K)(e=>{let{treeView:t}=e,{labelFontSize:i,labelColor:r,lineColor:n,iconColor:o,descriptionColor:a,highlightBg:s,highlightStroke:d}=(0,l.$t)(Y,t);return`
|
|
2
2
|
.treeView-node-label {
|
|
3
|
-
font-size: ${
|
|
4
|
-
fill: ${
|
|
3
|
+
font-size: ${i};
|
|
4
|
+
fill: ${r};
|
|
5
5
|
white-space: pre;
|
|
6
6
|
}
|
|
7
7
|
.treeView-node-dir {
|
|
8
8
|
font-weight: bold;
|
|
9
9
|
}
|
|
10
10
|
.treeView-node-line {
|
|
11
|
-
stroke: ${
|
|
11
|
+
stroke: ${n};
|
|
12
12
|
}
|
|
13
13
|
.treeView-node-icon {
|
|
14
|
-
color: ${
|
|
14
|
+
color: ${o};
|
|
15
15
|
}
|
|
16
16
|
.treeView-node-description {
|
|
17
|
-
font-size: ${
|
|
18
|
-
fill: ${
|
|
17
|
+
font-size: ${i};
|
|
18
|
+
fill: ${a};
|
|
19
19
|
font-style: italic;
|
|
20
20
|
white-space: pre;
|
|
21
21
|
}
|
|
22
22
|
.treeView-highlight-bg {
|
|
23
|
-
fill: ${
|
|
24
|
-
stroke: ${
|
|
23
|
+
fill: ${s};
|
|
24
|
+
stroke: ${d};
|
|
25
25
|
stroke-width: 1;
|
|
26
26
|
}
|
|
27
|
-
`},"styles")}},80650:(e,t,i)=>{function r(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}i.d(t,{S:()=>r}),(0,i(89851).K)(r,"populateCommonDb")},94434:(e,t,i)=>{i.d(t,{m:()=>n});var r=i(89851),n=class{constructor(e){this.init=e,this.records=this.init()}static
|
|
27
|
+
`},"styles")}},80650:(e,t,i)=>{function r(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}i.d(t,{S:()=>r}),(0,i(89851).K)(r,"populateCommonDb")},94434:(e,t,i)=>{i.d(t,{m:()=>n});var r=i(89851),n=class{constructor(e){this.init=e,this.records=this.init()}static #e=(0,r.K)(this,"ImperativeState");reset(){this.records=this.init()}}}}]);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6195],{45097:(e,t,a)=>{a.d(t,{P:()=>i});var l=a(37325),r=a(56037),s=a(89851),i=(0,s.K)((e,t,a,s)=>{e.attr("class",a);let{width:i,height:c,x:d,y:p}=n(e,t);(0,l.a$)(e,c,i,s);let h=o(d,p,i,c,t);e.attr("viewBox",h),r.R.debug(`viewBox configured: ${h} with padding: ${t}`)},"setupViewPortForSVG"),n=(0,s.K)((e,t)=>{let a=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:a.width+2*t,height:a.height+2*t,x:a.x,y:a.y}},"calculateDimensionsWithPadding"),o=(0,s.K)((e,t,a,l,r)=>`${e-r} ${t-r} ${a} ${l}`,"createViewBox")},66195:(e,t,a)=>{a.d(t,{diagram:()=>b});var l=a(80650),r=a(56174),s=a(45097),i=a(23462),n=a(86305),o=a(37325),c=a(56037),d=a(89851),p=a(88863),h=a(33948),m=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getAccDescription=o.m7,this.setAccDescription=o.EI}static #e=(0,d.K)(this,"TreeMapDB");getNodes(){return this.nodes}getConfig(){let e=o.UI,t=(0,o.zj)();return(0,n.$t)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let a=this.classes.get(e)??{id:e,styles:[],textStyles:[]},l=t.replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");l&&l.forEach(e=>{(0,i.KX)(e)&&(a?.textStyles?a.textStyles.push(e):a.textStyles=[e]),a?.styles?a.styles.push(e):a.styles=[e]}),this.classes.set(e,a)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,o.IU)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function y(e){if(!e.length)return[];let t=[],a=[];return e.forEach(e=>{let l={name:e.name,children:"Leaf"===e.type?void 0:[]};for(l.classSelector=e?.classSelector,e?.cssCompiledStyles&&(l.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(l.value=e.value);a.length>0&&a[a.length-1].level>=e.level;)a.pop();if(0===a.length)t.push(l);else{let e=a[a.length-1].node;e.children?e.children.push(l):e.children=[l]}"Leaf"!==e.type&&a.push({node:l,level:e.level})}),t}(0,d.K)(y,"buildHierarchy");var f=(0,d.K)((e,t)=>{(0,l.S)(e,t);let a=[];for(let a of e.TreemapRows??[])"ClassDefStatement"===a.$type&&t.addClass(a.className??"",a.styleText??"");for(let l of e.TreemapRows??[]){let e=l.item;if(!e)continue;let r=l.indent?parseInt(l.indent):0,s=u(e),i=e.classSelector?t.getStylesForClass(e.classSelector):[],n=i.length>0?i:void 0,o={level:r,name:s,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:n};a.push(o)}let r=y(a),s=(0,d.K)((e,a)=>{for(let l of e)t.addNode(l,a),l.children&&l.children.length>0&&s(l.children,a+1)},"addNodesRecursively");s(r,0)},"populate"),u=(0,d.K)(e=>e.name?String(e.name):"","getItemName"),S={parser:{yy:void 0},parse:(0,d.K)(async e=>{try{let t=p.qg,a=await t("treemap",e);c.R.debug("Treemap AST:",a);let l=S.parser?.yy;if(!(l instanceof m))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");f(a,l)}catch(e){throw c.R.error("Error parsing treemap:",e),e}},"parse")},g=(0,d.K)((e,t,a,l)=>{let n,p=l.db,m=p.getConfig(),y=m.padding??10,f=p.getDiagramTitle(),u=p.getRoot(),{themeVariables:S}=(0,o.zj)();if(!u)return;let g=30*!!f,x=(0,r.D)(t),$=m.nodeWidth?10*m.nodeWidth:960,b=m.nodeHeight?10*m.nodeHeight:500,v=b+g;x.attr("viewBox",`0 0 ${$} ${v}`),(0,o.a$)(x,v,$,m.useMaxWidth);try{let e=m.valueFormat||",";if("$0,0"===e)n=(0,d.K)(e=>"$"+(0,h.GPZ)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),a=t?t[0]:"";n=(0,d.K)(e=>"$"+(0,h.GPZ)(","+a)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);n=(0,d.K)(e=>"$"+(0,h.GPZ)(t||"")(e),"valueFormat")}else n=(0,h.GPZ)(e)}catch(e){c.R.error("Error creating format function:",e),n=(0,h.GPZ)(",")}let C=(0,h.UMr)().range(["transparent",S.cScale0,S.cScale1,S.cScale2,S.cScale3,S.cScale4,S.cScale5,S.cScale6,S.cScale7,S.cScale8,S.cScale9,S.cScale10,S.cScale11]),w=(0,h.UMr)().range(["transparent",S.cScalePeer0,S.cScalePeer1,S.cScalePeer2,S.cScalePeer3,S.cScalePeer4,S.cScalePeer5,S.cScalePeer6,S.cScalePeer7,S.cScalePeer8,S.cScalePeer9,S.cScalePeer10,S.cScalePeer11]),L=(0,h.UMr)().range([S.cScaleLabel0,S.cScaleLabel1,S.cScaleLabel2,S.cScaleLabel3,S.cScaleLabel4,S.cScaleLabel5,S.cScaleLabel6,S.cScaleLabel7,S.cScaleLabel8,S.cScaleLabel9,S.cScaleLabel10,S.cScaleLabel11]);f&&x.append("text").attr("x",$/2).attr("y",g/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(f);let k=x.append("g").attr("transform",`translate(0, ${g})`).attr("class","treemapContainer"),T=(0,h.Sk5)(u).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),P=(0,h.hkb)().size([$,b]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(y).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0)(T),M=P.descendants().filter(e=>e.children&&e.children.length>0),z=k.selectAll(".treemapSection").data(M).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);z.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),z.append("clipPath").attr("id",(e,a)=>`clip-section-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),z.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>C(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>w(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),z.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,a)=>`url(#clip-section-${t}-${a})`).attr("style",e=>0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(0===e.depth)return;let t=(0,h.Ltv)(this),a=e.data.name;t.text(a);let l=e.x1-e.x0,r=Math.max(15,!1!==m.showValues&&e.value?l-10-30-10-6:l-6-6),s=t.node();if(s.getComputedTextLength()>r){let e=a;for(;e.length>0;){if(0===(e=a.substring(0,e.length-1)).length){t.text("..."),s.getComputedTextLength()>r&&t.text("");break}if(t.text(e+"..."),s.getComputedTextLength()<=r)break}}}),!1!==m.showValues&&z.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?n(e.value):"").attr("font-style","italic").attr("style",e=>0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let F=P.leaves(),K=F.length>20,N=K?16:38,D=K?14:28,G=K?4:8,V=K?4:6,W=K?2:4,R=K?8:10,A=K?1:2,B=k.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?C(e.parent.data.name):C(e.data.name)).attr("style",e=>(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?C(e.parent.data.name):C(e.data.name)).attr("stroke-width",3),B.append("clipPath").attr("id",(e,a)=>`clip-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),B.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${N}px;fill:`+L(e.data.name)+";"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.data.name).each(function(e){let t=(0,h.Ltv)(this),a=e.x1-e.x0,l=e.y1-e.y0,r=t.node(),s=a-2*W,i=l-2*W;if(s<R||i<R)return void t.style("display","none");let n=parseInt(t.style("font-size"),10);for(;r.getComputedTextLength()>s&&n>G;)n--,t.style("font-size",`${n}px`);let o=Math.max(V,Math.min(D,Math.round(.6*n))),c=n+A+o;for(;c>i&&n>G&&(!((o=Math.max(V,Math.min(D,Math.round(.6*--n))))<V)||n!==G);)t.style("font-size",`${n}px`),c=n+A+o;t.style("font-size",`${n}px`),K?(n<G||i<G)&&t.style("display","none"):(r.getComputedTextLength()>s||n<G||i<n)&&t.style("display","none")}),!1!==m.showValues&&B.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${D}px;fill:`+L(e.data.name)+";"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.value?n(e.value):"").each(function(e){let t=(0,h.Ltv)(this),a=this.parentNode;if(!a)return void t.style("display","none");let l=(0,h.Ltv)(a).select(".treemapLabel");if(l.empty()||"none"===l.style("display"))return void t.style("display","none");let r=parseFloat(l.style("font-size")),s=Math.max(V,Math.min(D,Math.round(.6*r)));t.style("font-size",`${s}px`);let i=(e.y1-e.y0)/2+r/2+A;t.attr("y",i);let n=e.x1-e.x0,o=e.y1-e.y0;t.node().getComputedTextLength()>n-2*W||i+s>o-4||s<V?t.style("display","none"):t.style("display",null)});let E=m.diagramPadding??8;(0,s.P)(x,E,"flowchart",m?.useMaxWidth||!1)},"draw"),x=(0,d.K)(function(e,t){return t.db.getClasses()},"getClasses"),$={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},b={parser:S,get db(){return new m},renderer:{draw:g,getClasses:x},styles:(0,d.K)(function(){let{treemap:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.P$)(),a=(0,o.zj)(),l=(0,n.$t)(t,a.themeVariables),r=(0,n.$t)($,e),s=r.titleColor??l.titleColor,i=r.labelColor??l.textColor,c=r.valueColor??l.textColor;return`
|
|
2
|
+
.treemapNode.section {
|
|
3
|
+
stroke: ${r.sectionStrokeColor};
|
|
4
|
+
stroke-width: ${r.sectionStrokeWidth};
|
|
5
|
+
fill: ${r.sectionFillColor};
|
|
6
|
+
}
|
|
7
|
+
.treemapNode.leaf {
|
|
8
|
+
stroke: ${r.leafStrokeColor};
|
|
9
|
+
stroke-width: ${r.leafStrokeWidth};
|
|
10
|
+
fill: ${r.leafFillColor};
|
|
11
|
+
}
|
|
12
|
+
.treemapLabel {
|
|
13
|
+
fill: ${i};
|
|
14
|
+
font-size: ${r.labelFontSize};
|
|
15
|
+
}
|
|
16
|
+
.treemapValue {
|
|
17
|
+
fill: ${c};
|
|
18
|
+
font-size: ${r.valueFontSize};
|
|
19
|
+
}
|
|
20
|
+
.treemapTitle {
|
|
21
|
+
fill: ${s};
|
|
22
|
+
font-size: ${r.titleFontSize};
|
|
23
|
+
}
|
|
24
|
+
`},"getStyles")}},80650:(e,t,a)=>{function l(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}a.d(t,{S:()=>l}),(0,a(89851).K)(l,"populateCommonDb")}}]);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[202,7047],{16443:(t,e,r)=>{r.d(e,{A:()=>s});var a=r(89851),l=r(33948),s=(0,a.K)((t,e)=>{let r;return"sandbox"===e&&(r=(0,l.Ltv)("#i"+t)),("sandbox"===e?(0,l.Ltv)(r.nodes()[0].contentDocument.body):(0,l.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},40202:(t,e,r)=>{r.d(e,{CP:()=>x,Ck:()=>p,HT:()=>h,PB:()=>y,aC:()=>c,lC:()=>n,m:()=>d,tk:()=>o});var a=r(37325),l=r(89851),s=r(84485),i=r(33948),o=(0,l.K)((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)r.attr(t,e.attrs[t]);return e.class&&r.attr("class",e.class),r},"drawRect"),n=(0,l.K)((t,e)=>{o(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),d=(0,l.K)((t,e)=>{let r=e.text.replace(a.H1," "),l=t.append("text");l.attr("x",e.x),l.attr("y",e.y),l.attr("class","legend"),l.style("text-anchor",e.anchor),e.class&&l.attr("class",e.class);let s=l.append("tspan");return s.attr("x",e.x+2*e.textMargin),s.text(r),l},"drawText"),c=(0,l.K)((t,e,r,a)=>{let l=t.append("image");l.attr("x",e),l.attr("y",r);let i=(0,s.J)(a);l.attr("xlink:href",i)},"drawImage"),x=(0,l.K)((t,e,r,a)=>{let l=t.append("use");l.attr("x",e),l.attr("y",r);let i=(0,s.J)(a);l.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=(0,l.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),h=(0,l.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),p=(0,l.K)(()=>{let t=(0,i.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,i.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},45097:(t,e,r)=>{r.d(e,{P:()=>i});var a=r(37325),l=r(56037),s=r(89851),i=(0,s.K)((t,e,r,s)=>{t.attr("class",r);let{width:i,height:d,x:c,y:x}=o(t,e);(0,a.a$)(t,d,i,s);let y=n(c,x,i,d,e);t.attr("viewBox",y),l.R.debug(`viewBox configured: ${y} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,s.K)((t,e)=>{let r=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+2*e,height:r.height+2*e,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),n=(0,s.K)((t,e,r,a,l)=>`${t-l} ${e-l} ${r} ${a}`,"createViewBox")},60973:(t,e,r)=>{r.d(e,{diagram:()=>s});var a=r(14004);r(71662),r(16443),r(45097),r(66246),r(48362),r(40202),r(4462),r(94340),r(23462),r(44701),r(77809),r(19836),r(39457),r(86305),r(37325),r(56037);var l=(0,r(89851).K)(t=>`${(0,a.tM)(t)}
|
|
2
|
+
.swimlane.cluster rect {
|
|
3
|
+
stroke: ${t.clusterBorder} !important;
|
|
4
|
+
}
|
|
5
|
+
[data-look="neo"].cluster rect {
|
|
6
|
+
filter: none;
|
|
7
|
+
}
|
|
8
|
+
`,"getStyles"),s=(0,a.ur)({defaultLayout:"swimlane",styles:l})},71662:(t,e,r)=>{r.d(e,{o:()=>a});var a=(0,r(89851).K)(()=>`
|
|
9
|
+
/* Font Awesome icon styling - consolidated */
|
|
10
|
+
.label-icon {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
height: 1em;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
vertical-align: -0.125em;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.node .label-icon path {
|
|
18
|
+
fill: currentColor;
|
|
19
|
+
stroke: revert;
|
|
20
|
+
stroke-width: revert;
|
|
21
|
+
}
|
|
22
|
+
`,"getIconStyles")},72555:(t,e,r)=>{r.d(e,{A:()=>s});var a=r(42112),l=r(52326);let s=(t,e)=>a.A.lang.round(l.A.parse(t)[e])}}]);
|