@surething/cockpit 1.0.191 → 1.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next-prod/BUILD_ID +1 -1
- package/.next-prod/app-path-routes-manifest.json +15 -13
- package/.next-prod/build-manifest.json +5 -5
- package/.next-prod/diagnostics/framework.json +1 -1
- package/.next-prod/images-manifest.json +1 -0
- package/.next-prod/next-minimal-server.js.nft.json +1 -1
- package/.next-prod/next-server.js.nft.json +1 -1
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/react-loadable-manifest.json +2 -258
- package/.next-prod/required-server-files.js +18 -6
- package/.next-prod/required-server-files.json +18 -6
- package/.next-prod/routes-manifest.json +13 -0
- package/.next-prod/server/app/_global-error/page.js +32 -3
- package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_global-error.html +1 -2
- package/.next-prod/server/app/_global-error.rsc +8 -6
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +8 -6
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +2 -1
- package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +2 -1
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found/page.js +2 -2
- package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
- package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_not-found.html +2 -2
- package/.next-prod/server/app/_not-found.rsc +11 -9
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +11 -9
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +2 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/bash/route.js +1 -1
- package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/bash/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +13 -13
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/codex/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +3 -3
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +3 -3
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/ollama/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/chat/route.js +3 -3
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/claude-stats/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/commands/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/comments/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/columns/route.js +2 -2
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/columns/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/export/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/query/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +2 -2
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/schemas/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/extension/version/route.js +1 -1
- package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/extension/version/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/file/route.js +1 -1
- package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/blame/route.js +1 -1
- package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/blame/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/clipboard/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/copy/route.js +1 -1
- package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/copy/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/delete/route.js +1 -1
- package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/delete/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/expanded/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/index/route.js +1 -1
- package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/index/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/init/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/paste/route.js +1 -1
- package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/paste/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/read/route.js +1 -1
- package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/read/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/readdir/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/recent/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/save/route.js +1 -1
- package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/save/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/search/route.js +1 -1
- package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/search/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/stat/route.js +1 -0
- package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/stat/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/files/text/route.js +1 -0
- package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/files/text/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/branches/route.js +1 -1
- package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branches/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/commits/route.js +1 -1
- package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commits/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/diff/route.js +1 -1
- package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/discard/route.js +1 -1
- package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/discard/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/stage/route.js +1 -1
- package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/stage/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/status/route.js +1 -1
- package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/status/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/unstage/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/worktree/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/global-state/route.js +1 -1
- package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/global-state/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/load/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/save/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/definition/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/hover/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/references/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/status/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/columns/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/export/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/query/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
- package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/query/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/note/route.js +1 -1
- package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/note/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/start/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-cursor/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-vscode/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pick-folder/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-settings/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/project-state/route.js +1 -1
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-state/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/command/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/delete/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/get/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/keys/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/set/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/identify/route.js +1 -1
- package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/identify/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/order/route.js +1 -1
- package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/order/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/route.js +1 -1
- package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/share-info/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/users/route.js +1 -1
- package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/users/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/services/config/route.js +1 -1
- package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/config/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/scripts/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session-by-path/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/settings/route.js +1 -1
- package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/skills/content/route.js +1 -1
- package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/content/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/skills/route.js +1 -1
- package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/env/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/history/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/version/route.js +1 -1
- package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/favicon.ico/route.js +1 -1
- package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
- package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/page.js +6 -6
- package/.next-prod/server/app/page.js.nft.json +1 -1
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/project/page.js +8 -8
- package/.next-prod/server/app/project/page.js.nft.json +1 -1
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/review/[id]/page.js +2 -2
- package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +15 -13
- package/.next-prod/server/chunks/1813.js +1 -1
- package/.next-prod/server/chunks/2338.js +1 -1
- package/.next-prod/server/chunks/3269.js +1 -1
- package/.next-prod/server/chunks/3353.js +1 -0
- package/.next-prod/server/chunks/4098.js +1 -1
- package/.next-prod/server/chunks/4490.js +3 -3
- package/.next-prod/server/chunks/4732.js +1 -0
- package/.next-prod/server/chunks/4741.js +5 -9
- package/.next-prod/server/chunks/4793.js +1 -1
- package/.next-prod/server/chunks/5147.js +1 -1
- package/.next-prod/server/chunks/700.js +1 -1
- package/.next-prod/server/chunks/7514.js +1 -1
- package/.next-prod/server/chunks/8465.js +15 -0
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +1 -2
- package/.next-prod/server/prefetch-hints.json +1 -0
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/chunks/3530-74191451ec2a46c4.js +14 -0
- package/.next-prod/static/chunks/3579-70c6663ba8c0cf1b.js +1 -0
- package/.next-prod/static/chunks/{3695-f14fb3e48483755c.js → 3695-9503d0b646958dd4.js} +2 -2
- package/.next-prod/static/chunks/3700-e32aa43691d128b2.js +1 -0
- package/.next-prod/static/chunks/{3743-66d6d2ef6629c733.js → 3743-5e5ffaf674977450.js} +1 -1
- package/.next-prod/static/chunks/3794-3fb4e6ee851037bb.js +32 -0
- package/.next-prod/static/chunks/4bd1b696-e356ca5ba0218e27.js +1 -0
- package/.next-prod/static/chunks/{7650.18f74243e9325242.js → 5269.2e771096652dc113.js} +1 -1
- package/.next-prod/static/chunks/54a60aa6-1a0e6738c5ca0c78.js +79 -0
- package/.next-prod/static/chunks/{9062-a330afa1af7f133e.js → 9062-ea4adbf70cf62f01.js} +1 -1
- package/.next-prod/static/chunks/{aaea2bcf-4f9eb5012da21e0f.js → aaea2bcf-be8b39a8f32280f3.js} +1 -1
- package/.next-prod/static/chunks/app/_global-error/page-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/app/{page-e0d663a97bc29595.js → page-95c3cb3c5c7c5ef1.js} +1 -1
- package/.next-prod/static/chunks/app/project/page-180bad159db256a5.js +29 -0
- package/.next-prod/static/chunks/app/review/[id]/page-e81c220af0b68e3e.js +1 -0
- package/.next-prod/static/chunks/d3ac728e-ba6c269aebe5932e.js +1 -0
- package/.next-prod/static/chunks/{e868780c.a081703edc1bc551.js → e868780c.16e43c5968ccf2bf.js} +3 -3
- package/.next-prod/static/chunks/framework-52c9cc950957e3ac.js +1 -0
- package/.next-prod/static/chunks/main-5a46314a5491113b.js +5 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-94e40d01eb0846a0.js +1 -0
- package/.next-prod/static/chunks/webpack-067b7836d8df9226.js +1 -0
- package/.next-prod/static/css/aefab4a01c890b38.css +3 -0
- package/.next-prod/static/smsKM7xQ0sAR3fsFWgImc/_buildManifest.js +1 -0
- package/.next-prod/trace +12 -13
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/bash/route.ts +3 -2
- package/.next-prod/types/app/api/chat/codex/route.ts +3 -2
- package/.next-prod/types/app/api/chat/kimi/route.ts +3 -2
- package/.next-prod/types/app/api/chat/ollama/route.ts +3 -2
- package/.next-prod/types/app/api/chat/route.ts +3 -2
- package/.next-prod/types/app/api/claude-stats/route.ts +3 -2
- package/.next-prod/types/app/api/commands/route.ts +3 -2
- package/.next-prod/types/app/api/comments/route.ts +3 -2
- package/.next-prod/types/app/api/db/columns/route.ts +3 -2
- package/.next-prod/types/app/api/db/connect/route.ts +3 -2
- package/.next-prod/types/app/api/db/disconnect/route.ts +3 -2
- package/.next-prod/types/app/api/db/export/route.ts +3 -2
- package/.next-prod/types/app/api/db/query/route.ts +3 -2
- package/.next-prod/types/app/api/db/schemas/route.ts +3 -2
- package/.next-prod/types/app/api/extension/version/route.ts +3 -2
- package/.next-prod/types/app/api/file/route.ts +3 -2
- package/.next-prod/types/app/api/files/blame/route.ts +3 -2
- package/.next-prod/types/app/api/files/clipboard/route.ts +3 -2
- package/.next-prod/types/app/api/files/copy/route.ts +3 -2
- package/.next-prod/types/app/api/files/delete/route.ts +3 -2
- package/.next-prod/types/app/api/files/expanded/route.ts +3 -2
- package/.next-prod/types/app/api/files/index/route.ts +3 -2
- package/.next-prod/types/app/api/files/init/route.ts +3 -2
- package/.next-prod/types/app/api/files/paste/route.ts +3 -2
- package/.next-prod/types/app/api/files/read/route.ts +3 -2
- package/.next-prod/types/app/api/files/readdir/route.ts +3 -2
- package/.next-prod/types/app/api/files/recent/route.ts +3 -2
- package/.next-prod/types/app/api/files/save/route.ts +3 -2
- package/.next-prod/types/app/api/files/search/route.ts +3 -2
- package/.next-prod/types/app/api/files/stat/route.ts +351 -0
- package/.next-prod/types/app/api/files/text/route.ts +351 -0
- package/.next-prod/types/app/api/git/branch-diff/route.ts +3 -2
- package/.next-prod/types/app/api/git/branches/route.ts +3 -2
- package/.next-prod/types/app/api/git/commit-diff/route.ts +3 -2
- package/.next-prod/types/app/api/git/commits/route.ts +3 -2
- package/.next-prod/types/app/api/git/diff/route.ts +3 -2
- package/.next-prod/types/app/api/git/discard/route.ts +3 -2
- package/.next-prod/types/app/api/git/stage/route.ts +3 -2
- package/.next-prod/types/app/api/git/status/route.ts +3 -2
- package/.next-prod/types/app/api/git/unstage/route.ts +3 -2
- package/.next-prod/types/app/api/git/worktree/route.ts +3 -2
- package/.next-prod/types/app/api/global-state/route.ts +3 -2
- package/.next-prod/types/app/api/jupyter/load/route.ts +3 -2
- package/.next-prod/types/app/api/jupyter/save/route.ts +3 -2
- package/.next-prod/types/app/api/jupyter/shutdown/route.ts +3 -2
- package/.next-prod/types/app/api/lsp/definition/route.ts +3 -2
- package/.next-prod/types/app/api/lsp/hover/route.ts +3 -2
- package/.next-prod/types/app/api/lsp/references/route.ts +3 -2
- package/.next-prod/types/app/api/lsp/status/route.ts +3 -2
- package/.next-prod/types/app/api/lsp/warmup/route.ts +3 -2
- package/.next-prod/types/app/api/mysql/columns/route.ts +3 -2
- package/.next-prod/types/app/api/mysql/connect/route.ts +3 -2
- package/.next-prod/types/app/api/mysql/disconnect/route.ts +3 -2
- package/.next-prod/types/app/api/mysql/export/route.ts +3 -2
- package/.next-prod/types/app/api/mysql/query/route.ts +3 -2
- package/.next-prod/types/app/api/mysql/schemas/route.ts +3 -2
- package/.next-prod/types/app/api/neo4j/connect/route.ts +3 -2
- package/.next-prod/types/app/api/neo4j/disconnect/route.ts +3 -2
- package/.next-prod/types/app/api/neo4j/query/route.ts +3 -2
- package/.next-prod/types/app/api/neo4j/schema/route.ts +3 -2
- package/.next-prod/types/app/api/note/route.ts +3 -2
- package/.next-prod/types/app/api/ollama/models/route.ts +3 -2
- package/.next-prod/types/app/api/ollama/start/route.ts +3 -2
- package/.next-prod/types/app/api/open-cursor/route.ts +3 -2
- package/.next-prod/types/app/api/open-vscode/route.ts +3 -2
- package/.next-prod/types/app/api/pick-folder/route.ts +3 -2
- package/.next-prod/types/app/api/pinned-sessions/route.ts +3 -2
- package/.next-prod/types/app/api/project-settings/route.ts +3 -2
- package/.next-prod/types/app/api/project-state/route.ts +3 -2
- package/.next-prod/types/app/api/projects/route.ts +3 -2
- package/.next-prod/types/app/api/redis/command/route.ts +3 -2
- package/.next-prod/types/app/api/redis/connect/route.ts +3 -2
- package/.next-prod/types/app/api/redis/delete/route.ts +3 -2
- package/.next-prod/types/app/api/redis/disconnect/route.ts +3 -2
- package/.next-prod/types/app/api/redis/get/route.ts +3 -2
- package/.next-prod/types/app/api/redis/keys/route.ts +3 -2
- package/.next-prod/types/app/api/redis/set/route.ts +3 -2
- package/.next-prod/types/app/api/review/[id]/comments/route.ts +3 -2
- package/.next-prod/types/app/api/review/[id]/replies/route.ts +3 -2
- package/.next-prod/types/app/api/review/[id]/route.ts +3 -2
- package/.next-prod/types/app/api/review/identify/route.ts +3 -2
- package/.next-prod/types/app/api/review/order/route.ts +3 -2
- package/.next-prod/types/app/api/review/route.ts +3 -2
- package/.next-prod/types/app/api/review/share-info/route.ts +3 -2
- package/.next-prod/types/app/api/review/users/route.ts +3 -2
- package/.next-prod/types/app/api/scheduled-tasks/route.ts +3 -2
- package/.next-prod/types/app/api/services/config/route.ts +3 -2
- package/.next-prod/types/app/api/services/scripts/route.ts +3 -2
- package/.next-prod/types/app/api/session/[sessionId]/fork/route.ts +3 -2
- package/.next-prod/types/app/api/session/[sessionId]/history/route.ts +3 -2
- package/.next-prod/types/app/api/session-by-path/route.ts +3 -2
- package/.next-prod/types/app/api/sessions/projects/[encodedPath]/route.ts +3 -2
- package/.next-prod/types/app/api/sessions/projects/route.ts +3 -2
- package/.next-prod/types/app/api/sessions/route.ts +3 -2
- package/.next-prod/types/app/api/settings/route.ts +3 -2
- package/.next-prod/types/app/api/skills/[id]/route.ts +3 -2
- package/.next-prod/types/app/api/skills/content/route.ts +3 -2
- package/.next-prod/types/app/api/skills/route.ts +3 -2
- package/.next-prod/types/app/api/terminal/aliases/route.ts +3 -2
- package/.next-prod/types/app/api/terminal/autocomplete/route.ts +3 -2
- package/.next-prod/types/app/api/terminal/bubble-order/route.ts +3 -2
- package/.next-prod/types/app/api/terminal/env/route.ts +3 -2
- package/.next-prod/types/app/api/terminal/history/route.ts +3 -2
- package/.next-prod/types/app/api/version/route.ts +3 -2
- package/.next-prod/types/app/page.ts +3 -2
- package/.next-prod/types/app/project/page.ts +3 -2
- package/.next-prod/types/app/review/[id]/page.ts +3 -2
- package/.next-prod/types/cache-life.d.ts +145 -0
- package/.next-prod/types/routes.d.ts +3 -1
- package/.next-prod/types/validator.ts +18 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/wsServer.mjs +56 -6
- package/package.json +2 -3
- package/server.mjs +49 -5
- package/.next-prod/server/chunks/1639.js +0 -1
- package/.next-prod/server/chunks/1661.js +0 -1
- package/.next-prod/server/chunks/1667.js +0 -1
- package/.next-prod/server/chunks/1912.js +0 -1
- package/.next-prod/server/chunks/2325.js +0 -82
- package/.next-prod/server/chunks/2376.js +0 -36
- package/.next-prod/server/chunks/2816.js +0 -1
- package/.next-prod/server/chunks/2840.js +0 -62
- package/.next-prod/server/chunks/3434.js +0 -1
- package/.next-prod/server/chunks/3441.js +0 -24
- package/.next-prod/server/chunks/3503.js +0 -29
- package/.next-prod/server/chunks/3932.js +0 -56
- package/.next-prod/server/chunks/4073.js +0 -1
- package/.next-prod/server/chunks/4097.js +0 -136
- package/.next-prod/server/chunks/4268.js +0 -4
- package/.next-prod/server/chunks/4309.js +0 -141
- package/.next-prod/server/chunks/4345.js +0 -1
- package/.next-prod/server/chunks/4367.js +0 -1
- package/.next-prod/server/chunks/4388.js +0 -24
- package/.next-prod/server/chunks/4442.js +0 -1
- package/.next-prod/server/chunks/459.js +0 -1
- package/.next-prod/server/chunks/5152.js +0 -1
- package/.next-prod/server/chunks/5460.js +0 -201
- package/.next-prod/server/chunks/5481.js +0 -1
- package/.next-prod/server/chunks/5536.js +0 -148
- package/.next-prod/server/chunks/5733.js +0 -5
- package/.next-prod/server/chunks/582.js +0 -1
- package/.next-prod/server/chunks/5958.js +0 -1
- package/.next-prod/server/chunks/6117.js +0 -13
- package/.next-prod/server/chunks/6142.js +0 -287
- package/.next-prod/server/chunks/6346.js +0 -1
- package/.next-prod/server/chunks/6443.js +0 -1
- package/.next-prod/server/chunks/6804.js +0 -43
- package/.next-prod/server/chunks/7122.js +0 -1
- package/.next-prod/server/chunks/7265.js +0 -93
- package/.next-prod/server/chunks/7307.js +0 -1
- package/.next-prod/server/chunks/7483.js +0 -1
- package/.next-prod/server/chunks/7484.js +0 -64
- package/.next-prod/server/chunks/7800.js +0 -166
- package/.next-prod/server/chunks/8068.js +0 -63
- package/.next-prod/server/chunks/8351.js +0 -23
- package/.next-prod/server/chunks/8585.js +0 -198
- package/.next-prod/server/chunks/887.js +0 -215
- package/.next-prod/server/chunks/911.js +0 -1
- package/.next-prod/server/chunks/9116.js +0 -65
- package/.next-prod/server/chunks/925.js +0 -68
- package/.next-prod/server/chunks/9401.js +0 -1
- package/.next-prod/server/chunks/9408.js +0 -1
- package/.next-prod/static/chunks/1310.c38c5fbf05820fcd.js +0 -166
- package/.next-prod/static/chunks/1409.9f81cd6d2cab4b67.js +0 -1
- package/.next-prod/static/chunks/142.e09e154342f02da4.js +0 -4
- package/.next-prod/static/chunks/1590.05549e036336164c.js +0 -65
- package/.next-prod/static/chunks/1948.bf7e0d9ede202530.js +0 -29
- package/.next-prod/static/chunks/1987.226da043eabc8911.js +0 -5
- package/.next-prod/static/chunks/1991.d869abe5092c9011.js +0 -1
- package/.next-prod/static/chunks/2020.46a0112747939389.js +0 -1
- package/.next-prod/static/chunks/2235.b4453110c06e2b09.js +0 -1
- package/.next-prod/static/chunks/254.8b4308512ac955b5.js +0 -24
- package/.next-prod/static/chunks/2729.826909b4d5229ba6.js +0 -68
- package/.next-prod/static/chunks/2821.fa74c6e87f6e759a.js +0 -1
- package/.next-prod/static/chunks/2921.26016c4c7eb031e8.js +0 -1
- package/.next-prod/static/chunks/2ff9d716.93c18c265de76cfb.js +0 -136
- package/.next-prod/static/chunks/3126.c89ab7ce8e10978e.js +0 -1
- package/.next-prod/static/chunks/3530-49f50405e2b2a8c2.js +0 -14
- package/.next-prod/static/chunks/3613.9a37e282a0b018d7.js +0 -1
- package/.next-prod/static/chunks/3682.d8c0079db560c625.js +0 -1
- package/.next-prod/static/chunks/3700-1edddcc68c5c2ac3.js +0 -1
- package/.next-prod/static/chunks/3794-337d1ca25ad99a89.js +0 -2
- package/.next-prod/static/chunks/4699.8603b2742a761084.js +0 -1
- package/.next-prod/static/chunks/4892.1674cc00200143ba.js +0 -1
- package/.next-prod/static/chunks/4bd1b696-e5d7c65570c947b7.js +0 -1
- package/.next-prod/static/chunks/5019.2906d96e77b98f68.js +0 -198
- package/.next-prod/static/chunks/5139.83dc2c84aeea716b.js +0 -63
- package/.next-prod/static/chunks/5199.5faac6a2cc104a4c.js +0 -36
- package/.next-prod/static/chunks/5269.25d99df0164521ad.js +0 -23
- package/.next-prod/static/chunks/5325.aad15a16a5d57787.js +0 -1
- package/.next-prod/static/chunks/5364.2e5ba480c24d7854.js +0 -148
- package/.next-prod/static/chunks/5394.9d260f733e336357.js +0 -287
- package/.next-prod/static/chunks/54a60aa6-f60235f3d6b54466.js +0 -79
- package/.next-prod/static/chunks/5788.e5d5040b65e5edf3.js +0 -1
- package/.next-prod/static/chunks/6026.4027a04696ef04db.js +0 -1
- package/.next-prod/static/chunks/6108-df36466c7d900315.js +0 -1
- package/.next-prod/static/chunks/6383.ca3e074feb80c69c.js +0 -1
- package/.next-prod/static/chunks/6460.8ce93fe47320f6c5.js +0 -1
- package/.next-prod/static/chunks/6871.38519003bd87ac1c.js +0 -62
- package/.next-prod/static/chunks/6878-b27072ccf7fd4eba.js +0 -1
- package/.next-prod/static/chunks/6962.3bbd080592d4efa0.js +0 -64
- package/.next-prod/static/chunks/7084.921c9737b83f55eb.js +0 -1
- package/.next-prod/static/chunks/7085.b16e7c0e24741232.js +0 -215
- package/.next-prod/static/chunks/7443.124211e5abc05d3f.js +0 -93
- package/.next-prod/static/chunks/7479.433d3878625aba75.js +0 -24
- package/.next-prod/static/chunks/7547.54b68d37b50c2f21.js +0 -43
- package/.next-prod/static/chunks/7874.8db6929b94cdf697.js +0 -1
- package/.next-prod/static/chunks/8317.9c6f22e0c8cd07a8.js +0 -141
- package/.next-prod/static/chunks/8776.6fb12270eca03fd3.js +0 -149
- package/.next-prod/static/chunks/8863.4a09596cf95e996a.js +0 -82
- package/.next-prod/static/chunks/90542734.58d84d15ab7a8c98.js +0 -1
- package/.next-prod/static/chunks/9233.124321d2f404e01c.js +0 -1
- package/.next-prod/static/chunks/9318.ba24787a52cefe4c.js +0 -56
- package/.next-prod/static/chunks/9373.6206c440af44002a.js +0 -1
- package/.next-prod/static/chunks/af7f6608.85a7e1eb0d4130b0.js +0 -53
- package/.next-prod/static/chunks/app/_global-error/page-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/app/project/page-ff9fb0aaf89c8457.js +0 -29
- package/.next-prod/static/chunks/app/review/[id]/page-be83af23e89a03f9.js +0 -1
- package/.next-prod/static/chunks/d3ac728e-d1ae8819b8f0be6a.js +0 -1
- package/.next-prod/static/chunks/framework-81b2e59ffe13bb24.js +0 -1
- package/.next-prod/static/chunks/main-ac50dc1e450895a2.js +0 -5
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-f626fdfbc87b7a2c.js +0 -1
- package/.next-prod/static/chunks/webpack-0f527ee7ab644d02.js +0 -1
- package/.next-prod/static/css/75f39a8350e8177f.css +0 -3
- package/.next-prod/static/s6yDo5HSYaSgHWRvF1qFE/_buildManifest.js +0 -1
- /package/.next-prod/static/{s6yDo5HSYaSgHWRvF1qFE → smsKM7xQ0sAR3fsFWgImc}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3743],{64702:(e,t,n)=>{n.d(t,{Te:()=>_});var i=n(12115),r=n(47650);function s(e,t,n){let i,r=n.initialDeps??[],s=!0;function a(){var a,o,l;let h,c;n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(h=Date.now());let d=e();if(!(d.length!==r.length||d.some((e,t)=>r[t]!==e)))return i;if(r=d,n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now()),i=t(...d),n.key&&(null==(l=n.debug)?void 0:l.call(n))){let e=Math.round((Date.now()-h)*100)/100,t=Math.round((Date.now()-c)*100)/100,i=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(e,5)} ms`,`
|
|
2
2
|
font-size: .6rem;
|
|
3
3
|
font-weight: bold;
|
|
4
|
-
color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return(null==n?void 0:n.onChange)&&!(s&&n.skipInitialOnChange)&&n.onChange(i),s=!1,i}return a.updateDeps=e=>{r=e},a}function a(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let o=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},l=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=n;e++)i.push(e);return i},c=(e,t)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let r=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(r(o(n)),!i.ResizeObserver)return()=>{};let s=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void r({width:t.inlineSize,height:t.blockSize})}r(o(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},d={passive:!0},u="u"<typeof window||"onscrollend"in window,m=(e,t)=>{var n,i;let r,s=e.scrollElement;if(!s)return;let a=e.targetWindow;if(!a)return;let o=0,l=e.options.useScrollendEvent&&u?()=>void 0:(n=()=>{t(o,!1)},i=e.options.isScrollingResetDelay,function(...e){a.clearTimeout(r),r=a.setTimeout(()=>n.apply(this,e),i)}),h=n=>()=>{let{horizontal:i,isRtl:r}=e.options;o=i?s.scrollLeft*(r&&-1||1):s.scrollTop,l(),t(o,n)},c=h(!0),m=h(!1);s.addEventListener("scroll",c,d);let p=e.options.useScrollendEvent&&u;return p&&s.addEventListener("scrollend",m,d),()=>{s.removeEventListener("scroll",c),p&&s.removeEventListener("scrollend",m)}},p=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},g=(e,{adjustments:t=0,behavior:n},i)=>{var r,s;null==(s=null==(r=i.scrollElement)?void 0:r.scrollTo)||s.call(r,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class f{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:l,rangeExtractor:h,onChange:()=>{},measureElement:p,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=s(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,i=new Map;for(let r=t-1;r>=0;r--){let t=e[r];if(n.has(t.lane))continue;let s=i.get(t.lane);if(null==s||t.end>s.end?i.set(t.lane,t):t.end<s.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=s(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,i,r,s)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:r,lanes:s}),{key:!1}),this.getMeasurements=s(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:r,lanes:s},a)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let l=this.measurementsCache.slice(0,o),h=Array(s).fill(void 0);for(let e=0;e<o;e++){let t=l[e];t&&(h[t.lane]=e)}for(let r=o;r<e;r++){let e,s,o=i(r),c=this.laneAssignments.get(r);if(void 0!==c&&this.options.lanes>1){let i=h[e=c],r=void 0!==i?l[i]:void 0;s=r?r.end+this.options.gap:t+n}else{let i=1===this.options.lanes?l[r-1]:this.getFurthestMeasurement(l,r);s=i?i.end+this.options.gap:t+n,e=i?i.lane:r%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(r,e)}let d=a.get(o),u="number"==typeof d?d:this.options.estimateSize(r),m=s+u;l[r]={index:r,start:s,size:u,end:m,key:o,lane:e},h[e]=r}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=s(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){let r=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:r};let s=b(0,r,t=>e[t].start,n),a=s;if(1===i)for(;a<r&&e[a].end<n+t;)a++;else if(i>1){let o=Array(i).fill(0);for(;a<r&&o.some(e=>e<n+t);){let t=e[a];o[t.lane]=t.end,a++}let l=Array(i).fill(n+t);for(;s>=0&&l.some(e=>e>=n);){let t=e[s];l[t.lane]=t.start,s--}s=Math.max(0,s-s%i),a=Math.min(r,a+(i-1-a%i))}return{startIndex:s,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=s(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,r)=>null===i||null===r?[]:e({startIndex:i,endIndex:r,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),i=this.measurementsCache[n];if(!i)return;let r=i.key,s=this.elementsCache.get(r);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(r,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=s(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,r=e.length;i<r;i++){let r=t[e[i]];n.push(r)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return a(t[b(0,t.length-1,e=>a(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let i=this.getSize(),r=this.getScrollOffset();return"auto"===t&&(t=e>=r+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let i=this.getSize(),r=this.getScrollOffset();if("auto"===t)if(n.end>=r+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let s="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let i=0,r=t=>{if(!this.targetWindow)return;let i=this.getOffsetForIndex(e,t);if(!i)return void console.warn("Failed to get offset for index:",e);let[r,a]=i;this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?1.01>Math.abs(n[0]-t)||s(a):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},s=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(++i<10?this.targetWindow.requestAnimationFrame(()=>r(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};r(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let b=(e,t,n,i)=>{for(;e<=t;){let r=(e+t)/2|0,s=n(r);if(s<i)e=r+1;else{if(!(s>i))return r;t=r-1}}return e>0?e-1:0},y="u">typeof document?i.useLayoutEffect:i.useEffect;function _(e){return function({useFlushSync:e=!0,...t}){let n=i.useReducer(()=>({}),{})[1],s={...t,onChange:(i,s)=>{var a;e&&s?(0,r.flushSync)(n):n(),null==(a=t.onChange)||a.call(t,i,s)}},[a]=i.useState(()=>new f(s));return a.setOptions(s),y(()=>a._didMount(),[]),y(()=>a._willUpdate()),a}({observeElementRect:c,observeElementOffset:m,scrollToFn:g,...e})}},67014:(e,t,n)=>{let i,r,s,a,o;n.d(t,{O_:()=>nn});class l extends Error{constructor(e){super(e),this.name="ShikiError"}}var h,c,d,u=n(41463);function m(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var p=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,g=class{static hasCaptures(e){return null!==e&&(p.lastIndex=0,p.test(e))}static replaceCaptures(e,t,n){return e.replace(p,(e,i,r,s)=>{let a=n[parseInt(i||r,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(s){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function f(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let i=0;i<n;i++){var r,s;let n=(r=e[i],r<(s=t[i])?-1:+(r>s));if(0!==n)return n}return 0}return n-i}function b(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function y(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var _=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},S=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let e=0,r=t.length;e<r;e++){let r,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;r=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else r=Array.isArray(s.scope)?s.scope:[""];let a=-1;if("string"==typeof s.settings.fontStyle){a=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let o=null;"string"==typeof s.settings.foreground&&b(s.settings.foreground)&&(o=s.settings.foreground);let l=null;"string"==typeof s.settings.background&&b(s.settings.background)&&(l=s.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),h=s[s.length-1],c=null;s.length>1&&(c=s.slice(0,s.length-1)).reverse(),n[i++]=new C(h,c,e,a,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,i;let r=(n=e.scope,n<(i=t.scope)?-1:+(n>i));return 0!==r||0!==(r=f(e.parentScopes,t.parentScopes))?r:e.index-t.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let s=new N(t),a=new w(n,s.getId(i),s.getId(r)),o=new x(new P(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,s.getId(n.foreground),s.getId(n.background))}return new S(s,a,o)}(e,t)}_cachedMatchRoot=new _(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let r=0;r<t.length;r++){var n,i;let s=t[r],a=!1;if(">"===s){if(r===t.length-1)return!1;s=t[++r],a=!0}for(;e&&(n=e.scopeName,!((i=s)===n||n.startsWith(i)&&"."===n[i.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new w(n.fontStyle,n.foreground,n.background):null}},k=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let i of n)t=new e(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new e(n,t[i]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},w=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},C=class{constructor(e,t,n,i,r,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},v=((h=v||{})[h.NotSet=-1]="NotSet",h[h.None=0]="None",h[h.Italic=1]="Italic",h[h.Bold=2]="Bold",h[h.Underline=4]="Underline",h[h.Strikethrough=8]="Strikethrough",h),N=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},A=Object.freeze([]),P=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,i,r){this.scopeDepth=e,this.parentScopes=t||A,this.fontStyle=n,this.foreground=i,this.background=r}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}},x=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[i]&&i++,!(n>=e.parentScopes.length)&&!(i>=t.parentScopes.length);){let r=t.parentScopes[i].length-e.parentScopes[n].length;if(0!==r)return r;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,i=t.indexOf(".");if(-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,i,r,s,a){let o,l,h;if(""===n)return void this._doInsertHere(t,i,r,s,a);let c=n.indexOf(".");-1===c?(o=n,l=""):(o=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(o)?h=this._children[o]:(h=new e(this._mainRule.clone(),P.cloneArr(this._rulesWithParentScopes)),this._children[o]=h),h.insert(t+1,l,i,r,s,a)}_doInsertHere(e,t,n,i,r){if(null===t)return void this._mainRule.acceptOverwrite(e,n,i,r);for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let a=this._rulesWithParentScopes[s];if(0===f(a.parentScopes,t))return void a.acceptOverwrite(e,n,i,r)}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new P(e,t,n,i,r))}},T=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),i=e.getTokenType(t),r=e.getFontStyle(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,i,r,s,a,o){let l=e.getLanguageId(t),h=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),u=e.getForeground(t),m=e.getBackground(t);return 0!==n&&(l=n),8!==i&&(h=i),null!==r&&(c=+!!r),-1!==s&&(d=s),0!==a&&(u=a),0!==o&&(m=o),(l|h<<8|c<<10|d<<11|u<<15|m<<24)>>>0}};function L(e,t){var n;let i,r,s=[],a=(n=e,r=(i=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!r)return null;let e=r[0];return r=i.exec(n),e}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=h();if(s.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return s;function l(){if("-"===o){o=a.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=h();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o);t=h()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(E(o)){let e=[];do e.push(o),o=a.next();while(E(o));return n=>t(e,n)}return null}function h(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function E(e){return!!e&&!!e.match(/[\w\.:]+/)}var R=((c=R||{})[c.None=0]="None",c[c.NotBeginString=1]="NotBeginString",c[c.NotEndString=2]="NotEndString",c[c.NotBeginPosition=4]="NotBeginPosition",c[c.DebugCall=8]="DebugCall",c);function I(e){"function"==typeof e.dispose&&e.dispose()}var M=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},O=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},G=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},B=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new M(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new G;for(let n of e)!function(e,t,n,i){let r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let s=n.lookup(t);e instanceof M?D({baseGrammar:s,selfGrammar:r},i):j(e.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);let a=n.injections(e.scopeName);if(a)for(let e of a)i.add(new M(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof M){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function j(e,t,n){t.repository&&t.repository[e]&&$([t.repository[e]],t,n)}function D(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&$(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&$(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function $(e,t,n){for(let i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);let e=i.repository?m({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&$(i.patterns,{...t,repository:e},n);let r=i.include;if(!r)continue;let s=H(r);switch(s.kind){case 0:D({...t,selfGrammar:t.baseGrammar},n);break;case 1:D(t,n);break;case 2:j(s.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let i={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===s.kind?j(s.ruleName,i,n):D(i,n)}else 4===s.kind?n.add(new O(s.scopeName,s.ruleName)):n.add(new M(s.scopeName))}}}var F=class{kind=0},W=class{kind=1},z=class{constructor(e){this.ruleName=e}kind=2},U=class{constructor(e){this.scopeName=e}kind=3},q=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function H(e){if("$base"===e)return new F;if("$self"===e)return new W;let t=e.indexOf("#");return -1===t?new U(e):0===t?new z(e.substring(1)):new q(e.substring(0,t),e.substring(t+1))}var V=/\\(\d+)/,J=/\\(\d+)/g;Symbol("RuleId");var K=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=g.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=g.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?g.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?g.replaceCaptures(this._contentName,e,t):this._contentName}},Q=class extends K{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,i){throw Error("Not supported!")}},X=class extends K{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new en(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Y=class extends K{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Z=class extends K{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,s,a,o,l,h){super(e,t,n,i),this._begin=new en(r,this.id),this.beginCaptures=s,this._end=new en(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ei,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ee=class extends K{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,s,a,o,l){super(e,t,n,i),this._begin=new en(r,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new en(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ei,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ei,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},et=class e{static createCaptureRule(e,t,n,i,r){return e.registerRule(e=>new Q(t,e,n,i,r))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new X(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,i));if(void 0===t.begin){t.repository&&(i=m({},i,t.repository));let r=t.patterns;return void 0===r&&t.include&&(r=[{include:t.include}]),new Y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(r,n,i))}return t.while?new ee(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,i),e._compilePatterns(t.patterns,n,i)):new Z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,e._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let s=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>s&&(s=t)}for(let e=0;e<=s;e++)r[e]=null;for(let s in t){if("$vscodeTextmateLocation"===s)continue;let a=parseInt(s,10),o=0;t[s].patterns&&(o=e.getCompiledRuleId(t[s],n,i)),r[a]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,o)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let s=0,a=t.length;s<a;s++){let a=t[s],o=-1;if(a.include){let t=H(a.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(i[a.include],n,i);break;case 2:let r=i[t.ruleName];r&&(o=e.getCompiledRuleId(r,n,i));break;case 3:case 4:let s=t.scopeName,l=4===t.kind?t.ruleName:null,h=n.getExternalGrammar(s,i);if(h)if(l){let t=h.repository[l];t&&(o=e.getCompiledRuleId(t,n,h.repository))}else o=e.getCompiledRuleId(h.repository.$self,n,h.repository)}}else o=e.getCompiledRuleId(a,n,i);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof Y||e instanceof Z||e instanceof ee)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;r.push(o)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},en=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,i=[],r=!1;for(let s=0;s<t;s++)if("\\"===e.charAt(s)&&s+1<t){const t=e.charAt(s+1);"z"===t?(i.push(e.substring(n,s)),i.push("$(?!\\n)(?<!\\n)"),n=s+2):("A"===t||"G"===t)&&(r=!0),s++}this.hasAnchor=r,0===n?this.source=e:(i.push(e.substring(n,t)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=V.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return J.lastIndex=0,this.source.replace(J,(e,t)=>y(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,i;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=[],s=[],a=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),r[e]=n,s[e]=n,a[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(i=this.source.charAt(e+1))?(r[e+1]="",s[e+1]="",a[e+1]="A",o[e+1]="A"):"G"===i?(r[e+1]="",s[e+1]="G",a[e+1]="",o[e+1]="G"):(r[e+1]=i,s[e+1]=i,a[e+1]=i,o[e+1]=i),e++);return{A0_G0:r.join(""),A0_G1:s.join(""),A1_G0:a.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ei=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new er(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new er(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},er=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},es=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ea=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new es(e,8),this._embeddedLanguagesMatcher=new eo(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new es(0,0);_getBasicScopeAttributes=new _(e=>new es(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eo=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>y(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==u&&u.env.VSCODE_TEXTMATE_DEBUG;var el=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eh(e,t,n,i,r,s,a,o){let l=t.content.length,h=!1,c=-1;if(a){let a=function(e,t,n,i,r,s){let a=r.beginRuleCapturedEOL?0:-1,o=[];for(let t=r;t;t=t.pop()){let n=t.getRule(e);n instanceof ee&&o.push({rule:n,stack:t})}for(let m=o.pop();m;m=o.pop()){var l,h,c,d,u;let{ruleScanner:o,findOptions:p}=(l=m.rule,h=e,c=m.stack.endRule,d=n,u=i===a,{ruleScanner:l.compileWhileAG(h,c,d,u),findOptions:0}),g=o.findNextMatchSync(t,i,p);if(g){if(-2!==g.ruleId){r=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(s.produce(m.stack,g.captureIndices[0].start),ed(e,t,n,m.stack,s,m.rule.whileCaptures,g.captureIndices),s.produce(m.stack,g.captureIndices[0].end),a=g.captureIndices[0].end,g.captureIndices[0].end>i&&(i=g.captureIndices[0].end,n=!1))}else{r=m.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:a,isFirstLine:n}}(e,t,n,i,r,s);r=a.stack,i=a.linePos,n=a.isFirstLine,c=a.anchorPosition}let d=Date.now();for(;!h;){if(0!==o&&Date.now()-d>o)return new el(r,!0);!function(){let a=function(e,t,n,i,r,s){let a=function(e,t,n,i,r,s){let{ruleScanner:a,findOptions:o}=ec(r.getRule(e),e,r.endRule,n,i===s),l=a.findNextMatchSync(t,i,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,i,r,s),o=e.getInjections();if(0===o.length)return a;let l=function(e,t,n,i,r,s,a){let o,l=Number.MAX_VALUE,h=null,c=0,d=s.contentNameScopesList.getScopeNames();for(let s=0,u=e.length;s<u;s++){let u=e[s];if(!u.matcher(d))continue;let{ruleScanner:m,findOptions:p}=ec(t.getRule(u.ruleId),t,null,i,r===a),g=m.findNextMatchSync(n,r,p);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,h=g.captureIndices,o=g.ruleId,c=u.priority,l===r))break}return h?{priorityMatch:-1===c,captureIndices:h,matchedRuleId:o}:null}(o,e,t,n,i,r,s);if(!l)return a;if(!a)return l;let h=a.captureIndices[0].start,c=l.captureIndices[0].start;return c<h||l.priorityMatch&&c===h?l:a}(e,t,n,i,r,c);if(!a){s.produce(r,l),h=!0;return}let o=a.captureIndices,d=a.matchedRuleId,u=!!o&&o.length>0&&o[0].end>i;if(-1===d){let a=r.getRule(e);s.produce(r,o[0].start),r=r.withContentNameScopesList(r.nameScopesList),ed(e,t,n,r,s,a.endCaptures,o),s.produce(r,o[0].end);let d=r;if(r=r.parent,c=d.getAnchorPos(),!u&&d.getEnterPos()===i){r=d,s.produce(r,l),h=!0;return}}else{let a=e.getRule(d);s.produce(r,o[0].start);let m=r,p=a.getName(t.content,o),g=r.contentNameScopesList.pushAttributed(p,e);if(r=r.push(d,i,c,o[0].end===l,null,g,g),a instanceof Z){ed(e,t,n,r,s,a.beginCaptures,o),s.produce(r,o[0].end),c=o[0].end;let i=a.getContentName(t.content,o),d=g.pushAttributed(i,e);if(r=r.withContentNameScopesList(d),a.endHasBackReferences&&(r=r.withEndRule(a.getEndWithResolvedBackReferences(t.content,o))),!u&&m.hasSameRuleAs(r)){r=r.pop(),s.produce(r,l),h=!0;return}}else if(a instanceof ee){ed(e,t,n,r,s,a.beginCaptures,o),s.produce(r,o[0].end),c=o[0].end;let i=a.getContentName(t.content,o),d=g.pushAttributed(i,e);if(r=r.withContentNameScopesList(d),a.whileHasBackReferences&&(r=r.withEndRule(a.getWhileWithResolvedBackReferences(t.content,o))),!u&&m.hasSameRuleAs(r)){r=r.pop(),s.produce(r,l),h=!0;return}}else if(ed(e,t,n,r,s,a.captures,o),s.produce(r,o[0].end),r=r.pop(),!u){r=r.safePop(),s.produce(r,l),h=!0;return}}o[0].end>i&&(i=o[0].end,n=!1)}()}return new el(r,!1)}function ec(e,t,n,i,r){return{ruleScanner:e.compileAG(t,n,i,r),findOptions:0}}function ed(e,t,n,i,r,s,a){if(0===s.length)return;let o=t.content,l=Math.min(s.length,a.length),h=[],c=a[0].end;for(let t=0;t<l;t++){let l=s[t];if(null===l)continue;let d=a[t];if(0===d.length)continue;if(d.start>c)break;for(;h.length>0&&h[h.length-1].endPos<=d.start;)r.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?r.produceFromScopes(h[h.length-1].scopes,d.start):r.produce(i,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,a),s=i.contentNameScopesList.pushAttributed(t,e),h=l.getContentName(o,a),c=s.pushAttributed(h,e),u=i.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,s,c),m=e.createOnigString(o.substring(0,d.end));eh(e,m,n&&0===d.start,d.start,u,r,!1,0),I(m);continue}let u=l.getName(o,a);if(null!==u){let t=(h.length>0?h[h.length-1].scopes:i.contentNameScopesList).pushAttributed(u,e);h.push(new eu(t,d.end))}}for(;h.length>0;)r.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var eu=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function em(e,t,n,i,r){let s=L(t,ep),a=et.getCompiledRuleId(n,i,r.repository);for(let n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:r,priority:n.priority})}function ep(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let i=n;i<t.length;i++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[i],e))return n=i+1,!0;return!1})}var eg=class{constructor(e,t,n,i,r,s,a,o){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=o,this._basicScopeAttributesProvider=new ea(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=ef(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const e of Object.keys(r))for(const t of L(e,ep))this._tokenTypeMatchers.push({matcher:t.matcher,type:r[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let i=n.injections;if(i)for(let t in i)em(e,t,i[t],this,n);let r=this._grammarRepository.injections(t);r&&r.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&em(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ef(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){let i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){let r;if(-1===this._rootId&&(this._rootId=et.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ey.NULL)r=!1,t.reset();else{let e;r=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),i=this.themeProvider.getDefaults(),s=T.set(0,n.languageId,n.tokenType,null,i.fontStyle,i.foregroundId,i.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?eb.createRootAndLookUpScopeName(a,s,this):eb.createRoot("unknown",s),t=new ey(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let s=this.createOnigString(e),a=s.content.length,o=new eS(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eh(this,s,r,0,t,o,!0,i);return I(s),{lineLength:a,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ef(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=e(t[i]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let i in t)n[i]=e(t[i]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eb=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(let t of n)i=new e(i,r=k.push(r,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new k(null,t),n)}static createRootAndLookUpScopeName(t,n,i){let r=i.getMetadataForScope(t),s=new k(null,t),a=i.themeProvider.themeMatch(s),o=e.mergeAttributes(n,r,a);return new e(null,s,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let i=-1,r=0,s=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,s=n.backgroundId),T.set(e,t.languageId,t.tokenType,null,i,r,s)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let i=t.split(/ /g),r=this;for(let t of i)r=e._pushAttributed(r,t,n);return r}static _pushAttributed(t,n,i){let r=i.getMetadataForScope(n),s=t.scopePath.push(n),a=i.themeProvider.themeMatch(s),o=e.mergeAttributes(t.tokenAttributes,r,a);return new e(t,s,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ey=class e{constructor(e,t,n,i,r,s,a,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eb.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,s,a,o){return new e(this,t,n,i,r,s,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let i=eb.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,eb.fromExtension(i,n.contentNameScopesList))}},e_=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):L(e,ep).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>L(e,ep).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eS=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=T.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}if(i&&(n=T.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ek=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,r){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,new eg(e,s,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},ew=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ek(S.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(S.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new e_(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,r){let s=new B(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(e=>this._loadSingleGrammar(e.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,i,r)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,r=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,r)}},eC=ey.NULL,ev=n(51640),eN=n(4918),eA=n(27629);let eP=/["&'<>`]/g,ex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eT=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eL=/[|\\{}()[\]^$+*?.]/g,eE=new WeakMap,eR=/[\dA-Fa-f]/,eI=/\d/;var eM=n(6801);let eO={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eG=["cent","copy","divide","gt","lt","not","para","times"],eB={}.hasOwnProperty,ej={};for(i in eO)eB.call(eO,i)&&(ej[eO[i]]=i);let eD=/[^\dA-Za-z]/;function e$(e,t,n){var i,r;let s,a,o=(i=n.omitOptionalSemicolons,s="&#x"+e.toString(16).toUpperCase(),i&&t&&!eR.test(String.fromCharCode(t))?s:s+";");if((n.useNamedReferences||n.useShortestReferences)&&(a=function(e,t,n,i){let r=String.fromCharCode(e);if(eB.call(ej,r)){let e=ej[r],s="&"+e;return n&&eM.K.includes(e)&&!eG.includes(e)&&(!i||t&&61!==t&&eD.test(String.fromCharCode(t)))?s:s+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let i,s=(r=n.omitOptionalSemicolons,i="&#"+String(e),r&&t&&!eI.test(String.fromCharCode(t))?i:i+";");s.length<o.length&&(o=s)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function eF(e,t){let n;var i,r=e,s=Object.assign({format:e$},t);if(r=r.replace(s.subset?(i=s.subset,(n=eE.get(i))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eL,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(i),eE.set(i,n)),n):eP,a),s.subset||s.escapeOnly)return r;return r.replace(ex,function(e,t,n){return s.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),s)}).replace(eT,a);function a(e,t,n){return s.format(e.charCodeAt(0),n.charCodeAt(t+1),s)}}let eW=/^>|^->|<!--|-->|--!>|<!-$/g,ez=[">"],eU=["<",">"];var eq=n(49884),eH=n(86994),eV=n(38609),eJ=n(51705),eK=n(36887);let eQ=eZ(1),eX=eZ(-1),eY=[];function eZ(e){return function(t,n,i){let r=t?t.children:eY,s=(n||0)+e,a=r[s];if(!i)for(;a&&(0,eK.m)(a);)s+=e,a=r[s];return a}}let e0={}.hasOwnProperty;function e1(e){return function(t,n,i){return e0.call(e,t.tagName)&&e[t.tagName](t,n,i)}}let e2=e1({body:function(e,t,n){let i=eQ(n,t);return!i||"comment"!==i.type},caption:e3,colgroup:e3,dd:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,t,n){let i=eQ(n,t);return!!(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:e3,html:function(e,t,n){let i=eQ(n,t);return!i||"comment"!==i.type},li:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,t,n){let i=eQ(n,t);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:e5,rt:e5,tbody:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:e6,tfoot:function(e,t,n){return!eQ(n,t)},th:e6,thead:function(e,t,n){let i=eQ(n,t);return!!(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&"tr"===i.tagName}});function e3(e,t,n){let i=eQ(n,t,!0);return!i||"comment"!==i.type&&!("text"===i.type&&(0,eK.m)(i.value.charAt(0)))}function e5(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function e6(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}let e8=e1({body:function(e){let t=eQ(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eK.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let i=eX(n,t),r=eQ(e,-1,!0);return!(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&e2(i,n.children.indexOf(i),n))&&!!(r&&"element"===r.type&&"col"===r.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=eQ(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let i=eX(n,t),r=eQ(e,-1);return!(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&e2(i,n.children.indexOf(i),n))&&!!(r&&"element"===r.type&&"tr"===r.tagName)}}),e7={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e4=["<","&"];function e9(e,t,n,i){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eF(e.value,Object.assign({},i.settings.characterReferences,{subset:e4}))}let te=(0,eA.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,i){return i.settings.bogusComments?"<?"+eF(e.value,Object.assign({},i.settings.characterReferences,{subset:ez}))+">":"\x3c!--"+e.value.replace(eW,function(e){return eF(e,Object.assign({},i.settings.characterReferences,{subset:eU}))})+"--\x3e"},doctype:function(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,i){let r,s=i.schema,a="svg"!==s.space&&i.settings.omitOptionalTags,o="svg"===s.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===s.space&&"svg"===e.tagName&&(i.schema=eN.JW);let h=function(e,t){let n,i=[],r=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let r=function(e,t,n){let i,r=(0,eV.I)(e.schema,t),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote;if(r.overloadedBoolean&&(n===r.attribute||""===n)?n=!0:(r.boolean||r.overloadedBoolean)&&("string"!=typeof n||n===r.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eF(r.attribute,Object.assign({},e.settings.characterReferences,{subset:e7.name[s][a]}));return!0===n||(n=Array.isArray(n)?(r.commaSeparated?eH.A:eJ.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(i=eF(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e7.unquoted[s][a]}))),i!==n&&(e.settings.quoteSmart&&(0,eq.D)(n,o)>(0,eq.D)(n,e.alternative)&&(o=e.alternative),i=o+eF(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e7.single:e7.double)[s][a],attribute:!0}))+o),l+(i?"="+i:i))}(e,n,t[n]);r&&i.push(r)}}for(;++r<i.length;){let t=e.settings.tightAttributes?i[r].charAt(i[r].length-1):void 0;r!==i.length-1&&'"'!==t&&"'"!==t&&(i[r]+=" ")}return i.join("")}(i,e.properties),c=i.all("html"===s.space&&"template"===e.tagName?e.content:e);return i.schema=s,c&&(o=!1),!h&&a&&e8(e,t,n)||(l.push("<",e.tagName,h?" "+h:""),o&&("svg"===s.space||i.settings.closeSelfClosing)&&(r=h.charAt(h.length-1),(!i.settings.tightSelfClosing||"/"===r||r&&'"'!==r&&"'"!==r)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),o||a&&e2(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,i){return i.settings.allowDangerousHtml?e.value:e9(e,t,n,i)},root:function(e,t,n,i){return i.all(e)},text:e9}}),tt={},tn={},ti=[];function tr(e,t,n){return te(e,t,n,this)}function ts(e){let t=[],n=e&&e.children||ti,i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function ta(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(let[e,r]of Object.entries(t?.colorReplacements||{}))"string"==typeof r?n[e]=r:e===i&&Object.assign(n,r);return n}function to(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tl(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function th(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tc(e){return"ansi"===e||th(e)}function td(e){return"none"===e}function tu(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function tm(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),i=0,r=[];for(let e=0;e<n.length;e+=2){let s=t?n[e]+(n[e+1]||""):n[e];r.push([s,i]),i+=n[e].length,i+=n[e+1]?.length||0}return r}let tp="light-dark()",tg=["color","background-color"];function tf(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&v.Italic&&(t["font-style"]="italic"),e.fontStyle&v.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&v.Underline&&n.push("underline"),e.fontStyle&v.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tb(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let ty=new WeakMap;function t_(e,t){ty.set(e,t)}function tS(e){return ty.get(e)}class tk{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tk(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,eC])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,i]=e;this.lang=n,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,i;return t=this._stacks[e],n=[],i=new Set,!function e(t){if(i.has(t))return;i.add(t);let r=t?.nameScopesList?.scopeName;r&&n.push(r),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tw=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let i,r=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new l(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...s.indexToPos(e),offset:e}}{let t=s.lines[e.line];if(void 0===t)throw new l(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${s.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new l(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:s.posToIndex(e.line,n)}}},s={lines:i=tm(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,r=0;for(let e of i){if(t<e.length)break;t-=e.length,r++}return{line:r,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=i[t].length;return n+t}},a=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new l(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],r=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,a=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(r||s||a||o){if(r&&s||a&&o||a&&n.start.offset===n.end.offset||s&&t.start.offset===t.end.offset)continue;throw new l(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:s,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let n;if(!this.options.decorations?.length)return;let i=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(n=Array.from(i instanceof Set?i:new Set(i)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let i=0,r=[];for(let n of t)n>i&&r.push({...e,content:e.content.slice(i,n),offset:e.offset+i}),i=n;return i<e.content.length&&r.push({...e,content:e.content.slice(i),offset:e.offset+i}),r})):e},code(e){if(!this.options.decorations?.length)return;let n=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==n.converter.lines.length)throw new l(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(e,t,n,r){let a=i[e],o="",h=-1,c=-1;if(0===t&&(h=0),0===n&&(c=0),n===1/0&&(c=a.children.length),-1===h||-1===c)for(let e=0;e<a.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===h&&o.length===t&&(h=e+1),-1===c&&o.length===n&&(c=e+1);if(-1===h)throw new l(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===c)throw new l(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);let d=a.children.slice(h,c);if(r.alwaysWrap||d.length!==a.children.length)if(r.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};s(e,r,"wrapper"),a.children.splice(h,d.length,e)}else s(d[0],r,"token");else s(a,r,"line")}function s(e,t,n){let i=t.properties||{},r=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},t.properties?.class&&tu(e,t.properties.class),e=r(e,n)||e}let a=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)r(t.line,t.character,n.character,e);else if(t.line<n.line){r(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)a.unshift(()=>{var t;i[t=r]=s(i[t],e,"line")});r(n.line,0,n.character,e)}}a.forEach(e=>e())}}}()];function tC(e){let t=function(e){let t=[],n=[],i=[];for(let r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tw]}var tv=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tN={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tA(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tP={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tx={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function tT(e,t,n={}){var i,r;let s,a,{theme:o=e.getLoadedThemes()[0]}=n,h=e.resolveLangAlias(n.lang||"text");if(th(h)||td(o))return tm(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:d}=e.setTheme(o);if("ansi"===h){let e,i,r,s,a,o,l;return e=ta(c,n),i=tm(t),r=function(e=tP){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(i){switch(i.type){case"named":return e[i.name];case"rgb":return n(i.rgb);case"table":var r;return r=i.index,function(){if(t)return t;t=[];for(let n=0;n<tv.length;n++)t.push(e[tv[n]]);let i=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let r=0;r<6;r++)for(let s=0;s<6;s++)t.push(n([i[e],i[r],i[s]]));let r=8;for(let e=0;e<24;e++,r+=10)t.push(n([r,r,r]));return t}()[r]}}}}(Object.fromEntries(tv.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||tx[e]]}))),s=null,a=null,o=new Set,l={parse(e){let t=[],n=0;do{let i=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),r=i.sequence?e.substring(n,i.startPosition):e.substring(n);if(r.length>0&&t.push({value:r,foreground:s,background:a,decorations:new Set(o)}),i.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let i=Number.parseInt(n);if(!Number.isNaN(i))if(0===i)t.push({type:"resetAll"});else if(i<=9)tN[i]&&t.push({type:"setDecoration",value:tN[i]});else if(i<=29){let e=tN[i-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tv[i-30]}});else if(38===i){let n=tA(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tv[i-40]}});else if(48===i){let n=tA(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===i?t.push({type:"resetBackgroundColor"}):53===i?t.push({type:"setDecoration",value:"overline"}):55===i?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tv[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tv[i-100+8]}})}return t}(i.sequence);for(let t of e)"resetAll"===t.type?(s=null,a=null,o.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?a=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?a=t.value:"setDecoration"===t.type&&o.add(t.value)}n=i.position}while(n<e.length);return t}},i.map(t=>l.parse(t[0]).map(n=>{let i,s;n.decorations.has("reverse")?(i=n.background?r.value(n.background):c.bg,s=n.foreground?r.value(n.foreground):c.fg):(i=n.foreground?r.value(n.foreground):c.fg,s=n.background?r.value(n.background):void 0),i=to(i,e),s=to(s,e),n.decorations.has("dim")&&(i=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],i=e[2],r=e[3],s=Math.round(Number.parseInt(`${r}${r}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${i}${i}${s}`}else if(3===e.length){let t=e[0],n=e[1],i=e[2];return`#${t}${t}${n}${n}${i}${i}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(i));let a=v.None;return n.decorations.has("bold")&&(a|=v.Bold),n.decorations.has("italic")&&(a|=v.Italic),n.decorations.has("underline")&&(a|=v.Underline),n.decorations.has("strikethrough")&&(a|=v.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:s,fontStyle:a}}))}let u=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==u.name)throw new l(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(c.name))throw new l(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return a=new tk((s=tL(t,i=u,r=c,d,n)).stateStack,i.name,r.name),t_(s.tokens,a),s.tokens}function tL(e,t,n,i,r){let s=ta(n,r),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=r,h=tm(e),c=r.grammarState?function(e,t){if(!(e instanceof tk))throw new l("Invalid grammar state");return e.getInternalStack(t)}(r.grammarState,n.name)??eC:null!=r.grammarContextCode?tL(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:eC,d=[],u=[];for(let e=0,l=h.length;e<l;e++){let l,m,[p,g]=h[e];if(""===p){d=[],u.push([]);continue}if(a>0&&p.length>=a){d=[],u.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}r.includeExplanation&&(l=t.tokenizeLine(p,c,o).tokens,m=0);let f=t.tokenizeLine2(p,c,o),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],a=e+1<b?f.tokens[2*e+2]:p.length;if(t===a)continue;let o=f.tokens[2*e+1],h=to(i[T.getForeground(o)],s),c=T.getFontStyle(o),u={content:p.substring(t,a),offset:g+t,color:h,fontStyle:c};if(r.includeExplanation){let e=[];if("scopeName"!==r.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}u.explanation=[];let i=0;for(;t+i<a;){let t=l[m],n=p.substring(t.startIndex,t.endIndex);i+=n.length,u.explanation.push({content:n,scopes:"scopeName"===r.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];n[i]={scopeName:r,themeMatches:function(e,t,n){let i=[];for(let{selectors:r,settings:s}of e)for(let e of r)if(function(e,t,n){if(!tE(e[e.length-1],t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)tE(e[i],n[r])&&(i-=1),r-=1;return -1===i}(e,t,n)){i.push(s);break}return i}(e,r,t.slice(0,i))}}return n}(e,t.scopes)}),m+=1}}d.push(u)}u.push(d),d=[],c=f.ruleStack}return{tokens:u,stateStack:c}}function tE(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tR(e,t,n){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),r=i.map(i=>{let r=tT(e,t,{...n,theme:i.theme}),s=tS(r);return{tokens:r,state:s,theme:"string"==typeof i.theme?i.theme:i.theme.name}}),s=function(...e){let t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){let r=e.map(e=>e[i]),s=t.map(()=>[]);t.forEach((e,t)=>e.push(s[t]));let a=r.map(()=>0),o=r.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(s[t].push(n),a[t]+=1,o[t]=r[t][a[t]]):(s[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...r.map(e=>e.tokens)),a=s[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),s.forEach((e,n)=>{let{content:s,explanation:o,offset:l,...h}=e[t][r];a.variants[i[n].color]=h}),a})),o=r[0].state?new tk(Object.fromEntries(r.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),r[0].state.lang):void 0;return o&&t_(a,o),a}function tI(e,t,n){let i,r,s,a,o,h;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:u="css-vars"}=n,m=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===m.length)throw new l("`themes` option must not be empty");let p=tR(e,t,n);if(h=tS(p),c&&tp!==c&&!m.find(e=>e.color===c))throw new l(`\`themes\` option must contain the defaultColor key \`${c}\``);let g=m.map(t=>e.getTheme(t.theme)),f=m.map(e=>e.color);s=p.map(e=>e.map(e=>(function(e,t,n,i,r="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>tf(e.variants[t])),o=new Set(a.flatMap(e=>Object.keys(e))),h={},c=(e,i)=>{let r="color"===i?"":"background-color"===i?"-bg":`-${i}`;return n+t[e]+("color"===i?"":r)};return a.forEach((e,n)=>{for(let s of o){let o=e[s]||"inherit";if(0===n&&i&&tg.includes(s))if(i===tp&&a.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new l('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=a[e][s]||"inherit",u=a[i][s]||"inherit";h[s]=`light-dark(${d}, ${u})`,"css-vars"===r&&(h[c(n,s)]=o)}else h[s]=o;else"css-vars"===r&&(h[c(n,s)]=o)}}),s.htmlStyle=h,s})(e,f,d,c,u))),h&&t_(s,h);let b=m.map(e=>ta(e.theme,n));r=tM(m,g,b,d,c,"fg",u),i=tM(m,g,b,d,c,"bg",u),a=`shiki-themes ${g.map(e=>e.name).join(" ")}`,o=c?void 0:[r,i].join(";")}else if("theme"in n){let o=ta(n.theme,n);s=tT(e,t,n);let l=e.getTheme(n.theme);i=to(l.bg,o),r=to(l.fg,o),a=l.name,h=tS(s)}else throw new l("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:r,bg:i,themeName:a,rootStyle:o,grammarState:h}}function tM(e,t,n,i,r,s,a){return e.map((o,h)=>{let c=to(t[h][s],n[h])||"inherit",d=`${i+o.color}${"bg"===s?"-bg":""}:${c}`;if(0===h&&r){if(r===tp&&e.length>1){let i=e.findIndex(e=>"light"===e.color),r=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===r)throw new l('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let a=to(t[i][s],n[i])||"inherit",o=to(t[r][s],n[r])||"inherit";return`light-dark(${a}, ${o});${d}`}return c}return"css-vars"===a?d:null}).filter(e=>!!e).join(";")}function tO(e,t,n,i={meta:{},options:n,codeToHast:(t,n)=>tO(e,t,n),codeToTokens:(t,n)=>tI(e,t,n)}){let r=t;for(let e of tC(n))r=e.preprocess?.call(i,r,n)||r;let{tokens:s,fg:a,bg:o,themeName:l,rootStyle:h,grammarState:c}=tI(e,r,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:u=!1}=n;!0===d?s=s.map(e=>{let t,n=[],i="";return e.forEach((r,s)=>{let a=!(r.fontStyle&&(r.fontStyle&v.Underline||r.fontStyle&v.Strikethrough));a&&r.content.match(/^\s+$/)&&e[s+1]?(void 0===t&&(t=r.offset),i+=r.content):i?(a?n.push({...r,offset:t,content:i+r.content}):n.push({content:i,offset:t},r),t=void 0,i=""):n.push(r)}),n}):"never"===d&&(s=s.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,i,r]=t;if(!n&&!r)return e;let s=[{...e,offset:e.offset+n.length,content:i}];return n&&s.unshift({content:n,offset:e.offset}),r&&s.push({content:r,offset:e.offset+n.length+i.length}),s}))),u&&(s=s.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],i=tb(e.htmlStyle||tf(e)),r=tb(n.htmlStyle||tf(n)),s=e.fontStyle&&(e.fontStyle&v.Underline||e.fontStyle&v.Strikethrough),a=n.fontStyle&&(n.fontStyle&v.Underline||n.fontStyle&v.Strikethrough);s||a||i!==r?t.push({...n}):e.content+=n.content}return t}));let m={...i,get source(){return r}};for(let e of tC(n))s=e.tokens?.call(m,s)||s;return function(e,t,n,i=tS(e)){let r=tC(t),s=[],a={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,h={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?h.style=t.rootStyle:h.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(h.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(h[e]=n);let c={type:"element",tagName:"pre",properties:h,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:s},u=[],m={...n,structure:o,addClassToHast:tu,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return c},get code(){return d},get lines(){return u}};if(e.forEach((e,t)=>{t&&("inline"===o?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&s.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(let s of e){let e={type:"element",tagName:"span",properties:{...s.htmlAttrs},children:[{type:"text",value:s.content}]},l=tb(s.htmlStyle||tf(s));for(let a of(l&&(e.properties.style=l),r))e=a?.span?.call(m,e,t+1,i,n,s)||e;"inline"===o?a.children.push(e):"classic"===o&&n.children.push(e),i+=s.content.length}if("classic"===o){for(let e of r)n=e?.line?.call(m,n,t+1)||n;u.push(n),s.push(n)}else"inline"===o&&u.push(n)}),"classic"===o){for(let e of r)d=e?.code?.call(m,d)||d;for(let e of(c.children.push(d),r))c=e?.pre?.call(m,c)||c;a.children.push(c)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of a.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of r)n=e?.code?.call(m,n)||n;a.children=[];for(let e=0;e<n.children.length;e++){e>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&a.children.push(...t.children)}}let p=a;for(let e of r)p=e?.root?.call(m,p)||p;return i&&t_(p,i),p}(s,{...n,fg:a,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??h)},m,c)}let tG=function(e,t){let n=t||tt,i=n.quote||'"';if('"'!==i&&"'"!==i)throw Error("Invalid quote `"+i+"`, expected `'` or `\"`");return({one:tr,all:ts,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ev.b,characterReferences:n.characterReferences||tn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?eN.JW:eN.qy,quote:i,alternative:'"'===i?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tB="__shiki_resolved";function tj(e){if(e?.[tB])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0,s=new Map;function a(e){if(s.has(e))return s.get(e);r+=1;let n=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(s.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!i)return e;let r={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,r.settings.foreground=n}if(i){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,r.settings.background=n}return r}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tB,{enumerable:!1,writable:!1,value:!0}),t}async function tD(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tc(e)).map(async e=>await tl(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function t$(e){return(await Promise.all(e.map(async e=>td(e)?null:tj(await tl(e))))).filter(e=>!!e)}class tF extends Error{constructor(e){super(e),this.name="ShikiError"}}function tW(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new tF(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class tz extends ew{constructor(e,t,n,i={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tj(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=S.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tW(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let i=t.embeddedLanguages||t.embeddedLangs;return i?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new tF(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class tU{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let i=t.slice(0,e).join(".");n=[...n,...this._injections.get(i)||[]]}return n}}let tq=0;async function tH(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,i]=await Promise.all([t$(e.themes||[]),tD(e.langs||[]),e.engine]);return function(e){let t;tq+=1,!1!==e.warnings&&tq>=10&&tq%10==0&&console.warn(`[Shiki] ${tq} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new tF("`engine` option is required for synchronous mode");let i=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(tj),s=new tz(new tU(e.engine,i),r,i,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};h();let t=s.getTheme(e);if(!t)throw new tF(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){h(),s.loadLanguages(e.flat(1))}function l(...e){for(let t of(h(),e.flat(1)))s.loadTheme(t)}function h(){if(n)throw new tF("Shiki instance has been disposed")}function c(){n||(n=!0,s.dispose(),tq-=1)}return{setTheme:function(e){h();let n=a(e);return t!==e&&(s.setTheme(n),t=e),{theme:n,colorMap:s.getColorMap()}},getTheme:a,getLanguage:function(e){h();let t=s.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tF(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return h(),s.getLoadedThemes()},getLoadedLanguages:function(){return h(),s.getLoadedLanguages()},resolveLangAlias:function(t){return tW(t,e.langAlias)},loadLanguage:async function(...e){return o(await tD(e))},loadLanguageSync:o,loadTheme:async function(...e){return h(),l(await t$(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:i})}async function tV(e){let t=await tH(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tS(e[1]);let[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(th(r)||td(s))throw new l("Plain language does not have grammar state");if("ansi"===r)throw new l("ANSI language does not have grammar state");let{theme:a,colorMap:o}=t.setTheme(s),h=t.getLanguage(r);return new tk(tL(n,h,a,o,i).stateStack,h.name,a.name)})(t,...e),codeToTokensBase:(e,n)=>tT(t,e,n),codeToTokensWithThemes:(e,n)=>tR(t,e,n),codeToTokens:(e,n)=>tI(t,e,n),codeToHast:(e,n)=>tO(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let i={meta:{},options:n,codeToHast:(t,n)=>tO(e,t,n),codeToTokens:(t,n)=>tI(e,t,n)},r=tG(tO(e,t,n,i));for(let e of tC(n))r=e.postprocess?.call(i,r,n)||r;return r})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let tJ=[{id:"abap",name:"ABAP",import:()=>n.e(8773).then(n.bind(n,48773))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(36).then(n.bind(n,10036))},{id:"ada",name:"Ada",import:()=>n.e(5575).then(n.bind(n,55575))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3175)]).then(n.bind(n,23175))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(2577),n.e(1630),n.e(3782),n.e(3476),n.e(3111),n.e(3186)]).then(n.bind(n,76359))},{id:"apache",name:"Apache Conf",import:()=>n.e(2765).then(n.bind(n,52765))},{id:"apex",name:"Apex",import:()=>n.e(7455).then(n.bind(n,27455))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(4174)]).then(n.bind(n,54174))},{id:"applescript",name:"AppleScript",import:()=>n.e(9178).then(n.bind(n,19178))},{id:"ara",name:"Ara",import:()=>n.e(3313).then(n.bind(n,93313))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(8318).then(n.bind(n,98318))},{id:"asm",name:"Assembly",import:()=>n.e(7846).then(n.bind(n,87846))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(3782),n.e(6686)]).then(n.bind(n,36686))},{id:"awk",name:"AWK",import:()=>n.e(4900).then(n.bind(n,54900))},{id:"ballerina",name:"Ballerina",import:()=>n.e(2747).then(n.bind(n,92747))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3290).then(n.bind(n,73290))},{id:"beancount",name:"Beancount",import:()=>n.e(8496).then(n.bind(n,98496))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(5331).then(n.bind(n,95331))},{id:"bibtex",name:"BibTeX",import:()=>n.e(5937).then(n.bind(n,25937))},{id:"bicep",name:"Bicep",import:()=>n.e(8406).then(n.bind(n,68406))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(5005)]).then(n.bind(n,25005))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(4608).then(n.bind(n,4608))},{id:"c",name:"C",import:()=>n.e(8192).then(n.bind(n,88192))},{id:"c3",name:"C3",import:()=>n.e(7113).then(n.bind(n,7113))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(4242).then(n.bind(n,64242))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(893),n.e(4367)]).then(n.bind(n,84367))},{id:"clarity",name:"Clarity",import:()=>n.e(5183).then(n.bind(n,15183))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(6959).then(n.bind(n,66959))},{id:"cmake",name:"CMake",import:()=>n.e(5482).then(n.bind(n,55482))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(5498)]).then(n.bind(n,15498))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(1188).then(n.bind(n,21188))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(2403).then(n.bind(n,22403))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(2577),n.e(6647)]).then(n.bind(n,76647))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(3787).then(n.bind(n,93787))},{id:"coq",name:"Coq",import:()=>n.e(5920).then(n.bind(n,55920))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(6110)]).then(n.bind(n,27816))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(8192),n.e(7152),n.e(1413)]).then(n.bind(n,21413))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(9261).then(n.bind(n,71642))},{id:"css",name:"CSS",import:()=>n.e(3782).then(n.bind(n,63782))},{id:"csv",name:"CSV",import:()=>n.e(6331).then(n.bind(n,66331))},{id:"cue",name:"CUE",import:()=>n.e(5338).then(n.bind(n,45338))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(4350).then(n.bind(n,14350))},{id:"d",name:"D",import:()=>n.e(9015).then(n.bind(n,59015))},{id:"dart",name:"Dart",import:()=>n.e(3288).then(n.bind(n,3288))},{id:"dax",name:"DAX",import:()=>n.e(1932).then(n.bind(n,21932))},{id:"desktop",name:"Desktop",import:()=>n.e(7819).then(n.bind(n,7819))},{id:"diff",name:"Diff",import:()=>n.e(2614).then(n.bind(n,62614))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(2783).then(n.bind(n,52783))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4829).then(n.bind(n,44829))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(425).then(n.bind(n,32806))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(7844)]).then(n.bind(n,67844))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(698)]).then(n.bind(n,20698))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(8192),n.e(4583)]).then(n.bind(n,84583))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(3879).then(n.bind(n,62965))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848),n.e(1198)]).then(n.bind(n,91198))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(3304),n.e(4678)]).then(n.bind(n,64678))},{id:"fennel",name:"Fennel",import:()=>n.e(2964).then(n.bind(n,60583))},{id:"fish",name:"Fish",import:()=>n.e(2349).then(n.bind(n,52349))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(6293).then(n.bind(n,26293))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(4823),n.e(5061)]).then(n.bind(n,85061))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(4823).then(n.bind(n,94823))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(3304),n.e(2501)]).then(n.bind(n,52501))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(8670).then(n.bind(n,98670))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(4223).then(n.bind(n,34223))},{id:"gdshader",name:"GDShader",import:()=>n.e(7977).then(n.bind(n,67977))},{id:"genie",name:"Genie",import:()=>n.e(2031).then(n.bind(n,42031))},{id:"gherkin",name:"Gherkin",import:()=>n.e(8457).then(n.bind(n,88457))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(2041).then(n.bind(n,92041))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(7152),n.e(3194)]).then(n.bind(n,33194))},{id:"gleam",name:"Gleam",import:()=>n.e(2895).then(n.bind(n,62895))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(640)]).then(n.bind(n,30640))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(9186)]).then(n.bind(n,59186))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(8192),n.e(6887)]).then(n.bind(n,6887))},{id:"gn",name:"GN",import:()=>n.e(9448).then(n.bind(n,99448))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(9690).then(n.bind(n,79690))},{id:"go",name:"Go",import:()=>n.e(4553).then(n.bind(n,64553))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(1248)]).then(n.bind(n,41248))},{id:"groovy",name:"Groovy",import:()=>n.e(9189).then(n.bind(n,39189))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(400)]).then(n.bind(n,70400))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3437)]).then(n.bind(n,63437))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2735)]).then(n.bind(n,12735))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(1335).then(n.bind(n,21335))},{id:"haxe",name:"Haxe",import:()=>n.e(1215).then(n.bind(n,11215))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(2374).then(n.bind(n,82374))},{id:"hjson",name:"Hjson",import:()=>n.e(9421).then(n.bind(n,79421))},{id:"hlsl",name:"HLSL",import:()=>n.e(10).then(n.bind(n,80010))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476)]).then(n.bind(n,43476))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(1656)]).then(n.bind(n,51656))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(7152),n.e(1248),n.e(8243)]).then(n.bind(n,98243))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(1248),n.e(816)]).then(n.bind(n,20816))},{id:"hxml",name:"HXML",import:()=>n.e(376).then(n.bind(n,50376))},{id:"hy",name:"Hy",import:()=>n.e(6938).then(n.bind(n,26938))},{id:"imba",name:"Imba",import:()=>n.e(794).then(n.bind(n,30794))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(4309).then(n.bind(n,34309))},{id:"java",name:"Java",import:()=>n.e(6931).then(n.bind(n,76931))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(2577).then(n.bind(n,52970))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3392)]).then(n.bind(n,43392))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(2577),n.e(6402)]).then(n.bind(n,36402))},{id:"json",name:"JSON",import:()=>n.e(4053).then(n.bind(n,4053))},{id:"json5",name:"JSON5",import:()=>n.e(3860).then(n.bind(n,63860))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(4650).then(n.bind(n,4650))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(1453).then(n.bind(n,91453))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(8132).then(n.bind(n,8132))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(4634).then(n.bind(n,24634))},{id:"jsx",name:"JSX",import:()=>n.e(9312).then(n.bind(n,29228))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(2577),n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(893),n.e(6339)]).then(n.bind(n,85816))},{id:"kdl",name:"KDL",import:()=>n.e(5968).then(n.bind(n,95968))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(6572).then(n.bind(n,26572))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(583).then(n.bind(n,50583))},{id:"latex",name:"LaTeX",import:()=>n.e(2839).then(n.bind(n,72839))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(7227).then(n.bind(n,77227))},{id:"less",name:"Less",import:()=>n.e(1280).then(n.bind(n,11280))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5347)]).then(n.bind(n,25347))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9220).then(n.bind(n,19220))},{id:"log",name:"Log file",import:()=>n.e(6741).then(n.bind(n,16741))},{id:"logo",name:"Logo",import:()=>n.e(5670).then(n.bind(n,25670))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(8192),n.e(3873)]).then(n.bind(n,33873))},{id:"luau",name:"Luau",import:()=>n.e(3072).then(n.bind(n,33072))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(541).then(n.bind(n,30541))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(3304).then(n.bind(n,13304))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(535),n.e(3782),n.e(3111),n.e(1280),n.e(5645)]).then(n.bind(n,65645))},{id:"matlab",name:"MATLAB",import:()=>n.e(1184).then(n.bind(n,31184))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3304),n.e(6729)]).then(n.bind(n,86729))},{id:"mdx",name:"MDX",import:()=>n.e(5690).then(n.bind(n,55690))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(9842).then(n.bind(n,29842))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1501).then(n.bind(n,11501))},{id:"mojo",name:"Mojo",import:()=>n.e(194).then(n.bind(n,50194))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(4567).then(n.bind(n,24567))},{id:"move",name:"Move",import:()=>n.e(4540).then(n.bind(n,24540))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6455).then(n.bind(n,36455))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(5320).then(n.bind(n,35320))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(8192),n.e(2215)]).then(n.bind(n,2215))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(8192),n.e(3304),n.e(7799)]).then(n.bind(n,7799))},{id:"nix",name:"Nix",import:()=>n.e(6099).then(n.bind(n,86099))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(8288).then(n.bind(n,38288))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(6290).then(n.bind(n,36290))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(4763).then(n.bind(n,21946))},{id:"ocaml",name:"OCaml",import:()=>n.e(3419).then(n.bind(n,3419))},{id:"odin",name:"Odin",import:()=>n.e(9547).then(n.bind(n,69547))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(4474).then(n.bind(n,4474))},{id:"pascal",name:"Pascal",import:()=>n.e(6948).then(n.bind(n,46948))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(968)]).then(n.bind(n,30968))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(6155),n.e(7040)]).then(n.bind(n,86155))},{id:"pkl",name:"Pkl",import:()=>n.e(6166).then(n.bind(n,96166))},{id:"plsql",name:"PL/SQL",import:()=>n.e(8947).then(n.bind(n,48947))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(3324).then(n.bind(n,43324))},{id:"polar",name:"Polar",import:()=>n.e(3095).then(n.bind(n,93095))},{id:"postcss",name:"PostCSS",import:()=>n.e(9240).then(n.bind(n,19240))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(9294).then(n.bind(n,19294))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(7636).then(n.bind(n,7636))},{id:"prisma",name:"Prisma",import:()=>n.e(327).then(n.bind(n,40327))},{id:"prolog",name:"Prolog",import:()=>n.e(34).then(n.bind(n,80034))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(8545).then(n.bind(n,58545))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5755)]).then(n.bind(n,55755))},{id:"puppet",name:"Puppet",import:()=>n.e(9569).then(n.bind(n,19569))},{id:"purescript",name:"PureScript",import:()=>n.e(6580).then(n.bind(n,36580))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(893).then(n.bind(n,40893))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(2577),n.e(3077)]).then(n.bind(n,73077))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6144).then(n.bind(n,46144))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(5712).then(n.bind(n,55712))},{id:"r",name:"R",import:()=>n.e(5025).then(n.bind(n,25025))},{id:"racket",name:"Racket",import:()=>n.e(3229).then(n.bind(n,3229))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(252).then(n.bind(n,30252))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(9261),n.e(4903)]).then(n.bind(n,84903))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5997).then(n.bind(n,85997))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(6412).then(n.bind(n,86412))},{id:"rel",name:"Rel",import:()=>n.e(2062).then(n.bind(n,62062))},{id:"riscv",name:"RISC-V",import:()=>n.e(2710).then(n.bind(n,52710))},{id:"ron",name:"RON",import:()=>n.e(862).then(n.bind(n,80862))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(5728).then(n.bind(n,95728))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(123)]).then(n.bind(n,52504))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848)]).then(n.bind(n,72331))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(1161).then(n.bind(n,61161))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(2503),n.e(6360)]).then(n.bind(n,66360))},{id:"sass",name:"Sass",import:()=>n.e(8113).then(n.bind(n,88113))},{id:"scala",name:"Scala",import:()=>n.e(9377).then(n.bind(n,89377))},{id:"scheme",name:"Scheme",import:()=>n.e(7142).then(n.bind(n,97142))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(3782),n.e(3111)]).then(n.bind(n,43111))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9648).then(n.bind(n,59648))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(1379).then(n.bind(n,1379))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(7152).then(n.bind(n,57152))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(7152),n.e(8257)]).then(n.bind(n,8257))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(1556).then(n.bind(n,61556))},{id:"solidity",name:"Solidity",import:()=>n.e(8704).then(n.bind(n,38704))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2728)]).then(n.bind(n,72728))},{id:"sparql",name:"SPARQL",import:()=>n.e(8432).then(n.bind(n,68432))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(7610).then(n.bind(n,47610))},{id:"sql",name:"SQL",import:()=>n.e(2503).then(n.bind(n,2503))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(6046).then(n.bind(n,16046))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(2503),n.e(4080)]).then(n.bind(n,64080))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(7557).then(n.bind(n,97557))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(2577),n.e(830)]).then(n.bind(n,30830))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(1142)]).then(n.bind(n,81142))},{id:"swift",name:"Swift",import:()=>n.e(5922).then(n.bind(n,35922))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3274).then(n.bind(n,90893))},{id:"systemd",name:"Systemd Units",import:()=>n.e(9006).then(n.bind(n,9006))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(1078).then(n.bind(n,21078))},{id:"tasl",name:"Tasl",import:()=>n.e(4963).then(n.bind(n,94963))},{id:"tcl",name:"Tcl",import:()=>n.e(1274).then(n.bind(n,41274))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(4553),n.e(1977)]).then(n.bind(n,81977))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(3483).then(n.bind(n,43483))},{id:"tex",name:"TeX",import:()=>n.e(1456).then(n.bind(n,11456))},{id:"toml",name:"TOML",import:()=>n.e(4163).then(n.bind(n,84163))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(4357)]).then(n.bind(n,74357))},{id:"tsv",name:"TSV",import:()=>n.e(840).then(n.bind(n,30840))},{id:"tsx",name:"TSX",import:()=>n.e(6814).then(n.bind(n,33710))},{id:"turtle",name:"Turtle",import:()=>n.e(1365).then(n.bind(n,41365))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(3111),n.e(8848),n.e(6155),n.e(6588)]).then(n.bind(n,96588))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(535).then(n.bind(n,5346))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(9466).then(n.bind(n,19466))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(2013).then(n.bind(n,62013))},{id:"v",name:"V",import:()=>n.e(7525).then(n.bind(n,7525))},{id:"vala",name:"Vala",import:()=>n.e(9565).then(n.bind(n,59565))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2179).then(n.bind(n,62179))},{id:"verilog",name:"Verilog",import:()=>n.e(7182).then(n.bind(n,34801))},{id:"vhdl",name:"VHDL",import:()=>n.e(7425).then(n.bind(n,37425))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(4539).then(n.bind(n,14539))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(5553)]).then(n.bind(n,45553))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(2577),n.e(7021)]).then(n.bind(n,17021))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(2577),n.e(1290),n.e(3782),n.e(3111),n.e(1280),n.e(2160)]).then(n.bind(n,98110))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(1219).then(n.bind(n,21219))},{id:"wasm",name:"WebAssembly",import:()=>n.e(4275).then(n.bind(n,84275))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(7650).then(n.bind(n,65269))},{id:"wgsl",name:"WGSL",import:()=>n.e(4976).then(n.bind(n,44976))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(4370).then(n.bind(n,44370))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(624).then(n.bind(n,58243))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(7442).then(n.bind(n,6987))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(6931),n.e(4659)]).then(n.bind(n,77040))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(6931),n.e(3942)]).then(n.bind(n,3942))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(5518).then(n.bind(n,95518))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2485).then(n.bind(n,92485))},{id:"zig",name:"Zig",import:()=>n.e(7041).then(n.bind(n,57041))}],tK=Object.fromEntries(tJ.map(e=>[e.id,e.import])),tQ=Object.fromEntries(tJ.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),tX={...tK,...tQ},tY=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2812).then(n.bind(n,62812))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(7635).then(n.bind(n,27635))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7884).then(n.bind(n,77884))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(4358).then(n.bind(n,94358))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(9005).then(n.bind(n,19005))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1595).then(n.bind(n,51595))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(3979).then(n.bind(n,83979))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(9680).then(n.bind(n,59680))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(2107).then(n.bind(n,2107))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(5375).then(n.bind(n,75375))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(5136).then(n.bind(n,55136))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(4295).then(n.bind(n,4295))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(7258).then(n.bind(n,87258))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9996).then(n.bind(n,49996))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(9224).then(n.bind(n,39224))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(6704).then(n.bind(n,86704))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(6927).then(n.bind(n,96927))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(5424).then(n.bind(n,15424))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3082).then(n.bind(n,23082))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(9382).then(n.bind(n,69382))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(2130).then(n.bind(n,32130))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(9666).then(n.bind(n,49666))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(392).then(n.bind(n,80392))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(9841).then(n.bind(n,49841))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(3492).then(n.bind(n,53492))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(214).then(n.bind(n,214))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(579).then(n.bind(n,60579))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(6311).then(n.bind(n,96311))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(7524).then(n.bind(n,7524))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(6563).then(n.bind(n,56563))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(6701).then(n.bind(n,26701))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(7785).then(n.bind(n,97785))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(9136).then(n.bind(n,19136))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(2489).then(n.bind(n,82489))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1247).then(n.bind(n,21247))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(6859).then(n.bind(n,76859))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(7921).then(n.bind(n,67921))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(6846).then(n.bind(n,96846))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(3074).then(n.bind(n,83074))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(9521).then(n.bind(n,89521))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(6089).then(n.bind(n,6089))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5520).then(n.bind(n,15520))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(4969).then(n.bind(n,44969))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(2954).then(n.bind(n,92954))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(5491).then(n.bind(n,5491))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(9615).then(n.bind(n,9615))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7625).then(n.bind(n,67625))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(1534).then(n.bind(n,21534))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8430).then(n.bind(n,28430))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(8555).then(n.bind(n,48555))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(7082).then(n.bind(n,87082))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(1583).then(n.bind(n,1583))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(5750).then(n.bind(n,35750))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(7465).then(n.bind(n,17465))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(1898).then(n.bind(n,21898))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(7130).then(n.bind(n,67130))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(966).then(n.bind(n,966))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1664).then(n.bind(n,31664))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(3286).then(n.bind(n,83286))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(4593).then(n.bind(n,94593))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(9267).then(n.bind(n,39267))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(7889).then(n.bind(n,47889))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(5318).then(n.bind(n,55318))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8656).then(n.bind(n,78656))}].map(e=>[e.id,e.import]));var tZ=n(49304).Buffer;class t0 extends Error{constructor(e){super(e),this.name="ShikiError"}}function t1(){return"u">typeof performance?performance.now():Date.now()}let t2=(e,t)=>e+(t-e%t)%t;async function t3(e){let t,n,i={};function r(e){n=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}let s="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let i=t+n,r=t;for(;e[r]&&!(r>=i);)++r;if(r-t>16&&e.buffer&&s)return s.decode(e.subarray(t,r));let a="";for(;t<r;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let i=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|i);continue}let r=63&e[t++];if((n=(240&n)==224?(15&n)<<12|i<<6|r:(7&n)<<18|i<<12|r<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(i.HEAPU8,e,t):""}let o={emscripten_get_now:t1,emscripten_memcpy_big:function(e,t,n){i.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let s=i.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let i=1;i<=4;i*=2){let a=s*(1+.2/i);if(a=Math.min(a,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}(Math.min(0x80000000,t2(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});r((t=n.memory).buffer),Object.assign(i,n),i.UTF8ToString=a}return await l(),i}var t5=Object.defineProperty,t6=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?t5(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n};let t8=null;class t7{constructor(e){t6(this,"utf16Length"),t6(this,"utf8Length"),t6(this,"utf16Value"),t6(this,"utf8Value"),t6(this,"utf16OffsetToUtf8"),t6(this,"utf8OffsetToUtf16");const t=e.length,n=t7._utf8ByteLength(e),i=n!==t,r=i?new Uint32Array(t+1):null;i&&(r[t]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=t);const a=new Uint8Array(n);let o=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let h=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(h=(l-55296<<10)+65536|t-56320,c=!0)}i&&(r[n]=o,c&&(r[n+1]=o),h<=127?s[o+0]=n:h<=2047?(s[o+0]=n,s[o+1]=n):h<=65535?(s[o+0]=n,s[o+1]=n,s[o+2]=n):(s[o+0]=n,s[o+1]=n,s[o+2]=n,s[o+3]=n)),h<=127?a[o++]=h:(h<=2047?a[o++]=192|(1984&h)>>>6:(h<=65535?a[o++]=224|(61440&h)>>>12:(a[o++]=240|(1835008&h)>>>18,a[o++]=128|(258048&h)>>>12),a[o++]=128|(4032&h)>>>6),a[o++]=128|(63&h)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){let r=e.charCodeAt(n),s=r,a=!1;if(r>=55296&&r<=56319&&n+1<i){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(s=(r-55296<<10)+65536|t-56320,a=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,a&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t4=class e{constructor(t){if(t6(this,"id",++e.LAST_ID),t6(this,"_onigBinding"),t6(this,"content"),t6(this,"utf16Length"),t6(this,"utf8Length"),t6(this,"utf16OffsetToUtf8"),t6(this,"utf8OffsetToUtf16"),t6(this,"ptr"),!t8)throw new t0("Must invoke loadWasm first.");this._onigBinding=t8,this.content=t;const n=new t7(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=t8.omalloc(1e4)),e._sharedPtrInUse=!0,t8.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(t8)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};t6(t4,"LAST_ID",0),t6(t4,"_sharedPtr",0),t6(t4,"_sharedPtrInUse",!1);class t9{constructor(e){if(t6(this,"_onigBinding"),t6(this,"_ptr"),!t8)throw new t0("Must invoke loadWasm first.");const t=[],n=[];for(let i=0,r=e.length;i<r;i++){const r=new t7(e[i]);t[i]=r.createString(t8),n[i]=r.utf8Length}const i=t8.omalloc(4*e.length);t8.HEAPU32.set(t,i/4);const r=t8.omalloc(4*e.length);t8.HEAPU32.set(n,r/4);const s=t8.createOnigScanner(i,r,e.length);for(let n=0,i=e.length;n<i;n++)t8.ofree(t[n]);t8.ofree(r),t8.ofree(i),0===s&&function(e){throw new t0(e.UTF8ToString(e.getLastOnigError()))}(t8),this._onigBinding=t8,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if("number"==typeof n&&(i=n),"string"==typeof e){e=new t4(e);let n=this._findNextMatchSync(e,t,!1,i);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){let r=this._onigBinding,s=r.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(0===s)return null;let a=r.HEAPU32,o=s/4,l=a[o++],h=a[o++],c=[];for(let t=0;t<h;t++){let n=e.convertUtf8OffsetToUtf16(a[o++]),i=e.convertUtf8OffsetToUtf16(a[o++]);c[t]={start:n,end:i,length:i-n}}return{index:l,captureIndices:c}}}function ne(e){return t=>WebAssembly.instantiate(e,t)}async function nt(e){return e&&await (r||(r=async function(){t8=await t3(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var i,r,s,a;if(void 0!==n.data&&(n=n.data),i=n,"u">typeof Response&&i instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (s=n,e=>WebAssembly.instantiateStreaming(s,e))(t):await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(r=n,"u">typeof ArrayBuffer&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||void 0!==tZ&&tZ.isBuffer?.(r)||"u">typeof SharedArrayBuffer&&r instanceof SharedArrayBuffer||"u">typeof Uint32Array&&r instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await ne(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ne(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new t9(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t4(e)}}let nn=(s=(d={langs:tX,themes:tY,engine:()=>nt(Promise.all([n.e(4814),n.e(9302)]).then(n.bind(n,49302)))}).langs,a=d.themes,o=d.engine,async function(e){function t(t){if("string"==typeof t){if(tc(t=e.langAlias?.[t]||t))return[];let n=s[t];if(!n)throw new l(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(td(e))return"none";if("string"==typeof e){let t=a[e];if(!t)throw new l(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let i=(e.themes??[]).map(e=>n(e)),r=(e.langs??[]).map(e=>t(e)),h=await tV({engine:e.engine??o(),...e,themes:i,langs:r});return{...h,loadLanguage:(...e)=>h.loadLanguage(...e.map(t)),loadTheme:(...e)=>h.loadTheme(...e.map(n)),getBundledLanguages:()=>s,getBundledThemes:()=>a}})}}]);
|
|
4
|
+
color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return(null==n?void 0:n.onChange)&&!(s&&n.skipInitialOnChange)&&n.onChange(i),s=!1,i}return a.updateDeps=e=>{r=e},a}function a(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let o=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},l=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=n;e++)i.push(e);return i},c=(e,t)=>{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let r=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(r(o(n)),!i.ResizeObserver)return()=>{};let s=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void r({width:t.inlineSize,height:t.blockSize})}r(o(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},d={passive:!0},u="u"<typeof window||"onscrollend"in window,m=(e,t)=>{var n,i;let r,s=e.scrollElement;if(!s)return;let a=e.targetWindow;if(!a)return;let o=0,l=e.options.useScrollendEvent&&u?()=>void 0:(n=()=>{t(o,!1)},i=e.options.isScrollingResetDelay,function(...e){a.clearTimeout(r),r=a.setTimeout(()=>n.apply(this,e),i)}),h=n=>()=>{let{horizontal:i,isRtl:r}=e.options;o=i?s.scrollLeft*(r&&-1||1):s.scrollTop,l(),t(o,n)},c=h(!0),m=h(!1);s.addEventListener("scroll",c,d);let p=e.options.useScrollendEvent&&u;return p&&s.addEventListener("scrollend",m,d),()=>{s.removeEventListener("scroll",c),p&&s.removeEventListener("scrollend",m)}},p=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},g=(e,{adjustments:t=0,behavior:n},i)=>{var r,s;null==(s=null==(r=i.scrollElement)?void 0:r.scrollTo)||s.call(r,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class f{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:l,rangeExtractor:h,onChange:()=>{},measureElement:p,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=s(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,i=new Map;for(let r=t-1;r>=0;r--){let t=e[r];if(n.has(t.lane))continue;let s=i.get(t.lane);if(null==s||t.end>s.end?i.set(t.lane,t):t.end<s.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=s(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,i,r,s)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:r,lanes:s}),{key:!1}),this.getMeasurements=s(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:r,lanes:s},a)=>{if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let l=this.measurementsCache.slice(0,o),h=Array(s).fill(void 0);for(let e=0;e<o;e++){let t=l[e];t&&(h[t.lane]=e)}for(let r=o;r<e;r++){let e,s,o=i(r),c=this.laneAssignments.get(r);if(void 0!==c&&this.options.lanes>1){let i=h[e=c],r=void 0!==i?l[i]:void 0;s=r?r.end+this.options.gap:t+n}else{let i=1===this.options.lanes?l[r-1]:this.getFurthestMeasurement(l,r);s=i?i.end+this.options.gap:t+n,e=i?i.lane:r%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(r,e)}let d=a.get(o),u="number"==typeof d?d:this.options.estimateSize(r),m=s+u;l[r]={index:r,start:s,size:u,end:m,key:o,lane:e},h[e]=r}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=s(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){let r=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:r};let s=b(0,r,t=>e[t].start,n),a=s;if(1===i)for(;a<r&&e[a].end<n+t;)a++;else if(i>1){let o=Array(i).fill(0);for(;a<r&&o.some(e=>e<n+t);){let t=e[a];o[t.lane]=t.end,a++}let l=Array(i).fill(n+t);for(;s>=0&&l.some(e=>e>=n);){let t=e[s];l[t.lane]=t.start,s--}s=Math.max(0,s-s%i),a=Math.min(r,a+(i-1-a%i))}return{startIndex:s,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=s(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,r)=>null===i||null===r?[]:e({startIndex:i,endIndex:r,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),i=this.measurementsCache[n];if(!i)return;let r=i.key,s=this.elementsCache.get(r);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(r,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=s(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,r=e.length;i<r;i++){let r=t[e[i]];n.push(r)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return a(t[b(0,t.length-1,e=>a(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let i=this.getSize(),r=this.getScrollOffset();return"auto"===t&&(t=e>=r+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let i=this.getSize(),r=this.getScrollOffset();if("auto"===t)if(n.end>=r+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let s="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let i=0,r=t=>{if(!this.targetWindow)return;let i=this.getOffsetForIndex(e,t);if(!i)return void console.warn("Failed to get offset for index:",e);let[r,a]=i;this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,a);n?1.01>Math.abs(n[0]-t)||s(a):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},s=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(++i<10?this.targetWindow.requestAnimationFrame(()=>r(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};r(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let b=(e,t,n,i)=>{for(;e<=t;){let r=(e+t)/2|0,s=n(r);if(s<i)e=r+1;else{if(!(s>i))return r;t=r-1}}return e>0?e-1:0},y="u">typeof document?i.useLayoutEffect:i.useEffect;function _(e){return function({useFlushSync:e=!0,...t}){let n=i.useReducer(()=>({}),{})[1],s={...t,onChange:(i,s)=>{var a;e&&s?(0,r.flushSync)(n):n(),null==(a=t.onChange)||a.call(t,i,s)}},[a]=i.useState(()=>new f(s));return a.setOptions(s),y(()=>a._didMount(),[]),y(()=>a._willUpdate()),a}({observeElementRect:c,observeElementOffset:m,scrollToFn:g,...e})}},67014:(e,t,n)=>{let i,r,s,a,o;n.d(t,{O_:()=>nn});class l extends Error{constructor(e){super(e),this.name="ShikiError"}}var h,c,d,u=n(41463);function m(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var p=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,g=class{static hasCaptures(e){return null!==e&&(p.lastIndex=0,p.test(e))}static replaceCaptures(e,t,n){return e.replace(p,(e,i,r,s)=>{let a=n[parseInt(i||r,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(s){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function f(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let i=0;i<n;i++){var r,s;let n=(r=e[i],r<(s=t[i])?-1:+(r>s));if(0!==n)return n}return 0}return n-i}function b(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function y(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var _=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},S=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let e=0,r=t.length;e<r;e++){let r,s=t[e];if(!s.settings)continue;if("string"==typeof s.scope){let e=s.scope;r=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else r=Array.isArray(s.scope)?s.scope:[""];let a=-1;if("string"==typeof s.settings.fontStyle){a=0;let e=s.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}let o=null;"string"==typeof s.settings.foreground&&b(s.settings.foreground)&&(o=s.settings.foreground);let l=null;"string"==typeof s.settings.background&&b(s.settings.background)&&(l=s.settings.background);for(let t=0,s=r.length;t<s;t++){let s=r[t].trim().split(" "),h=s[s.length-1],c=null;s.length>1&&(c=s.slice(0,s.length-1)).reverse(),n[i++]=new C(h,c,e,a,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,i;let r=(n=e.scope,n<(i=t.scope)?-1:+(n>i));return 0!==r||0!==(r=f(e.parentScopes,t.parentScopes))?r:e.index-t.index});let n=0,i="#000000",r="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let s=new N(t),a=new w(n,s.getId(i),s.getId(r)),o=new x(new P(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,s.getId(n.foreground),s.getId(n.background))}return new S(s,a,o)}(e,t)}_cachedMatchRoot=new _(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let r=0;r<t.length;r++){var n,i;let s=t[r],a=!1;if(">"===s){if(r===t.length-1)return!1;s=t[++r],a=!0}for(;e&&(n=e.scopeName,!((i=s)===n||n.startsWith(i)&&"."===n[i.length]));){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new w(n.fontStyle,n.foreground,n.background):null}},k=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let i of n)t=new e(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new e(n,t[i]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},w=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},C=class{constructor(e,t,n,i,r,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},v=((h=v||{})[h.NotSet=-1]="NotSet",h[h.None=0]="None",h[h.Italic=1]="Italic",h[h.Bold=2]="Bold",h[h.Underline=4]="Underline",h[h.Strikethrough=8]="Strikethrough",h),N=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},A=Object.freeze([]),P=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,i,r){this.scopeDepth=e,this.parentScopes=t||A,this.fontStyle=n,this.foreground=i,this.background=r}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}},x=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[i]&&i++,!(n>=e.parentScopes.length)&&!(i>=t.parentScopes.length);){let r=t.parentScopes[i].length-e.parentScopes[n].length;if(0!==r)return r;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,i=t.indexOf(".");if(-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,i,r,s,a){let o,l,h;if(""===n)return void this._doInsertHere(t,i,r,s,a);let c=n.indexOf(".");-1===c?(o=n,l=""):(o=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(o)?h=this._children[o]:(h=new e(this._mainRule.clone(),P.cloneArr(this._rulesWithParentScopes)),this._children[o]=h),h.insert(t+1,l,i,r,s,a)}_doInsertHere(e,t,n,i,r){if(null===t)return void this._mainRule.acceptOverwrite(e,n,i,r);for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let a=this._rulesWithParentScopes[s];if(0===f(a.parentScopes,t))return void a.acceptOverwrite(e,n,i,r)}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new P(e,t,n,i,r))}},T=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),i=e.getTokenType(t),r=e.getFontStyle(t);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,i,r,s,a,o){let l=e.getLanguageId(t),h=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),u=e.getForeground(t),m=e.getBackground(t);return 0!==n&&(l=n),8!==i&&(h=i),null!==r&&(c=+!!r),-1!==s&&(d=s),0!==a&&(u=a),0!==o&&(m=o),(l|h<<8|c<<10|d<<11|u<<15|m<<24)>>>0}};function L(e,t){var n;let i,r,s=[],a=(n=e,r=(i=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!r)return null;let e=r[0];return r=i.exec(n),e}}),o=a.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let t=h();if(s.push({matcher:t,priority:e}),","!==o)break;o=a.next()}return s;function l(){if("-"===o){o=a.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=a.next();let e=function(){let e=[],t=h();for(;t&&(e.push(t),"|"===o||","===o);){do o=a.next();while("|"===o||","===o);t=h()}return t=>e.some(e=>e(t))}();return")"===o&&(o=a.next()),e}if(E(o)){let e=[];do e.push(o),o=a.next();while(E(o));return n=>t(e,n)}return null}function h(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function E(e){return!!e&&!!e.match(/[\w\.:]+/)}var R=((c=R||{})[c.None=0]="None",c[c.NotBeginString=1]="NotBeginString",c[c.NotEndString=2]="NotEndString",c[c.NotBeginPosition=4]="NotBeginPosition",c[c.DebugCall=8]="DebugCall",c);function I(e){"function"==typeof e.dispose&&e.dispose()}var M=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},O=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},G=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},B=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new M(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new G;for(let n of e)!function(e,t,n,i){let r=n.lookup(e.scopeName);if(!r){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let s=n.lookup(t);e instanceof M?D({baseGrammar:s,selfGrammar:r},i):j(e.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);let a=n.injections(e.scopeName);if(a)for(let e of a)i.add(new M(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof M){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function j(e,t,n){t.repository&&t.repository[e]&&$([t.repository[e]],t,n)}function D(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&$(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&$(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function $(e,t,n){for(let i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);let e=i.repository?m({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&$(i.patterns,{...t,repository:e},n);let r=i.include;if(!r)continue;let s=H(r);switch(s.kind){case 0:D({...t,selfGrammar:t.baseGrammar},n);break;case 1:D(t,n);break;case 2:j(s.ruleName,{...t,repository:e},n);break;case 3:case 4:let a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){let i={baseGrammar:t.baseGrammar,selfGrammar:a,repository:e};4===s.kind?j(s.ruleName,i,n):D(i,n)}else 4===s.kind?n.add(new O(s.scopeName,s.ruleName)):n.add(new M(s.scopeName))}}}var F=class{kind=0},W=class{kind=1},z=class{constructor(e){this.ruleName=e}kind=2},U=class{constructor(e){this.scopeName=e}kind=3},q=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function H(e){if("$base"===e)return new F;if("$self"===e)return new W;let t=e.indexOf("#");return -1===t?new U(e):0===t?new z(e.substring(1)):new q(e.substring(0,t),e.substring(t+1))}var V=/\\(\d+)/,J=/\\(\d+)/g;Symbol("RuleId");var K=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,i){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=g.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=g.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?g.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?g.replaceCaptures(this._contentName,e,t):this._contentName}},Q=class extends K{retokenizeCapturedWithRuleId;constructor(e,t,n,i,r){super(e,t,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,i){throw Error("Not supported!")}},X=class extends K{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,null),this._match=new en(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Y=class extends K{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r){super(e,t,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new ei,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Z=class extends K{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,i,r,s,a,o,l,h){super(e,t,n,i),this._begin=new en(r,this.id),this.beginCaptures=s,this._end=new en(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new ei,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ee=class extends K{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,i,r,s,a,o,l){super(e,t,n,i),this._begin=new en(r,this.id),this.beginCaptures=s,this.whileCaptures=o,this._while=new en(a,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new ei,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new ei,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},et=class e{static createCaptureRule(e,t,n,i,r){return e.registerRule(e=>new Q(t,e,n,i,r))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(r=>{if(t.id=r,t.match)return new X(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,i));if(void 0===t.begin){t.repository&&(i=m({},i,t.repository));let r=t.patterns;return void 0===r&&t.include&&(r=[{include:t.include}]),new Y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(r,n,i))}return t.while?new ee(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,i),e._compilePatterns(t.patterns,n,i)):new Z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,e._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let r=[];if(t){let s=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>s&&(s=t)}for(let e=0;e<=s;e++)r[e]=null;for(let s in t){if("$vscodeTextmateLocation"===s)continue;let a=parseInt(s,10),o=0;t[s].patterns&&(o=e.getCompiledRuleId(t[s],n,i)),r[a]=e.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,o)}}return r}static _compilePatterns(t,n,i){let r=[];if(t)for(let s=0,a=t.length;s<a;s++){let a=t[s],o=-1;if(a.include){let t=H(a.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(i[a.include],n,i);break;case 2:let r=i[t.ruleName];r&&(o=e.getCompiledRuleId(r,n,i));break;case 3:case 4:let s=t.scopeName,l=4===t.kind?t.ruleName:null,h=n.getExternalGrammar(s,i);if(h)if(l){let t=h.repository[l];t&&(o=e.getCompiledRuleId(t,n,h.repository))}else o=e.getCompiledRuleId(h.repository.$self,n,h.repository)}}else o=e.getCompiledRuleId(a,n,i);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof Y||e instanceof Z||e instanceof ee)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;r.push(o)}}return{patterns:r,hasMissingPatterns:(t?t.length:0)!==r.length}}},en=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,i=[],r=!1;for(let s=0;s<t;s++)if("\\"===e.charAt(s)&&s+1<t){const t=e.charAt(s+1);"z"===t?(i.push(e.substring(n,s)),i.push("$(?!\\n)(?<!\\n)"),n=s+2):("A"===t||"G"===t)&&(r=!0),s++}this.hasAnchor=r,0===n?this.source=e:(i.push(e.substring(n,t)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=V.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return J.lastIndex=0,this.source.replace(J,(e,t)=>y(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,i;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=[],s=[],a=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),r[e]=n,s[e]=n,a[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(i=this.source.charAt(e+1))?(r[e+1]="",s[e+1]="",a[e+1]="A",o[e+1]="A"):"G"===i?(r[e+1]="",s[e+1]="G",a[e+1]="",o[e+1]="G"):(r[e+1]=i,s[e+1]=i,a[e+1]=i,o[e+1]=i),e++);return{A0_G0:r.join(""),A0_G1:s.join(""),A1_G0:a.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},ei=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new er(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new er(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},er=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},es=class{constructor(e,t){this.languageId=e,this.tokenType=t}},ea=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new es(e,8),this._embeddedLanguagesMatcher=new eo(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new es(0,0);_getBasicScopeAttributes=new _(e=>new es(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eo=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>y(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==u&&u.env.VSCODE_TEXTMATE_DEBUG;var el=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eh(e,t,n,i,r,s,a,o){let l=t.content.length,h=!1,c=-1;if(a){let a=function(e,t,n,i,r,s){let a=r.beginRuleCapturedEOL?0:-1,o=[];for(let t=r;t;t=t.pop()){let n=t.getRule(e);n instanceof ee&&o.push({rule:n,stack:t})}for(let m=o.pop();m;m=o.pop()){var l,h,c,d,u;let{ruleScanner:o,findOptions:p}=(l=m.rule,h=e,c=m.stack.endRule,d=n,u=i===a,{ruleScanner:l.compileWhileAG(h,c,d,u),findOptions:0}),g=o.findNextMatchSync(t,i,p);if(g){if(-2!==g.ruleId){r=m.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(s.produce(m.stack,g.captureIndices[0].start),ed(e,t,n,m.stack,s,m.rule.whileCaptures,g.captureIndices),s.produce(m.stack,g.captureIndices[0].end),a=g.captureIndices[0].end,g.captureIndices[0].end>i&&(i=g.captureIndices[0].end,n=!1))}else{r=m.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:a,isFirstLine:n}}(e,t,n,i,r,s);r=a.stack,i=a.linePos,n=a.isFirstLine,c=a.anchorPosition}let d=Date.now();for(;!h;){if(0!==o&&Date.now()-d>o)return new el(r,!0);!function(){let a=function(e,t,n,i,r,s){let a=function(e,t,n,i,r,s){let{ruleScanner:a,findOptions:o}=ec(r.getRule(e),e,r.endRule,n,i===s),l=a.findNextMatchSync(t,i,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,i,r,s),o=e.getInjections();if(0===o.length)return a;let l=function(e,t,n,i,r,s,a){let o,l=Number.MAX_VALUE,h=null,c=0,d=s.contentNameScopesList.getScopeNames();for(let s=0,u=e.length;s<u;s++){let u=e[s];if(!u.matcher(d))continue;let{ruleScanner:m,findOptions:p}=ec(t.getRule(u.ruleId),t,null,i,r===a),g=m.findNextMatchSync(n,r,p);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,h=g.captureIndices,o=g.ruleId,c=u.priority,l===r))break}return h?{priorityMatch:-1===c,captureIndices:h,matchedRuleId:o}:null}(o,e,t,n,i,r,s);if(!l)return a;if(!a)return l;let h=a.captureIndices[0].start,c=l.captureIndices[0].start;return c<h||l.priorityMatch&&c===h?l:a}(e,t,n,i,r,c);if(!a){s.produce(r,l),h=!0;return}let o=a.captureIndices,d=a.matchedRuleId,u=!!o&&o.length>0&&o[0].end>i;if(-1===d){let a=r.getRule(e);s.produce(r,o[0].start),r=r.withContentNameScopesList(r.nameScopesList),ed(e,t,n,r,s,a.endCaptures,o),s.produce(r,o[0].end);let d=r;if(r=r.parent,c=d.getAnchorPos(),!u&&d.getEnterPos()===i){r=d,s.produce(r,l),h=!0;return}}else{let a=e.getRule(d);s.produce(r,o[0].start);let m=r,p=a.getName(t.content,o),g=r.contentNameScopesList.pushAttributed(p,e);if(r=r.push(d,i,c,o[0].end===l,null,g,g),a instanceof Z){ed(e,t,n,r,s,a.beginCaptures,o),s.produce(r,o[0].end),c=o[0].end;let i=a.getContentName(t.content,o),d=g.pushAttributed(i,e);if(r=r.withContentNameScopesList(d),a.endHasBackReferences&&(r=r.withEndRule(a.getEndWithResolvedBackReferences(t.content,o))),!u&&m.hasSameRuleAs(r)){r=r.pop(),s.produce(r,l),h=!0;return}}else if(a instanceof ee){ed(e,t,n,r,s,a.beginCaptures,o),s.produce(r,o[0].end),c=o[0].end;let i=a.getContentName(t.content,o),d=g.pushAttributed(i,e);if(r=r.withContentNameScopesList(d),a.whileHasBackReferences&&(r=r.withEndRule(a.getWhileWithResolvedBackReferences(t.content,o))),!u&&m.hasSameRuleAs(r)){r=r.pop(),s.produce(r,l),h=!0;return}}else if(ed(e,t,n,r,s,a.captures,o),s.produce(r,o[0].end),r=r.pop(),!u){r=r.safePop(),s.produce(r,l),h=!0;return}}o[0].end>i&&(i=o[0].end,n=!1)}()}return new el(r,!1)}function ec(e,t,n,i,r){return{ruleScanner:e.compileAG(t,n,i,r),findOptions:0}}function ed(e,t,n,i,r,s,a){if(0===s.length)return;let o=t.content,l=Math.min(s.length,a.length),h=[],c=a[0].end;for(let t=0;t<l;t++){let l=s[t];if(null===l)continue;let d=a[t];if(0===d.length)continue;if(d.start>c)break;for(;h.length>0&&h[h.length-1].endPos<=d.start;)r.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?r.produceFromScopes(h[h.length-1].scopes,d.start):r.produce(i,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,a),s=i.contentNameScopesList.pushAttributed(t,e),h=l.getContentName(o,a),c=s.pushAttributed(h,e),u=i.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,s,c),m=e.createOnigString(o.substring(0,d.end));eh(e,m,n&&0===d.start,d.start,u,r,!1,0),I(m);continue}let u=l.getName(o,a);if(null!==u){let t=(h.length>0?h[h.length-1].scopes:i.contentNameScopesList).pushAttributed(u,e);h.push(new eu(t,d.end))}}for(;h.length>0;)r.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var eu=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function em(e,t,n,i,r){let s=L(t,ep),a=et.getCompiledRuleId(n,i,r.repository);for(let n of s)e.push({debugSelector:t,matcher:n.matcher,ruleId:a,grammar:r,priority:n.priority})}function ep(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let i=n;i<t.length;i++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[i],e))return n=i+1,!0;return!1})}var eg=class{constructor(e,t,n,i,r,s,a,o){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=o,this._basicScopeAttributesProvider=new ea(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=ef(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const e of Object.keys(r))for(const t of L(e,ep))this._tokenTypeMatchers.push({matcher:t.matcher,type:r[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let i=n.injections;if(i)for(let t in i)em(e,t,i[t],this,n);let r=this._grammarRepository.injections(t);r&&r.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&em(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ef(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){let i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){let r;if(-1===this._rootId&&(this._rootId=et.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ey.NULL)r=!1,t.reset();else{let e;r=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),i=this.themeProvider.getDefaults(),s=T.set(0,n.languageId,n.tokenType,null,i.fontStyle,i.foregroundId,i.backgroundId),a=this.getRule(this._rootId).getName(null,null);e=a?eb.createRootAndLookUpScopeName(a,s,this):eb.createRoot("unknown",s),t=new ey(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let s=this.createOnigString(e),a=s.content.length,o=new eS(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eh(this,s,r,0,t,o,!0,i);return I(s),{lineLength:a,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ef(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=e(t[i]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let i in t)n[i]=e(t[i]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eb=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let i=t,r=t?.scopePath??null;for(let t of n)i=new e(i,r=k.push(r,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new k(null,t),n)}static createRootAndLookUpScopeName(t,n,i){let r=i.getMetadataForScope(t),s=new k(null,t),a=i.themeProvider.themeMatch(s),o=e.mergeAttributes(n,r,a);return new e(null,s,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let i=-1,r=0,s=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,s=n.backgroundId),T.set(e,t.languageId,t.tokenType,null,i,r,s)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let i=t.split(/ /g),r=this;for(let t of i)r=e._pushAttributed(r,t,n);return r}static _pushAttributed(t,n,i){let r=i.getMetadataForScope(n),s=t.scopePath.push(n),a=i.themeProvider.themeMatch(s),o=e.mergeAttributes(t.tokenAttributes,r,a);return new e(t,s,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ey=class e{constructor(e,t,n,i,r,s,a,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eb.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,r,s,a,o){return new e(this,t,n,i,r,s,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let i=eb.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,eb.fromExtension(i,n.contentNameScopesList))}},e_=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):L(e,ep).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>L(e,ep).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eS=class{constructor(e,t,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=T.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}if(i&&(n=T.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ek=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,r){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,new eg(e,s,t,n,i,r,this,this._onigLib))}return this._grammars.get(e)}},ew=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ek(S.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(S.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new e_(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,r){let s=new B(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(e=>this._loadSingleGrammar(e.scopeName)),s.processQueue();return this._grammarForScopeName(e,t,n,i,r)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,r=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,r)}},eC=ey.NULL,ev=n(51640),eN=n(4918),eA=n(27629);let eP=/["&'<>`]/g,ex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eT=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,eL=/[|\\{}()[\]^$+*?.]/g,eE=new WeakMap,eR=/[\dA-Fa-f]/,eI=/\d/;var eM=n(6801);let eO={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},eG=["cent","copy","divide","gt","lt","not","para","times"],eB={}.hasOwnProperty,ej={};for(i in eO)eB.call(eO,i)&&(ej[eO[i]]=i);let eD=/[^\dA-Za-z]/;function e$(e,t,n){var i,r;let s,a,o=(i=n.omitOptionalSemicolons,s="&#x"+e.toString(16).toUpperCase(),i&&t&&!eR.test(String.fromCharCode(t))?s:s+";");if((n.useNamedReferences||n.useShortestReferences)&&(a=function(e,t,n,i){let r=String.fromCharCode(e);if(eB.call(ej,r)){let e=ej[r],s="&"+e;return n&&eM.K.includes(e)&&!eG.includes(e)&&(!i||t&&61!==t&&eD.test(String.fromCharCode(t)))?s:s+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let i,s=(r=n.omitOptionalSemicolons,i="&#"+String(e),r&&t&&!eI.test(String.fromCharCode(t))?i:i+";");s.length<o.length&&(o=s)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function eF(e,t){let n;var i,r=e,s=Object.assign({format:e$},t);if(r=r.replace(s.subset?(i=s.subset,(n=eE.get(i))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(eL,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(i),eE.set(i,n)),n):eP,a),s.subset||s.escapeOnly)return r;return r.replace(ex,function(e,t,n){return s.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),s)}).replace(eT,a);function a(e,t,n){return s.format(e.charCodeAt(0),n.charCodeAt(t+1),s)}}let eW=/^>|^->|<!--|-->|--!>|<!-$/g,ez=[">"],eU=["<",">"];var eq=n(49884),eH=n(86994),eV=n(38609),eJ=n(51705),eK=n(36887);let eQ=eZ(1),eX=eZ(-1),eY=[];function eZ(e){return function(t,n,i){let r=t?t.children:eY,s=(n||0)+e,a=r[s];if(!i)for(;a&&(0,eK.m)(a);)s+=e,a=r[s];return a}}let e0={}.hasOwnProperty;function e1(e){return function(t,n,i){return e0.call(e,t.tagName)&&e[t.tagName](t,n,i)}}let e2=e1({body:function(e,t,n){let i=eQ(n,t);return!i||"comment"!==i.type},caption:e3,colgroup:e3,dd:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,t,n){let i=eQ(n,t);return!!(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:e3,html:function(e,t,n){let i=eQ(n,t);return!i||"comment"!==i.type},li:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,t,n){let i=eQ(n,t);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:e5,rt:e5,tbody:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:e6,tfoot:function(e,t,n){return!eQ(n,t)},th:e6,thead:function(e,t,n){let i=eQ(n,t);return!!(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&"tr"===i.tagName}});function e3(e,t,n){let i=eQ(n,t,!0);return!i||"comment"!==i.type&&!("text"===i.type&&(0,eK.m)(i.value.charAt(0)))}function e5(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function e6(e,t,n){let i=eQ(n,t);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}let e8=e1({body:function(e){let t=eQ(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,eK.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let i=eX(n,t),r=eQ(e,-1,!0);return!(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&e2(i,n.children.indexOf(i),n))&&!!(r&&"element"===r.type&&"col"===r.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=eQ(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let i=eX(n,t),r=eQ(e,-1);return!(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&e2(i,n.children.indexOf(i),n))&&!!(r&&"element"===r.type&&"tr"===r.tagName)}}),e7={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},e4=["<","&"];function e9(e,t,n,i){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:eF(e.value,Object.assign({},i.settings.characterReferences,{subset:e4}))}let te=(0,eA.A)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,i){return i.settings.bogusComments?"<?"+eF(e.value,Object.assign({},i.settings.characterReferences,{subset:ez}))+">":"\x3c!--"+e.value.replace(eW,function(e){return eF(e,Object.assign({},i.settings.characterReferences,{subset:eU}))})+"--\x3e"},doctype:function(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,i){let r,s=i.schema,a="svg"!==s.space&&i.settings.omitOptionalTags,o="svg"===s.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===s.space&&"svg"===e.tagName&&(i.schema=eN.JW);let h=function(e,t){let n,i=[],r=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let r=function(e,t,n){let i,r=(0,eV.I)(e.schema,t),s=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote;if(r.overloadedBoolean&&(n===r.attribute||""===n)?n=!0:(r.boolean||r.overloadedBoolean)&&("string"!=typeof n||n===r.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=eF(r.attribute,Object.assign({},e.settings.characterReferences,{subset:e7.name[s][a]}));return!0===n||(n=Array.isArray(n)?(r.commaSeparated?eH.A:eJ.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(i=eF(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:e7.unquoted[s][a]}))),i!==n&&(e.settings.quoteSmart&&(0,eq.D)(n,o)>(0,eq.D)(n,e.alternative)&&(o=e.alternative),i=o+eF(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?e7.single:e7.double)[s][a],attribute:!0}))+o),l+(i?"="+i:i))}(e,n,t[n]);r&&i.push(r)}}for(;++r<i.length;){let t=e.settings.tightAttributes?i[r].charAt(i[r].length-1):void 0;r!==i.length-1&&'"'!==t&&"'"!==t&&(i[r]+=" ")}return i.join("")}(i,e.properties),c=i.all("html"===s.space&&"template"===e.tagName?e.content:e);return i.schema=s,c&&(o=!1),!h&&a&&e8(e,t,n)||(l.push("<",e.tagName,h?" "+h:""),o&&("svg"===s.space||i.settings.closeSelfClosing)&&(r=h.charAt(h.length-1),(!i.settings.tightSelfClosing||"/"===r||r&&'"'!==r&&"'"!==r)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),o||a&&e2(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,i){return i.settings.allowDangerousHtml?e.value:e9(e,t,n,i)},root:function(e,t,n,i){return i.all(e)},text:e9}}),tt={},tn={},ti=[];function tr(e,t,n){return te(e,t,n,this)}function ts(e){let t=[],n=e&&e.children||ti,i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function ta(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(let[e,r]of Object.entries(t?.colorReplacements||{}))"string"==typeof r?n[e]=r:e===i&&Object.assign(n,r);return n}function to(e,t){return e&&t?.[e?.toLowerCase()]||e}async function tl(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function th(e){return!e||["plaintext","txt","text","plain"].includes(e)}function tc(e){return"ansi"===e||th(e)}function td(e){return"none"===e}function tu(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function tm(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),i=0,r=[];for(let e=0;e<n.length;e+=2){let s=t?n[e]+(n[e+1]||""):n[e];r.push([s,i]),i+=n[e].length,i+=n[e+1]?.length||0}return r}let tp="light-dark()",tg=["color","background-color"];function tf(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&v.Italic&&(t["font-style"]="italic"),e.fontStyle&v.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&v.Underline&&n.push("underline"),e.fontStyle&v.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function tb(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let ty=new WeakMap;function t_(e,t){ty.set(e,t)}function tS(e){return ty.get(e)}class tk{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new tk(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,eC])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,i]=e;this.lang=n,this._stacks={[i]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,i;return t=this._stacks[e],n=[],i=new Set,!function e(t){if(i.has(t))return;i.add(t);let r=t?.nameScopesList?.scopeName;r&&n.push(r),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let tw=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let i,r=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new l(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...s.indexToPos(e),offset:e}}{let t=s.lines[e.line];if(void 0===t)throw new l(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${s.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new l(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:s.posToIndex(e.line,n)}}},s={lines:i=tm(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:i.length-1,character:i[i.length-1].length};let t=e,r=0;for(let e of i){if(t<e.length)break;t-=e.length,r++}return{line:r,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=i[t].length;return n+t}},a=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new l(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],r=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,s=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,a=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(r||s||a||o){if(r&&s||a&&o||a&&n.start.offset===n.end.offset||s&&t.start.offset===t.end.offset)continue;throw new l(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:s,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let n;if(!this.options.decorations?.length)return;let i=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(n=Array.from(i instanceof Set?i:new Set(i)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let i=0,r=[];for(let n of t)n>i&&r.push({...e,content:e.content.slice(i,n),offset:e.offset+i}),i=n;return i<e.content.length&&r.push({...e,content:e.content.slice(i),offset:e.offset+i}),r})):e},code(e){if(!this.options.decorations?.length)return;let n=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==n.converter.lines.length)throw new l(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(e,t,n,r){let a=i[e],o="",h=-1,c=-1;if(0===t&&(h=0),0===n&&(c=0),n===1/0&&(c=a.children.length),-1===h||-1===c)for(let e=0;e<a.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===h&&o.length===t&&(h=e+1),-1===c&&o.length===n&&(c=e+1);if(-1===h)throw new l(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===c)throw new l(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);let d=a.children.slice(h,c);if(r.alwaysWrap||d.length!==a.children.length)if(r.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};s(e,r,"wrapper"),a.children.splice(h,d.length,e)}else s(d[0],r,"token");else s(a,r,"line")}function s(e,t,n){let i=t.properties||{},r=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},t.properties?.class&&tu(e,t.properties.class),e=r(e,n)||e}let a=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)r(t.line,t.character,n.character,e);else if(t.line<n.line){r(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)a.unshift(()=>{var t;i[t=r]=s(i[t],e,"line")});r(n.line,0,n.character,e)}}a.forEach(e=>e())}}}()];function tC(e){let t=function(e){let t=[],n=[],i=[];for(let r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tw]}var tv=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],tN={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function tA(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var tP={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let tx={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function tT(e,t,n={}){var i,r;let s,a,{theme:o=e.getLoadedThemes()[0]}=n,h=e.resolveLangAlias(n.lang||"text");if(th(h)||td(o))return tm(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:d}=e.setTheme(o);if("ansi"===h){let e,i,r,s,a,o,l;return e=ta(c,n),i=tm(t),r=function(e=tP){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(i){switch(i.type){case"named":return e[i.name];case"rgb":return n(i.rgb);case"table":var r;return r=i.index,function(){if(t)return t;t=[];for(let n=0;n<tv.length;n++)t.push(e[tv[n]]);let i=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let r=0;r<6;r++)for(let s=0;s<6;s++)t.push(n([i[e],i[r],i[s]]));let r=8;for(let e=0;e<24;e++,r+=10)t.push(n([r,r,r]));return t}()[r]}}}}(Object.fromEntries(tv.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||tx[e]]}))),s=null,a=null,o=new Set,l={parse(e){let t=[],n=0;do{let i=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),r=i.sequence?e.substring(n,i.startPosition):e.substring(n);if(r.length>0&&t.push({value:r,foreground:s,background:a,decorations:new Set(o)}),i.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let i=Number.parseInt(n);if(!Number.isNaN(i))if(0===i)t.push({type:"resetAll"});else if(i<=9)tN[i]&&t.push({type:"setDecoration",value:tN[i]});else if(i<=29){let e=tN[i-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tv[i-30]}});else if(38===i){let n=tA(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tv[i-40]}});else if(48===i){let n=tA(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===i?t.push({type:"resetBackgroundColor"}):53===i?t.push({type:"setDecoration",value:"overline"}):55===i?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tv[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tv[i-100+8]}})}return t}(i.sequence);for(let t of e)"resetAll"===t.type?(s=null,a=null,o.clear()):"resetForegroundColor"===t.type?s=null:"resetBackgroundColor"===t.type?a=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?s=t.value:"setBackgroundColor"===t.type?a=t.value:"setDecoration"===t.type&&o.add(t.value)}n=i.position}while(n<e.length);return t}},i.map(t=>l.parse(t[0]).map(n=>{let i,s;n.decorations.has("reverse")?(i=n.background?r.value(n.background):c.bg,s=n.foreground?r.value(n.foreground):c.fg):(i=n.foreground?r.value(n.foreground):c.fg,s=n.background?r.value(n.background):void 0),i=to(i,e),s=to(s,e),n.decorations.has("dim")&&(i=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],i=e[2],r=e[3],s=Math.round(Number.parseInt(`${r}${r}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${i}${i}${s}`}else if(3===e.length){let t=e[0],n=e[1],i=e[2];return`#${t}${t}${n}${n}${i}${i}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(i));let a=v.None;return n.decorations.has("bold")&&(a|=v.Bold),n.decorations.has("italic")&&(a|=v.Italic),n.decorations.has("underline")&&(a|=v.Underline),n.decorations.has("strikethrough")&&(a|=v.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:s,fontStyle:a}}))}let u=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==u.name)throw new l(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(c.name))throw new l(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return a=new tk((s=tL(t,i=u,r=c,d,n)).stateStack,i.name,r.name),t_(s.tokens,a),s.tokens}function tL(e,t,n,i,r){let s=ta(n,r),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=r,h=tm(e),c=r.grammarState?function(e,t){if(!(e instanceof tk))throw new l("Invalid grammar state");return e.getInternalStack(t)}(r.grammarState,n.name)??eC:null!=r.grammarContextCode?tL(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:eC,d=[],u=[];for(let e=0,l=h.length;e<l;e++){let l,m,[p,g]=h[e];if(""===p){d=[],u.push([]);continue}if(a>0&&p.length>=a){d=[],u.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}r.includeExplanation&&(l=t.tokenizeLine(p,c,o).tokens,m=0);let f=t.tokenizeLine2(p,c,o),b=f.tokens.length/2;for(let e=0;e<b;e++){let t=f.tokens[2*e],a=e+1<b?f.tokens[2*e+2]:p.length;if(t===a)continue;let o=f.tokens[2*e+1],h=to(i[T.getForeground(o)],s),c=T.getFontStyle(o),u={content:p.substring(t,a),offset:g+t,color:h,fontStyle:c};if(r.includeExplanation){let e=[];if("scopeName"!==r.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}u.explanation=[];let i=0;for(;t+i<a;){let t=l[m],n=p.substring(t.startIndex,t.endIndex);i+=n.length,u.explanation.push({content:n,scopes:"scopeName"===r.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){let r=t[i];n[i]={scopeName:r,themeMatches:function(e,t,n){let i=[];for(let{selectors:r,settings:s}of e)for(let e of r)if(function(e,t,n){if(!tE(e[e.length-1],t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)tE(e[i],n[r])&&(i-=1),r-=1;return -1===i}(e,t,n)){i.push(s);break}return i}(e,r,t.slice(0,i))}}return n}(e,t.scopes)}),m+=1}}d.push(u)}u.push(d),d=[],c=f.ruleStack}return{tokens:u,stateStack:c}}function tE(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tR(e,t,n){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),r=i.map(i=>{let r=tT(e,t,{...n,theme:i.theme}),s=tS(r);return{tokens:r,state:s,theme:"string"==typeof i.theme?i.theme:i.theme.name}}),s=function(...e){let t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){let r=e.map(e=>e[i]),s=t.map(()=>[]);t.forEach((e,t)=>e.push(s[t]));let a=r.map(()=>0),o=r.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(s[t].push(n),a[t]+=1,o[t]=r[t][a[t]]):(s[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...r.map(e=>e.tokens)),a=s[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),s.forEach((e,n)=>{let{content:s,explanation:o,offset:l,...h}=e[t][r];a.variants[i[n].color]=h}),a})),o=r[0].state?new tk(Object.fromEntries(r.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),r[0].state.lang):void 0;return o&&t_(a,o),a}function tI(e,t,n){let i,r,s,a,o,h;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:u="css-vars"}=n,m=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===m.length)throw new l("`themes` option must not be empty");let p=tR(e,t,n);if(h=tS(p),c&&tp!==c&&!m.find(e=>e.color===c))throw new l(`\`themes\` option must contain the defaultColor key \`${c}\``);let g=m.map(t=>e.getTheme(t.theme)),f=m.map(e=>e.color);s=p.map(e=>e.map(e=>(function(e,t,n,i,r="css-vars"){let s={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(t=>tf(e.variants[t])),o=new Set(a.flatMap(e=>Object.keys(e))),h={},c=(e,i)=>{let r="color"===i?"":"background-color"===i?"-bg":`-${i}`;return n+t[e]+("color"===i?"":r)};return a.forEach((e,n)=>{for(let s of o){let o=e[s]||"inherit";if(0===n&&i&&tg.includes(s))if(i===tp&&a.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new l('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=a[e][s]||"inherit",u=a[i][s]||"inherit";h[s]=`light-dark(${d}, ${u})`,"css-vars"===r&&(h[c(n,s)]=o)}else h[s]=o;else"css-vars"===r&&(h[c(n,s)]=o)}}),s.htmlStyle=h,s})(e,f,d,c,u))),h&&t_(s,h);let b=m.map(e=>ta(e.theme,n));r=tM(m,g,b,d,c,"fg",u),i=tM(m,g,b,d,c,"bg",u),a=`shiki-themes ${g.map(e=>e.name).join(" ")}`,o=c?void 0:[r,i].join(";")}else if("theme"in n){let o=ta(n.theme,n);s=tT(e,t,n);let l=e.getTheme(n.theme);i=to(l.bg,o),r=to(l.fg,o),a=l.name,h=tS(s)}else throw new l("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:r,bg:i,themeName:a,rootStyle:o,grammarState:h}}function tM(e,t,n,i,r,s,a){return e.map((o,h)=>{let c=to(t[h][s],n[h])||"inherit",d=`${i+o.color}${"bg"===s?"-bg":""}:${c}`;if(0===h&&r){if(r===tp&&e.length>1){let i=e.findIndex(e=>"light"===e.color),r=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===r)throw new l('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let a=to(t[i][s],n[i])||"inherit",o=to(t[r][s],n[r])||"inherit";return`light-dark(${a}, ${o});${d}`}return c}return"css-vars"===a?d:null}).filter(e=>!!e).join(";")}function tO(e,t,n,i={meta:{},options:n,codeToHast:(t,n)=>tO(e,t,n),codeToTokens:(t,n)=>tI(e,t,n)}){let r=t;for(let e of tC(n))r=e.preprocess?.call(i,r,n)||r;let{tokens:s,fg:a,bg:o,themeName:l,rootStyle:h,grammarState:c}=tI(e,r,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:u=!1}=n;!0===d?s=s.map(e=>{let t,n=[],i="";return e.forEach((r,s)=>{let a=!(r.fontStyle&&(r.fontStyle&v.Underline||r.fontStyle&v.Strikethrough));a&&r.content.match(/^\s+$/)&&e[s+1]?(void 0===t&&(t=r.offset),i+=r.content):i?(a?n.push({...r,offset:t,content:i+r.content}):n.push({content:i,offset:t},r),t=void 0,i=""):n.push(r)}),n}):"never"===d&&(s=s.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,i,r]=t;if(!n&&!r)return e;let s=[{...e,offset:e.offset+n.length,content:i}];return n&&s.unshift({content:n,offset:e.offset}),r&&s.push({content:r,offset:e.offset+n.length+i.length}),s}))),u&&(s=s.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],i=tb(e.htmlStyle||tf(e)),r=tb(n.htmlStyle||tf(n)),s=e.fontStyle&&(e.fontStyle&v.Underline||e.fontStyle&v.Strikethrough),a=n.fontStyle&&(n.fontStyle&v.Underline||n.fontStyle&v.Strikethrough);s||a||i!==r?t.push({...n}):e.content+=n.content}return t}));let m={...i,get source(){return r}};for(let e of tC(n))s=e.tokens?.call(m,s)||s;return function(e,t,n,i=tS(e)){let r=tC(t),s=[],a={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,h={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?h.style=t.rootStyle:h.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(h.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(h[e]=n);let c={type:"element",tagName:"pre",properties:h,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:s},u=[],m={...n,structure:o,addClassToHast:tu,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return c},get code(){return d},get lines(){return u}};if(e.forEach((e,t)=>{t&&("inline"===o?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&s.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(let s of e){let e={type:"element",tagName:"span",properties:{...s.htmlAttrs},children:[{type:"text",value:s.content}]},l=tb(s.htmlStyle||tf(s));for(let a of(l&&(e.properties.style=l),r))e=a?.span?.call(m,e,t+1,i,n,s)||e;"inline"===o?a.children.push(e):"classic"===o&&n.children.push(e),i+=s.content.length}if("classic"===o){for(let e of r)n=e?.line?.call(m,n,t+1)||n;u.push(n),s.push(n)}else"inline"===o&&u.push(n)}),"classic"===o){for(let e of r)d=e?.code?.call(m,d)||d;for(let e of(c.children.push(d),r))c=e?.pre?.call(m,c)||c;a.children.push(c)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of a.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of r)n=e?.code?.call(m,n)||n;a.children=[];for(let e=0;e<n.children.length;e++){e>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&a.children.push(...t.children)}}let p=a;for(let e of r)p=e?.root?.call(m,p)||p;return i&&t_(p,i),p}(s,{...n,fg:a,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??h)},m,c)}let tG=function(e,t){let n=t||tt,i=n.quote||'"';if('"'!==i&&"'"!==i)throw Error("Invalid quote `"+i+"`, expected `'` or `\"`");return({one:tr,all:ts,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ev.b,characterReferences:n.characterReferences||tn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?eN.JW:eN.qy,quote:i,alternative:'"'===i?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},tB="__shiki_resolved";function tj(e){if(e?.[tB])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(i=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0,s=new Map;function a(e){if(s.has(e))return s.get(e);r+=1;let n=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?a(e):(s.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),i=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!i)return e;let r={...e,settings:{...e.settings}};if(n){let n=a(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,r.settings.foreground=n}if(i){let n=a(e.settings.background);t.colorReplacements[n]=e.settings.background,r.settings.background=n}return r}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=a(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,tB,{enumerable:!1,writable:!1,value:!0}),t}async function tD(e){return Array.from(new Set((await Promise.all(e.filter(e=>!tc(e)).map(async e=>await tl(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function t$(e){return(await Promise.all(e.map(async e=>td(e)?null:tj(await tl(e))))).filter(e=>!!e)}class tF extends Error{constructor(e){super(e),this.name="ShikiError"}}function tW(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new tF(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class tz extends ew{constructor(e,t,n,i={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=tj(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=S.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=tW(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let i=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(i.name=e.name,this._resolvedGrammars.set(e.name,i),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let i=t.embeddedLanguages||t.embeddedLangs;return i?.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new tF(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class tU{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let i=t.slice(0,e).join(".");n=[...n,...this._injections.get(i)||[]]}return n}}let tq=0;async function tH(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,i]=await Promise.all([t$(e.themes||[]),tD(e.langs||[]),e.engine]);return function(e){let t;tq+=1,!1!==e.warnings&&tq>=10&&tq%10==0&&console.warn(`[Shiki] ${tq} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new tF("`engine` option is required for synchronous mode");let i=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(tj),s=new tz(new tU(e.engine,i),r,i,e.langAlias);function a(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};h();let t=s.getTheme(e);if(!t)throw new tF(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){h(),s.loadLanguages(e.flat(1))}function l(...e){for(let t of(h(),e.flat(1)))s.loadTheme(t)}function h(){if(n)throw new tF("Shiki instance has been disposed")}function c(){n||(n=!0,s.dispose(),tq-=1)}return{setTheme:function(e){h();let n=a(e);return t!==e&&(s.setTheme(n),t=e),{theme:n,colorMap:s.getColorMap()}},getTheme:a,getLanguage:function(e){h();let t=s.getGrammar("string"==typeof e?e:e.name);if(!t)throw new tF(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return h(),s.getLoadedThemes()},getLoadedLanguages:function(){return h(),s.getLoadedLanguages()},resolveLangAlias:function(t){return tW(t,e.langAlias)},loadLanguage:async function(...e){return o(await tD(e))},loadLanguageSync:o,loadTheme:async function(...e){return h(),l(await t$(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:i})}async function tV(e){let t=await tH(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return tS(e[1]);let[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(th(r)||td(s))throw new l("Plain language does not have grammar state");if("ansi"===r)throw new l("ANSI language does not have grammar state");let{theme:a,colorMap:o}=t.setTheme(s),h=t.getLanguage(r);return new tk(tL(n,h,a,o,i).stateStack,h.name,a.name)})(t,...e),codeToTokensBase:(e,n)=>tT(t,e,n),codeToTokensWithThemes:(e,n)=>tR(t,e,n),codeToTokens:(e,n)=>tI(t,e,n),codeToHast:(e,n)=>tO(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let i={meta:{},options:n,codeToHast:(t,n)=>tO(e,t,n),codeToTokens:(t,n)=>tI(e,t,n)},r=tG(tO(e,t,n,i));for(let e of tC(n))r=e.postprocess?.call(i,r,n)||r;return r})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let tJ=[{id:"abap",name:"ABAP",import:()=>n.e(8773).then(n.bind(n,48773))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(36).then(n.bind(n,10036))},{id:"ada",name:"Ada",import:()=>n.e(5575).then(n.bind(n,55575))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3175)]).then(n.bind(n,23175))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(2577),n.e(1630),n.e(3782),n.e(3476),n.e(3111),n.e(3186)]).then(n.bind(n,76359))},{id:"apache",name:"Apache Conf",import:()=>n.e(2765).then(n.bind(n,52765))},{id:"apex",name:"Apex",import:()=>n.e(7455).then(n.bind(n,27455))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(4174)]).then(n.bind(n,54174))},{id:"applescript",name:"AppleScript",import:()=>n.e(9178).then(n.bind(n,19178))},{id:"ara",name:"Ara",import:()=>n.e(3313).then(n.bind(n,93313))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(8318).then(n.bind(n,98318))},{id:"asm",name:"Assembly",import:()=>n.e(7846).then(n.bind(n,87846))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(3782),n.e(6686)]).then(n.bind(n,36686))},{id:"awk",name:"AWK",import:()=>n.e(4900).then(n.bind(n,54900))},{id:"ballerina",name:"Ballerina",import:()=>n.e(2747).then(n.bind(n,92747))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(3290).then(n.bind(n,73290))},{id:"beancount",name:"Beancount",import:()=>n.e(8496).then(n.bind(n,98496))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(5331).then(n.bind(n,95331))},{id:"bibtex",name:"BibTeX",import:()=>n.e(5937).then(n.bind(n,25937))},{id:"bicep",name:"Bicep",import:()=>n.e(8406).then(n.bind(n,68406))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(5005)]).then(n.bind(n,25005))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(4608).then(n.bind(n,4608))},{id:"c",name:"C",import:()=>n.e(8192).then(n.bind(n,88192))},{id:"c3",name:"C3",import:()=>n.e(7113).then(n.bind(n,7113))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(4242).then(n.bind(n,64242))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(893),n.e(4367)]).then(n.bind(n,84367))},{id:"clarity",name:"Clarity",import:()=>n.e(5183).then(n.bind(n,15183))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(6959).then(n.bind(n,66959))},{id:"cmake",name:"CMake",import:()=>n.e(5482).then(n.bind(n,55482))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(5498)]).then(n.bind(n,15498))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(1188).then(n.bind(n,21188))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(2403).then(n.bind(n,22403))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(2577),n.e(6647)]).then(n.bind(n,76647))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(3787).then(n.bind(n,93787))},{id:"coq",name:"Coq",import:()=>n.e(5920).then(n.bind(n,55920))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(6110)]).then(n.bind(n,27816))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(8192),n.e(7152),n.e(1413)]).then(n.bind(n,21413))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(9261).then(n.bind(n,71642))},{id:"css",name:"CSS",import:()=>n.e(3782).then(n.bind(n,63782))},{id:"csv",name:"CSV",import:()=>n.e(6331).then(n.bind(n,66331))},{id:"cue",name:"CUE",import:()=>n.e(5338).then(n.bind(n,45338))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(4350).then(n.bind(n,14350))},{id:"d",name:"D",import:()=>n.e(9015).then(n.bind(n,59015))},{id:"dart",name:"Dart",import:()=>n.e(3288).then(n.bind(n,3288))},{id:"dax",name:"DAX",import:()=>n.e(1932).then(n.bind(n,21932))},{id:"desktop",name:"Desktop",import:()=>n.e(7819).then(n.bind(n,7819))},{id:"diff",name:"Diff",import:()=>n.e(2614).then(n.bind(n,62614))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(2783).then(n.bind(n,52783))},{id:"dotenv",name:"dotEnv",import:()=>n.e(4829).then(n.bind(n,44829))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(425).then(n.bind(n,32806))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(7844)]).then(n.bind(n,67844))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(698)]).then(n.bind(n,20698))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(8192),n.e(4583)]).then(n.bind(n,84583))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(3879).then(n.bind(n,62965))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848),n.e(1198)]).then(n.bind(n,91198))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(3304),n.e(4678)]).then(n.bind(n,64678))},{id:"fennel",name:"Fennel",import:()=>n.e(2964).then(n.bind(n,60583))},{id:"fish",name:"Fish",import:()=>n.e(2349).then(n.bind(n,52349))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(6293).then(n.bind(n,26293))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(4823),n.e(5061)]).then(n.bind(n,85061))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(4823).then(n.bind(n,94823))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(3304),n.e(2501)]).then(n.bind(n,52501))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(8670).then(n.bind(n,98670))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(4223).then(n.bind(n,34223))},{id:"gdshader",name:"GDShader",import:()=>n.e(7977).then(n.bind(n,67977))},{id:"genie",name:"Genie",import:()=>n.e(2031).then(n.bind(n,42031))},{id:"gherkin",name:"Gherkin",import:()=>n.e(8457).then(n.bind(n,88457))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(2041).then(n.bind(n,92041))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(7152),n.e(3194)]).then(n.bind(n,33194))},{id:"gleam",name:"Gleam",import:()=>n.e(2895).then(n.bind(n,62895))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(640)]).then(n.bind(n,30640))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(9186)]).then(n.bind(n,59186))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(8192),n.e(6887)]).then(n.bind(n,6887))},{id:"gn",name:"GN",import:()=>n.e(9448).then(n.bind(n,99448))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(9690).then(n.bind(n,79690))},{id:"go",name:"Go",import:()=>n.e(4553).then(n.bind(n,64553))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(1248)]).then(n.bind(n,41248))},{id:"groovy",name:"Groovy",import:()=>n.e(9189).then(n.bind(n,39189))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2503),n.e(400)]).then(n.bind(n,70400))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3437)]).then(n.bind(n,63437))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2735)]).then(n.bind(n,12735))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(1335).then(n.bind(n,21335))},{id:"haxe",name:"Haxe",import:()=>n.e(1215).then(n.bind(n,11215))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(2374).then(n.bind(n,82374))},{id:"hjson",name:"Hjson",import:()=>n.e(9421).then(n.bind(n,79421))},{id:"hlsl",name:"HLSL",import:()=>n.e(10).then(n.bind(n,80010))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476)]).then(n.bind(n,43476))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(1656)]).then(n.bind(n,51656))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(7152),n.e(1248),n.e(8243)]).then(n.bind(n,98243))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6931),n.e(1248),n.e(816)]).then(n.bind(n,20816))},{id:"hxml",name:"HXML",import:()=>n.e(376).then(n.bind(n,50376))},{id:"hy",name:"Hy",import:()=>n.e(6938).then(n.bind(n,26938))},{id:"imba",name:"Imba",import:()=>n.e(794).then(n.bind(n,30794))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(4309).then(n.bind(n,34309))},{id:"java",name:"Java",import:()=>n.e(6931).then(n.bind(n,76931))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(2577).then(n.bind(n,52970))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3392)]).then(n.bind(n,43392))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(2577),n.e(6402)]).then(n.bind(n,36402))},{id:"json",name:"JSON",import:()=>n.e(4053).then(n.bind(n,4053))},{id:"json5",name:"JSON5",import:()=>n.e(3860).then(n.bind(n,63860))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(4650).then(n.bind(n,4650))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(1453).then(n.bind(n,91453))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(8132).then(n.bind(n,8132))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(4634).then(n.bind(n,24634))},{id:"jsx",name:"JSX",import:()=>n.e(9312).then(n.bind(n,29228))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(2577),n.e(6666),n.e(8835),n.e(2503),n.e(8192),n.e(893),n.e(6339)]).then(n.bind(n,85816))},{id:"kdl",name:"KDL",import:()=>n.e(5968).then(n.bind(n,95968))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(6572).then(n.bind(n,26572))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(583).then(n.bind(n,50583))},{id:"latex",name:"LaTeX",import:()=>n.e(2839).then(n.bind(n,72839))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(7227).then(n.bind(n,77227))},{id:"less",name:"Less",import:()=>n.e(1280).then(n.bind(n,11280))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5347)]).then(n.bind(n,25347))},{id:"llvm",name:"LLVM IR",import:()=>n.e(9220).then(n.bind(n,19220))},{id:"log",name:"Log file",import:()=>n.e(6741).then(n.bind(n,16741))},{id:"logo",name:"Logo",import:()=>n.e(5670).then(n.bind(n,25670))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(8192),n.e(3873)]).then(n.bind(n,33873))},{id:"luau",name:"Luau",import:()=>n.e(3072).then(n.bind(n,33072))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(541).then(n.bind(n,30541))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(3304).then(n.bind(n,13304))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(535),n.e(3782),n.e(3111),n.e(1280),n.e(5645)]).then(n.bind(n,65645))},{id:"matlab",name:"MATLAB",import:()=>n.e(1184).then(n.bind(n,31184))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(3304),n.e(6729)]).then(n.bind(n,86729))},{id:"mdx",name:"MDX",import:()=>n.e(5690).then(n.bind(n,55690))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(9842).then(n.bind(n,29842))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(1501).then(n.bind(n,11501))},{id:"mojo",name:"Mojo",import:()=>n.e(194).then(n.bind(n,50194))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(4567).then(n.bind(n,24567))},{id:"move",name:"Move",import:()=>n.e(4540).then(n.bind(n,24540))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(6455).then(n.bind(n,36455))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(5320).then(n.bind(n,35320))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(8192),n.e(2215)]).then(n.bind(n,2215))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(8192),n.e(3304),n.e(7799)]).then(n.bind(n,7799))},{id:"nix",name:"Nix",import:()=>n.e(6099).then(n.bind(n,86099))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(8288).then(n.bind(n,38288))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(6290).then(n.bind(n,36290))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(4763).then(n.bind(n,21946))},{id:"ocaml",name:"OCaml",import:()=>n.e(3419).then(n.bind(n,3419))},{id:"odin",name:"Odin",import:()=>n.e(9547).then(n.bind(n,69547))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(4474).then(n.bind(n,4474))},{id:"pascal",name:"Pascal",import:()=>n.e(6948).then(n.bind(n,46948))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(968)]).then(n.bind(n,30968))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(6155),n.e(7040)]).then(n.bind(n,86155))},{id:"pkl",name:"Pkl",import:()=>n.e(6166).then(n.bind(n,96166))},{id:"plsql",name:"PL/SQL",import:()=>n.e(8947).then(n.bind(n,48947))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(3324).then(n.bind(n,43324))},{id:"polar",name:"Polar",import:()=>n.e(3095).then(n.bind(n,93095))},{id:"postcss",name:"PostCSS",import:()=>n.e(9240).then(n.bind(n,19240))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(9294).then(n.bind(n,19294))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(7636).then(n.bind(n,7636))},{id:"prisma",name:"Prisma",import:()=>n.e(327).then(n.bind(n,40327))},{id:"prolog",name:"Prolog",import:()=>n.e(34).then(n.bind(n,80034))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(8545).then(n.bind(n,58545))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(5755)]).then(n.bind(n,55755))},{id:"puppet",name:"Puppet",import:()=>n.e(9569).then(n.bind(n,19569))},{id:"purescript",name:"PureScript",import:()=>n.e(6580).then(n.bind(n,36580))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(893).then(n.bind(n,40893))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(2577),n.e(3077)]).then(n.bind(n,73077))},{id:"qmldir",name:"QML Directory",import:()=>n.e(6144).then(n.bind(n,46144))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(5712).then(n.bind(n,55712))},{id:"r",name:"R",import:()=>n.e(5025).then(n.bind(n,25025))},{id:"racket",name:"Racket",import:()=>n.e(3229).then(n.bind(n,3229))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(252).then(n.bind(n,30252))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(9261),n.e(4903)]).then(n.bind(n,84903))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(5997).then(n.bind(n,85997))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(6412).then(n.bind(n,86412))},{id:"rel",name:"Rel",import:()=>n.e(2062).then(n.bind(n,62062))},{id:"riscv",name:"RISC-V",import:()=>n.e(2710).then(n.bind(n,52710))},{id:"ron",name:"RON",import:()=>n.e(862).then(n.bind(n,80862))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(5728).then(n.bind(n,95728))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(8848),n.e(123)]).then(n.bind(n,52504))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(8848)]).then(n.bind(n,72331))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(1161).then(n.bind(n,61161))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(2503),n.e(6360)]).then(n.bind(n,66360))},{id:"sass",name:"Sass",import:()=>n.e(8113).then(n.bind(n,88113))},{id:"scala",name:"Scala",import:()=>n.e(9377).then(n.bind(n,89377))},{id:"scheme",name:"Scheme",import:()=>n.e(7142).then(n.bind(n,97142))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(3782),n.e(3111)]).then(n.bind(n,43111))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(9648).then(n.bind(n,59648))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(1379).then(n.bind(n,1379))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(7152).then(n.bind(n,57152))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(7152),n.e(8257)]).then(n.bind(n,8257))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(1556).then(n.bind(n,61556))},{id:"solidity",name:"Solidity",import:()=>n.e(8704).then(n.bind(n,38704))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(2577),n.e(3782),n.e(3476),n.e(2728)]).then(n.bind(n,72728))},{id:"sparql",name:"SPARQL",import:()=>n.e(8432).then(n.bind(n,68432))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(7610).then(n.bind(n,47610))},{id:"sql",name:"SQL",import:()=>n.e(2503).then(n.bind(n,2503))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(6046).then(n.bind(n,16046))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(2503),n.e(4080)]).then(n.bind(n,64080))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(7557).then(n.bind(n,97557))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(2577),n.e(830)]).then(n.bind(n,30830))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(1142)]).then(n.bind(n,81142))},{id:"swift",name:"Swift",import:()=>n.e(5922).then(n.bind(n,35922))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(3274).then(n.bind(n,90893))},{id:"systemd",name:"Systemd Units",import:()=>n.e(9006).then(n.bind(n,9006))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(1078).then(n.bind(n,21078))},{id:"tasl",name:"Tasl",import:()=>n.e(4963).then(n.bind(n,94963))},{id:"tcl",name:"Tcl",import:()=>n.e(1274).then(n.bind(n,41274))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(2577),n.e(3782),n.e(4553),n.e(1977)]).then(n.bind(n,81977))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(3483).then(n.bind(n,43483))},{id:"tex",name:"TeX",import:()=>n.e(1456).then(n.bind(n,11456))},{id:"toml",name:"TOML",import:()=>n.e(4163).then(n.bind(n,84163))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(4357)]).then(n.bind(n,74357))},{id:"tsv",name:"TSV",import:()=>n.e(840).then(n.bind(n,30840))},{id:"tsx",name:"TSX",import:()=>n.e(6814).then(n.bind(n,33710))},{id:"turtle",name:"Turtle",import:()=>n.e(1365).then(n.bind(n,41365))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(2577),n.e(535),n.e(6814),n.e(9312),n.e(6666),n.e(8835),n.e(3782),n.e(3476),n.e(6931),n.e(2503),n.e(8192),n.e(7152),n.e(1248),n.e(893),n.e(3111),n.e(8848),n.e(6155),n.e(6588)]).then(n.bind(n,96588))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(535).then(n.bind(n,5346))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(9466).then(n.bind(n,19466))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(2013).then(n.bind(n,62013))},{id:"v",name:"V",import:()=>n.e(7525).then(n.bind(n,7525))},{id:"vala",name:"Vala",import:()=>n.e(9565).then(n.bind(n,59565))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(2179).then(n.bind(n,62179))},{id:"verilog",name:"Verilog",import:()=>n.e(7182).then(n.bind(n,34801))},{id:"vhdl",name:"VHDL",import:()=>n.e(7425).then(n.bind(n,37425))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(4539).then(n.bind(n,14539))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(2577),n.e(535),n.e(3782),n.e(3476),n.e(5553)]).then(n.bind(n,45553))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(2577),n.e(7021)]).then(n.bind(n,17021))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(2577),n.e(1290),n.e(3782),n.e(3111),n.e(1280),n.e(2160)]).then(n.bind(n,98110))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(1219).then(n.bind(n,21219))},{id:"wasm",name:"WebAssembly",import:()=>n.e(4275).then(n.bind(n,84275))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(5269).then(n.bind(n,65269))},{id:"wgsl",name:"WGSL",import:()=>n.e(4976).then(n.bind(n,44976))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(4370).then(n.bind(n,44370))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(624).then(n.bind(n,58243))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(7442).then(n.bind(n,6987))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(6931),n.e(4659)]).then(n.bind(n,77040))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(6931),n.e(3942)]).then(n.bind(n,3942))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(5518).then(n.bind(n,95518))},{id:"zenscript",name:"ZenScript",import:()=>n.e(2485).then(n.bind(n,92485))},{id:"zig",name:"Zig",import:()=>n.e(7041).then(n.bind(n,57041))}],tK=Object.fromEntries(tJ.map(e=>[e.id,e.import])),tQ=Object.fromEntries(tJ.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),tX={...tK,...tQ},tY=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(2812).then(n.bind(n,62812))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(7635).then(n.bind(n,27635))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(7884).then(n.bind(n,77884))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(4358).then(n.bind(n,94358))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(9005).then(n.bind(n,19005))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(1595).then(n.bind(n,51595))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(3979).then(n.bind(n,83979))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(9680).then(n.bind(n,59680))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(2107).then(n.bind(n,2107))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(5375).then(n.bind(n,75375))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(5136).then(n.bind(n,55136))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(4295).then(n.bind(n,4295))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(7258).then(n.bind(n,87258))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(9996).then(n.bind(n,49996))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(9224).then(n.bind(n,39224))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(6704).then(n.bind(n,86704))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(6927).then(n.bind(n,96927))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(5424).then(n.bind(n,15424))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(3082).then(n.bind(n,23082))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(9382).then(n.bind(n,69382))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(2130).then(n.bind(n,32130))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(9666).then(n.bind(n,49666))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(392).then(n.bind(n,80392))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(9841).then(n.bind(n,49841))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(3492).then(n.bind(n,53492))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(214).then(n.bind(n,214))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(579).then(n.bind(n,60579))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(6311).then(n.bind(n,96311))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(7524).then(n.bind(n,7524))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(6563).then(n.bind(n,56563))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(6701).then(n.bind(n,26701))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(7785).then(n.bind(n,97785))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(9136).then(n.bind(n,19136))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(2489).then(n.bind(n,82489))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(1247).then(n.bind(n,21247))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(6859).then(n.bind(n,76859))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(7921).then(n.bind(n,67921))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(6846).then(n.bind(n,96846))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(3074).then(n.bind(n,83074))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(9521).then(n.bind(n,89521))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(6089).then(n.bind(n,6089))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(5520).then(n.bind(n,15520))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(4969).then(n.bind(n,44969))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(2954).then(n.bind(n,92954))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(5491).then(n.bind(n,5491))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(9615).then(n.bind(n,9615))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(7625).then(n.bind(n,67625))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(1534).then(n.bind(n,21534))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(8430).then(n.bind(n,28430))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(8555).then(n.bind(n,48555))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(7082).then(n.bind(n,87082))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(1583).then(n.bind(n,1583))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(5750).then(n.bind(n,35750))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(7465).then(n.bind(n,17465))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(1898).then(n.bind(n,21898))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(7130).then(n.bind(n,67130))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(966).then(n.bind(n,966))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(1664).then(n.bind(n,31664))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(3286).then(n.bind(n,83286))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(4593).then(n.bind(n,94593))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(9267).then(n.bind(n,39267))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(7889).then(n.bind(n,47889))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(5318).then(n.bind(n,55318))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8656).then(n.bind(n,78656))}].map(e=>[e.id,e.import]));var tZ=n(49304).Buffer;class t0 extends Error{constructor(e){super(e),this.name="ShikiError"}}function t1(){return"u">typeof performance?performance.now():Date.now()}let t2=(e,t)=>e+(t-e%t)%t;async function t3(e){let t,n,i={};function r(e){n=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}let s="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function a(e,t){return e?function(e,t,n=1024){let i=t+n,r=t;for(;e[r]&&!(r>=i);)++r;if(r-t>16&&e.buffer&&s)return s.decode(e.subarray(t,r));let a="";for(;t<r;){let n=e[t++];if(!(128&n)){a+=String.fromCharCode(n);continue}let i=63&e[t++];if((224&n)==192){a+=String.fromCharCode((31&n)<<6|i);continue}let r=63&e[t++];if((n=(240&n)==224?(15&n)<<12|i<<6|r:(7&n)<<18|i<<12|r<<6|63&e[t++])<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return a}(i.HEAPU8,e,t):""}let o={emscripten_get_now:t1,emscripten_memcpy_big:function(e,t,n){i.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let s=i.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let i=1;i<=4;i*=2){let a=s*(1+.2/i);if(a=Math.min(a,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),r(t.buffer),1}catch{}}(Math.min(0x80000000,t2(Math.max(e,a),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});r((t=n.memory).buffer),Object.assign(i,n),i.UTF8ToString=a}return await l(),i}var t5=Object.defineProperty,t6=(e,t,n)=>{let i;return(i="symbol"!=typeof t?t+"":t)in e?t5(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n};let t8=null;class t7{constructor(e){t6(this,"utf16Length"),t6(this,"utf8Length"),t6(this,"utf16Value"),t6(this,"utf8Value"),t6(this,"utf16OffsetToUtf8"),t6(this,"utf8OffsetToUtf16");const t=e.length,n=t7._utf8ByteLength(e),i=n!==t,r=i?new Uint32Array(t+1):null;i&&(r[t]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=t);const a=new Uint8Array(n);let o=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let h=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(h=(l-55296<<10)+65536|t-56320,c=!0)}i&&(r[n]=o,c&&(r[n+1]=o),h<=127?s[o+0]=n:h<=2047?(s[o+0]=n,s[o+1]=n):h<=65535?(s[o+0]=n,s[o+1]=n,s[o+2]=n):(s[o+0]=n,s[o+1]=n,s[o+2]=n,s[o+3]=n)),h<=127?a[o++]=h:(h<=2047?a[o++]=192|(1984&h)>>>6:(h<=65535?a[o++]=224|(61440&h)>>>12:(a[o++]=240|(1835008&h)>>>18,a[o++]=128|(258048&h)>>>12),a[o++]=128|(4032&h)>>>6),a[o++]=128|(63&h)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){let r=e.charCodeAt(n),s=r,a=!1;if(r>=55296&&r<=56319&&n+1<i){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(s=(r-55296<<10)+65536|t-56320,a=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,a&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let t4=class e{constructor(t){if(t6(this,"id",++e.LAST_ID),t6(this,"_onigBinding"),t6(this,"content"),t6(this,"utf16Length"),t6(this,"utf8Length"),t6(this,"utf16OffsetToUtf8"),t6(this,"utf8OffsetToUtf16"),t6(this,"ptr"),!t8)throw new t0("Must invoke loadWasm first.");this._onigBinding=t8,this.content=t;const n=new t7(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=t8.omalloc(1e4)),e._sharedPtrInUse=!0,t8.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(t8)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};t6(t4,"LAST_ID",0),t6(t4,"_sharedPtr",0),t6(t4,"_sharedPtrInUse",!1);class t9{constructor(e){if(t6(this,"_onigBinding"),t6(this,"_ptr"),!t8)throw new t0("Must invoke loadWasm first.");const t=[],n=[];for(let i=0,r=e.length;i<r;i++){const r=new t7(e[i]);t[i]=r.createString(t8),n[i]=r.utf8Length}const i=t8.omalloc(4*e.length);t8.HEAPU32.set(t,i/4);const r=t8.omalloc(4*e.length);t8.HEAPU32.set(n,r/4);const s=t8.createOnigScanner(i,r,e.length);for(let n=0,i=e.length;n<i;n++)t8.ofree(t[n]);t8.ofree(r),t8.ofree(i),0===s&&function(e){throw new t0(e.UTF8ToString(e.getLastOnigError()))}(t8),this._onigBinding=t8,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if("number"==typeof n&&(i=n),"string"==typeof e){e=new t4(e);let n=this._findNextMatchSync(e,t,!1,i);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){let r=this._onigBinding,s=r.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(0===s)return null;let a=r.HEAPU32,o=s/4,l=a[o++],h=a[o++],c=[];for(let t=0;t<h;t++){let n=e.convertUtf8OffsetToUtf16(a[o++]),i=e.convertUtf8OffsetToUtf16(a[o++]);c[t]={start:n,end:i,length:i-n}}return{index:l,captureIndices:c}}}function ne(e){return t=>WebAssembly.instantiate(e,t)}async function nt(e){return e&&await (r||(r=async function(){t8=await t3(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var i,r,s,a;if(void 0!==n.data&&(n=n.data),i=n,"u">typeof Response&&i instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (s=n,e=>WebAssembly.instantiateStreaming(s,e))(t):await (a=n,async e=>{let t=await a.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(r=n,"u">typeof ArrayBuffer&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||void 0!==tZ&&tZ.isBuffer?.(r)||"u">typeof SharedArrayBuffer&&r instanceof SharedArrayBuffer||"u">typeof Uint32Array&&r instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await ne(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await ne(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new t9(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new t4(e)}}let nn=(s=(d={langs:tX,themes:tY,engine:()=>nt(Promise.all([n.e(4814),n.e(9302)]).then(n.bind(n,49302)))}).langs,a=d.themes,o=d.engine,async function(e){function t(t){if("string"==typeof t){if(tc(t=e.langAlias?.[t]||t))return[];let n=s[t];if(!n)throw new l(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}function n(e){if(td(e))return"none";if("string"==typeof e){let t=a[e];if(!t)throw new l(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let i=(e.themes??[]).map(e=>n(e)),r=(e.langs??[]).map(e=>t(e)),h=await tV({engine:e.engine??o(),...e,themes:i,langs:r});return{...h,loadLanguage:(...e)=>h.loadLanguage(...e.map(t)),loadTheme:(...e)=>h.loadTheme(...e.map(n)),getBundledLanguages:()=>s,getBundledThemes:()=>a}})}}]);
|