@surething/cockpit 1.0.175
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-prod/BUILD_ID +1 -0
- package/.next-prod/app-path-routes-manifest.json +99 -0
- package/.next-prod/build-manifest.json +20 -0
- package/.next-prod/diagnostics/build-diagnostics.json +6 -0
- package/.next-prod/diagnostics/framework.json +1 -0
- package/.next-prod/export-marker.json +6 -0
- package/.next-prod/images-manifest.json +67 -0
- package/.next-prod/next-minimal-server.js.nft.json +1 -0
- package/.next-prod/next-server.js.nft.json +1 -0
- package/.next-prod/package.json +1 -0
- package/.next-prod/prerender-manifest.json +119 -0
- package/.next-prod/react-loadable-manifest.json +4241 -0
- package/.next-prod/required-server-files.js +326 -0
- package/.next-prod/required-server-files.json +326 -0
- package/.next-prod/routes-manifest.json +641 -0
- package/.next-prod/server/app/_global-error/page.js +3 -0
- package/.next-prod/server/app/_global-error/page.js.nft.json +1 -0
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/_global-error.html +2 -0
- package/.next-prod/server/app/_global-error.meta +16 -0
- package/.next-prod/server/app/_global-error.rsc +12 -0
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +12 -0
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
- package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +4 -0
- package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +4 -0
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next-prod/server/app/_not-found/page.js +2 -0
- package/.next-prod/server/app/_not-found/page.js.nft.json +1 -0
- package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/_not-found.html +18 -0
- package/.next-prod/server/app/_not-found.meta +16 -0
- package/.next-prod/server/app/_not-found.rsc +18 -0
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +18 -0
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +6 -0
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +5 -0
- package/.next-prod/server/app/api/bash/route.js +1 -0
- package/.next-prod/server/app/api/bash/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/bash/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/chat/route.js +5 -0
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/chat/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/claude-stats/route.js +1 -0
- package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/claude-stats/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/commands/route.js +1 -0
- package/.next-prod/server/app/api/commands/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/commands/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/comments/route.js +1 -0
- package/.next-prod/server/app/api/comments/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/comments/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/db/columns/route.js +15 -0
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/db/columns/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/db/connect/route.js +1 -0
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/db/connect/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -0
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/db/disconnect/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/db/export/route.js +1 -0
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/db/export/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/db/query/route.js +1 -0
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/db/query/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/db/schemas/route.js +8 -0
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/db/schemas/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/extension/version/route.js +1 -0
- package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/extension/version/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/file/route.js +1 -0
- package/.next-prod/server/app/api/file/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/file/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/blame/route.js +1 -0
- package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/blame/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/clipboard/route.js +1 -0
- package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/clipboard/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/copy/route.js +1 -0
- package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/copy/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/delete/route.js +1 -0
- package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/delete/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/expanded/route.js +1 -0
- package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/expanded/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/index/route.js +1 -0
- package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/index/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/init/route.js +1 -0
- package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/init/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/paste/route.js +1 -0
- package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/paste/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/read/route.js +1 -0
- package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/read/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/readdir/route.js +1 -0
- package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/readdir/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/recent/route.js +1 -0
- package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/recent/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/save/route.js +1 -0
- package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/save/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/search/route.js +1 -0
- package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/search/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/branch-diff/route.js +1 -0
- package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/branch-diff/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/branches/route.js +1 -0
- package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/branches/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/commit-diff/route.js +1 -0
- package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/commit-diff/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/commits/route.js +1 -0
- package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/commits/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/diff/route.js +1 -0
- package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/diff/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/discard/route.js +1 -0
- package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/discard/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/stage/route.js +1 -0
- package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/stage/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/status/route.js +1 -0
- package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/status/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/unstage/route.js +1 -0
- package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/unstage/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/worktree/route.js +1 -0
- package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/git/worktree/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/global-state/route.js +1 -0
- package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/global-state/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/jupyter/load/route.js +1 -0
- package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/jupyter/load/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/jupyter/save/route.js +1 -0
- package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/jupyter/save/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -0
- package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/jupyter/shutdown/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/lsp/definition/route.js +1 -0
- package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/lsp/definition/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/lsp/hover/route.js +1 -0
- package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/lsp/hover/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/lsp/references/route.js +1 -0
- package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/lsp/references/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/lsp/status/route.js +1 -0
- package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/lsp/status/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/lsp/warmup/route.js +1 -0
- package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/lsp/warmup/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/mysql/columns/route.js +9 -0
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/mysql/columns/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -0
- package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/mysql/connect/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -0
- package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/mysql/disconnect/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/mysql/export/route.js +1 -0
- package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/mysql/export/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/mysql/query/route.js +1 -0
- package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/mysql/query/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/mysql/schemas/route.js +6 -0
- package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/mysql/schemas/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/note/route.js +1 -0
- package/.next-prod/server/app/api/note/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/note/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/open-cursor/route.js +1 -0
- package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/open-cursor/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/open-vscode/route.js +1 -0
- package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/open-vscode/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/pick-folder/route.js +1 -0
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/pick-folder/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -0
- package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/pinned-sessions/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/project-settings/route.js +1 -0
- package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/project-settings/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/project-state/route.js +1 -0
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/project-state/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/projects/route.js +1 -0
- package/.next-prod/server/app/api/projects/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/projects/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/command/route.js +1 -0
- package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/command/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/connect/route.js +1 -0
- package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/connect/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/delete/route.js +1 -0
- package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/delete/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -0
- package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/disconnect/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/get/route.js +1 -0
- package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/get/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/keys/route.js +1 -0
- package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/keys/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/redis/set/route.js +1 -0
- package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/redis/set/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -0
- package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/[id]/comments/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -0
- package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/[id]/replies/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/[id]/route.js +1 -0
- package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/[id]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/identify/route.js +1 -0
- package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/identify/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/order/route.js +1 -0
- package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/order/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/route.js +1 -0
- package/.next-prod/server/app/api/review/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/share-info/route.js +1 -0
- package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/share-info/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/review/users/route.js +1 -0
- package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/review/users/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -0
- package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/scheduled-tasks/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/services/config/route.js +1 -0
- package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/services/config/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/services/scripts/route.js +1 -0
- package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/services/scripts/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -0
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/session/[sessionId]/fork/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -0
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/session/[sessionId]/history/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/session-by-path/route.js +1 -0
- package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/session-by-path/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -0
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -0
- package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/sessions/projects/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/sessions/route.js +1 -0
- package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/settings/route.js +1 -0
- package/.next-prod/server/app/api/settings/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/settings/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -0
- package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/terminal/aliases/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -0
- package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/terminal/autocomplete/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -0
- package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/terminal/bubble-order/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/terminal/env/route.js +1 -0
- package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/terminal/env/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/terminal/history/route.js +1 -0
- package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/terminal/history/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/version/route.js +1 -0
- package/.next-prod/server/app/api/version/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/version/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/favicon.ico/route.js +1 -0
- package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next-prod/server/app/favicon.ico.body +0 -0
- package/.next-prod/server/app/favicon.ico.meta +1 -0
- package/.next-prod/server/app/manifest.webmanifest/route.js +16 -0
- package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -0
- package/.next-prod/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/manifest.webmanifest.body +1 -0
- package/.next-prod/server/app/manifest.webmanifest.meta +1 -0
- package/.next-prod/server/app/page.js +97 -0
- package/.next-prod/server/app/page.js.nft.json +1 -0
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/project/page.js +29 -0
- package/.next-prod/server/app/project/page.js.nft.json +1 -0
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/review/[id]/page.js +2 -0
- package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -0
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -0
- package/.next-prod/server/app-paths-manifest.json +99 -0
- package/.next-prod/server/chunks/1639.js +1 -0
- package/.next-prod/server/chunks/1667.js +1 -0
- package/.next-prod/server/chunks/1813.js +1 -0
- package/.next-prod/server/chunks/1912.js +1 -0
- package/.next-prod/server/chunks/2325.js +82 -0
- package/.next-prod/server/chunks/2376.js +36 -0
- package/.next-prod/server/chunks/2816.js +1 -0
- package/.next-prod/server/chunks/2840.js +62 -0
- package/.next-prod/server/chunks/3434.js +1 -0
- package/.next-prod/server/chunks/3441.js +24 -0
- package/.next-prod/server/chunks/3503.js +29 -0
- package/.next-prod/server/chunks/3863.js +1 -0
- package/.next-prod/server/chunks/3932.js +56 -0
- package/.next-prod/server/chunks/4042.js +1 -0
- package/.next-prod/server/chunks/4073.js +1 -0
- package/.next-prod/server/chunks/4097.js +136 -0
- package/.next-prod/server/chunks/4098.js +1 -0
- package/.next-prod/server/chunks/4268.js +4 -0
- package/.next-prod/server/chunks/4272.js +5 -0
- package/.next-prod/server/chunks/4309.js +141 -0
- package/.next-prod/server/chunks/4345.js +1 -0
- package/.next-prod/server/chunks/4367.js +1 -0
- package/.next-prod/server/chunks/4388.js +24 -0
- package/.next-prod/server/chunks/4442.js +1 -0
- package/.next-prod/server/chunks/4490.js +26 -0
- package/.next-prod/server/chunks/4741.js +22 -0
- package/.next-prod/server/chunks/4793.js +1 -0
- package/.next-prod/server/chunks/5152.js +1 -0
- package/.next-prod/server/chunks/5460.js +201 -0
- package/.next-prod/server/chunks/5481.js +1 -0
- package/.next-prod/server/chunks/5536.js +148 -0
- package/.next-prod/server/chunks/5733.js +5 -0
- package/.next-prod/server/chunks/582.js +1 -0
- package/.next-prod/server/chunks/5958.js +1 -0
- package/.next-prod/server/chunks/6062.js +1 -0
- package/.next-prod/server/chunks/6117.js +13 -0
- package/.next-prod/server/chunks/6142.js +287 -0
- package/.next-prod/server/chunks/6346.js +1 -0
- package/.next-prod/server/chunks/6443.js +1 -0
- package/.next-prod/server/chunks/6804.js +43 -0
- package/.next-prod/server/chunks/7265.js +93 -0
- package/.next-prod/server/chunks/7284.js +1 -0
- package/.next-prod/server/chunks/7307.js +1 -0
- package/.next-prod/server/chunks/7483.js +1 -0
- package/.next-prod/server/chunks/7484.js +64 -0
- package/.next-prod/server/chunks/7514.js +31 -0
- package/.next-prod/server/chunks/7800.js +166 -0
- package/.next-prod/server/chunks/8068.js +63 -0
- package/.next-prod/server/chunks/8351.js +23 -0
- package/.next-prod/server/chunks/8491.js +5 -0
- package/.next-prod/server/chunks/8585.js +198 -0
- package/.next-prod/server/chunks/887.js +215 -0
- package/.next-prod/server/chunks/911.js +1 -0
- package/.next-prod/server/chunks/9116.js +65 -0
- package/.next-prod/server/chunks/925.js +68 -0
- package/.next-prod/server/chunks/9298.js +139 -0
- package/.next-prod/server/chunks/9401.js +1 -0
- package/.next-prod/server/chunks/9408.js +1 -0
- package/.next-prod/server/functions-config-manifest.json +24 -0
- package/.next-prod/server/interception-route-rewrite-manifest.js +1 -0
- package/.next-prod/server/middleware-build-manifest.js +1 -0
- package/.next-prod/server/middleware-manifest.json +6 -0
- package/.next-prod/server/middleware-react-loadable-manifest.js +1 -0
- package/.next-prod/server/next-font-manifest.js +1 -0
- package/.next-prod/server/next-font-manifest.json +1 -0
- package/.next-prod/server/pages/404.html +18 -0
- package/.next-prod/server/pages/500.html +2 -0
- package/.next-prod/server/pages-manifest.json +4 -0
- package/.next-prod/server/server-reference-manifest.js +1 -0
- package/.next-prod/server/server-reference-manifest.json +1 -0
- package/.next-prod/server/webpack-runtime.js +1 -0
- package/.next-prod/static/DV3WCL3Yj_UIBxTQ3r93N/_buildManifest.js +1 -0
- package/.next-prod/static/DV3WCL3Yj_UIBxTQ3r93N/_ssgManifest.js +1 -0
- package/.next-prod/static/chunks/10.6cf001c181ce1098.js +1 -0
- package/.next-prod/static/chunks/1078.02294b2934d5bf21.js +1 -0
- package/.next-prod/static/chunks/1142.17e45d200709420d.js +1 -0
- package/.next-prod/static/chunks/1161.06b33878b495da50.js +1 -0
- package/.next-prod/static/chunks/1184.e80a999422621ed9.js +1 -0
- package/.next-prod/static/chunks/1188.1d4ce94ddc297119.js +1 -0
- package/.next-prod/static/chunks/1198.2a5c215f01a8b74d.js +1 -0
- package/.next-prod/static/chunks/1215.88ed89521e915107.js +1 -0
- package/.next-prod/static/chunks/1219.e27b0bd10b029e40.js +1 -0
- package/.next-prod/static/chunks/123.d6fe9c2353baf42b.js +1 -0
- package/.next-prod/static/chunks/1247.64e212daa5bb3925.js +1 -0
- package/.next-prod/static/chunks/1248.36af3903f037c1f5.js +1 -0
- package/.next-prod/static/chunks/1274.ce6906b1fe2e04b8.js +1 -0
- package/.next-prod/static/chunks/1280.1651bb5167170457.js +1 -0
- package/.next-prod/static/chunks/1310.c38c5fbf05820fcd.js +166 -0
- package/.next-prod/static/chunks/1335.716cc5924662708e.js +1 -0
- package/.next-prod/static/chunks/1365.d7391145ca7f8791.js +1 -0
- package/.next-prod/static/chunks/1379.03e1e0f31bdaa2cc.js +1 -0
- package/.next-prod/static/chunks/1409.9f81cd6d2cab4b67.js +1 -0
- package/.next-prod/static/chunks/1413.117c5958c59cc695.js +1 -0
- package/.next-prod/static/chunks/142.e09e154342f02da4.js +4 -0
- package/.next-prod/static/chunks/1453.3c24c777a3deca2d.js +1 -0
- package/.next-prod/static/chunks/1456.a1f849b334fff0da.js +1 -0
- package/.next-prod/static/chunks/1501.549af2c91a889a08.js +1 -0
- package/.next-prod/static/chunks/1534.918a25b2e3daab22.js +1 -0
- package/.next-prod/static/chunks/1556.96abc9ff91b0c383.js +1 -0
- package/.next-prod/static/chunks/1583.03a06dbdde85ac56.js +1 -0
- package/.next-prod/static/chunks/1590.05549e036336164c.js +65 -0
- package/.next-prod/static/chunks/1593-7902218f5b10761f.js +1 -0
- package/.next-prod/static/chunks/1595.ee61519fde230f60.js +1 -0
- package/.next-prod/static/chunks/1656.a9efc78185a5a85f.js +1 -0
- package/.next-prod/static/chunks/1664.6d5b5e3112b66906.js +1 -0
- package/.next-prod/static/chunks/1898.e07b2b1c5e789b06.js +1 -0
- package/.next-prod/static/chunks/1932.b0aea9b52cabe5e8.js +1 -0
- package/.next-prod/static/chunks/194.dace825a3ddbbbff.js +1 -0
- package/.next-prod/static/chunks/1948.bf7e0d9ede202530.js +29 -0
- package/.next-prod/static/chunks/1977.a06c8e8d2198f765.js +1 -0
- package/.next-prod/static/chunks/1987.226da043eabc8911.js +5 -0
- package/.next-prod/static/chunks/1991.d869abe5092c9011.js +1 -0
- package/.next-prod/static/chunks/1cd6e1d3.8121a74b2042bff3.js +1 -0
- package/.next-prod/static/chunks/2013.598558c40e51e107.js +1 -0
- package/.next-prod/static/chunks/2020.46a0112747939389.js +1 -0
- package/.next-prod/static/chunks/2031.3877441c49bff5cd.js +1 -0
- package/.next-prod/static/chunks/2041.00f4fa0ab26c6ba5.js +1 -0
- package/.next-prod/static/chunks/2062.4a0ab3400fea0e34.js +1 -0
- package/.next-prod/static/chunks/2072-37a80cb92f1ee2d4.js +4 -0
- package/.next-prod/static/chunks/2107.c627112b02b9e1c8.js +1 -0
- package/.next-prod/static/chunks/2130.441ae0f68863efeb.js +1 -0
- package/.next-prod/static/chunks/214.f6bba63dfa159e01.js +1 -0
- package/.next-prod/static/chunks/2160.e38d781fd5c4cde0.js +1 -0
- package/.next-prod/static/chunks/2179.1bf5fe315e6e132c.js +1 -0
- package/.next-prod/static/chunks/2215.9d2d6fbe90ffcc80.js +1 -0
- package/.next-prod/static/chunks/2235.b4453110c06e2b09.js +1 -0
- package/.next-prod/static/chunks/2349.ca15d465c4260b4b.js +1 -0
- package/.next-prod/static/chunks/2374.7560cc5c4b8ed6b0.js +1 -0
- package/.next-prod/static/chunks/2403.3dda71b6482dce3b.js +1 -0
- package/.next-prod/static/chunks/2485.3188870375e9fbee.js +1 -0
- package/.next-prod/static/chunks/2489.fcc70bd67329a70e.js +1 -0
- package/.next-prod/static/chunks/2501.4e65b56602faa956.js +1 -0
- package/.next-prod/static/chunks/2503.bb9d3528c3c7ccae.js +1 -0
- package/.next-prod/static/chunks/252.a9e22657cbf67b42.js +1 -0
- package/.next-prod/static/chunks/254.8b4308512ac955b5.js +24 -0
- package/.next-prod/static/chunks/2614.8349e4b407470a30.js +1 -0
- package/.next-prod/static/chunks/2710.fe0656d4ebae4d30.js +1 -0
- package/.next-prod/static/chunks/2728.5fed9ac13dfcd1d1.js +1 -0
- package/.next-prod/static/chunks/2729.826909b4d5229ba6.js +68 -0
- package/.next-prod/static/chunks/2735.5a3e65a580bd5af9.js +1 -0
- package/.next-prod/static/chunks/2747.1d85d388314f2904.js +1 -0
- package/.next-prod/static/chunks/2765.2c6d9772af50feed.js +1 -0
- package/.next-prod/static/chunks/2783.e8bbf2c794ef9750.js +1 -0
- package/.next-prod/static/chunks/2812.dcd8179a6b1d76c9.js +1 -0
- package/.next-prod/static/chunks/2821.fa74c6e87f6e759a.js +1 -0
- package/.next-prod/static/chunks/2839.a832cb0d77a9d298.js +1 -0
- package/.next-prod/static/chunks/2895.0339e755e79ee794.js +1 -0
- package/.next-prod/static/chunks/2921.26016c4c7eb031e8.js +1 -0
- package/.next-prod/static/chunks/2954.7d8daeae6410d4a4.js +1 -0
- package/.next-prod/static/chunks/2964.1a0e15f7327680a2.js +1 -0
- package/.next-prod/static/chunks/2ff9d716.93c18c265de76cfb.js +136 -0
- package/.next-prod/static/chunks/305-fced91c3443b6178.js +1 -0
- package/.next-prod/static/chunks/3072.b6da96c10080c967.js +1 -0
- package/.next-prod/static/chunks/3074.911584369786c26c.js +1 -0
- package/.next-prod/static/chunks/3077.bf82c0c332cc9fec.js +1 -0
- package/.next-prod/static/chunks/3082.159e4ab8f0572597.js +1 -0
- package/.next-prod/static/chunks/3095.8cd478c42cee505a.js +1 -0
- package/.next-prod/static/chunks/3111.1cf85db2faeb20cc.js +1 -0
- package/.next-prod/static/chunks/3126.c89ab7ce8e10978e.js +1 -0
- package/.next-prod/static/chunks/3175.538ce7aec634bddb.js +1 -0
- package/.next-prod/static/chunks/3186.3665756f8aae3eb7.js +1 -0
- package/.next-prod/static/chunks/3194.5a331fb5e3dc34e9.js +1 -0
- package/.next-prod/static/chunks/3229.5e91f7d0b135266b.js +1 -0
- package/.next-prod/static/chunks/327.8ecab0b86d52b597.js +1 -0
- package/.next-prod/static/chunks/3274.858f7f9216c8b074.js +1 -0
- package/.next-prod/static/chunks/3286.196c508356bb0b66.js +1 -0
- package/.next-prod/static/chunks/3288.f210cd6796271d4f.js +1 -0
- package/.next-prod/static/chunks/3290.b5ba2646ad49c9fd.js +1 -0
- package/.next-prod/static/chunks/3304.16305e84f4ff6598.js +1 -0
- package/.next-prod/static/chunks/3313.471138e5504646a9.js +1 -0
- package/.next-prod/static/chunks/3324.85e21e3313d0901c.js +1 -0
- package/.next-prod/static/chunks/3392.460f5a753531f501.js +1 -0
- package/.next-prod/static/chunks/34.ce581867cf95e24b.js +1 -0
- package/.next-prod/static/chunks/3419.78b520dab7e2f96d.js +1 -0
- package/.next-prod/static/chunks/3437.0ad1ecc8c5b8a679.js +1 -0
- package/.next-prod/static/chunks/3476.246c30b47bded3b7.js +1 -0
- package/.next-prod/static/chunks/3483.fc2a0b1185dbaa5d.js +1 -0
- package/.next-prod/static/chunks/3492.ca55498822ad7796.js +1 -0
- package/.next-prod/static/chunks/3530-6d8abfd0e950d439.js +14 -0
- package/.next-prod/static/chunks/36.b4a553bf2106f6d3.js +1 -0
- package/.next-prod/static/chunks/3613.9a37e282a0b018d7.js +1 -0
- package/.next-prod/static/chunks/3682.d8c0079db560c625.js +1 -0
- package/.next-prod/static/chunks/3695-f14fb3e48483755c.js +18 -0
- package/.next-prod/static/chunks/376.9e742ff6919b2b54.js +1 -0
- package/.next-prod/static/chunks/3782.8de9ba0149339c0c.js +1 -0
- package/.next-prod/static/chunks/3787.78ebe68a043f50ce.js +1 -0
- package/.next-prod/static/chunks/3794-337d1ca25ad99a89.js +2 -0
- package/.next-prod/static/chunks/3860.be5b243bf7d6618c.js +1 -0
- package/.next-prod/static/chunks/3873.72a9a21509f713f7.js +1 -0
- package/.next-prod/static/chunks/392.3cad93691f1b7360.js +1 -0
- package/.next-prod/static/chunks/3942.00e2e29e2d62b039.js +1 -0
- package/.next-prod/static/chunks/3979.cea8623f6e9f83ea.js +1 -0
- package/.next-prod/static/chunks/400.59979e0d3ae126e4.js +1 -0
- package/.next-prod/static/chunks/4053.90d71fcbe4ffd852.js +1 -0
- package/.next-prod/static/chunks/4080.08a21dae9e93c547.js +1 -0
- package/.next-prod/static/chunks/4163.c6ebefdd9aa5c358.js +1 -0
- package/.next-prod/static/chunks/4174.9e84de8f8816fe01.js +1 -0
- package/.next-prod/static/chunks/4223.c10556cd92fc8018.js +1 -0
- package/.next-prod/static/chunks/4240-38a224bd376cc8a0.js +1 -0
- package/.next-prod/static/chunks/4242.3a66c58375424a5b.js +1 -0
- package/.next-prod/static/chunks/425.9a3434a28926566a.js +1 -0
- package/.next-prod/static/chunks/4275.8f2e531757c2a813.js +1 -0
- package/.next-prod/static/chunks/4295.6c0f4838b0c9c69d.js +1 -0
- package/.next-prod/static/chunks/4309.a887a10e84c44f9e.js +1 -0
- package/.next-prod/static/chunks/4350.b9d80827e8eee01a.js +1 -0
- package/.next-prod/static/chunks/4357.05060a5a3fea9ff1.js +1 -0
- package/.next-prod/static/chunks/4358.f15dd467571f7594.js +1 -0
- package/.next-prod/static/chunks/4367.2610339aa03a9fb3.js +1 -0
- package/.next-prod/static/chunks/4370.ac13b62c811f7ede.js +1 -0
- package/.next-prod/static/chunks/4402d2ac.d0d1b1777a45e0b2.js +1 -0
- package/.next-prod/static/chunks/4474.053807fa34066566.js +1 -0
- package/.next-prod/static/chunks/4539.559c223da16b0282.js +1 -0
- package/.next-prod/static/chunks/4540.03df20c499bca840.js +1 -0
- package/.next-prod/static/chunks/4553.a16dba8d6d03226c.js +1 -0
- package/.next-prod/static/chunks/4567.d405b50b917bd2c2.js +1 -0
- package/.next-prod/static/chunks/4583.2a5df6eb3a6ea30b.js +1 -0
- package/.next-prod/static/chunks/4593.676ac488744e1af5.js +1 -0
- package/.next-prod/static/chunks/4608.1ff246d6b4c771f8.js +1 -0
- package/.next-prod/static/chunks/4634.0332a56fdb8e26c0.js +1 -0
- package/.next-prod/static/chunks/4650.61aec912b756287b.js +1 -0
- package/.next-prod/static/chunks/4659.b8e05ba7cbf46556.js +1 -0
- package/.next-prod/static/chunks/4678.867dfae26694be02.js +1 -0
- package/.next-prod/static/chunks/4699.8603b2742a761084.js +1 -0
- package/.next-prod/static/chunks/4823.907850963b2bcb70.js +1 -0
- package/.next-prod/static/chunks/4829.402ec60139d36417.js +1 -0
- package/.next-prod/static/chunks/4892.1674cc00200143ba.js +1 -0
- package/.next-prod/static/chunks/4900.b723a916eafdf743.js +1 -0
- package/.next-prod/static/chunks/4903.004f583a12223dac.js +1 -0
- package/.next-prod/static/chunks/4963.0f6678151a159143.js +1 -0
- package/.next-prod/static/chunks/4969.1cb10af9489ea295.js +1 -0
- package/.next-prod/static/chunks/4976.8870319ffbd1c31f.js +1 -0
- package/.next-prod/static/chunks/4bd1b696-e5d7c65570c947b7.js +1 -0
- package/.next-prod/static/chunks/4ca0cff5.07efe2bc8f09d72e.js +1 -0
- package/.next-prod/static/chunks/5005.cf839e066f3d3efe.js +1 -0
- package/.next-prod/static/chunks/5019.2906d96e77b98f68.js +198 -0
- package/.next-prod/static/chunks/5025.b597364f0cf8b85a.js +1 -0
- package/.next-prod/static/chunks/5061.025d30c3123eeaf6.js +1 -0
- package/.next-prod/static/chunks/5136.ac897c2a56ee392f.js +1 -0
- package/.next-prod/static/chunks/5139.83dc2c84aeea716b.js +63 -0
- package/.next-prod/static/chunks/5183.2e5c895a2be76262.js +1 -0
- package/.next-prod/static/chunks/5199.5faac6a2cc104a4c.js +36 -0
- package/.next-prod/static/chunks/5269.25d99df0164521ad.js +23 -0
- package/.next-prod/static/chunks/5318.d48b9096df0171df.js +1 -0
- package/.next-prod/static/chunks/5320.191be461ff110fb3.js +1 -0
- package/.next-prod/static/chunks/5325.aad15a16a5d57787.js +1 -0
- package/.next-prod/static/chunks/5331.4d5d42e5253dbee2.js +1 -0
- package/.next-prod/static/chunks/5338.76f7773c317f3142.js +1 -0
- package/.next-prod/static/chunks/5347.3192e0021174aaa8.js +1 -0
- package/.next-prod/static/chunks/5364.2e5ba480c24d7854.js +148 -0
- package/.next-prod/static/chunks/5375.ebc026e6140b52f1.js +1 -0
- package/.next-prod/static/chunks/5394.9d260f733e336357.js +287 -0
- package/.next-prod/static/chunks/53c1bd3f.2911e2bac119d910.js +1 -0
- package/.next-prod/static/chunks/541.cfa15b606745131a.js +1 -0
- package/.next-prod/static/chunks/5424.4d62f7ee887cd8b9.js +1 -0
- package/.next-prod/static/chunks/5482.0907421e6bf5eeec.js +1 -0
- package/.next-prod/static/chunks/5491.5cc285c4b84dac30.js +1 -0
- package/.next-prod/static/chunks/5493-9f80ad2c7c9cf840.js +1 -0
- package/.next-prod/static/chunks/5498.fa0a196807d6cd2f.js +1 -0
- package/.next-prod/static/chunks/54a60aa6-f60235f3d6b54466.js +79 -0
- package/.next-prod/static/chunks/5518.6c3dc9afe81a566b.js +1 -0
- package/.next-prod/static/chunks/5520.eab85d7487e77510.js +1 -0
- package/.next-prod/static/chunks/5553.75df19e3cc1246d6.js +1 -0
- package/.next-prod/static/chunks/5575.3d90c643343a1329.js +1 -0
- package/.next-prod/static/chunks/5645.9002948124d25d41.js +1 -0
- package/.next-prod/static/chunks/5670.2a1b27a6fdb7aa6b.js +1 -0
- package/.next-prod/static/chunks/5690.d30877807cf5c7eb.js +1 -0
- package/.next-prod/static/chunks/570e4624.a82467c542429379.js +1 -0
- package/.next-prod/static/chunks/5712.574fca2d5f06483a.js +1 -0
- package/.next-prod/static/chunks/5728.8ef773d61765855e.js +1 -0
- package/.next-prod/static/chunks/5750.aa57d25b74640d23.js +1 -0
- package/.next-prod/static/chunks/5755.00015c284ed6fb39.js +1 -0
- package/.next-prod/static/chunks/5788.e5d5040b65e5edf3.js +1 -0
- package/.next-prod/static/chunks/579.33fc87fb95163c6a.js +1 -0
- package/.next-prod/static/chunks/583.5061a2f9e7b7e97d.js +1 -0
- package/.next-prod/static/chunks/5920.9db223329ee9e11a.js +1 -0
- package/.next-prod/static/chunks/5922.0d75c174139a59a4.js +1 -0
- package/.next-prod/static/chunks/5937.0827b5b3eb831ff0.js +1 -0
- package/.next-prod/static/chunks/5968.63d5869783fad06f.js +1 -0
- package/.next-prod/static/chunks/5997.226c07d9e6c496e0.js +1 -0
- package/.next-prod/static/chunks/6026.4027a04696ef04db.js +1 -0
- package/.next-prod/static/chunks/6046.00d36aea7fd5b147.js +1 -0
- package/.next-prod/static/chunks/6089.2dd351186ec85cc3.js +1 -0
- package/.next-prod/static/chunks/6099.43e6595fcf24fc33.js +1 -0
- package/.next-prod/static/chunks/6110.5ce3f75fced27aaf.js +1 -0
- package/.next-prod/static/chunks/6144.f967a8228bcdf663.js +1 -0
- package/.next-prod/static/chunks/6155.e6cf0ef7c818caa9.js +1 -0
- package/.next-prod/static/chunks/6166.ecd82a9dcb484b97.js +1 -0
- package/.next-prod/static/chunks/624.2dd909fbfce98c5e.js +1 -0
- package/.next-prod/static/chunks/6290.e14cf4fc52dd4539.js +1 -0
- package/.next-prod/static/chunks/6293.5914fa73a9f7e777.js +1 -0
- package/.next-prod/static/chunks/6311.5b9c1f74df9a8f67.js +1 -0
- package/.next-prod/static/chunks/6331.758f2f66b92cada9.js +1 -0
- package/.next-prod/static/chunks/6339.bc9301cc22898be0.js +1 -0
- package/.next-prod/static/chunks/6360.ff0a9063773daeeb.js +1 -0
- package/.next-prod/static/chunks/6383.ca3e074feb80c69c.js +1 -0
- package/.next-prod/static/chunks/640.5bf1e25d0bddf875.js +1 -0
- package/.next-prod/static/chunks/6402.a0070d7688ed986b.js +1 -0
- package/.next-prod/static/chunks/6412.089ee787a294d10b.js +1 -0
- package/.next-prod/static/chunks/6455.12b78a2660d609eb.js +1 -0
- package/.next-prod/static/chunks/6460.8ce93fe47320f6c5.js +1 -0
- package/.next-prod/static/chunks/6563.5d618b608750f4dc.js +1 -0
- package/.next-prod/static/chunks/6572.ca2463823b9b01a0.js +1 -0
- package/.next-prod/static/chunks/6580.75d53830b434451f.js +1 -0
- package/.next-prod/static/chunks/6588.0fbca957af7d9e6a.js +1 -0
- package/.next-prod/static/chunks/6647.584c5d5cd8dfdb5a.js +1 -0
- package/.next-prod/static/chunks/6686.796c782c33ab8ca9.js +1 -0
- package/.next-prod/static/chunks/6701.bff0efb979f71a17.js +1 -0
- package/.next-prod/static/chunks/6704.f280f0ad0f5d8644.js +1 -0
- package/.next-prod/static/chunks/6729.0f91dcaaaffa2ed4.js +1 -0
- package/.next-prod/static/chunks/6741.06fdaf122961074e.js +1 -0
- package/.next-prod/static/chunks/6846.91283f709c40802c.js +1 -0
- package/.next-prod/static/chunks/6859.bacad166ee995fe0.js +1 -0
- package/.next-prod/static/chunks/6871.38519003bd87ac1c.js +62 -0
- package/.next-prod/static/chunks/6887.6c81234d73740fb9.js +1 -0
- package/.next-prod/static/chunks/6927.aa3914b5fb0d14d4.js +1 -0
- package/.next-prod/static/chunks/6931.3c90e9fe0f7f1e66.js +1 -0
- package/.next-prod/static/chunks/6938.0ccf683bd8aa8410.js +1 -0
- package/.next-prod/static/chunks/6948.2719ed8731963209.js +1 -0
- package/.next-prod/static/chunks/6959.5a803faf27f88e9f.js +1 -0
- package/.next-prod/static/chunks/6962.3bbd080592d4efa0.js +64 -0
- package/.next-prod/static/chunks/698.e0dda03fd303b96b.js +1 -0
- package/.next-prod/static/chunks/700.65a02f6a597083dc.js +9 -0
- package/.next-prod/static/chunks/7021.b71240b1d5f6fbe4.js +1 -0
- package/.next-prod/static/chunks/7040.b8e05ba7cbf46556.js +1 -0
- package/.next-prod/static/chunks/7041.174bf29bd837f06d.js +1 -0
- package/.next-prod/static/chunks/7082.fc816f91214026d7.js +1 -0
- package/.next-prod/static/chunks/7084.921c9737b83f55eb.js +1 -0
- package/.next-prod/static/chunks/7085.b16e7c0e24741232.js +215 -0
- package/.next-prod/static/chunks/70e0d97a-6903b8594c742784.js +1 -0
- package/.next-prod/static/chunks/7113.86e40b60c804b8c5.js +1 -0
- package/.next-prod/static/chunks/7130.8d24694735826c22.js +1 -0
- package/.next-prod/static/chunks/7142.dbd2cf8141eece5e.js +1 -0
- package/.next-prod/static/chunks/7152.c7b7f1f5e9622f21.js +1 -0
- package/.next-prod/static/chunks/7182.b747e3ef1524157a.js +1 -0
- package/.next-prod/static/chunks/7227.a6b2f01487bb3d9d.js +1 -0
- package/.next-prod/static/chunks/7258.6cbe24c3bcb63d1d.js +1 -0
- package/.next-prod/static/chunks/7425.8b47c8e398a12dd8.js +1 -0
- package/.next-prod/static/chunks/7443.124211e5abc05d3f.js +93 -0
- package/.next-prod/static/chunks/7455.71d54397710b923c.js +1 -0
- package/.next-prod/static/chunks/7465.867e8ff655666413.js +1 -0
- package/.next-prod/static/chunks/7479.433d3878625aba75.js +24 -0
- package/.next-prod/static/chunks/7524.9528295a19a5837a.js +1 -0
- package/.next-prod/static/chunks/7525.f433aaf1fe40c90a.js +1 -0
- package/.next-prod/static/chunks/7547.54b68d37b50c2f21.js +43 -0
- package/.next-prod/static/chunks/7557.bdc743175125b3d8.js +1 -0
- package/.next-prod/static/chunks/7610.b1439345dbcf285d.js +1 -0
- package/.next-prod/static/chunks/7625.ab66bd50d2fb61a4.js +1 -0
- package/.next-prod/static/chunks/7635.166d83de1d29e758.js +1 -0
- package/.next-prod/static/chunks/7636.bf91320a9ff695af.js +1 -0
- package/.next-prod/static/chunks/7650.18f74243e9325242.js +1 -0
- package/.next-prod/static/chunks/7785.1402a4110c300764.js +1 -0
- package/.next-prod/static/chunks/7799.f90cda9aba4e0e77.js +1 -0
- package/.next-prod/static/chunks/7819.3c56f48c0dc5ad5d.js +1 -0
- package/.next-prod/static/chunks/7844.2bb29faa262f313e.js +1 -0
- package/.next-prod/static/chunks/7846.c9705c044ab8f87a.js +1 -0
- package/.next-prod/static/chunks/7874.8db6929b94cdf697.js +1 -0
- package/.next-prod/static/chunks/7884.79af1a2f4511cea5.js +1 -0
- package/.next-prod/static/chunks/7889.af3e581842f34c28.js +1 -0
- package/.next-prod/static/chunks/7921.c361f794cc208e06.js +1 -0
- package/.next-prod/static/chunks/794.06b1ae4fc9cc10a9.js +1 -0
- package/.next-prod/static/chunks/7977.80e4daa080a79c39.js +1 -0
- package/.next-prod/static/chunks/799ebd4e.ccb85c56e9216a38.js +1 -0
- package/.next-prod/static/chunks/7d29de82.30ff86a90cbfd921.js +1 -0
- package/.next-prod/static/chunks/8113.907baefc7227cfb8.js +1 -0
- package/.next-prod/static/chunks/8132.74491162f08af899.js +1 -0
- package/.next-prod/static/chunks/816.ccc7dc455fcaf7c0.js +1 -0
- package/.next-prod/static/chunks/8192.5918d83ac6a0e2dc.js +1 -0
- package/.next-prod/static/chunks/8243.aa3ccfb41335eb1f.js +1 -0
- package/.next-prod/static/chunks/8257.dd8f651f1a43fee2.js +1 -0
- package/.next-prod/static/chunks/8288.8ff86c6a3bee6b7c.js +1 -0
- package/.next-prod/static/chunks/830.e49b226c07876df4.js +1 -0
- package/.next-prod/static/chunks/8317.9c6f22e0c8cd07a8.js +141 -0
- package/.next-prod/static/chunks/8318.a70d7a81445f8cf9.js +1 -0
- package/.next-prod/static/chunks/840.a9c535f8868cc4bd.js +1 -0
- package/.next-prod/static/chunks/8406.955ccfbb4b70b8c3.js +1 -0
- package/.next-prod/static/chunks/8430.b1f802dcffa41626.js +1 -0
- package/.next-prod/static/chunks/8432.bd66ac287c569996.js +1 -0
- package/.next-prod/static/chunks/8457.b61d96d8d30215fc.js +1 -0
- package/.next-prod/static/chunks/8496.046efd6301dd804f.js +1 -0
- package/.next-prod/static/chunks/8545.be0c9eea6aae5971.js +1 -0
- package/.next-prod/static/chunks/8555.ab3ee6358f1d64da.js +1 -0
- package/.next-prod/static/chunks/862.7cd3197e1ba5fd00.js +1 -0
- package/.next-prod/static/chunks/8656.2ceb4e5ff5df2fca.js +1 -0
- package/.next-prod/static/chunks/8670.90ede75068758e82.js +1 -0
- package/.next-prod/static/chunks/8704.a1003918da6654da.js +1 -0
- package/.next-prod/static/chunks/8773.614f1f4f0f845c5e.js +1 -0
- package/.next-prod/static/chunks/8776.6fb12270eca03fd3.js +149 -0
- package/.next-prod/static/chunks/8848.b0a10ee0b0a2b91b.js +1 -0
- package/.next-prod/static/chunks/8863.4a09596cf95e996a.js +82 -0
- package/.next-prod/static/chunks/893.c469257bbbbca4f5.js +1 -0
- package/.next-prod/static/chunks/8947.31d3d834d8281fd9.js +1 -0
- package/.next-prod/static/chunks/9005.473ce947d16e7f65.js +1 -0
- package/.next-prod/static/chunks/9006.11537833945ec4b8.js +1 -0
- package/.next-prod/static/chunks/9015.c4e40321a6503a1b.js +1 -0
- package/.next-prod/static/chunks/90542734.58d84d15ab7a8c98.js +1 -0
- package/.next-prod/static/chunks/9114-abef8471519b7dee.js +1 -0
- package/.next-prod/static/chunks/9136.191be42a2fee842c.js +1 -0
- package/.next-prod/static/chunks/9178.48a90097ee3f0b0c.js +1 -0
- package/.next-prod/static/chunks/9186.3af6fcd13ab752fa.js +1 -0
- package/.next-prod/static/chunks/9189.3e9d29bf275ec462.js +1 -0
- package/.next-prod/static/chunks/9220.0206dd0432eca784.js +1 -0
- package/.next-prod/static/chunks/9224.401f9320ee58570b.js +1 -0
- package/.next-prod/static/chunks/9233.124321d2f404e01c.js +1 -0
- package/.next-prod/static/chunks/9240.d38ddbe94e0bf128.js +1 -0
- package/.next-prod/static/chunks/9261.303cbbe69262a995.js +1 -0
- package/.next-prod/static/chunks/9267.fbfd65ea31e7448c.js +1 -0
- package/.next-prod/static/chunks/9294.a20485f3282321b3.js +1 -0
- package/.next-prod/static/chunks/92e53eb0.097194be4a0e7d55.js +1 -0
- package/.next-prod/static/chunks/9302.726b065f2df0323a.js +1 -0
- package/.next-prod/static/chunks/9318.ba24787a52cefe4c.js +56 -0
- package/.next-prod/static/chunks/9373.6206c440af44002a.js +1 -0
- package/.next-prod/static/chunks/9377.f9db706e76f04afe.js +1 -0
- package/.next-prod/static/chunks/9382.bc0e11ecc88dd62c.js +1 -0
- package/.next-prod/static/chunks/9421.a5c1dbcfbfdd8f52.js +1 -0
- package/.next-prod/static/chunks/9448.2668b3cd408e86de.js +1 -0
- package/.next-prod/static/chunks/9466.3dacf5969d47ba2c.js +1 -0
- package/.next-prod/static/chunks/9521.e1240eb862eb32dc.js +1 -0
- package/.next-prod/static/chunks/9547.7729788fff21926f.js +1 -0
- package/.next-prod/static/chunks/9565.8de0671f99d12abe.js +1 -0
- package/.next-prod/static/chunks/9569.2f36b2b1c2f838d7.js +1 -0
- package/.next-prod/static/chunks/9615.3b62c13af671f714.js +1 -0
- package/.next-prod/static/chunks/9648.8235b6fea7087b3a.js +1 -0
- package/.next-prod/static/chunks/966.57e4cd93c2368d34.js +1 -0
- package/.next-prod/static/chunks/9666.a515fa6d89a71f1c.js +1 -0
- package/.next-prod/static/chunks/968.29d4ba7ee8bd5ccb.js +1 -0
- package/.next-prod/static/chunks/9680.d5ceac8967e0b6a8.js +1 -0
- package/.next-prod/static/chunks/9690.7773c72f0eff6dec.js +1 -0
- package/.next-prod/static/chunks/9841.422321143547591a.js +1 -0
- package/.next-prod/static/chunks/9842.3b71b65b30d8ef2a.js +1 -0
- package/.next-prod/static/chunks/9996.18b7bca2f0ab222e.js +1 -0
- package/.next-prod/static/chunks/aaea2bcf-6b3391c26b869501.js +1 -0
- package/.next-prod/static/chunks/af7f6608.85a7e1eb0d4130b0.js +53 -0
- package/.next-prod/static/chunks/app/_global-error/page-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/_not-found/page-511b5b7e4ffc7ac9.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/global-error-3c48d7d42c672863.js +1 -0
- package/.next-prod/static/chunks/app/layout-44210aade5d56585.js +1 -0
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/app/page-cc2bf3ca4c337090.js +1 -0
- package/.next-prod/static/chunks/app/project/page-fb1ff1d5d382977d.js +25 -0
- package/.next-prod/static/chunks/app/review/[id]/page-64f18d8d2476753c.js +1 -0
- package/.next-prod/static/chunks/ce16f5a9.5c7821b201f35593.js +1 -0
- package/.next-prod/static/chunks/cee15710.869cef5f741d40c2.js +1 -0
- package/.next-prod/static/chunks/cfdf2ac7.4506d3f72b310564.js +1 -0
- package/.next-prod/static/chunks/d1c28714.f52cffdd449a2d14.js +1 -0
- package/.next-prod/static/chunks/d3ac728e-d1ae8819b8f0be6a.js +1 -0
- package/.next-prod/static/chunks/e868780c.a081703edc1bc551.js +18 -0
- package/.next-prod/static/chunks/framework-81b2e59ffe13bb24.js +1 -0
- package/.next-prod/static/chunks/main-ac50dc1e450895a2.js +5 -0
- package/.next-prod/static/chunks/main-app-b76c0df33a946918.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-f2ae9d2d29d5fe08.js +1 -0
- package/.next-prod/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next-prod/static/chunks/webpack-67d02a2a41508d41.js +1 -0
- package/.next-prod/static/css/2163ab5e45fedc6a.css +1 -0
- package/.next-prod/static/css/dd86f60184ab34a9.css +3 -0
- package/.next-prod/static/media/0086f8992871c45b-s.woff2 +0 -0
- package/.next-prod/static/media/03b436aa846269de-s.woff2 +0 -0
- package/.next-prod/static/media/08aedeceaf1dcd57-s.woff2 +0 -0
- package/.next-prod/static/media/0aa834ed78bf6d07-s.woff2 +0 -0
- package/.next-prod/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/.next-prod/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/.next-prod/static/media/36008747766f78c6-s.woff2 +0 -0
- package/.next-prod/static/media/5c0c2bcbaa4149ca-s.p.woff2 +0 -0
- package/.next-prod/static/media/67957d42bae0796d-s.woff2 +0 -0
- package/.next-prod/static/media/6d38f9d4e0f4772b-s.woff2 +0 -0
- package/.next-prod/static/media/886030b0b59bc5a7-s.woff2 +0 -0
- package/.next-prod/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/.next-prod/static/media/939c4f875ee75fbb-s.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/.next-prod/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/.next-prod/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/.next-prod/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/.next-prod/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/.next-prod/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/.next-prod/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/.next-prod/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/.next-prod/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/.next-prod/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/.next-prod/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/.next-prod/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/.next-prod/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
- package/.next-prod/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/.next-prod/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/.next-prod/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/.next-prod/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/.next-prod/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/.next-prod/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/.next-prod/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/.next-prod/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
- package/.next-prod/static/media/ab00a911ac2adf48-s.woff2 +0 -0
- package/.next-prod/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/.next-prod/static/media/bb3ef058b751a6ad-s.p.woff2 +0 -0
- package/.next-prod/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/.next-prod/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/.next-prod/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/.next-prod/static/media/f911b923c6adde36-s.woff2 +0 -0
- package/.next-prod/trace +12 -0
- package/.next-prod/trace-build +1 -0
- package/.next-prod/types/app/api/bash/route.ts +350 -0
- package/.next-prod/types/app/api/chat/route.ts +350 -0
- package/.next-prod/types/app/api/claude-stats/route.ts +350 -0
- package/.next-prod/types/app/api/commands/route.ts +350 -0
- package/.next-prod/types/app/api/comments/route.ts +350 -0
- package/.next-prod/types/app/api/db/columns/route.ts +350 -0
- package/.next-prod/types/app/api/db/connect/route.ts +350 -0
- package/.next-prod/types/app/api/db/disconnect/route.ts +350 -0
- package/.next-prod/types/app/api/db/export/route.ts +350 -0
- package/.next-prod/types/app/api/db/query/route.ts +350 -0
- package/.next-prod/types/app/api/db/schemas/route.ts +350 -0
- package/.next-prod/types/app/api/extension/version/route.ts +350 -0
- package/.next-prod/types/app/api/file/route.ts +350 -0
- package/.next-prod/types/app/api/files/blame/route.ts +350 -0
- package/.next-prod/types/app/api/files/clipboard/route.ts +350 -0
- package/.next-prod/types/app/api/files/copy/route.ts +350 -0
- package/.next-prod/types/app/api/files/delete/route.ts +350 -0
- package/.next-prod/types/app/api/files/expanded/route.ts +350 -0
- package/.next-prod/types/app/api/files/index/route.ts +350 -0
- package/.next-prod/types/app/api/files/init/route.ts +350 -0
- package/.next-prod/types/app/api/files/paste/route.ts +350 -0
- package/.next-prod/types/app/api/files/read/route.ts +350 -0
- package/.next-prod/types/app/api/files/readdir/route.ts +350 -0
- package/.next-prod/types/app/api/files/recent/route.ts +350 -0
- package/.next-prod/types/app/api/files/save/route.ts +350 -0
- package/.next-prod/types/app/api/files/search/route.ts +350 -0
- package/.next-prod/types/app/api/git/branch-diff/route.ts +350 -0
- package/.next-prod/types/app/api/git/branches/route.ts +350 -0
- package/.next-prod/types/app/api/git/commit-diff/route.ts +350 -0
- package/.next-prod/types/app/api/git/commits/route.ts +350 -0
- package/.next-prod/types/app/api/git/diff/route.ts +350 -0
- package/.next-prod/types/app/api/git/discard/route.ts +350 -0
- package/.next-prod/types/app/api/git/stage/route.ts +350 -0
- package/.next-prod/types/app/api/git/status/route.ts +350 -0
- package/.next-prod/types/app/api/git/unstage/route.ts +350 -0
- package/.next-prod/types/app/api/git/worktree/route.ts +350 -0
- package/.next-prod/types/app/api/global-state/route.ts +350 -0
- package/.next-prod/types/app/api/jupyter/load/route.ts +350 -0
- package/.next-prod/types/app/api/jupyter/save/route.ts +350 -0
- package/.next-prod/types/app/api/jupyter/shutdown/route.ts +350 -0
- package/.next-prod/types/app/api/lsp/definition/route.ts +350 -0
- package/.next-prod/types/app/api/lsp/hover/route.ts +350 -0
- package/.next-prod/types/app/api/lsp/references/route.ts +350 -0
- package/.next-prod/types/app/api/lsp/status/route.ts +350 -0
- package/.next-prod/types/app/api/lsp/warmup/route.ts +350 -0
- package/.next-prod/types/app/api/mysql/columns/route.ts +350 -0
- package/.next-prod/types/app/api/mysql/connect/route.ts +350 -0
- package/.next-prod/types/app/api/mysql/disconnect/route.ts +350 -0
- package/.next-prod/types/app/api/mysql/export/route.ts +350 -0
- package/.next-prod/types/app/api/mysql/query/route.ts +350 -0
- package/.next-prod/types/app/api/mysql/schemas/route.ts +350 -0
- package/.next-prod/types/app/api/note/route.ts +350 -0
- package/.next-prod/types/app/api/open-cursor/route.ts +350 -0
- package/.next-prod/types/app/api/open-vscode/route.ts +350 -0
- package/.next-prod/types/app/api/pick-folder/route.ts +350 -0
- package/.next-prod/types/app/api/pinned-sessions/route.ts +350 -0
- package/.next-prod/types/app/api/project-settings/route.ts +350 -0
- package/.next-prod/types/app/api/project-state/route.ts +350 -0
- package/.next-prod/types/app/api/projects/route.ts +350 -0
- package/.next-prod/types/app/api/redis/command/route.ts +350 -0
- package/.next-prod/types/app/api/redis/connect/route.ts +350 -0
- package/.next-prod/types/app/api/redis/delete/route.ts +350 -0
- package/.next-prod/types/app/api/redis/disconnect/route.ts +350 -0
- package/.next-prod/types/app/api/redis/get/route.ts +350 -0
- package/.next-prod/types/app/api/redis/keys/route.ts +350 -0
- package/.next-prod/types/app/api/redis/set/route.ts +350 -0
- package/.next-prod/types/app/api/review/[id]/comments/route.ts +350 -0
- package/.next-prod/types/app/api/review/[id]/replies/route.ts +350 -0
- package/.next-prod/types/app/api/review/[id]/route.ts +350 -0
- package/.next-prod/types/app/api/review/identify/route.ts +350 -0
- package/.next-prod/types/app/api/review/order/route.ts +350 -0
- package/.next-prod/types/app/api/review/route.ts +350 -0
- package/.next-prod/types/app/api/review/share-info/route.ts +350 -0
- package/.next-prod/types/app/api/review/users/route.ts +350 -0
- package/.next-prod/types/app/api/scheduled-tasks/route.ts +350 -0
- package/.next-prod/types/app/api/services/config/route.ts +350 -0
- package/.next-prod/types/app/api/services/scripts/route.ts +350 -0
- package/.next-prod/types/app/api/session/[sessionId]/fork/route.ts +350 -0
- package/.next-prod/types/app/api/session/[sessionId]/history/route.ts +350 -0
- package/.next-prod/types/app/api/session-by-path/route.ts +350 -0
- package/.next-prod/types/app/api/sessions/projects/[encodedPath]/route.ts +350 -0
- package/.next-prod/types/app/api/sessions/projects/route.ts +350 -0
- package/.next-prod/types/app/api/sessions/route.ts +350 -0
- package/.next-prod/types/app/api/settings/route.ts +350 -0
- package/.next-prod/types/app/api/terminal/aliases/route.ts +350 -0
- package/.next-prod/types/app/api/terminal/autocomplete/route.ts +350 -0
- package/.next-prod/types/app/api/terminal/bubble-order/route.ts +350 -0
- package/.next-prod/types/app/api/terminal/env/route.ts +350 -0
- package/.next-prod/types/app/api/terminal/history/route.ts +350 -0
- package/.next-prod/types/app/api/version/route.ts +350 -0
- package/.next-prod/types/app/page.ts +86 -0
- package/.next-prod/types/app/project/page.ts +86 -0
- package/.next-prod/types/app/review/[id]/page.ts +86 -0
- package/.next-prod/types/package.json +1 -0
- package/.next-prod/types/routes.d.ts +164 -0
- package/.next-prod/types/validator.ts +898 -0
- package/LICENSE +21 -0
- package/README.md +94 -0
- package/README.zh.md +100 -0
- package/bin/cock-browser.mjs +435 -0
- package/bin/cock-dev.mjs +6 -0
- package/bin/cock-terminal.mjs +215 -0
- package/bin/cock.mjs +99 -0
- package/bin/postinstall.mjs +29 -0
- package/chrome-extension/automation.js +684 -0
- package/chrome-extension/background.js +364 -0
- package/chrome-extension/content.js +224 -0
- package/chrome-extension/disguise.js +14 -0
- package/chrome-extension/icons/icon128.png +0 -0
- package/chrome-extension/icons/icon16.png +0 -0
- package/chrome-extension/icons/icon48.png +0 -0
- package/chrome-extension/manifest.json +42 -0
- package/chrome-extension/network-capture.js +197 -0
- package/chrome-extension/rules.json +56 -0
- package/dist/JupyterKernelManager-475VNVA5.mjs +248 -0
- package/dist/chunk-OER3N6H7.mjs +250 -0
- package/dist/scheduledTasks.mjs +418 -0
- package/dist/wsServer.mjs +1441 -0
- package/next.config.ts +18 -0
- package/package.json +122 -0
- package/public/favicon.ico +0 -0
- package/public/icons/dev/icon-128x128.png +0 -0
- package/public/icons/dev/icon-144x144.png +0 -0
- package/public/icons/dev/icon-152x152.png +0 -0
- package/public/icons/dev/icon-192x192.png +0 -0
- package/public/icons/dev/icon-384x384.png +0 -0
- package/public/icons/dev/icon-512x512.png +0 -0
- package/public/icons/dev/icon-72x72.png +0 -0
- package/public/icons/dev/icon-96x96.png +0 -0
- package/public/icons/icon-128x128.png +0 -0
- package/public/icons/icon-144x144.png +0 -0
- package/public/icons/icon-152x152.png +0 -0
- package/public/icons/icon-192x192.png +0 -0
- package/public/icons/icon-384x384.png +0 -0
- package/public/icons/icon-512x512.png +0 -0
- package/public/icons/icon-72x72.png +0 -0
- package/public/icons/icon-96x96.png +0 -0
- package/server.mjs +135 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8863],{693:function(e,t,r){var n,i,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||a(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,s(r(43472),t),s(r(41891),t),s(r(35015),t),s(r(96743),t);var o=r(75075);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return o.createProtocolConnection}}),(n=i||(t.LSPErrorCodes=i={})).lspReservedErrorRangeStart=-32899,n.RequestFailed=-32803,n.ServerCancelled=-32802,n.ContentModified=-32801,n.RequestCancelled=-32800,n.lspReservedErrorRangeEnd=-32800},8185:(e,t,r)=>{r.d(t,{D:()=>i});class n{stat(e){throw Error("No file system is available.")}statSync(e){throw Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error("No file system is available.")}readBinarySync(){throw Error("No file system is available.")}readFile(){throw Error("No file system is available.")}readFileSync(){throw Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}}let i={fileSystemProvider:()=>new n}},11812:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(96901);let i=function(e){return(null==e?0:e.length)?(0,n.A)(e,1):[]}},16897:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(38374);let i=function(e,t,r){for(var i=-1,a=e.length;++i<a;){var s=e[i],o=t(s);if(null!=o&&(void 0===l?o==o&&!(0,n.A)(o):r(o,l)))var l=o,u=s}return u}},17028:(e,t,r)=>{r.d(t,{A:()=>s});var n=Object.prototype.hasOwnProperty;let i=function(e,t){return null!=e&&n.call(e,t)};var a=r(62878);let s=function(e,t){return null!=e&&(0,a.A)(e,t,i)}},18308:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(60395),i=r(19396);let a=function(e,t){var r=-1,a=(0,i.A)(e)?Array(e.length):[];return(0,n.A)(e,function(e,n,i){a[++r]=t(e,n,i)}),a}},18479:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(61776);let i=function(e){var t=(0,n.A)(e),r=t%1;return t==t?r?t-r:t:0}},18489:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;let a=r(69185),s=r(58630),o=r(38603);(i=n||(t.CancellationToken=n={})).None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),i.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),i.is=function(e){return e&&(e===i.None||e===i.Cancelled||s.boolean(e.isCancellationRequested)&&!!e.onCancellationRequested)};let l=Object.freeze(function(e,t){let r=(0,a.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}});class u{constructor(){this._isCancelled=!1}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?l:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class c{get token(){return this._token||(this._token=new u),this._token}cancel(){this._token?this._token.cancel():this._token=n.Cancelled}dispose(){this._token?this._token instanceof u&&this._token.dispose():this._token=n.None}}t.CancellationTokenSource=c},18923:(e,t,r)=>{var n,i,a,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;let u=r(35015);(s=n||(t.InlayHintRequest=n={})).method="textDocument/inlayHint",s.messageDirection=u.MessageDirection.clientToServer,s.type=new u.ProtocolRequestType(s.method),(o=i||(t.InlayHintResolveRequest=i={})).method="inlayHint/resolve",o.messageDirection=u.MessageDirection.clientToServer,o.type=new u.ProtocolRequestType(o.method),(l=a||(t.InlayHintRefreshRequest=a={})).method="workspace/inlayHint/refresh",l.messageDirection=u.MessageDirection.serverToClient,l.type=new u.ProtocolRequestType0(l.method)},21878:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;let a=r(69185),s=r(58630),o=r(67116),l=r(38603);(n||(t.MessageWriter=n={})).is=function(e){return e&&s.func(e.dispose)&&s.func(e.onClose)&&s.func(e.onError)&&s.func(e.write)};class u{constructor(){this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=u,(i||(i={})).fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,a.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,a.default)().applicationJson.encoder}};class c extends u{constructor(e,t){super(),this.writable=e,this.options=i.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{let r=[];return r.push("Content-Length: ",t.byteLength.toString(),"\r\n"),r.push("\r\n"),this.doWrite(e,r,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}t.WriteableStreamMessageWriter=c},21974:(e,t,r)=>{var n,i,a,s,o,l,u,c,d,h,p,f,m,g,y,T,R,v,A,E,S,k,C,$,b,N,x,w,I;Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;let P=r(69185),_=r(58630),L=r(47506),O=r(76927),D=r(38603),M=r(18489);(n||(n={})).type=new L.NotificationType("$/cancelRequest"),(i||(t.ProgressToken=i={})).is=function(e){return"string"==typeof e||"number"==typeof e},(a||(a={})).type=new L.NotificationType("$/progress");class F{}t.ProgressType=F,(s||(s={})).is=function(e){return _.func(e)},t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),(E=o||(t.Trace=o={}))[E.Off=0]="Off",E[E.Messages=1]="Messages",E[E.Compact=2]="Compact",E[E.Verbose=3]="Verbose",(S=l||(t.TraceValues=l={})).Off="off",S.Messages="messages",S.Compact="compact",S.Verbose="verbose",(k=o||(t.Trace=o={})).fromString=function(e){if(!_.string(e))return k.Off;switch(e=e.toLowerCase()){case"off":default:return k.Off;case"messages":return k.Messages;case"compact":return k.Compact;case"verbose":return k.Verbose}},k.toString=function(e){switch(e){case k.Off:return"off";case k.Messages:return"messages";case k.Compact:return"compact";case k.Verbose:return"verbose";default:return"off"}},(C=u||(t.TraceFormat=u={})).Text="text",C.JSON="json",($=u||(t.TraceFormat=u={})).fromString=function(e){return _.string(e)&&"json"===(e=e.toLowerCase())?$.JSON:$.Text},(c||(t.SetTraceNotification=c={})).type=new L.NotificationType("$/setTrace"),(d||(t.LogTraceNotification=d={})).type=new L.NotificationType("$/logTrace"),(b=h||(t.ConnectionErrors=h={}))[b.Closed=1]="Closed",b[b.Disposed=2]="Disposed",b[b.AlreadyListening=3]="AlreadyListening";class q extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,q.prototype)}}t.ConnectionError=q,(p||(t.ConnectionStrategy=p={})).is=function(e){return e&&_.func(e.cancelUndispatched)},(f||(t.IdCancellationReceiverStrategy=f={})).is=function(e){return e&&(void 0===e.kind||"id"===e.kind)&&_.func(e.createCancellationTokenSource)&&(void 0===e.dispose||_.func(e.dispose))},(m||(t.RequestCancellationReceiverStrategy=m={})).is=function(e){return e&&"request"===e.kind&&_.func(e.createCancellationTokenSource)&&(void 0===e.dispose||_.func(e.dispose))},(N=g||(t.CancellationReceiverStrategy=g={})).Message=Object.freeze({createCancellationTokenSource:e=>new M.CancellationTokenSource}),N.is=function(e){return f.is(e)||m.is(e)},(x=y||(t.CancellationSenderStrategy=y={})).Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(n.type,{id:t}),cleanup(e){}}),x.is=function(e){return e&&_.func(e.sendCancellation)&&_.func(e.cleanup)},(w=T||(t.CancellationStrategy=T={})).Message=Object.freeze({receiver:g.Message,sender:y.Message}),w.is=function(e){return e&&g.is(e.receiver)&&y.is(e.sender)},(R||(t.MessageStrategy=R={})).is=function(e){return e&&_.func(e.handleMessage)},(v||(t.ConnectionOptions=v={})).is=function(e){return e&&(T.is(e.cancellationStrategy)||p.is(e.connectionStrategy)||R.is(e.messageStrategy))},(I=A||(A={}))[I.New=1]="New",I[I.Listening=2]="Listening",I[I.Closed=3]="Closed",I[I.Disposed=4]="Disposed",t.createMessageConnection=function(e,r,l,p){let m,g,y,v,E=void 0!==l?l:t.NullLogger,S=0,k=0,C=0,$=new Map,b=new Map,N=new Map,x=new O.LinkedMap,w=new Map,I=new Set,F=new Map,j=o.Off,U=u.Text,G=A.New,z=new D.Emitter,K=new D.Emitter,B=new D.Emitter,W=new D.Emitter,V=new D.Emitter,H=p&&p.cancellationStrategy?p.cancellationStrategy:T.Message;function Y(e){if(null===e)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function X(e){}function Q(){return G===A.Listening}function J(){return G===A.Closed}function Z(){return G===A.Disposed}function ee(){(G===A.New||G===A.Listening)&&(G=A.Closed,K.fire(void 0))}function et(e){L.Message.isRequest(e)?function(e){let t,n;if(Z())return;function i(t,n,i){let a={jsonrpc:"2.0",id:e.id};t instanceof L.ResponseError?a.error=t.toJson():a.result=void 0===t?null:t,ei(a,n,i),r.write(a).catch(()=>E.error("Sending response failed."))}function a(t,n,i){let a={jsonrpc:"2.0",id:e.id,error:t.toJson()};ei(a,n,i),r.write(a).catch(()=>E.error("Sending response failed."))}var s,l,c=e;if(j!==o.Off&&g)if(U===u.Text){let e;(j===o.Verbose||j===o.Compact)&&c.params&&(e=`Params: ${en(c.params)}
|
|
2
|
+
|
|
3
|
+
`),g.log(`Received request '${c.method} - (${c.id})'.`,e)}else es("receive-request",c);let d=$.get(e.method);d&&(t=d.type,n=d.handler);let h=Date.now();if(n||y){let o=e.id??String(Date.now()),u=f.is(H.receiver)?H.receiver.createCancellationTokenSource(o):H.receiver.createCancellationTokenSource(e);null!==e.id&&I.has(e.id)&&u.cancel(),null!==e.id&&F.set(o,u);try{let c;if(n)if(void 0===e.params){if(void 0!==t&&0!==t.numberOfParams)return void a(new L.ResponseError(L.ErrorCodes.InvalidParams,`Request ${e.method} defines ${t.numberOfParams} params but received none.`),e.method,h);c=n(u.token)}else if(Array.isArray(e.params)){if(void 0!==t&&t.parameterStructures===L.ParameterStructures.byName)return void a(new L.ResponseError(L.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,h);c=n(...e.params,u.token)}else{if(void 0!==t&&t.parameterStructures===L.ParameterStructures.byPosition)return void a(new L.ResponseError(L.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,h);c=n(e.params,u.token)}else y&&(c=y(e.method,e.params,u.token));let d=c;if(c)d.then?d.then(t=>{F.delete(o),i(t,e.method,h)},t=>{F.delete(o),t instanceof L.ResponseError?a(t,e.method,h):t&&_.string(t.message)?a(new L.ResponseError(L.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,h):a(new L.ResponseError(L.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,h)}):(F.delete(o),i(c,e.method,h));else{let t;F.delete(o),s=c,l=e.method,void 0===s&&(s=null),t={jsonrpc:"2.0",id:e.id,result:s},ei(t,l,h),r.write(t).catch(()=>E.error("Sending response failed."))}}catch(t){F.delete(o),t instanceof L.ResponseError?i(t,e.method,h):t&&_.string(t.message)?a(new L.ResponseError(L.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,h):a(new L.ResponseError(L.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,h)}}else a(new L.ResponseError(L.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,h)}(e):L.Message.isNotification(e)?function(e){let t,r;if(!Z()){if(e.method===n.type.method){let t=e.params.id;I.delete(t),ea(e);return}{let n=b.get(e.method);n&&(t=n.handler,r=n.type)}if(t||v)try{if(ea(e),t)if(void 0===e.params)void 0!==r&&0!==r.numberOfParams&&r.parameterStructures!==L.ParameterStructures.byName&&E.error(`Notification ${e.method} defines ${r.numberOfParams} params but received none.`),t();else if(Array.isArray(e.params)){let n=e.params;e.method===a.type.method&&2===n.length&&i.is(n[0])?t({token:n[0],value:n[1]}):(void 0!==r&&(r.parameterStructures===L.ParameterStructures.byName&&E.error(`Notification ${e.method} defines parameters by name but received parameters by position`),r.numberOfParams!==e.params.length&&E.error(`Notification ${e.method} defines ${r.numberOfParams} params but received ${n.length} arguments`)),t(...n))}else void 0!==r&&r.parameterStructures===L.ParameterStructures.byPosition&&E.error(`Notification ${e.method} defines parameters by position but received parameters by name`),t(e.params);else v&&v(e.method,e.params)}catch(t){t.message?E.error(`Notification handler '${e.method}' failed with message: ${t.message}`):E.error(`Notification handler '${e.method}' failed unexpectedly.`)}else B.fire(e)}}(e):L.Message.isResponse(e)?function(e){if(!Z())if(null===e.id)e.error?E.error(`Received response message without id: Error is:
|
|
4
|
+
${JSON.stringify(e.error,void 0,4)}`):E.error("Received response message without id. No further error information provided.");else{let t=e.id,r=w.get(t);if(function(e,t){if(j!==o.Off&&g)if(U===u.Text){let r;if((j===o.Verbose||j===o.Compact)&&(e.error&&e.error.data?r=`Error data: ${en(e.error.data)}
|
|
5
|
+
|
|
6
|
+
`:e.result?r=`Result: ${en(e.result)}
|
|
7
|
+
|
|
8
|
+
`:void 0===e.error&&(r="No result returned.\n\n")),t){let n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";g.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else g.log(`Received response ${e.id} without active response promise.`,r)}else es("receive-response",e)}(e,r),void 0!==r){w.delete(t);try{if(e.error){let t=e.error;r.reject(new L.ResponseError(t.code,t.message,t.data))}else if(void 0!==e.result)r.resolve(e.result);else throw Error("Should never happen.")}catch(e){e.message?E.error(`Response handler '${r.method}' failed with message: ${e.message}`):E.error(`Response handler '${r.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return E.error("Received empty message.");if(E.error(`Received message which is neither a response nor a notification message:
|
|
9
|
+
${JSON.stringify(e,null,4)}`),_.string(e.id)||_.number(e.id)){let t=e.id,r=w.get(t);r&&r.reject(Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ee),e.onError(function(e){z.fire([e,void 0,void 0])}),r.onClose(ee),r.onError(function(e){z.fire(e)});let er=e=>{try{if(L.Message.isNotification(e)&&e.method===n.type.method){let t=e.params.id,n=Y(t),i=x.get(n);if(L.Message.isRequest(i)){let a=p?.connectionStrategy,s=a&&a.cancelUndispatched?a.cancelUndispatched(i,X):X(i);if(s&&(void 0!==s.error||void 0!==s.result)){x.delete(n),F.delete(t),s.id=i.id,ei(s,e.method,Date.now()),r.write(s).catch(()=>E.error("Sending response for canceled message failed."));return}}let a=F.get(t);if(void 0!==a){a.cancel(),ea(e);return}I.add(t)}var t,i=x;L.Message.isRequest(e)?i.set(Y(e.id),e):L.Message.isResponse(e)?i.set(null===(t=e.id)?"res-unknown-"+(++C).toString():"res-"+t.toString(),e):i.set("not-"+(++k).toString(),e)}finally{!function e(){m||0===x.size||(m=(0,P.default)().timer.setImmediate(()=>{m=void 0,function(){if(0===x.size)return;let t=x.shift();try{let e=p?.messageStrategy;R.is(e)?e.handleMessage(t,et):et(t)}finally{e()}}()}))}()}};function en(e){if(null!=e)switch(j){case o.Verbose:return JSON.stringify(e,null,4);case o.Compact:return JSON.stringify(e);default:return}}function ei(e,t,r){if(j!==o.Off&&g)if(U===u.Text){let n;(j===o.Verbose||j===o.Compact)&&(e.error&&e.error.data?n=`Error data: ${en(e.error.data)}
|
|
10
|
+
|
|
11
|
+
`:e.result?n=`Result: ${en(e.result)}
|
|
12
|
+
|
|
13
|
+
`:void 0===e.error&&(n="No result returned.\n\n")),g.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else es("send-response",e)}function ea(e){if(j!==o.Off&&g&&e.method!==d.type.method)if(U===u.Text){let t;(j===o.Verbose||j===o.Compact)&&(t=e.params?`Params: ${en(e.params)}
|
|
14
|
+
|
|
15
|
+
`:"No parameters provided.\n\n"),g.log(`Received notification '${e.method}'.`,t)}else es("receive-notification",e)}function es(e,t){if(!g||j===o.Off)return;let r={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};g.log(r)}function eo(){if(J())throw new q(h.Closed,"Connection is closed.");if(Z())throw new q(h.Disposed,"Connection is disposed.")}function el(e){return void 0===e?null:e}function eu(e){if(null!==e)return e}function ec(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ed(e,t){switch(e){case L.ParameterStructures.auto:if(ec(t))return eu(t);return[el(t)];case L.ParameterStructures.byName:if(!ec(t))throw Error("Received parameters by name but param is not an object literal.");return eu(t);case L.ParameterStructures.byPosition:return[el(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}function eh(e,t){let r,n=e.numberOfParams;switch(n){case 0:r=void 0;break;case 1:r=ed(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e<t.length&&e<n;e++)r.push(el(t[e]));if(t.length<n)for(let e=t.length;e<n;e++)r.push(null)}return r}let ep={sendNotification:(e,...t)=>{let n,i;if(eo(),_.string(e)){n=e;let r=t[0],a=0,s=L.ParameterStructures.auto;L.ParameterStructures.is(r)&&(a=1,s=r);let o=t.length,l=o-a;switch(l){case 0:i=void 0;break;case 1:i=ed(s,t[a]);break;default:if(s===L.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);i=t.slice(a,o).map(e=>el(e))}}else n=e.method,i=eh(e,t);let a={jsonrpc:"2.0",method:n,params:i};if(j!==o.Off&&g)if(U===u.Text){let e;(j===o.Verbose||j===o.Compact)&&(e=a.params?`Params: ${en(a.params)}
|
|
16
|
+
|
|
17
|
+
`:"No parameters provided.\n\n"),g.log(`Sending notification '${a.method}'.`,e)}else es("send-notification",a);return r.write(a).catch(e=>{throw E.error("Sending notification failed."),e})},onNotification:(e,t)=>{let r;return eo(),_.func(e)?v=e:t&&(_.string(e)?(r=e,b.set(e,{type:void 0,handler:t})):(r=e.method,b.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==r?b.delete(r):v=void 0}}},onProgress:(e,t,r)=>{if(N.has(t))throw Error(`Progress handler for token ${t} already registered`);return N.set(t,r),{dispose:()=>{N.delete(t)}}},sendProgress:(e,t,r)=>ep.sendNotification(a.type,{token:t,value:r}),onUnhandledProgress:W.event,sendRequest:(e,...t)=>{let n,i,a,s;if(eo(),!Q())throw Error("Call listen() first.");if(_.string(e)){n=e;let r=t[0],a=t[t.length-1],o=0,l=L.ParameterStructures.auto;L.ParameterStructures.is(r)&&(o=1,l=r);let u=t.length;M.CancellationToken.is(a)&&(u-=1,s=a);let c=u-o;switch(c){case 0:i=void 0;break;case 1:i=ed(l,t[o]);break;default:if(l===L.ParameterStructures.byName)throw Error(`Received ${c} parameters for 'by Name' request parameter structure.`);i=t.slice(o,u).map(e=>el(e))}}else{n=e.method,i=eh(e,t);let r=e.numberOfParams;s=M.CancellationToken.is(t[r])?t[r]:void 0}let l=S++;s&&(a=s.onCancellationRequested(()=>{let e=H.sender.sendCancellation(ep,l);return void 0===e?(E.log(`Received no promise from cancellation strategy when cancelling id ${l}`),Promise.resolve()):e.catch(()=>{E.log(`Sending cancellation messages for id ${l} failed`)})}));let c={jsonrpc:"2.0",id:l,method:n,params:i};if(j!==o.Off&&g)if(U===u.Text){let e;(j===o.Verbose||j===o.Compact)&&c.params&&(e=`Params: ${en(c.params)}
|
|
18
|
+
|
|
19
|
+
`),g.log(`Sending request '${c.method} - (${c.id})'.`,e)}else es("send-request",c);return"function"==typeof H.sender.enableCancellation&&H.sender.enableCancellation(c),new Promise(async(e,t)=>{let i={method:n,timerStart:Date.now(),resolve:t=>{e(t),H.sender.cleanup(l),a?.dispose()},reject:e=>{t(e),H.sender.cleanup(l),a?.dispose()}};try{await r.write(c),w.set(l,i)}catch(e){throw E.error("Sending request failed."),i.reject(new L.ResponseError(L.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),e}})},onRequest:(e,t)=>{eo();let r=null;return s.is(e)?(r=void 0,y=e):_.string(e)?(r=null,void 0!==t&&(r=e,$.set(e,{handler:t,type:void 0}))):void 0!==t&&(r=e.method,$.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==r&&(void 0!==r?$.delete(r):y=void 0)}}},hasPendingResponse:()=>w.size>0,trace:async(e,t,r)=>{let n=!1,i=u.Text;void 0!==r&&(_.boolean(r)?n=r:(n=r.sendNotification||!1,i=r.traceFormat||u.Text)),j=e,U=i,g=j===o.Off?void 0:t,!n||J()||Z()||await ep.sendNotification(c.type,{value:o.toString(e)})},onError:z.event,onClose:K.event,onUnhandledNotification:B.event,onDispose:V.event,end:()=>{r.end()},dispose:()=>{if(Z())return;G=A.Disposed,V.fire(void 0);let t=new L.ResponseError(L.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let e of w.values())e.reject(t);w=new Map,F=new Map,I=new Set,x=new O.LinkedMap,_.func(r.dispose)&&r.dispose(),_.func(e.dispose)&&e.dispose()},listen:()=>{if(eo(),Q())throw new q(h.AlreadyListening,"Connection is already listening");G=A.Listening,e.listen(er)},inspect:()=>{(0,P.default)().console.log("inspect")}};return ep.onNotification(d.type,e=>{if(j===o.Off||!g)return;let t=j===o.Verbose||j===o.Compact;g.log(e.message,t?e.verbose:void 0)}),ep.onNotification(a.type,e=>{let t=N.get(e.token);t?t(e.value):W.fire(e)}),ep}},24448:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;let a=r(35015);(i=n||(t.SelectionRangeRequest=n={})).method="textDocument/selectionRange",i.messageDirection=a.MessageDirection.clientToServer,i.type=new a.ProtocolRequestType(i.method)},25250:(e,t,r)=>{var n,i,a,s,o,l,u,c,d,h,p,f,m,g,y,T,R,v,A,E;Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;let S=r(41891),k=r(69589),C=r(35015);(p=n||(t.NotebookCellKind=n={})).Markup=1,p.Code=2,p.is=function(e){return 1===e||2===e},(f=i||(t.ExecutionSummary=i={})).create=function(e,t){let r={executionOrder:e};return(!0===t||!1===t)&&(r.success=t),r},f.is=function(e){return k.objectLiteral(e)&&S.uinteger.is(e.executionOrder)&&(void 0===e.success||k.boolean(e.success))},f.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success},(m=a||(t.NotebookCell=a={})).create=function(e,t){return{kind:e,document:t}},m.is=function(e){return k.objectLiteral(e)&&n.is(e.kind)&&S.DocumentUri.is(e.document)&&(void 0===e.metadata||k.objectLiteral(e.metadata))},m.diff=function(e,t){let r=new Set;return e.document!==t.document&&r.add("document"),e.kind!==t.kind&&r.add("kind"),e.executionSummary!==t.executionSummary&&r.add("executionSummary"),(void 0!==e.metadata||void 0!==t.metadata)&&!function e(t,r){if(t===r)return!0;if(null==t||null==r||typeof t!=typeof r||"object"!=typeof t)return!1;let n=Array.isArray(t),i=Array.isArray(r);if(n!==i)return!1;if(n&&i){if(t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],r[n]))return!1}if(k.objectLiteral(t)&&k.objectLiteral(r)){let n=Object.keys(t),i=Object.keys(r);if(n.length!==i.length||(n.sort(),i.sort(),!e(n,i)))return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!e(t[a],r[a]))return!1}}return!0}(e.metadata,t.metadata)&&r.add("metadata"),void 0===e.executionSummary&&void 0===t.executionSummary||i.equals(e.executionSummary,t.executionSummary)||r.add("executionSummary"),r},(g=s||(t.NotebookDocument=s={})).create=function(e,t,r,n){return{uri:e,notebookType:t,version:r,cells:n}},g.is=function(e){return k.objectLiteral(e)&&k.string(e.uri)&&S.integer.is(e.version)&&k.typedArray(e.cells,a.is)},(y=o||(t.NotebookDocumentSyncRegistrationType=o={})).method="notebookDocument/sync",y.messageDirection=C.MessageDirection.clientToServer,y.type=new C.RegistrationType(y.method),(T=l||(t.DidOpenNotebookDocumentNotification=l={})).method="notebookDocument/didOpen",T.messageDirection=C.MessageDirection.clientToServer,T.type=new C.ProtocolNotificationType(T.method),T.registrationMethod=o.method,(R=u||(t.NotebookCellArrayChange=u={})).is=function(e){return k.objectLiteral(e)&&S.uinteger.is(e.start)&&S.uinteger.is(e.deleteCount)&&(void 0===e.cells||k.typedArray(e.cells,a.is))},R.create=function(e,t,r){let n={start:e,deleteCount:t};return void 0!==r&&(n.cells=r),n},(v=c||(t.DidChangeNotebookDocumentNotification=c={})).method="notebookDocument/didChange",v.messageDirection=C.MessageDirection.clientToServer,v.type=new C.ProtocolNotificationType(v.method),v.registrationMethod=o.method,(A=d||(t.DidSaveNotebookDocumentNotification=d={})).method="notebookDocument/didSave",A.messageDirection=C.MessageDirection.clientToServer,A.type=new C.ProtocolNotificationType(A.method),A.registrationMethod=o.method,(E=h||(t.DidCloseNotebookDocumentNotification=h={})).method="notebookDocument/didClose",E.messageDirection=C.MessageDirection.clientToServer,E.type=new C.ProtocolNotificationType(E.method),E.registrationMethod=o.method},26427:(e,t,r)=>{var n,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;let o=r(35015);(a=n||(t.DocumentColorRequest=n={})).method="textDocument/documentColor",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=i||(t.ColorPresentationRequest=i={})).method="textDocument/colorPresentation",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method)},26787:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;let a=r(43596);i(r(43596),t),i(r(693),t),t.createProtocolConnection=function(e,t,r,n){return(0,a.createMessageConnection)(e,t,r,n)}},26855:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;let a=r(35015);(i=n||(t.LinkedEditingRangeRequest=n={})).method="textDocument/linkedEditingRange",i.messageDirection=a.MessageDirection.clientToServer,i.type=new a.ProtocolRequestType(i.method)},27427:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(88644);let i=function(e){return(0,n.A)(e,4)}},27438:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;let n=r(47506);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return n.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return n.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return n.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return n.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return n.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return n.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return n.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return n.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return n.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return n.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return n.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return n.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return n.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return n.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return n.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return n.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return n.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return n.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return n.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return n.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return n.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return n.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return n.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return n.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return n.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return n.ParameterStructures}});let i=r(76927);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return i.Touch}});let a=r(62772);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return a.Disposable}});let s=r(38603);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});let o=r(18489);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return o.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return o.CancellationToken}});let l=r(91847);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return l.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return l.SharedArrayReceiverStrategy}});let u=r(33878);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return u.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return u.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return u.ReadableStreamMessageReader}});let c=r(21878);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return c.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return c.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return c.WriteableStreamMessageWriter}});let d=r(66751);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return d.AbstractMessageBuffer}});let h=r(21974);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return h.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return h.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return h.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return h.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return h.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return h.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return h.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return h.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return h.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return h.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return h.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return h.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return h.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return h.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return h.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return h.MessageStrategy}}),t.RAL=r(69185).default},28528:(e,t,r)=>{var n,i,a,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;let u=r(35015);(s=n||(t.UniquenessLevel=n={})).document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global",(o=i||(t.MonikerKind=i={})).$import="import",o.$export="export",o.local="local",(l=a||(t.MonikerRequest=a={})).method="textDocument/moniker",l.messageDirection=u.MessageDirection.clientToServer,l.type=new u.ProtocolRequestType(l.method)},30429:(e,t,r)=>{r.d(t,{DM:()=>f,OP:()=>m,SD:()=>function e(t,r={}){for(let[i,a]of Object.entries(t))!i.startsWith("$")&&(Array.isArray(a)?a.forEach((a,s)=>{(0,n.ng)(a)&&(a.$container=t,a.$containerProperty=i,a.$containerIndex=s,r.deep&&e(a,r))}):(0,n.ng)(a)&&(a.$container=t,a.$containerProperty=i,r.deep&&e(a,r)))},Uo:()=>d,VN:()=>c,XG:()=>s,YE:()=>o,cQ:()=>l,jm:()=>h,tC:()=>u});var n=r(77557),i=r(73303),a=r(93207);function s(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function o(e){let t=l(e).$document;if(!t)throw Error("AST node has no document.");return t}function l(e){for(;e.$container;)e=e.$container;return e}function u(e){return(0,n.A_)(e)?e.ref?[e.ref]:[]:(0,n.Dm)(e)?e.items.map(e=>e.ref):[]}function c(e,t){if(!e)throw Error("Node must be an AstNode.");let r=t?.range;return new i.fq(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let i=t.keys[t.keyIndex];if(!i.startsWith("$")){let a=e[i];if((0,n.ng)(a)){if(t.keyIndex++,p(a,r))return{done:!1,value:a}}else if(Array.isArray(a)){for(;t.arrayIndex<a.length;){let e=a[t.arrayIndex++];if((0,n.ng)(e)&&p(e,r))return{done:!1,value:e}}t.arrayIndex=0}}t.keyIndex++}return i.Rf})}function d(e,t){if(!e)throw Error("Root node must be an AstNode.");return new i.Vj(e,e=>c(e,t))}function h(e,t){if(e){if(t?.range&&!p(e,t.range))return new i.Vj(e,()=>[])}else throw Error("Root node must be an AstNode.");return new i.Vj(e,e=>c(e,t),{includeRoot:!0})}function p(e,t){if(!t)return!0;let r=e.$cstNode?.range;return!!r&&(0,a.r4)(r,t)}function f(e){return new i.fq(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){let r=t.keys[t.keyIndex];if(!r.startsWith("$")){let i=e[r];if((0,n.A_)(i)||(0,n.Dm)(i))return t.keyIndex++,{done:!1,value:{reference:i,container:e,property:r}};if(Array.isArray(i)){for(;t.arrayIndex<i.length;){let a=t.arrayIndex++,s=i[a];if((0,n.A_)(s)||(0,n.Dm)(i))return{done:!1,value:{reference:s,container:e,property:r,index:a}}}t.arrayIndex=0}}t.keyIndex++}return i.Rf})}function m(e,t){for(let r of Object.values(e.getTypeMetaData(t.$type).properties))void 0!==r.defaultValue&&void 0===t[r.name]&&(t[r.name]=function e(t){return Array.isArray(t)?[...t.map(e)]:t}(r.defaultValue))}},33156:(e,t,r)=>{var n,i,a,s,o,l,u,c,d;Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;let h=r(43472),p=r(69589),f=r(35015);(n||(t.DiagnosticServerCancellationData=n={})).is=function(e){return e&&p.boolean(e.retriggerRequest)},(l=i||(t.DocumentDiagnosticReportKind=i={})).Full="full",l.Unchanged="unchanged",(u=a||(t.DocumentDiagnosticRequest=a={})).method="textDocument/diagnostic",u.messageDirection=f.MessageDirection.clientToServer,u.type=new f.ProtocolRequestType(u.method),u.partialResult=new h.ProgressType,(c=s||(t.WorkspaceDiagnosticRequest=s={})).method="workspace/diagnostic",c.messageDirection=f.MessageDirection.clientToServer,c.type=new f.ProtocolRequestType(c.method),c.partialResult=new h.ProgressType,(d=o||(t.DiagnosticRefreshRequest=o={})).method="workspace/diagnostic/refresh",d.messageDirection=f.MessageDirection.serverToClient,d.type=new f.ProtocolRequestType0(d.method)},33478:(e,t,r)=>{var n,i,a,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;let u=r(35015);(s=n||(t.CallHierarchyPrepareRequest=n={})).method="textDocument/prepareCallHierarchy",s.messageDirection=u.MessageDirection.clientToServer,s.type=new u.ProtocolRequestType(s.method),(o=i||(t.CallHierarchyIncomingCallsRequest=i={})).method="callHierarchy/incomingCalls",o.messageDirection=u.MessageDirection.clientToServer,o.type=new u.ProtocolRequestType(o.method),(l=a||(t.CallHierarchyOutgoingCallsRequest=a={})).method="callHierarchy/outgoingCalls",l.messageDirection=u.MessageDirection.clientToServer,l.type=new u.ProtocolRequestType(l.method)},33500:(e,t,r)=>{var n,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;let o=r(35015);(a=n||(t.WorkspaceFoldersRequest=n={})).method="workspace/workspaceFolders",a.messageDirection=o.MessageDirection.serverToClient,a.type=new o.ProtocolRequestType0(a.method),(s=i||(t.DidChangeWorkspaceFoldersNotification=i={})).method="workspace/didChangeWorkspaceFolders",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolNotificationType(s.method)},33847:(e,t,r)=>{var n,i,a,s,o,l,u,c,d,h,p,f,m,g;Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;let y=r(35015);(c=n||(t.FileOperationPatternKind=n={})).file="file",c.folder="folder",(d=i||(t.WillCreateFilesRequest=i={})).method="workspace/willCreateFiles",d.messageDirection=y.MessageDirection.clientToServer,d.type=new y.ProtocolRequestType(d.method),(h=a||(t.DidCreateFilesNotification=a={})).method="workspace/didCreateFiles",h.messageDirection=y.MessageDirection.clientToServer,h.type=new y.ProtocolNotificationType(h.method),(p=s||(t.WillRenameFilesRequest=s={})).method="workspace/willRenameFiles",p.messageDirection=y.MessageDirection.clientToServer,p.type=new y.ProtocolRequestType(p.method),(f=o||(t.DidRenameFilesNotification=o={})).method="workspace/didRenameFiles",f.messageDirection=y.MessageDirection.clientToServer,f.type=new y.ProtocolNotificationType(f.method),(m=l||(t.DidDeleteFilesNotification=l={})).method="workspace/didDeleteFiles",m.messageDirection=y.MessageDirection.clientToServer,m.type=new y.ProtocolNotificationType(m.method),(g=u||(t.WillDeleteFilesRequest=u={})).method="workspace/willDeleteFiles",g.messageDirection=y.MessageDirection.clientToServer,g.type=new y.ProtocolRequestType(g.method)},33878:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;let a=r(69185),s=r(58630),o=r(38603),l=r(67116);(n||(t.MessageReader=n={})).is=function(e){return e&&s.func(e.listen)&&s.func(e.dispose)&&s.func(e.onError)&&s.func(e.onClose)&&s.func(e.onPartialMessage)};class u{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=u,(i||(i={})).fromOptions=function(e){let t,r,n,i=new Map,s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(r=e.contentDecoder,i.set(r.name,r)),void 0!==e.contentDecoders)for(let t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(n=e.contentTypeDecoder,s.set(n.name,n)),void 0!==e.contentTypeDecoders)for(let t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===n&&(n=(0,a.default)().applicationJson.decoder,s.set(n.name,n)),{charset:t,contentDecoder:r,contentDecoders:i,contentTypeDecoder:n,contentTypeDecoders:s}};class c extends u{constructor(e,t){super(),this.readable=e,this.options=i.fromOptions(t),this.buffer=(0,a.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new l.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get("content-length");if(!t)return void this.fireError(Error(`Header must provide a Content-Length property.
|
|
20
|
+
${JSON.stringify(Object.fromEntries(e))}`));let r=parseInt(t);if(isNaN(r))return void this.fireError(Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=r}let e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,a.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}t.ReadableStreamMessageReader=c},34361:(e,t,r)=>{r.d(t,{f:()=>c});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},l=class extends n.dg{static{(0,n.K2)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},u={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new l,"ValueConverter")}};function c(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.D_,u);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}(0,n.K2)(c,"createPieServices")},35015:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;let a=r(43472);(i=n||(t.MessageDirection=n={})).clientToServer="clientToServer",i.serverToClient="serverToClient",i.both="both";class s{constructor(e){this.method=e}}t.RegistrationType=s;class o extends a.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=o;class l extends a.RequestType{constructor(e){super(e,a.ParameterStructures.byName)}}t.ProtocolRequestType=l;class u extends a.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=u;class c extends a.NotificationType{constructor(e){super(e,a.ParameterStructures.byName)}}t.ProtocolNotificationType=c},38603:(e,t,r)=>{var n,i;let a;Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;let s=r(69185);i=n||(t.Event=n={}),a={dispose(){}},i.None=function(){return a};class o{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let n=0,i=this._callbacks.length;n<i;n++)if(this._callbacks[n]===e)if(this._contexts[n]===t){this._callbacks.splice(n,1),this._contexts.splice(n,1);return}else r=!0;if(r)throw Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),n=this._contexts.slice(0);for(let i=0,a=r.length;i<a;i++)try{t.push(r[i].apply(n[i],e))}catch(e){(0,s.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class l{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new o),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);let n={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),n.dispose=l._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(n),n}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=l,l._noop=function(){}},39701:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;let a=r(35015);(i=n||(t.DeclarationRequest=n={})).method="textDocument/declaration",i.messageDirection=a.MessageDirection.clientToServer,i.type=new a.ProtocolRequestType(i.method)},41891:(e,t,r)=>{var n,i,a,s,o,l,u,c,d,h,p,f,m,g,y,T,R,v,A,E,S,k,C,$,b,N,x,w,I,P,_,L,O,D,M,F,q,j,U,G,z,K,B,W,V,H,Y,X,Q,J,Z,ee,et,er,en,ei,ea,es,eo,el,eu,ec,ed,eh,ep,ef,em,eg,ey,eT,eR,ev,eA,eE,eS,ek,eC,e$,eb,eN,ex,ew,eI,eP,e_,eL,eO,eD,eM,eF,eq,ej,eU,eG,ez,eK,eB,eW,eV,eH,eY,eX,eQ,eJ,eZ,e0,e1,e2,e3,e5,e9,e4,e8,e7,e6,te,tt,tr,tn,ti,ta,ts,to,tl,tu,tc,td,th,tp,tf,tm,tg,ty,tT,tR,tv;let tA;r.r(t),r.d(t,{AnnotatedTextEdit:()=>C,ChangeAnnotation:()=>S,ChangeAnnotationIdentifier:()=>k,CodeAction:()=>ea,CodeActionContext:()=>ei,CodeActionKind:()=>er,CodeActionTriggerKind:()=>en,CodeDescription:()=>R,CodeLens:()=>es,Color:()=>d,ColorInformation:()=>h,ColorPresentation:()=>p,Command:()=>A,CompletionItem:()=>z,CompletionItemKind:()=>M,CompletionItemLabelDetails:()=>G,CompletionItemTag:()=>q,CompletionList:()=>K,CreateFile:()=>b,DeleteFile:()=>x,Diagnostic:()=>v,DiagnosticRelatedInformation:()=>g,DiagnosticSeverity:()=>y,DiagnosticTag:()=>T,DocumentHighlight:()=>X,DocumentHighlightKind:()=>Y,DocumentLink:()=>el,DocumentSymbol:()=>et,DocumentUri:()=>n,EOL:()=>tC,FoldingRange:()=>m,FoldingRangeKind:()=>f,FormattingOptions:()=>eo,Hover:()=>W,InlayHint:()=>eR,InlayHintKind:()=>ey,InlayHintLabelPart:()=>eT,InlineCompletionContext:()=>eC,InlineCompletionItem:()=>eA,InlineCompletionList:()=>eE,InlineCompletionTriggerKind:()=>eS,InlineValueContext:()=>eg,InlineValueEvaluatableExpression:()=>em,InlineValueText:()=>ep,InlineValueVariableLookup:()=>ef,InsertReplaceEdit:()=>j,InsertTextFormat:()=>F,InsertTextMode:()=>U,Location:()=>u,LocationLink:()=>c,MarkedString:()=>B,MarkupContent:()=>D,MarkupKind:()=>O,OptionalVersionedTextDocumentIdentifier:()=>_,ParameterInformation:()=>V,Position:()=>o,Range:()=>l,RenameFile:()=>N,SelectedCompletionInfo:()=>ek,SelectionRange:()=>eu,SemanticTokenModifiers:()=>ed,SemanticTokenTypes:()=>ec,SemanticTokens:()=>eh,SignatureInformation:()=>H,StringValue:()=>ev,SymbolInformation:()=>Z,SymbolKind:()=>Q,SymbolTag:()=>J,TextDocument:()=>eb,TextDocumentEdit:()=>$,TextDocumentIdentifier:()=>I,TextDocumentItem:()=>L,TextEdit:()=>E,URI:()=>i,VersionedTextDocumentIdentifier:()=>P,WorkspaceChange:()=>tk,WorkspaceEdit:()=>w,WorkspaceFolder:()=>e$,WorkspaceSymbol:()=>ee,integer:()=>a,uinteger:()=>s}),(n||(n={})).is=function(e){return"string"==typeof e},(i||(i={})).is=function(e){return"string"==typeof e},(ex=a||(a={})).MIN_VALUE=-0x80000000,ex.MAX_VALUE=0x7fffffff,ex.is=function(e){return"number"==typeof e&&ex.MIN_VALUE<=e&&e<=ex.MAX_VALUE},(ew=s||(s={})).MIN_VALUE=0,ew.MAX_VALUE=0x7fffffff,ew.is=function(e){return"number"==typeof e&&ew.MIN_VALUE<=e&&e<=ew.MAX_VALUE},(eI=o||(o={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},eI.is=function(e){return eN.objectLiteral(e)&&eN.uinteger(e.line)&&eN.uinteger(e.character)},(eP=l||(l={})).create=function(e,t,r,n){if(eN.uinteger(e)&&eN.uinteger(t)&&eN.uinteger(r)&&eN.uinteger(n))return{start:o.create(e,t),end:o.create(r,n)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${r}, ${n}]`)},eP.is=function(e){return eN.objectLiteral(e)&&o.is(e.start)&&o.is(e.end)},(e_=u||(u={})).create=function(e,t){return{uri:e,range:t}},e_.is=function(e){return eN.objectLiteral(e)&&l.is(e.range)&&(eN.string(e.uri)||eN.undefined(e.uri))},(eL=c||(c={})).create=function(e,t,r,n){return{targetUri:e,targetRange:t,targetSelectionRange:r,originSelectionRange:n}},eL.is=function(e){return eN.objectLiteral(e)&&l.is(e.targetRange)&&eN.string(e.targetUri)&&l.is(e.targetSelectionRange)&&(l.is(e.originSelectionRange)||eN.undefined(e.originSelectionRange))},(eO=d||(d={})).create=function(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}},eO.is=function(e){return eN.objectLiteral(e)&&eN.numberRange(e.red,0,1)&&eN.numberRange(e.green,0,1)&&eN.numberRange(e.blue,0,1)&&eN.numberRange(e.alpha,0,1)},(eD=h||(h={})).create=function(e,t){return{range:e,color:t}},eD.is=function(e){return eN.objectLiteral(e)&&l.is(e.range)&&d.is(e.color)},(eM=p||(p={})).create=function(e,t,r){return{label:e,textEdit:t,additionalTextEdits:r}},eM.is=function(e){return eN.objectLiteral(e)&&eN.string(e.label)&&(eN.undefined(e.textEdit)||E.is(e))&&(eN.undefined(e.additionalTextEdits)||eN.typedArray(e.additionalTextEdits,E.is))},(eF=f||(f={})).Comment="comment",eF.Imports="imports",eF.Region="region",(eq=m||(m={})).create=function(e,t,r,n,i,a){let s={startLine:e,endLine:t};return eN.defined(r)&&(s.startCharacter=r),eN.defined(n)&&(s.endCharacter=n),eN.defined(i)&&(s.kind=i),eN.defined(a)&&(s.collapsedText=a),s},eq.is=function(e){return eN.objectLiteral(e)&&eN.uinteger(e.startLine)&&eN.uinteger(e.startLine)&&(eN.undefined(e.startCharacter)||eN.uinteger(e.startCharacter))&&(eN.undefined(e.endCharacter)||eN.uinteger(e.endCharacter))&&(eN.undefined(e.kind)||eN.string(e.kind))},(ej=g||(g={})).create=function(e,t){return{location:e,message:t}},ej.is=function(e){return eN.defined(e)&&u.is(e.location)&&eN.string(e.message)},(eU=y||(y={})).Error=1,eU.Warning=2,eU.Information=3,eU.Hint=4,(eG=T||(T={})).Unnecessary=1,eG.Deprecated=2,(R||(R={})).is=function(e){return eN.objectLiteral(e)&&eN.string(e.href)},(ez=v||(v={})).create=function(e,t,r,n,i,a){let s={range:e,message:t};return eN.defined(r)&&(s.severity=r),eN.defined(n)&&(s.code=n),eN.defined(i)&&(s.source=i),eN.defined(a)&&(s.relatedInformation=a),s},ez.is=function(e){var t;return eN.defined(e)&&l.is(e.range)&&eN.string(e.message)&&(eN.number(e.severity)||eN.undefined(e.severity))&&(eN.integer(e.code)||eN.string(e.code)||eN.undefined(e.code))&&(eN.undefined(e.codeDescription)||eN.string(null==(t=e.codeDescription)?void 0:t.href))&&(eN.string(e.source)||eN.undefined(e.source))&&(eN.undefined(e.relatedInformation)||eN.typedArray(e.relatedInformation,g.is))},(eK=A||(A={})).create=function(e,t,...r){let n={title:e,command:t};return eN.defined(r)&&r.length>0&&(n.arguments=r),n},eK.is=function(e){return eN.defined(e)&&eN.string(e.title)&&eN.string(e.command)},(eB=E||(E={})).replace=function(e,t){return{range:e,newText:t}},eB.insert=function(e,t){return{range:{start:e,end:e},newText:t}},eB.del=function(e){return{range:e,newText:""}},eB.is=function(e){return eN.objectLiteral(e)&&eN.string(e.newText)&&l.is(e.range)},(eW=S||(S={})).create=function(e,t,r){let n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==r&&(n.description=r),n},eW.is=function(e){return eN.objectLiteral(e)&&eN.string(e.label)&&(eN.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(eN.string(e.description)||void 0===e.description)},(k||(k={})).is=function(e){return eN.string(e)},(eV=C||(C={})).replace=function(e,t,r){return{range:e,newText:t,annotationId:r}},eV.insert=function(e,t,r){return{range:{start:e,end:e},newText:t,annotationId:r}},eV.del=function(e,t){return{range:e,newText:"",annotationId:t}},eV.is=function(e){return E.is(e)&&(S.is(e.annotationId)||k.is(e.annotationId))},(eH=$||($={})).create=function(e,t){return{textDocument:e,edits:t}},eH.is=function(e){return eN.defined(e)&&_.is(e.textDocument)&&Array.isArray(e.edits)},(eY=b||(b={})).create=function(e,t,r){let n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==r&&(n.annotationId=r),n},eY.is=function(e){return e&&"create"===e.kind&&eN.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||eN.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||eN.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||k.is(e.annotationId))},(eX=N||(N={})).create=function(e,t,r,n){let i={kind:"rename",oldUri:e,newUri:t};return void 0!==r&&(void 0!==r.overwrite||void 0!==r.ignoreIfExists)&&(i.options=r),void 0!==n&&(i.annotationId=n),i},eX.is=function(e){return e&&"rename"===e.kind&&eN.string(e.oldUri)&&eN.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||eN.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||eN.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||k.is(e.annotationId))},(eQ=x||(x={})).create=function(e,t,r){let n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==r&&(n.annotationId=r),n},eQ.is=function(e){return e&&"delete"===e.kind&&eN.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||eN.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||eN.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||k.is(e.annotationId))},(w||(w={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(e=>eN.string(e.kind)?b.is(e)||N.is(e)||x.is(e):$.is(e)))};class tE{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,i;if(void 0===r?n=E.insert(e,t):k.is(r)?(i=r,n=C.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=C.insert(e,t,i)),this.edits.push(n),void 0!==i)return i}replace(e,t,r){let n,i;if(void 0===r?n=E.replace(e,t):k.is(r)?(i=r,n=C.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=C.replace(e,t,i)),this.edits.push(n),void 0!==i)return i}delete(e,t){let r,n;if(void 0===t?r=E.del(e):k.is(t)?(n=t,r=C.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=C.del(e,n)),this.edits.push(r),void 0!==n)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")}}class tS{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(k.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw Error(`Id ${r} is already in use.`);if(void 0===t)throw Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}}class tk{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new tS(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if($.is(e)){let t=new tE(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let r=new tE(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(_.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");let t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){let e=[];this._workspaceEdit.documentChanges.push({textDocument:t,edits:e}),r=new tE(e,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new tE(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new tS,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){let n,i,a;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(S.is(t)||k.is(t)?n=t:r=t,void 0===n?i=b.create(e,r):(a=k.is(n)?n:this._changeAnnotations.manage(n),i=b.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a}renameFile(e,t,r,n){let i,a,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(S.is(r)||k.is(r)?i=r:n=r,void 0===i?a=N.create(e,t,n):(s=k.is(i)?i:this._changeAnnotations.manage(i),a=N.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(a),void 0!==s)return s}deleteFile(e,t,r){let n,i,a;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(S.is(t)||k.is(t)?n=t:r=t,void 0===n?i=x.create(e,r):(a=k.is(n)?n:this._changeAnnotations.manage(n),i=x.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a}}(eJ=I||(I={})).create=function(e){return{uri:e}},eJ.is=function(e){return eN.defined(e)&&eN.string(e.uri)},(eZ=P||(P={})).create=function(e,t){return{uri:e,version:t}},eZ.is=function(e){return eN.defined(e)&&eN.string(e.uri)&&eN.integer(e.version)},(e0=_||(_={})).create=function(e,t){return{uri:e,version:t}},e0.is=function(e){return eN.defined(e)&&eN.string(e.uri)&&(null===e.version||eN.integer(e.version))},(e1=L||(L={})).create=function(e,t,r,n){return{uri:e,languageId:t,version:r,text:n}},e1.is=function(e){return eN.defined(e)&&eN.string(e.uri)&&eN.string(e.languageId)&&eN.integer(e.version)&&eN.string(e.text)},(e2=O||(O={})).PlainText="plaintext",e2.Markdown="markdown",e2.is=function(e){return e===e2.PlainText||e===e2.Markdown},(D||(D={})).is=function(e){return eN.objectLiteral(e)&&O.is(e.kind)&&eN.string(e.value)},(e3=M||(M={})).Text=1,e3.Method=2,e3.Function=3,e3.Constructor=4,e3.Field=5,e3.Variable=6,e3.Class=7,e3.Interface=8,e3.Module=9,e3.Property=10,e3.Unit=11,e3.Value=12,e3.Enum=13,e3.Keyword=14,e3.Snippet=15,e3.Color=16,e3.File=17,e3.Reference=18,e3.Folder=19,e3.EnumMember=20,e3.Constant=21,e3.Struct=22,e3.Event=23,e3.Operator=24,e3.TypeParameter=25,(e5=F||(F={})).PlainText=1,e5.Snippet=2,(q||(q={})).Deprecated=1,(e9=j||(j={})).create=function(e,t,r){return{newText:e,insert:t,replace:r}},e9.is=function(e){return e&&eN.string(e.newText)&&l.is(e.insert)&&l.is(e.replace)},(e4=U||(U={})).asIs=1,e4.adjustIndentation=2,(G||(G={})).is=function(e){return e&&(eN.string(e.detail)||void 0===e.detail)&&(eN.string(e.description)||void 0===e.description)},(z||(z={})).create=function(e){return{label:e}},(K||(K={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(e8=B||(B={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e8.is=function(e){return eN.string(e)||eN.objectLiteral(e)&&eN.string(e.language)&&eN.string(e.value)},(W||(W={})).is=function(e){return!!e&&eN.objectLiteral(e)&&(D.is(e.contents)||B.is(e.contents)||eN.typedArray(e.contents,B.is))&&(void 0===e.range||l.is(e.range))},(V||(V={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(H||(H={})).create=function(e,t,...r){let n={label:e};return eN.defined(t)&&(n.documentation=t),eN.defined(r)?n.parameters=r:n.parameters=[],n},(e7=Y||(Y={})).Text=1,e7.Read=2,e7.Write=3,(X||(X={})).create=function(e,t){let r={range:e};return eN.number(t)&&(r.kind=t),r},(e6=Q||(Q={})).File=1,e6.Module=2,e6.Namespace=3,e6.Package=4,e6.Class=5,e6.Method=6,e6.Property=7,e6.Field=8,e6.Constructor=9,e6.Enum=10,e6.Interface=11,e6.Function=12,e6.Variable=13,e6.Constant=14,e6.String=15,e6.Number=16,e6.Boolean=17,e6.Array=18,e6.Object=19,e6.Key=20,e6.Null=21,e6.EnumMember=22,e6.Struct=23,e6.Event=24,e6.Operator=25,e6.TypeParameter=26,(J||(J={})).Deprecated=1,(Z||(Z={})).create=function(e,t,r,n,i){let a={name:e,kind:t,location:{uri:n,range:r}};return i&&(a.containerName=i),a},(ee||(ee={})).create=function(e,t,r,n){return void 0!==n?{name:e,kind:t,location:{uri:r,range:n}}:{name:e,kind:t,location:{uri:r}}},(te=et||(et={})).create=function(e,t,r,n,i,a){let s={name:e,detail:t,kind:r,range:n,selectionRange:i};return void 0!==a&&(s.children=a),s},te.is=function(e){return e&&eN.string(e.name)&&eN.number(e.kind)&&l.is(e.range)&&l.is(e.selectionRange)&&(void 0===e.detail||eN.string(e.detail))&&(void 0===e.deprecated||eN.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(tt=er||(er={})).Empty="",tt.QuickFix="quickfix",tt.Refactor="refactor",tt.RefactorExtract="refactor.extract",tt.RefactorInline="refactor.inline",tt.RefactorRewrite="refactor.rewrite",tt.Source="source",tt.SourceOrganizeImports="source.organizeImports",tt.SourceFixAll="source.fixAll",(tr=en||(en={})).Invoked=1,tr.Automatic=2,(tn=ei||(ei={})).create=function(e,t,r){let n={diagnostics:e};return null!=t&&(n.only=t),null!=r&&(n.triggerKind=r),n},tn.is=function(e){return eN.defined(e)&&eN.typedArray(e.diagnostics,v.is)&&(void 0===e.only||eN.typedArray(e.only,eN.string))&&(void 0===e.triggerKind||e.triggerKind===en.Invoked||e.triggerKind===en.Automatic)},(ti=ea||(ea={})).create=function(e,t,r){let n={title:e},i=!0;return"string"==typeof t?(i=!1,n.kind=t):A.is(t)?n.command=t:n.edit=t,i&&void 0!==r&&(n.kind=r),n},ti.is=function(e){return e&&eN.string(e.title)&&(void 0===e.diagnostics||eN.typedArray(e.diagnostics,v.is))&&(void 0===e.kind||eN.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||A.is(e.command))&&(void 0===e.isPreferred||eN.boolean(e.isPreferred))&&(void 0===e.edit||w.is(e.edit))},(ta=es||(es={})).create=function(e,t){let r={range:e};return eN.defined(t)&&(r.data=t),r},ta.is=function(e){return eN.defined(e)&&l.is(e.range)&&(eN.undefined(e.command)||A.is(e.command))},(ts=eo||(eo={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},ts.is=function(e){return eN.defined(e)&&eN.uinteger(e.tabSize)&&eN.boolean(e.insertSpaces)},(to=el||(el={})).create=function(e,t,r){return{range:e,target:t,data:r}},to.is=function(e){return eN.defined(e)&&l.is(e.range)&&(eN.undefined(e.target)||eN.string(e.target))},(tl=eu||(eu={})).create=function(e,t){return{range:e,parent:t}},tl.is=function(e){return eN.objectLiteral(e)&&l.is(e.range)&&(void 0===e.parent||tl.is(e.parent))},(tu=ec||(ec={})).namespace="namespace",tu.type="type",tu.class="class",tu.enum="enum",tu.interface="interface",tu.struct="struct",tu.typeParameter="typeParameter",tu.parameter="parameter",tu.variable="variable",tu.property="property",tu.enumMember="enumMember",tu.event="event",tu.function="function",tu.method="method",tu.macro="macro",tu.keyword="keyword",tu.modifier="modifier",tu.comment="comment",tu.string="string",tu.number="number",tu.regexp="regexp",tu.operator="operator",tu.decorator="decorator",(tc=ed||(ed={})).declaration="declaration",tc.definition="definition",tc.readonly="readonly",tc.static="static",tc.deprecated="deprecated",tc.abstract="abstract",tc.async="async",tc.modification="modification",tc.documentation="documentation",tc.defaultLibrary="defaultLibrary",(eh||(eh={})).is=function(e){return eN.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0])},(td=ep||(ep={})).create=function(e,t){return{range:e,text:t}},td.is=function(e){return null!=e&&l.is(e.range)&&eN.string(e.text)},(th=ef||(ef={})).create=function(e,t,r){return{range:e,variableName:t,caseSensitiveLookup:r}},th.is=function(e){return null!=e&&l.is(e.range)&&eN.boolean(e.caseSensitiveLookup)&&(eN.string(e.variableName)||void 0===e.variableName)},(tp=em||(em={})).create=function(e,t){return{range:e,expression:t}},tp.is=function(e){return null!=e&&l.is(e.range)&&(eN.string(e.expression)||void 0===e.expression)},(tf=eg||(eg={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},tf.is=function(e){return eN.defined(e)&&l.is(e.stoppedLocation)},(tm=ey||(ey={})).Type=1,tm.Parameter=2,tm.is=function(e){return 1===e||2===e},(tg=eT||(eT={})).create=function(e){return{value:e}},tg.is=function(e){return eN.objectLiteral(e)&&(void 0===e.tooltip||eN.string(e.tooltip)||D.is(e.tooltip))&&(void 0===e.location||u.is(e.location))&&(void 0===e.command||A.is(e.command))},(ty=eR||(eR={})).create=function(e,t,r){let n={position:e,label:t};return void 0!==r&&(n.kind=r),n},ty.is=function(e){return eN.objectLiteral(e)&&o.is(e.position)&&(eN.string(e.label)||eN.typedArray(e.label,eT.is))&&(void 0===e.kind||ey.is(e.kind))&&void 0===e.textEdits||eN.typedArray(e.textEdits,E.is)&&(void 0===e.tooltip||eN.string(e.tooltip)||D.is(e.tooltip))&&(void 0===e.paddingLeft||eN.boolean(e.paddingLeft))&&(void 0===e.paddingRight||eN.boolean(e.paddingRight))},(ev||(ev={})).createSnippet=function(e){return{kind:"snippet",value:e}},(eA||(eA={})).create=function(e,t,r,n){return{insertText:e,filterText:t,range:r,command:n}},(eE||(eE={})).create=function(e){return{items:e}},(tT=eS||(eS={})).Invoked=0,tT.Automatic=1,(ek||(ek={})).create=function(e,t){return{range:e,text:t}},(eC||(eC={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(e$||(e$={})).is=function(e){return eN.objectLiteral(e)&&i.is(e.uri)&&eN.string(e.name)};let tC=["\n","\r\n","\r"];(tR=eb||(eb={})).create=function(e,t,r,n){return new t$(e,t,r,n)},tR.is=function(e){return!!(eN.defined(e)&&eN.string(e.uri)&&(eN.undefined(e.languageId)||eN.string(e.languageId))&&eN.uinteger(e.lineCount)&&eN.func(e.getText)&&eN.func(e.positionAt)&&eN.func(e.offsetAt))},tR.applyEdits=function(e,t){let r=e.getText(),n=function e(t,r){if(t.length<=1)return t;let n=t.length/2|0,i=t.slice(0,n),a=t.slice(n);e(i,r),e(a,r);let s=0,o=0,l=0;for(;s<i.length&&o<a.length;)0>=r(i[s],a[o])?t[l++]=i[s++]:t[l++]=a[o++];for(;s<i.length;)t[l++]=i[s++];for(;o<a.length;)t[l++]=a[o++];return t}(t,(e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}),i=r.length;for(let t=n.length-1;t>=0;t--){let a=n[t],s=e.offsetAt(a.range.start),o=e.offsetAt(a.range.end);if(o<=i)r=r.substring(0,s)+a.newText+r.substring(o,r.length);else throw Error("Overlapping edit");i=s}return r};class t${constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,r=!0;for(let n=0;n<t.length;n++){r&&(e.push(n),r=!1);let i=t.charAt(n);r="\r"===i||"\n"===i,"\r"===i&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return o.create(0,e);for(;r<n;){let i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}let i=r-1;return o.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)}get lineCount(){return this.getLineOffsets().length}}tv=eN||(eN={}),tA=Object.prototype.toString,tv.defined=function(e){return void 0!==e},tv.undefined=function(e){return void 0===e},tv.boolean=function(e){return!0===e||!1===e},tv.string=function(e){return"[object String]"===tA.call(e)},tv.number=function(e){return"[object Number]"===tA.call(e)},tv.numberRange=function(e,t,r){return"[object Number]"===tA.call(e)&&t<=e&&e<=r},tv.integer=function(e){return"[object Number]"===tA.call(e)&&-0x80000000<=e&&e<=0x7fffffff},tv.uinteger=function(e){return"[object Number]"===tA.call(e)&&0<=e&&e<=0x7fffffff},tv.func=function(e){return"[object Function]"===tA.call(e)},tv.objectLiteral=function(e){return null!==e&&"object"==typeof e},tv.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}},43472:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,r(80732).default.install();let a=r(27438);i(r(27438),t);class s extends a.AbstractMessageReader{constructor(e){super(),this._onData=new a.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener("error",e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}}t.BrowserMessageReader=s;class o extends a.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.BrowserMessageWriter=o,t.createMessageConnection=function(e,t,r,n){return void 0===r&&(r=a.NullLogger),a.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,a.createMessageConnection)(e,t,r,n)}},43596:(e,t,r)=>{e.exports=r(43472)},44074:(e,t,r)=>{r.d(t,{A:()=>s,r:()=>a});var n,i=r(41463);(()=>{let e;var t,r,a={975:e=>{function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,a=-1,s=0,o=0;o<=e.length;++o){if(o<e.length)r=e.charCodeAt(o);else{if(47===r)break;r=47}if(47===r){if(a===o-1||1===s);else if(a!==o-1&&2===s){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),a=o,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=o,s=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),i=o-a-1;a=o,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var n={resolve:function(){for(var e,n,a="",s=!1,o=arguments.length-1;o>=-1&&!s;o--)o>=0?e=arguments[o]:(void 0===n&&(n=i.cwd()),e=n),t(e),0!==e.length&&(a=e+"/"+a,s=47===e.charCodeAt(0));return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var a=e.length,s=a-i,o=1;o<r.length&&47===r.charCodeAt(o);++o);for(var l=r.length-o,u=s<l?s:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===r.charCodeAt(o+d))return r.slice(o+d+1);if(0===d)return r.slice(o+d)}else s>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var h=e.charCodeAt(i+d);if(h!==r.charCodeAt(o+d))break;47===h&&(c=d)}var p="";for(d=i+c+1;d<=a;++d)d!==a&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(o+c):(o+=c,47===r.charCodeAt(o)&&++o,r.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,a=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var o=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!s){i=n+1;break}}else -1===l&&(s=!1,l=n+1),o>=0&&(u===r.charCodeAt(o)?-1==--o&&(a=n):(o=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else -1===a&&(s=!1,a=n+1);return -1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,a=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===i&&(a=!1,i=o+1),46===l?-1===r?r=o:1!==s&&(s=1):-1!==r&&(s=-1);else if(!a){n=o+1;break}}return -1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),a=47===i;a?(r.root="/",n=1):n=0;for(var s=-1,o=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===s?s=c:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){o=c+1;break}return -1===s||-1===l||0===d||1===d&&s===l-1&&s===o+1?-1!==l&&(r.base=r.name=0===o&&a?e.slice(1,l):e.slice(o,l)):(0===o&&a?(r.name=e.slice(1,s),r.base=e.slice(1,l)):(r.name=e.slice(o,s),r.base=e.slice(o,l)),r.ext=e.slice(s,l)),o>0?r.dir=e.slice(0,o-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return a[e](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};(o.r(l),o.d(l,{URI:()=>f,Utils:()=>r}),"object"==typeof i)?e="win32"===i.platform:"object"==typeof navigator&&(e=navigator.userAgent.indexOf("Windows")>=0);let u=/^\w[\w\d+.-]*$/,c=/^\//,d=/^\/\//;function h(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!u.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!c.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(d.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static isUri(e){return e instanceof f||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,r,n,i,a=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,a),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,r||""),this.query=n||"",this.fragment=i||"",h(this,a))}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:r,path:n,query:i,fragment:a}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===r?r=this.authority:null===r&&(r=""),void 0===n?n=this.path:null===n&&(n=""),void 0===i?i=this.query:null===i&&(i=""),void 0===a?a=this.fragment:null===a&&(a=""),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&a===this.fragment?this:new g(t,r,n,i,a)}static parse(e,t=!1){let r=p.exec(e);return r?new g(r[2]||"",S(r[4]||""),S(r[5]||""),S(r[7]||""),S(r[9]||""),t):new g("","","","","")}static file(t){let r="";if(e&&(t=t.replace(/\\/g,"/")),"/"===t[0]&&"/"===t[1]){let e=t.indexOf("/",2);-1===e?(r=t.substring(2),t="/"):(r=t.substring(2,e),t=t.substring(e)||"/")}return new g("file",r,t,"","")}static from(e){let t=new g(e.scheme,e.authority,e.path,e.query,e.fragment);return h(t,!0),t}toString(e=!1){return A(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof f)return e;{let t=new g(e);return t._formatted=e.external,t._fsPath=e._sep===m?e.fsPath:null,t}}return e}}let m=e?1:void 0;class g extends f{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let y={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function T(e,t,r){let n,i=-1;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||r&&91===s||r&&93===s||r&&58===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,a)),i=-1),void 0!==n&&(n+=e.charAt(a));else{void 0===n&&(n=e.substr(0,a));let t=y[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,a)),i=-1),n+=t):-1===i&&(i=a)}}return -1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function R(e){let t;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=y[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function v(t,r){let n;return n=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&90>=t.path.charCodeAt(1)||t.path.charCodeAt(1)>=97&&122>=t.path.charCodeAt(1))&&58===t.path.charCodeAt(2)?r?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(n=n.replace(/\//g,"\\")),n}function A(e,t){let r=t?R:T,n="",{scheme:i,authority:a,path:s,query:o,fragment:l}=e;if(i&&(n+=i,n+=":"),(a||"file"===i)&&(n+="/",n+="/"),a){let e=a.indexOf("@");if(-1!==e){let t=a.substr(0,e);a=a.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=r(t,!1,!1):(n+=r(t.substr(0,e),!1,!1),n+=":",n+=r(t.substr(e+1),!1,!0)),n+="@"}-1===(e=(a=a.toLowerCase()).lastIndexOf(":"))?n+=r(a,!1,!0):(n+=r(a.substr(0,e),!1,!0),n+=a.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=r(s,!0,!1)}return o&&(n+="?",n+=r(o,!1,!1)),l&&(n+="#",n+=t?l:T(l,!1,!1)),n}let E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(E)?e.replace(E,e=>(function e(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+e(t.substr(3)):t}})(e)):e}var k=o(975);let C=k.posix||k;(t=r||(r={})).joinPath=function(e,...t){return e.with({path:C.join(e.path,...t)})},t.resolvePath=function(e,...t){let r=e.path,n=!1;"/"!==r[0]&&(r="/"+r,n=!0);let i=C.resolve(r,...t);return n&&"/"===i[0]&&!e.authority&&(i=i.substring(1)),e.with({path:i})},t.dirname=function(e){if(0===e.path.length||"/"===e.path)return e;let t=C.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},t.basename=function(e){return C.basename(e.path)},t.extname=function(e){return C.extname(e.path)},n=l})();let{URI:a,Utils:s}=n},46598:(e,t,r)=>{r.d(t,{mR:()=>eg,dg:()=>ef,wV:()=>es,Tm:()=>em,d$:()=>eo,FZ:()=>el,sr:()=>ea,p5:()=>eu,D_:()=>ec,Bg:()=>ed,XE:()=>eh,K2:()=>x});var n,i,a,s,o,l,u,c,d,h,p,f,m,g,y=r(77557),T=r(64260),R=r(70740),v=r(88361),A=r(8185),E=r(44074);let S={Grammar:()=>void 0,LanguageMetaData:()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"})},k={AstReflection:()=>new v.QX};function C(e){let t,r,n=(t=(0,R.WQ)((0,T.u)(A.D),k),r=(0,R.WQ)((0,T.t)({shared:t}),S),t.ServiceRegistry.register(r),r),i=n.serializer.JsonSerializer.deserialize(e);return n.shared.workspace.LangiumDocumentFactory.fromModel(i,E.r.parse(`memory:/${i.name??"grammar"}.langium`)),i}var $=r(50821),b=r(99902),N=Object.defineProperty,x=(e,t)=>N(e,"name",{value:t,configurable:!0});(n||(n={})).Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/},(i||(i={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/},(a||(a={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(s||(s={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(o||(o={})).Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(l||(l={})).Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(u||(u={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/},n.Terminals,i.Terminals,a.Terminals,s.Terminals,o.Terminals,l.Terminals,u.Terminals;var w="Architecture";x(function(e){return K.isInstance(e,w)},"isArchitecture");var I="Axis",P="Branch";x(function(e){return K.isInstance(e,P)},"isBranch");var _="Commit";x(function(e){return K.isInstance(e,_)},"isCommit");var L="GitGraph";x(function(e){return K.isInstance(e,L)},"isGitGraph");var O="Info";x(function(e){return K.isInstance(e,O)},"isInfo");var D="Item",M="Merge";x(function(e){return K.isInstance(e,M)},"isMerge");var F="Packet";x(function(e){return K.isInstance(e,F)},"isPacket");var q="PacketBlock";x(function(e){return K.isInstance(e,q)},"isPacketBlock");x(function(e){return K.isInstance(e,"Pie")},"isPie");var j="PieSection";x(function(e){return K.isInstance(e,j)},"isPieSection");var U="Statement",G="Treemap";x(function(e){return K.isInstance(e,G)},"isTreemap");var z=class extends y.kD{constructor(){super(...arguments),this.types={Architecture:{name:w,properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},edges:{name:"edges",defaultValue:[]},groups:{name:"groups",defaultValue:[]},junctions:{name:"junctions",defaultValue:[]},services:{name:"services",defaultValue:[]},title:{name:"title"}},superTypes:[]},Axis:{name:I,properties:{label:{name:"label"},name:{name:"name"}},superTypes:[]},Branch:{name:P,properties:{name:{name:"name"},order:{name:"order"}},superTypes:[U]},Checkout:{name:"Checkout",properties:{branch:{name:"branch"}},superTypes:[U]},CherryPicking:{name:"CherryPicking",properties:{id:{name:"id"},parent:{name:"parent"},tags:{name:"tags",defaultValue:[]}},superTypes:[U]},ClassDefStatement:{name:"ClassDefStatement",properties:{className:{name:"className"},styleText:{name:"styleText"}},superTypes:[]},Commit:{name:_,properties:{id:{name:"id"},message:{name:"message"},tags:{name:"tags",defaultValue:[]},type:{name:"type"}},superTypes:[U]},Curve:{name:"Curve",properties:{entries:{name:"entries",defaultValue:[]},label:{name:"label"},name:{name:"name"}},superTypes:[]},Direction:{name:"Direction",properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},dir:{name:"dir"},statements:{name:"statements",defaultValue:[]},title:{name:"title"}},superTypes:[L]},Edge:{name:"Edge",properties:{lhsDir:{name:"lhsDir"},lhsGroup:{name:"lhsGroup",defaultValue:!1},lhsId:{name:"lhsId"},lhsInto:{name:"lhsInto",defaultValue:!1},rhsDir:{name:"rhsDir"},rhsGroup:{name:"rhsGroup",defaultValue:!1},rhsId:{name:"rhsId"},rhsInto:{name:"rhsInto",defaultValue:!1},title:{name:"title"}},superTypes:[]},Entry:{name:"Entry",properties:{axis:{name:"axis",referenceType:I},value:{name:"value"}},superTypes:[]},GitGraph:{name:L,properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},statements:{name:"statements",defaultValue:[]},title:{name:"title"}},superTypes:[]},Group:{name:"Group",properties:{icon:{name:"icon"},id:{name:"id"},in:{name:"in"},title:{name:"title"}},superTypes:[]},Info:{name:O,properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},title:{name:"title"}},superTypes:[]},Item:{name:D,properties:{classSelector:{name:"classSelector"},name:{name:"name"}},superTypes:[]},Junction:{name:"Junction",properties:{id:{name:"id"},in:{name:"in"}},superTypes:[]},Leaf:{name:"Leaf",properties:{classSelector:{name:"classSelector"},name:{name:"name"},value:{name:"value"}},superTypes:[D]},Merge:{name:M,properties:{branch:{name:"branch"},id:{name:"id"},tags:{name:"tags",defaultValue:[]},type:{name:"type"}},superTypes:[U]},Option:{name:"Option",properties:{name:{name:"name"},value:{name:"value",defaultValue:!1}},superTypes:[]},Packet:{name:F,properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},blocks:{name:"blocks",defaultValue:[]},title:{name:"title"}},superTypes:[]},PacketBlock:{name:q,properties:{bits:{name:"bits"},end:{name:"end"},label:{name:"label"},start:{name:"start"}},superTypes:[]},Pie:{name:"Pie",properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},sections:{name:"sections",defaultValue:[]},showData:{name:"showData",defaultValue:!1},title:{name:"title"}},superTypes:[]},PieSection:{name:j,properties:{label:{name:"label"},value:{name:"value"}},superTypes:[]},Radar:{name:"Radar",properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},axes:{name:"axes",defaultValue:[]},curves:{name:"curves",defaultValue:[]},options:{name:"options",defaultValue:[]},title:{name:"title"}},superTypes:[]},Section:{name:"Section",properties:{classSelector:{name:"classSelector"},name:{name:"name"}},superTypes:[D]},Service:{name:"Service",properties:{icon:{name:"icon"},iconText:{name:"iconText"},id:{name:"id"},in:{name:"in"},title:{name:"title"}},superTypes:[]},Statement:{name:U,properties:{},superTypes:[]},Treemap:{name:G,properties:{accDescr:{name:"accDescr"},accTitle:{name:"accTitle"},title:{name:"title"},TreemapRows:{name:"TreemapRows",defaultValue:[]}},superTypes:[]},TreemapRow:{name:"TreemapRow",properties:{indent:{name:"indent"},item:{name:"item"}},superTypes:[]}}}static{x(this,"MermaidAstReflection")}},K=new z,B=x(()=>c??(c=C(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),W=x(()=>d??(d=C(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),V=x(()=>h??(h=C(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),H=x(()=>p??(p=C(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),Y=x(()=>f??(f=C(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),X=x(()=>m??(m=C(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),Q=x(()=>g??(g=C(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),J={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Z={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ee={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},et={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},er={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},en={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ei={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ea={AstReflection:x(()=>new z,"AstReflection")},es={Grammar:x(()=>B(),"Grammar"),LanguageMetaData:x(()=>J,"LanguageMetaData"),parser:{}},eo={Grammar:x(()=>W(),"Grammar"),LanguageMetaData:x(()=>Z,"LanguageMetaData"),parser:{}},el={Grammar:x(()=>V(),"Grammar"),LanguageMetaData:x(()=>ee,"LanguageMetaData"),parser:{}},eu={Grammar:x(()=>H(),"Grammar"),LanguageMetaData:x(()=>et,"LanguageMetaData"),parser:{}},ec={Grammar:x(()=>Y(),"Grammar"),LanguageMetaData:x(()=>er,"LanguageMetaData"),parser:{}},ed={Grammar:x(()=>X(),"Grammar"),LanguageMetaData:x(()=>en,"LanguageMetaData"),parser:{}},eh={Grammar:x(()=>Q(),"Grammar"),LanguageMetaData:x(()=>ei,"LanguageMetaData"),parser:{}},ep={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},ef=class extends $.d{static{x(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return(void 0===n&&(n=this.runCustomConverter(e,t,r)),void 0===n)?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){let n=ep[e.name];if(void 0===n)return;let i=n.exec(t);if(null!==i){if(void 0!==i[1])return i[1].trim().replace(/[\t ]{2,}/gm," ");if(void 0!==i[2])return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n")}}},em=class extends ef{static{x(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},eg=class extends b.Q{static{x(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}};(class extends eg{static{x(this,"CommonTokenBuilder")}})},47506:(e,t,r)=>{var n,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;let o=r(58630);(a=n||(t.ErrorCodes=n={})).ParseError=-32700,a.InvalidRequest=-32600,a.MethodNotFound=-32601,a.InvalidParams=-32602,a.InternalError=-32603,a.jsonrpcReservedErrorRangeStart=-32099,a.serverErrorStart=-32099,a.MessageWriteError=-32099,a.MessageReadError=-32098,a.PendingResponseRejected=-32097,a.ConnectionInactive=-32096,a.ServerNotInitialized=-32002,a.UnknownErrorCode=-32001,a.jsonrpcReservedErrorRangeEnd=-32e3,a.serverErrorEnd=-32e3;class l extends Error{constructor(e,t,r){super(t),this.code=o.number(e)?e:n.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,l.prototype)}toJson(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=l;class u{constructor(e){this.kind=e}static is(e){return e===u.auto||e===u.byName||e===u.byPosition}toString(){return this.kind}}t.ParameterStructures=u,u.auto=new u("auto"),u.byPosition=new u("byPosition"),u.byName=new u("byName");class c{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return u.auto}}t.AbstractMessageSignature=c;class d extends c{constructor(e){super(e,0)}}t.RequestType0=d;class h extends c{constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType=h;class p extends c{constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType1=p;class f extends c{constructor(e){super(e,2)}}t.RequestType2=f;class m extends c{constructor(e){super(e,3)}}t.RequestType3=m;class g extends c{constructor(e){super(e,4)}}t.RequestType4=g;class y extends c{constructor(e){super(e,5)}}t.RequestType5=y;class T extends c{constructor(e){super(e,6)}}t.RequestType6=T;class R extends c{constructor(e){super(e,7)}}t.RequestType7=R;class v extends c{constructor(e){super(e,8)}}t.RequestType8=v;class A extends c{constructor(e){super(e,9)}}t.RequestType9=A;class E extends c{constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType=E;class S extends c{constructor(e){super(e,0)}}t.NotificationType0=S;class k extends c{constructor(e,t=u.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType1=k;class C extends c{constructor(e){super(e,2)}}t.NotificationType2=C;class $ extends c{constructor(e){super(e,3)}}t.NotificationType3=$;class b extends c{constructor(e){super(e,4)}}t.NotificationType4=b;class N extends c{constructor(e){super(e,5)}}t.NotificationType5=N;class x extends c{constructor(e){super(e,6)}}t.NotificationType6=x;class w extends c{constructor(e){super(e,7)}}t.NotificationType7=w;class I extends c{constructor(e){super(e,8)}}t.NotificationType8=I;class P extends c{constructor(e){super(e,9)}}t.NotificationType9=P,(s=i||(t.Message=i={})).isRequest=function(e){return e&&o.string(e.method)&&(o.string(e.id)||o.number(e.id))},s.isNotification=function(e){return e&&o.string(e.method)&&void 0===e.id},s.isResponse=function(e){return e&&(void 0!==e.result||!!e.error)&&(o.string(e.id)||o.number(e.id)||null===e.id)}},48133:(e,t,r)=>{r.d(t,{b:()=>u});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},l={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function u(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.d$,l);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}(0,n.K2)(u,"createGitGraphServices")},49430:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(16897),i=r(96578),a=r(79800);let s=function(e){return e&&e.length?(0,n.A)(e,a.A,i.A):void 0}},49820:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(12602),i=r(35984),a=r(18308),s=r(92459);let o=function(e,t){return((0,s.A)(e)?n.A:a.A)(e,(0,i.A)(t,3))}},50354:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;let a=r(35015);(i=n||(t.TypeDefinitionRequest=n={})).method="textDocument/typeDefinition",i.messageDirection=a.MessageDirection.clientToServer,i.type=new a.ProtocolRequestType(i.method)},50388:(e,t,r)=>{function n(e){return e.charCodeAt(0)}function i(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function s(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function o(){throw Error("Internal Error - Should never get here!")}function l(e){return"Character"===e.type}r.d(t,{z:()=>g,H:()=>m});let u=[];for(let e=n("0");e<=n("9");e++)u.push(e);let c=[n("_")].concat(u);for(let e=n("a");e<=n("z");e++)c.push(e);for(let e=n("A");e<=n("Z");e++)c.push(e);let d=[n(" "),n("\f"),n("\n"),n("\r"),n(" "),n("\v"),n(" "),n("\xa0"),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n(" "),n("\u2028"),n("\u2029"),n(" "),n(" "),n(" "),n("\uFEFF")],h=/[0-9a-fA-F]/,p=/[0-9]/,f=/[1-9]/;class m{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":a(r,"global");break;case"i":a(r,"ignoreCase");break;case"m":a(r,"multiLine");break;case"u":a(r,"unicode");break;case"y":a(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}}s(t);let r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return o()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;s(t)}if((!0!==e||void 0!==t)&&s(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),s(e))?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):o()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[n("\n"),n("\r"),n("\u2028"),n("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=u;break;case"D":e=u,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return s(e)?{type:"Set",value:e,complement:t}:o()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=n("\f");break;case"n":e=n("\n");break;case"r":e=n("\r");break;case"t":e=n(" ");break;case"v":e=n("\v")}return s(e)?{type:"Character",value:e}:o()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:n("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:n(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:n(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,l(t)&&this.isRangeDash()){this.consumeChar("-");let r=this.classAtom();if(r.type,l(r)){if(r.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:r.value})}else i(t.value,e),e.push(n("-")),i(r.value,e)}else i(t.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:n("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;let t=this.disjunction();this.consumeChar(")");let r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(!1===f.test(e))throw Error("Expecting a positive integer");for(;p.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===p.test(e))throw Error("Expecting an integer");for(;p.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:n(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return p.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2)||"<"===this.peekChar(2)&&("="===this.peekChar(3)||"!"===this.peekChar(3)));default:return!1}}isQuantifier(){let e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let r=0;r<e;r++){let e=this.popChar();if(!1===h.test(e))throw Error("Expecting a HexDecimal digits");t+=e}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}class g{visitChildren(e){for(let t in e){let r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}},50821:(e,t,r)=>{r.d(t,{d:()=>o});var n,i,a=r(88361),s=r(62356);class o{convert(e,t){let r=t.grammarSource;if((0,a._c)(r)&&(r=(0,s.g4)(r)),(0,a.$g)(r)){let n=r.rule.ref;if(!n)throw Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return i.convertInt(t);case"STRING":return i.convertString(t);case"ID":return i.convertID(t)}switch((0,s.P3)(e)?.toLowerCase()){case"number":return i.convertNumber(t);case"boolean":return i.convertBoolean(t);case"bigint":return i.convertBigint(t);case"date":return i.convertDate(t);default:return t}}}(n=i||(i={})).convertString=function(e){let t="";for(let r=1;r<e.length-1;r++){let n=e.charAt(r);"\\"===n?t+=function(e){switch(e){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return e}}(e.charAt(++r)):t+=n}return t},n.convertID=function(e){return"^"===e.charAt(0)?e.substring(1):e},n.convertInt=function(e){return parseInt(e)},n.convertBigint=function(e){return BigInt(e)},n.convertDate=function(e){return new Date(e)},n.convertNumber=function(e){return Number(e)},n.convertBoolean=function(e){return"true"===e.toLowerCase()}},50967:(e,t,r)=>{r.d(t,{f:()=>u});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},l={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function u(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.Bg,l);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}(0,n.K2)(u,"createRadarServices")},51324:(e,t,r)=>{var n,i,a,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;let u=r(43472),c=r(35015);(s=n||(t.WorkDoneProgress=n={})).type=new u.ProgressType,s.is=function(e){return e===s.type},(o=i||(t.WorkDoneProgressCreateRequest=i={})).method="window/workDoneProgress/create",o.messageDirection=c.MessageDirection.serverToClient,o.type=new c.ProtocolRequestType(o.method),(l=a||(t.WorkDoneProgressCancelNotification=a={})).method="window/workDoneProgress/cancel",l.messageDirection=c.MessageDirection.clientToServer,l.type=new c.ProtocolNotificationType(l.method)},51855:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;let a=r(35015);(i=n||(t.ConfigurationRequest=n={})).method="workspace/configuration",i.messageDirection=a.MessageDirection.serverToClient,i.type=new a.ProtocolRequestType(i.method)},55849:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;let a=r(35015);(i=n||(t.ImplementationRequest=n={})).method="textDocument/implementation",i.messageDirection=a.MessageDirection.clientToServer,i.type=new a.ProtocolRequestType(i.method)},57291:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;let a=r(35015);(i=n||(t.ShowDocumentRequest=n={})).method="window/showDocument",i.messageDirection=a.MessageDirection.serverToClient,i.type=new a.ProtocolRequestType(i.method)},58630:(e,t)=>{function r(e){return"string"==typeof e||e instanceof String}function n(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=r,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=n,t.stringArray=function(e){return n(e)&&e.every(e=>r(e))}},60625:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(96901),i=r(49820);let a=function(e,t){return(0,n.A)((0,i.A)(e,t),1)}},61776:(e,t,r)=>{r.d(t,{A:()=>m});var n=/\s/;let i=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var a=/^\s+/,s=r(33761),o=r(38374),l=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;let p=function(e){if("number"==typeof e)return e;if((0,o.A)(e))return l;if((0,s.A)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,s.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(a,""):t;var n=c.test(e);return n||d.test(e)?h(e.slice(2),n?2:8):u.test(e)?l:+e};var f=1/0;let m=function(e){return e?(e=p(e))===f||e===-f?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},61852:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(71606),i=r(16019),a=r(94582),s=r(26805),o=r(33761),l=r(30253);let u=function(e,t,r,n){if(!(0,o.A)(e))return e;t=(0,a.A)(t,e);for(var u=-1,c=t.length,d=c-1,h=e;null!=h&&++u<c;){var p=(0,l.A)(t[u]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(u!=d){var m=h[p];void 0===(f=n?n(m,p,h):void 0)&&(f=(0,o.A)(m)?m:(0,s.A)(t[u+1])?[]:{})}(0,i.A)(h,p,f),h=h[p]}return e},c=function(e,t,r){for(var i=-1,s=t.length,o={};++i<s;){var l=t[i],c=(0,n.A)(e,l);r(c,l)&&u(o,(0,a.A)(l,e),c)}return o}},62356:(e,t,r)=>{r.d(t,{Bd:()=>h,P3:()=>v,Rp:()=>g,S:()=>A,SS:()=>m,U5:()=>y,Uz:()=>function e(t){if(i.cM(t))return i.s7(t)&&T(t)?t.name:R(t)??t.name;if(i.S2(t)||i.Xj(t)||i.fG(t))return t.name;if(i.ve(t)){var r;let n=(r=t).inferredType?r.inferredType.name:r.type?.ref?e(r.type.ref):void 0;if(n)return n}else if(i.SP(t))return t.name;throw Error("Cannot get name of Unknown Type")},Xq:()=>T,YV:()=>u,eb:()=>d,g4:()=>c,qO:()=>p});var n=r(91904),i=r(88361),a=r(77557),s=r(30429),o=r(93207),l=r(78694);function u(e,t){let r=new Set,n=e.rules.find(e=>i.s7(e)&&e.entry);if(!n)return new Set(e.rules);for(let a of[n].concat(e.rules.filter(e=>i.rE(e)&&e.hidden)))!function e(t,r,n){r.add(t.name),(0,s.Uo)(t).forEach(t=>{if(i.$g(t)||n&&i.lF(t)){let i=t.rule.ref;i&&!r.has(i.name)&&e(i,r,n)}})}(a,r,t);let a=new Set;for(let t of e.rules)(r.has(t.name)||i.rE(t)&&t.hidden)&&a.add(t);return a}function c(e){if(e.terminal)return e.terminal;if(e.type.ref){let t=y(e.type.ref);return t?.terminal}}function d(e){return e.hidden&&!(0,l.Yv)(A(e))}function h(e,t){return e&&t?f(e,t,e.astNode,!0):[]}function p(e,t,r){if(!e||!t)return;let n=f(e,t,e.astNode,!0);if(0!==n.length)return r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0,n[r]}function f(e,t,r,n){if(!n){let r=(0,s.XG)(e.grammarSource,i.wh);if(r&&r.feature===t)return[e]}return(0,a.mD)(e)&&e.astNode===r?e.content.flatMap(e=>f(e,t,r,!1)):[]}function m(e,t,r){if(!e)return;let n=function(e,t,r){let n;if(e.astNode!==r)return[];if(i.wb(e.grammarSource)&&e.grammarSource.value===t)return[e];let a=(0,o.NS)(e).iterator(),s=[];do if(!(n=a.next()).done){let e=n.value;e.astNode===r?i.wb(e.grammarSource)&&e.grammarSource.value===t&&s.push(e):a.prune()}while(!n.done);return s}(e,t,e?.astNode);if(0!==n.length)return r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0,n[r]}function g(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=(0,s.XG)(e.grammarSource,i.wh);if(t)return t;e=e.container}}function y(e){let t=e;return i.SP(t)&&(i.ve(t.$container)?t=t.$container.$container:i.cM(t.$container)?t=t.$container:(0,n.dr)(t.$container)),function e(t,r,n){function a(r,a){let o;return(0,s.XG)(r,i.wh)||(o=e(a,a,n)),n.set(t,o),o}if(n.has(t))return n.get(t);for(let e of(n.set(t,void 0),(0,s.Uo)(r)))if(i.wh(e)&&"name"===e.feature.toLowerCase())return n.set(t,e),e;else if(i.$g(e)&&i.s7(e.rule.ref))return a(e,e.rule.ref);else if(i.D8(e)&&e.typeRef?.ref)return a(e,e.typeRef.ref)}(e,t,new Map)}function T(e){return function e(t,r){if(r.has(t))return!0;for(let n of(r.add(t),(0,s.Uo)(t)))if(i.$g(n)){if(!n.rule.ref||i.s7(n.rule.ref)&&!e(n.rule.ref,r)||i.NT(n.rule.ref))return!1}else if(i.wh(n))return!1;else if(i.ve(n))return!1;return!!t.definition}(e,new Set)}function R(e){if(!i.rE(e)){if(e.inferredType)return e.inferredType.name;else if(e.dataType)return e.dataType;else if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function v(e){return i.rE(e)?e.type?.name??"string":R(e)??e.name}function A(e){let t={s:!1,i:!1,u:!1};return new RegExp(function e(t,r){var n,a,s,o,l;if(i.Fy(t)){return k((n=t).elements.map(t=>e(t)).join("|"),{cardinality:n.cardinality,lookahead:n.lookahead,parenthesized:n.parenthesized,wrap:!1})}if(i.O4(t)){return k((a=t).elements.map(t=>e(t)).join(""),{cardinality:a.cardinality,lookahead:a.lookahead,parenthesized:a.parenthesized,wrap:!1})}if(i.Bg(t)){return(s=t).right?k(`[${S(s.left)}-${S(s.right)}]`,{cardinality:s.cardinality,lookahead:s.lookahead,parenthesized:s.parenthesized,wrap:!1}):k(S(s.left),{cardinality:s.cardinality,lookahead:s.lookahead,parenthesized:s.parenthesized,wrap:!1})}if(i.lF(t)){let r=t.rule.ref;if(!r)throw Error("Missing rule reference.");return k(e(r.definition),{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized})}if(i.GL(t)){return o=t,k(`(?!${e(o.terminal)})${E}*?`,{cardinality:o.cardinality,lookahead:o.lookahead,parenthesized:o.parenthesized})}else if(i.Mz(t)){return l=t,k(`${E}*?${e(l.terminal)}`,{cardinality:l.cardinality,lookahead:l.lookahead,parenthesized:l.parenthesized})}else if(i.vd(t)){let e=t.regex.lastIndexOf("/"),n=t.regex.substring(1,e),i=t.regex.substring(e+1);return r&&(r.i=i.includes("i"),r.s=i.includes("s"),r.u=i.includes("u")),k(n,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized,wrap:!1})}else if(i.z2(t))return k(E,{cardinality:t.cardinality,lookahead:t.lookahead,parenthesized:t.parenthesized});else throw Error(`Invalid terminal element: ${t?.$type}, ${t?.$cstNode?.text}`)}(e.definition,t),Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(""))}let E=/[\s\S]/.source;function S(e){return(0,l.Nt)(e.value)}function k(e,t){if(t.parenthesized||t.lookahead||!1!==t.wrap){let r=t.lookahead??(t.parenthesized?"":"?:");e=`(${r}${e})`}return t.cardinality?`${e}${t.cardinality}`:e}},62772:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(r||(t.Disposable=r={})).create=function(e){return{dispose:e}}},63298:(e,t,r)=>{var n,i,a,s,o,l;Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;let u=r(35015);(s=n||(t.TypeHierarchyPrepareRequest=n={})).method="textDocument/prepareTypeHierarchy",s.messageDirection=u.MessageDirection.clientToServer,s.type=new u.ProtocolRequestType(s.method),(o=i||(t.TypeHierarchySupertypesRequest=i={})).method="typeHierarchy/supertypes",o.messageDirection=u.MessageDirection.clientToServer,o.type=new u.ProtocolRequestType(o.method),(l=a||(t.TypeHierarchySubtypesRequest=a={})).method="typeHierarchy/subtypes",l.messageDirection=u.MessageDirection.clientToServer,l.type=new u.ProtocolRequestType(l.method)},64260:(e,t,r)=>{let n;r.d(t,{t:()=>tG,u:()=>tz});var i,a,s,o,l,u,c,d,h,p,f,m=r(93207),g=r(62356),y=r(78694),T=r(88361),R=r(79179),v=r(49820),A=r(40160);function E(e,t,r){return`${e.name}_${t}_${r}`}class S{constructor(e){this.target=e}isEpsilon(){return!1}}class k extends S{constructor(e,t){super(e),this.tokenType=t}}class C extends S{constructor(e){super(e)}isEpsilon(){return!0}}class $ extends S{constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}}function b(e,t,r){let n=(0,A.A)((0,v.A)(r.definition,r=>(function e(t,r,n){var i,a,s,o,l,u,c,d,h,p,f,m,g,y,T,A,S,k,C,D,M,F,q,j,U;if(n instanceof R.BK)return P(t,r,n.terminalType,n);if(n instanceof R.wL){let e,o,l,u;return i=t,a=r,e=(s=n).referencedRule,o=i.ruleToStartState.get(e),l=L(i,a,s,{type:1}),O(l,new $(o,e,u=L(i,a,s,{type:1}))),{left:l,right:u}}if(n instanceof R.ak){let i,a;return i=L(o=t,l=r,u=n,{type:1}),w(o,i),a=(0,v.A)(u.definition,t=>e(o,l,t)),I(o,l,i,u,...a)}if(n instanceof R.c$){let e,i,a;return e=L(c=t,d=r,h=n,{type:1}),w(c,e),i=I(c,d,e,h,b(c,d,h)),p=c,f=d,m=h,_(a=(g=i).left,g.right),p.decisionMap[E(f,"Option",m.idx)]=a,g}if(n instanceof R.Y2){let e,i;return e=L(y=t,T=r,A=n,{type:5}),w(y,e),i=I(y,T,e,A,b(y,T,A)),x(y,T,A,i)}else if(n instanceof R.Pp){let e,i,a;return e=L(S=t,k=r,C=n,{type:5}),w(S,e),i=I(S,k,e,C,b(S,k,C)),a=P(S,k,C.separator,C),x(S,k,C,i,a)}else if(n instanceof R.$P){let e,i;return e=L(D=t,M=r,F=n,{type:4}),w(D,e),i=I(D,M,e,F,b(D,M,F)),N(D,M,F,i)}else{if(!(n instanceof R.Cy))return b(t,r,n);let e,i,a;return e=L(q=t,j=r,U=n,{type:4}),w(q,e),i=I(q,j,e,U,b(q,j,U)),a=P(q,j,U.separator,U),N(q,j,U,i,a)}})(e,t,r)),e=>void 0!==e);return 1===n.length?n[0]:0===n.length?void 0:function(e,t){let r=t.length;for(let a=0;a<r-1;a++){var n,i;let r,s=t[a];1===s.left.transitions.length&&(r=s.left.transitions[0]);let o=r instanceof $,l=r,u=t[a+1].left;1===s.left.type&&1===s.right.type&&void 0!==r&&(o&&l.followState===s.right||r.target===s.right)?(o?l.followState=u:r.target=u,n=e,i=s.right,n.states.splice(n.states.indexOf(i),1)):_(s.right,u)}let a=t[0],s=t[r-1];return{left:a.left,right:s.right}}(e,n)}function N(e,t,r,n,i){let a=n.left,s=n.right,o=L(e,t,r,{type:11});w(e,o);let l=L(e,t,r,{type:12});return a.loopback=o,l.loopback=o,e.decisionMap[E(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,_(s,o),void 0===i?(_(o,a),_(o,l)):(_(o,l),_(o,i.left),_(i.right,a)),{left:a,right:l}}function x(e,t,r,n,i){let a=n.left,s=n.right,o=L(e,t,r,{type:10});w(e,o);let l=L(e,t,r,{type:12}),u=L(e,t,r,{type:9});return o.loopback=u,l.loopback=u,_(o,a),_(o,l),_(s,u),void 0!==i?(_(u,l),_(u,i.left),_(i.right,a)):_(u,o),e.decisionMap[E(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}function w(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function I(e,t,r,n,...i){let a=L(e,t,n,{type:8,start:r});for(let e of(r.end=a,i))void 0!==e?(_(r,e.left),_(e.right,a)):_(r,a);return e.decisionMap[E(t,function(e){if(e instanceof R.ak)return"Alternation";if(e instanceof R.c$)return"Option";if(e instanceof R.Y2)return"Repetition";if(e instanceof R.Pp)return"RepetitionWithSeparator";if(e instanceof R.$P)return"RepetitionMandatory";else if(e instanceof R.Cy)return"RepetitionMandatoryWithSeparator";else throw Error("Invalid production type encountered")}(n),n.idx)]=r,{left:r,right:a}}function P(e,t,r,n){let i=L(e,t,n,{type:1}),a=L(e,t,n,{type:1});return O(i,new k(a,r)),{left:i,right:a}}function _(e,t){O(e,new C(t))}function L(e,t,r,n){let i=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(i),i}function O(e,t){0===e.transitions.length&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}let D={};class M{constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let t=F(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return(0,v.A)(this.configs,e=>e.alt)}get key(){let e="";for(let t in this.map)e+=t+":";return e}}function F(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join("_")}`}var q=r(49430),j=r(60625),U=r(35984),G=r(15643),z=r(11812),K=r(36988),B=r(60559),W=r(18633);class V{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="",t=this.predicates.length;for(let r=0;r<t;r++)e+=!0===this.predicates[r]?"1":"0";return e}}let H=new V;class Y extends R.T6{constructor(e){var t;super(),this.logging=null!=(t=null==e?void 0:e.logging)?t:e=>console.log(e)}initialize(e){this.atn=function(e){let t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};!function(e,t){let r=t.length;for(let n=0;n<r;n++){let r=t[n],i=L(e,r,void 0,{type:2}),a=L(e,r,void 0,{type:7});i.stop=a,e.ruleToStartState.set(r,i),e.ruleToStopState.set(r,a)}}(t,e);let r=e.length;for(let n=0;n<r;n++){let r=e[n],i=b(t,r,r);void 0!==i&&function(e,t,r){_(e.ruleToStartState.get(t),r.left);let n=e.ruleToStopState.get(t);_(r.right,n)}(t,r,i)}return t}(e.rules),this.dfas=function(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;n<t;n++)r[n]=function(e,t){let r={};return n=>{let i=n.toString(),a=r[i];return void 0!==a||(a={atnStartState:e,decision:t,states:{}},r[i]=a),a}}(e.decisionStates[n],n);return r}(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=E(r,"Alternation",t),l=this.atn.decisionMap[o].decision,u=(0,v.A)((0,R.jk)({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),e=>(0,v.A)(e,e=>e[0]));if(X(u,!1)&&!i){let e=(0,W.A)(u,(e,t,r)=>((0,K.A)(t,t=>{t&&(e[t.tokenTypeIdx]=r,(0,K.A)(t.categoryMatches,t=>{e[t]=r}))}),e),{});return n?function(t){var r;let n=e[this.LA(1).tokenTypeIdx];if(void 0!==t&&void 0!==n){let e=null==(r=t[n])?void 0:r.GATE;if(void 0!==e&&!1===e.call(this))return}return n}:function(){return e[this.LA(1).tokenTypeIdx]}}return n?function(e){let t=new V,r=void 0===e?0:e.length;for(let n=0;n<r;n++){let r=null==e?void 0:e[n].GATE;t.set(n,void 0===r||r.call(this))}let n=Q.call(this,a,l,t,s);return"number"==typeof n?n:void 0}:function(){let e=Q.call(this,a,l,H,s);return"number"==typeof e?e:void 0}}buildLookaheadForOptional(e){let{prodOccurrence:t,rule:r,prodType:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=E(r,n,t),l=this.atn.decisionMap[o].decision,u=(0,v.A)((0,R.jk)({maxLookahead:1,occurrence:t,prodType:n,rule:r}),e=>(0,v.A)(e,e=>e[0]));if(X(u)&&u[0][0]&&!i){let e=u[0],t=(0,z.A)(e);if(1===t.length&&(0,B.A)(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=(0,W.A)(t,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,(0,K.A)(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){return!0===e[this.LA(1).tokenTypeIdx]}}}return function(){let e=Q.call(this,a,l,H,s);return"object"!=typeof e&&0===e}}}function X(e,t=!0){let r=new Set;for(let n of e){let e=new Set;for(let i of n){if(void 0===i)if(!t)return!1;else break;for(let t of[i.tokenTypeIdx].concat(i.categoryMatches))if(r.has(t)){if(!e.has(t))return!1}else r.add(t),e.add(t)}}return!0}function Q(e,t,r,n){let i=e[t](r),a=i.start;if(void 0===a){let e=function(e){let t=new M,r=e.transitions.length;for(let n=0;n<r;n++)ei({state:e.transitions[n].target,alt:n,stack:[]},t);return t}(i.atnStartState);a=en(i,et(e)),i.start=a}return J.apply(this,[i,a,r,n])}function J(e,t,r,n){let i=t,a=1,s=[],o=this.LA(a++);for(;;){var l,u;let t=(l=i,u=o,l.edges[u.tokenTypeIdx]);if(void 0===t&&(t=Z.apply(this,[e,i,o,a,r,n])),t===D)return function(e,t,r){var n,i;return{actualToken:r,possibleTokenTypes:(n=(0,j.A)(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof k).map(e=>e.tokenType),i=e=>e.tokenTypeIdx,n&&n.length?(0,G.A)(n,(0,U.A)(i,2)):[]),tokenPath:e}}(s,i,o);if(!0===t.isAcceptState)return t.prediction;i=t,s.push(o),o=this.LA(a++)}}function Z(e,t,r,n,i,a){let s=function(e,t,r){let n,i=new M,a=[];for(let n of e.elements){if(!1===r.is(n.alt))continue;if(7===n.state.type){a.push(n);continue}let e=n.state.transitions.length;for(let r=0;r<e;r++){let e=function(e,t){if(e instanceof k&&(0,R.G)(t,e.tokenType))return e.target}(n.state.transitions[r],t);void 0!==e&&i.add({state:e,alt:n.alt,stack:n.stack})}}if(0===a.length&&1===i.size&&(n=i),void 0===n)for(let e of(n=new M,i.elements))ei(e,n);if(a.length>0&&!function(e){for(let t of e.elements)if(7===t.state.type)return!0;return!1}(n))for(let e of a)n.add(e);return n}(t.configs,r,i);if(0===s.size)return er(e,t,r,D),D;let o=et(s),l=function(e,t){let r;for(let n of e.elements)if(!0===t.is(n.alt)){if(void 0===r)r=n.alt;else if(r!==n.alt)return}return r}(s,i);if(void 0!==l)o.isAcceptState=!0,o.prediction=l,o.configs.uniqueAlt=l;else if(function(e){if(function(e){for(let t of e.elements)if(7!==t.state.type)return!1;return!0}(e))return!0;let t=function(e){let t=new Map;for(let r of e){let e=F(r,!1),n=t.get(e);void 0===n&&(n={},t.set(e,n)),n[r.alt]=!0}return t}(e.elements);return function(e){for(let t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}(t)&&!function(e){for(let t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}(t)}(s)){let t=(0,q.A)(s.alts);o.isAcceptState=!0,o.prediction=t,o.configs.uniqueAlt=t,ee.apply(this,[e,n,s.alts,a])}return er(e,t,r,o)}function ee(e,t,r,n){var i;let a,s,o,l=[];for(let e=1;e<=t;e++)l.push(this.LA(e).tokenType);let u=e.atnStartState;n((i={topLevelRule:u.rule,ambiguityIndices:r,production:u.production,prefixPath:l},a=(0,v.A)(i.prefixPath,e=>(0,R.Sk)(e)).join(", "),s=0===i.production.idx?"":i.production.idx,(o=`Ambiguous Alternatives Detected: <${i.ambiguityIndices.join(", ")}> in <${function(e){if(e instanceof R.wL)return"SUBRULE";if(e instanceof R.c$)return"OPTION";if(e instanceof R.ak)return"OR";if(e instanceof R.$P)return"AT_LEAST_ONE";if(e instanceof R.Cy)return"AT_LEAST_ONE_SEP";else if(e instanceof R.Pp)return"MANY_SEP";else if(e instanceof R.Y2)return"MANY";else if(e instanceof R.BK)return"CONSUME";else throw Error("non exhaustive match")}(i.production)}${s}> inside <${i.topLevelRule.name}> Rule,
|
|
21
|
+
<${a}> may appears as a prefix path in all these alternatives.
|
|
22
|
+
`)+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
23
|
+
`+"For Further details."))}function et(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function er(e,t,r,n){return n=en(e,n),t.edges[r.tokenTypeIdx]=n,n}function en(e,t){if(t===D)return t;let r=t.configs.key,n=e.states[r];return void 0!==n?n:(t.configs.finalize(),e.states[r]=t,t)}function ei(e,t){let r=e.state;if(7===r.type){if(e.stack.length>0){let r=[...e.stack];ei({state:r.pop(),alt:e.alt,stack:r},t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let i=0;i<n;i++){let n=function(e,t){if(t instanceof C)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof $){let r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}(e,r.transitions[i]);void 0!==n&&ei(n,t)}}var ea=r(30429),es=r(41891);class eo{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new eh(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new ec;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let r=new eu(e.startOffset,e.image.length,(0,m.wf)(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){let t=e.container;if(t){let r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){let t=[];for(let r of e){let e=new eu(r.startOffset,r.image.length,(0,m.wf)(r),r.tokenType,!0);e.root=this.rootNode,t.push(e)}let r=this.current,n=!1;if(r.content.length>0)return void r.content.push(...t);for(;r.container;){let e=r.container.content.indexOf(r);if(e>0){r.container.content.splice(e,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;"string"!=typeof e.$type||e.$infixName||(this.current.astNode=e),e.$cstNode=t;let r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}}class el{get hidden(){return!1}get astNode(){let e="string"==typeof this._astNode?.$type?this._astNode:this.container?.astNode;if(!e)throw Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}}class eu extends el{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=n,this._length=t,this._range=r}}class ec extends el{constructor(){super(...arguments),this.content=new ed(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(!e||!t)return{start:es.Position.create(0,0),end:es.Position.create(0,0)};if(void 0===this._rangeCache){let{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line<r.start.line?r.start:n.end}}return this._rangeCache}get firstNonHiddenNode(){for(let e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}}class ed extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,ed.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(let t of e)t.container=this.parent}}class eh extends ec{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}let ep=Symbol("Datatype");function ef(e){return e.$type===ep}let em=e=>e.endsWith("")?e:e+"";class eg{constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition,r="production"===e.LanguageMetaData.mode;e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new eS(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new eE(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class ey extends eg{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new eo,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let r,n=this.computeRuleType(e);(0,T.NT)(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(em(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),(0,T.s7)(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,r=new Map;for(let t=0;t<e.operators.precedences.length;t++){let n=e.operators.precedences[t];for(let e of n.operators)r.set(e.value,{precedence:t,rightAssoc:"right"===n.associativity})}this.operatorPrecedence.set(t,r)}computeRuleType(e){if((0,T.NT)(e))return(0,g.Uz)(e);if(!e.fragment)if((0,g.Xq)(e))return ep;else return(0,g.Uz)(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);let r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;let n=t.rule?this.allRules.get(t.rule):this.mainRule;if(!n)throw Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");let i=this.doParse(n);return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,(0,ea.SD)(i,{deep:!0}),{value:i,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),void 0===t)throw Error("No result from parser");if(this.stack.length>0)throw Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{let i=!this.isRecording()&&void 0!==e;if(i){let r={$type:e};this.stack.push(r),e===ep?r.value="":void 0!==t&&(r.$infixName=t)}return r(n),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let r=e.startOffset;for(let e=0;e<t.length;e++)if(t[e].startOffset>r)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,r){let n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){let e=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(n,r),{assignment:i,crossRef:a}=this.getAssignment(r),s=this.current;if(i){let e=(0,T.wb)(r)?n.image:this.converter.convert(n.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(ef(s)){let e=n.image;(0,T.wb)(r)||(e=this.converter.convert(e,t).toString()),s.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&"number"==typeof e.endOffset&&!isNaN(e.endOffset)}subrule(e,t,r,n,i){let a,s;this.isRecording()||r||(a=this.nodeBuilder.buildCompositeNode(n));try{s=this.wrapper.wrapSubrule(e,t,i)}finally{!this.isRecording()&&(void 0!==s||r||(s=this.construct()),void 0!==s&&a&&a.length>0&&this.performSubruleAssignment(s,n,a))}}performSubruleAssignment(e,t,r){let{assignment:n,crossRef:i}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,i);else if(!n){let t=this.current;if(ef(t))t.value+=e.toString();else if("object"==typeof e&&e){let r=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(r)}}}action(e,t){if(!this.isRecording()){let r=this.current;t.feature&&t.operator?(r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode),this.stack.push({$type:e}),this.assign(t.operator,t.feature,r,r.$cstNode)):r.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return(this.nodeBuilder.construct(e),"$infixName"in e)?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):ef(e)?this.converter.convert(e.value,e.$cstNode):((0,ea.OP)(this.astReflection,e),e)}constructInfix(e,t){let r=e.parts;if(!Array.isArray(r)||0===r.length)return;let n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let i=0,a=-1;for(let e=0;e<n.length;e++){let r=n[e],s=t.get(r)??{precedence:1/0,rightAssoc:!1};s.precedence>a?(a=s.precedence,i=e):s.precedence!==a||s.rightAssoc||(i=e)}let s=n.slice(0,i),o=n.slice(i+1),l=r.slice(0,i+1),u=r.slice(i+1),c={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:s},d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},h=this.constructInfix(c,t),p=this.constructInfix(d,t);return{$type:e.$type,$cstNode:e.$cstNode,left:h,operator:n[i],right:p}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=(0,ea.XG)(e,T.wh);this.assignmentMap.set(e,{assignment:t,crossRef:t&&(0,T._c)(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,i){let a,s=this.current;switch(a="single"===i&&"string"==typeof r?this.linker.buildReference(s,t,n,r):"multi"===i&&"string"==typeof r?this.linker.buildMultiReference(s,t,n,r):r,e){case"=":s[t]=a;break;case"?=":s[t]=!0;break;case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(a)}}assignWithoutOverride(e,t){for(let[r,n]of Object.entries(t)){let t=e[r];void 0===t?e[r]=n:Array.isArray(t)&&Array.isArray(n)&&(n.push(...t),e[r]=n)}let r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}}class eT{buildMismatchTokenMessage(e){return R.my.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return R.my.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return R.my.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return R.my.buildEarlyExitMessage(e)}}class eR extends eT{buildMismatchTokenMessage({expected:e,actual:t}){let r=e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`;return`Expecting ${r} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class ev extends eg{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let r=this.wrapper.DEFINE_RULE(em(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,i){this.before(n),this.wrapper.wrapSubrule(e,t,i),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}}let eA={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new eR};class eE extends R.jr{constructor(e,t){const r=t&&"maxLookahead"in t;super(e,{...eA,lookaheadStrategy:r?new R.T6({maxLookahead:t.maxLookahead}):new Y({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}}class eS extends eE{constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}}var ek=r(91904),eC=r(73303);function e$(e,t,r){return function(e,t){let r=(0,g.YV)(t,!1);for(let n of(0,eC.Td)(t.rules).filter(T.s7).filter(e=>r.has(e))){let t={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(n,function e(t,r,n=!1){var i,a,s;let o;if((0,T.wb)(r))o=function(e,t){let r=e.consume++,n=e.tokens[t.value];if(!n)throw Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}(t,r);else if((0,T.ve)(r)){let e;i=t,a=r,e=(0,g.Uz)(a),o=()=>i.parser.action(e,a)}else if((0,T.wh)(r))o=e(t,r.terminal);else if((0,T._c)(r))o=function e(t,r,n=r.terminal){if(n)if((0,T.$g)(n)&&(0,T.s7)(n.rule.ref)){let e,i=n.rule.ref,a=t.subrule++;return n=>{e??(e=ew(t,i)),t.parser.subrule(a,e,!1,r,n)}}else if((0,T.$g)(n)&&(0,T.rE)(n.rule.ref)){let e=t.consume++,i=eI(t,n.rule.ref.name);return()=>t.parser.consume(e,i,r)}else if((0,T.wb)(n)){let e=t.consume++,i=eI(t,n.value);return()=>t.parser.consume(e,i,r)}else throw Error("Could not build cross reference parser");{if(!r.type.ref)throw Error("Could not resolve reference to type: "+r.type.$refText);let n=(0,g.U5)(r.type.ref),i=n?.terminal;if(!i)throw Error("Could not find name assignment for type: "+(0,g.Uz)(r.type.ref));return e(t,r,i)}}(t,r);else if((0,T.$g)(r))o=function(e,t){let r=t.rule.ref;if((0,T.cM)(r)){let n,i=e.subrule++,a=(0,T.s7)(r)&&r.fragment,s=t.arguments.length>0?function(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:eb(e.value)}));return t=>{let r={};for(let{parameterName:n,predicate:i}of e)n&&(r[n]=i(t));return r}}{let r=t.map(e=>eb(e.value));return t=>{let n={};for(let i=0;i<r.length;i++)if(i<e.parameters.length){let a=e.parameters[i].name,s=r[i];n[a]=s(t)}return n}}}(r,t.arguments):()=>({});return o=>{n??(n=ew(e,r)),e.parser.subrule(i,n,a,t,s(o))}}if((0,T.rE)(r)){let n=e.consume++,i=eI(e,r.name);return()=>e.parser.consume(n,i,t)}if(r)(0,ek.dr)(r);else throw new ek.WB(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}(t,r);else if((0,T.jp)(r))o=function(t,r){if(1===r.elements.length)return e(t,r.elements[0]);{let n=[];for(let i of r.elements){let r={ALT:e(t,i,!0)},a=eN(i);a&&(r.GATE=eb(a)),n.push(r)}let i=t.or++;return e=>t.parser.alternatives(i,n.map(t=>{let r={ALT:()=>t.ALT(e)},n=t.GATE;return n&&(r.GATE=()=>n(e)),r}))}}(t,r);else if((0,T.cY)(r))o=function(t,r){if(1===r.elements.length)return e(t,r.elements[0]);let n=[];for(let i of r.elements){let r={ALT:e(t,i,!0)},a=eN(i);a&&(r.GATE=eb(a)),n.push(r)}let i=t.or++,a=(e,t)=>{let r=t.getRuleStack().join("-");return`uGroup_${e}_${r}`},s=ex(t,eN(r),e=>t.parser.alternatives(i,n.map((r,n)=>{let s={ALT:()=>!0},o=t.parser;s.ALT=()=>{if(r.ALT(e),!o.isRecording()){let e=a(i,o);o.unorderedGroups.get(e)||o.unorderedGroups.set(e,[]);let t=o.unorderedGroups.get(e);void 0===t?.[n]&&(t[n]=!0)}};let l=r.GATE;return l?s.GATE=()=>l(e):s.GATE=()=>{let e=o.unorderedGroups.get(a(i,o));return!e?.[n]},s})),"*");return e=>{s(e),t.parser.isRecording()||t.parser.unorderedGroups.delete(a(i,t.parser))}}(t,r);else if((0,T.IZ)(r)){let n;s=t,n=r.elements.map(t=>e(s,t)),o=e=>n.forEach(t=>t(e))}else if((0,T.FO)(r)){let e=t.consume++;o=()=>t.parser.consume(e,R.LT,r)}else throw new ek.WB(r.$cstNode,`Unexpected element type: ${r.$type}`);return ex(t,n?void 0:eN(r),o,r.cardinality)}(t,n.definition))}for(let n of(0,eC.Td)(t.rules).filter(T.NT).filter(e=>r.has(e)))e.parser.rule(n,function(e,t){let r,n=t.call.rule.ref;if(!n)throw Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if((0,T.rE)(n))throw Error("Cannot use terminal rule in infix expression");let i=t.operators.precedences.flatMap(e=>e.operators),a={$type:"Group",elements:[]},s={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(s,o);let l={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:i}},u={...s,$container:o};o.elements.push(l,u);let c=i.map(t=>e.tokens[t.value]).map((t,r)=>({ALT:()=>e.parser.consume(r,t,l)}));return t=>{r??(r=ew(e,n)),e.parser.subrule(0,r,!1,s,t),e.parser.many(0,{DEF:()=>{e.parser.alternatives(0,c),e.parser.subrule(1,r,!1,u,t)}})}}(e,n))}({parser:t,tokens:r,ruleNames:new Map},e),t}function eb(e){if((0,T.RP)(e)){let t=eb(e.left),r=eb(e.right);return e=>t(e)||r(e)}if((0,T.Tu)(e)){let t=eb(e.left),r=eb(e.right);return e=>t(e)&&r(e)}if((0,T.Ct)(e)){let t=eb(e.value);return e=>!t(e)}if((0,T.TF)(e)){let t=e.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if((0,T.Cz)(e)){let t=!!e.true;return()=>t}(0,ek.dr)(e)}function eN(e){if((0,T.IZ)(e))return e.guardCondition}function ex(e,t,r,n){let i=t&&eb(t);if(!n)if(!i)return r;else{let t=e.or++;return n=>e.parser.alternatives(t,[{ALT:()=>r(n),GATE:()=>i(n)},{ALT:(0,R.mT)(),GATE:()=>!i(n)}])}if("*"===n){let t=e.many++;return n=>e.parser.many(t,{DEF:()=>r(n),GATE:i?()=>i(n):void 0})}if("+"===n){let t=e.many++;if(!i)return n=>e.parser.atLeastOne(t,{DEF:()=>r(n)});{let n=e.or++;return a=>e.parser.alternatives(n,[{ALT:()=>e.parser.atLeastOne(t,{DEF:()=>r(a)}),GATE:()=>i(a)},{ALT:(0,R.mT)(),GATE:()=>!i(a)}])}}if("?"===n){let t=e.optional++;return n=>e.parser.optional(t,{DEF:()=>r(n),GATE:i?()=>i(n):void 0})}(0,ek.dr)(n)}function ew(e,t){let r=function(e,t){if((0,T.cM)(t))return t.name;{if(e.ruleNames.has(t))return e.ruleNames.get(t);let r=t,n=r.$container,i=t.$type;for(;!(0,T.s7)(n);)((0,T.IZ)(n)||(0,T.jp)(n)||(0,T.cY)(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,e.ruleNames.set(t,i),i}}(e,t),n=e.parser.getRule(r);if(!n)throw Error(`Rule "${r}" not found."`);return n}function eI(e,t){let r=e.tokens[t];if(!r)throw Error(`Token "${t}" not found."`);return r}var eP=r(99902),e_=r(50821),eL=r(18489),eO=r(77557);let eD=0,eM=Symbol("OperationCancelled");async function eF(e){if(e===eL.CancellationToken.None)return;let t=performance.now();if(t-eD>=10&&(eD=t,await new Promise(e=>{"u"<typeof setImmediate?setTimeout(e,0):setImmediate(e)}),eD=performance.now()),e.isCancellationRequested)throw eM}class eq{constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}}class ej{constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(let t of e)if(ej.isIncremental(t)){let e=ez(t.range),r=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,r)+t.text+this._content.substring(n,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),s=this._lineOffsets,o=eU(t.text,!1,r);if(a-i===o.length)for(let e=0,t=o.length;e<t;e++)s[e+i+1]=o[e];else o.length<1e4?s.splice(i+1,a-i,...o):this._lineOffsets=s=s.slice(0,i+1).concat(o,s.slice(a+1));let l=t.text.length-(n-r);if(0!==l)for(let e=i+1+o.length,t=s.length;e<t;e++)s[e]=s[e]+l}else if(ej.isFull(t))this._content=t.text,this._lineOffsets=void 0;else throw Error("Unknown change event received");this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=eU(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){let i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}let i=r-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line];if(e.character<=0)return r;let n=e.line+1<t.length?t[e.line+1]:this._content.length,i=Math.min(r+e.character,n);return this.ensureBeforeEOL(i,r)}ensureBeforeEOL(e,t){for(;e>t&&eG(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}static isFull(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}}function eU(e,t,r=0){let n=t?[r]:[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);eG(i)&&(13===i&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,n.push(r+t+1))}return n}function eG(e){return 13===e||10===e}function ez(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function eK(e){let t=ez(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(i=u||(u={})).create=function(e,t,r,n){return new ej(e,t,r,n)},i.update=function(e,t,r){if(e instanceof ej)return e.update(t,r),e;throw Error("TextDocument.update: document must be created by TextDocument.create")},i.applyEdits=function(e,t){let r=e.getText(),n=function e(t,r){if(t.length<=1)return t;let n=t.length/2|0,i=t.slice(0,n),a=t.slice(n);e(i,r),e(a,r);let s=0,o=0,l=0;for(;s<i.length&&o<a.length;)0>=r(i[s],a[o])?t[l++]=i[s++]:t[l++]=a[o++];for(;s<i.length;)t[l++]=i[s++];for(;o<a.length;)t[l++]=a[o++];return t}(t.map(eK),(e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}),i=0,a=[];for(let t of n){let n=e.offsetAt(t.range.start);if(n<i)throw Error("Overlapping edit");n>i&&a.push(r.substring(i,n)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(r.substr(i)),a.join("")};var eB=r(44074),eW=r(41463);(a=c||(c={})).basename=eB.A.basename,a.dirname=eB.A.dirname,a.extname=eB.A.extname,a.joinPath=eB.A.joinPath,a.resolvePath=eB.A.resolvePath,n="object"==typeof eW&&eW?.platform==="win32",a.equals=function(e,t){return e?.toString()===t?.toString()},a.relative=function(e,t){let r="string"==typeof e?eB.r.parse(e).path:e.path,i="string"==typeof t?eB.r.parse(t).path:t.path,a=r.split("/").filter(e=>e.length>0),s=i.split("/").filter(e=>e.length>0);if(n){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),s[0]&&e.test(s[0])&&(s[0]=s[0].toLowerCase()),a[0]!==s[0])return i.substring(1)}let o=0;for(;o<a.length&&a[o]===s[o];o++);return"../".repeat(a.length-o)+s.slice(o).join("/")},a.normalize=function(e){return eB.r.parse(e.toString()).toString()},a.contains=function(e,t){let r="string"==typeof e?e:e.path,n="string"==typeof t?t:t.path;return"/"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),"/"===r.charAt(r.length-1)&&(r=r.slice(0,-1)),n===r||!(n.length<r.length)&&"/"===n.charAt(r.length)&&n.startsWith(r)};class eV{constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return c.normalize(e)}clear(){this.root.children.clear()}insert(e,t){this.getNode(this.normalizeUri(e),!0).element=t}delete(e){let t=this.getNode(this.normalizeUri(e),!1);t?.parent&&t.parent.children.delete(t.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return void 0!==this.getNode(this.normalizeUri(e),!1)}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){let t=this.normalizeUri(e),r=this.getNode(t,!1);if(r)return{name:r.name,uri:c.joinPath(eB.r.parse(t),r.name).toString(),element:r.element}}findChildren(e){let t=this.normalizeUri(e),r=this.getNode(t,!1);return r?Array.from(r.children.values()).map(e=>({name:e.name,uri:c.joinPath(eB.r.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(c.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let r=e.split("/");"/"===e.charAt(e.length-1)&&r.pop();let n=this.root;for(let e of r){let r=n.children.get(e);if(!r)if(!t)return;else r={name:e,children:new Map,parent:n},n.children.set(e,r);n=r}return n}collectValues(e){let t=[];for(let r of(e.element&&t.push(e.element),e.children.values()))t.push(...this.collectValues(r));return t}}(s=d||(d={}))[s.Changed=0]="Changed",s[s.Parsed=1]="Parsed",s[s.IndexedContent=2]="IndexedContent",s[s.ComputedScopes=3]="ComputedScopes",s[s.Linked=4]="Linked",s[s.IndexedReferences=5]="IndexedReferences",s[s.Validated=6]="Validated";class eH{constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=eL.CancellationToken.None){let r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return(t=t??eB.r.parse(e.uri),eL.CancellationToken.is(r))?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return eL.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if("string"==typeof t){let n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}if("$model"in t){let r={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(r,e)}{let n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if("string"==typeof t){let n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}{let n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let i;if(r)i={parseResult:e,uri:t,state:d.Parsed,references:[],textDocument:r};else{let r=this.createTextDocumentGetter(t,n);i={parseResult:e,uri:t,state:d.Parsed,references:[],get textDocument(){return r()}}}return e.value.$document=i,i}async update(e,t){let r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),i=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return r!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=d.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){let r,n=this.serviceRegistry;return()=>r??(r=u.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??""))}}class eY{constructor(e){this.documentTrie=new eV,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return(0,eC.Td)(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r)),r}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(e=>(this.addDocument(e),e));{let r=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(r),r}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,d.Changed),r}deleteDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=d.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){let t=e.toString(),r=this.documentTrie.findAll(t);for(let e of r)e.state=d.Changed;return this.documentTrie.delete(t),r}}let eX=Symbol("RefResolving");class eQ{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=eL.CancellationToken.None){if(this.profiler?.isActive("linking")){let r=this.profiler.createTask("linking",this.languageId);r.start();try{for(let n of(0,ea.jm)(e.parseResult.value))await eF(t),(0,ea.DM)(n).forEach(t=>{let i=`${n.$type}:${t.property}`;r.startSubTask(i);try{this.doLink(t,e)}finally{r.stopSubTask(i)}})}finally{r.stop()}}else for(let r of(0,ea.jm)(e.parseResult.value))await eF(t),(0,ea.DM)(r).forEach(t=>this.doLink(t,e))}doLink(e,t){let r=e.reference;if("_ref"in r&&void 0===r._ref){r._ref=eX;try{let t=this.getCandidate(e);(0,eO.Zl)(t)?r._ref=t:(r._nodeDescription=t,r._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);let t=n.message??String(n);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${t}`}}t.references.push(r)}else if("_items"in r&&void 0===r._items){r._items=eX;try{let t=this.getCandidates(e),n=[];if((0,eO.Zl)(t))r._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&n.push({ref:t,$nodeDescription:e})}r._items=n}catch(t){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${t}`},r._items=[]}t.references.push(r)}}unlink(e){for(let t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,r,n){let i=this,a={$refNode:r,$refText:n,_ref:void 0,get ref(){if((0,eO.ng)(this._ref))return this._ref;if((0,eO.Nr)(this._nodeDescription)){let r=i.loadAstNode(this._nodeDescription);this._ref=r??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(void 0===this._ref){this._ref=eX;let r=(0,ea.cQ)(e).$document,n=i.getLinkedNode({reference:a,container:e,property:t});if(n.error&&r&&r.state<d.ComputedScopes)return this._ref=void 0;this._ref=n.node??n.error,this._nodeDescription=n.descr,r?.references.push(this)}else this._ref===eX&&i.throwCyclicReferenceError(e,t,n);return(0,eO.ng)(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return(0,eO.Zl)(this._ref)?this._ref:void 0}};return a}buildMultiReference(e,t,r,n){let i=this,a={$refNode:r,$refText:n,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(void 0===this._items){this._items=eX;let r=(0,ea.cQ)(e).$document,n=i.getCandidates({reference:a,container:e,property:t}),s=[];if((0,eO.Zl)(n))this._linkingError=n;else for(let e of n){let t=i.loadAstNode(e);t&&s.push({ref:t,$nodeDescription:e})}this._items=s,r?.references.push(this)}else this._items===eX&&i.throwCyclicReferenceError(e,t,n);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(this.items.length>0)return;return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,r){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if((0,eO.Zl)(t))return{error:t};let r=this.loadAstNode(t);if(r)return{node:r,descr:t};return{descr:t,error:this.createLinkingError(e,t)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);let t=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${t}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let r=(0,ea.cQ)(e.container).$document;r&&r.state<d.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`);let n=this.reflection.getReferenceType(e);return{info:e,message:`Could not resolve reference to ${n} named '${e.reference.$refText}'.`,targetDescription:t}}}class eJ{getName(e){if("string"==typeof e.name)return e.name}getNameNode(e){return(0,g.qO)(e.$cstNode,"name")}}class eZ{constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=(0,ea.jm)(e.Grammar).some(e=>(0,T._c)(e)&&e.isMulti)}findDeclarations(e){if(e){let t=(0,g.Rp)(e),r=e.astNode;if(t&&r){let n=r[t.feature];if((0,eO.A_)(n)||(0,eO.Dm)(n))return(0,ea.tC)(n);if(Array.isArray(n)){for(let t of n)if(((0,eO.A_)(t)||(0,eO.Dm)(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return(0,ea.tC)(t)}}if(r){let t=this.nameProvider.getNameNode(r);if(t&&(t===e||(0,m.pO)(e,t)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(!this.hasMultiReference)return[e];{let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(let t of(0,ea.DM)(r))if((0,eO.Dm)(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),r=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&r.push(t)}return r}findReferences(e,t){let r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(e=>c.equals(e.sourceUri,t.documentUri))),r.push(...n),(0,eC.Td)(r)}getSelfReferences(e){let t=this.getSelfNodes(e),r=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let n=(0,ea.YE)(e),i=this.nodeLocator.getAstNodePath(e);r.push({sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:(0,m.SX)(t),local:!0})}}return r}}class e0{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return eC.iD.sum((0,eC.Td)(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);{let r=this.map.get(e);if(r){let n=r.indexOf(t);if(n>=0)return 1===r.length?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?(0,eC.Td)(t):eC.B5}has(e,t){if(void 0===t)return this.map.has(e);{let r=this.map.get(e);return!!r&&r.indexOf(t)>=0}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(t=>e(t,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return(0,eC.Td)(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return(0,eC.Td)(this.map.keys())}values(){return(0,eC.Td)(this.map.values()).flat()}entriesGroupedByKey(){return(0,eC.Td)(this.map.entries())}}class e1{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}}class e2{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=eL.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=ea.VN,n=eL.CancellationToken.None){let i=[];for(let a of(this.addExportedSymbol(e,i,t),r(e)))await eF(n),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,r){let n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=eL.CancellationToken.None){let r=e.parseResult.value,n=new e0;for(let i of(0,ea.Uo)(r))await eF(t),this.addLocalSymbol(i,e,n);return n}addLocalSymbol(e,t,r){let n=e.$container;if(n){let i=this.nameProvider.getName(e);i&&r.add(n,this.descriptions.createDescription(e,i,t))}}}class e3{constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}}class e5{constructor(e,t,r){for(const t of(this.elements=new e0,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0,e)){const e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||0===r.length)&&this.outerScope?(0,eC.Td)(r).concat(this.outerScope.getElements(e)):(0,eC.Td)(r)}getAllElements(){let e=(0,eC.Td)(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class e9{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error("This cache has already been disposed")}}class e4 extends e9{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let r=t();return this.cache.set(e,r),r}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class e8 extends e9{constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();let n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){let e=r();return n.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class e7 extends e4{constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class e6{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new e7(e.shared)}getScope(e){let t=[],r=this.reflection.getReferenceType(e),n=(0,ea.YE)(e.container).localSymbols;if(n){let i=e.container;do n.has(i)&&t.push(n.getStream(i).filter(e=>this.reflection.isSubtype(e.type,r))),i=i.$container;while(i)}let i=this.getGlobalScope(r,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,r){return new e3((0,eC.Td)(e),t,r)}createScopeForNodes(e,t,r){return new e3((0,eC.Td)(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new e5(this.indexManager.allElements(e)))}}function te(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}class tt{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let r=t??{},n=t?.replacer,i=(e,t)=>this.replacer(e,t,r),a=n?(e,t)=>n(e,t,i):i;try{return this.currentDocument=(0,ea.YE)(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let r=JSON.parse(e);return this.linkNode(r,r,t??{}),r}replacer(e,t,{refText:r,sourceText:n,textRegions:i,comments:a,uriConverter:s}){if(!this.ignoreProperties.has(e)){if((0,eO.A_)(t)){let e=t.ref,n=r?t.$refText:void 0;if(!e)return{$error:t.error?.message??"Could not resolve reference",$refText:n};{let t=(0,ea.YE)(e),r="";this.currentDocument&&this.currentDocument!==t&&(r=s?s(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${r}#${i}`,$refText:n}}}if((0,eO.Dm)(t)){let e=r?t.$refText:void 0,n=[];for(let e of t.items){let t=e.ref,r=(0,ea.YE)(e.ref),i="";this.currentDocument&&this.currentDocument!==r&&(i=s?s(r.uri,t):r.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);n.push(`${i}#${a}`)}return{$refs:n,$refText:e}}{let r;if(!(0,eO.ng)(t))return t;if(i&&(r=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&r?.$textRegion&&(r.$textRegion.documentURI=this.currentDocument?.uri.toString())),n&&!e&&(r??(r={...t}),r.$sourceText=t.$cstNode?.text),a){r??(r={...t});let e=this.commentProvider.getComment(t);e&&(r.$comment=e.replace(/\r/g,""))}return r??t}}}addAstNodeRegionWithAssignmentsTo(e){let t=e=>({offset:e.offset,end:e.end,length:e.length,range:e.range});if(e.$cstNode){let r=(e.$textRegion=t(e.$cstNode)).assignments={};return Object.keys(e).filter(e=>!e.startsWith("$")).forEach(n=>{let i=(0,g.Bd)(e.$cstNode,n).map(t);0!==i.length&&(r[n]=i)}),e}}linkNode(e,t,r,n,i,a){for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a<i.length;a++){let s=i[a];te(s)?i[a]=this.reviveReference(e,n,t,s,r):(0,eO.ng)(s)&&this.linkNode(s,t,r,e,n,a)}else te(i)?e[n]=this.reviveReference(e,n,t,i,r):(0,eO.ng)(i)&&this.linkNode(i,t,r,e,n);e.$container=n,e.$containerProperty=i,e.$containerIndex=a}reviveReference(e,t,r,n,i){let a,s=n.$refText,o=n.$error;if(n.$ref){let e=this.getRefNode(r,n.$ref,i.uriConverter);if((0,eO.ng)(e))return s||(s=this.nameProvider.getName(e)),{$refText:s??"",ref:e};o=e}else if(n.$refs){let e=[];for(let t of n.$refs){let n=this.getRefNode(r,t,i.uriConverter);(0,eO.ng)(n)&&e.push({ref:n})}if(0!==e.length)return{$refText:s??"",items:e};a={$refText:s??"",items:e},o??(o="Could not resolve multi-reference")}return o?(a??(a={$refText:s??"",ref:void 0}),a.error={info:{container:e,property:t,reference:a},message:o},a):void 0}getRefNode(e,t,r){try{let n=t.indexOf("#");if(0===n){let r=this.astNodeLocator.getAstNode(e,t.substring(1));if(!r)return"Could not resolve path: "+t;return r}if(n<0){let e=r?r(t):eB.r.parse(t),n=this.langiumDocuments.getDocument(e);if(!n)return"Could not find document for URI: "+t;return n.parseResult.value}let i=r?r(t.substring(0,n)):eB.r.parse(t.substring(0,n)),a=this.langiumDocuments.getDocument(i);if(!a)return"Could not find document for URI: "+t;if(n===t.length-1)return a.parseResult.value;let s=this.astNodeLocator.getAstNode(a.parseResult.value,t.substring(n+1));if(!s)return"Could not resolve URI: "+t;return s}catch(e){return String(e)}}}class tr{get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){let t=e.LanguageMetaData;for(let r of t.fileExtensions)this.fileExtensionMap.has(r)&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileExtensionMap.set(r,e);if(t.fileNames)for(let r of t.fileNames)this.fileNameMap.has(r)&&console.warn(`The file name ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileNameMap.set(r,e);this.languageIdMap.set(t.languageId,e)}getServices(e){if(0===this.languageIdMap.size)throw Error("The service registry is empty. Use `register` to register the services of a language.");let t=this.textDocuments?.get(e)?.languageId;if(void 0!==t){let e=this.languageIdMap.get(t);if(e)return e}let r=c.extname(e),n=c.basename(e),i=this.fileNameMap.get(n)??this.fileExtensionMap.get(r);if(!i)if(t)throw Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`);else throw Error(`The service registry contains no services for the extension '${r}'.`);return i}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}}(o=h||(h={})).defaults=["fast","slow","built-in"],o.all=o.defaults;class tn{constructor(e){this.entries=new e0,this.knownCategories=new Set(h.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,r="fast"){if("built-in"===r)throw Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");for(let[n,i]of(this.knownCategories.add(r),Object.entries(e)))if(Array.isArray(i))for(let e of i){let i={check:this.wrapValidationException(e,t),category:r};this.addEntry(n,i)}else if("function"==typeof i){let e={check:this.wrapValidationException(i,t),category:r};this.addEntry(n,e)}else(0,ek.dr)(i)}wrapValidationException(e,t){return async(r,n,i)=>{await this.handleException(()=>e.call(t,r,n,i),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(i){if(i===eM)throw i;console.error(`${t}:`,i),i instanceof Error&&i.stack&&console.error(i.stack);let e=i instanceof Error?i.message:String(i);r("error",`${t}: ${e}`,{node:n})}}addEntry(e,t){if("AstNode"===e)return void this.entries.add("AstNode",t);for(let r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=(0,eC.Td)(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(e=>t.includes(e.category))),r.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,i,a,s)=>{await this.handleException(()=>e.call(r,n,i,a,s),t,i,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}}let ti=Object.freeze({validateNode:!0,validateChildren:!0});class ta{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=eL.CancellationToken.None){let n=e.parseResult,i=[];if((await eF(r),!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===p.LexingError)||(this.processParsingErrors(n,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===p.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===p.LinkingError))))return i;try{i.push(...await this.validateAst(n.value,t,r))}catch(e){if(e===eM)throw e;console.error("An error occurred during validation:",e)}return await eF(r),i}processLexingErrors(e,t,r){for(let r of[...e.lexerErrors,...e.lexerReport?.diagnostics??[]]){let e=r.severity??"error",n={severity:ts(e),range:{start:{line:r.line-1,character:r.column-1},end:{line:r.line-1,character:r.column+r.length-1}},message:r.message,data:function(e){switch(e){case"error":return{code:p.LexingError};case"warning":return{code:p.LexingWarning};case"info":return{code:p.LexingInfo};case"hint":return{code:p.LexingHint};default:throw Error("Invalid diagnostic severity: "+e)}}(e),source:this.getSource()};t.push(n)}}processParsingErrors(e,t,r){for(let r of e.parserErrors){let e;if(isNaN(r.token.startOffset)){if("previousToken"in r){let t=r.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let r={line:t.endLine-1,character:t.endColumn};e={start:r,end:r}}}}else e=(0,m.wf)(r.token);if(e){let n={severity:ts("error"),range:e,message:r.message,data:{code:p.ParsingError},source:this.getSource()};t.push(n)}}}processLinkingErrors(e,t,r){for(let r of e.references){let e=r.error;if(e){let n={node:e.info.container,range:r.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:p.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic("error",e.message,n))}}}async validateAst(e,t,r=eL.CancellationToken.None){let n=[],i=(e,t,r)=>{n.push(this.toDiagnostic(e,t,r))};return await this.validateAstBefore(e,t,i,r),await this.validateAstNodes(e,t,i,r),await this.validateAstAfter(e,t,i,r),n}async validateAstBefore(e,t,r,n=eL.CancellationToken.None){for(let i of this.validationRegistry.checksBefore)await eF(n),await i(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=eL.CancellationToken.None){if(this.profiler?.isActive("validating")){let i=this.profiler.createTask("validating",this.languageId);i.start();try{let a=(0,ea.jm)(e).iterator();for(let e of a){i.startSubTask(e.$type);let s=this.validateSingleNodeOptions(e,t);if(s.validateNode)try{for(let i of this.validationRegistry.getChecks(e.$type,t.categories))await i(e,r,n)}finally{i.stopSubTask(e.$type)}s.validateChildren||a.prune()}}finally{i.stop()}}else{let i=(0,ea.jm)(e).iterator();for(let e of i){await eF(n);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode)for(let i of this.validationRegistry.getChecks(e.$type,t.categories))await i(e,r,n);a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return ti}async validateAstAfter(e,t,r,n=eL.CancellationToken.None){for(let i of this.validationRegistry.checksAfter)await eF(n),await i(e,r,t.categories??[],n)}toDiagnostic(e,t,r){var n;let i;return{message:t,range:(n=r).range?n.range:("string"==typeof n.property?i=(0,g.qO)(n.node.$cstNode,n.property,n.index):"string"==typeof n.keyword&&(i=(0,g.SS)(n.node.$cstNode,n.keyword,n.index)),i??(i=n.node.$cstNode),i)?i.range:{start:{line:0,character:0},end:{line:0,character:0}},severity:ts(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function ts(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw Error("Invalid diagnostic severity: "+e)}}(l=p||(p={})).LexingError="lexing-error",l.LexingWarning="lexing-warning",l.LexingInfo="lexing-info",l.LexingHint="lexing-hint",l.ParsingError="parsing-error",l.LinkingError="linking-error";class to{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){let n,i=r??(0,ea.YE)(e);t??(t=this.nameProvider.getName(e));let a=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${a} has no name.`);let s=()=>n??(n=(0,m.SX)(this.nameProvider.getNameNode(e)??e.$cstNode));return{node:e,name:t,get nameSegment(){return s()},selectionSegment:(0,m.SX)(e.$cstNode),type:e.$type,documentUri:i.uri,path:a}}}class tl{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=eL.CancellationToken.None){let r=[],n=e.parseResult.value;for(let e of(0,ea.jm)(n))await eF(t),(0,ea.DM)(e).forEach(e=>{e.reference.error||r.push(...this.createInfoDescriptions(e))});return r}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let r=[];(0,eO.A_)(t)&&t.$nodeDescription?r=[t.$nodeDescription]:(0,eO.Dm)(t)&&(r=t.items.map(e=>e.$nodeDescription).filter(e=>void 0!==e));let n=(0,ea.YE)(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],s=(0,m.SX)(t.$refNode);for(let e of r)a.push({sourceUri:n,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:s,local:c.equals(e.documentUri,n)});return a}}class tu{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error("Missing '$containerProperty' in AST node.");return void 0!==t?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||0===t.length)return e;let r=t.indexOf(this.indexSeparator);if(r>0){let n=t.substring(0,r),i=parseInt(t.substring(r+1)),a=e[n];return a?.[i]}return e[t]},e)}}var tc=r(38603);class td{constructor(e){this._ready=new eq,this.onConfigurationSectionUpdateEmitter=new tc.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,r[t])})}}this._ready.resolve()}updateConfiguration(e){"object"==typeof e.settings&&null!==e.settings&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}}var th=r(26787);(f||(f={})).create=function(e){return{dispose:async()=>await e()}};class tp{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new e0,this.documentPhaseListeners=new e0,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=d.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=eL.CancellationToken.None){for(let r of e){let e=r.uri.toString();if(r.state===d.Validated){if("boolean"==typeof t.validation&&t.validation)this.resetToState(r,d.IndexedReferences);else if("object"==typeof t.validation){let n=this.findMissingValidationCategories(r,t);n.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:n}},result:this.buildState.get(e)?.result}),r.state=d.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=d.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=eL.CancellationToken.None){this.currentState=d.Changed;let n=[];for(let e of t)for(let t of this.langiumDocuments.deleteDocuments(e))n.push(t.uri),this.cleanUpDeleted(t);let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);void 0===t&&((t=this.langiumDocumentFactory.fromModel({$type:"INVALID"},e)).state=d.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,d.Changed)}let a=(0,eC.Td)(i).concat(n).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,d.ComputedScopes)),await this.emitUpdate(i,n),await eF(r);let s=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state<d.Validated||!this.buildState.get(e.uri.toString())?.completed||this.resultsAreIncomplete(e,this.updateBuildOptions)).toArray());await this.buildDocuments(s,this.updateBuildOptions,r)}resultsAreIncomplete(e,t){return this.findMissingValidationCategories(e,t).length>=1}findMissingValidationCategories(e,t){let r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set,a=void 0===t||!0===t.validation?n:"object"==typeof t.validation?t.validation.categories??n:[];return(0,eC.Td)(a).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t<r;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;r>=0&&!this.hasTextDocument(e[r]);)r--;t<r&&([e[t],e[r]]=[e[r],e[t]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,t){return!!e.references.some(e=>void 0!==e.error)||this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),f.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case d.Changed:case d.Parsed:this.indexManager.removeContent(e.uri);case d.IndexedContent:e.localSymbols=void 0;case d.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case d.Linked:this.indexManager.removeReferences(e.uri);case d.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case d.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=d.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,d.Parsed,r,e=>this.langiumDocumentFactory.update(e,r)),await this.runCancelable(e,d.IndexedContent,r,e=>this.indexManager.updateContent(e,r)),await this.runCancelable(e,d.ComputedScopes,r,async e=>{let t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.localSymbols=await t.collectLocalSymbols(e,r)});let n=e.filter(e=>this.shouldLink(e));await this.runCancelable(n,d.Linked,r,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,r)),await this.runCancelable(n,d.IndexedReferences,r,e=>this.indexManager.updateReferences(e,r));let i=e.filter(e=>!!this.shouldValidate(e)||(this.markAsCompleted(e),!1));await this.runCancelable(i,d.Validated,r,async e=>{await this.validate(e,r),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let r of e){let e=r.uri.toString(),n=this.buildState.get(e);(!n||n.completed)&&this.buildState.set(e,{completed:!1,options:t,result:n?.result})}}async runCancelable(e,t,r,n){for(let i of e)i.state<t&&(await eF(r),await n(i),i.state=t,await this.notifyDocumentPhase(i,t,r));let i=e.filter(e=>e.state===t);await this.notifyBuildPhase(i,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),f.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),f.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return(t&&"path"in t?n=t:r=t,r??(r=eL.CancellationToken.None),n)?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){let n=this.langiumDocuments.getDocument(t);return n?n.state>=e?Promise.resolve(t):r.isCancellationRequested?Promise.reject(eM):this.currentState>=e&&e>n.state?Promise.reject(new th.ResponseError(th.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${d[n.state]}, requiring ${d[e]}, but workspace state is already ${d[this.currentState]}. Returning undefined.`)):new Promise((n,i)=>{let a=this.onDocumentPhase(e,e=>{c.equals(e.uri,t)&&(a.dispose(),s.dispose(),n(e.uri))}),s=r.onCancellationRequested(()=>{a.dispose(),s.dispose(),i(eM)})}):Promise.reject(new th.ResponseError(th.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(eM):new Promise((r,n)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),r()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),n(eM)})})}async notifyDocumentPhase(e,t,r){for(let n of this.documentPhaseListeners.get(t).slice())try{await eF(r),await n(e,r)}catch(e){if(e!==eM)throw e}}async notifyBuildPhase(e,t,r){if(0!==e.length)for(let n of this.buildPhaseListeners.get(t).slice())await eF(r),await n(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),i="object"==typeof n.validation?{...n.validation}:{};i.categories=this.findMissingValidationCategories(e,n);let a=await r.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let s=this.buildState.get(e.uri.toString());s&&(s.result??(s.result={}),s.result.validationChecks?s.result.validationChecks=(0,eC.Td)(s.result.validationChecks).concat(i.categories).distinct().toArray():s.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}}class tf{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new e8,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let r=(0,ea.YE)(e).uri,n=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{c.equals(e.targetUri,r)&&e.targetPath===t&&n.push(e)})}),(0,eC.Td)(n)}allElements(e,t){let r=(0,eC.Td)(this.symbolIndex.keys());return t&&(r=r.filter(e=>!t||t.has(e))),r.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=eL.CancellationToken.None){let r=this.serviceRegistry.getServices(e.uri),n=await r.references.ScopeComputation.collectExportedSymbols(e,t),i=e.uri.toString();this.symbolIndex.set(i,n),this.symbolByTypeIndex.clear(i)}async updateReferences(e,t=eL.CancellationToken.None){let r=this.serviceRegistry.getServices(e.uri),n=await r.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let r=this.referenceIndex.get(e.uri.toString());return!!r&&r.some(e=>!e.local&&t.has(e.targetUri.toString()))}}class tm{constructor(e){this.initialBuildOptions={},this._ready=new eq,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=eL.CancellationToken.None){let r=await this.performStartup(e);await eF(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){let t=[],r=e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)};await this.loadAdditionalDocuments(e,r);let n=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,n)));let i=(0,eC.Td)(n).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return eB.r.parse(e.uri)}async traverseFolder(e,t){try{let r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error("Failure to read directory content of "+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=c.basename(e.uri);return!t.startsWith(".")&&(e.isDirectory?"node_modules"!==t&&"out"!==t:!!e.isFile&&this.serviceRegistry.hasServices(e.uri))}}class tg{buildUnexpectedCharactersMessage(e,t,r,n,i){return R.PW.buildUnexpectedCharactersMessage(e,t,r,n,i)}buildUnableToPopLexerModeMessage(e){return R.PW.buildUnableToPopLexerModeMessage(e)}}let ty={mode:"full"};class tT{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=tv(t)?Object.values(t):t,n="production"===e.LanguageMetaData.mode;this.chevrotainLexer=new R.JG(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=ty){let r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(tv(e))return e;let t=tR(e)?Object.values(e.modes).flat():e,r={};return t.forEach(e=>r[e.name]=e),r}}function tR(e){return e&&"modes"in e&&"defaultMode"in e}function tv(e){return!(Array.isArray(e)&&(0===e.length||"name"in e[0]))&&!tR(e)}function tA(e){return("string"==typeof e?e:e.text).split(y.TH)}let tE=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,tS=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu,tk=/\S/,tC=/\s*$/;function t$(e,t){let r=e.substring(t).match(tk);return r?t+r.index:e.length}function tb(e){let t=e.tokens[e.index],r=t,n=t,i=[];for(;t&&"break"!==t.type&&"tag"!==t.type;){var a;i.push("inline-tag"===(a=e).tokens[a.index].type?tN(a,!0):tx(a)),n=t,t=e.tokens[e.index]}return new tL(i,es.Range.create(r.range.start,n.range.end))}function tN(e,t){let r=e.tokens[e.index++],n=r.content.substring(1),i=e.tokens[e.index];if(i?.type==="text")if(t){let i=tx(e);return new t_(n,new tL([i],i.range),t,es.Range.create(r.range.start,i.range.end))}else{let i=tb(e);return new t_(n,i,t,es.Range.create(r.range.start,i.range.end))}{let e=r.range;return new t_(n,new tL([],e),t,e)}}function tx(e){let t=e.tokens[e.index++];return new tO(t.content,t.range)}function tw(e){if(!e)return tw({start:"/**",end:"*/",line:"*"});let{start:t,end:r,line:n}=e;return{start:tI(t,!0),end:tI(r,!1),line:tI(n,!0)}}function tI(e,t){if("string"!=typeof e&&"object"!=typeof e)return e;{let r="string"==typeof e?(0,y.Nt)(e):e.source;return t?RegExp(`^\\s*${r}`):RegExp(`\\s*${r}\\s*$`)}}class tP{constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let t of this.elements)if(0===e.length)e=t.toString();else{let r=t.toString();e+=tD(e)+r}return e.trim()}toMarkdown(e){let t="";for(let r of this.elements)if(0===t.length)t=r.toMarkdown(e);else{let n=r.toMarkdown(e);t+=tD(t)+n}return t.trim()}}class t_{constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`,t=this.content.toString();return(1===this.content.inlines.length?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}
|
|
24
|
+
${t}`),this.inline)?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let r=function(e,t,r){if("linkplain"===e||"linkcode"===e||"link"===e){let n=t.indexOf(" "),i=t;if(n>0){let e=t$(t,n);i=t.substring(e),t=t.substring(0,n)}return("linkcode"===e||"link"===e&&"code"===r.link)&&(i=`\`${i}\``),r.renderLink?.(t,i)??function(e,t){try{return eB.r.parse(e,!0),`[${t}](${e})`}catch{return e}}(t,i)}}(this.name,t,e??{});if("string"==typeof r)return r}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return(1===this.content.inlines.length?n=`${n} — ${t}`:this.content.inlines.length>1&&(n=`${n}
|
|
25
|
+
${t}`),this.inline)?`{${n}}`:n}}class tL{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){let r=this.inlines[t],n=this.inlines[t+1];e+=r.toString(),n&&n.range.start.line>r.range.start.line&&(e+="\n")}return e}toMarkdown(e){let t="";for(let r=0;r<this.inlines.length;r++){let n=this.inlines[r],i=this.inlines[r+1];t+=n.toMarkdown(e),i&&i.range.start.line>n.range.start.line&&(t+="\n")}return t}}class tO{constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}}function tD(e){return e.endsWith("\n")?"\n":"\n\n"}class tM{constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&function(e,t){let r=tw(void 0),n=tA(e);if(0===n.length)return!1;let i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(i)&&!!o?.exec(a)}(t)){let r,n;return("string"==typeof t?n=void 0:n=t.range.start,r=void 0,!n&&(n=es.Position.create(0,0)),function(e){let t=es.Position.create(e.position.line,e.position.character);if(0===e.tokens.length)return new tP([],es.Range.create(t,t));let r=[];for(;e.index<e.tokens.length;){let t=function(e,t){let r=e.tokens[e.index];return"tag"===r.type?tN(e,!1):"text"===r.type||"inline-tag"===r.type?tb(e):(function(e,t){if(t){let r=new tO("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}(r,t),void e.index++)}(e,r[r.length-1]);t&&r.push(t)}let n=r[0]?.range.start??t,i=r[r.length-1]?.range.end??t;return new tP(r,es.Range.create(n,i))}({index:0,tokens:function(e){let t=[],r=e.position.line,n=e.position.character;for(let i=0;i<e.lines.length;i++){let a=0===i,s=i===e.lines.length-1,o=e.lines[i],l=0;if(a&&e.options.start){let t=e.options.start?.exec(o);t&&(l=t.index+t[0].length)}else{let t=e.options.line?.exec(o);t&&(l=t.index+t[0].length)}if(s){let t=e.options.end?.exec(o);t&&(o=o.substring(0,t.index))}if(t$(o=o.substring(0,function(e){let t=e.match(tC);if(t&&"number"==typeof t.index)return t.index}(o)),l)>=o.length){if(t.length>0){let e=es.Position.create(r,n);t.push({type:"break",content:"",range:es.Range.create(e,e)})}}else{tE.lastIndex=l;let e=tE.exec(o);if(e){let i=e[0],a=e[1],s=es.Position.create(r,n+l),u=es.Position.create(r,n+l+i.length);t.push({type:"tag",content:a,range:es.Range.create(s,u)}),l+=i.length,l=t$(o,l)}if(l<o.length){let e=o.substring(l),i=Array.from(e.matchAll(tS));t.push(...function(e,t,r,n){let i=[];if(0===e.length){let e=es.Position.create(r,n),a=es.Position.create(r,n+t.length);i.push({type:"text",content:t,range:es.Range.create(e,a)})}else{let a=0;for(let s of e){let e=s.index,o=t.substring(a,e);o.length>0&&i.push({type:"text",content:t.substring(a,e),range:es.Range.create(es.Position.create(r,a+n),es.Position.create(r,e+n))});let l=o.length+1,u=s[1];if(i.push({type:"inline-tag",content:u,range:es.Range.create(es.Position.create(r,a+l+n),es.Position.create(r,a+l+u.length+n))}),l+=u.length,4===s.length){l+=s[2].length;let e=s[3];i.push({type:"text",content:e,range:es.Range.create(es.Position.create(r,a+l+n),es.Position.create(r,a+l+e.length+n))})}else i.push({type:"text",content:"",range:es.Range.create(es.Position.create(r,a+l+n),es.Position.create(r,a+l+n))});a=e+s[0].length}let s=t.substring(a);s.length>0&&i.push({type:"text",content:s,range:es.Range.create(es.Position.create(r,a+n),es.Position.create(r,a+n+s.length))})}return i}(i,e,r,n+l))}}r++,n=0}return t.length>0&&"break"===t[t.length-1].type?t.slice(0,-1):t}({lines:tA(t),position:n,options:tw(r)}),position:n})).toMarkdown({renderLink:(t,r)=>this.documentationLinkRenderer(e,t,r),renderTag:t=>this.documentationTagRenderer(e,t)})}}documentationLinkRenderer(e,t,r){let n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){let e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1,i=n.documentUri.with({fragment:`L${e},${t}`});return`[${r}](${i.toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let r=(0,ea.YE)(e).localSymbols;if(!r)return;let n=e;do{let e=r.getStream(n).find(e=>e.name===t);if(e)return e;n=n.$container}while(n)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}}class tF{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return"string"==typeof e.$comment?e.$comment:(0,m.v)(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}}class tq{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}}class tj{constructor(){this.previousTokenSource=new eL.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=(eD=performance.now(),new eL.CancellationTokenSource);return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=eL.CancellationToken.None){let n=new eq;return e.push({action:t,deferred:n,cancellationToken:r}),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else{if(!(this.readQueue.length>0))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:r})=>{try{let n=await Promise.resolve().then(()=>e(r));t.resolve(n)}catch(e){e===eM?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}class tU{constructor(e){this.grammarElementIdMap=new e1,this.tokenTypeIdMap=new e1,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,r=new Map;for(let r of(0,ea.jm)(e))t.set(r,{});if(e.$cstNode)for(let t of(0,m.NS)(e.$cstNode))r.set(t,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){let r=t.astNodes.get(e);for(let[n,i]of(r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t)),Object.entries(e)))if(!n.startsWith("$"))if(Array.isArray(i)){let e=[];for(let a of(r[n]=e,i))(0,eO.ng)(a)?e.push(this.dehydrateAstNode(a,t)):(0,eO.A_)(a)?e.push(this.dehydrateReference(a,t)):e.push(a)}else(0,eO.ng)(i)?r[n]=this.dehydrateAstNode(i,t):(0,eO.A_)(i)?r[n]=this.dehydrateReference(i,t):void 0!==i&&(r[n]=i);return r}dehydrateReference(e,t){let r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){let r=t.cstNodes.get(e);return(0,eO.br)(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),(0,eO.mD)(e)?r.content=e.content.map(e=>this.dehydrateCstNode(e,t)):(0,eO.FC)(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){let t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){let t,r=new Map,n=new Map;for(let t of(0,ea.jm)(e))r.set(t,{});if(e.$cstNode)for(let r of(0,m.NS)(e.$cstNode)){let e;"fullText"in r?t=e=new eh(r.fullText):"content"in r?e=new ec:"tokenType"in r&&(e=this.hydrateCstLeafNode(r)),e&&(n.set(r,e),e.root=t)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,t){let r=t.astNodes.get(e);for(let[n,i]of(r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode)),Object.entries(e)))if(!n.startsWith("$"))if(Array.isArray(i)){let e=[];for(let a of(r[n]=e,i))(0,eO.ng)(a)?e.push(this.setParent(this.hydrateAstNode(a,t),r)):(0,eO.A_)(a)?e.push(this.hydrateReference(a,r,n,t)):e.push(a)}else(0,eO.ng)(i)?r[n]=this.setParent(this.hydrateAstNode(i,t),r):(0,eO.A_)(i)?r[n]=this.hydrateReference(i,r,n,t):void 0!==i&&(r[n]=i);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){let n=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),(0,eO.mD)(n))for(let i of e.content){let e=this.hydrateCstNode(i,t,r++);n.content.push(e)}return n}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType);return new eu(e.offset,e.length,{start:{line:e.startLine,character:e.startColumn},end:{line:e.endLine,character:e.endColumn}},t,e.hidden)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of(0,ea.jm)(this.grammar))(0,T.r1)(t)&&this.grammarElementIdMap.set(t,e++)}}function tG(e){return{documentation:{CommentProvider:e=>new tF(e),DocumentationProvider:e=>new tM(e)},parser:{AsyncParser:e=>new tq(e),GrammarConfig:e=>(function(e){let t=[];for(let r of e.Grammar.rules)(0,T.rE)(r)&&(0,g.eb)(r)&&(0,y.lU)((0,g.S)(r))&&t.push(r.name);return{multilineCommentRules:t,nameRegexp:m.El}})(e),LangiumParser:e=>{var t;let r,n,i;return n=(t=e).Grammar,i=t.parser.Lexer,(r=e$(n,new ey(t),i.definition)).finalize(),r},CompletionParser:e=>{let t,r,n;return t=e.Grammar,r=e.parser.Lexer,e$(t,n=new ev(e),r.definition),n.finalize(),n},ValueConverter:()=>new e_.d,TokenBuilder:()=>new eP.Q,Lexer:e=>new tT(e),ParserErrorMessageProvider:()=>new eR,LexerErrorMessageProvider:()=>new tg},workspace:{AstNodeLocator:()=>new tu,AstNodeDescriptionProvider:e=>new to(e),ReferenceDescriptionProvider:e=>new tl(e)},references:{Linker:e=>new eQ(e),NameProvider:()=>new eJ,ScopeProvider:e=>new e6(e),ScopeComputation:e=>new e2(e),References:e=>new eZ(e)},serializer:{Hydrator:e=>new tU(e),JsonSerializer:e=>new tt(e)},validation:{DocumentValidator:e=>new ta(e),ValidationRegistry:e=>new tn(e)},shared:()=>e.shared}}function tz(e){return{ServiceRegistry:e=>new tr(e),workspace:{LangiumDocuments:e=>new eY(e),LangiumDocumentFactory:e=>new eH(e),DocumentBuilder:e=>new tp(e),IndexManager:e=>new tf(e),WorkspaceManager:e=>new tm(e),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new tj,ConfigurationProvider:e=>new td(e)},profilers:{}}}},65482:(e,t,r)=>{r.d(t,{A:()=>n});let n=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},65575:(e,t,r)=>{r.d(t,{$:()=>u});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},l={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function u(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.p5,l);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}(0,n.K2)(u,"createPacketServices")},66751:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;class r{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,r=0,n=0,i=0;e:for(;r<this._chunks.length;){let e=this._chunks[r];for(n=0;n<e.length;){switch(e[n]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,n++;break e;default:t=0}break;default:t=0}n++}i+=e.byteLength,r++}if(4!==t)return;let a=this._read(i+n),s=new Map,o=this.toString(a,"ascii").split("\r\n");if(o.length<2)return s;for(let t=0;t<o.length-2;t++){let r=o[t],n=r.indexOf(":");if(-1===n)throw Error(`Message header must separate key and value using ':'
|
|
26
|
+
${r}`);let i=r.substr(0,n),a=r.substr(n+1).trim();s.set(e?i.toLowerCase():i,a)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],r=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,r}let t=this.allocNative(e),r=0;for(;e>0;){let n=this._chunks[0];if(n.byteLength>e){let i=n.slice(0,e);t.set(i,r),r+=e,this._chunks[0]=n.slice(e),this._totalLength-=e,e-=e}else t.set(n,r),r+=n.byteLength,this._chunks.shift(),this._totalLength-=n.byteLength,e-=n.byteLength}return t}}t.AbstractMessageBuffer=r},67116:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;let n=r(69185);class i{constructor(e=1){if(e<=0)throw Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}t.Semaphore=i},69185:(e,t)=>{let r;function n(){if(void 0===r)throw Error("No runtime abstraction layer installed");return r}Object.defineProperty(t,"__esModule",{value:!0}),(n||(n={})).install=function(e){if(void 0===e)throw Error("No runtime abstraction layer provided");r=e},t.default=n},69589:(e,t)=>{function r(e){return"string"==typeof e||e instanceof String}function n(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=r,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=n,t.stringArray=function(e){return n(e)&&e.every(e=>r(e))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},70069:(e,t,r)=>{r.d(t,{S:()=>c});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},l=class extends n.dg{static{(0,n.K2)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if("ARCH_ICON"===e.name)return t.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return t.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=(e=e.slice(1,-1)).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},u={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new l,"ValueConverter")}};function c(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.wV,u);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}(0,n.K2)(c,"createArchitectureServices")},70740:(e,t,r)=>{var n;function i(e,t,r,n,i,a,o,l,c){return s([e,t,r,n,i,a,o,l,c].reduce(u,{}))}r.d(t,{WQ:()=>i}),(n||(n={})).merge=(e,t)=>u(u({},e),t);let a=Symbol("isProxy");function s(e,t){let r=new Proxy({},{deleteProperty:()=>!1,set:()=>{throw Error("Cannot set property on injected service container")},get:(n,i)=>i===a||l(n,i,e,t||r),getOwnPropertyDescriptor:(n,i)=>(l(n,i,e,t||r),Object.getOwnPropertyDescriptor(n,i)),has:(t,r)=>r in e,ownKeys:()=>[...Object.getOwnPropertyNames(e)]});return r}let o=Symbol();function l(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===o)throw Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}if(t in r){let i=r[t];e[t]=o;try{e[t]="function"==typeof i?i(n):s(i,n)}catch(r){throw e[t]=r instanceof Error?r:void 0,r}return e[t]}}function u(e,t){if(t){for(let[r,n]of Object.entries(t))if(null!=n)if("object"==typeof n){let t=e[r];"object"==typeof t&&null!==t?e[r]=u(t,n):e[r]=u({},n)}else e[r]=n}return e}},73303:(e,t,r)=>{var n,i;r.d(t,{B5:()=>o,Rf:()=>l,Td:()=>u,Vj:()=>c,fq:()=>a,iD:()=>n});class a{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){let e,t=[],r=this.iterator();do void 0!==(e=r.next()).value&&t.push(e.value);while(!e.done);return t}toSet(){return new Set(this)}toMap(e,t){return new Map(this.map(r=>[e?e(r):r,t?t(r):r]))}toString(){return this.join()}concat(e){return new a(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(!(t=this.nextFn(e.first)).done)return t;while(!t.done);e.firstDone=!0}do if(!(t=e.iterator.next()).done)return t;while(!t.done);return l})}join(e=","){let t,r=this.iterator(),n="",i=!1;do{var a;(t=r.next()).done||(i&&(n+=e),n+="string"==typeof(a=t.value)?a:void 0===a?"undefined":"function"==typeof a.toString?a.toString():Object.prototype.toString.call(a)),i=!0}while(!t.done);return n}indexOf(e,t=0){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(n>=t&&i.value===e)return n;i=r.next(),n++}return -1}every(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)e(n.value,r),n=t.next(),r++}map(e){return new a(this.startFn,t=>{let{done:r,value:n}=this.nextFn(t);return r?l:{done:!1,value:e(n)}})}filter(e){return new a(this.startFn,t=>{let r;do if(!(r=this.nextFn(t)).done&&e(r.value))return r;while(!r.done);return l})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){let r=this.iterator(),n=t,i=r.next();for(;!i.done;)n=void 0===n?i.value:e(n,i.value),i=r.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){let n=e.next();if(n.done)return r;let i=this.recursiveReduce(e,t,r);return void 0===i?n.value:t(i,n.value)}find(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;){if(e(n.value))return r;n=t.next(),r++}return -1}includes(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new a(()=>({this:this.startFn()}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}let{done:r,value:n}=this.nextFn(t.this);if(!r){let r=e(n);if(!s(r))return{done:!1,value:r};t.iterator=r[Symbol.iterator]()}}while(t.iterator);return l})}flat(e){if(void 0===e&&(e=1),e<=0)return this;let t=e>1?this.flat(e-1):this;return new a(()=>({this:t.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}let{done:r,value:n}=t.nextFn(e.this);if(!r)if(!s(n))return{done:!1,value:n};else e.iterator=n[Symbol.iterator]()}while(e.iterator);return l})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(e=1){return new a(()=>{let t=this.startFn();for(let r=0;r<e&&!this.nextFn(t).done;r++);return t},this.nextFn)}limit(e){return new a(()=>({size:0,state:this.startFn()}),t=>(t.size++,t.size>e)?l:this.nextFn(t.state))}distinct(e){return new a(()=>({set:new Set,internalState:this.startFn()}),t=>{let r;do if(!(r=this.nextFn(t.internalState)).done){let n=e?e(r.value):r.value;if(!t.set.has(n))return t.set.add(n),r}while(!r.done);return l})}exclude(e,t){let r=new Set;for(let n of e){let e=t?t(n):n;r.add(e)}return this.filter(e=>{let n=t?t(e):e;return!r.has(n)})}}function s(e){return!!e&&"function"==typeof e[Symbol.iterator]}let o=new a(()=>void 0,()=>l),l=Object.freeze({done:!0,value:void 0});function u(...e){if(1===e.length){let t=e[0];if(t instanceof a)return t;if(s(t))return new a(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new a(()=>({index:0}),e=>e.index<t.length?{done:!1,value:t[e.index++]}:l)}return e.length>1?new a(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){let r=e[t.collIndex++];s(r)?t.iterator=r[Symbol.iterator]():r&&"number"==typeof r.length&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return l}):o}class c extends a{constructor(e,t,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&(e.iterators.pop(),e.pruned=!1);e.iterators.length>0;){let r=e.iterators[e.iterators.length-1].next();if(!r.done)return e.iterators.push(t(r.value)[Symbol.iterator]()),r;e.iterators.pop()}return l})}iterator(){let e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}(i=n||(n={})).sum=function(e){return e.reduce((e,t)=>e+t,0)},i.product=function(e){return e.reduce((e,t)=>e*t,0)},i.min=function(e){return e.reduce((e,t)=>Math.min(e,t))},i.max=function(e){return e.reduce((e,t)=>Math.max(e,t))}},74818:(e,t,r)=>{r.d(t,{A:()=>c});var n,i=r(35984),a=r(19396),s=r(70638),o=r(35063),l=r(18479),u=Math.max;let c=(n=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var a=null==r?0:(0,l.A)(r);return a<0&&(a=u(n+a,0)),(0,o.A)(e,(0,i.A)(t,3),a)},function(e,t,r){var o=Object(e);if(!(0,a.A)(e)){var l=(0,i.A)(t,3);e=(0,s.A)(e),t=function(e){return l(o[e],e,o)}}var u=n(e,t,r);return u>-1?o[l?e[u]:u]:void 0})},75075:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;let n=r(43472);t.createProtocolConnection=function(e,t,r,i){return n.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,n.createMessageConnection)(e,t,r,i)}},75704:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;let a=r(35015);(i=n||(t.InlineCompletionRequest=n={})).method="textDocument/inlineCompletion",i.messageDirection=a.MessageDirection.clientToServer,i.type=new a.ProtocolRequestType(i.method)},76927:(e,t)=>{var r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,(i=n||(t.Touch=n={})).None=0,i.First=1,i.AsOld=i.First,i.Last=2,i.AsNew=i.Last;class a{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==r)throw Error("LinkedMap got modified during iteration.");n=n.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:t.key,done:!1};return t=t.next,e}}};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:t.value,done:!1};return t=t.next,e}}};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:[t.key,t.value],done:!1};return t=t.next,e}}};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail)if(this._head)e.next=this._head,this._head.previous=e;else throw Error("Invalid list");else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail)if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error("Invalid list");else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(t===n.First||t===n.Last){if(t===n.First){if(e===this._head)return;let t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){for(let[t,r]of(this.clear(),e))this.set(t,r)}}t.LinkedMap=a;class s extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}t.LRUCache=s},77557:(e,t,r)=>{function n(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function i(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"ref"in e}function a(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"items"in e}function s(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function o(e){return"object"==typeof e&&null!==e&&"object"==typeof e.info&&"string"==typeof e.message}r.d(t,{A_:()=>i,Dm:()=>a,FC:()=>c,Nr:()=>s,Zl:()=>o,br:()=>d,kD:()=>l,mD:()=>u,ng:()=>n});class l{constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||"undefined"} not found.`);let r=t.properties[e.property]?.referenceType;if(!r)throw Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){let t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return n(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});let n=r[t];if(void 0!==n)return n;{let n=this.types[e],i=!!n&&n.superTypes.some(e=>this.isSubtype(e,t));return r[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),r=[];for(let n of t)this.isSubtype(n,e)&&r.push(n);return this.allSubtypes[e]=r,r}}}function u(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function c(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function d(e){return u(e)&&"string"==typeof e.fullText}},78694:(e,t,r)=>{r.d(t,{Nt:()=>d,PC:()=>h,TH:()=>i,Yv:()=>c,lU:()=>l});var n=r(50388);let i=/\r?\n/gm,a=new n.H;class s extends n.z{constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(this.multiline||"\n"!==t||(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=d(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=new RegExp(this.regex.substring(e.loc.begin,e.loc.end));this.multiline=!!"\n".match(t)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){"Group"===e.type&&e.quantifier||super.visitChildren(e)}}let o=new s;function l(e){try{return"string"==typeof e&&(e=new RegExp(e)),e=e.toString(),o.reset(e),o.visit(a.pattern(e)),o.multiline}catch{return!1}}let u="\f\n\r \v \xa0 \u2028\u2029 \uFEFF".split("");function c(e){let t="string"==typeof e?new RegExp(e):e;return u.some(e=>t.test(e))}function d(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(e,t){var r;let n,i,a,s=("string"==typeof(r=e)&&(r=new RegExp(r)),n=r,i=r.source,a=0,new RegExp(function e(){let t="",r;function s(e){t+=i.substr(a,e),a+=e}function o(e){t+="(?:"+i.substr(a,e)+"|$)",a+=e}for(;a<i.length;)switch(i[a]){case"\\":switch(i[a+1]){case"c":o(3);break;case"x":o(4);break;case"u":o(n.unicode?"{"===i[a+2]?i.indexOf("}",a)-a+1:6:2);break;case"p":case"P":o(n.unicode?i.indexOf("}",a)-a+1:2);break;case"k":o(i.indexOf(">",a)-a+1);break;default:o(2)}break;case"[":(r=/\[(?:\\.|.)*?\]/g).lastIndex=a,o((r=r.exec(i)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":s(1);break;case"{":(r=/\{\d+,?\d*\}/g).lastIndex=a,(r=r.exec(i))?s(r[0].length):o(1);break;case"(":if("?"===i[a+1])switch(i[a+2]){case":":t+="(?:",a+=3,t+=e()+"|$)";break;case"=":t+="(?=",a+=3,t+=e()+")";break;case"!":r=a,a+=3,e(),t+=i.substr(r,a-r);break;case"<":switch(i[a+3]){case"=":case"!":r=a,a+=4,e(),t+=i.substr(r,a-r);break;default:s(i.indexOf(">",a)-a+1),t+=e()+"|$)"}}else s(1),t+=e()+"|$)";break;case")":return++a,t;default:o(1)}return t}(),r.flags)),o=t.match(s);return!!o&&o[0].length>0}},78744:(e,t,r)=>{r.d(t,{d:()=>p});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},l=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,u=class extends n.dg{static{(0,n.K2)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;let e=l.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function c(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,n.K2)(c,"registerValidationChecks");var d=class{static{(0,n.K2)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let n of e.TreemapRows)n.item&&(void 0===r&&void 0===n.indent?r=0:void 0===n.indent?t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"}):void 0!==r&&r>=parseInt(n.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"}))}},h={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new u,"ValueConverter")},validation:{TreemapValidator:(0,n.K2)(()=>new d,"TreemapValidator")}};function p(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.XE,h);return t.ServiceRegistry.register(r),c(r),{shared:t,Treemap:r}}(0,n.K2)(p,"createTreemapServices")},79179:(e,t,r)=>{r.d(t,{ak:()=>Q,mT:()=>r0,LT:()=>t_,jr:()=>r2,T6:()=>r$,JG:()=>tA,wL:()=>z,c$:()=>W,Y2:()=>Y,$P:()=>V,Cy:()=>H,Pp:()=>X,BK:()=>J,PW:()=>tR,my:()=>tD,jk:()=>t3,Sk:()=>tE,G:()=>tO});var n,i,a,s,o,l,u,c,d,h=r(36988),p=r(13838),f=r(60559),m=r(49820),g=r(17028),y=r(27427);function T(e){function t(){}t.prototype=e;let r=new t;function n(){return typeof r.bar}return n(),n(),e}let R=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a};var v=r(18479);let A=function(e,t,r){var n=null==e?0:e.length;return n?R(e,(t=r||void 0===t?1:(0,v.A)(t))<0?0:t,n):[]};var E=r(98367),S=r(16019),k=r(3437),C=r(23341),$=r(19396),b=r(59847),N=r(70638),x=Object.prototype.hasOwnProperty,w=(0,C.A)(function(e,t){if((0,b.A)(t)||(0,$.A)(t))return void(0,k.A)(t,(0,N.A)(t),e);for(var r in t)x.call(t,r)&&(0,S.A)(e,r,t[r])}),I=r(12602),P=r(35984),_=r(61852),L=r(60423);let O=function(e,t){if(null==e)return{};var r=(0,I.A)((0,L.A)(e),function(e){return[e]});return t=(0,P.A)(t),(0,_.A)(e,r,function(e,r){return t(e,r[0])})};var D=r(95749),M=r(77494),F=r(32521),q=r(21719),j=q.A&&q.A.isRegExp,U=j?(0,F.A)(j):function(e){return(0,M.A)(e)&&"[object RegExp]"==(0,D.A)(e)};class G{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),(0,h.A)(this.definition,t=>{t.accept(e)})}}class z extends G{constructor(e){super([]),this.idx=1,w(this,O(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class K extends G{constructor(e){super(e.definition),this.orgText="",w(this,O(e,e=>void 0!==e))}}class B extends G{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,w(this,O(e,e=>void 0!==e))}}class W extends G{constructor(e){super(e.definition),this.idx=1,w(this,O(e,e=>void 0!==e))}}class V extends G{constructor(e){super(e.definition),this.idx=1,w(this,O(e,e=>void 0!==e))}}class H extends G{constructor(e){super(e.definition),this.idx=1,w(this,O(e,e=>void 0!==e))}}class Y extends G{constructor(e){super(e.definition),this.idx=1,w(this,O(e,e=>void 0!==e))}}class X extends G{constructor(e){super(e.definition),this.idx=1,w(this,O(e,e=>void 0!==e))}}class Q extends G{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,w(this,O(e,e=>void 0!==e))}}class J{constructor(e){this.idx=1,w(this,O(e,e=>void 0!==e))}accept(e){e.visit(this)}}class Z{visit(e){switch(e.constructor){case z:return this.visitNonTerminal(e);case B:return this.visitAlternative(e);case W:return this.visitOption(e);case V:return this.visitRepetitionMandatory(e);case H:return this.visitRepetitionMandatoryWithSeparator(e);case X:return this.visitRepetitionWithSeparator(e);case Y:return this.visitRepetition(e);case Q:return this.visitAlternation(e);case J:return this.visitTerminal(e);case K:return this.visitRule(e);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}var ee=r(35172),et=r(60395);let er=function(e,t){var r;return(0,et.A)(e,function(e,n,i){return!(r=t(e,n,i))}),!!r};var en=r(92459),ei=r(41418);let ea=function(e,t,r){var n=(0,en.A)(e)?ee.A:er;return r&&(0,ei.A)(e,t,r)&&(t=void 0),n(e,(0,P.A)(t,3))};var es=r(81137),eo=Math.max;let el=function(e,t,r,n){e=(0,$.A)(e)?e:(0,p.A)(e),r=r&&!n?(0,v.A)(r):0;var i=e.length;return r<0&&(r=eo(i+r,0)),(0,E.A)(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&(0,es.A)(e,t,r)>-1},eu=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0},ec=function(e,t){var r=!0;return(0,et.A)(e,function(e,n,i){return r=!!t(e,n,i)}),r},ed=function(e,t,r){var n=(0,en.A)(e)?eu:ec;return r&&(0,ei.A)(e,t,r)&&(t=void 0),n(e,(0,P.A)(t,3))};function eh(e,t=[]){return e instanceof W||e instanceof Y||e instanceof X||(e instanceof Q?ea(e.definition,e=>eh(e,t)):!(e instanceof z&&el(t,e))&&e instanceof G&&(e instanceof z&&t.push(e),ed(e.definition,e=>eh(e,t))))}function ep(e){if(e instanceof z)return"SUBRULE";if(e instanceof W)return"OPTION";if(e instanceof Q)return"OR";if(e instanceof V)return"AT_LEAST_ONE";if(e instanceof H)return"AT_LEAST_ONE_SEP";else if(e instanceof X)return"MANY_SEP";else if(e instanceof Y)return"MANY";else if(e instanceof J)return"CONSUME";else throw Error("non exhaustive match")}class ef{walk(e,t=[]){(0,h.A)(e.definition,(r,n)=>{let i=A(e.definition,n+1);if(r instanceof z)this.walkProdRef(r,i,t);else if(r instanceof J)this.walkTerminal(r,i,t);else if(r instanceof B)this.walkFlat(r,i,t);else if(r instanceof W)this.walkOption(r,i,t);else if(r instanceof V)this.walkAtLeastOne(r,i,t);else if(r instanceof H)this.walkAtLeastOneSep(r,i,t);else if(r instanceof X)this.walkManySep(r,i,t);else if(r instanceof Y)this.walkMany(r,i,t);else if(r instanceof Q)this.walkOr(r,i,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){let n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){let n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){let n=[new W({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){let n=em(e,t,r);this.walk(e,n)}walkMany(e,t,r){let n=[new W({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){let n=em(e,t,r);this.walk(e,n)}walkOr(e,t,r){let n=t.concat(r);(0,h.A)(e.definition,e=>{let t=new B({definition:[e]});this.walk(t,n)})}}function em(e,t,r){return[new W({definition:[new J({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}var eg=r(15643);let ey=function(e){return e&&e.length?(0,eg.A)(e):[]};var eT=r(11812);function eR(e){if(e instanceof z)return eR(e.referencedRule);if(e instanceof J)return[e.terminalType];if(e instanceof B||e instanceof W||e instanceof Y||e instanceof V||e instanceof H||e instanceof X||e instanceof J||e instanceof K)return function(e){let t,r=[],n=e.definition,i=0,a=n.length>i,s=!0;for(;a&&s;)s=eh(t=n[i]),r=r.concat(eR(t)),i+=1,a=n.length>i;return ey(r)}(e);if(e instanceof Q){var t;let r;return t=e,r=(0,m.A)(t.definition,e=>eR(e)),ey((0,eT.A)(r))}throw Error("non exhaustive match")}let ev="_~IN~_";class eA extends ef{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){var n,i;let a=(n=e.referencedRule,i=e.idx,n.name+i+ev+this.topProd.name),s=eR(new B({definition:t.concat(r)}));this.follows[a]=s}}var eE=r(94630),eS=r(50388),ek=r(95352),eC=r(42410),e$=r(30504);let eb=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},eN=function(e,t){return((0,en.A)(e)?eC.A:e$.A)(e,eb((0,P.A)(t,3)))};var ex=r(4986),ew=Math.max;let eI=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:(0,v.A)(r);return i<0&&(i=ew(n+i,0)),(0,es.A)(e,t,i)};var eP=r(18633),e_=r(40160),eL=r(86953),eO=r(60577),eD=r(57641),eM=r(66485);let eF=function(e,t,r,n){var i=-1,a=eO.A,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;r&&(t=(0,I.A)(t,(0,F.A)(r))),n?(a=eD.A,s=!1):t.length>=200&&(a=eM.A,s=!1,t=new eL.A(t));t:for(;++i<o;){var c=e[i],d=null==r?c:r(c);if(c=n||0!==c?c:0,s&&d==d){for(var h=u;h--;)if(t[h]===d)continue t;l.push(c)}else a(t,d,n)||l.push(c)}return l};var eq=r(96901),ej=r(26652),eU=r(41299),eG=(0,ej.A)(function(e,t){return(0,eU.A)(e)?eF(e,(0,eq.A)(t,1,eU.A,!0)):[]});let ez=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},eK=function(e){return e&&e.length?e[0]:void 0};var eB=r(74818);function eW(e){console&&console.error&&console.error(`Error: ${e}`)}function eV(e){console&&console.warn&&console.warn(`Warning: ${e}`)}let eH={},eY=new eS.H;function eX(e){let t=e.toString();if(eH.hasOwnProperty(t))return eH[t];{let e=eY.pattern(t);return eH[t]=e,e}}let eQ="Complement Sets are not supported for first char optimization",eJ='Unable to use "first char" lexer optimizations:\n';function eZ(e,t,r){let n=ts(e);t[n]=n,!0===r&&function(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let e=ts(n.charCodeAt(0));t[e]=e}else{let e=r.toLowerCase();if(e!==r){let r=ts(e.charCodeAt(0));t[r]=r}}}(e,t)}function e0(e,t){return(0,eB.A)(e.value,e=>"number"==typeof e?el(t,e):void 0!==(0,eB.A)(t,t=>e.from<=t&&t<=e.to))}class e1 extends eS.z{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){el(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===e0(e,this.targetCharCodes)&&(this.found=!0):void 0!==e0(e,this.targetCharCodes)&&(this.found=!0)}}function e2(e,t){if(!(t instanceof RegExp))return void 0!==(0,eB.A)(t,t=>el(e,t.charCodeAt(0)));{let r=eX(t),n=new e1(e);return n.visit(r),n.found}}let e3="PATTERN",e5="defaultMode",e9="modes",e4=/[^\\][$]/,e8=/[^\\[][\^]|^\^/;function e7(e){let t=e.ignoreCase?"iy":"y";return RegExp(`${e.source}`,t)}function e6(e){let t=e.PATTERN;if(U(t))return!1;if((0,ex.A)(t))return!0;if((0,g.A)(t,"exec"))return!0;if((0,E.A)(t))return!1;throw Error("non exhaustive match")}function te(e){return!!(0,E.A)(e)&&1===e.length&&e.charCodeAt(0)}let tt={test:function(e){let t=e.length;for(let r=this.lastIndex;r<t;r++){let t=e.charCodeAt(r);if(10===t)return this.lastIndex=r+1,!0;if(13===t)return 10===e.charCodeAt(r+1)?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},lastIndex:0};function tr(e,t){if((0,g.A)(e,"LINE_BREAKS"))return!1;if(U(e.PATTERN)){try{e2(t,e.PATTERN)}catch(e){return{issue:l.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if((0,E.A)(e.PATTERN))return!1;if(e6(e))return{issue:l.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function tn(e){return(0,m.A)(e,e=>(0,E.A)(e)?e.charCodeAt(0):e)}function ti(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}let ta=[];function ts(e){return e<256?e:ta[e]}var to=r(65698),tl=r(79800),tu=r(65482);function tc(e){let t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}function td(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function th(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let tp=1,tf={};function tm(e){var t,r,n;let i=function(e){let t=(0,y.A)(e),r=e,n=!0;for(;n;){let e=eG(r=ez((0,eT.A)((0,m.A)(r,e=>e.CATEGORIES))),t);t=t.concat(e),(0,f.A)(e)?n=!1:r=e}return t}(e);t=i,(0,h.A)(t,e=>{var t,r;tg(e)||(tf[tp]=e,e.tokenTypeIdx=tp++),ty(e)&&!(0,en.A)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),ty(e)||(e.CATEGORIES=[]),t=e,(0,g.A)(t,"categoryMatches")||(e.categoryMatches=[]),r=e,(0,g.A)(r,"categoryMatchesMap")||(e.categoryMatchesMap={})}),r=i,(0,h.A)(r,e=>{!function e(t,r){(0,h.A)(t,e=>{r.categoryMatchesMap[e.tokenTypeIdx]=!0}),(0,h.A)(r.CATEGORIES,n=>{let i=t.concat(r);el(i,n)||e(i,n)})}([],e)}),n=i,(0,h.A)(n,e=>{e.categoryMatches=[],(0,h.A)(e.categoryMatchesMap,(t,r)=>{e.categoryMatches.push(tf[r].tokenTypeIdx)})}),(0,h.A)(i,e=>{e.isParent=e.categoryMatches.length>0})}function tg(e){return(0,g.A)(e,"tokenTypeIdx")}function ty(e){return(0,g.A)(e,"CATEGORIES")}function tT(e){return(0,g.A)(e,"tokenTypeIdx")}let tR={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,r,n,i,a)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`};(n=l||(l={}))[n.MISSING_PATTERN=0]="MISSING_PATTERN",n[n.INVALID_PATTERN=1]="INVALID_PATTERN",n[n.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",n[n.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",n[n.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",n[n.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",n[n.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",n[n.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",n[n.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",n[n.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",n[n.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",n[n.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",n[n.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",n[n.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",n[n.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",n[n.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",n[n.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",n[n.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";let tv={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:tR,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(tv);class tA{constructor(e,t=tv){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);let{time:n,value:i}=tc(t),a=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i}},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=w({},tv,t);const r=this.config.traceInitPerf;!0===r?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof r&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,n=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===tv.lineTerminatorsPattern)this.config.lineTerminatorsPattern=tt;else if(this.config.lineTerminatorCharacters===tv.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),(0,en.A)(e)?r={modes:{defaultMode:(0,y.A)(e)},defaultMode:e5}:(n=!1,r=(0,y.A)(e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{var e;let t;this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat((e=r,this.trackStartLines,this.config.lineTerminatorCharacters,t=[],(0,g.A)(e,e5)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+e5+"> property in its definition\n",type:l.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,g.A)(e,e9)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+e9+"> property in its definition\n",type:l.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,g.A)(e,e9)&&(0,g.A)(e,e5)&&!(0,g.A)(e.modes,e.defaultMode)&&t.push({message:`A MultiMode Lexer cannot be initialized with a ${e5}: <${e.defaultMode}>which does not exist
|
|
27
|
+
`,type:l.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,g.A)(e,e9)&&(0,h.A)(e.modes,(e,r)=>{(0,h.A)(e,(n,i)=>{if((0,eE.A)(n))t.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${r}> at index: <${i}>
|
|
28
|
+
`,type:l.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if((0,g.A)(n,"LONGER_ALT")){let i=(0,en.A)(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT];(0,h.A)(i,i=>{(0,eE.A)(i)||el(e,i)||t.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${n.name}> outside of mode <${r}>
|
|
29
|
+
`,type:l.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),t))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{var e,t,n;let i,a,s,o;this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat((e=r,t=this.trackStartLines,n=this.config.lineTerminatorCharacters,i=[],a=!1,s=eN(ez((0,eT.A)((0,p.A)(e.modes))),e=>e[e3]===tA.NA),o=tn(n),t&&(0,h.A)(s,e=>{let t=tr(e,o);if(!1!==t){let r={message:function(e,t){if(t.issue===l.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
30
|
+
The problem is in the <${e.name}> Token Type
|
|
31
|
+
Root cause: ${t.errMsg}.
|
|
32
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===l.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
33
|
+
The problem is in the <${e.name}> Token Type
|
|
34
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}(e,t),type:t.issue,tokenType:e};i.push(r)}else(0,g.A)(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(a=!0):e2(o,e.PATTERN)&&(a=!0)}),t&&!a&&i.push({message:"Warning: No LINE_BREAKS Found.\n This Lexer has been defined to track line and column information,\n But none of the Token Types can be identified as matching a line terminator.\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n for details.",type:l.NO_LINE_BREAKS_FLAGS}),i))})),r.modes=r.modes?r.modes:{},(0,h.A)(r.modes,(e,t)=>{r.modes[t]=eN(e,e=>(0,eE.A)(e))});let i=(0,N.A)(r.modes);if((0,h.A)(r.modes,(e,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{var t,r,n,a,s,o,u,c,d,p;let f,y,T,R,v,A,S,k,C,$,b,N,x,w,I,P,_;this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat((f=[],t=e,v=(0,e_.A)(t,e=>!(0,g.A)(e,e3)),y={errors:(0,m.A)(v,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:l.MISSING_PATTERN,tokenTypes:[e]})),valid:eG(t,v)},f=f.concat(y.errors),r=y.valid,A=(0,e_.A)(r,e=>{let t=e[e3];return!U(t)&&!(0,ex.A)(t)&&!(0,g.A)(t,"exec")&&!(0,E.A)(t)}),R=(T={errors:(0,m.A)(A,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:l.INVALID_PATTERN,tokenTypes:[e]})),valid:eG(r,A)}).valid,f=(f=(f=(f=(f=f.concat(T.errors)).concat((n=R,S=[],k=(0,e_.A)(n,e=>U(e[e3])),(S=(S=(S=(S=S.concat(function(e){class t extends eS.z{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}let r=(0,e_.A)(e,e=>{let r=e.PATTERN;try{let e=eX(r),n=new t;return n.visit(e),n.found}catch(e){return e4.test(r.source)}});return(0,m.A)(r,e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:l.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}(k))).concat(function(e){class t extends eS.z{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}let r=(0,e_.A)(e,e=>{let r=e.PATTERN;try{let e=eX(r),n=new t;return n.visit(e),n.found}catch(e){return e8.test(r.source)}});return(0,m.A)(r,e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:l.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}(k))).concat((a=k,C=(0,e_.A)(a,e=>{let t=e[e3];return t instanceof RegExp&&(t.multiline||t.global)}),(0,m.A)(C,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:l.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))))).concat((s=k,$=[],b=ez(b=(0,m.A)(s,e=>(0,eP.A)(s,(t,r)=>(e.PATTERN.source!==r.PATTERN.source||el($,r)||r.PATTERN===tA.NA||($.push(r),t.push(r)),t),[]))),N=(0,e_.A)(b,e=>e.length>1),(0,m.A)(N,e=>{let t=(0,m.A)(e,e=>e.name),r=eK(e).PATTERN;return{message:`The same RegExp pattern ->${r}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:l.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})))).concat((o=k,x=(0,e_.A)(o,e=>e.PATTERN.test("")),(0,m.A)(x,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:l.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))))))).concat((u=R,w=(0,e_.A)(u,e=>{if(!(0,g.A)(e,"GROUP"))return!1;let t=e.GROUP;return t!==tA.SKIPPED&&t!==tA.NA&&!(0,E.A)(t)}),(0,m.A)(w,e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:l.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))))).concat((c=R,d=i,I=(0,e_.A)(c,e=>void 0!==e.PUSH_MODE&&!el(d,e.PUSH_MODE)),(0,m.A)(I,e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:l.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))))).concat((p=R,P=[],_=(0,eP.A)(p,(e,t,r)=>{var n;let i=t.PATTERN;return i===tA.NA||((0,E.A)(i)?e.push({str:i,idx:r,tokenType:t}):U(i)&&(n=i,void 0===(0,eB.A)([".","\\","[","]","|","^","$","(",")","?","*","+","{"],e=>-1!==n.source.indexOf(e)))&&e.push({str:i.source,idx:r,tokenType:t})),e},[]),(0,h.A)(p,(e,t)=>{(0,h.A)(_,({str:r,idx:n,tokenType:i})=>{if(t<n&&function(e,t){if(U(t)){var r;if(r=t,/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(r.source))return!1;let n=t.exec(e);return null!==n&&0===n.index}if((0,ex.A)(t))return t(e,0,[],{});if((0,g.A)(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(r,e.PATTERN)){let t=`Token: ->${i.name}<- can never be matched.
|
|
35
|
+
Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.
|
|
36
|
+
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;P.push({message:t,type:l.UNREACHABLE_PATTERN,tokenTypes:[e,i]})}})}),P))))}),(0,f.A)(this.lexerDefinitionErrors)){let n;tm(e),this.TRACE_INIT("analyzeTokenTypes",()=>{var r;let i,a,s,o,l,u,c,d,y,T,R,v,A,S,k,C;r={lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT},(A=(r=(0,ek.A)(r,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:(e,t)=>t()})).tracer)("initCharCodeToOptimizedIndexMap",()=>{if((0,f.A)(ta)){ta=Array(65536);for(let e=0;e<65536;e++)ta[e]=e>255?255+~~(e/255):e}}),A("Reject Lexer.NA",()=>{i=eN(e,e=>e[e3]===tA.NA)}),S=!1,A("Transform Patterns",()=>{S=!1,a=(0,m.A)(i,e=>{let t=e[e3];if(U(t)){let e=t.source;return 1!==e.length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||el(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?e7(t):e[1]:e}if((0,ex.A)(t))return S=!0,{exec:t};if("object"==typeof t)return S=!0,t;if("string"==typeof t)if(1===t.length)return t;else return e7(new RegExp(t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")));throw Error("non exhaustive match")})}),A("misc mapping",()=>{s=(0,m.A)(i,e=>e.tokenTypeIdx),o=(0,m.A)(i,e=>{let t=e.GROUP;if(t!==tA.SKIPPED){if((0,E.A)(t))return t;if((0,eE.A)(t))return!1;throw Error("non exhaustive match")}}),l=(0,m.A)(i,e=>{let t=e.LONGER_ALT;if(t)return(0,en.A)(t)?(0,m.A)(t,e=>eI(i,e)):[eI(i,t)]}),u=(0,m.A)(i,e=>e.PUSH_MODE),c=(0,m.A)(i,e=>(0,g.A)(e,"POP_MODE"))}),A("Line Terminator Handling",()=>{let e=tn(r.lineTerminatorCharacters);d=(0,m.A)(i,e=>!1),"onlyOffset"!==r.positionTracking&&(d=(0,m.A)(i,t=>(0,g.A)(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===tr(t,e)&&e2(e,t.PATTERN)))}),A("Misc Mapping #2",()=>{y=(0,m.A)(i,e6),T=(0,m.A)(a,te),R=(0,eP.A)(i,(e,t)=>{let r=t.GROUP;return(0,E.A)(r)&&r!==tA.SKIPPED&&(e[r]=[]),e},{}),v=(0,m.A)(a,(e,t)=>({pattern:a[t],longerAlt:l[t],canLineTerminator:d[t],isCustom:y[t],short:T[t],group:o[t],push:u[t],pop:c[t],tokenTypeIdx:s[t],tokenType:i[t]}))}),k=!0,C=[],r.safeMode||A("First Char Optimization",()=>{C=(0,eP.A)(i,(e,t,n)=>{if("string"==typeof t.PATTERN)ti(e,ts(t.PATTERN.charCodeAt(0)),v[n]);else if((0,en.A)(t.START_CHARS_HINT)){let r;(0,h.A)(t.START_CHARS_HINT,t=>{let i=ts("string"==typeof t?t.charCodeAt(0):t);r!==i&&(r=i,ti(e,i,v[n]))})}else if(U(t.PATTERN))if(t.PATTERN.unicode)k=!1,r.ensureOptimizations&&eW(`${eJ} Unable to analyze < ${t.PATTERN.toString()} > pattern.
|
|
37
|
+
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
38
|
+
This will disable the lexer's first char optimizations.
|
|
39
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=function(e,t=!1){try{let t=eX(e);return function e(t,r,n){switch(t.type){case"Disjunction":for(let i=0;i<t.value.length;i++)e(t.value[i],r,n);break;case"Alternative":let i=t.value;for(let t=0;t<i.length;t++){let a=i[t];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}switch(a.type){case"Character":eZ(a.value,r,n);break;case"Set":if(!0===a.complement)throw Error(eQ);(0,h.A)(a.value,e=>{if("number"==typeof e)eZ(e,r,n);else if(!0===n)for(let t=e.from;t<=e.to;t++)eZ(t,r,n);else{for(let t=e.from;t<=e.to&&t<256;t++)eZ(t,r,n);if(e.to>=256){let t=e.from>=256?e.from:256,n=e.to,i=ts(t),a=ts(n);for(let e=i;e<=a;e++)r[e]=e}}});break;case"Group":e(a.value,r,n);break;default:throw Error("Non Exhaustive Match")}let s=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===function e(t){let r=t.quantifier;return!!r&&0===r.atLeast||!!t.value&&((0,en.A)(t.value)?ed(t.value,e):e(t.value))}(a)||"Group"!==a.type&&!1===s)break}break;default:throw Error("non exhaustive match!")}return(0,p.A)(r)}(t.value,{},t.flags.ignoreCase)}catch(r){if(r.message===eQ)t&&eV(`${eJ} Unable to optimize: < ${e.toString()} >
|
|
40
|
+
Complement Sets cannot be automatically optimized.
|
|
41
|
+
This will disable the lexer's first char optimizations.
|
|
42
|
+
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";t&&(r="\n This will disable the lexer's first char optimizations.\n See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),eW(`${eJ}
|
|
43
|
+
Failed parsing: < ${e.toString()} >
|
|
44
|
+
Using the @chevrotain/regexp-to-ast library
|
|
45
|
+
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}(t.PATTERN,r.ensureOptimizations);(0,f.A)(i)&&(k=!1),(0,h.A)(i,t=>{ti(e,t,v[n])})}else r.ensureOptimizations&&eW(`${eJ} TokenType: <${t.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
46
|
+
This will disable the lexer's first char optimizations.
|
|
47
|
+
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),k=!1;return e},[])}),n={emptyGroups:R,patternIdxToConfig:v,charCodeToPatternIdxToConfig:C,hasCustom:S,canBeOptimized:k}}),this.patternIdxToConfig[r]=n.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=n.charCodeToPatternIdxToConfig,this.emptyGroups=w({},this.emptyGroups,n.emptyGroups),this.hasCustom=n.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=n.canBeOptimized}})}),this.defaultMode=r.defaultMode,!(0,f.A)(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw Error("Errors detected in definition of Lexer:\n"+(0,m.A)(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n"));(0,h.A)(this.lexerDefinitionWarning,e=>{eV(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(n&&(this.handleModes=to.A),!1===this.trackStartLines&&(this.computeNewColumn=tl.A),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=to.A),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let e=(0,eP.A)(this.canModeBeOptimized,(e,t,r)=>(!1===t&&e.push(r),e),[]);if(t.ensureOptimizations&&!(0,f.A)(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
|
|
48
|
+
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
49
|
+
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{eH={}}),this.TRACE_INIT("toFastProperties",()=>{T(this)})})}tokenize(e,t=this.defaultMode){if(!(0,f.A)(this.lexerDefinitionErrors))throw Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+(0,m.A)(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n"));return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){var r;let n,i,a,s,o,l,u,c,d,p,f,m,g,y,T,R,v,A,E=e.length,S=0,k=0,C=Array(this.hasCustom?0:Math.floor(e.length/10)),$=[],b=this.trackStartLines?1:void 0,x=this.trackStartLines?1:void 0,w=(r=this.emptyGroups,v={},A=(0,N.A)(r),(0,h.A)(A,e=>{let t=r[e];if((0,en.A)(t))v[e]=[];else throw Error("non exhaustive match")}),v),I=this.trackStartLines,P=this.config.lineTerminatorsPattern,_=0,L=[],O=[],D=[],M=[];Object.freeze(M);let F=!1,q=e=>{if(1===D.length&&void 0===e.tokenType.PUSH_MODE){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);$.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{D.pop();let e=(0,tu.A)(D);L=this.patternIdxToConfig[e],O=this.charCodeToPatternIdxToConfig[e],_=L.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;F=!!O&&!!t}};function j(e){D.push(e),O=this.charCodeToPatternIdxToConfig[e],_=(L=this.patternIdxToConfig[e]).length,_=L.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;F=!!O&&!!t}j.call(this,t);let U=this.config.recoveryEnabled;for(;S<E;){let t;l=null,d=-1;let r=e.charCodeAt(S);if(F){let e=O[ts(r)];t=void 0!==e?e:M}else t=L;let h=t.length;for(n=0;n<h;n++){let i=(R=t[n]).pattern;u=null;let h=R.short;if(!1!==h?r===h&&(d=1,l=i):!0===R.isCustom?null!==(T=i.exec(e,S,C,w))?(d=(l=T[0]).length,void 0!==T.payload&&(u=T.payload)):l=null:(i.lastIndex=S,d=this.matchLength(i,e,S)),-1!==d){if(void 0!==(o=R.longerAlt)){l=e.substring(S,S+d);let t=o.length;for(a=0;a<t;a++){let t=L[o[a]],r=t.pattern;if(c=null,!0===t.isCustom?null!==(T=r.exec(e,S,C,w))?(s=T[0],void 0!==T.payload&&(c=T.payload)):s=null:(r.lastIndex=S,s=this.match(r,e,S)),s&&s.length>l.length){l=s,d=s.length,u=c,R=t;break}}}break}}if(-1!==d){if(void 0!==(p=R.group)&&(l=null!==l?l:e.substring(S,S+d),f=R.tokenTypeIdx,m=this.createTokenInstance(l,S,f,R.tokenType,b,x,d),this.handlePayload(m,u),!1===p?k=this.addToken(C,k,m):w[p].push(m)),!0===I&&!0===R.canLineTerminator){let t,r,n=0;P.lastIndex=0;do l=null!==l?l:e.substring(S,S+d),!0===(t=P.test(l))&&(r=P.lastIndex-1,n++);while(!0===t);0!==n?(b+=n,x=d-r,this.updateTokenEndLineColumnLocation(m,p,r,n,b,x,d)):x=this.computeNewColumn(x,d)}else x=this.computeNewColumn(x,d);S+=d,this.handleModes(R,q,j,m)}else{let t=S,r=b,n=x,a=!1===U;for(;!1===a&&S<E;)for(S++,i=0;i<_;i++){let t=L[i],r=t.pattern,n=t.short;if(!1!==n?e.charCodeAt(S)===n&&(a=!0):!0===t.isCustom?a=null!==r.exec(e,S,C,w):(r.lastIndex=S,a=null!==r.exec(e)),!0===a)break}if(g=S-t,x=this.computeNewColumn(x,g),y=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(e,t,g,r,n,(0,tu.A)(D)),$.push({offset:t,line:r,column:n,length:g,message:y}),!1===U)break}}return this.hasCustom||(C.length=k),{tokens:C,groups:w,errors:$}}handleModes(e,t,r,n){if(!0===e.pop){let i=e.push;t(n),void 0!==i&&r.call(this,i)}else void 0!==e.push&&r.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,r,n,i,a,s){let o,l;void 0!==t&&(l=(o=r===s-1)?-1:0,(1!==n||!0!==o)&&(e.endLine=i+l,e.endColumn=a-1+-l))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(e,t,r,n,i,a){return{image:e,startOffset:t,startLine:i,startColumn:a,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,i,a,s){return{image:e,startOffset:t,endOffset:t+s-1,startLine:i,endLine:i,startColumn:a,endColumn:a+s-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}match(e,t,r){return!0===e.test(t)?t.substring(r,e.lastIndex):null}matchLength(e,t,r){return!0===e.test(t)?e.lastIndex-r:-1}}function tE(e){return tS(e)?e.LABEL:e.name}function tS(e){return(0,E.A)(e.LABEL)&&""!==e.LABEL}tA.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",tA.NA=/NOT_APPLICABLE/;let tk="categories",tC="label",t$="group",tb="push_mode",tN="pop_mode",tx="longer_alt",tw="line_breaks",tI="start_chars_hint";function tP(e){let t=e.pattern,r={};if(r.name=e.name,(0,eE.A)(t)||(r.PATTERN=t),(0,g.A)(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,g.A)(e,tk)&&(r.CATEGORIES=e[tk]),tm([r]),(0,g.A)(e,tC)&&(r.LABEL=e[tC]),(0,g.A)(e,t$)&&(r.GROUP=e[t$]),(0,g.A)(e,tN)&&(r.POP_MODE=e[tN]),(0,g.A)(e,tb)&&(r.PUSH_MODE=e[tb]),(0,g.A)(e,tx)&&(r.LONGER_ALT=e[tx]),(0,g.A)(e,tw)&&(r.LINE_BREAKS=e[tw]),(0,g.A)(e,tI)&&(r.START_CHARS_HINT=e[tI]),r}let t_=tP({name:"EOF",pattern:tA.NA});function tL(e,t,r,n,i,a,s,o){return{image:t,startOffset:r,endOffset:n,startLine:i,endLine:a,startColumn:s,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function tO(e,t){return td(e,t)}tm([t_]);let tD={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:n}){let i=tS(e)?`--> ${tE(e)} <--`:`token of type --> ${e.name} <--`;return`Expecting ${i} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",s="\nbut found: '"+eK(t).image+"'";if(n)return a+n+s;{let t=(0,eP.A)(e,(e,t)=>e.concat(t),[]),r=(0,m.A)(t,e=>`[${(0,m.A)(e,e=>tE(e)).join(", ")}]`),n=(0,m.A)(r,(e,t)=>` ${t+1}. ${e}`);return a+`one of these possible Token sequences:
|
|
50
|
+
${n.join("\n")}`+s}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let i="Expecting: ",a="\nbut found: '"+eK(t).image+"'";if(r)return i+r+a;{let t=(0,m.A)(e,e=>`[${(0,m.A)(e,e=>tE(e)).join(",")}]`);return i+`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
51
|
+
<${t.join(" ,")}>`+a}}};Object.freeze(tD);let tM={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},tF={buildDuplicateFoundError(e,t){let r=e.name,n=eK(t),i=n.idx,a=ep(n),s=n instanceof J?n.terminalType.name:n instanceof z?n.nonTerminalName:"",o=`->${a}${i>0?i:""}<- ${s?`with argument: ->${s}<-`:""}
|
|
52
|
+
appears more than once (${t.length} times) in the top level rule: ->${r}<-.
|
|
53
|
+
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
54
|
+
`;return(o=o.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.
|
|
55
|
+
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
|
|
56
|
+
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
57
|
+
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
58
|
+
and Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){let t=(0,m.A)(e.prefixPath,e=>tE(e)).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
59
|
+
in <OR${r}> inside <${e.topLevelRule.name}> Rule,
|
|
60
|
+
<${t}> may appears as a prefix path in all these alternatives.
|
|
61
|
+
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
62
|
+
For Further details.`},buildAlternationAmbiguityError(e){let t=0===e.alternation.idx?"":e.alternation.idx,r=0===e.prefixPath.length,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,
|
|
63
|
+
`;if(r)n+=`These alternatives are all empty (match no tokens), making them indistinguishable.
|
|
64
|
+
Only the last alternative may be empty.
|
|
65
|
+
`;else{let t=(0,m.A)(e.prefixPath,e=>tE(e)).join(", ");n+=`<${t}> may appears as a prefix path in all these alternatives.
|
|
66
|
+
`}return n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
67
|
+
For Further details.`},buildEmptyRepetitionError(e){let t=ep(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
|
|
68
|
+
This could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
69
|
+
Only the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:
|
|
70
|
+
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
71
|
+
has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){let t=e.topLevelRule.name,r=(0,m.A)(e.leftRecursionPath,e=>e.name),n=`${t} --> ${r.concat([t]).join(" --\x3e ")}`;return`Left Recursion found in grammar.
|
|
72
|
+
rule: <${t}> can be invoked from itself (directly or indirectly)
|
|
73
|
+
without consuming any Tokens. The grammar path that causes this is:
|
|
74
|
+
${n}
|
|
75
|
+
To fix this refactor your grammar to remove the left recursion.
|
|
76
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof K?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};class tq extends Z{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){(0,h.A)((0,p.A)(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:d.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}var tj=r(60625),tU=r(90756);let tG=function(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var s=e[i];t(n,s,r(s),e)}return n},tz=function(e,t,r,n){return(0,et.A)(e,function(e,i,a){t(n,e,r(e),a)}),n};var tK=Object.prototype.hasOwnProperty,tB=(i=function(e,t,r){tK.call(e,r)?e[r].push(t):(0,tU.A)(e,r,[t])},function(e,t){return((0,en.A)(e)?tG:tz)(e,i,(0,P.A)(t,2),{})});let tW=function(e,t,r){var n=null==e?0:e.length;return n?R(e,0,(t=n-(t=r||void 0===t?1:(0,v.A)(t)))<0?0:t):[]};class tV extends ef{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,y.A)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,y.A)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){(0,f.A)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class tH extends tV{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new B({definition:t.concat(r)});this.possibleTokTypes=eR(e),this.found=!0}}}class tY extends ef{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class tX extends tY{walkMany(e,t,r){if(e.idx===this.occurrence){let e=eK(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof J&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,r)}}class tQ extends tY{walkManySep(e,t,r){if(e.idx===this.occurrence){let e=eK(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof J&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,r)}}class tJ extends tY{walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){let e=eK(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof J&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,r)}}class tZ extends tY{walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){let e=eK(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof J&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,r)}}function t0(e,t,r=[]){r=(0,y.A)(r);let n=[],i=0;function a(a){let s=t0(a.concat(A(e,i+1)),t,r);return n.concat(s)}for(;r.length<t&&i<e.length;){let t=e[i];if(t instanceof B)return a(t.definition);if(t instanceof z)return a(t.definition);if(t instanceof W)n=a(t.definition);else if(t instanceof V)return a(t.definition.concat([new Y({definition:t.definition})]));else if(t instanceof H)return a([new B({definition:t.definition}),new Y({definition:[new J({terminalType:t.separator})].concat(t.definition)})]);else if(t instanceof X)n=a(t.definition.concat([new Y({definition:[new J({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof Y)n=a(t.definition.concat([new Y({definition:t.definition})]));else if(t instanceof Q)return(0,h.A)(t.definition,e=>{!1===(0,f.A)(e.definition)&&(n=a(e.definition))}),n;else if(t instanceof J)r.push(t.terminalType);else throw Error("non exhaustive match");i++}return n.push({partialPath:r,suffixDef:A(e,i)}),n}function t1(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",o=!1,l=t.length,u=l-n-1,c=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!(0,f.A)(d);){let e=d.pop();if(e===s){o&&(0,tu.A)(d).idx<=u&&d.pop();continue}let n=e.def,h=e.idx,p=e.ruleStack,m=e.occurrenceStack;if((0,f.A)(n))continue;let g=n[0];if(g===i){let e={idx:h,def:A(n),ruleStack:tW(p),occurrenceStack:tW(m)};d.push(e)}else if(g instanceof J)if(h<l-1){let e=h+1;if(r(t[e],g.terminalType)){let t={idx:e,def:A(n),ruleStack:p,occurrenceStack:m};d.push(t)}}else if(h===l-1)c.push({nextTokenType:g.terminalType,nextTokenOccurrence:g.idx,ruleStack:p,occurrenceStack:m}),o=!0;else throw Error("non exhaustive match");else if(g instanceof z){let e=(0,y.A)(p);e.push(g.nonTerminalName);let t=(0,y.A)(m);t.push(g.idx);let r={idx:h,def:g.definition.concat(a,A(n)),ruleStack:e,occurrenceStack:t};d.push(r)}else if(g instanceof W){let e={idx:h,def:A(n),ruleStack:p,occurrenceStack:m};d.push(e),d.push(s);let t={idx:h,def:g.definition.concat(A(n)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(g instanceof V){let e=new Y({definition:g.definition,idx:g.idx}),t={idx:h,def:g.definition.concat([e],A(n)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(g instanceof H){let e=new Y({definition:[new J({terminalType:g.separator})].concat(g.definition),idx:g.idx}),t={idx:h,def:g.definition.concat([e],A(n)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(g instanceof X){let e={idx:h,def:A(n),ruleStack:p,occurrenceStack:m};d.push(e),d.push(s);let t=new Y({definition:[new J({terminalType:g.separator})].concat(g.definition),idx:g.idx}),r={idx:h,def:g.definition.concat([t],A(n)),ruleStack:p,occurrenceStack:m};d.push(r)}else if(g instanceof Y){let e={idx:h,def:A(n),ruleStack:p,occurrenceStack:m};d.push(e),d.push(s);let t=new Y({definition:g.definition,idx:g.idx}),r={idx:h,def:g.definition.concat([t],A(n)),ruleStack:p,occurrenceStack:m};d.push(r)}else if(g instanceof Q)for(let e=g.definition.length-1;e>=0;e--){let t={idx:h,def:g.definition[e].definition.concat(A(n)),ruleStack:p,occurrenceStack:m};d.push(t),d.push(s)}else if(g instanceof B)d.push({idx:h,def:g.definition.concat(A(n)),ruleStack:p,occurrenceStack:m});else if(g instanceof K)d.push(function(e,t,r,n){let i=(0,y.A)(r);i.push(e.name);let a=(0,y.A)(n);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}(g,h,p,m));else throw Error("non exhaustive match")}return c}function t2(e){if(e instanceof W||"Option"===e)return u.OPTION;if(e instanceof Y||"Repetition"===e)return u.REPETITION;if(e instanceof V||"RepetitionMandatory"===e)return u.REPETITION_MANDATORY;if(e instanceof H||"RepetitionMandatoryWithSeparator"===e)return u.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof X||"RepetitionWithSeparator"===e)return u.REPETITION_WITH_SEPARATOR;else if(e instanceof Q||"Alternation"===e)return u.ALTERNATION;else throw Error("non exhaustive match")}function t3(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:i}=e,a=t2(n);return a===u.ALTERNATION?rt(t,r,i):rr(t,r,a,i)}function t5(e,t,r,n){let i=e.length,a=ed(e,e=>ed(e,e=>1===e.length));if(t)return function(t){let n=(0,m.A)(t,e=>e.GATE);for(let t=0;t<i;t++){let i=e[t],a=i.length,s=n[t];if(void 0===s||!1!==s.call(this))r:for(let e=0;e<a;e++){let n=i[e],a=n.length;for(let e=0;e<a;e++)if(!1===r(this.LA(e+1),n[e]))continue r;return t}}};if(!a||n)return function(){for(let t=0;t<i;t++){let n=e[t],i=n.length;r:for(let e=0;e<i;e++){let i=n[e],a=i.length;for(let e=0;e<a;e++)if(!1===r(this.LA(e+1),i[e]))continue r;return t}}};{let t=(0,m.A)(e,e=>(0,eT.A)(e)),r=(0,eP.A)(t,(e,t,r)=>((0,h.A)(t,t=>{(0,g.A)(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),(0,h.A)(t.categoryMatches,t=>{(0,g.A)(e,t)||(e[t]=r)})}),e),{});return function(){return r[this.LA(1).tokenTypeIdx]}}}function t9(e,t,r){let n=ed(e,e=>1===e.length),i=e.length;if(!n||r)return function(){r:for(let r=0;r<i;r++){let n=e[r],i=n.length;for(let e=0;e<i;e++)if(!1===t(this.LA(e+1),n[e]))continue r;return!0}return!1};{let t=(0,eT.A)(e);if(1===t.length&&(0,f.A)(t[0].categoryMatches)){let e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{let e=(0,eP.A)(t,(e,t,r)=>(e[t.tokenTypeIdx]=!0,(0,h.A)(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){return!0===e[this.LA(1).tokenTypeIdx]}}}}(a=u||(u={}))[a.OPTION=0]="OPTION",a[a.REPETITION=1]="REPETITION",a[a.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",a[a.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",a[a.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",a[a.ALTERNATION=5]="ALTERNATION";class t4 extends ef{constructor(e,t,r){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=r.concat(n),!0)}walkOption(e,t,r){this.checkIsTarget(e,u.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,u.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,u.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,u.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,u.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}}class t8 extends Z{constructor(e,t,r){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=r,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(void 0===this.targetRef||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,u.OPTION)}visitRepetition(e){this.checkIsTarget(e,u.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,u.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,u.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,u.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,u.ALTERNATION)}}function t7(e){let t=Array(e);for(let r=0;r<e;r++)t[r]=[];return t}function t6(e){let t=[""];for(let r=0;r<e.length;r++){let n=e[r],i=[];for(let e=0;e<t.length;e++){let r=t[e];i.push(r+"_"+n.tokenTypeIdx);for(let e=0;e<n.categoryMatches.length;e++){let t="_"+n.categoryMatches[e];i.push(r+t)}}t=i}return t}function re(e,t){let r=(0,m.A)(e,e=>t0([e],1)),n=t7(r.length),i=(0,m.A)(r,e=>{let t={};return(0,h.A)(e,e=>{let r=t6(e.partialPath);(0,h.A)(r,e=>{t[e]=!0})}),t}),a=r;for(let e=1;e<=t;e++){let r=a;a=t7(r.length);for(let s=0;s<r.length;s++){let o=r[s];for(let r=0;r<o.length;r++){let l=o[r].partialPath,u=o[r].suffixDef,c=t6(l);if(function(e,t,r){for(let n=0;n<e.length;n++){if(n===r)continue;let i=e[n];for(let e=0;e<t.length;e++)if(!0===i[t[e]])return!1}return!0}(i,c,s)||(0,f.A)(u)||l.length===t){let e=n[s];if(!1===rn(e,l)){e.push(l);for(let e=0;e<c.length;e++){let t=c[e];i[s][t]=!0}}}else{let t=t0(u,e+1,l);a[s]=a[s].concat(t),(0,h.A)(t,e=>{let t=t6(e.partialPath);(0,h.A)(t,e=>{i[s][e]=!0})})}}}}return n}function rt(e,t,r,n){let i=new t8(e,u.ALTERNATION,n);return t.accept(i),re(i.result,r)}function rr(e,t,r,n){let i=new t8(e,r);t.accept(i);let a=i.result,s=new t4(t,e,r).startWalking();return re([new B({definition:a}),new B({definition:s})],n)}function rn(e,t){n:for(let r=0;r<e.length;r++){let n=e[r];if(n.length===t.length){for(let e=0;e<n.length;e++){let r=t[e],i=n[e];if(!1==(r===i||void 0!==i.categoryMatchesMap[r.tokenTypeIdx]))continue n}return!0}}return!1}function ri(e){return ed(e,e=>ed(e,e=>ed(e,e=>(0,f.A)(e.categoryMatches))))}function ra(e){return`${ep(e)}_#_${e.idx}_#_${rs(e)}`}function rs(e){return e instanceof J?e.terminalType.name:e instanceof z?e.nonTerminalName:""}class ro extends Z{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}}class rl extends Z{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}class ru extends Z{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}let rc="MismatchedTokenException",rd="NoViableAltException",rh="EarlyExitException",rp="NotAllInputParsedException",rf=[rc,rd,rh,rp];function rm(e){return el(rf,e.name)}Object.freeze(rf);class rg extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class ry extends rg{constructor(e,t,r){super(e,t),this.previousToken=r,this.name=rc}}class rT extends rg{constructor(e,t,r){super(e,t),this.previousToken=r,this.name=rd}}class rR extends rg{constructor(e,t){super(e,t),this.name=rp}}class rv extends rg{constructor(e,t,r){super(e,t),this.previousToken=r,this.name=rh}}let rA={},rE="InRuleRecoveryException";class rS extends Error{constructor(e){super(e),this.name=rE}}class rk{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,g.A)(e,"recoveryEnabled")?e.recoveryEnabled:rJ.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=rC)}getTokenToInsert(e){let t=tL(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){let i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],o=!1,l=this.LA(1),u=this.LA(1),c=()=>{let e=this.LA(0),t=new ry(this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=tW(s),this.SAVE_ERROR(t)};for(;!o;)if(this.tokenMatcher(u,n))return void c();else if(r.call(this)){c(),e.apply(this,t);return}else this.tokenMatcher(u,i)?o=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(!1===r||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new rS("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||(0,f.A)(t))return!1;let r=this.LA(1);return void 0!==(0,eB.A)(t,e=>this.tokenMatcher(r,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return el(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),r=2;for(;;){let n=(0,eB.A)(e,e=>td(t,e));if(void 0!==n)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return rA;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return(0,m.A)(e,(r,n)=>0===n?rA:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){let e=(0,m.A)(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e));return(0,eT.A)(e)}getFollowSetFromFollowKey(e){if(e===rA)return[t_];let t=e.ruleName+e.idxInCallingRule+ev+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,t_)||t.push(e),t}reSyncTo(e){let t=[],r=this.LA(1);for(;!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return tW(t)}attemptInRepetitionRecovery(e,t,r,n,i,a,s){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,y.A)(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return(0,m.A)(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}}function rC(e,t,r,n,i,a,s){let o=this.getKeyForAutomaticLookahead(n,i),l=this.firstAfterRepMap[o];if(void 0===l){let e=this.getCurrRuleFullName();l=new a(this.getGAstProductions()[e],i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,c=l.occurrence,d=l.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===u&&(u=t_,c=1),void 0!==u&&void 0!==c&&this.shouldInRepetitionRecoveryBeTried(u,c,s)&&this.tryInRepetitionRecovery(e,t,r,u)}class r${constructor(e){var t;this.maxLookahead=null!=(t=null==e?void 0:e.maxLookahead)?t:rJ.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);return(0,f.A)(t)?[...t,...this.validateEmptyOrAlternatives(e.rules),...this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),...this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead)]:t}validateNoLeftRecursion(e){return(0,tj.A)(e,e=>(function e(t,r,n,i=[]){let a=[],s=function e(t){let r=[];if((0,f.A)(t))return r;let n=eK(t);if(n instanceof z)r.push(n.referencedRule);else if(n instanceof B||n instanceof W||n instanceof V||n instanceof H||n instanceof X||n instanceof Y)r=r.concat(e(n.definition));else if(n instanceof Q)r=(0,eT.A)((0,m.A)(n.definition,t=>e(t.definition)));else if(n instanceof J);else throw Error("non exhaustive match");let i=eh(n),a=t.length>1;if(!i||!a)return r;{let n=A(t);return r.concat(e(n))}}(r.definition);if((0,f.A)(s))return[];{let r=t.name;el(s,t)&&a.push({message:n.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:i}),type:d.LEFT_RECURSION,ruleName:r});let o=eG(s,i.concat([t])),l=(0,tj.A)(o,r=>{let a=(0,y.A)(i);return a.push(r),e(t,r,n,a)});return a.concat(l)}})(e,e,tF))}validateEmptyOrAlternatives(e){return(0,tj.A)(e,e=>{let t,r;return t=new rl,e.accept(t),r=t.alternations,(0,tj.A)(r,t=>{let r=tW(t.definition);return(0,tj.A)(r,(r,n)=>{let i=t1([r],[],td,1);return(0,f.A)(i)?[{message:tF.buildEmptyAlternationError({topLevelRule:e,alternation:t,emptyChoiceIdx:n}),type:d.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:t.idx,alternative:n+1}]:[]})})})}validateAmbiguousAlternationAlternatives(e,t){return(0,tj.A)(e,e=>{let r,n;return r=new rl,e.accept(r),n=eN(n=r.alternations,e=>!0===e.ignoreAmbiguities),(0,tj.A)(n,r=>{var n,i,a,s,o,l,u,c;let p,f,g,y=rt(r.idx,e,r.maxLookahead||t,r),T=(n=y,i=r,a=e,s=tF,p=[],f=(0,eP.A)(n,(e,t,r)=>(!0===i.definition[r].ignoreAmbiguities||(0,h.A)(t,t=>{let a=[r];(0,h.A)(n,(e,n)=>{r!==n&&rn(e,t)&&!0!==i.definition[n].ignoreAmbiguities&&a.push(n)}),a.length>1&&!rn(p,t)&&(p.push(t),e.push({alts:a,path:t}))}),e),[]),(0,m.A)(f,e=>{let t=(0,m.A)(e.alts,e=>e+1);return{message:s.buildAlternationAmbiguityError({topLevelRule:a,alternation:i,ambiguityIndices:t,prefixPath:e.path}),type:d.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:i.idx,alternatives:e.alts}})),R=(o=y,l=r,u=e,c=tF,g=(0,eP.A)(o,(e,t,r)=>{let n=(0,m.A)(t,e=>({idx:r,path:e}));return e.concat(n)},[]),ez((0,tj.A)(g,e=>{if(!0===l.definition[e.idx].ignoreAmbiguities)return[];let t=e.idx,r=e.path,n=(0,e_.A)(g,e=>{var n;return!0!==l.definition[e.idx].ignoreAmbiguities&&e.idx<t&&(n=e.path,n.length<r.length&&ed(n,(e,t)=>{let n=r[t];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]}))});return(0,m.A)(n,e=>{let r=[e.idx+1,t+1],n=0===l.idx?"":l.idx;return{message:c.buildAlternationPrefixAmbiguityError({topLevelRule:u,alternation:l,ambiguityIndices:r,prefixPath:e.path}),type:d.AMBIGUOUS_PREFIX_ALTS,ruleName:u.name,occurrence:n,alternatives:r}})})));return T.concat(R)})})}validateSomeNonEmptyLookaheadPath(e,t){let r;return r=[],(0,h.A)(e,e=>{let n=new ru;e.accept(n);let i=n.allProductions;(0,h.A)(i,n=>{let i=t2(n),a=n.maxLookahead||t,s=rr(n.idx,e,i,a)[0];if((0,f.A)((0,eT.A)(s))){let t=tF.buildEmptyRepetitionError({topLevelRule:e,repetition:n});r.push({message:t,type:d.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}buildLookaheadForAlternation(e){var t,r,n,i,a;let s,o;return t=e.prodOccurrence,r=e.rule,n=e.maxLookahead,i=e.hasPredicates,a=e.dynamicTokensEnabled,o=ri(s=rt(t,r,n))?th:td,t5(s,i,o,a)}buildLookaheadForOptional(e){var t,r,n,i,a;let s,o;return t=e.prodOccurrence,r=e.rule,n=e.maxLookahead,i=e.dynamicTokensEnabled,a=t2(e.prodType),o=ri(s=rr(t,r,a,n))?th:td,t9(s[0],o,i)}}class rb{initLooksAhead(e){this.dynamicTokensEnabled=(0,g.A)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:rJ.dynamicTokensEnabled,this.maxLookahead=(0,g.A)(e,"maxLookahead")?e.maxLookahead:rJ.maxLookahead,this.lookaheadStrategy=(0,g.A)(e,"lookaheadStrategy")?e.lookaheadStrategy:new r$({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){(0,h.A)(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{var t;let r,{alternation:n,repetition:i,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=(t=e,rx.reset(),t.accept(rx),r=rx.dslMethods,rx.reset(),r);(0,h.A)(n,t=>{let r=0===t.idx?"":t.idx;this.TRACE_INIT(`${ep(t)}${r}`,()=>{var r;let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),i=(r=this.fullRuleNameToShort[e.name],256|t.idx|r);this.setLaFuncCache(i,n)})}),(0,h.A)(i,t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,ep(t))}),(0,h.A)(a,t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,ep(t))}),(0,h.A)(s,t=>{this.computeLookaheadFunc(e,t.idx,1024,"RepetitionMandatory",t.maxLookahead,ep(t))}),(0,h.A)(o,t=>{this.computeLookaheadFunc(e,t.idx,1536,"RepetitionMandatoryWithSeparator",t.maxLookahead,ep(t))}),(0,h.A)(l,t=>{this.computeLookaheadFunc(e,t.idx,1280,"RepetitionWithSeparator",t.maxLookahead,ep(t))})})})}computeLookaheadFunc(e,t,r,n,i,a){this.TRACE_INIT(`${a}${0===t?"":t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),s=t|r|this.fullRuleNameToShort[e.name];this.setLaFuncCache(s,a)})}getKeyForAutomaticLookahead(e,t){return t|e|this.getLastExplicitRuleShortName()}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}}class rN extends Z{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}}let rx=new rN;function rw(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function rI(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function rP(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function r_(e,t){let r=(0,N.A)(e),n=r.length;for(let i=0;i<n;i++){let n=e[r[i]],a=n.length;for(let e=0;e<a;e++){let r=n[e];void 0===r.tokenTypeIdx&&this[r.name](r.children,t)}}}(s=c||(c={}))[s.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",s[s.MISSING_METHOD=1]="MISSING_METHOD";class rL{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=(0,g.A)(e,"nodeLocationTracking")?e.nodeLocationTracking:rJ.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=rI,this.setNodeLocationFromNode=rI,this.cstPostRule=to.A,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=to.A,this.setNodeLocationFromNode=to.A,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=rw,this.setNodeLocationFromNode=rw,this.cstPostRule=to.A,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=to.A,this.setNodeLocationFromNode=to.A,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=to.A,this.setNodeLocationFromNode=to.A,this.cstPostRule=to.A,this.setInitialNodeLocation=to.A;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);else this.cstInvocationStateUpdate=to.A,this.cstFinallyStateUpdate=to.A,this.cstPostTerminal=to.A,this.cstPostNonTerminal=to.A,this.cstPostRule=to.A}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];void 0===r.children[e]?r.children[e]=[t]:r.children[e].push(t),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];void 0===r.children[t]?r.children[t]=[e]:r.children[t].push(e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if((0,eE.A)(this.baseCstVisitorConstructor)){var e,t;let r,n=(e=this.className,t=(0,N.A)(this.gastProductionsCache),rP(r=function(){},e+"BaseSemantics"),r.prototype={visit:function(e,t){if((0,en.A)(e)&&(e=e[0]),!(0,eE.A)(e))return this[e.name](e.children,t)},validateVisitor:function(){var e,r,n,i;let a,s=(e=this,r=t,n=e,i=r,a=(0,e_.A)(i,e=>!1===(0,ex.A)(n[e])),ez((0,m.A)(a,e=>({msg:`Missing visitor method: <${e}> on ${n.constructor.name} CST Visitor.`,type:c.MISSING_METHOD,methodName:e}))));if(!(0,f.A)(s)){let e=(0,m.A)(s,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
77
|
+
${e.join("\n\n").replace(/\n/g,"\n ")}`)}}},r.prototype.constructor=r,r._RULE_NAMES=t,r);return this.baseCstVisitorConstructor=n,n}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if((0,eE.A)(this.baseCstVisitorWithDefaultsConstructor)){var e,t,r;let n,i,a=(e=this.className,t=(0,N.A)(this.gastProductionsCache),r=this.getBaseCstVisitorConstructor(),rP(n=function(){},e+"BaseSemanticsWithDefaults"),i=Object.create(r.prototype),(0,h.A)(t,e=>{i[e]=r_}),n.prototype=i,n.prototype.constructor=n,n);return this.baseCstVisitorWithDefaultsConstructor=a,a}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}class rO{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):rQ}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?rQ:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class rD{ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=rZ){if(el(this.definedRulesNames,e)){let t={message:tF.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:d.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=rZ){var n,i;let a,s,o=(n=this.definedRulesNames,i=this.className,s=[],el(n,e)||(a=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${i}<-as it is not defined in any of the super grammars `,s.push({message:a,type:d.INVALID_RULE_OVERRIDE,ruleName:e})),s);this.definitionErrors=this.definitionErrors.concat(o);let l=this.defineRule(e,t,r);return this[e]=l,l}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let r=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(rm(e))return!1;throw e}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){var e;return e=(0,p.A)(this.gastProductionsCache),(0,m.A)(e,function e(t){function r(t){return(0,m.A)(t,e)}if(t instanceof z){let e={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return(0,E.A)(t.label)&&(e.label=t.label),e}if(t instanceof B)return{type:"Alternative",definition:r(t.definition)};if(t instanceof W)return{type:"Option",idx:t.idx,definition:r(t.definition)};if(t instanceof V)return{type:"RepetitionMandatory",idx:t.idx,definition:r(t.definition)};if(t instanceof H)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:e(new J({terminalType:t.separator})),definition:r(t.definition)};else if(t instanceof X)return{type:"RepetitionWithSeparator",idx:t.idx,separator:e(new J({terminalType:t.separator})),definition:r(t.definition)};else if(t instanceof Y)return{type:"Repetition",idx:t.idx,definition:r(t.definition)};else if(t instanceof Q)return{type:"Alternation",idx:t.idx,definition:r(t.definition)};else if(t instanceof J){var n,i;let e={type:"Terminal",name:t.terminalType.name,label:(i=n=t.terminalType,(0,E.A)(i.LABEL)&&""!==i.LABEL)?n.LABEL:n.name,idx:t.idx};(0,E.A)(t.label)&&(e.terminalLabel=t.label);let r=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(e.pattern=U(r)?r.source:r),e}else if(t instanceof K)return{type:"Rule",name:t.name,orgText:t.orgText,definition:r(t.definition)};else throw Error("non exhaustive match")})}}var rM=r(33761);class rF{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=th,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,g.A)(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n For Further details.");if((0,en.A)(e)){if((0,f.A)(e))throw Error("A Token Vocabulary cannot be empty.\n Note that the first argument for the parser constructor\n is no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.")}if((0,en.A)(e))this.tokensMap=(0,eP.A)(e,(e,t)=>(e[t.name]=t,e),{});else if((0,g.A)(e,"modes")&&ed((0,eT.A)((0,p.A)(e.modes)),tT)){let t=ey((0,eT.A)((0,p.A)(e.modes)));this.tokensMap=(0,eP.A)(t,(e,t)=>(e[t.name]=t,e),{})}else if((0,rM.A)(e))this.tokensMap=(0,y.A)(e);else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=t_;let r=ed((0,g.A)(e,"modes")?(0,eT.A)((0,p.A)(e.modes)):(0,p.A)(e),e=>(0,f.A)(e.categoryMatches));this.tokenMatcher=r?th:td,tm((0,p.A)(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
78
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=(0,g.A)(r,"resyncEnabled")?r.resyncEnabled:rZ.resyncEnabled,i=(0,g.A)(r,"recoveryValueFunc")?r.recoveryValueFunc:rZ.recoveryValueFunc,a=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a,Object.assign(!0===this.outputCst?function(...r){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,r);let n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}catch(e){return this.invokeRuleCatch(e,n,i)}finally{this.ruleFinallyStateUpdate()}}:function(...r){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,r)}catch(e){return this.invokeRuleCatch(e,n,i)}finally{this.ruleFinallyStateUpdate()}},{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){let n=1===this.RULE_STACK.length,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(rm(e)){if(i){let t=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(t)){if(e.resyncedTokens=this.reSyncTo(t),!this.outputCst)return r(e);{let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}}if(this.outputCst){let t=this.CST_STACK[this.CST_STACK.length-1];t.recoveredNode=!0,e.partialCstResult=t}throw e}if(n)return this.moveToTerminatedState(),r(e)}throw e}optionInternal(e,t){let r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof e){n=e.DEF;let t=e.GATE;if(void 0!==t){let e=i;i=()=>t.call(this)&&e.call(this)}}else n=e;if(!0===i.call(this))return n.call(this)}atLeastOneInternal(e,t){let r=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=()=>e.call(this)&&t.call(this)}}else n=t;if(!0===i.call(this)){let e=this.doSingleRepetition(n);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(n)}else throw this.raiseEarlyExitException(e,u.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,1024,e,tJ)}atLeastOneSepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);let t=()=>this.tokenMatcher(this.LA(1),i);for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,tZ],t,1536,e,tZ)}else throw this.raiseEarlyExitException(e,u.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=()=>e.call(this)&&t.call(this)}}else n=t;let a=!0;for(;!0===i.call(this)&&!0===a;)a=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,tX,a)}manySepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);let t=()=>this.tokenMatcher(this.LA(1),i);for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,tQ],t,1280,e,tQ)}}repetitionSepSecondInternal(e,t,r,n,i){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,i],r,1536,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let r=this.getKeyForAutomaticLookahead(256,t),n=(0,en.A)(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,n);if(void 0!==i)return n[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new rR(t,e))}}subruleInternal(e,t,r){let n;try{let i=void 0!==r?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,i),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){throw this.subruleInternalError(t,r,e.ruleName)}}subruleInternalError(e,t,r){throw rm(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{let t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),n=t):this.consumeInternalError(e,t,r)}catch(r){n=this.consumeInternalRecovery(e,t,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n,i=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ry(n,t,i))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&"MismatchedTokenException"===r.name&&!this.isBackTracking()){let n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){if(e.name===rE)throw r;throw e}}throw r}saveRecogState(){let e=this.errors,t=(0,y.A)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),t_)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}}class rq{initErrorHandler(e){this._errors=[],this.errorMessageProvider=(0,g.A)(e,"errorMessageProvider")?e.errorMessageProvider:rJ.errorMessageProvider}SAVE_ERROR(e){if(rm(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,y.A)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return(0,y.A)(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){let n=this.getCurrRuleFullName(),i=rr(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:a,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new rv(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let r=this.getCurrRuleFullName(),n=rt(e,this.getGAstProductions()[r],this.maxLookahead),i=[];for(let e=1;e<=this.maxLookahead;e++)i.push(this.LA(e));let a=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:i,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new rT(s,this.LA(1),a))}}class rj{initContentAssist(){}computeContentAssist(e,t){let r=this.gastProductionsCache[e];if((0,eE.A)(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return t1([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=eK(e.ruleStack);return new tH(this.getGAstProductions()[t],e).startWalking()}}let rU={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(rU);let rG=tP({name:"RECORDING_PHASE_TOKEN",pattern:tA.NA});tm([rG]);let rz=tL(rG,"This IToken indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(rz);let rK={name:"This CSTNode indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}};class rB{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(t,r){return this.consumeInternalRecord(t,e,r)},this[`SUBRULE${t}`]=function(t,r){return this.subruleInternalRecord(t,e,r)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";delete this[`CONSUME${t}`],delete this[`SUBRULE${t}`],delete this[`OPTION${t}`],delete this[`OR${t}`],delete this[`MANY${t}`],delete this[`MANY_SEP${t}`],delete this[`AT_LEAST_ONE${t}`],delete this[`AT_LEAST_ONE_SEP${t}`]}delete this.consume,delete this.subrule,delete this.option,delete this.or,delete this.many,delete this.atLeastOne,delete this.ACTION,delete this.BACKTRACK,delete this.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return rQ}topLevelRuleRecord(e,t){try{let r=new K({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n This error was thrown during the "grammar recording phase" For more info see:\n https://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(e){}throw e}}optionInternalRecord(e,t){return rW.call(this,W,e,t)}atLeastOneInternalRecord(e,t){rW.call(this,V,t,e)}atLeastOneSepFirstInternalRecord(e,t){rW.call(this,H,t,e,!0)}manyInternalRecord(e,t){rW.call(this,Y,t,e)}manySepFirstInternalRecord(e,t){rW.call(this,X,t,e,!0)}orInternalRecord(e,t){return rV.call(this,e,t)}subruleInternalRecord(e,t,r){if(rY(t),!e||!1===(0,g.A)(e,"ruleName")){let r=Error(`<SUBRULE${rH(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
|
|
79
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}let n=(0,tu.A)(this.recordingProdStack),i=new z({idx:t,nonTerminalName:e.ruleName,label:null==r?void 0:r.LABEL,referencedRule:void 0});return n.definition.push(i),this.outputCst?rK:rU}consumeInternalRecord(e,t,r){if(rY(t),!tg(e)){let r=Error(`<CONSUME${rH(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
|
|
80
|
+
inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}let n=(0,tu.A)(this.recordingProdStack),i=new J({idx:t,terminalType:e,label:null==r?void 0:r.LABEL});return n.definition.push(i),rz}}function rW(e,t,r,n=!1){rY(r);let i=(0,tu.A)(this.recordingProdStack),a=(0,ex.A)(t)?t:t.DEF,s=new e({definition:[],idx:r});return n&&(s.separator=t.SEP),(0,g.A)(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),rU}function rV(e,t){rY(t);let r=(0,tu.A)(this.recordingProdStack),n=!1===(0,en.A)(e),i=!1===n?e:e.DEF,a=new Q({definition:[],idx:t,ignoreAmbiguities:n&&!0===e.IGNORE_AMBIGUITIES});return(0,g.A)(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=ea(i,e=>(0,ex.A)(e.GATE)),r.definition.push(a),(0,h.A)(i,e=>{let t=new B({definition:[]});a.definition.push(t),(0,g.A)(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:(0,g.A)(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),rU}function rH(e){return 0===e?"":`${e}`}function rY(e){if(e<0||e>255){let t=Error(`Invalid DSL Method idx value: <${e}>
|
|
81
|
+
Idx value must be a none negative value smaller than ${256}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}class rX{initPerformanceTracer(e){if((0,g.A)(e,"traceInitPerf")){let t=e.traceInitPerf,r="number"==typeof t;this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=rJ.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);let{time:n,value:i}=tc(t),a=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,i}}}let rQ=tL(t_,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(rQ);let rJ=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:tD,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),rZ=Object.freeze({recoveryValueFunc:()=>void 0,resyncEnabled:!0});function r0(e){return function(){return e}}(o=d||(d={}))[o.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",o[o.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",o[o.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",o[o.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",o[o.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",o[o.LEFT_RECURSION=5]="LEFT_RECURSION",o[o.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",o[o.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",o[o.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",o[o.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",o[o.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",o[o.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",o[o.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",o[o.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION";class r1{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let t=this.className;this.TRACE_INIT("toFastProps",()=>{T(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),(0,h.A)(this.definedRulesNames,e=>{let t,r=this[e].originalGrammarAction;this.TRACE_INIT(`${e} Rule`,()=>{t=this.topLevelRuleRecord(e,r)}),this.gastProductionsCache[e]=t})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT("Grammar Resolving",()=>{var e;let t,n,i;e={rules:(0,p.A)(this.gastProductionsCache)},n=(0,ek.A)(e,{errMsgProvider:tM}),i={},(0,h.A)(e.rules,e=>{i[e.name]=e}),(t=new tq(i,n.errMsgProvider)).resolveRefs(),r=t.errors,this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT("Grammar Validations",()=>{if((0,f.A)(r)&&!1===this.skipValidations){var e,n,i,a,s,o,l,u,c;let r,f,g,y,T,R,v,A=(e={rules:(0,p.A)(this.gastProductionsCache),tokenTypes:(0,p.A)(this.tokensMap),errMsgProvider:tF,grammarName:t},n=(e=(0,ek.A)(e,{errMsgProvider:tF})).rules,i=e.tokenTypes,a=e.errMsgProvider,s=e.grammarName,g=(0,tj.A)(n,e=>{var t,r;let n,i;return t=e,r=a,n=new ro,t.accept(n),i=O(tB(n.allProductions,ra),e=>e.length>1),(0,m.A)((0,p.A)(i),e=>{let n=eK(e),i=r.buildDuplicateFoundError(t,e),a=ep(n),s={message:i,type:d.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:a,occurrence:n.idx},o=rs(n);return o&&(s.parameter=o),s})}),l=n,u=i,c=a,r=[],f=(0,m.A)(u,e=>e.name),(0,h.A)(l,e=>{let t=e.name;if(el(f,t)){let n=c.buildNamespaceConflictError(e);r.push({message:n,type:d.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),y=r,T=(0,tj.A)(n,e=>{var t,r;let n,i;return t=e,r=a,n=new rl,t.accept(n),i=n.alternations,(0,tj.A)(i,e=>e.definition.length>255?[{message:r.buildTooManyAlternativesError({topLevelRule:t,alternation:e}),type:d.TOO_MANY_ALTS,ruleName:t.name,occurrence:e.idx}]:[])}),R=(0,tj.A)(n,e=>(function(e,t,r,n){let i=[];if((0,eP.A)(t,(t,r)=>r.name===e.name?t+1:t,0)>1){let t=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:t,type:d.DUPLICATE_RULE_NAME,ruleName:e.name})}return i})(e,n,s,a)),g.concat(y,T,R)),E=(v=(o={lookaheadStrategy:this.lookaheadStrategy,rules:(0,p.A)(this.gastProductionsCache),tokenTypes:(0,p.A)(this.tokensMap),grammarName:t}).lookaheadStrategy.validate({rules:o.rules,tokenTypes:o.tokenTypes,grammarName:o.grammarName}),(0,m.A)(v,e=>Object.assign({type:d.CUSTOM_LOOKAHEAD_VALIDATION},e)));this.definitionErrors=this.definitionErrors.concat(A,E)}}),(0,f.A)(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var e;let t,r=(e=(0,p.A)(this.gastProductionsCache),t={},(0,h.A)(e,e=>{w(t,new eA(e).startWalking())}),t);this.resyncFollows=r}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null==(t=(e=this.lookaheadStrategy).initialize)||t.call(e,{rules:(0,p.A)(this.gastProductionsCache)}),this.preComputeLookaheadFunctions((0,p.A)(this.gastProductionsCache))})),!r1.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,f.A)(this.definitionErrors))throw e=(0,m.A)(this.definitionErrors,e=>e.message),Error(`Parser Definition Errors detected:
|
|
82
|
+
${e.join("\n-------------------------------\n")}`)})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),(0,g.A)(t,"ignoredIssues"))throw Error("The <ignoredIssues> IParserConfig property has been deprecated.\n Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n For further details.");this.skipValidations=(0,g.A)(t,"skipValidations")?t.skipValidations:rJ.skipValidations}}r1.DEFER_DEFINITION_ERRORS_HANDLING=!1,[rk,rb,rL,rO,rF,rD,rq,rj,rB,rX].forEach(e=>{let t=e.prototype;Object.getOwnPropertyNames(t).forEach(r=>{if("constructor"===r)return;let n=Object.getOwnPropertyDescriptor(t,r);n&&(n.get||n.set)?Object.defineProperty(r1.prototype,r,n):r1.prototype[r]=e.prototype[r]})});class r2 extends r1{constructor(e,t=rJ){const r=(0,y.A)(t);r.outputCst=!1,super(e,r)}}},80732:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});let n=r(27438);class i extends n.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return i.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return"ascii"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}}i.emptyBuffer=new Uint8Array(0);class a{constructor(e){this.socket=e,this._onData=new n.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,n.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),n.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),n.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),n.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}}class s{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),n.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),n.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),n.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,t){if("string"==typeof e){if(void 0!==t&&"utf-8"!==t)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}let o=new TextEncoder,l=Object.freeze({messageBuffer:Object.freeze({create:e=>new i(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if("utf-8"!==t.charset)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(o.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new a(e),asWritableStream:e=>new s(e)}),console:console,timer:Object.freeze({setTimeout(e,t,...r){let n=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(e,...t){let r=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(r)}},setInterval(e,t,...r){let n=setInterval(e,t,...r);return{dispose:()=>clearInterval(n)}}})});function u(){return l}(u||(u={})).install=function(){n.RAL.install(l)},t.default=u},83409:(e,t,r)=>{var n,i,a,s,o,l,u,c,d,h,p;Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;let f=r(35015);(n||(t.TokenFormat=n={})).Relative="relative",(u=i||(t.SemanticTokensRegistrationType=i={})).method="textDocument/semanticTokens",u.type=new f.RegistrationType(u.method),(c=a||(t.SemanticTokensRequest=a={})).method="textDocument/semanticTokens/full",c.messageDirection=f.MessageDirection.clientToServer,c.type=new f.ProtocolRequestType(c.method),c.registrationMethod=i.method,(d=s||(t.SemanticTokensDeltaRequest=s={})).method="textDocument/semanticTokens/full/delta",d.messageDirection=f.MessageDirection.clientToServer,d.type=new f.ProtocolRequestType(d.method),d.registrationMethod=i.method,(h=o||(t.SemanticTokensRangeRequest=o={})).method="textDocument/semanticTokens/range",h.messageDirection=f.MessageDirection.clientToServer,h.type=new f.ProtocolRequestType(h.method),h.registrationMethod=i.method,(p=l||(t.SemanticTokensRefreshRequest=l={})).method="workspace/semanticTokens/refresh",p.messageDirection=f.MessageDirection.serverToClient,p.type=new f.ProtocolRequestType0(p.method)},84617:(e,t,r)=>{r.d(t,{v:()=>u});var n=r(46598),i=r(8185),a=r(70740),s=r(64260),o=class extends n.mR{static{(0,n.K2)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},l={parser:{TokenBuilder:(0,n.K2)(()=>new o,"TokenBuilder"),ValueConverter:(0,n.K2)(()=>new n.Tm,"ValueConverter")}};function u(e=i.D){let t=(0,a.WQ)((0,s.u)(e),n.sr),r=(0,a.WQ)((0,s.t)({shared:t}),n.FZ,l);return t.ServiceRegistry.register(r),{shared:t,Info:r}}(0,n.K2)(u,"createInfoServices")},88361:(e,t,r)=>{r.d(t,{$g:()=>Z,Bg:()=>R,Ct:()=>G,Cz:()=>y,D8:()=>et,FO:()=>N,Fy:()=>en,GL:()=>j,IZ:()=>w,Mz:()=>ey,NT:()=>L,O4:()=>es,QX:()=>eA,RP:()=>$,S2:()=>D,SP:()=>P,TF:()=>B,Tu:()=>E,Xj:()=>eh,_c:()=>k,cM:()=>o,cY:()=>em,fG:()=>Q,jp:()=>p,lF:()=>ec,r1:()=>a,rE:()=>el,s7:()=>V,vd:()=>Y,ve:()=>d,wb:()=>F,wh:()=>m,z2:()=>ev});var n=r(77557);let i="AbstractElement";function a(e){return eE.isInstance(e,i)}let s="AbstractParserRule";function o(e){return eE.isInstance(e,s)}let l="AbstractRule",u="AbstractType",c="Action";function d(e){return eE.isInstance(e,c)}let h="Alternatives";function p(e){return eE.isInstance(e,h)}let f="Assignment";function m(e){return eE.isInstance(e,f)}let g="BooleanLiteral";function y(e){return eE.isInstance(e,g)}let T="CharacterRange";function R(e){return eE.isInstance(e,T)}let v="Condition",A="Conjunction";function E(e){return eE.isInstance(e,A)}let S="CrossReference";function k(e){return eE.isInstance(e,S)}let C="Disjunction";function $(e){return eE.isInstance(e,C)}let b="EndOfFile";function N(e){return eE.isInstance(e,b)}let x="Group";function w(e){return eE.isInstance(e,x)}let I="InferredType";function P(e){return eE.isInstance(e,I)}let _="InfixRule";function L(e){return eE.isInstance(e,_)}let O="Interface";function D(e){return eE.isInstance(e,O)}let M="Keyword";function F(e){return eE.isInstance(e,M)}let q="NegatedToken";function j(e){return eE.isInstance(e,q)}let U="Negation";function G(e){return eE.isInstance(e,U)}let z="Parameter",K="ParameterReference";function B(e){return eE.isInstance(e,K)}let W="ParserRule";function V(e){return eE.isInstance(e,W)}let H="RegexToken";function Y(e){return eE.isInstance(e,H)}let X="ReturnType";function Q(e){return eE.isInstance(e,X)}let J="RuleCall";function Z(e){return eE.isInstance(e,J)}let ee="SimpleType";function et(e){return eE.isInstance(e,ee)}let er="TerminalAlternatives";function en(e){return eE.isInstance(e,er)}let ei="TerminalElement",ea="TerminalGroup";function es(e){return eE.isInstance(e,ea)}let eo="TerminalRule";function el(e){return eE.isInstance(e,eo)}let eu="TerminalRuleCall";function ec(e){return eE.isInstance(e,eu)}let ed="Type";function eh(e){return eE.isInstance(e,ed)}let ep="TypeDefinition",ef="UnorderedGroup";function em(e){return eE.isInstance(e,ef)}let eg="UntilToken";function ey(e){return eE.isInstance(e,eg)}let eT="ValueLiteral",eR="Wildcard";function ev(e){return eE.isInstance(e,eR)}class eA extends n.kD{constructor(){super(...arguments),this.types={AbstractElement:{name:i,properties:{cardinality:{name:"cardinality"}},superTypes:[]},AbstractParserRule:{name:s,properties:{},superTypes:[l,u]},AbstractRule:{name:l,properties:{},superTypes:[]},AbstractType:{name:u,properties:{},superTypes:[]},Action:{name:c,properties:{cardinality:{name:"cardinality"},feature:{name:"feature"},inferredType:{name:"inferredType"},operator:{name:"operator"},type:{name:"type",referenceType:u}},superTypes:[i]},Alternatives:{name:h,properties:{cardinality:{name:"cardinality"},elements:{name:"elements",defaultValue:[]}},superTypes:[i]},ArrayLiteral:{name:"ArrayLiteral",properties:{elements:{name:"elements",defaultValue:[]}},superTypes:[eT]},ArrayType:{name:"ArrayType",properties:{elementType:{name:"elementType"}},superTypes:[ep]},Assignment:{name:f,properties:{cardinality:{name:"cardinality"},feature:{name:"feature"},operator:{name:"operator"},predicate:{name:"predicate"},terminal:{name:"terminal"}},superTypes:[i]},BooleanLiteral:{name:g,properties:{true:{name:"true",defaultValue:!1}},superTypes:[v,eT]},CharacterRange:{name:T,properties:{cardinality:{name:"cardinality"},left:{name:"left"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1},right:{name:"right"}},superTypes:[ei]},Condition:{name:v,properties:{},superTypes:[]},Conjunction:{name:A,properties:{left:{name:"left"},right:{name:"right"}},superTypes:[v]},CrossReference:{name:S,properties:{cardinality:{name:"cardinality"},deprecatedSyntax:{name:"deprecatedSyntax",defaultValue:!1},isMulti:{name:"isMulti",defaultValue:!1},terminal:{name:"terminal"},type:{name:"type",referenceType:u}},superTypes:[i]},Disjunction:{name:C,properties:{left:{name:"left"},right:{name:"right"}},superTypes:[v]},EndOfFile:{name:b,properties:{cardinality:{name:"cardinality"}},superTypes:[i]},Grammar:{name:"Grammar",properties:{imports:{name:"imports",defaultValue:[]},interfaces:{name:"interfaces",defaultValue:[]},isDeclared:{name:"isDeclared",defaultValue:!1},name:{name:"name"},rules:{name:"rules",defaultValue:[]},types:{name:"types",defaultValue:[]}},superTypes:[]},GrammarImport:{name:"GrammarImport",properties:{path:{name:"path"}},superTypes:[]},Group:{name:x,properties:{cardinality:{name:"cardinality"},elements:{name:"elements",defaultValue:[]},guardCondition:{name:"guardCondition"},predicate:{name:"predicate"}},superTypes:[i]},InferredType:{name:I,properties:{name:{name:"name"}},superTypes:[u]},InfixRule:{name:_,properties:{call:{name:"call"},dataType:{name:"dataType"},inferredType:{name:"inferredType"},name:{name:"name"},operators:{name:"operators"},parameters:{name:"parameters",defaultValue:[]},returnType:{name:"returnType",referenceType:u}},superTypes:[s]},InfixRuleOperatorList:{name:"InfixRuleOperatorList",properties:{associativity:{name:"associativity"},operators:{name:"operators",defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:"InfixRuleOperators",properties:{precedences:{name:"precedences",defaultValue:[]}},superTypes:[]},Interface:{name:O,properties:{attributes:{name:"attributes",defaultValue:[]},name:{name:"name"},superTypes:{name:"superTypes",defaultValue:[],referenceType:u}},superTypes:[u]},Keyword:{name:M,properties:{cardinality:{name:"cardinality"},predicate:{name:"predicate"},value:{name:"value"}},superTypes:[i]},NamedArgument:{name:"NamedArgument",properties:{calledByName:{name:"calledByName",defaultValue:!1},parameter:{name:"parameter",referenceType:z},value:{name:"value"}},superTypes:[]},NegatedToken:{name:q,properties:{cardinality:{name:"cardinality"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1},terminal:{name:"terminal"}},superTypes:[ei]},Negation:{name:U,properties:{value:{name:"value"}},superTypes:[v]},NumberLiteral:{name:"NumberLiteral",properties:{value:{name:"value"}},superTypes:[eT]},Parameter:{name:z,properties:{name:{name:"name"}},superTypes:[]},ParameterReference:{name:K,properties:{parameter:{name:"parameter",referenceType:z}},superTypes:[v]},ParserRule:{name:W,properties:{dataType:{name:"dataType"},definition:{name:"definition"},entry:{name:"entry",defaultValue:!1},fragment:{name:"fragment",defaultValue:!1},inferredType:{name:"inferredType"},name:{name:"name"},parameters:{name:"parameters",defaultValue:[]},returnType:{name:"returnType",referenceType:u}},superTypes:[s]},ReferenceType:{name:"ReferenceType",properties:{isMulti:{name:"isMulti",defaultValue:!1},referenceType:{name:"referenceType"}},superTypes:[ep]},RegexToken:{name:H,properties:{cardinality:{name:"cardinality"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1},regex:{name:"regex"}},superTypes:[ei]},ReturnType:{name:X,properties:{name:{name:"name"}},superTypes:[]},RuleCall:{name:J,properties:{arguments:{name:"arguments",defaultValue:[]},cardinality:{name:"cardinality"},predicate:{name:"predicate"},rule:{name:"rule",referenceType:l}},superTypes:[i]},SimpleType:{name:ee,properties:{primitiveType:{name:"primitiveType"},stringType:{name:"stringType"},typeRef:{name:"typeRef",referenceType:u}},superTypes:[ep]},StringLiteral:{name:"StringLiteral",properties:{value:{name:"value"}},superTypes:[eT]},TerminalAlternatives:{name:er,properties:{cardinality:{name:"cardinality"},elements:{name:"elements",defaultValue:[]},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1}},superTypes:[ei]},TerminalElement:{name:ei,properties:{cardinality:{name:"cardinality"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1}},superTypes:[i]},TerminalGroup:{name:ea,properties:{cardinality:{name:"cardinality"},elements:{name:"elements",defaultValue:[]},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1}},superTypes:[ei]},TerminalRule:{name:eo,properties:{definition:{name:"definition"},fragment:{name:"fragment",defaultValue:!1},hidden:{name:"hidden",defaultValue:!1},name:{name:"name"},type:{name:"type"}},superTypes:[l]},TerminalRuleCall:{name:eu,properties:{cardinality:{name:"cardinality"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1},rule:{name:"rule",referenceType:eo}},superTypes:[ei]},Type:{name:ed,properties:{name:{name:"name"},type:{name:"type"}},superTypes:[u]},TypeAttribute:{name:"TypeAttribute",properties:{defaultValue:{name:"defaultValue"},isOptional:{name:"isOptional",defaultValue:!1},name:{name:"name"},type:{name:"type"}},superTypes:[]},TypeDefinition:{name:ep,properties:{},superTypes:[]},UnionType:{name:"UnionType",properties:{types:{name:"types",defaultValue:[]}},superTypes:[ep]},UnorderedGroup:{name:ef,properties:{cardinality:{name:"cardinality"},elements:{name:"elements",defaultValue:[]}},superTypes:[i]},UntilToken:{name:eg,properties:{cardinality:{name:"cardinality"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1},terminal:{name:"terminal"}},superTypes:[ei]},ValueLiteral:{name:eT,properties:{},superTypes:[]},Wildcard:{name:eR,properties:{cardinality:{name:"cardinality"},lookahead:{name:"lookahead"},parenthesized:{name:"parenthesized",defaultValue:!1}},superTypes:[ei]}}}}let eE=new eA},88863:(e,t,r)=>{r.d(t,{qg:()=>s}),r(48133),r(84617),r(65575),r(34361),r(70069),r(50967),r(78744);var n=r(46598),i={},a={info:(0,n.K2)(async()=>{let{createInfoServices:e}=await r.e(1409).then(r.bind(r,61409));i.info=e().Info.parser.LangiumParser},"info"),packet:(0,n.K2)(async()=>{let{createPacketServices:e}=await r.e(7084).then(r.bind(r,57084));i.packet=e().Packet.parser.LangiumParser},"packet"),pie:(0,n.K2)(async()=>{let{createPieServices:e}=await r.e(9373).then(r.bind(r,9373));i.pie=e().Pie.parser.LangiumParser},"pie"),architecture:(0,n.K2)(async()=>{let{createArchitectureServices:e}=await r.e(3682).then(r.bind(r,83682));i.architecture=e().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,n.K2)(async()=>{let{createGitGraphServices:e}=await r.e(5325).then(r.bind(r,85325));i.gitGraph=e().GitGraph.parser.LangiumParser},"gitGraph"),radar:(0,n.K2)(async()=>{let{createRadarServices:e}=await r.e(6460).then(r.bind(r,66460));i.radar=e().Radar.parser.LangiumParser},"radar"),treemap:(0,n.K2)(async()=>{let{createTreemapServices:e}=await r.e(4699).then(r.bind(r,34699));i.treemap=e().Treemap.parser.LangiumParser},"treemap")};async function s(e,t){let r=a[e];if(!r)throw Error(`Unknown diagram type: ${e}`);i[e]||await r();let n=i[e].parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new o(n);return n.value}(0,n.K2)(s,"parse");var o=class extends Error{constructor(e){const t=e.lexerErrors.map(e=>{let t=void 0===e.line||isNaN(e.line)?"?":e.line,r=void 0===e.column||isNaN(e.column)?"?":e.column;return`Lexer error on line ${t}, column ${r}: ${e.message}`}).join("\n"),r=e.parserErrors.map(e=>{let t=void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine,r=void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn;return`Parse error on line ${t}, column ${r}: ${e.message}`}).join("\n");super(`Parsing failed: ${t} ${r}`),this.result=e}static{(0,n.K2)(this,"MermaidParseError")}}},90219:(e,t,r)=>{var n,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;let o=r(35015);(a=n||(t.InlineValueRequest=n={})).method="textDocument/inlineValue",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=i||(t.InlineValueRefreshRequest=i={})).method="workspace/inlineValue/refresh",s.messageDirection=o.MessageDirection.serverToClient,s.type=new o.ProtocolRequestType0(s.method)},91847:(e,t,r)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;let a=r(18489);(i=n||(n={})).Continue=0,i.Cancelled=1;class s{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;let t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=n.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let r=this.buffers.get(t);if(void 0===r)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,n.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}t.SharedArraySenderStrategy=s;class o{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===n.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class l{constructor(e){this.token=new o(e)}cancel(){}dispose(){}}class u{constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return void 0===t?new a.CancellationTokenSource:new l(t)}}t.SharedArrayReceiverStrategy=u},91904:(e,t,r)=>{r.d(t,{WB:()=>n,dr:()=>i});class n extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function i(e,t="Error: Got unexpected value."){throw Error(t)}},93207:(e,t,r)=>{r.d(t,{El:()=>h,NS:()=>o,SX:()=>c,pO:()=>l,r4:()=>d,v:()=>p,wf:()=>u});var n,i,a=r(77557),s=r(73303);function o(e){return new s.Vj(e,e=>(0,a.mD)(e)?e.content:[],{includeRoot:!0})}function l(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}function u(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function c(e){if(!e)return;let{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}function d(e,t){return function(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return i.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return i.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&n?i.Inside:r?i.OverlapBack:n?i.OverlapFront:i.Outside}(e,t)>i.After}(n=i||(i={}))[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside",n[n.Outside=5]="Outside";let h=/^[\w\p{L}]$/u;function p(e,t){if(e){let r=function(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e);for(;n>0;){n--;let e=r.content[n];if(t||!e.hidden)return e}e=r}}(e,!0);if(r&&f(r,t))return r;if((0,a.br)(e)){let r=e.content.findIndex(e=>!e.hidden);for(let n=r-1;n>=0;n--){let r=e.content[n];if(f(r,t))return r}}}}function f(e,t){return(0,a.FC)(e)&&t.includes(e.tokenType.name)}},95352:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(26652),i=r(29568),a=r(41418),s=r(61107),o=Object.prototype,l=o.hasOwnProperty;let u=(0,n.A)(function(e,t){e=Object(e);var r=-1,n=t.length,u=n>2?t[2]:void 0;for(u&&(0,a.A)(t[0],t[1],u)&&(n=1);++r<n;)for(var c=t[r],d=(0,s.A)(c),h=-1,p=d.length;++h<p;){var f=d[h],m=e[f];(void 0===m||(0,i.A)(m,o[f])&&!l.call(e,f))&&(e[f]=c[f])}return e})},96578:(e,t,r)=>{r.d(t,{A:()=>n});let n=function(e,t){return e<t}},96743:(e,t,r)=>{var n,i,a,s,o,l,u,c,d,h,p,f,m,g,y,T,R,v,A,E,S,k,C,$,b,N,x,w,I,P,_,L,O,D,M,F,q,j,U,G,z,K,B,W,V,H,Y,X,Q,J,Z,ee,et,er,en,ei,ea,es,eo,el,eu,ec,ed,eh,ep,ef,em,eg,ey,eT,eR,ev,eA,eE,eS,ek,eC,e$,eb,eN,ex,ew,eI,eP,e_,eL,eO,eD,eM,eF,eq,ej,eU,eG,ez,eK,eB,eW,eV,eH,eY,eX,eQ,eJ,eZ,e0,e1,e2,e3,e5,e9,e4,e8,e7,e6,te,tt,tr,tn,ti,ta;Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=void 0;let ts=r(35015),to=r(41891),tl=r(69589),tu=r(55849);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return tu.ImplementationRequest}});let tc=r(50354);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return tc.TypeDefinitionRequest}});let td=r(33500);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return td.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return td.DidChangeWorkspaceFoldersNotification}});let th=r(51855);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return th.ConfigurationRequest}});let tp=r(26427);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return tp.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return tp.ColorPresentationRequest}});let tf=r(96757);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return tf.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return tf.FoldingRangeRefreshRequest}});let tm=r(39701);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return tm.DeclarationRequest}});let tg=r(24448);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return tg.SelectionRangeRequest}});let ty=r(51324);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return ty.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return ty.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return ty.WorkDoneProgressCancelNotification}});let tT=r(33478);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return tT.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return tT.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return tT.CallHierarchyPrepareRequest}});let tR=r(83409);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return tR.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return tR.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return tR.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return tR.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return tR.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return tR.SemanticTokensRegistrationType}});let tv=r(57291);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return tv.ShowDocumentRequest}});let tA=r(26855);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tA.LinkedEditingRangeRequest}});let tE=r(33847);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return tE.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return tE.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return tE.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return tE.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return tE.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return tE.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return tE.WillDeleteFilesRequest}});let tS=r(28528);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return tS.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return tS.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return tS.MonikerRequest}});let tk=r(63298);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return tk.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return tk.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return tk.TypeHierarchySupertypesRequest}});let tC=r(90219);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return tC.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return tC.InlineValueRefreshRequest}});let t$=r(18923);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return t$.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return t$.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return t$.InlayHintRefreshRequest}});let tb=r(33156);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return tb.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return tb.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return tb.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return tb.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return tb.DiagnosticRefreshRequest}});let tN=r(25250);Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return tN.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return tN.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return tN.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return tN.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return tN.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return tN.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return tN.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return tN.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return tN.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return tN.DidCloseNotebookDocumentNotification}});let tx=r(75704);Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return tx.InlineCompletionRequest}}),(n||(t.TextDocumentFilter=n={})).is=function(e){return tl.string(e)||tl.string(e.language)||tl.string(e.scheme)||tl.string(e.pattern)},(i||(t.NotebookDocumentFilter=i={})).is=function(e){return tl.objectLiteral(e)&&(tl.string(e.notebookType)||tl.string(e.scheme)||tl.string(e.pattern))},(a||(t.NotebookCellTextDocumentFilter=a={})).is=function(e){return tl.objectLiteral(e)&&(tl.string(e.notebook)||i.is(e.notebook))&&(void 0===e.language||tl.string(e.language))},(s||(t.DocumentSelector=s={})).is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!tl.string(t)&&!n.is(t)&&!a.is(t))return!1;return!0},(ef=o||(t.RegistrationRequest=o={})).method="client/registerCapability",ef.messageDirection=ts.MessageDirection.serverToClient,ef.type=new ts.ProtocolRequestType(ef.method),(em=l||(t.UnregistrationRequest=l={})).method="client/unregisterCapability",em.messageDirection=ts.MessageDirection.serverToClient,em.type=new ts.ProtocolRequestType(em.method),(eg=u||(t.ResourceOperationKind=u={})).Create="create",eg.Rename="rename",eg.Delete="delete",(ey=c||(t.FailureHandlingKind=c={})).Abort="abort",ey.Transactional="transactional",ey.TextOnlyTransactional="textOnlyTransactional",ey.Undo="undo",(eT=d||(t.PositionEncodingKind=d={})).UTF8="utf-8",eT.UTF16="utf-16",eT.UTF32="utf-32",(h||(t.StaticRegistrationOptions=h={})).hasId=function(e){return e&&tl.string(e.id)&&e.id.length>0},(p||(t.TextDocumentRegistrationOptions=p={})).is=function(e){return e&&(null===e.documentSelector||s.is(e.documentSelector))},(eR=f||(t.WorkDoneProgressOptions=f={})).is=function(e){return tl.objectLiteral(e)&&(void 0===e.workDoneProgress||tl.boolean(e.workDoneProgress))},eR.hasWorkDoneProgress=function(e){return e&&tl.boolean(e.workDoneProgress)},(ev=m||(t.InitializeRequest=m={})).method="initialize",ev.messageDirection=ts.MessageDirection.clientToServer,ev.type=new ts.ProtocolRequestType(ev.method),(g||(t.InitializeErrorCodes=g={})).unknownProtocolVersion=1,(eA=y||(t.InitializedNotification=y={})).method="initialized",eA.messageDirection=ts.MessageDirection.clientToServer,eA.type=new ts.ProtocolNotificationType(eA.method),(eE=T||(t.ShutdownRequest=T={})).method="shutdown",eE.messageDirection=ts.MessageDirection.clientToServer,eE.type=new ts.ProtocolRequestType0(eE.method),(eS=R||(t.ExitNotification=R={})).method="exit",eS.messageDirection=ts.MessageDirection.clientToServer,eS.type=new ts.ProtocolNotificationType0(eS.method),(ek=v||(t.DidChangeConfigurationNotification=v={})).method="workspace/didChangeConfiguration",ek.messageDirection=ts.MessageDirection.clientToServer,ek.type=new ts.ProtocolNotificationType(ek.method),(eC=A||(t.MessageType=A={})).Error=1,eC.Warning=2,eC.Info=3,eC.Log=4,eC.Debug=5,(e$=E||(t.ShowMessageNotification=E={})).method="window/showMessage",e$.messageDirection=ts.MessageDirection.serverToClient,e$.type=new ts.ProtocolNotificationType(e$.method),(eb=S||(t.ShowMessageRequest=S={})).method="window/showMessageRequest",eb.messageDirection=ts.MessageDirection.serverToClient,eb.type=new ts.ProtocolRequestType(eb.method),(eN=k||(t.LogMessageNotification=k={})).method="window/logMessage",eN.messageDirection=ts.MessageDirection.serverToClient,eN.type=new ts.ProtocolNotificationType(eN.method),(ex=C||(t.TelemetryEventNotification=C={})).method="telemetry/event",ex.messageDirection=ts.MessageDirection.serverToClient,ex.type=new ts.ProtocolNotificationType(ex.method),(ew=$||(t.TextDocumentSyncKind=$={})).None=0,ew.Full=1,ew.Incremental=2,(eI=b||(t.DidOpenTextDocumentNotification=b={})).method="textDocument/didOpen",eI.messageDirection=ts.MessageDirection.clientToServer,eI.type=new ts.ProtocolNotificationType(eI.method),(eP=N||(t.TextDocumentContentChangeEvent=N={})).isIncremental=function(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)},eP.isFull=function(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength},(e_=x||(t.DidChangeTextDocumentNotification=x={})).method="textDocument/didChange",e_.messageDirection=ts.MessageDirection.clientToServer,e_.type=new ts.ProtocolNotificationType(e_.method),(eL=w||(t.DidCloseTextDocumentNotification=w={})).method="textDocument/didClose",eL.messageDirection=ts.MessageDirection.clientToServer,eL.type=new ts.ProtocolNotificationType(eL.method),(eO=I||(t.DidSaveTextDocumentNotification=I={})).method="textDocument/didSave",eO.messageDirection=ts.MessageDirection.clientToServer,eO.type=new ts.ProtocolNotificationType(eO.method),(eD=P||(t.TextDocumentSaveReason=P={})).Manual=1,eD.AfterDelay=2,eD.FocusOut=3,(eM=_||(t.WillSaveTextDocumentNotification=_={})).method="textDocument/willSave",eM.messageDirection=ts.MessageDirection.clientToServer,eM.type=new ts.ProtocolNotificationType(eM.method),(eF=L||(t.WillSaveTextDocumentWaitUntilRequest=L={})).method="textDocument/willSaveWaitUntil",eF.messageDirection=ts.MessageDirection.clientToServer,eF.type=new ts.ProtocolRequestType(eF.method),(eq=O||(t.DidChangeWatchedFilesNotification=O={})).method="workspace/didChangeWatchedFiles",eq.messageDirection=ts.MessageDirection.clientToServer,eq.type=new ts.ProtocolNotificationType(eq.method),(ej=D||(t.FileChangeType=D={})).Created=1,ej.Changed=2,ej.Deleted=3,(M||(t.RelativePattern=M={})).is=function(e){return tl.objectLiteral(e)&&(to.URI.is(e.baseUri)||to.WorkspaceFolder.is(e.baseUri))&&tl.string(e.pattern)},(eU=F||(t.WatchKind=F={})).Create=1,eU.Change=2,eU.Delete=4,(eG=q||(t.PublishDiagnosticsNotification=q={})).method="textDocument/publishDiagnostics",eG.messageDirection=ts.MessageDirection.serverToClient,eG.type=new ts.ProtocolNotificationType(eG.method),(ez=j||(t.CompletionTriggerKind=j={})).Invoked=1,ez.TriggerCharacter=2,ez.TriggerForIncompleteCompletions=3,(eK=U||(t.CompletionRequest=U={})).method="textDocument/completion",eK.messageDirection=ts.MessageDirection.clientToServer,eK.type=new ts.ProtocolRequestType(eK.method),(eB=G||(t.CompletionResolveRequest=G={})).method="completionItem/resolve",eB.messageDirection=ts.MessageDirection.clientToServer,eB.type=new ts.ProtocolRequestType(eB.method),(eW=z||(t.HoverRequest=z={})).method="textDocument/hover",eW.messageDirection=ts.MessageDirection.clientToServer,eW.type=new ts.ProtocolRequestType(eW.method),(eV=K||(t.SignatureHelpTriggerKind=K={})).Invoked=1,eV.TriggerCharacter=2,eV.ContentChange=3,(eH=B||(t.SignatureHelpRequest=B={})).method="textDocument/signatureHelp",eH.messageDirection=ts.MessageDirection.clientToServer,eH.type=new ts.ProtocolRequestType(eH.method),(eY=W||(t.DefinitionRequest=W={})).method="textDocument/definition",eY.messageDirection=ts.MessageDirection.clientToServer,eY.type=new ts.ProtocolRequestType(eY.method),(eX=V||(t.ReferencesRequest=V={})).method="textDocument/references",eX.messageDirection=ts.MessageDirection.clientToServer,eX.type=new ts.ProtocolRequestType(eX.method),(eQ=H||(t.DocumentHighlightRequest=H={})).method="textDocument/documentHighlight",eQ.messageDirection=ts.MessageDirection.clientToServer,eQ.type=new ts.ProtocolRequestType(eQ.method),(eJ=Y||(t.DocumentSymbolRequest=Y={})).method="textDocument/documentSymbol",eJ.messageDirection=ts.MessageDirection.clientToServer,eJ.type=new ts.ProtocolRequestType(eJ.method),(eZ=X||(t.CodeActionRequest=X={})).method="textDocument/codeAction",eZ.messageDirection=ts.MessageDirection.clientToServer,eZ.type=new ts.ProtocolRequestType(eZ.method),(e0=Q||(t.CodeActionResolveRequest=Q={})).method="codeAction/resolve",e0.messageDirection=ts.MessageDirection.clientToServer,e0.type=new ts.ProtocolRequestType(e0.method),(e1=J||(t.WorkspaceSymbolRequest=J={})).method="workspace/symbol",e1.messageDirection=ts.MessageDirection.clientToServer,e1.type=new ts.ProtocolRequestType(e1.method),(e2=Z||(t.WorkspaceSymbolResolveRequest=Z={})).method="workspaceSymbol/resolve",e2.messageDirection=ts.MessageDirection.clientToServer,e2.type=new ts.ProtocolRequestType(e2.method),(e3=ee||(t.CodeLensRequest=ee={})).method="textDocument/codeLens",e3.messageDirection=ts.MessageDirection.clientToServer,e3.type=new ts.ProtocolRequestType(e3.method),(e5=et||(t.CodeLensResolveRequest=et={})).method="codeLens/resolve",e5.messageDirection=ts.MessageDirection.clientToServer,e5.type=new ts.ProtocolRequestType(e5.method),(e9=er||(t.CodeLensRefreshRequest=er={})).method="workspace/codeLens/refresh",e9.messageDirection=ts.MessageDirection.serverToClient,e9.type=new ts.ProtocolRequestType0(e9.method),(e4=en||(t.DocumentLinkRequest=en={})).method="textDocument/documentLink",e4.messageDirection=ts.MessageDirection.clientToServer,e4.type=new ts.ProtocolRequestType(e4.method),(e8=ei||(t.DocumentLinkResolveRequest=ei={})).method="documentLink/resolve",e8.messageDirection=ts.MessageDirection.clientToServer,e8.type=new ts.ProtocolRequestType(e8.method),(e7=ea||(t.DocumentFormattingRequest=ea={})).method="textDocument/formatting",e7.messageDirection=ts.MessageDirection.clientToServer,e7.type=new ts.ProtocolRequestType(e7.method),(e6=es||(t.DocumentRangeFormattingRequest=es={})).method="textDocument/rangeFormatting",e6.messageDirection=ts.MessageDirection.clientToServer,e6.type=new ts.ProtocolRequestType(e6.method),(te=eo||(t.DocumentRangesFormattingRequest=eo={})).method="textDocument/rangesFormatting",te.messageDirection=ts.MessageDirection.clientToServer,te.type=new ts.ProtocolRequestType(te.method),(tt=el||(t.DocumentOnTypeFormattingRequest=el={})).method="textDocument/onTypeFormatting",tt.messageDirection=ts.MessageDirection.clientToServer,tt.type=new ts.ProtocolRequestType(tt.method),(eu||(t.PrepareSupportDefaultBehavior=eu={})).Identifier=1,(tr=ec||(t.RenameRequest=ec={})).method="textDocument/rename",tr.messageDirection=ts.MessageDirection.clientToServer,tr.type=new ts.ProtocolRequestType(tr.method),(tn=ed||(t.PrepareRenameRequest=ed={})).method="textDocument/prepareRename",tn.messageDirection=ts.MessageDirection.clientToServer,tn.type=new ts.ProtocolRequestType(tn.method),(ti=eh||(t.ExecuteCommandRequest=eh={})).method="workspace/executeCommand",ti.messageDirection=ts.MessageDirection.clientToServer,ti.type=new ts.ProtocolRequestType(ti.method),(ta=ep||(t.ApplyWorkspaceEditRequest=ep={})).method="workspace/applyEdit",ta.messageDirection=ts.MessageDirection.serverToClient,ta.type=new ts.ProtocolRequestType("workspace/applyEdit")},96757:(e,t,r)=>{var n,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;let o=r(35015);(a=n||(t.FoldingRangeRequest=n={})).method="textDocument/foldingRange",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType(a.method),(s=i||(t.FoldingRangeRefreshRequest=i={})).method="workspace/foldingRange/refresh",s.messageDirection=o.MessageDirection.serverToClient,s.type=new o.ProtocolRequestType0(s.method)},98367:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(95749),i=r(92459),a=r(77494);let s=function(e){return"string"==typeof e||!(0,i.A)(e)&&(0,a.A)(e)&&"[object String]"==(0,n.A)(e)}},99902:(e,t,r)=>{r.d(t,{Q:()=>u});var n=r(79179),i=r(88361),a=r(30429),s=r(62356),o=r(78694),l=r(73303);class u{constructor(){this.diagnostics=[]}buildTokens(e,t){let r=(0,l.Td)((0,s.YV)(e,!1)),n=this.buildTerminalTokens(r),i=this.buildKeywordTokens(r,n,t);return i.push(...n),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(i.rE).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=(0,s.S)(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,i={name:e.name,PATTERN:r};return"function"==typeof r&&(i.LINE_BREAKS=!0),e.hidden&&(i.GROUP=(0,o.Yv)(t)?n.JG.SKIPPED:"hidden"),i}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){let t=RegExp(e,e.flags+"y");return(e,r)=>(t.lastIndex=r,t.exec(e))}buildKeywordTokens(e,t,r){return e.filter(i.cM).flatMap(e=>(0,a.Uo)(e).filter(i.wb)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){let n=this.buildKeywordPattern(e,r),i={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return"function"==typeof n&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?RegExp((0,o.Nt)(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((t,r)=>{let n=r?.PATTERN;return n?.source&&(0,o.PC)("^"+n.source+"$",e.value)&&t.push(r),t},[])}}}}]);
|