@surething/cockpit 1.0.244 → 1.0.245
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 +5 -3
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/routes-manifest.json +14 -0
- package/.next-prod/server/app/_global-error/page.js +3 -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 -1
- package/.next-prod/server/app/_global-error.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
- 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 +1 -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 +1 -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 +4 -4
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +4 -4
- 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 +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/agent/test/route.js +1 -1
- package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
- 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/chat/codex/route.js +2 -2
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +2 -2
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js.nft.json +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/commands/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js.nft.json +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/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/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/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/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/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/schemas/route.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
- package/.next-prod/server/app/api/deepseek/credentials/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js.nft.json +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/file/route.js +1 -1
- package/.next-prod/server/app/api/file/route.js.nft.json +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/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/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/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/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/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/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/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/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/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/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/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/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/stat/route.js +1 -1
- package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/text/route.js +1 -1
- package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
- 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/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/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/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/current-branch/route.js +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +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/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/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/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/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/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/global-state/route.js +2 -2
- package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/health/route.js +1 -1
- package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -0
- package/.next-prod/server/app/api/html-apps/[id]/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/html-apps/[id]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/html-apps/route.js +1 -0
- package/.next-prod/server/app/api/html-apps/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/html-apps/route_client-reference-manifest.js +1 -0
- 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/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/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/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/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/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/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/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/mysql/columns/route.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +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/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/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/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/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/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/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/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/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/note/route.js +1 -1
- package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/config/route.js +1 -1
- package/.next-prod/server/app/api/ollama/config/route.js.nft.json +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/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/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-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/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/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/preview/[...path]/route.js +1 -1
- package/.next-prod/server/app/api/preview/[...path]/route.js.nft.json +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-state/route.js +2 -2
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +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/push/public-key/route.js +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +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/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/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/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/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/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/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/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]/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]/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/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/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/route.js +1 -1
- package/.next-prod/server/app/api/review/route.js.nft.json +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/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/scheduled-tasks/route.js +2 -2
- package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +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/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/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]/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-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/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/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/route.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js.nft.json +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/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/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/route.js +1 -1
- package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/snapshots/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/route.js.nft.json +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/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/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/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/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/version/route.js +1 -1
- package/.next-prod/server/app/api/version/route.js.nft.json +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/favicon.ico.body +0 -0
- package/.next-prod/server/app/m/page.js +2 -2
- package/.next-prod/server/app/m/page.js.nft.json +1 -1
- package/.next-prod/server/app/m/page_client-reference-manifest.js +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/page.js +2 -2
- 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 +2 -2
- 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 +5 -3
- package/.next-prod/server/chunks/1813.js +1 -1
- package/.next-prod/server/chunks/304.js +1 -1
- package/.next-prod/server/chunks/{5674.js → 3282.js} +5 -5
- package/.next-prod/server/chunks/4848.js +287 -3
- package/.next-prod/server/chunks/4916.js +177 -0
- package/.next-prod/server/chunks/6038.js +1 -1
- package/.next-prod/server/chunks/9658.js +187 -11
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/PlTlBBOBl0rKPGTdXqONe/_buildManifest.js +1 -0
- package/.next-prod/static/chunks/{1973-5ba02ae354968836.js → 2443-e80dab81d8fc10ab.js} +2 -2
- package/.next-prod/static/chunks/{7849-7c580c908fe21e9d.js → 4473-6877df387a4a05a5.js} +2 -2
- package/.next-prod/static/chunks/6784-0122b1622ba5c509.js +0 -0
- package/.next-prod/static/chunks/8010-2f5cec4469580ed9.js +25 -0
- package/.next-prod/static/chunks/9530-cb2a4490ee7128d8.js +191 -0
- package/.next-prod/static/chunks/app/_global-error/page-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/agent/test/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/config/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/{layout-392444ad665c7748.js → layout-f34cd2c3e09fc25f.js} +1 -1
- package/.next-prod/static/chunks/app/m/{page-54053828af79704f.js → page-4e8c9751c7ef8397.js} +1 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/app/{page-a32d8344284e99cb.js → page-a9db2a83c07440f4.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-a32d8344284e99cb.js → page-a9db2a83c07440f4.js} +1 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-e255a9d1bcc8de59.js +1 -0
- package/.next-prod/static/css/546386ec7f3b9978.css +1 -0
- package/.next-prod/trace +14 -13
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/html-apps/[id]/route.ts +351 -0
- package/.next-prod/types/app/api/html-apps/route.ts +351 -0
- package/.next-prod/types/routes.d.ts +3 -1
- package/.next-prod/types/validator.ts +18 -0
- package/dist/{chunk-BFESJMNO.mjs → chunk-BRW4ZEIC.mjs} +1 -0
- package/dist/{chunk-FMJUH423.mjs → chunk-GOOVG5NZ.mjs} +1 -1
- package/dist/{chunk-3X4GQZL4.mjs → chunk-RUNUGDPP.mjs} +1 -1
- package/dist/httpApi.mjs +2 -2
- package/dist/scheduledTasks.mjs +291 -2
- package/dist/{server-HKW65PHP.mjs → server-SVZ344NE.mjs} +2 -2
- package/dist/wsServer.mjs +200 -7
- package/package.json +1 -1
- package/public/html-lib/babel.min.js +2 -0
- package/public/html-lib/react-dom.production.min.js +267 -0
- package/public/html-lib/react.production.min.js +31 -0
- package/public/html-lib/theme.css +99 -0
- package/.next-prod/static/chunks/1871-4468d75ec99d71fc.js +0 -25
- package/.next-prod/static/chunks/6784-53d80dc3b480cf9a.js +0 -0
- package/.next-prod/static/chunks/9530-08419cb81f88a0e6.js +0 -15
- package/.next-prod/static/chunks/app/_global-error/page-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/css/1d52d90207f3b441.css +0 -1
- package/.next-prod/static/sMb_F5kg6en8USwL7FYkb/_buildManifest.js +0 -1
- /package/.next-prod/static/{sMb_F5kg6en8USwL7FYkb → PlTlBBOBl0rKPGTdXqONe}/_ssgManifest.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1973],{5989:(e,t,r)=>{"use strict";let n,i;r.d(t,{XI:()=>tn,nA:()=>eY,A0:()=>eQ,Hj:()=>e0});var s=r(82159),o=r(76865),l=r(27050),a=r(63197),u=r(12894),c=r(8242);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=10,r=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(n,i)=>(r==t&&(r=0),e[r++]=n,e[r++]=i)}var h=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,s=n+1,o=i+1;for(let e=1;s<this.width&&this.map[t+e]==r;e++)s++;for(let e=1;o<this.height&&this.map[t+this.width*e]==r;e++)o++;return{left:n,top:i,right:s,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){let{left:n,right:i,top:s,bottom:o}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[s*this.width+(r<0?n-1:i)]:(r<0?0==s:o==this.height)?null:this.map[n+this.width*(r<0?s-1:o)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:s}=this.findCell(e),{left:o,right:l,top:a,bottom:u}=this.findCell(t);return{left:Math.min(r,o),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(s,u)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let s=n*this.width+i,o=this.map[s];!r[o]&&(r[o]=!0,i==e.left&&i&&this.map[s-1]==o||n==e.top&&n&&this.map[s-this.width]==o||t.push(o))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let s=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?s-1:this.map[r]}i=s}}static get(e){return n(e)||i(e,d(e))}};function d(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=p(e),r=e.childCount,n=[],i=0,s=null,o=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let u=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:h,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+l>=r){(s||(s=[])).push({type:"overlong_rowspan",pos:a,n:d-e});break}let u=i+e*t;for(let e=0;e<h;e++){0==n[u+e]?n[u+e]=a:(s||(s=[])).push({type:"collision",row:l,pos:a,n:h-e});let r=p&&p[e];if(r){let n=(u+e)%t*2,i=o[n];null==i||i!=r&&1==o[n+1]?(o[n]=r,o[n+1]=1):i==r&&o[n+1]++}}}i+=h,a+=c.nodeSize}let c=(l+1)*t,h=0;for(;i<c;)0==n[i++]&&h++;h&&(s||(s=[])).push({type:"missing",row:l,n:h}),a++}(0===t||0===r)&&(s||(s=[])).push({type:"zero_sized"});let l=new h(t,r,n,s),a=!1;for(let e=0;!a&&e<o.length;e+=2)null!=o[e]&&o[e+1]<r&&(a=!0);return a&&f(l,o,e),l}function p(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(s+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);s+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=s:t!=s&&(t=Math.max(t,s))}return t}function f(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let s=e.map[i];if(n[s])continue;n[s]=!0;let o=r.nodeAt(s);if(!o)throw RangeError(`No cell with offset ${s} found`);let l=null,a=o.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=m(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function m(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function g(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let _=new o.hs("selectingCells");function y(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function k(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}function b(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function w(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let r=y(t.$head)||x(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function x(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function C(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function A(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function E(e,t,r){let n=e.node(-1),i=h.get(n),s=e.start(-1),o=i.nextCell(e.pos-s,t,r);return null==o?null:e.node(0).resolve(s+o)}function S(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function M(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}function T(e,t,r){let n=g(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0}var D=class e extends o.LN{constructor(e,t=e){const r=e.node(-1),n=h.get(r),i=e.start(-1),s=n.rectBetween(e.pos-i,t.pos-i),l=e.node(0),a=n.cellsInRect(s).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);const u=a.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new o.yn(l.resolve(n),l.resolve(n+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&A(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return o.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let r=n.top;r<n.bottom;r++){let o=[];for(let s=r*t.width+n.left,l=n.left;l<n.right;l++,s++){let r=t.map[s];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let u=n.left-l.left,c=l.right-n.right;if(u>0||c>0){let e=a.attrs;if(u>0&&(e=S(e,0,u)),c>0&&(e=S(e,e.colspan-c,c)),l.left<n.left){if(!(a=a.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else a=a.type.create(e,a.content)}if(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}o.push(a)}s.push(e.child(r).copy(l.FK.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:s;return new l.Ji(l.FK.from(o),1,1)}replace(e,t=l.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],a=e.mapping.slice(r);e.replace(a.map(s.pos),a.map(o.pos),i?l.Ji.empty:t)}let i=o.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new l.Ji(l.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=h.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.top<=l.top?(o.top>0&&(t=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(r=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.left<=l.left?(o.left>0&&(t=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(r=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(t=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new F(this.$anchorCell.pos,this.$headCell.pos)}};D.prototype.visible=!1,o.LN.jsonID("cell",D);var F=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&A(t,r)?new D(t,r):o.LN.near(r,1)}};function I(e){if(!(e.selection instanceof D))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(a.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),a.zF.create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}function R({$from:e,$to:t}){let r,n;for(let t=e.depth;t>0;t--){let n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}function N(e,t,r){let n,i,s=(t||e).selection,l=(t||e).doc;if(s instanceof o.nh&&(i=s.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=D.create(l,s.from);else if("row"==i){let e=l.resolve(s.from+1);n=D.rowSelection(e,e)}else if(!r){let e=h.get(s.node),t=s.from+1,r=t+e.map[e.width*e.height-1];n=D.create(l,t+1,r)}}else s instanceof o.U3&&L(s)?n=o.U3.create(l,s.from):s instanceof o.U3&&R(s)&&(n=o.U3.create(l,s.$from.start(),s.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t}let O=new o.hs("fix-tables");function z(e,t,r,n){let i=e.childCount,s=t.childCount;e:for(let o=0,l=0;o<s;o++){let s=t.child(o);for(let t=l,n=Math.min(i,o+3);t<n;t++)if(e.child(t)==s){l=t+1,r+=s.nodeSize;continue e}n(s,r),l<i&&e.child(l).sameMarkup(s)?z(e.child(l),s,r+1,n):s.nodesBetween(0,s.content.size,n,r+1),r+=s.nodeSize}}function P(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=$(e,t,n,r))};return t?t.doc!=e.doc&&z(t.doc,e.doc,0,n):e.doc.descendants(n),r}function $(e,t,r,n){let i,s,o=h.get(t);if(!o.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<o.height;e++)l.push(0);for(let e=0;e<o.problems.length;e++){let i=o.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let s=e.attrs;for(let e=0;e<s.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,S(s,s.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),s=e);for(let a=0,u=r+1;a<o.height;a++){let r=t.child(a),o=u+r.nodeSize,c=l[a];if(c>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<c;r++){let r=g(e.schema)[t].createAndFill();r&&l.push(r)}let h=(0==a||i==a-1)&&s==a?u+1:o-1;n.insert(n.mapping.map(h),l)}u=o}return n.setMeta(O,{fixTables:!0})}function B(e){let t=e.selection,r=w(e),n=r.node(-1),i=r.start(-1),s=h.get(n);return{...t instanceof D?s.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):s.findCell(r.pos-i),tableStart:i,map:s,table:n}}function q(e,{map:t,tableStart:r,table:n},i){let s=i>0?-1:0;T(t,n,i+s)&&(s=0==i||i==t.width?null:0);for(let o=0;o<t.height;o++){let l=o*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],a=n.nodeAt(s);e.setNodeMarkup(e.mapping.map(r+s),null,M(a.attrs,i-t.colCount(s))),o+=a.attrs.rowspan-1}else{let a=null==s?g(n.type.schema).cell:n.nodeAt(t.map[l+s]).type,u=t.positionAt(o,i,n);e.insert(e.mapping.map(r+u),a.createAndFill())}}return e}function j(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.left))}return!0}function H(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.right))}return!0}function V(e,{map:t,table:r,tableStart:n},i){let s=e.mapping.maps.length;for(let o=0;o<t.height;){let l=o*t.width+i,a=t.map[l],u=r.nodeAt(a),c=u.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(s).map(n+a),null,S(c,i-t.colCount(a)));else{let t=e.mapping.slice(s).map(n+a);e.delete(t,t+u.nodeSize)}o+=c.rowspan}}function U(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;V(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(e)}t(n)}return!0}function W(e,t,r){var n;let i=g(t.type.schema).header_cell;for(let s=0;s<e.width;s++)if((null==(n=t.nodeAt(e.map[s+r*e.width]))?void 0:n.type)!=i)return!1;return!0}function J(e,{map:t,tableStart:r,table:n},i){let s=r;for(let e=0;e<i;e++)s+=n.child(e).nodeSize;let o=[],l=i>0?-1:0;W(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{var a;let e=null==l?g(n.type.schema).cell:null==(a=n.nodeAt(t.map[u+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&o.push(r)}return e.insert(s,g(n.type.schema).row.create(null,o)),e}function K(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.top))}return!0}function G(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.bottom))}return!0}function Z(e,{map:t,table:r,tableStart:n},i){let s=0;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let o=s+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(s+n,o+n);let a=new Set;for(let s=0,o=i*t.width;s<t.width;s++,o++){let u=t.map[o];if(!a.has(u)){if(a.add(u),i>0&&u==t.map[o-t.width]){let t=r.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(l).map(u+n),null,{...t,rowspan:t.rowspan-1}),s+=t.colspan-1}else if(i<t.height&&u==t.map[o+t.width]){let o=r.nodeAt(u),a=o.attrs,c=o.type.create({...a,rowspan:o.attrs.rowspan-1},o.content),h=t.positionAt(i+1,s,r);e.insert(e.mapping.slice(l).map(n+h),c),s+=a.colspan-1}}}}function X(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;Z(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(r.table)}t(n)}return!0}function Y(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Q({width:e,height:t,map:r},n){let i=n.top*e+n.left,s=i,o=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[s]==r[s-1]||n.right<e&&r[l]==r[l+1])return!0;s+=e,l+=e}for(let s=n.left;s<n.right;s++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[o]==r[o+e])return!0;i++,o++}return!1}function ee(e,t){let r=e.selection;if(!(r instanceof D)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=B(e),{map:i}=n;if(Q(i,n))return!1;if(t){let r,s,o=e.tr,a={},u=l.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let l=i.map[e*i.width+t],c=n.table.nodeAt(l);if(!a[l]&&c)if(a[l]=!0,null==r)r=l,s=c;else{Y(c)||(u=u.append(c.content));let e=o.mapping.map(l+n.tableStart);o.delete(e,e+c.nodeSize)}}if(null==r||null==s)return!0;if(o.setNodeMarkup(r+n.tableStart,null,{...M(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),rowspan:n.bottom-n.top}),u.size>0){let e=r+1+s.content.size,t=Y(s)?r+1:e;o.replaceWith(t+n.tableStart,e+n.tableStart,u)}o.setSelection(new D(o.doc.resolve(r+n.tableStart))),t(o)}return!0}function et(e,t){let r=g(e.schema);return er(({node:e})=>r[e.type.spec.tableRole])(e,t)}function er(e){return(t,r)=>{let n,i,s=t.selection;if(s instanceof D){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;n=s.$anchorCell.nodeAfter,i=s.$anchorCell.pos}else{var o;if(!(n=k(s.$from)))return!1;i=null==(o=y(s.$from))?void 0:o.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(r){let o,l=n.attrs,a=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=B(t),h=t.tr;for(let e=0;e<c.right-c.left;e++)a.push(u?{...l,colwidth:u&&u[e]?[u[e]]:null}:l);for(let t=c.top;t<c.bottom;t++){let r=c.map.positionAt(t,c.left,c.table);t==c.top&&(r+=n.nodeSize);for(let i=c.left,s=0;i<c.right;i++,s++)(i!=c.left||t!=c.top)&&h.insert(o=h.mapping.map(r+c.tableStart,1),e({node:n,row:t,col:i}).createAndFill(a[s]))}h.setNodeMarkup(i,e({node:n,row:c.top,col:c.left}),a[0]),s instanceof D&&h.setSelection(new D(h.doc.resolve(s.$anchorCell.pos),o?h.doc.resolve(o):void 0)),r(h)}return!0}}function en(e,t){return function(r,n){if(!b(r))return!1;let i=w(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let s=r.tr;r.selection instanceof D?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&s.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):s.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(s)}return!0}}function ei(e){return function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)l[e].type==n.header_cell&&s.setNodeMarkup(i.tableStart+o[e],n.cell,l[e].attrs);if(0===s.steps.length)for(let e=0;e<o.length;e++)s.setNodeMarkup(i.tableStart+o[e],n.header_cell,l[e].attrs);r(s)}return!0}}function es(e,t,r){let n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){let i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function eo(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?ei(e):function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=es("row",i,n),l=es("column",i,n),a=+("column"===e?!!o:"row"===e&&!!l),u="column"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,c="column"==e?l?n.cell:n.header_cell:"row"==e?o?n.cell:n.header_cell:n.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,r=s.doc.nodeAt(t);r&&s.setNodeMarkup(t,c,r.attrs)}),r(s)}return!0}}eo("row",{useDeprecatedLogic:!0}),eo("column",{useDeprecatedLogic:!0});let el=eo("cell",{useDeprecatedLogic:!0});function ea(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}function eu(e){return function(t,r){if(!b(t))return!1;let n=ea(w(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(o.U3.between(e,C(e))).scrollIntoView())}return!0}}function ec(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function eh(e,t){let r=e.selection;if(!(r instanceof D))return!1;if(t){let n=e.tr,i=g(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new l.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function ed(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),s=i.type.spec.tableRole,o=i.type.schema,a=[];if("row"==s)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,s=e?0:Math.max(0,r-1),u=e<t.childCount-1?0:Math.max(0,n-1);(s||u)&&(i=ef(g(o).row,new l.Ji(i,s,u)).content),a.push(i)}else{if("cell"!=s&&"header_cell"!=s)return null;a.push(r||n?ef(g(o).row,new l.Ji(t,r,n)).content:t)}return ep(o,a)}function ep(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:s}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+s}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(l.FK.empty),r[i]<n){let s=g(e).cell.createAndFill(),o=[];for(let e=r[i];e<n;e++)o.push(s);t[i]=t[i].append(l.FK.from(o))}return{height:t.length,width:n,rows:t}}function ef(e,t){let r=e.createAndFill();return new c.dL(r).replace(0,r.content.size,t).doc}function em({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let s=r[e],o=[];for(let r=t[e]||0,i=0;r<n;i++){let l=s.child(i%s.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(S(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),o.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(l.FK.from(o))}r=i,e=n}if(t!=i){let e=[];for(let n=0,s=0;n<i;n++,s++){let o=[],a=r[s%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(l.FK.from(o))}r=e,t=i}return{width:e,height:t,rows:r}}function eg(e,t,r,n,i,s,o){let a,u,c=g(e.doc.type.schema);if(i>t.width)for(let s=0,l=0;s<t.height;s++){let h,d=r.child(s);l+=d.nodeSize;let p=[];h=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)p.push(h);e.insert(e.mapping.slice(o).map(l-1+n),p)}if(s>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==c.header_cell;h.push(i?u||(u=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,l.FK.from(h)),p=[];for(let e=t.height;e<s;e++)p.push(d);e.insert(e.mapping.slice(o).map(n+r.nodeSize-2),p)}return!!(a||u)}function e_(e,t,r,n,i,s,o,l){if(0==o||o==t.height)return!1;let a=!1;for(let u=i;u<s;u++){let i=o*t.width+u,s=t.map[i];if(t.map[i-t.width]==s){a=!0;let i=r.nodeAt(s),{top:c,left:h}=t.findCell(s);e.setNodeMarkup(e.mapping.slice(l).map(s+n),null,{...i.attrs,rowspan:o-c}),e.insert(e.mapping.slice(l).map(t.positionAt(o,h,r)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-o})),u+=i.attrs.colspan-1}}return a}function ey(e,t,r,n,i,s,o,l){if(0==o||o==t.width)return!1;let a=!1;for(let u=i;u<s;u++){let i=u*t.width+o,s=t.map[i];if(t.map[i-1]==s){a=!0;let i=r.nodeAt(s),c=t.colCount(s),h=e.mapping.slice(l).map(s+n);e.setNodeMarkup(h,null,S(i.attrs,o-c,i.attrs.colspan-(o-c))),e.insert(h+i.nodeSize,i.type.createAndFill(S(i.attrs,0,o-c))),u+=i.attrs.rowspan-1}}return a}function ek(e,t,r,n,i){let s=r?e.doc.nodeAt(r-1):e.doc;if(!s)throw Error("No table found");let o=h.get(s),{top:a,left:u}=n,c=u+i.width,d=a+i.height,p=e.tr,f=0;function m(){if(!(s=r?p.doc.nodeAt(r-1):p.doc))throw Error("No table found");o=h.get(s),f=p.mapping.maps.length}eg(p,o,s,r,c,d,0)&&m(),e_(p,o,s,r,u,c,a,f)&&m(),e_(p,o,s,r,u,c,d,f)&&m(),ey(p,o,s,r,a,d,u,f)&&m(),ey(p,o,s,r,a,d,c,f)&&m();for(let e=a;e<d;e++){let t=o.positionAt(e,u,s),n=o.positionAt(e,c,s);p.replace(p.mapping.slice(f).map(t+r),p.mapping.slice(f).map(n+r),new l.Ji(i.rows[e-a],0,0))}m(),p.setSelection(new D(p.doc.resolve(r+o.positionAt(a,u,s)),p.doc.resolve(r+o.positionAt(d-1,c-1,s)))),t(p)}let eb=(0,u.K)({ArrowLeft:ex("horiz",-1),ArrowRight:ex("horiz",1),ArrowUp:ex("vert",-1),ArrowDown:ex("vert",1),"Shift-ArrowLeft":ev("horiz",-1),"Shift-ArrowRight":ev("horiz",1),"Shift-ArrowUp":ev("vert",-1),"Shift-ArrowDown":ev("vert",1),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh});function ew(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function ex(e,t){return(r,n,i)=>{if(!i)return!1;let s=r.selection;if(s instanceof D)return ew(r,n,o.LN.near(s.$headCell,t));if("horiz"!=e&&!s.empty)return!1;let l=eS(i,e,t);if(null==l)return!1;if("horiz"==e)return ew(r,n,o.LN.near(r.doc.resolve(s.head+t),t));{let i,s=r.doc.resolve(l),a=E(s,e,t);return i=a?o.LN.near(a,1):t<0?o.LN.near(r.doc.resolve(s.before(-1)),-1):o.LN.near(r.doc.resolve(s.after(-1)),1),ew(r,n,i)}}}function ev(e,t){return(r,n,i)=>{let s;if(!i)return!1;let o=r.selection;if(o instanceof D)s=o;else{let n=eS(i,e,t);if(null==n)return!1;s=new D(r.doc.resolve(n))}let l=E(s.$headCell,e,t);return!!l&&ew(r,n,new D(s.$anchorCell,l))}}function eC(e,t){let r=y(e.state.doc.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new D(r))),!0)}function eA(e,t,r){if(!b(e.state))return!1;let n=ed(r),i=e.state.selection;if(i instanceof D){n||(n={width:1,height:1,rows:[l.FK.from(ef(g(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),o=h.get(t).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return n=em(n,o.right-o.left,o.bottom-o.top),ek(e.state,e.dispatch,s,o,n),!0}if(!n)return!1;{let t=w(e.state),r=t.start(-1);return ek(e.state,e.dispatch,r,h.get(t.node(-1)).findCell(t.pos-r),n),!0}}function eE(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=eM(e,t.target);if(t.shiftKey&&e.state.selection instanceof D)s(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=y(e.state.selection.$anchor))&&(null==(r=eT(e,t))?void 0:r.pos)!=n.pos)s(n,t),t.preventDefault();else if(!i)return;function s(t,r){let n=eT(e,r),i=null==_.getState(e.state);if(!n||!A(t,n))if(!i)return;else n=t;let s=new D(t,n);if(i||!e.state.selection.eq(s)){let r=e.state.tr.setSelection(s);i&&r.setMeta(_,t.pos),e.dispatch(r)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",l),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function l(r){let n,l=r,a=_.getState(e.state);if(null!=a)n=e.state.doc.resolve(a);else if(eM(e,l.target)!=i&&!(n=eT(e,t)))return o();n&&s(n,l)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",l)}function eS(e,t,r){if(!(e.state.selection instanceof o.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let s=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:s.childCount))break;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){let s=n.before(i),o="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(o)?s:null}}return null}function eM(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eT(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&y(e.state.doc.resolve(n))||y(e.state.doc.resolve(i))}var eD=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),eF(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,eF(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function eF(e,t,r,n,i,s){let o=0,l=!0,a=t.firstChild,u=e.firstChild;if(u){for(let e=0,r=0;e<u.childCount;e++){let{colspan:c,colwidth:h}=u.child(e).attrs;for(let e=0;e<c;e++,r++){let u=i==r?s:h&&h[e],c=u?u+"px":"";if(o+=u||n,u||(l=!1),a)a.style.width!=c&&(a.style.width=c),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;a;){var c;let e=a.nextSibling;null==(c=a.parentNode)||c.removeChild(a),a=e}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}let eI=new o.hs("tableColumnResizing");function eL({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=eD,lastColumnResizable:i=!0}={}){let s=new o.k_({key:eI,state:{init(e,t){var i;let o=null==(i=s.spec)||null==(i=i.props)?void 0:i.nodeViews,l=g(t.schema).table.name;return n&&o&&(o[l]=(e,t)=>new n(e,r,t)),new eR(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=eI.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{eN(t,r,e,i)},mouseleave:e=>{eO(e)},mousedown:(e,n)=>{ez(e,n,t,r)}},decorations:e=>{let t=eI.getState(e);if(t&&t.activeHandle>-1)return eW(e,t.activeHandle)},nodeViews:{}}});return s}var eR=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=this,n=t.getMeta(eI);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&t.docChanged){let n=t.mapping.map(r.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new e(n,r.dragging)}return r}};function eN(e,t,r,n){if(!e.editable)return;let i=eI.getState(e.state);if(i&&!i.dragging){let s=e$(t.target),o=-1;if(s){let{left:n,right:i}=s.getBoundingClientRect();t.clientX-n<=r?o=eB(e,t,"left",r):i-t.clientX<=r&&(o=eB(e,t,"right",r))}if(o!=i.activeHandle){if(!n&&-1!==o){let t=e.state.doc.resolve(o),r=t.node(-1),n=h.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ej(e,o)}}}function eO(e){if(!e.editable)return;let t=eI.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ej(e,-1)}function ez(e,t,r,n){var i;if(!e.editable)return!1;let s=null!=(i=e.dom.ownerDocument.defaultView)?i:window,o=eI.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;let l=e.state.doc.nodeAt(o.activeHandle),a=eP(e,o.activeHandle,l.attrs);function u(t){s.removeEventListener("mouseup",u),s.removeEventListener("mousemove",c);let n=eI.getState(e.state);(null==n?void 0:n.dragging)&&(eH(e,n.activeHandle,eq(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(eI,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=eI.getState(e.state);if(i&&i.dragging){let s=eq(i.dragging,t,r);eV(e,i.activeHandle,s,n)}}return e.dispatch(e.state.tr.setMeta(eI,{setDragging:{startX:t.clientX,startWidth:a}})),eV(e,o.activeHandle,a,n),s.addEventListener("mouseup",u),s.addEventListener("mousemove",c),t.preventDefault(),!0}function eP(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let s=e.domAtPos(t),o=s.node.childNodes[s.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(o-=n[e],l--);return o/l}function e$(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function eB(e,t,r,n){let i="right"==r?-n:n,s=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!s)return -1;let{pos:o}=s,l=y(e.state.doc.resolve(o));if(!l)return -1;if("right"==r)return l.pos;let a=h.get(l.node(-1)),u=l.start(-1),c=a.map.indexOf(l.pos-u);return c%a.width==0?-1:u+a.map[c-1]}function eq(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function ej(e,t){e.dispatch(e.state.tr.setMeta(eI,{setHandle:t}))}function eH(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<s.height;e++){let t=e*s.width+l;if(e&&s.map[t]==s.map[t-s.width])continue;let n=s.map[t],u=i.nodeAt(n).attrs,c=1==u.colspan?0:l-s.colCount(n);if(u.colwidth&&u.colwidth[c]==r)continue;let h=u.colwidth?u.colwidth.slice():eU(u.colspan);h[c]=r,a.setNodeMarkup(o+n,null,{...u,colwidth:h})}a.docChanged&&e.dispatch(a)}function eV(e,t,r,n){let i=e.state.doc.resolve(t),s=i.node(-1),o=i.start(-1),l=h.get(s).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&eF(s,a.firstChild,a,n,l,r)}function eU(e){return Array(e).fill(0)}function eW(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return a.zF.empty;let s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let n=l+t*s.width;if((l==s.width-1||s.map[n]!=s.map[n+1])&&(0==t||s.map[n]!=s.map[n-s.width])){var u;let t=s.map[n],l=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(u=eI.getState(e))?void 0:u.dragging)&&r.push(a.NZ.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(a.NZ.widget(l,c))}}return a.zF.create(e.doc,r)}function eJ({allowTableNodeSelection:e=!1}={}){return new o.k_({key:_,state:{init:()=>null,apply(e,t){let r=e.getMeta(_);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:I,handleDOMEvents:{mousedown:eE},createSelectionBetween:e=>null!=_.getState(e.state)?e.state.selection:null,handleTripleClick:eC,handleKeyDown:eb,handlePaste:eA},appendTransaction:(t,r,n)=>N(n,P(n,r),e)})}function eK(e){return"left"===e||"right"===e||"center"===e?e:null}function eG(e){let t=(e.style.textAlign||"").trim().toLowerCase(),r=(e.getAttribute("align")||"").trim().toLowerCase();return eK(t||r)}function eZ(e){return eK(null==e?void 0:e.align)}function eX(){return{default:null,parseHTML:e=>eG(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var eY=s.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,r;let n=e.getAttribute("colwidth"),i=n?n.split(",").map(e=>parseInt(e,10)):null;if(!i){let n=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(r=e.parentElement)?void 0:r.children)||[]).indexOf(e);if(i&&i>-1&&n&&n[i]){let e=n[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:eX()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),eQ=s.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:eX()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),e0=s.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,s.KV)(this.options.HTMLAttributes,e),0]}});function e1(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function e2(e,t,r,n,i,s){var o;let l=0,a=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,r=0;e<c.childCount;e+=1){let{colspan:o,colwidth:h}=c.child(e).attrs;for(let e=0;e<o;e+=1,r+=1){let o=i===r?s:h&&h[e],c=o?`${o}px`:"";if(l+=o||n,o||(a=!1),u){if(u.style.width!==c){let[e,t]=e1(n,o);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[r,i]=e1(n,o);e.style.setProperty(r,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(o=u.parentNode)||o.removeChild(u),u=e}let h=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);a&&!h?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}var e3=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e2(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,e2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,r=this.dom.contains(t),n=this.contentDOM.contains(t);return!!r&&!n&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function e5(e,t,r,n){let i=0,s=!0,o=[],l=e.firstChild;if(!l)return{};for(let e=0,a=0;e<l.childCount;e+=1){let{colspan:u,colwidth:c}=l.child(e).attrs;for(let e=0;e<u;e+=1,a+=1){let l=r===a?n:c&&c[e];i+=l||t,l||(s=!1);let[u,h]=e1(t,l);o.push(["col",{style:`${u}: ${h}`}])}}return{colgroup:["colgroup",{},...o],tableWidth:s?`${i}px`:"",tableMinWidth:s?"":`${i}px`}}function e4(e,t){return t?e.createChecked(null,t):e.createAndFill()}function e6(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}function e8(e,t,r,n,i){let s=e6(e),o=[],l=[];for(let e=0;e<r;e+=1){let e=e4(s.cell,i);if(e&&l.push(e),n){let e=e4(s.header_cell,i);e&&o.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(s.row.createChecked(null,n&&0===e?o:l));return s.table.createChecked(null,a)}function e9(e){return e instanceof D}var e7=({editor:e})=>{let{selection:t}=e.state;if(!e9(t))return!1;let r=0,n=(0,s.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},te="\x1f";function tt(e){return(e||"").replace(/\s+/g," ").trim()}var tr=function(e,t,r={}){var n;let i=null!=(n=r.cellLineSeparator)?n:te;if(!e||!e.content||0===e.content.length)return"";let s=[];e.content.forEach(e=>{let r=[];e.content&&e.content.forEach(e=>{let n="",s=tt(n=e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):""),o="tableHeader"===e.type,l=eZ(e.attrs);r.push({text:s,isHeader:o,align:l})}),s.push(r)});let o=s.reduce((e,t)=>Math.max(e,t.length),0);if(0===o)return"";let l=Array(o).fill(0);s.forEach(e=>{var t;for(let r=0;r<o;r+=1){let n=((null==(t=e[r])?void 0:t.text)||"").length;n>l[r]&&(l[r]=n),l[r]<3&&(l[r]=3)}});let a=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=s[0],c=u.some(e=>e.isHeader),h=Array(o).fill(null);s.forEach(e=>{var t;for(let r=0;r<o;r+=1)!h[r]&&(null==(t=e[r])?void 0:t.align)&&(h[r]=e[r].align)});let d="\n",p=Array(o).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${p.map((e,t)=>a(e,l[t])).join(" | ")} |
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2443],{5989:(e,t,r)=>{"use strict";let n,i;r.d(t,{XI:()=>tn,nA:()=>eY,A0:()=>eQ,Hj:()=>e0});var s=r(82159),o=r(76865),l=r(27050),a=r(63197),u=r(12894),c=r(8242);if("u">typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=10,r=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(n,i)=>(r==t&&(r=0),e[r++]=n,e[r++]=i)}var h=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,s=n+1,o=i+1;for(let e=1;s<this.width&&this.map[t+e]==r;e++)s++;for(let e=1;o<this.height&&this.map[t+this.width*e]==r;e++)o++;return{left:n,top:i,right:s,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){let{left:n,right:i,top:s,bottom:o}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[s*this.width+(r<0?n-1:i)]:(r<0?0==s:o==this.height)?null:this.map[n+this.width*(r<0?s-1:o)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:s}=this.findCell(e),{left:o,right:l,top:a,bottom:u}=this.findCell(t);return{left:Math.min(r,o),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(s,u)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let s=n*this.width+i,o=this.map[s];!r[o]&&(r[o]=!0,i==e.left&&i&&this.map[s-1]==o||n==e.top&&n&&this.map[s-this.width]==o||t.push(o))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let s=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?s-1:this.map[r]}i=s}}static get(e){return n(e)||i(e,d(e))}};function d(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=p(e),r=e.childCount,n=[],i=0,s=null,o=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let u=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==u.childCount)break;let c=u.child(e),{colspan:h,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+l>=r){(s||(s=[])).push({type:"overlong_rowspan",pos:a,n:d-e});break}let u=i+e*t;for(let e=0;e<h;e++){0==n[u+e]?n[u+e]=a:(s||(s=[])).push({type:"collision",row:l,pos:a,n:h-e});let r=p&&p[e];if(r){let n=(u+e)%t*2,i=o[n];null==i||i!=r&&1==o[n+1]?(o[n]=r,o[n+1]=1):i==r&&o[n+1]++}}}i+=h,a+=c.nodeSize}let c=(l+1)*t,h=0;for(;i<c;)0==n[i++]&&h++;h&&(s||(s=[])).push({type:"missing",row:l,n:h}),a++}(0===t||0===r)&&(s||(s=[])).push({type:"zero_sized"});let l=new h(t,r,n,s),a=!1;for(let e=0;!a&&e<o.length;e+=2)null!=o[e]&&o[e+1]<r&&(a=!0);return a&&f(l,o,e),l}function p(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(s+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);s+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=s:t!=s&&(t=Math.max(t,s))}return t}function f(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let s=e.map[i];if(n[s])continue;n[s]=!0;let o=r.nodeAt(s);if(!o)throw RangeError(`No cell with offset ${s} found`);let l=null,a=o.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=m(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function m(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function g(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let _=new o.hs("selectingCells");function y(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function k(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}function b(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function w(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let r=y(t.$head)||x(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function x(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function C(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function A(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function E(e,t,r){let n=e.node(-1),i=h.get(n),s=e.start(-1),o=i.nextCell(e.pos-s,t,r);return null==o?null:e.node(0).resolve(s+o)}function S(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function M(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}function T(e,t,r){let n=g(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0}var D=class e extends o.LN{constructor(e,t=e){const r=e.node(-1),n=h.get(r),i=e.start(-1),s=n.rectBetween(e.pos-i,t.pos-i),l=e.node(0),a=n.cellsInRect(s).filter(e=>e!=t.pos-i);a.unshift(t.pos-i);const u=a.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new o.yn(l.resolve(n),l.resolve(n+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&A(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return o.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let r=n.top;r<n.bottom;r++){let o=[];for(let s=r*t.width+n.left,l=n.left;l<n.right;l++,s++){let r=t.map[s];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let u=n.left-l.left,c=l.right-n.right;if(u>0||c>0){let e=a.attrs;if(u>0&&(e=S(e,0,u)),c>0&&(e=S(e,e.colspan-c,c)),l.left<n.left){if(!(a=a.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else a=a.type.create(e,a.content)}if(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}o.push(a)}s.push(e.child(r).copy(l.FK.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:s;return new l.Ji(l.FK.from(o),1,1)}replace(e,t=l.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:o}=n[i],a=e.mapping.slice(r);e.replace(a.map(s.pos),a.map(o.pos),i?l.Ji.empty:t)}let i=o.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new l.Ji(l.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=h.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.top<=l.top?(o.top>0&&(t=a.resolve(s+i.map[o.left])),l.bottom<i.height&&(r=a.resolve(s+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(s+i.map[l.left])),o.bottom<i.height&&(t=a.resolve(s+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=h.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){let n=t.node(-1),i=h.get(n),s=t.start(-1),o=i.findCell(t.pos-s),l=i.findCell(r.pos-s),a=t.node(0);return o.left<=l.left?(o.left>0&&(t=a.resolve(s+i.map[o.top*i.width])),l.right<i.width&&(r=a.resolve(s+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(s+i.map[l.top*i.width])),o.right<i.width&&(t=a.resolve(s+i.map[i.width*(o.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new F(this.$anchorCell.pos,this.$headCell.pos)}};D.prototype.visible=!1,o.LN.jsonID("cell",D);var F=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&A(t,r)?new D(t,r):o.LN.near(r,1)}};function I(e){if(!(e.selection instanceof D))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(a.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),a.zF.create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}function R({$from:e,$to:t}){let r,n;for(let t=e.depth;t>0;t--){let n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}function N(e,t,r){let n,i,s=(t||e).selection,l=(t||e).doc;if(s instanceof o.nh&&(i=s.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=D.create(l,s.from);else if("row"==i){let e=l.resolve(s.from+1);n=D.rowSelection(e,e)}else if(!r){let e=h.get(s.node),t=s.from+1,r=t+e.map[e.width*e.height-1];n=D.create(l,t+1,r)}}else s instanceof o.U3&&L(s)?n=o.U3.create(l,s.from):s instanceof o.U3&&R(s)&&(n=o.U3.create(l,s.$from.start(),s.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t}let O=new o.hs("fix-tables");function z(e,t,r,n){let i=e.childCount,s=t.childCount;e:for(let o=0,l=0;o<s;o++){let s=t.child(o);for(let t=l,n=Math.min(i,o+3);t<n;t++)if(e.child(t)==s){l=t+1,r+=s.nodeSize;continue e}n(s,r),l<i&&e.child(l).sameMarkup(s)?z(e.child(l),s,r+1,n):s.nodesBetween(0,s.content.size,n,r+1),r+=s.nodeSize}}function P(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=$(e,t,n,r))};return t?t.doc!=e.doc&&z(t.doc,e.doc,0,n):e.doc.descendants(n),r}function $(e,t,r,n){let i,s,o=h.get(t);if(!o.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<o.height;e++)l.push(0);for(let e=0;e<o.problems.length;e++){let i=o.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let s=e.attrs;for(let e=0;e<s.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,S(s,s.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),s=e);for(let a=0,u=r+1;a<o.height;a++){let r=t.child(a),o=u+r.nodeSize,c=l[a];if(c>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<c;r++){let r=g(e.schema)[t].createAndFill();r&&l.push(r)}let h=(0==a||i==a-1)&&s==a?u+1:o-1;n.insert(n.mapping.map(h),l)}u=o}return n.setMeta(O,{fixTables:!0})}function B(e){let t=e.selection,r=w(e),n=r.node(-1),i=r.start(-1),s=h.get(n);return{...t instanceof D?s.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):s.findCell(r.pos-i),tableStart:i,map:s,table:n}}function q(e,{map:t,tableStart:r,table:n},i){let s=i>0?-1:0;T(t,n,i+s)&&(s=0==i||i==t.width?null:0);for(let o=0;o<t.height;o++){let l=o*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let s=t.map[l],a=n.nodeAt(s);e.setNodeMarkup(e.mapping.map(r+s),null,M(a.attrs,i-t.colCount(s))),o+=a.attrs.rowspan-1}else{let a=null==s?g(n.type.schema).cell:n.nodeAt(t.map[l+s]).type,u=t.positionAt(o,i,n);e.insert(e.mapping.map(r+u),a.createAndFill())}}return e}function j(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.left))}return!0}function H(e,t){if(!b(e))return!1;if(t){let r=B(e);t(q(e.tr,r,r.right))}return!0}function V(e,{map:t,table:r,tableStart:n},i){let s=e.mapping.maps.length;for(let o=0;o<t.height;){let l=o*t.width+i,a=t.map[l],u=r.nodeAt(a),c=u.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(s).map(n+a),null,S(c,i-t.colCount(a)));else{let t=e.mapping.slice(s).map(n+a);e.delete(t,t+u.nodeSize)}o+=c.rowspan}}function U(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;V(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(e)}t(n)}return!0}function W(e,t,r){var n;let i=g(t.type.schema).header_cell;for(let s=0;s<e.width;s++)if((null==(n=t.nodeAt(e.map[s+r*e.width]))?void 0:n.type)!=i)return!1;return!0}function J(e,{map:t,tableStart:r,table:n},i){let s=r;for(let e=0;e<i;e++)s+=n.child(e).nodeSize;let o=[],l=i>0?-1:0;W(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let s=0,u=t.width*i;s<t.width;s++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){let i=t.map[u],o=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...o,rowspan:o.rowspan+1}),s+=o.colspan-1}else{var a;let e=null==l?g(n.type.schema).cell:null==(a=n.nodeAt(t.map[u+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&o.push(r)}return e.insert(s,g(n.type.schema).row.create(null,o)),e}function K(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.top))}return!0}function G(e,t){if(!b(e))return!1;if(t){let r=B(e);t(J(e.tr,r,r.bottom))}return!0}function Z(e,{map:t,table:r,tableStart:n},i){let s=0;for(let e=0;e<i;e++)s+=r.child(e).nodeSize;let o=s+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(s+n,o+n);let a=new Set;for(let s=0,o=i*t.width;s<t.width;s++,o++){let u=t.map[o];if(!a.has(u)){if(a.add(u),i>0&&u==t.map[o-t.width]){let t=r.nodeAt(u).attrs;e.setNodeMarkup(e.mapping.slice(l).map(u+n),null,{...t,rowspan:t.rowspan-1}),s+=t.colspan-1}else if(i<t.height&&u==t.map[o+t.width]){let o=r.nodeAt(u),a=o.attrs,c=o.type.create({...a,rowspan:o.attrs.rowspan-1},o.content),h=t.positionAt(i+1,s,r);e.insert(e.mapping.slice(l).map(n+h),c),s+=a.colspan-1}}}}function X(e,t){if(!b(e))return!1;if(t){let r=B(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;Z(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=h.get(r.table)}t(n)}return!0}function Y(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Q({width:e,height:t,map:r},n){let i=n.top*e+n.left,s=i,o=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[s]==r[s-1]||n.right<e&&r[l]==r[l+1])return!0;s+=e,l+=e}for(let s=n.left;s<n.right;s++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[o]==r[o+e])return!0;i++,o++}return!1}function ee(e,t){let r=e.selection;if(!(r instanceof D)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=B(e),{map:i}=n;if(Q(i,n))return!1;if(t){let r,s,o=e.tr,a={},u=l.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let l=i.map[e*i.width+t],c=n.table.nodeAt(l);if(!a[l]&&c)if(a[l]=!0,null==r)r=l,s=c;else{Y(c)||(u=u.append(c.content));let e=o.mapping.map(l+n.tableStart);o.delete(e,e+c.nodeSize)}}if(null==r||null==s)return!0;if(o.setNodeMarkup(r+n.tableStart,null,{...M(s.attrs,s.attrs.colspan,n.right-n.left-s.attrs.colspan),rowspan:n.bottom-n.top}),u.size>0){let e=r+1+s.content.size,t=Y(s)?r+1:e;o.replaceWith(t+n.tableStart,e+n.tableStart,u)}o.setSelection(new D(o.doc.resolve(r+n.tableStart))),t(o)}return!0}function et(e,t){let r=g(e.schema);return er(({node:e})=>r[e.type.spec.tableRole])(e,t)}function er(e){return(t,r)=>{let n,i,s=t.selection;if(s instanceof D){if(s.$anchorCell.pos!=s.$headCell.pos)return!1;n=s.$anchorCell.nodeAfter,i=s.$anchorCell.pos}else{var o;if(!(n=k(s.$from)))return!1;i=null==(o=y(s.$from))?void 0:o.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(r){let o,l=n.attrs,a=[],u=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let c=B(t),h=t.tr;for(let e=0;e<c.right-c.left;e++)a.push(u?{...l,colwidth:u&&u[e]?[u[e]]:null}:l);for(let t=c.top;t<c.bottom;t++){let r=c.map.positionAt(t,c.left,c.table);t==c.top&&(r+=n.nodeSize);for(let i=c.left,s=0;i<c.right;i++,s++)(i!=c.left||t!=c.top)&&h.insert(o=h.mapping.map(r+c.tableStart,1),e({node:n,row:t,col:i}).createAndFill(a[s]))}h.setNodeMarkup(i,e({node:n,row:c.top,col:c.left}),a[0]),s instanceof D&&h.setSelection(new D(h.doc.resolve(s.$anchorCell.pos),o?h.doc.resolve(o):void 0)),r(h)}return!0}}function en(e,t){return function(r,n){if(!b(r))return!1;let i=w(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let s=r.tr;r.selection instanceof D?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&s.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):s.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(s)}return!0}}function ei(e){return function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)l[e].type==n.header_cell&&s.setNodeMarkup(i.tableStart+o[e],n.cell,l[e].attrs);if(0===s.steps.length)for(let e=0;e<o.length;e++)s.setNodeMarkup(i.tableStart+o[e],n.header_cell,l[e].attrs);r(s)}return!0}}function es(e,t,r){let n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){let i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function eo(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?ei(e):function(t,r){if(!b(t))return!1;if(r){let n=g(t.schema),i=B(t),s=t.tr,o=es("row",i,n),l=es("column",i,n),a=+("column"===e?!!o:"row"===e&&!!l),u="column"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,c="column"==e?l?n.cell:n.header_cell:"row"==e?o?n.cell:n.header_cell:n.cell;i.map.cellsInRect(u).forEach(e=>{let t=e+i.tableStart,r=s.doc.nodeAt(t);r&&s.setNodeMarkup(t,c,r.attrs)}),r(s)}return!0}}eo("row",{useDeprecatedLogic:!0}),eo("column",{useDeprecatedLogic:!0});let el=eo("cell",{useDeprecatedLogic:!0});function ea(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}function eu(e){return function(t,r){if(!b(t))return!1;let n=ea(w(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(o.U3.between(e,C(e))).scrollIntoView())}return!0}}function ec(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1}function eh(e,t){let r=e.selection;if(!(r instanceof D))return!1;if(t){let n=e.tr,i=g(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new l.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function ed(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),s=i.type.spec.tableRole,o=i.type.schema,a=[];if("row"==s)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,s=e?0:Math.max(0,r-1),u=e<t.childCount-1?0:Math.max(0,n-1);(s||u)&&(i=ef(g(o).row,new l.Ji(i,s,u)).content),a.push(i)}else{if("cell"!=s&&"header_cell"!=s)return null;a.push(r||n?ef(g(o).row,new l.Ji(t,r,n)).content:t)}return ep(o,a)}function ep(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:s}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+s}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(l.FK.empty),r[i]<n){let s=g(e).cell.createAndFill(),o=[];for(let e=r[i];e<n;e++)o.push(s);t[i]=t[i].append(l.FK.from(o))}return{height:t.length,width:n,rows:t}}function ef(e,t){let r=e.createAndFill();return new c.dL(r).replace(0,r.content.size,t).doc}function em({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let s=r[e],o=[];for(let r=t[e]||0,i=0;r<n;i++){let l=s.child(i%s.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(S(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),o.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(l.FK.from(o))}r=i,e=n}if(t!=i){let e=[];for(let n=0,s=0;n<i;n++,s++){let o=[],a=r[s%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),o.push(t)}e.push(l.FK.from(o))}r=e,t=i}return{width:e,height:t,rows:r}}function eg(e,t,r,n,i,s,o){let a,u,c=g(e.doc.type.schema);if(i>t.width)for(let s=0,l=0;s<t.height;s++){let h,d=r.child(s);l+=d.nodeSize;let p=[];h=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):u||(u=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)p.push(h);e.insert(e.mapping.slice(o).map(l-1+n),p)}if(s>t.height){let h=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==c.header_cell;h.push(i?u||(u=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,l.FK.from(h)),p=[];for(let e=t.height;e<s;e++)p.push(d);e.insert(e.mapping.slice(o).map(n+r.nodeSize-2),p)}return!!(a||u)}function e_(e,t,r,n,i,s,o,l){if(0==o||o==t.height)return!1;let a=!1;for(let u=i;u<s;u++){let i=o*t.width+u,s=t.map[i];if(t.map[i-t.width]==s){a=!0;let i=r.nodeAt(s),{top:c,left:h}=t.findCell(s);e.setNodeMarkup(e.mapping.slice(l).map(s+n),null,{...i.attrs,rowspan:o-c}),e.insert(e.mapping.slice(l).map(t.positionAt(o,h,r)),i.type.createAndFill({...i.attrs,rowspan:c+i.attrs.rowspan-o})),u+=i.attrs.colspan-1}}return a}function ey(e,t,r,n,i,s,o,l){if(0==o||o==t.width)return!1;let a=!1;for(let u=i;u<s;u++){let i=u*t.width+o,s=t.map[i];if(t.map[i-1]==s){a=!0;let i=r.nodeAt(s),c=t.colCount(s),h=e.mapping.slice(l).map(s+n);e.setNodeMarkup(h,null,S(i.attrs,o-c,i.attrs.colspan-(o-c))),e.insert(h+i.nodeSize,i.type.createAndFill(S(i.attrs,0,o-c))),u+=i.attrs.rowspan-1}}return a}function ek(e,t,r,n,i){let s=r?e.doc.nodeAt(r-1):e.doc;if(!s)throw Error("No table found");let o=h.get(s),{top:a,left:u}=n,c=u+i.width,d=a+i.height,p=e.tr,f=0;function m(){if(!(s=r?p.doc.nodeAt(r-1):p.doc))throw Error("No table found");o=h.get(s),f=p.mapping.maps.length}eg(p,o,s,r,c,d,0)&&m(),e_(p,o,s,r,u,c,a,f)&&m(),e_(p,o,s,r,u,c,d,f)&&m(),ey(p,o,s,r,a,d,u,f)&&m(),ey(p,o,s,r,a,d,c,f)&&m();for(let e=a;e<d;e++){let t=o.positionAt(e,u,s),n=o.positionAt(e,c,s);p.replace(p.mapping.slice(f).map(t+r),p.mapping.slice(f).map(n+r),new l.Ji(i.rows[e-a],0,0))}m(),p.setSelection(new D(p.doc.resolve(r+o.positionAt(a,u,s)),p.doc.resolve(r+o.positionAt(d-1,c-1,s)))),t(p)}let eb=(0,u.K)({ArrowLeft:ex("horiz",-1),ArrowRight:ex("horiz",1),ArrowUp:ex("vert",-1),ArrowDown:ex("vert",1),"Shift-ArrowLeft":ev("horiz",-1),"Shift-ArrowRight":ev("horiz",1),"Shift-ArrowUp":ev("vert",-1),"Shift-ArrowDown":ev("vert",1),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh});function ew(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function ex(e,t){return(r,n,i)=>{if(!i)return!1;let s=r.selection;if(s instanceof D)return ew(r,n,o.LN.near(s.$headCell,t));if("horiz"!=e&&!s.empty)return!1;let l=eS(i,e,t);if(null==l)return!1;if("horiz"==e)return ew(r,n,o.LN.near(r.doc.resolve(s.head+t),t));{let i,s=r.doc.resolve(l),a=E(s,e,t);return i=a?o.LN.near(a,1):t<0?o.LN.near(r.doc.resolve(s.before(-1)),-1):o.LN.near(r.doc.resolve(s.after(-1)),1),ew(r,n,i)}}}function ev(e,t){return(r,n,i)=>{let s;if(!i)return!1;let o=r.selection;if(o instanceof D)s=o;else{let n=eS(i,e,t);if(null==n)return!1;s=new D(r.doc.resolve(n))}let l=E(s.$headCell,e,t);return!!l&&ew(r,n,new D(s.$anchorCell,l))}}function eC(e,t){let r=y(e.state.doc.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new D(r))),!0)}function eA(e,t,r){if(!b(e.state))return!1;let n=ed(r),i=e.state.selection;if(i instanceof D){n||(n={width:1,height:1,rows:[l.FK.from(ef(g(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),o=h.get(t).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return n=em(n,o.right-o.left,o.bottom-o.top),ek(e.state,e.dispatch,s,o,n),!0}if(!n)return!1;{let t=w(e.state),r=t.start(-1);return ek(e.state,e.dispatch,r,h.get(t.node(-1)).findCell(t.pos-r),n),!0}}function eE(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=eM(e,t.target);if(t.shiftKey&&e.state.selection instanceof D)s(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=y(e.state.selection.$anchor))&&(null==(r=eT(e,t))?void 0:r.pos)!=n.pos)s(n,t),t.preventDefault();else if(!i)return;function s(t,r){let n=eT(e,r),i=null==_.getState(e.state);if(!n||!A(t,n))if(!i)return;else n=t;let s=new D(t,n);if(i||!e.state.selection.eq(s)){let r=e.state.tr.setSelection(s);i&&r.setMeta(_,t.pos),e.dispatch(r)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",l),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function l(r){let n,l=r,a=_.getState(e.state);if(null!=a)n=e.state.doc.resolve(a);else if(eM(e,l.target)!=i&&!(n=eT(e,t)))return o();n&&s(n,l)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",l)}function eS(e,t,r){if(!(e.state.selection instanceof o.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let s=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:s.childCount))break;if("cell"==s.type.spec.tableRole||"header_cell"==s.type.spec.tableRole){let s=n.before(i),o="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(o)?s:null}}return null}function eM(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function eT(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&y(e.state.doc.resolve(n))||y(e.state.doc.resolve(i))}var eD=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),eF(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,eF(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function eF(e,t,r,n,i,s){let o=0,l=!0,a=t.firstChild,u=e.firstChild;if(u){for(let e=0,r=0;e<u.childCount;e++){let{colspan:c,colwidth:h}=u.child(e).attrs;for(let e=0;e<c;e++,r++){let u=i==r?s:h&&h[e],c=u?u+"px":"";if(o+=u||n,u||(l=!1),a)a.style.width!=c&&(a.style.width=c),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=c,t.appendChild(e)}}}for(;a;){var c;let e=a.nextSibling;null==(c=a.parentNode)||c.removeChild(a),a=e}l?(r.style.width=o+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=o+"px")}}let eI=new o.hs("tableColumnResizing");function eL({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=eD,lastColumnResizable:i=!0}={}){let s=new o.k_({key:eI,state:{init(e,t){var i;let o=null==(i=s.spec)||null==(i=i.props)?void 0:i.nodeViews,l=g(t.schema).table.name;return n&&o&&(o[l]=(e,t)=>new n(e,r,t)),new eR(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=eI.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{eN(t,r,e,i)},mouseleave:e=>{eO(e)},mousedown:(e,n)=>{ez(e,n,t,r)}},decorations:e=>{let t=eI.getState(e);if(t&&t.activeHandle>-1)return eW(e,t.activeHandle)},nodeViews:{}}});return s}var eR=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=this,n=t.getMeta(eI);if(n&&null!=n.setHandle)return new e(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new e(r.activeHandle,n.setDragging);if(r.activeHandle>-1&&t.docChanged){let n=t.mapping.map(r.activeHandle,-1);return v(t.doc.resolve(n))||(n=-1),new e(n,r.dragging)}return r}};function eN(e,t,r,n){if(!e.editable)return;let i=eI.getState(e.state);if(i&&!i.dragging){let s=e$(t.target),o=-1;if(s){let{left:n,right:i}=s.getBoundingClientRect();t.clientX-n<=r?o=eB(e,t,"left",r):i-t.clientX<=r&&(o=eB(e,t,"right",r))}if(o!=i.activeHandle){if(!n&&-1!==o){let t=e.state.doc.resolve(o),r=t.node(-1),n=h.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}ej(e,o)}}}function eO(e){if(!e.editable)return;let t=eI.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&ej(e,-1)}function ez(e,t,r,n){var i;if(!e.editable)return!1;let s=null!=(i=e.dom.ownerDocument.defaultView)?i:window,o=eI.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;let l=e.state.doc.nodeAt(o.activeHandle),a=eP(e,o.activeHandle,l.attrs);function u(t){s.removeEventListener("mouseup",u),s.removeEventListener("mousemove",c);let n=eI.getState(e.state);(null==n?void 0:n.dragging)&&(eH(e,n.activeHandle,eq(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(eI,{setDragging:null})))}function c(t){if(!t.which)return u(t);let i=eI.getState(e.state);if(i&&i.dragging){let s=eq(i.dragging,t,r);eV(e,i.activeHandle,s,n)}}return e.dispatch(e.state.tr.setMeta(eI,{setDragging:{startX:t.clientX,startWidth:a}})),eV(e,o.activeHandle,a,n),s.addEventListener("mouseup",u),s.addEventListener("mousemove",c),t.preventDefault(),!0}function eP(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let s=e.domAtPos(t),o=s.node.childNodes[s.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(o-=n[e],l--);return o/l}function e$(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function eB(e,t,r,n){let i="right"==r?-n:n,s=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!s)return -1;let{pos:o}=s,l=y(e.state.doc.resolve(o));if(!l)return -1;if("right"==r)return l.pos;let a=h.get(l.node(-1)),u=l.start(-1),c=a.map.indexOf(l.pos-u);return c%a.width==0?-1:u+a.map[c-1]}function eq(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function ej(e,t){e.dispatch(e.state.tr.setMeta(eI,{setHandle:t}))}function eH(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<s.height;e++){let t=e*s.width+l;if(e&&s.map[t]==s.map[t-s.width])continue;let n=s.map[t],u=i.nodeAt(n).attrs,c=1==u.colspan?0:l-s.colCount(n);if(u.colwidth&&u.colwidth[c]==r)continue;let h=u.colwidth?u.colwidth.slice():eU(u.colspan);h[c]=r,a.setNodeMarkup(o+n,null,{...u,colwidth:h})}a.docChanged&&e.dispatch(a)}function eV(e,t,r,n){let i=e.state.doc.resolve(t),s=i.node(-1),o=i.start(-1),l=h.get(s).colCount(i.pos-o)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&eF(s,a.firstChild,a,n,l,r)}function eU(e){return Array(e).fill(0)}function eW(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return a.zF.empty;let s=h.get(i),o=n.start(-1),l=s.colCount(n.pos-o)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<s.height;t++){let n=l+t*s.width;if((l==s.width-1||s.map[n]!=s.map[n+1])&&(0==t||s.map[n]!=s.map[n-s.width])){var u;let t=s.map[n],l=o+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(u=eI.getState(e))?void 0:u.dragging)&&r.push(a.NZ.node(o+t,o+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(a.NZ.widget(l,c))}}return a.zF.create(e.doc,r)}function eJ({allowTableNodeSelection:e=!1}={}){return new o.k_({key:_,state:{init:()=>null,apply(e,t){let r=e.getMeta(_);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:I,handleDOMEvents:{mousedown:eE},createSelectionBetween:e=>null!=_.getState(e.state)?e.state.selection:null,handleTripleClick:eC,handleKeyDown:eb,handlePaste:eA},appendTransaction:(t,r,n)=>N(n,P(n,r),e)})}function eK(e){return"left"===e||"right"===e||"center"===e?e:null}function eG(e){let t=(e.style.textAlign||"").trim().toLowerCase(),r=(e.getAttribute("align")||"").trim().toLowerCase();return eK(t||r)}function eZ(e){return eK(null==e?void 0:e.align)}function eX(){return{default:null,parseHTML:e=>eG(e),renderHTML:e=>e.align?{style:`text-align: ${e.align}`}:{}}}var eY=s.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var t,r;let n=e.getAttribute("colwidth"),i=n?n.split(",").map(e=>parseInt(e,10)):null;if(!i){let n=null==(t=e.closest("table"))?void 0:t.querySelectorAll("colgroup > col"),i=Array.from((null==(r=e.parentElement)?void 0:r.children)||[]).indexOf(e);if(i&&i>-1&&n&&n[i]){let e=n[i].getAttribute("width");return e?[parseInt(e,10)]:null}}return i}},align:eX()}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),eQ=s.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}},align:eX()}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,s.KV)(this.options.HTMLAttributes,e),0]}}),e0=s.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,s.KV)(this.options.HTMLAttributes,e),0]}});function e1(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function e2(e,t,r,n,i,s){var o;let l=0,a=!0,u=t.firstChild,c=e.firstChild;if(null!==c)for(let e=0,r=0;e<c.childCount;e+=1){let{colspan:o,colwidth:h}=c.child(e).attrs;for(let e=0;e<o;e+=1,r+=1){let o=i===r?s:h&&h[e],c=o?`${o}px`:"";if(l+=o||n,o||(a=!1),u){if(u.style.width!==c){let[e,t]=e1(n,o);u.style.setProperty(e,t)}u=u.nextSibling}else{let e=document.createElement("col"),[r,i]=e1(n,o);e.style.setProperty(r,i),t.appendChild(e)}}}for(;u;){let e=u.nextSibling;null==(o=u.parentNode)||o.removeChild(u),u=e}let h=e.attrs.style&&"string"==typeof e.attrs.style&&/\bwidth\s*:/i.test(e.attrs.style);a&&!h?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}var e3=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),e2(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,e2(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){let t=e.target,r=this.dom.contains(t),n=this.contentDOM.contains(t);return!!r&&!n&&("attributes"===e.type||"childList"===e.type||"characterData"===e.type)}};function e5(e,t,r,n){let i=0,s=!0,o=[],l=e.firstChild;if(!l)return{};for(let e=0,a=0;e<l.childCount;e+=1){let{colspan:u,colwidth:c}=l.child(e).attrs;for(let e=0;e<u;e+=1,a+=1){let l=r===a?n:c&&c[e];i+=l||t,l||(s=!1);let[u,h]=e1(t,l);o.push(["col",{style:`${u}: ${h}`}])}}return{colgroup:["colgroup",{},...o],tableWidth:s?`${i}px`:"",tableMinWidth:s?"":`${i}px`}}function e4(e,t){return t?e.createChecked(null,t):e.createAndFill()}function e6(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}function e8(e,t,r,n,i){let s=e6(e),o=[],l=[];for(let e=0;e<r;e+=1){let e=e4(s.cell,i);if(e&&l.push(e),n){let e=e4(s.header_cell,i);e&&o.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(s.row.createChecked(null,n&&0===e?o:l));return s.table.createChecked(null,a)}function e9(e){return e instanceof D}var e7=({editor:e})=>{let{selection:t}=e.state;if(!e9(t))return!1;let r=0,n=(0,s.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},te="\x1f";function tt(e){return(e||"").replace(/\s+/g," ").trim()}var tr=function(e,t,r={}){var n;let i=null!=(n=r.cellLineSeparator)?n:te;if(!e||!e.content||0===e.content.length)return"";let s=[];e.content.forEach(e=>{let r=[];e.content&&e.content.forEach(e=>{let n="",s=tt(n=e.content&&Array.isArray(e.content)&&e.content.length>1?e.content.map(e=>t.renderChildren(e)).join(i):e.content?t.renderChildren(e.content):""),o="tableHeader"===e.type,l=eZ(e.attrs);r.push({text:s,isHeader:o,align:l})}),s.push(r)});let o=s.reduce((e,t)=>Math.max(e,t.length),0);if(0===o)return"";let l=Array(o).fill(0);s.forEach(e=>{var t;for(let r=0;r<o;r+=1){let n=((null==(t=e[r])?void 0:t.text)||"").length;n>l[r]&&(l[r]=n),l[r]<3&&(l[r]=3)}});let a=(e,t)=>e+" ".repeat(Math.max(0,t-e.length)),u=s[0],c=u.some(e=>e.isHeader),h=Array(o).fill(null);s.forEach(e=>{var t;for(let r=0;r<o;r+=1)!h[r]&&(null==(t=e[r])?void 0:t.align)&&(h[r]=e[r].align)});let d="\n",p=Array(o).fill(0).map((e,t)=>c&&u[t]&&u[t].text||"");return d+=`| ${p.map((e,t)=>a(e,l[t])).join(" | ")} |
|
|
2
2
|
| ${l.map((e,t)=>{let r=Math.max(3,e),n=h[t];return"left"===n?`:${"-".repeat(r)}`:"right"===n?`${"-".repeat(r)}:`:"center"===n?`:${"-".repeat(r)}:`:"-".repeat(r)}).join(" | ")} |
|
|
3
3
|
`,(c?s.slice(1):s).forEach(e=>{d+=`| ${Array(o).fill(0).map((t,r)=>a(e[r]&&e[r].text||"",l[r])).join(" | ")} |
|
|
4
|
-
`}),d},tn=s.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e3,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=e5(e,this.options.cellMinWidth),o=t.style;function l(){return o||(n?`width: ${n}`:`min-width: ${i}`)}let a=["table",(0,s.KV)(this.options.HTMLAttributes,t,{style:l()}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let r=[],n=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableHeader",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableCell",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,r)},renderMarkdown:(e,t)=>tr(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:s})=>{let l=e8(s.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(l).scrollIntoView().setSelection(o.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>j(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>H(e,t),deleteColumn:()=>({state:e,dispatch:t})=>U(e,t),addRowBefore:()=>({state:e,dispatch:t})=>K(e,t),addRowAfter:()=>({state:e,dispatch:t})=>G(e,t),deleteRow:()=>({state:e,dispatch:t})=>X(e,t),deleteTable:()=>({state:e,dispatch:t})=>ec(e,t),mergeCells:()=>({state:e,dispatch:t})=>ee(e,t),splitCell:()=>({state:e,dispatch:t})=>et(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>eo("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>eo("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>el(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!ee(e,t)||et(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>en(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>eu(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>eu(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&P(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=D.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:e7,"Mod-Backspace":e7,Delete:e7,"Mod-Delete":e7}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eL({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eJ({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,s.gk)((0,s.iI)(e,"tableRole",t))}}});s.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(tn.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eY.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(eQ.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(e0.configure(this.options.tableRow)),e}})},6268:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A0});var n=r(5989)},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>C,N0:()=>K,Um:()=>X,Wg:()=>A,X9:()=>m,Ys:()=>w,dL:()=>eg,jP:()=>F,n9:()=>U,oM:()=>L,zy:()=>H});var n=r(27050);let i=65535,s=65536;function o(e,t){return e+t*s}function l(e){return e&i}function a(e){return(e-(e&i))/s}let u=1,c=2,h=4,d=8;class p{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(u|h))>0}get deletedAfter(){return(this.delInfo&(c|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class f{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&f.empty)return f.empty}recover(e){let t=0,r=l(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+a(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let f=this.ranges[l+i],m=this.ranges[l+s],g=a+f;if(e<=g){let i=f?e==a?-1:e==g?1:t:t,s=a+n+(i<0?0:m);if(r)return s;let _=e==(t<0?a:g)?null:o(l/3,e-a),y=e==a?c:e==g?u:h;return(t<0?e!=a:e!=g)&&(y|=d),new p(s,y,_)}n+=m-f}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=l(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let l=this.ranges[t+i];if(e<=o+l&&t==3*n)return!0;r+=this.ranges[t+s]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+t],u=this.ranges[n+r];e(o,o+a,l,l+u),i+=u-a}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?f.empty:new f(e<0?[0,-e,0]:[0,0,e])}}f.empty=new f([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new p(e,n,null)}}let g=Object.create(null);class _{getMap(){return f.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=g[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g)throw RangeError("Duplicate use of step JSON ID "+e);return g[e]=t,t.prototype.jsonID=e,t}}class y{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new y(e,null)}static fail(e){return new y(null,e)}static fromReplace(e,t,r,i){try{return y.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return y.fail(e.message);throw e}}}function k(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let s=e.child(n);s.content.size&&(s=s.copy(k(s.content,t,s))),s.isInline&&(s=t(s,r,n)),i.push(s)}return n.FK.fromArray(i)}class b extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new n.Ji(k(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,s)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new b(t.pos,r.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("addMark",b);class w extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(k(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,r)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("removeMark",w);class x extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new v(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}_.jsonID("addNodeMark",x);class v extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}_.jsonID("removeNodeMark",v);class C extends _{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&E(e,this.from,this.to)?y.fail("Structure replace would overwrite content"):y.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new C(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,_.jsonID("replace",C);class A extends _{constructor(e,t,r,n,i,s,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(E(e,this.from,this.gapFrom)||E(e,this.gapTo,this.to)))return y.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return y.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?y.fromReplace(e,this.from,this.to,r):y.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,r){let n=e.resolve(t),i=r-t,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let e=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function S(e,t,r,n){let i,s,o=[],l=[];e.doc.nodesBetween(t,r,(e,a,u)=>{if(!e.isInline)return;let c=e.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,t),h=Math.min(a+e.nodeSize,r),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:o.push(i=new w(u,h,c[e])));s&&s.to==u?s.to=h:l.push(s=new b(u,h,n))}}),o.forEach(t=>e.step(t)),l.forEach(t=>e.step(t))}function M(e,t,r,i){let s=[],o=0;e.doc.nodesBetween(t,r,(e,l)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(a||(a=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let n=Math.min(l+e.nodeSize,r);for(let e=0;e<a.length;e++){let r=a[e],i;for(let e=0;e<s.length;e++){let t=s[e];t.step==o-1&&r.eq(s[e].style)&&(i=t)}i?(i.to=n,i.step=o):s.push({style:r,from:Math.max(l,t),to:n,step:o})}}}),s.forEach(t=>e.step(new w(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,s=!0){let o=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<o.childCount;t++){let u=o.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new w(a,c,u.marks[t]));if(s&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new C(a+e.index,a+e.index+e[0].length,i))}}else l.push(new C(a,c,n.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function D(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function F(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&s.canReplace(o,l,t))return r;if(0==r||s.type.spec.isolating||!D(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function I(e,t,r){let{$from:i,$to:s,depth:o}=t,l=i.before(o+1),a=s.after(o+1),u=l,c=a,h=n.FK.empty,d=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),d++):u--;let p=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||s.after(e+1)<s.end(e)?(t=!0,p=n.FK.from(s.node(e).copy(p)),f++):c++;e.step(new A(u,c,l,a,new n.Ji(h.append(p),d,f),h.size-d,!0))}function L(e,t,r=null,n=e){let i=N(e,t),s=i&&O(n,t);return s?i.map(R).concat({type:t,attrs:r}).concat(s.map(R)):null}function R(e){return{type:e,attrs:null}}function N(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.contentMatchAt(n).findWrapping(t);if(!s)return null;let o=s.length?s[0]:t;return r.canReplaceWith(n,i,o)?s:null}function O(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.child(n),o=t.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?o:null}function z(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let s=t.start,o=t.end;e.step(new A(s,o,s,o,new n.Ji(i,0,0),r.length,!0))}function P(e,t,r,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let l="function"==typeof s?s(t):s;if(t.isTextblock&&!t.hasMarkup(i,l)&&q(e.doc,e.mapping.slice(o).map(r),i)){let s=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?s=!1:!e&&t&&(s=!0)}!1===s&&B(e,t,r,o),T(e,e.mapping.slice(o).map(r,1),i,void 0,null===s);let a=e.mapping.slice(o),u=a.map(r,1),c=a.map(r+t.nodeSize,1);return e.step(new A(u,c,u+1,c-1,new n.Ji(n.FK.from(i.create(l,null,t.marks)),0,0),1,!0)),!0===s&&$(e,t,r,o),!1}})}function $(e,t,r,n){t.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+s+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+s);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function q(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function j(e,t,r,i,s){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let l=r.create(i,null,s||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,l);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}function H(e,t,r=1,n){let i=e.resolve(t),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>s;e--,t--){let r=i.node(e),s=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(s,r.childCount),l=n&&n[t+1];l&&(o=o.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(s+1,r.childCount)||!a.type.validContent(o))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function V(e,t,r=1,i){let s=e.doc.resolve(t),o=n.FK.empty,l=n.FK.empty;for(let e=s.depth,t=s.depth-r,a=r-1;e>t;e--,a--){o=n.FK.from(s.node(e).copy(o));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):s.node(e).copy(l))}e.step(new C(t,t,new n.Ji(o.append(l),r,r),!0))}function U(e,t){let r=e.resolve(t),n=r.index();return J(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function W(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let s=t.child(i),o=s.type==n?e.type.schema.nodes.text:s.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(s.marks))return!1}return r.validEnd}function J(e,t){return!!(e&&t&&!e.isLeaf&&W(e,t))}function K(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,s,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,s=n.nodeAfter):r>0?(i=n.node(e+1),o++,s=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),s=n.node(e+1)),i&&!i.isTextblock&&J(i,s)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(t-r),l=o.node().type;if(s&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(s);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),a)}l.inlineContent&&T(e,t+r-1,l,o.node().contentMatchAt(o.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-r);if(e.step(new C(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);$(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,s=n.index(t)+ +(r>0),o=n.node(t),l=!1;if(1==e)l=o.canReplace(s,s,i);else{let e=o.contentMatchAt(s).findWrapping(i.firstChild.type);l=e&&o.canReplaceWith(s,s,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let s=e.resolve(t),o=e.resolve(r);return Q(s,o,i)?new C(t,r,i):new ee(s,o,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}_.jsonID("replaceAround",A);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new n.Ji(s,o,l);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new C(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,s=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:o,match:l}=this.frontier[e],a,u=null;if(1==t&&(s?l.matchType(s.type)||(u=l.fillBefore(n.FK.from(s),!1)):i&&o.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:u};if(2==t&&s&&(a=l.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:a};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let e=0;e<s.length;e++)this.openFrontierNode(s[e]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(ei(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=er(this.placed,t,n.FK.from(c)),this.frontier[t].match=h,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(et(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new n.Ji(et(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!es(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=es(e,t,n,r,i);if(s){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=es(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function es(e,t,r,n,i){let s=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!eo(r,s.content,o)?l:null}function eo(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function el(e){return e.spec.defining||e.spec.definingForContent}function ea(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),o=e.doc.resolve(r);if(Q(s,o,i))return e.step(new C(t,r,i));let l=ed(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let e=s.depth,t=s.pos-1;e>0;e--,t--){let r=s.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:s.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){let t=c[e],r=el(t.type);if(r&&!t.sameMarkup(s.node(Math.abs(a)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=s.node(c-1),f=s.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(s.before(c),h?o.after(c):r,new n.Ji(eu(i.content,0,i.openStart,a),a,i.openEnd))}}let d=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=l[n];e<0||(t=s.before(e),r=o.after(e))}}function eu(e,t,r,i,s){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(eu(n.content,t+1,r,i,n)))}if(t>i){let t=s.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function ec(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function eh(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let s=n.sharedDepth(r),o=!1;for(let e=n.depth;e>s;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>s;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let s=ed(n,i);for(let t=0;t<s.length;t++){let r=s[t],o=t==s.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}function ed(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ep extends _{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}}_.jsonID("attr",ep);class ef extends _{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return y.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}}_.jsonID("docAttr",ef);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class eg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,s)=>{e=Math.min(e,i),t=Math.max(t,s)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eh(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,r,n=null){return P(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return j(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new v(e,t));else{let n=r.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new v(e,i)),n=i.removeFromSet(n);for(let e=s.length-1;e>=0;e--)this.step(s[e])}return this}split(e,t=1,r){return V(this,e,t,r),this}addMark(e,t,r){return S(this,e,t,r),this}removeMark(e,t,r){return M(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s=(0,n.A)("chevron-up",i)},10762:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],s=(0,n.A)("terminal",i)},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>_,w:()=>g});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);function u(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var c=r(76865);let h="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,r,n,i,s=e.split(/-(?!$)/),o=s[s.length-1];"Space"==o&&(o=" ");for(let e=0;e<s.length-1;e++){let o=s[e];if(/^(cmd|meta|m)$/i.test(o))i=!0;else if(/^a(lt)?$/i.test(o))t=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else if(/^mod$/i.test(o))h?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+o)}return t&&(o="Alt-"+o),r&&(o="Ctrl-"+o),i&&(o="Meta-"+o),n&&(o="Shift-"+o),o}function f(e){let t=Object.create(null);for(let r in e)t[p(r)]=e[r];return t}function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new c.k_({props:{handleKeyDown:_(e)}})}function _(e){let t=f(e);return function(e,r){let i=u(r),s,o=t[m(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(s=n[r.keyCode])&&s!=i){let n=t[m(s,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>eh,hG:()=>ek});var n=r(12115),i=r(47650),s=r(8039),o=r(95155),l=r(82159);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function d(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,s=i.get(t),o=i.get(r);if(s&&o)return s===r&&o===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function p(e){return null!=e?e[Symbol.toStringTag]:void 0}function f(e){return a(e).concat(u(e))}let m=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let _="__v",y="__o",k="_owner",{getOwnPropertyDescriptor:b,keys:w}=Object;function x(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function A(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function M(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.entries(),a=0;for(;(n=l.next())&&!n.done;){let s=t.entries(),l=!1,u=0;for(;(i=s.next())&&!i.done;){if(o[u]){u++;continue}let s=n.value,c=i.value;if(r.equals(s[0],c[0],a,u,e,t,r)&&r.equals(s[1],c[1],s[0],c[0],e,t,r)){l=o[u]=!0;break}u++}if(!l)return!1;a++}return!0}let T=g;function D(e,t,r){let n=w(e),i=n.length;if(w(t).length!==i)return!1;for(;i-- >0;)if(!z(e,t,r,n[i]))return!1;return!0}function F(e,t,r){let n,i,s,o=f(e),l=o.length;if(f(t).length!==l)return!1;for(;l-- >0;)if(!z(e,t,r,n=o[l])||(i=b(e,n),s=b(t,n),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function I(e,t){return g(e.valueOf(),t.valueOf())}function L(e,t){return e.source===t.source&&e.flags===t.flags}function R(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.values();for(;(n=l.next())&&!n.done;){let s=t.values(),l=!1,a=0;for(;(i=s.next())&&!i.done;){if(!o[a]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=o[a]=!0;break}a++}if(!l)return!1}return!0}function N(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function O(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z(e,t,r,n){return(n===k||n===y||n===_)&&(!!e.$$typeof||!!t.$$typeof)||m(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let P="[object ArrayBuffer]",$="[object Arguments]",B="[object Boolean]",q="[object DataView]",j="[object Date]",H="[object Error]",V="[object Map]",U="[object Number]",W="[object Object]",J="[object RegExp]",K="[object Set]",G="[object String]",Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},X="[object URL]",Y=Object.prototype.toString;function Q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:m}){return function(g,_,y){if(g===_)return!0;if(null==g||null==_)return!1;let k=typeof g;if(k!==typeof _)return!1;if("object"!==k)return"number"===k?l(g,_,y):"function"===k&&s(g,_,y);let b=g.constructor;if(b!==_.constructor)return!1;if(b===Object)return a(g,_,y);if(Array.isArray(g))return t(g,_,y);if(b===Date)return n(g,_,y);if(b===RegExp)return c(g,_,y);if(b===Map)return o(g,_,y);if(b===Set)return h(g,_,y);let w=Y.call(g);if(w===j)return n(g,_,y);if(w===J)return c(g,_,y);if(w===V)return o(g,_,y);if(w===K)return h(g,_,y);if(w===W)return"function"!=typeof g.then&&"function"!=typeof _.then&&a(g,_,y);if(w===X)return f(g,_,y);if(w===H)return i(g,_,y);if(w===$)return a(g,_,y);if(Z[w])return d(g,_,y);if(w===P)return e(g,_,y);if(w===q)return r(g,_,y);if(w===B||w===U||w===G)return u(g,_,y);if(m){let e=m[w];if(!e){let t=p(g);t&&(e=m[t])}if(e)return e(g,_,y)}return!1}}function ee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:x,areArraysEqual:r?F:v,areDataViewsEqual:C,areDatesEqual:A,areErrorsEqual:E,areFunctionsEqual:S,areMapsEqual:r?h(M,F):M,areNumbersEqual:T,areObjectsEqual:r?F:D,arePrimitiveWrappersEqual:I,areRegExpsEqual:L,areSetsEqual:r?h(R,F):R,areTypedArraysEqual:r?h(N,F):N,areUrlsEqual:O,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=d(n.areArraysEqual),t=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function et(e){return function(t,r,n,i,s,o,l){return e(t,r,l)}}function er({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,o){let{cache:l=e?new WeakMap:void 0,meta:a}=r();return t(s,o,{cache:l,equals:n,meta:a,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let s={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,s)}}let en=ei();function ei(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=Q(ee(e)),o=r?r(s):et(s);return er({circular:t,comparator:s,createState:n,equals:o,strict:i})}ei({strict:!0}),ei({circular:!0}),ei({circular:!0,strict:!0}),ei({createInternalComparator:()=>g}),ei({strict:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g,strict:!0});var es=r(94577),eo=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},el=({contentComponent:e})=>{let t=(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})};function ea(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var eu=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=ea(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eo(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(el,{contentComponent:e.contentComponent})]})}},ec=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(eu,{key:r,innerRef:t,...e})}),eh=n.memo(ec),ed="u">typeof window?n.useLayoutEffect:n.useEffect,ep=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function ef(e){var t;let[r]=(0,n.useState)(()=>new ep(e.editor)),i=(0,es.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:en);return ed(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var em=!1,eg="u"<typeof window,e_=eg||!!("u">typeof window&&window.next),ey=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(eg||e_){if(em)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&eg&&em)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ek(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new ey(r)),o=(0,s.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(o),(0,n.useEffect)(i.onRender(t)),ef({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}var eb=(0,n.createContext)({editor:null});eb.Consumer;var ew=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ex=()=>(0,n.useContext)(ew);n.forwardRef((e,t)=>{let{onDragStart:r}=ex(),n=e.as||"div";return(0,o.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),l.Db,l.Yv;var ev=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});ev.displayName="TiptapContext";var eC=()=>(0,n.useContext)(ev);function eA({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let s=(0,n.useMemo)(()=>({editor:i}),[i]),l=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,o.jsx)(eb.Provider,{value:l,children:(0,o.jsx)(ev.Provider,{value:s,children:r})})}function eE({...e}){let{editor:t}=eC();return(0,o.jsx)(eh,{editor:t,...e})}eA.displayName="Tiptap",eE.displayName="Tiptap.Content",Object.assign(eA,{Content:eE})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:r,startPosition:n,oldEndPosition:i,newEndPosition:s}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=r>>>0,this.startPosition=n,this.oldEndPosition=i,this.newEndPosition=s}editPoint(e,t){let r=t,n={...e};if(t>=this.oldEndIndex){r=this.newEndIndex+(t-this.oldEndIndex);let i=e.row;n.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),n.column=i===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(r=this.newEndIndex,n.row=this.newEndPosition.row,n.column=this.newEndPosition.column);return{point:n,index:r}}editRange(e){let t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(e){if(e!==INTERNAL)throw Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return!!C._ts_lookahead_iterator_reset_state(this[0],e)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,r,n){let i=r-t,s=e.textCallback(t,n);if(s){for(t+=s.length;t<r;){let r=e.textCallback(t,n);if(r&&r.length>0)t+=r.length,s+=r;else break}t>r&&(s=s.slice(0,i))}return s??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(e){if(!(e instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){let e=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(e),e}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let r=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");let t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);let t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:r,startIndex:n,startPosition:i,other:s}){assertInternal(e),this[0]=s,this.id=t,this.tree=r,this.startIndex=n,this.startPosition=i}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);let t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);let t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,r=ZERO_POINT){Array.isArray(e)||(e=[e]);let n=[],i=this.tree.language.types;for(let t of e)"ERROR"==t&&n.push(65535);for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);let s=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)C.setValue(s+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,n.length,t.row,t.column,r.row,r.column);let o=C.getValue(TRANSFER_BUFFER,"i32"),l=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=Array(o);if(o>0){let e=l;for(let t=0;t<o;t++)a[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(l),C._free(s),a}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,r;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,r=this.startPosition.column):(t=0,r=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(r=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=r):this.startPosition.column+=r}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);let e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,r,n,i){for(let s=0,o=i.length;s<o;s++){let o=C.getValue(r,"i32"),l=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,i[s]={patternIndex:n,name:e.captureNames[o],node:l}}return r}function marshalNode(e,t=0){let r=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(r,e.id,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.row,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.column,"i32"),r+=SIZE_OF_INT,C.setValue(r,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){let r=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===r)return null;let n=C.getValue(t,"i32");t+=SIZE_OF_INT;let i=C.getValue(t,"i32");t+=SIZE_OF_INT;let s=C.getValue(t,"i32");return t+=SIZE_OF_INT,new Node(INTERNAL,{id:r,tree:e,startIndex:n,startPosition:{row:i,column:s},other:C.getValue(t,"i32")})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+ +SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32")}function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),t.endPosition=unmarshalPoint(e+=SIZE_OF_POINT),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32")}function unmarshalLanguageMetadata(e){let t=C.getValue(e,"i32");return{major_version:t,minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)2>C._ts_language_symbol_type(this[0],e)&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);0!==t?this.fields[e]=C.UTF8ToString(t):this.fields[e]=null}}get name(){let e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){let t=this.fields.indexOf(e);return -1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){let r=C.lengthBytesUTF8(e),n=C._malloc(r+1);C.stringToUTF8(e,n,r+1);let i=C._ts_language_symbol_for_name(this[0],n,r,+!!t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){let t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=C.getValue(n,"i16"),n+=SIZE_OF_SHORT}return r}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return n}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){let t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(e){let t;if(e instanceof Uint8Array)t=e;else if(globalThis.process?.versions.node){let r=await __webpack_require__.e(480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));t=await r.readFile(e)}else{let r=await fetch(e);if(!r.ok){let e=await r.text();throw Error(`Language.load failed with status ${r.status}.
|
|
4
|
+
`}),d},tn=s.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:e3,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=e5(e,this.options.cellMinWidth),o=t.style;function l(){return o||(n?`width: ${n}`:`min-width: ${i}`)}let a=["table",(0,s.KV)(this.options.HTMLAttributes,t,{style:l()}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},a]:a},parseMarkdown:(e,t)=>{let r=[],n=Array.isArray(e.align)?e.align:[];if(e.header){let i=[];e.header.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableHeader",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(e=>{let i=[];e.forEach((e,r)=>{var s;let o=eK(null!=(s=n[r])?s:e.align),l=o?{align:o}:{};i.push(t.createNode("tableCell",l,[{type:"paragraph",content:t.parseInline(e.tokens)}]))}),r.push(t.createNode("tableRow",{},i))}),t.createNode("table",void 0,r)},renderMarkdown:(e,t)=>tr(e,t),addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:s})=>{let l=e8(s.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(l).scrollIntoView().setSelection(o.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>j(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>H(e,t),deleteColumn:()=>({state:e,dispatch:t})=>U(e,t),addRowBefore:()=>({state:e,dispatch:t})=>K(e,t),addRowAfter:()=>({state:e,dispatch:t})=>G(e,t),deleteRow:()=>({state:e,dispatch:t})=>X(e,t),deleteTable:()=>({state:e,dispatch:t})=>ec(e,t),mergeCells:()=>({state:e,dispatch:t})=>ee(e,t),splitCell:()=>({state:e,dispatch:t})=>et(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>eo("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>eo("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>el(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!ee(e,t)||et(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>en(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>eu(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>eu(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&P(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=D.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:e7,"Mod-Backspace":e7,Delete:e7,"Mod-Delete":e7}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[eL({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],eJ({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,s.gk)((0,s.iI)(e,"tableRole",t))}}});s.YY.create({name:"tableKit",addExtensions(){let e=[];return!1!==this.options.table&&e.push(tn.configure(this.options.table)),!1!==this.options.tableCell&&e.push(eY.configure(this.options.tableCell)),!1!==this.options.tableHeader&&e.push(eQ.configure(this.options.tableHeader)),!1!==this.options.tableRow&&e.push(e0.configure(this.options.tableRow)),e}})},6268:(e,t,r)=>{"use strict";r.d(t,{A:()=>n.A0});var n=r(5989)},7915:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],s=(0,n.A)("eye",i)},8242:(e,t,r)=>{"use strict";r.d(t,{$L:()=>Y,Ln:()=>C,N0:()=>K,Um:()=>X,Wg:()=>A,X9:()=>m,Ys:()=>w,dL:()=>eg,jP:()=>F,n9:()=>U,oM:()=>L,zy:()=>H});var n=r(27050);let i=65535,s=65536;function o(e,t){return e+t*s}function l(e){return e&i}function a(e){return(e-(e&i))/s}let u=1,c=2,h=4,d=8;class p{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(u|h))>0}get deletedAfter(){return(this.delInfo&(c|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class f{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&f.empty)return f.empty}recover(e){let t=0,r=l(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+a(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let f=this.ranges[l+i],m=this.ranges[l+s],g=a+f;if(e<=g){let i=f?e==a?-1:e==g?1:t:t,s=a+n+(i<0?0:m);if(r)return s;let _=e==(t<0?a:g)?null:o(l/3,e-a),y=e==a?c:e==g?u:h;return(t<0?e!=a:e!=g)&&(y|=d),new p(s,y,_)}n+=m-f}return r?e+n:new p(e+n,0,null)}touches(e,t){let r=0,n=l(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?r:0);if(o>e)break;let l=this.ranges[t+i];if(e<=o+l&&t==3*n)return!0;r+=this.ranges[t+s]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+t],u=this.ranges[n+r];e(o,o+a,l,l+u),i+=u-a}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?f.empty:new f(e<0?[0,-e,0]:[0,0,e])}}f.empty=new f([]);class m{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new m(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new p(e,n,null)}}let g=Object.create(null);class _{getMap(){return f.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=g[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in g)throw RangeError("Duplicate use of step JSON ID "+e);return g[e]=t,t.prototype.jsonID=e,t}}class y{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new y(e,null)}static fail(e){return new y(null,e)}static fromReplace(e,t,r,i){try{return y.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return y.fail(e.message);throw e}}}function k(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let s=e.child(n);s.content.size&&(s=s.copy(k(s.content,t,s))),s.isInline&&(s=t(s,r,n)),i.push(s)}return n.FK.fromArray(i)}class b extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),s=new n.Ji(k(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,s)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new b(t.pos,r.pos,this.mark)}merge(e){return e instanceof b&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new b(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new b(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("addMark",b);class w extends _{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(k(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return y.fromReplace(e,this.from,this.to,r)}invert(){return new b(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new w(t.pos,r.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}_.jsonID("removeMark",w);class x extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new x(this.pos,t.marks[r]);return new x(this.pos,this.mark)}}return new v(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new x(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new x(t.pos,e.markFromJSON(t.mark))}}_.jsonID("addNodeMark",x);class v extends _{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new x(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new v(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new v(t.pos,e.markFromJSON(t.mark))}}_.jsonID("removeNodeMark",v);class C extends _{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&E(e,this.from,this.to)?y.fail("Structure replace would overwrite content"):y.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(e){return new C(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&C.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new C(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof C)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new C(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new C(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new C(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}C.MAP_BIAS=1,_.jsonID("replace",C);class A extends _{constructor(e,t,r,n,i,s,o=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(E(e,this.from,this.gapFrom)||E(e,this.gapTo,this.to)))return y.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return y.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?y.fromReplace(e,this.from,this.to,r):y.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function E(e,t,r){let n=e.resolve(t),i=r-t,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let e=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function S(e,t,r,n){let i,s,o=[],l=[];e.doc.nodesBetween(t,r,(e,a,u)=>{if(!e.isInline)return;let c=e.marks;if(!n.isInSet(c)&&u.type.allowsMarkType(n.type)){let u=Math.max(a,t),h=Math.min(a+e.nodeSize,r),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(i&&i.to==u&&i.mark.eq(c[e])?i.to=h:o.push(i=new w(u,h,c[e])));s&&s.to==u?s.to=h:l.push(s=new b(u,h,n))}}),o.forEach(t=>e.step(t)),l.forEach(t=>e.step(t))}function M(e,t,r,i){let s=[],o=0;e.doc.nodesBetween(t,r,(e,l)=>{if(!e.isInline)return;o++;let a=null;if(i instanceof n.sX){let t=e.marks,r;for(;r=i.isInSet(t);)(a||(a=[])).push(r),t=r.removeFromSet(t)}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length){let n=Math.min(l+e.nodeSize,r);for(let e=0;e<a.length;e++){let r=a[e],i;for(let e=0;e<s.length;e++){let t=s[e];t.step==o-1&&r.eq(s[e].style)&&(i=t)}i?(i.to=n,i.step=o):s.push({style:r,from:Math.max(l,t),to:n,step:o})}}}),s.forEach(t=>e.step(new w(t.from,t.to,t.style)))}function T(e,t,r,i=r.contentMatch,s=!0){let o=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<o.childCount;t++){let u=o.child(t),c=a+u.nodeSize,h=i.matchType(u.type);if(h){i=h;for(let t=0;t<u.marks.length;t++)r.allowsMarkType(u.marks[t].type)||e.step(new w(a,c,u.marks[t]));if(s&&u.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(u.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(u.marks))),0,0)),l.push(new C(a+e.index,a+e.index+e[0].length,i))}}else l.push(new C(a,c,n.Ji.empty));a=c}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function D(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function F(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let s=e.$from.node(r),o=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&s.canReplace(o,l,t))return r;if(0==r||s.type.spec.isolating||!D(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function I(e,t,r){let{$from:i,$to:s,depth:o}=t,l=i.before(o+1),a=s.after(o+1),u=l,c=a,h=n.FK.empty,d=0;for(let e=o,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,h=n.FK.from(i.node(e).copy(h)),d++):u--;let p=n.FK.empty,f=0;for(let e=o,t=!1;e>r;e--)t||s.after(e+1)<s.end(e)?(t=!0,p=n.FK.from(s.node(e).copy(p)),f++):c++;e.step(new A(u,c,l,a,new n.Ji(h.append(p),d,f),h.size-d,!0))}function L(e,t,r=null,n=e){let i=N(e,t),s=i&&O(n,t);return s?i.map(R).concat({type:t,attrs:r}).concat(s.map(R)):null}function R(e){return{type:e,attrs:null}}function N(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.contentMatchAt(n).findWrapping(t);if(!s)return null;let o=s.length?s[0]:t;return r.canReplaceWith(n,i,o)?s:null}function O(e,t){let{parent:r,startIndex:n,endIndex:i}=e,s=r.child(n),o=t.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?o:null}function z(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let s=t.start,o=t.end;e.step(new A(s,o,s,o,new n.Ji(i,0,0),r.length,!0))}function P(e,t,r,i,s){if(!i.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let l="function"==typeof s?s(t):s;if(t.isTextblock&&!t.hasMarkup(i,l)&&q(e.doc,e.mapping.slice(o).map(r),i)){let s=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?s=!1:!e&&t&&(s=!0)}!1===s&&B(e,t,r,o),T(e,e.mapping.slice(o).map(r,1),i,void 0,null===s);let a=e.mapping.slice(o),u=a.map(r,1),c=a.map(r+t.nodeSize,1);return e.step(new A(u,c,u+1,c-1,new n.Ji(n.FK.from(i.create(l,null,t.marks)),0,0),1,!0)),!0===s&&$(e,t,r,o),!1}})}function $(e,t,r,n){t.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+s+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function B(e,t,r,n){t.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+s);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function q(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}function j(e,t,r,i,s){let o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");r||(r=o.type);let l=r.create(i,null,s||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,l);if(!r.validContent(o.content))throw RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}function H(e,t,r=1,n){let i=e.resolve(t),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>s;e--,t--){let r=i.node(e),s=i.index(e);if(r.type.spec.isolating)return!1;let o=r.content.cutByIndex(s,r.childCount),l=n&&n[t+1];l&&(o=o.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(s+1,r.childCount)||!a.type.validContent(o))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function V(e,t,r=1,i){let s=e.doc.resolve(t),o=n.FK.empty,l=n.FK.empty;for(let e=s.depth,t=s.depth-r,a=r-1;e>t;e--,a--){o=n.FK.from(s.node(e).copy(o));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):s.node(e).copy(l))}e.step(new C(t,t,new n.Ji(o.append(l),r,r),!0))}function U(e,t){let r=e.resolve(t),n=r.index();return J(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function W(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let s=t.child(i),o=s.type==n?e.type.schema.nodes.text:s.type;if(!(r=r.matchType(o))||!e.type.allowsMarks(s.marks))return!1}return r.validEnd}function J(e,t){return!!(e&&t&&!e.isLeaf&&W(e,t))}function K(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,s,o=n.index(e);if(e==n.depth?(i=n.nodeBefore,s=n.nodeAfter):r>0?(i=n.node(e+1),o++,s=n.node(e).maybeChild(o)):(i=n.node(e).maybeChild(o-1),s=n.node(e+1)),i&&!i.isTextblock&&J(i,s)&&n.node(e).canReplace(o,o+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function G(e,t,r){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(t-r),l=o.node().type;if(s&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(s);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);B(e,n.node(),n.before(),a)}l.inlineContent&&T(e,t+r-1,l,o.node().contentMatchAt(o.index()),null==i);let u=e.mapping.slice(a),c=u.map(t-r);if(e.step(new C(c,u.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(c);$(e,t.node(),t.before(),e.steps.length)}return e}function Z(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}function X(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,s=n.index(t)+ +(r>0),o=n.node(t),l=!1;if(1==e)l=o.canReplace(s,s,i);else{let e=o.contentMatchAt(s).findWrapping(i.firstChild.type);l=e&&o.canReplaceWith(s,s,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function Y(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let s=e.resolve(t),o=e.resolve(r);return Q(s,o,i)?new C(t,r,i):new ee(s,o,i).fit()}function Q(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}_.jsonID("replaceAround",A);class ee{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new n.Ji(s,o,l);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new C(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null,s=(e=r?(i=en(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let e=this.depth;e>=0;e--){let{type:o,match:l}=this.frontier[e],a,u=null;if(1==t&&(s?l.matchType(s.type)||(u=l.fillBefore(n.FK.from(s),!1)):i&&o.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:e,parent:i,inject:u};if(2==t&&s&&(a=l.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:e,parent:i,wrap:a};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=en(e,t);if(i.childCount<=1&&t>0){let s=e.size-t<=t+i.size;this.unplaced=new n.Ji(et(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new n.Ji(et(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let e=0;e<s.length;e++)this.openFrontierNode(s[e]);let o=this.unplaced,l=r?r.content:o.content,a=o.openStart-e,u=0,c=[],{match:h,type:d}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)c.push(i.child(e));h=h.matchFragment(i)}let p=l.size+e-(o.content.size-o.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;(++u>1||0==a||e.content.size)&&(h=t,c.push(ei(e.mark(d.allowedMarks(e.marks)),1==u?a:0,u==l.childCount?p:-1)))}let f=u==l.childCount;f||(p=-1),this.placed=er(this.placed,t,n.FK.from(c)),this.frontier[t].match=h,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(et(o.content,e-1,1),e-1,p<0?o.openEnd:e-1):new n.Ji(et(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!es(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=es(e,t,n,r,i);if(s){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=es(e,r,n,t,!0);if(!i||i.childCount)continue t}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=er(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=er(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=er(this.placed,this.frontier.length,e))}}function et(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(et(e.firstChild.content,t-1,r)))}function er(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(er(e.lastChild.content,t-1,r)))}function en(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function ei(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,ei(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function es(e,t,r,n,i){let s=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!eo(r,s.content,o)?l:null}function eo(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}function el(e){return e.spec.defining||e.spec.definingForContent}function ea(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let s=e.doc.resolve(t),o=e.doc.resolve(r);if(Q(s,o,i))return e.step(new C(t,r,i));let l=ed(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let e=s.depth,t=s.pos-1;e>0;e--,t--){let r=s.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:s.before(e)==t&&l.splice(1,0,-e)}let u=l.indexOf(a),c=[],h=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==i.openStart)break;e=r.content}for(let e=h-1;e>=0;e--){let t=c[e],r=el(t.type);if(r&&!t.sameMarkup(s.node(Math.abs(a)-1)))h=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+h+1)%(i.openStart+1),d=c[a];if(d)for(let t=0;t<l.length;t++){let c=l[(t+u)%l.length],h=!0;c<0&&(h=!1,c=-c);let p=s.node(c-1),f=s.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(s.before(c),h?o.after(c):r,new n.Ji(eu(i.content,0,i.openStart,a),a,i.openEnd))}}let d=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>d));n--){let e=l[n];e<0||(t=s.before(e),r=o.after(e))}}function eu(e,t,r,i,s){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(eu(n.content,t+1,r,i,n)))}if(t>i){let t=s.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function ec(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=Z(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}function eh(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let s=n.sharedDepth(r),o=!1;for(let e=n.depth;e>s;e--)n.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>s;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let s=ed(n,i);for(let t=0;t<s.length;t++){let r=s[t],o=t==s.length-1;if(o&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(o||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}function ed(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class ep extends _{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return y.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return y.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return f.empty}invert(e){return new ep(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ep(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new ep(t.pos,t.attr,t.value)}}_.jsonID("attr",ep);class ef extends _{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return y.ok(r)}getMap(){return f.empty}invert(e){return new ef(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new ef(t.attr,t.value)}}_.jsonID("docAttr",ef);let em=class extends Error{};(em=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),em.prototype.constructor=em,em.prototype.name="TransformError";class eg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new em(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,s)=>{e=Math.min(e,i),t=Math.max(t,s)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=Y(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return ea(this,e,t,r),this}replaceRangeWith(e,t,r){return ec(this,e,t,r),this}deleteRange(e,t){return eh(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return G(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,r,n=null){return P(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return j(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new ep(e,t,r)),this}setDocAttribute(e,t){return this.step(new ef(e,t)),this}addNodeMark(e,t){return this.step(new x(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new v(e,t));else{let n=r.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new v(e,i)),n=i.removeFromSet(n);for(let e=s.length-1;e>=0;e--)this.step(s[e])}return this}split(e,t=1,r){return V(this,e,t,r),this}addMark(e,t,r){return S(this,e,t,r),this}removeMark(e,t,r){return M(this,e,t,r),this}clearIncompatible(e,t,r){return T(this,e,t,r),this}}},9921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s=(0,n.A)("chevron-up",i)},10762:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],s=(0,n.A)("terminal",i)},12894:(e,t,r)=>{"use strict";r.d(t,{K:()=>_,w:()=>g});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="u">typeof navigator&&/Mac/.test(navigator.platform),o="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);function u(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}var c=r(76865);let h="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="u">typeof navigator&&/Win/.test(navigator.platform);function p(e){let t,r,n,i,s=e.split(/-(?!$)/),o=s[s.length-1];"Space"==o&&(o=" ");for(let e=0;e<s.length-1;e++){let o=s[e];if(/^(cmd|meta|m)$/i.test(o))i=!0;else if(/^a(lt)?$/i.test(o))t=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else if(/^mod$/i.test(o))h?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+o)}return t&&(o="Alt-"+o),r&&(o="Ctrl-"+o),i&&(o="Meta-"+o),n&&(o="Shift-"+o),o}function f(e){let t=Object.create(null);for(let r in e)t[p(r)]=e[r];return t}function m(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function g(e){return new c.k_({props:{handleKeyDown:_(e)}})}function _(e){let t=f(e);return function(e,r){let i=u(r),s,o=t[m(i,r)];if(o&&o(e.state,e.dispatch,e))return!0;if(1==i.length&&" "!=i){if(r.shiftKey){let n=t[m(i,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(s=n[r.keyCode])&&s!=i){let n=t[m(s,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},13439:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>eh,hG:()=>ek});var n=r(12115),i=r(47650),s=r(8039),o=r(95155),l=r(82159);let{getOwnPropertyNames:a,getOwnPropertySymbols:u}=Object,{hasOwnProperty:c}=Object.prototype;function h(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function d(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:i}=n,s=i.get(t),o=i.get(r);if(s&&o)return s===r&&o===t;i.set(t,r),i.set(r,t);let l=e(t,r,n);return i.delete(t),i.delete(r),l}}function p(e){return null!=e?e[Symbol.toStringTag]:void 0}function f(e){return a(e).concat(u(e))}let m=Object.hasOwn||((e,t)=>c.call(e,t));function g(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let _="__v",y="__o",k="_owner",{getOwnPropertyDescriptor:b,keys:w}=Object;function x(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function v(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function C(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function A(e,t){return g(e.getTime(),t.getTime())}function E(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function S(e,t){return e===t}function M(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.entries(),a=0;for(;(n=l.next())&&!n.done;){let s=t.entries(),l=!1,u=0;for(;(i=s.next())&&!i.done;){if(o[u]){u++;continue}let s=n.value,c=i.value;if(r.equals(s[0],c[0],a,u,e,t,r)&&r.equals(s[1],c[1],s[0],c[0],e,t,r)){l=o[u]=!0;break}u++}if(!l)return!1;a++}return!0}let T=g;function D(e,t,r){let n=w(e),i=n.length;if(w(t).length!==i)return!1;for(;i-- >0;)if(!z(e,t,r,n[i]))return!1;return!0}function F(e,t,r){let n,i,s,o=f(e),l=o.length;if(f(t).length!==l)return!1;for(;l-- >0;)if(!z(e,t,r,n=o[l])||(i=b(e,n),s=b(t,n),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function I(e,t){return g(e.valueOf(),t.valueOf())}function L(e,t){return e.source===t.source&&e.flags===t.flags}function R(e,t,r){let n,i,s=e.size;if(s!==t.size)return!1;if(!s)return!0;let o=Array(s),l=e.values();for(;(n=l.next())&&!n.done;){let s=t.values(),l=!1,a=0;for(;(i=s.next())&&!i.done;){if(!o[a]&&r.equals(n.value,i.value,n.value,i.value,e,t,r)){l=o[a]=!0;break}a++}if(!l)return!1}return!0}function N(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function O(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function z(e,t,r,n){return(n===k||n===y||n===_)&&(!!e.$$typeof||!!t.$$typeof)||m(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let P="[object ArrayBuffer]",$="[object Arguments]",B="[object Boolean]",q="[object DataView]",j="[object Date]",H="[object Error]",V="[object Map]",U="[object Number]",W="[object Object]",J="[object RegExp]",K="[object Set]",G="[object String]",Z={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},X="[object URL]",Y=Object.prototype.toString;function Q({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:s,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:h,areTypedArraysEqual:d,areUrlsEqual:f,unknownTagComparators:m}){return function(g,_,y){if(g===_)return!0;if(null==g||null==_)return!1;let k=typeof g;if(k!==typeof _)return!1;if("object"!==k)return"number"===k?l(g,_,y):"function"===k&&s(g,_,y);let b=g.constructor;if(b!==_.constructor)return!1;if(b===Object)return a(g,_,y);if(Array.isArray(g))return t(g,_,y);if(b===Date)return n(g,_,y);if(b===RegExp)return c(g,_,y);if(b===Map)return o(g,_,y);if(b===Set)return h(g,_,y);let w=Y.call(g);if(w===j)return n(g,_,y);if(w===J)return c(g,_,y);if(w===V)return o(g,_,y);if(w===K)return h(g,_,y);if(w===W)return"function"!=typeof g.then&&"function"!=typeof _.then&&a(g,_,y);if(w===X)return f(g,_,y);if(w===H)return i(g,_,y);if(w===$)return a(g,_,y);if(Z[w])return d(g,_,y);if(w===P)return e(g,_,y);if(w===q)return r(g,_,y);if(w===B||w===U||w===G)return u(g,_,y);if(m){let e=m[w];if(!e){let t=p(g);t&&(e=m[t])}if(e)return e(g,_,y)}return!1}}function ee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:x,areArraysEqual:r?F:v,areDataViewsEqual:C,areDatesEqual:A,areErrorsEqual:E,areFunctionsEqual:S,areMapsEqual:r?h(M,F):M,areNumbersEqual:T,areObjectsEqual:r?F:D,arePrimitiveWrappersEqual:I,areRegExpsEqual:L,areSetsEqual:r?h(R,F):R,areTypedArraysEqual:r?h(N,F):N,areUrlsEqual:O,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=d(n.areArraysEqual),t=d(n.areMapsEqual),r=d(n.areObjectsEqual),i=d(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:i})}return n}function et(e){return function(t,r,n,i,s,o,l){return e(t,r,l)}}function er({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,o){let{cache:l=e?new WeakMap:void 0,meta:a}=r();return t(s,o,{cache:l,equals:n,meta:a,strict:i})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};let s={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,r){return t(e,r,s)}}let en=ei();function ei(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,s=Q(ee(e)),o=r?r(s):et(s);return er({circular:t,comparator:s,createState:n,equals:o,strict:i})}ei({strict:!0}),ei({circular:!0}),ei({circular:!0,strict:!0}),ei({createInternalComparator:()=>g}),ei({strict:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g}),ei({circular:!0,createInternalComparator:()=>g,strict:!0});var es=r(94577),eo=(...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})},el=({contentComponent:e})=>{let t=(0,s.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,o.jsx)(o.Fragment,{children:Object.values(t)})};function ea(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}var eu=class extends n.Component{constructor(e){super(e),this.editorContentRef=n.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;let t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;let e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=ea(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;let t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;let r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){let{editor:e,innerRef:t,...r}=this.props;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eo(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,o.jsx)(el,{contentComponent:e.contentComponent})]})}},ec=(0,n.forwardRef)((e,t)=>{let r=n.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return n.createElement(eu,{key:r,innerRef:t,...e})}),eh=n.memo(ec),ed="u">typeof window?n.useLayoutEffect:n.useEffect,ep=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function ef(e){var t;let[r]=(0,n.useState)(()=>new ep(e.editor)),i=(0,es.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:en);return ed(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var em=!1,eg="u"<typeof window,e_=eg||!!("u">typeof window&&window.next),ey=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){if(void 0===this.options.current.immediatelyRender){if(eg||e_){if(em)throw Error("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches.");return null}return this.createEditor()}if(this.options.current.immediatelyRender&&eg&&em)throw Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)},onDelete:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDelete)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ek(e={},t=[]){let r=(0,n.useRef)(e);r.current=e;let[i]=(0,n.useState)(()=>new ey(r)),o=(0,s.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(o),(0,n.useEffect)(i.onRender(t)),ef({editor:o,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),o}var eb=(0,n.createContext)({editor:null});eb.Consumer;var ew=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ex=()=>(0,n.useContext)(ew);n.forwardRef((e,t)=>{let{onDragStart:r}=ex(),n=e.as||"div";return(0,o.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})}),n.createContext({markViewContentRef:()=>{}}),l.Db,l.Yv;var ev=(0,n.createContext)({get editor(){throw Error("useTiptap must be used within a <Tiptap> provider")}});ev.displayName="TiptapContext";var eC=()=>(0,n.useContext)(ev);function eA({editor:e,instance:t,children:r}){let i=null!=e?e:t;if(!i)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let s=(0,n.useMemo)(()=>({editor:i}),[i]),l=(0,n.useMemo)(()=>({editor:i}),[i]);return(0,o.jsx)(eb.Provider,{value:l,children:(0,o.jsx)(ev.Provider,{value:s,children:r})})}function eE({...e}){let{editor:t}=eC();return(0,o.jsx)(eh,{editor:t,...e})}eA.displayName="Tiptap",eE.displayName="Tiptap.Content",Object.assign(eA,{Content:eE})},14066:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{TM:()=>Language,iX:()=>Parser});var C,TRANSFER_BUFFER,LANGUAGE_VERSION,MIN_COMPATIBLE_VERSION,process=__webpack_require__(41463),__defProp=Object.defineProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),Edit=class{static{__name(this,"Edit")}startPosition;oldEndPosition;newEndPosition;startIndex;oldEndIndex;newEndIndex;constructor({startIndex:e,oldEndIndex:t,newEndIndex:r,startPosition:n,oldEndPosition:i,newEndPosition:s}){this.startIndex=e>>>0,this.oldEndIndex=t>>>0,this.newEndIndex=r>>>0,this.startPosition=n,this.oldEndPosition=i,this.newEndPosition=s}editPoint(e,t){let r=t,n={...e};if(t>=this.oldEndIndex){r=this.newEndIndex+(t-this.oldEndIndex);let i=e.row;n.row=this.newEndPosition.row+(e.row-this.oldEndPosition.row),n.column=i===this.oldEndPosition.row?this.newEndPosition.column+(e.column-this.oldEndPosition.column):e.column}else t>this.startIndex&&(r=this.newEndIndex,n.row=this.newEndPosition.row,n.column=this.newEndPosition.column);return{point:n,index:r}}editRange(e){let t={startIndex:e.startIndex,startPosition:{...e.startPosition},endIndex:e.endIndex,endPosition:{...e.endPosition}};return e.endIndex>=this.oldEndIndex?e.endIndex!==Number.MAX_SAFE_INTEGER&&(t.endIndex=this.newEndIndex+(e.endIndex-this.oldEndIndex),t.endPosition={row:this.newEndPosition.row+(e.endPosition.row-this.oldEndPosition.row),column:e.endPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.endPosition.column-this.oldEndPosition.column):e.endPosition.column},t.endIndex<this.newEndIndex&&(t.endIndex=Number.MAX_SAFE_INTEGER,t.endPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.endIndex>this.startIndex&&(t.endIndex=this.startIndex,t.endPosition={...this.startPosition}),e.startIndex>=this.oldEndIndex?(t.startIndex=this.newEndIndex+(e.startIndex-this.oldEndIndex),t.startPosition={row:this.newEndPosition.row+(e.startPosition.row-this.oldEndPosition.row),column:e.startPosition.row===this.oldEndPosition.row?this.newEndPosition.column+(e.startPosition.column-this.oldEndPosition.column):e.startPosition.column},t.startIndex<this.newEndIndex&&(t.startIndex=Number.MAX_SAFE_INTEGER,t.startPosition={row:Number.MAX_SAFE_INTEGER,column:Number.MAX_SAFE_INTEGER})):e.startIndex>this.startIndex&&(t.startIndex=this.startIndex,t.startPosition={...this.startPosition}),t}},SIZE_OF_SHORT=2,SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},INTERNAL=Symbol("INTERNAL");function assertInternal(e){if(e!==INTERNAL)throw Error("Illegal constructor")}function isPoint(e){return!!e&&"number"==typeof e.row&&"number"==typeof e.column}function setModule(e){C=e}__name(assertInternal,"assertInternal"),__name(isPoint,"isPoint"),__name(setModule,"setModule");var LookaheadIterator=class{static{__name(this,"LookaheadIterator")}0=0;language;constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}resetState(e){return!!C._ts_lookahead_iterator_reset_state(this[0],e)}[Symbol.iterator](){return{next:__name(()=>C._ts_lookahead_iterator_next(this[0])?{done:!1,value:this.currentType}:{done:!0,value:""},"next")}}};function getText(e,t,r,n){let i=r-t,s=e.textCallback(t,n);if(s){for(t+=s.length;t<r;){let r=e.textCallback(t,n);if(r&&r.length>0)t+=r.length,s+=r;else break}t>r&&(s=s.slice(0,i))}return s??""}__name(getText,"getText");var Tree=class _Tree{static{__name(this,"Tree")}0=0;textCallback;language;constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){return new _Tree(INTERNAL,C._ts_tree_copy(this[0]),this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}walk(){return this.rootNode.walk()}getChangedRanges(e){if(!(e instanceof _Tree))throw TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}},TreeCursor=class _TreeCursor{static{__name(this,"TreeCursor")}0=0;1=0;2=0;3=0;tree;constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}copy(){let e=new _TreeCursor(INTERNAL,this.tree);return C._ts_tree_cursor_copy_wasm(this.tree[0]),unmarshalTreeCursor(e),e}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);let e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);C._ts_tree_cursor_start_position_wasm(this.tree[0]);let r=unmarshalPoint(TRANSFER_BUFFER);return getText(this.tree,e,t,r)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);let e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoFirstChildForIndex(e){marshalTreeCursor(this),C.setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");let t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);let t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}},Node=class{static{__name(this,"Node")}0=0;_children;_namedChildren;constructor(e,{id:t,tree:r,startIndex:n,startPosition:i,other:s}){assertInternal(e),this[0]=s,this.id=t,this.tree=r,this.startIndex=n,this.startPosition=i}id;startIndex;startPosition;tree;get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get text(){return getText(this.tree,this.startIndex,this.endIndex,this.startPosition)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}equals(e){return this.tree===e.tree&&this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);let t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}fieldNameForNamedChild(e){marshalNode(this);let t=C._ts_node_field_name_for_named_child_wasm(this.tree[0],e);return t?C.AsciiToString(t):null}childrenForFieldName(e){let t=this.tree.language.fields.indexOf(e);return -1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);let t=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(t,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t=ZERO_POINT,r=ZERO_POINT){Array.isArray(e)||(e=[e]);let n=[],i=this.tree.language.types;for(let t of e)"ERROR"==t&&n.push(65535);for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);let s=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)C.setValue(s+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,n.length,t.row,t.column,r.row,r.column);let o=C.getValue(TRANSFER_BUFFER,"i32"),l=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=Array(o);if(o>0){let e=l;for(let t=0;t<o;t++)a[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(l),C._free(s),a}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}childWithDescendant(e){return marshalNode(this),marshalNode(e,1),C._ts_node_child_with_descendant_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return C.setValue(r,e,"i32"),C.setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}edit(e){if(this.startIndex>=e.oldEndIndex){let t,r;this.startIndex=e.newEndIndex+(this.startIndex-e.oldEndIndex),this.startPosition.row>e.oldEndPosition.row?(t=this.startPosition.row-e.oldEndPosition.row,r=this.startPosition.column):(t=0,r=this.startPosition.column,this.startPosition.column>=e.oldEndPosition.column&&(r=this.startPosition.column-e.oldEndPosition.column)),t>0?(this.startPosition.row+=t,this.startPosition.column=r):this.startPosition.column+=r}else this.startIndex>e.startIndex&&(this.startIndex=e.newEndIndex,this.startPosition.row=e.newEndPosition.row,this.startPosition.column=e.newEndPosition.column)}toString(){marshalNode(this);let e=C._ts_node_to_string_wasm(this.tree[0]),t=C.AsciiToString(e);return C._free(e),t}};function unmarshalCaptures(e,t,r,n,i){for(let s=0,o=i.length;s<o;s++){let o=C.getValue(r,"i32"),l=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,i[s]={patternIndex:n,name:e.captureNames[o],node:l}}return r}function marshalNode(e,t=0){let r=TRANSFER_BUFFER+t*SIZE_OF_NODE;C.setValue(r,e.id,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startIndex,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.row,"i32"),r+=SIZE_OF_INT,C.setValue(r,e.startPosition.column,"i32"),r+=SIZE_OF_INT,C.setValue(r,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){let r=C.getValue(t,"i32");if(t+=SIZE_OF_INT,0===r)return null;let n=C.getValue(t,"i32");t+=SIZE_OF_INT;let i=C.getValue(t,"i32");t+=SIZE_OF_INT;let s=C.getValue(t,"i32");return t+=SIZE_OF_INT,new Node(INTERNAL,{id:r,tree:e,startIndex:n,startPosition:{row:i,column:s},other:C.getValue(t,"i32")})}function marshalTreeCursor(e,t=TRANSFER_BUFFER){C.setValue(t+0*SIZE_OF_INT,e[0],"i32"),C.setValue(t+ +SIZE_OF_INT,e[1],"i32"),C.setValue(t+2*SIZE_OF_INT,e[2],"i32"),C.setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=C.getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=C.getValue(TRANSFER_BUFFER+ +SIZE_OF_INT,"i32"),e[2]=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=C.getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){C.setValue(e,t.row,"i32"),C.setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:C.getValue(e,"i32")>>>0,column:C.getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),e+=SIZE_OF_POINT,C.setValue(e,t.startIndex,"i32"),e+=SIZE_OF_INT,C.setValue(e,t.endIndex,"i32")}function unmarshalRange(e){let t={};return t.startPosition=unmarshalPoint(e),t.endPosition=unmarshalPoint(e+=SIZE_OF_POINT),e+=SIZE_OF_POINT,t.startIndex=C.getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=C.getValue(e,"i32")>>>0,t}function marshalEdit(e,t=TRANSFER_BUFFER){marshalPoint(t,e.startPosition),marshalPoint(t+=SIZE_OF_POINT,e.oldEndPosition),marshalPoint(t+=SIZE_OF_POINT,e.newEndPosition),t+=SIZE_OF_POINT,C.setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,C.setValue(t,e.newEndIndex,"i32")}function unmarshalLanguageMetadata(e){let t=C.getValue(e,"i32");return{major_version:t,minor_version:C.getValue(e+=SIZE_OF_INT,"i32"),patch_version:C.getValue(e+=SIZE_OF_INT,"i32")}}__name(unmarshalCaptures,"unmarshalCaptures"),__name(marshalNode,"marshalNode"),__name(unmarshalNode,"unmarshalNode"),__name(marshalTreeCursor,"marshalTreeCursor"),__name(unmarshalTreeCursor,"unmarshalTreeCursor"),__name(marshalPoint,"marshalPoint"),__name(unmarshalPoint,"unmarshalPoint"),__name(marshalRange,"marshalRange"),__name(unmarshalRange,"unmarshalRange"),__name(marshalEdit,"marshalEdit"),__name(unmarshalLanguageMetadata,"unmarshalLanguageMetadata");var LANGUAGE_FUNCTION_REGEX=/^tree_sitter_\w+$/,Language=class _Language{static{__name(this,"Language")}0=0;types;fields;constructor(e,t){assertInternal(e),this[0]=t,this.types=Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)2>C._ts_language_symbol_type(this[0],e)&&(this.types[e]=C.UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);0!==t?this.fields[e]=C.UTF8ToString(t):this.fields[e]=null}}get name(){let e=C._ts_language_name(this[0]);return 0===e?null:C.UTF8ToString(e)}get abiVersion(){return C._ts_language_abi_version(this[0])}get metadata(){return(C._ts_language_metadata_wasm(this[0]),0===C.getValue(TRANSFER_BUFFER,"i32"))?null:unmarshalLanguageMetadata(TRANSFER_BUFFER+SIZE_OF_INT)}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){let t=this.fields.indexOf(e);return -1!==t?t:null}fieldNameForId(e){return this.fields[e]??null}idForNodeType(e,t){let r=C.lengthBytesUTF8(e),n=C._malloc(r+1);C.stringToUTF8(e,n,r+1);let i=C._ts_language_symbol_for_name(this[0],n,r,+!!t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){let t=C._ts_language_symbol_name(this[0],e);return t?C.UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}get supertypes(){C._ts_language_supertypes_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=C.getValue(n,"i16"),n+=SIZE_OF_SHORT}return r}subtypes(e){C._ts_language_subtypes_wasm(this[0],e);let t=C.getValue(TRANSFER_BUFFER,"i32"),r=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=C.getValue(e,"i16"),e+=SIZE_OF_SHORT}return n}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){let t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterator(INTERNAL,t,this):null}static async load(e){let t;if(e instanceof Uint8Array)t=e;else if(globalThis.process?.versions.node){let r=await __webpack_require__.e(480).then(__webpack_require__.t.bind(__webpack_require__,80480,19));t=await r.readFile(e)}else{let r=await fetch(e);if(!r.ok){let e=await r.text();throw Error(`Language.load failed with status ${r.status}.
|
|
5
5
|
|
|
6
6
|
${e}`)}let n=r.clone();try{t=await WebAssembly.compileStreaming(r)}catch(e){console.error("wasm streaming compile failed:",e),console.error("falling back to ArrayBuffer instantiation"),t=new Uint8Array(await n.arrayBuffer())}}let r=await C.loadWebAssemblyModule(t,{loadAsync:!0}),n=Object.keys(r),i=n.find(e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_"));if(!i)throw console.log(`Couldn't find language function in Wasm file. Symbols:
|
|
7
7
|
${JSON.stringify(n,null,2)}`),Error("Language.load failed: no language function found in Wasm file");return new _Language(INTERNAL,r[i]())}};async function Module2(moduleArg={}){var moduleRtn,readAsync,readBinary,wasmBinary,EXITSTATUS,readyPromiseResolve,readyPromiseReject,wasmMemory,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP64,HEAPU64,HEAP_DATA_VIEW,wasmBinaryFile,functionsInTableMap,_malloc,_calloc,_realloc,_free,_ts_range_edit,_memcmp,_ts_language_symbol_count,_ts_language_state_count,_ts_language_abi_version,_ts_language_name,_ts_language_field_count,_ts_language_next_state,_ts_language_symbol_name,_ts_language_symbol_for_name,_strncmp,_ts_language_symbol_type,_ts_language_field_name_for_id,_ts_lookahead_iterator_new,_ts_lookahead_iterator_delete,_ts_lookahead_iterator_reset_state,_ts_lookahead_iterator_reset,_ts_lookahead_iterator_next,_ts_lookahead_iterator_current_symbol,_ts_point_edit,_ts_parser_delete,_ts_parser_reset,_ts_parser_set_language,_ts_parser_set_included_ranges,_ts_query_new,_ts_query_delete,_iswspace,_iswalnum,_ts_query_pattern_count,_ts_query_capture_count,_ts_query_string_count,_ts_query_capture_name_for_id,_ts_query_capture_quantifier_for_id,_ts_query_string_value_for_id,_ts_query_predicates_for_pattern,_ts_query_start_byte_for_pattern,_ts_query_end_byte_for_pattern,_ts_query_is_pattern_rooted,_ts_query_is_pattern_non_local,_ts_query_is_pattern_guaranteed_at_step,_ts_query_disable_capture,_ts_query_disable_pattern,_ts_tree_copy,_ts_tree_delete,_ts_init,_ts_parser_new_wasm,_ts_parser_enable_logger_wasm,_ts_parser_parse_wasm,_ts_parser_included_ranges_wasm,_ts_language_type_is_named_wasm,_ts_language_type_is_visible_wasm,_ts_language_metadata_wasm,_ts_language_supertypes_wasm,_ts_language_subtypes_wasm,_ts_tree_root_node_wasm,_ts_tree_root_node_with_offset_wasm,_ts_tree_edit_wasm,_ts_tree_included_ranges_wasm,_ts_tree_get_changed_ranges_wasm,_ts_tree_cursor_new_wasm,_ts_tree_cursor_copy_wasm,_ts_tree_cursor_delete_wasm,_ts_tree_cursor_reset_wasm,_ts_tree_cursor_reset_to_wasm,_ts_tree_cursor_goto_first_child_wasm,_ts_tree_cursor_goto_last_child_wasm,_ts_tree_cursor_goto_first_child_for_index_wasm,_ts_tree_cursor_goto_first_child_for_position_wasm,_ts_tree_cursor_goto_next_sibling_wasm,_ts_tree_cursor_goto_previous_sibling_wasm,_ts_tree_cursor_goto_descendant_wasm,_ts_tree_cursor_goto_parent_wasm,_ts_tree_cursor_current_node_type_id_wasm,_ts_tree_cursor_current_node_state_id_wasm,_ts_tree_cursor_current_node_is_named_wasm,_ts_tree_cursor_current_node_is_missing_wasm,_ts_tree_cursor_current_node_id_wasm,_ts_tree_cursor_start_position_wasm,_ts_tree_cursor_end_position_wasm,_ts_tree_cursor_start_index_wasm,_ts_tree_cursor_end_index_wasm,_ts_tree_cursor_current_field_id_wasm,_ts_tree_cursor_current_depth_wasm,_ts_tree_cursor_current_descendant_index_wasm,_ts_tree_cursor_current_node_wasm,_ts_node_symbol_wasm,_ts_node_field_name_for_child_wasm,_ts_node_field_name_for_named_child_wasm,_ts_node_children_by_field_id_wasm,_ts_node_first_child_for_byte_wasm,_ts_node_first_named_child_for_byte_wasm,_ts_node_grammar_symbol_wasm,_ts_node_child_count_wasm,_ts_node_named_child_count_wasm,_ts_node_child_wasm,_ts_node_named_child_wasm,_ts_node_child_by_field_id_wasm,_ts_node_next_sibling_wasm,_ts_node_prev_sibling_wasm,_ts_node_next_named_sibling_wasm,_ts_node_prev_named_sibling_wasm,_ts_node_descendant_count_wasm,_ts_node_parent_wasm,_ts_node_child_with_descendant_wasm,_ts_node_descendant_for_index_wasm,_ts_node_named_descendant_for_index_wasm,_ts_node_descendant_for_position_wasm,_ts_node_named_descendant_for_position_wasm,_ts_node_start_point_wasm,_ts_node_end_point_wasm,_ts_node_start_index_wasm,_ts_node_end_index_wasm,_ts_node_to_string_wasm,_ts_node_children_wasm,_ts_node_named_children_wasm,_ts_node_descendants_of_type_wasm,_ts_node_is_named_wasm,_ts_node_has_changes_wasm,_ts_node_has_error_wasm,_ts_node_is_error_wasm,_ts_node_is_missing_wasm,_ts_node_is_extra_wasm,_ts_node_parse_state_wasm,_ts_node_next_parse_state_wasm,_ts_query_matches_wasm,_ts_query_captures_wasm,_memset,_memcpy,_memmove,_iswalpha,_iswblank,_iswdigit,_iswlower,_iswupper,_iswxdigit,_memchr,_strlen,_strcmp,_strncat,_strncpy,_towlower,_towupper,_setThrew,__emscripten_stack_restore,__emscripten_stack_alloc,_emscripten_stack_get_current,___wasm_apply_data_relocs,wasmExports,Module=moduleArg,ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="u">typeof WorkerGlobalScope,ENVIRONMENT_IS_NODE="object"==typeof process&&void 0;if(ENVIRONMENT_IS_NODE){let{createRequire}=await __webpack_require__.e(6358).then(__webpack_require__.t.bind(__webpack_require__,86358,19));var require=createRequire("file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js")}Module.currentQueryProgressCallback=null,Module.currentProgressCallback=null,Module.currentLogCallback=null,Module.currentParseCallback=null;var arguments_=[],thisProgram="./this.program",quit_=__name((e,t)=>{throw t},"quit_"),_scriptName="file:///home/runner/work/cockpit/cockpit/node_modules/web-tree-sitter/web-tree-sitter.js",scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(__name(locateFile,"locateFile"),ENVIRONMENT_IS_NODE){var fs=require("fs");_scriptName.startsWith("file:")&&(scriptDirectory=require("path").dirname(require("url").fileURLToPath(_scriptName))+"/"),readBinary=__name(e=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e)),"readBinary"),readAsync=__name(async(e,t=!0)=>(e=isFileURI(e)?new URL(e):e,fs.readFileSync(e,t?void 0:"utf8")),"readAsync"),process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=__name((e,t)=>{throw process.exitCode=e,t},"quit_")}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){try{scriptDirectory=new URL(".",_scriptName).href}catch{}ENVIRONMENT_IS_WORKER&&(readBinary=__name(e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)},"readBinary")),readAsync=__name(async e=>{if(isFileURI(e))return new Promise((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r(n.status)},n.onerror=r,n.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)},"readAsync")}var out=console.log.bind(console),err=console.error.bind(console),dynamicLibraries=[],ABORT=!1,isFileURI=__name(e=>e.startsWith("file://"),"isFileURI"),runtimeInitialized=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e),Module.HEAP64=HEAP64=new BigInt64Array(e),Module.HEAPU64=HEAPU64=new BigUint64Array(e),Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),LE_HEAP_UPDATE()}function initMemory(){if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var e=Module.INITIAL_MEMORY||0x2000000;wasmMemory=new WebAssembly.Memory({initial:e/65536,maximum:32768})}updateMemoryViews()}__name(updateMemoryViews,"updateMemoryViews"),__name(initMemory,"initMemory");var __RELOC_FUNCS__=[];function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(onPreRuns)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),wasmExports.__wasm_call_ctors(),callRuntimeCallbacks(onPostCtors)}function preMain(){}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(onPostRuns)}function abort(e){Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject?.(t),t}function findWasmBinary(){return Module.locateFile?locateFile("web-tree-sitter.wasm"):new __webpack_require__.U(__webpack_require__(76022)).href}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}async function getWasmBinary(e){if(!wasmBinary)try{var t=await readAsync(e);return new Uint8Array(t)}catch{}return getBinarySync(e)}async function instantiateArrayBuffer(e,t){try{var r=await getWasmBinary(e);return await WebAssembly.instantiate(r,t)}catch(e){err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}}async function instantiateAsync(e,t,r){if(!e&&!isFileURI(t)&&!ENVIRONMENT_IS_NODE)try{var n=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,r)}catch(e){err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation")}return instantiateArrayBuffer(t,r)}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}async function createWasm(){function e(e,t){wasmExports=relocateExports(wasmExports=e.exports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),assignWasmExports(wasmExports),wasmExports}function t(t){return e(t.instance,t.module)}__name(e,"receiveInstance"),__name(t,"receiveInstantiationResult");var r=getWasmImports();return Module.instantiateWasm?new Promise((t,n)=>{Module.instantiateWasm(r,(r,n)=>{t(e(r,n))})}):(wasmBinaryFile??=findWasmBinary(),t(await instantiateAsync(wasmBinary,wasmBinaryFile,r)))}__name(preRun,"preRun"),__name(initRuntime,"initRuntime"),__name(preMain,"preMain"),__name(postRun,"postRun"),__name(abort,"abort"),__name(findWasmBinary,"findWasmBinary"),__name(getBinarySync,"getBinarySync"),__name(getWasmBinary,"getWasmBinary"),__name(instantiateArrayBuffer,"instantiateArrayBuffer"),__name(instantiateAsync,"instantiateAsync"),__name(getWasmImports,"getWasmImports"),__name(createWasm,"createWasm");class ExitStatus{static{__name(this,"ExitStatus")}name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_ATOMICS_NATIVE_BYTE_ORDER=[],LE_HEAP_LOAD_F32=__name(e=>HEAP_DATA_VIEW.getFloat32(e,!0),"LE_HEAP_LOAD_F32"),LE_HEAP_LOAD_F64=__name(e=>HEAP_DATA_VIEW.getFloat64(e,!0),"LE_HEAP_LOAD_F64"),LE_HEAP_LOAD_I16=__name(e=>HEAP_DATA_VIEW.getInt16(e,!0),"LE_HEAP_LOAD_I16"),LE_HEAP_LOAD_I32=__name(e=>HEAP_DATA_VIEW.getInt32(e,!0),"LE_HEAP_LOAD_I32"),LE_HEAP_LOAD_I64=__name(e=>HEAP_DATA_VIEW.getBigInt64(e,!0),"LE_HEAP_LOAD_I64"),LE_HEAP_LOAD_U32=__name(e=>HEAP_DATA_VIEW.getUint32(e,!0),"LE_HEAP_LOAD_U32"),LE_HEAP_STORE_F32=__name((e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),"LE_HEAP_STORE_F32"),LE_HEAP_STORE_F64=__name((e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),"LE_HEAP_STORE_F64"),LE_HEAP_STORE_I16=__name((e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),"LE_HEAP_STORE_I16"),LE_HEAP_STORE_I32=__name((e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),"LE_HEAP_STORE_I32"),LE_HEAP_STORE_I64=__name((e,t)=>HEAP_DATA_VIEW.setBigInt64(e,t,!0),"LE_HEAP_STORE_I64"),LE_HEAP_STORE_U32=__name((e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),"LE_HEAP_STORE_U32"),callRuntimeCallbacks=__name(e=>{for(;e.length>0;)e.shift()(Module)},"callRuntimeCallbacks"),onPostRuns=[],addOnPostRun=__name(e=>onPostRuns.push(e),"addOnPostRun"),onPreRuns=[],addOnPreRun=__name(e=>onPreRuns.push(e),"addOnPreRun"),UTF8Decoder="u">typeof TextDecoder?new TextDecoder:void 0,findStringEnd=__name((e,t,r,n)=>{var i=t+r;if(n)return i;for(;e[t]&&!(t>=i);)++t;return t},"findStringEnd"),UTF8ArrayToString=__name((e,t=0,r,n)=>{var i=findStringEnd(e,t,r,n);if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,i));for(var s="";t<i;){var o=e[t++];if(!(128&o)){s+=String.fromCharCode(o);continue}var l=63&e[t++];if((224&o)==192){s+=String.fromCharCode((31&o)<<6|l);continue}var a=63&e[t++];if((o=(240&o)==224?(15&o)<<12|l<<6|a:(7&o)<<18|l<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(o);else{var u=o-65536;s+=String.fromCharCode(55296|u>>10,56320|1023&u)}}return s},"UTF8ArrayToString"),getDylinkMetadata=__name(e=>{var t=0,r=0;function n(){return e[t++]}function i(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function s(){var r=i();return t+=r,UTF8ArrayToString(e,t-r,r)}function o(){for(var e=i(),t=[];e--;)t.push(s());return t}function l(e,t){if(e)throw Error(t)}if(__name(n,"getU8"),__name(i,"getLEB"),__name(s,"getString"),__name(o,"getStringList"),__name(l,"failIf"),e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,"dylink.0");l(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{var u=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);l(0x6d736100!=u[0]&&6386541!=u[0],"need to see wasm magic number"),l(0!==e[8],"need the dylink section to be first"),t=9;var c=i();r=t+c,l("dylink.0"!==s())}for(var h={neededDynlibs:[],tlsExports:new Set,weakImports:new Set,runtimePaths:[]},d=1,p=2,f=3,m=4,g=5,_=256,y=3,k=1;t<r;){var b=n(),w=i();if(b===d)h.memorySize=i(),h.memoryAlign=i(),h.tableSize=i(),h.tableAlign=i();else if(b===p)h.neededDynlibs=o();else if(b===f)for(var x=i();x--;){var v=s(),C=i();C&_&&h.tlsExports.add(v)}else if(b===m)for(var x=i();x--;){s();var v=s(),C=i();(C&y)==k&&h.weakImports.add(v)}else b===g?h.runtimePaths=o():t+=w}return h},"getDylinkMetadata");function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16((e>>1)*2);case"i32":return LE_HEAP_LOAD_I32((e>>2)*4);case"i64":return LE_HEAP_LOAD_I64((e>>3)*8);case"float":return LE_HEAP_LOAD_F32((e>>2)*4);case"double":return LE_HEAP_LOAD_F64((e>>3)*8);case"*":return LE_HEAP_LOAD_U32((e>>2)*4);default:abort(`invalid type for getValue: ${t}`)}}__name(getValue,"getValue");var newDSO=__name((e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,void 0!=t&&(LDSO.loadedLibsByHandle[t]=n),n},"newDSO"),LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78240,alignMemory=__name((e,t)=>Math.ceil(e/t)*t,"alignMemory"),getMemory=__name(e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},"getMemory"),isInternalSym=__name(e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),"isInternalSym"),uleb128EncodeWithLen=__name(e=>{let t=e.length;return[t%128|128,t>>7,...e]},"uleb128EncodeWithLen"),wasmTypeCodes={i:127,p:127,j:126,f:125,d:124,e:111},generateTypePack=__name(e=>uleb128EncodeWithLen(Array.from(e,e=>wasmTypeCodes[e])),"generateTypePack"),convertJsFunctionToWasm=__name((e,t)=>{var r=Uint8Array.of(0,97,115,109,1,0,0,0,1,...uleb128EncodeWithLen([1,96,...generateTypePack(t.slice(1)),...generateTypePack("v"===t[0]?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),n=new WebAssembly.Module(r);return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},"convertJsFunctionToWasm"),wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:31,element:"anyfunc"}),getWasmTableEntry=__name(e=>{var t=wasmTableMirror[e];return t||(wasmTableMirror[e]=t=wasmTable.get(e)),t},"getWasmTableEntry"),updateTableMap=__name((e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},"updateTableMap"),getFunctionAddress=__name(e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),"getFunctionAddress"),freeTableIndexes=[],getEmptyTableSlot=__name(()=>freeTableIndexes.length?freeTableIndexes.pop():wasmTable.grow(1),"getEmptyTableSlot"),setWasmTableEntry=__name((e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},"setWasmTableEntry"),addFunction=__name((e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;setWasmTableEntry(n,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,n),n},"addFunction"),updateGOT=__name((e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},"updateGOT"),relocateExports=__name((e,t,r)=>{var n={};for(var i in e){var s=e[i];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[i]=s}return updateGOT(n,r),n},"relocateExports"),isSymbolDefined=__name(e=>{var t=wasmImports[e];return!!t&&!t.stub},"isSymbolDefined"),dynCall=__name((e,t,r=[],n=!1)=>{var i=getWasmTableEntry(t)(...r);function s(e){return e}return __name(s,"convert"),s(i)},"dynCall"),stackSave=__name(()=>_emscripten_stack_get_current(),"stackSave"),stackRestore=__name(e=>__emscripten_stack_restore(e),"stackRestore"),createInvokeFunction=__name(e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(t){if(stackRestore(n),t!==t+0)throw t;if(_setThrew(1,0),"j"==e[0])return 0n}},"createInvokeFunction"),resolveGlobalSymbol=__name((e,t=!1)=>{var r;return isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},"resolveGlobalSymbol"),onPostCtors=[],addOnPostCtor=__name(e=>onPostCtors.push(e),"addOnPostCtor"),UTF8ToString=__name((e,t,r)=>e?UTF8ArrayToString(HEAPU8,e,t,r):"","UTF8ToString"),loadWebAssemblyModule=__name((binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var moduleExports,memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32((handle+12>>2)*4,memoryBase),LE_HEAP_STORE_I32((handle+16>>2)*4,metadata.memorySize),LE_HEAP_STORE_U32((handle+20>>2)*4,tableBase),LE_HEAP_STORE_I32((handle+24>>2)*4,metadata.tableSize)),metadata.tableSize&&wasmTable.grow(metadata.tableSize),__name(resolveSymbol,"resolveSymbol");var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub){var r;return wasmImports[t]}return t in e||(e[t]=(...e)=>(r||=resolveSymbol(t))(...e)),e[t]}},proxy=new Proxy({},proxyHandler);currentModuleWeakSymbols=metadata.weakImports;var info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16;arity++)if(-1!=body.indexOf("$"+arity))args.push("$"+arity);else break;args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),__name(addEmAsm,"addEmAsm"),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(",")){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in __name(addEmJs,"addEmJs"),moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():addOnPostCtor(init)),moduleExports}if(__name(postInstantiation,"postInstantiation"),flags.loadAsync)return(async()=>{var e;return binary instanceof WebAssembly.Module?e=new WebAssembly.Instance(binary,info):{module:binary,instance:e}=await WebAssembly.instantiate(binary,info),postInstantiation(binary,e)})();var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return(__name(loadModule,"loadModule"),flags={...flags,rpath:{parentLibPath:libName,paths:metadata.runtimePaths}},flags.loadAsync)?metadata.neededDynlibs.reduce((e,t)=>e.then(()=>loadDynamicLibrary(t,flags,localScope)),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach(e=>loadDynamicLibrary(e,flags,localScope)),loadModule())},"loadWebAssemblyModule"),mergeLibSymbols=__name((e,t)=>{for(var[r,n]of Object.entries(e)){let e=__name(e=>{isSymbolDefined(e)||(wasmImports[e]=n)},"setImport");e(r);let t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main")}},"mergeLibSymbols"),asyncLoad=__name(async e=>new Uint8Array(await readAsync(e)),"asyncLoad");function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var i=LDSO.loadedLibsByName[e];if(i)return t.global?i.global||(i.global=!0,mergeLibSymbols(i.exports,e)):r&&Object.assign(r,i.exports),t.nodelete&&i.refcount!==1/0&&(i.refcount=1/0),i.refcount++,n&&(LDSO.loadedLibsByHandle[n]=i),!t.loadAsync||Promise.resolve(!0);function s(){if(n){var r=LE_HEAP_LOAD_U32((n+28>>2)*4),i=LE_HEAP_LOAD_U32((n+32>>2)*4);if(r&&i){var s=HEAP8.slice(r,r+i);return t.loadAsync?Promise.resolve(s):s}}var o=locateFile(e);if(t.loadAsync)return asyncLoad(o);if(!readBinary)throw Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?s().then(i=>loadWebAssemblyModule(i,t,e,r,n)):loadWebAssemblyModule(s(),t,e,r,n)}function l(t){i.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),i.exports=t}return((i=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,i.global=t.global,__name(s,"loadLibData"),__name(o,"getExports"),__name(l,"moduleLoaded"),t.loadAsync)?o().then(e=>(l(e),!0)):(l(o()),!0)}__name(loadDynamicLibrary,"loadDynamicLibrary");var reportUndefinedSymbols=__name(()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else if("number"==typeof r)t.value=r;else throw Error(`bad export type for '${e}': ${typeof r}`)}},"reportUndefinedSymbols"),runDependencies=0,dependenciesFulfilled=null,removeRunDependency=__name(e=>{if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}},"removeRunDependency"),addRunDependency=__name(e=>{runDependencies++,Module.monitorRunDependencies?.(runDependencies)},"addRunDependency"),loadDylibs=__name(async()=>{if(!dynamicLibraries.length)return void reportUndefinedSymbols();for(var e of(addRunDependency("loadDylibs"),dynamicLibraries))await loadDynamicLibrary(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0});reportUndefinedSymbols(),removeRunDependency("loadDylibs")},"loadDylibs"),noExitRuntime=!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16((e>>1)*2,t);break;case"i32":LE_HEAP_STORE_I32((e>>2)*4,t);break;case"i64":LE_HEAP_STORE_I64((e>>3)*8,BigInt(t));break;case"float":LE_HEAP_STORE_F32((e>>2)*4,t);break;case"double":LE_HEAP_STORE_F64((e>>3)*8,t);break;case"*":LE_HEAP_STORE_U32((e>>2)*4,t);break;default:abort(`invalid type for setValue: ${r}`)}}__name(setValue,"setValue");var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=78240,___stack_low=12704,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78240),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=__name(()=>abort(""),"__abort_js");__abort_js.sig="v";var getHeapMax=__name(()=>0x80000000,"getHeapMax"),growMemory=__name(e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},"growMemory"),_emscripten_resize_heap=__name(e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);if(i=Math.min(i,e+0x6000000),growMemory(Math.min(r,alignMemory(Math.max(e,i),65536))))return!0}return!1},"_emscripten_resize_heap");_emscripten_resize_heap.sig="ip";var _fd_close=__name(e=>52,"_fd_close");_fd_close.sig="ii";var INT53_MAX=0x20000000000000,INT53_MIN=-0x20000000000000,bigintToI53Checked=__name(e=>e<INT53_MIN||e>INT53_MAX?NaN:Number(e),"bigintToI53Checked");function _fd_seek(e,t,r,n){return t=bigintToI53Checked(t),70}__name(_fd_seek,"_fd_seek"),_fd_seek.sig="iijip";var printCharBuffers=[null,[],[]],printChar=__name((e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r)),r.length=0):r.push(t)},"printChar"),_fd_write=__name((e,t,r,n)=>{for(var i=0,s=0;s<r;s++){var o=LE_HEAP_LOAD_U32((t>>2)*4),l=LE_HEAP_LOAD_U32((t+4>>2)*4);t+=8;for(var a=0;a<l;a++)printChar(e,HEAPU8[o+a]);i+=l}return LE_HEAP_STORE_U32((n>>2)*4,i),0},"_fd_write");function _tree_sitter_log_callback(e,t){if(Module.currentLogCallback){let r=UTF8ToString(t);Module.currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,i){let s=10240,o=Module.currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(i,o.length,"i32"),stringToUTF16(o,e,s)):setValue(i,0,"i32")}function _tree_sitter_progress_callback(e,t){return!!Module.currentProgressCallback&&Module.currentProgressCallback({currentOffset:e,hasError:t})}function _tree_sitter_query_progress_callback(e){return!!Module.currentQueryProgressCallback&&Module.currentQueryProgressCallback({currentOffset:e})}_fd_write.sig="iippp",__name(_tree_sitter_log_callback,"_tree_sitter_log_callback"),__name(_tree_sitter_parse_callback,"_tree_sitter_parse_callback"),__name(_tree_sitter_progress_callback,"_tree_sitter_progress_callback"),__name(_tree_sitter_query_progress_callback,"_tree_sitter_query_progress_callback");var runtimeKeepaliveCounter=0,keepRuntimeAlive=__name(()=>noExitRuntime||runtimeKeepaliveCounter>0,"keepRuntimeAlive"),_proc_exit=__name(e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))},"_proc_exit");_proc_exit.sig="vi";var exitJS=__name((e,t)=>{EXITSTATUS=e,_proc_exit(e)},"exitJS"),handleException=__name(e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},"handleException"),lengthBytesUTF8=__name(e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},"lengthBytesUTF8"),stringToUTF8Array=__name((e,t,r,n)=>{if(!(n>0))return 0;for(var i=r,s=r+n-1,o=0;o<e.length;++o){var l=e.codePointAt(o);if(l<=127){if(r>=s)break;t[r++]=l}else if(l<=2047){if(r+1>=s)break;t[r++]=192|l>>6,t[r++]=128|63&l}else if(l<=65535){if(r+2>=s)break;t[r++]=224|l>>12,t[r++]=128|l>>6&63,t[r++]=128|63&l}else{if(r+3>=s)break;t[r++]=240|l>>18,t[r++]=128|l>>12&63,t[r++]=128|l>>6&63,t[r++]=128|63&l,o++}}return t[r]=0,r-i},"stringToUTF8Array"),stringToUTF8=__name((e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),"stringToUTF8"),stackAlloc=__name(e=>__emscripten_stack_alloc(e),"stackAlloc"),stringToUTF8OnStack=__name(e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},"stringToUTF8OnStack"),AsciiToString=__name(e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},"AsciiToString"),stringToUTF16=__name((e,t,r)=>{if((r??=0x7fffffff)<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,s=0;s<i;++s)LE_HEAP_STORE_I16((t>>1)*2,e.charCodeAt(s)),t+=2;return LE_HEAP_STORE_I16((t>>1)*2,0),t-n},"stringToUTF16");function LE_HEAP_UPDATE(){HEAPU16.unsigned=e=>65535&e,HEAPU32.unsigned=e=>e>>>0}if(LE_ATOMICS_NATIVE_BYTE_ORDER=1===new Int8Array(new Int16Array([1]).buffer)[0]?[e=>e,e=>e,void 0,e=>e]:[e=>e,e=>((65280&e)<<8|(255&e)<<24)>>16,void 0,e=>e>>24&255|e>>8&65280|(65280&e)<<8|(255&e)<<24],__name(LE_HEAP_UPDATE,"LE_HEAP_UPDATE"),initMemory(),Module.noExitRuntime&&(noExitRuntime=Module.noExitRuntime),Module.print&&(out=Module.print),Module.printErr&&(err=Module.printErr),Module.dynamicLibraries&&(dynamicLibraries=Module.dynamicLibraries),Module.wasmBinary&&(wasmBinary=Module.wasmBinary),Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.shift()();Module.setValue=setValue,Module.getValue=getValue,Module.UTF8ToString=UTF8ToString,Module.stringToUTF8=stringToUTF8,Module.lengthBytesUTF8=lengthBytesUTF8,Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,Module.loadWebAssemblyModule=loadWebAssemblyModule,Module.LE_HEAP_STORE_I64=LE_HEAP_STORE_I64;var ASM_CONSTS={};function assignWasmExports(e){Module._malloc=_malloc=e.malloc,Module._calloc=_calloc=e.calloc,Module._realloc=_realloc=e.realloc,Module._free=_free=e.free,Module._ts_range_edit=_ts_range_edit=e.ts_range_edit,Module._memcmp=_memcmp=e.memcmp,Module._ts_language_symbol_count=_ts_language_symbol_count=e.ts_language_symbol_count,Module._ts_language_state_count=_ts_language_state_count=e.ts_language_state_count,Module._ts_language_abi_version=_ts_language_abi_version=e.ts_language_abi_version,Module._ts_language_name=_ts_language_name=e.ts_language_name,Module._ts_language_field_count=_ts_language_field_count=e.ts_language_field_count,Module._ts_language_next_state=_ts_language_next_state=e.ts_language_next_state,Module._ts_language_symbol_name=_ts_language_symbol_name=e.ts_language_symbol_name,Module._ts_language_symbol_for_name=_ts_language_symbol_for_name=e.ts_language_symbol_for_name,Module._strncmp=_strncmp=e.strncmp,Module._ts_language_symbol_type=_ts_language_symbol_type=e.ts_language_symbol_type,Module._ts_language_field_name_for_id=_ts_language_field_name_for_id=e.ts_language_field_name_for_id,Module._ts_lookahead_iterator_new=_ts_lookahead_iterator_new=e.ts_lookahead_iterator_new,Module._ts_lookahead_iterator_delete=_ts_lookahead_iterator_delete=e.ts_lookahead_iterator_delete,Module._ts_lookahead_iterator_reset_state=_ts_lookahead_iterator_reset_state=e.ts_lookahead_iterator_reset_state,Module._ts_lookahead_iterator_reset=_ts_lookahead_iterator_reset=e.ts_lookahead_iterator_reset,Module._ts_lookahead_iterator_next=_ts_lookahead_iterator_next=e.ts_lookahead_iterator_next,Module._ts_lookahead_iterator_current_symbol=_ts_lookahead_iterator_current_symbol=e.ts_lookahead_iterator_current_symbol,Module._ts_point_edit=_ts_point_edit=e.ts_point_edit,Module._ts_parser_delete=_ts_parser_delete=e.ts_parser_delete,Module._ts_parser_reset=_ts_parser_reset=e.ts_parser_reset,Module._ts_parser_set_language=_ts_parser_set_language=e.ts_parser_set_language,Module._ts_parser_set_included_ranges=_ts_parser_set_included_ranges=e.ts_parser_set_included_ranges,Module._ts_query_new=_ts_query_new=e.ts_query_new,Module._ts_query_delete=_ts_query_delete=e.ts_query_delete,Module._iswspace=_iswspace=e.iswspace,Module._iswalnum=_iswalnum=e.iswalnum,Module._ts_query_pattern_count=_ts_query_pattern_count=e.ts_query_pattern_count,Module._ts_query_capture_count=_ts_query_capture_count=e.ts_query_capture_count,Module._ts_query_string_count=_ts_query_string_count=e.ts_query_string_count,Module._ts_query_capture_name_for_id=_ts_query_capture_name_for_id=e.ts_query_capture_name_for_id,Module._ts_query_capture_quantifier_for_id=_ts_query_capture_quantifier_for_id=e.ts_query_capture_quantifier_for_id,Module._ts_query_string_value_for_id=_ts_query_string_value_for_id=e.ts_query_string_value_for_id,Module._ts_query_predicates_for_pattern=_ts_query_predicates_for_pattern=e.ts_query_predicates_for_pattern,Module._ts_query_start_byte_for_pattern=_ts_query_start_byte_for_pattern=e.ts_query_start_byte_for_pattern,Module._ts_query_end_byte_for_pattern=_ts_query_end_byte_for_pattern=e.ts_query_end_byte_for_pattern,Module._ts_query_is_pattern_rooted=_ts_query_is_pattern_rooted=e.ts_query_is_pattern_rooted,Module._ts_query_is_pattern_non_local=_ts_query_is_pattern_non_local=e.ts_query_is_pattern_non_local,Module._ts_query_is_pattern_guaranteed_at_step=_ts_query_is_pattern_guaranteed_at_step=e.ts_query_is_pattern_guaranteed_at_step,Module._ts_query_disable_capture=_ts_query_disable_capture=e.ts_query_disable_capture,Module._ts_query_disable_pattern=_ts_query_disable_pattern=e.ts_query_disable_pattern,Module._ts_tree_copy=_ts_tree_copy=e.ts_tree_copy,Module._ts_tree_delete=_ts_tree_delete=e.ts_tree_delete,Module._ts_init=_ts_init=e.ts_init,Module._ts_parser_new_wasm=_ts_parser_new_wasm=e.ts_parser_new_wasm,Module._ts_parser_enable_logger_wasm=_ts_parser_enable_logger_wasm=e.ts_parser_enable_logger_wasm,Module._ts_parser_parse_wasm=_ts_parser_parse_wasm=e.ts_parser_parse_wasm,Module._ts_parser_included_ranges_wasm=_ts_parser_included_ranges_wasm=e.ts_parser_included_ranges_wasm,Module._ts_language_type_is_named_wasm=_ts_language_type_is_named_wasm=e.ts_language_type_is_named_wasm,Module._ts_language_type_is_visible_wasm=_ts_language_type_is_visible_wasm=e.ts_language_type_is_visible_wasm,Module._ts_language_metadata_wasm=_ts_language_metadata_wasm=e.ts_language_metadata_wasm,Module._ts_language_supertypes_wasm=_ts_language_supertypes_wasm=e.ts_language_supertypes_wasm,Module._ts_language_subtypes_wasm=_ts_language_subtypes_wasm=e.ts_language_subtypes_wasm,Module._ts_tree_root_node_wasm=_ts_tree_root_node_wasm=e.ts_tree_root_node_wasm,Module._ts_tree_root_node_with_offset_wasm=_ts_tree_root_node_with_offset_wasm=e.ts_tree_root_node_with_offset_wasm,Module._ts_tree_edit_wasm=_ts_tree_edit_wasm=e.ts_tree_edit_wasm,Module._ts_tree_included_ranges_wasm=_ts_tree_included_ranges_wasm=e.ts_tree_included_ranges_wasm,Module._ts_tree_get_changed_ranges_wasm=_ts_tree_get_changed_ranges_wasm=e.ts_tree_get_changed_ranges_wasm,Module._ts_tree_cursor_new_wasm=_ts_tree_cursor_new_wasm=e.ts_tree_cursor_new_wasm,Module._ts_tree_cursor_copy_wasm=_ts_tree_cursor_copy_wasm=e.ts_tree_cursor_copy_wasm,Module._ts_tree_cursor_delete_wasm=_ts_tree_cursor_delete_wasm=e.ts_tree_cursor_delete_wasm,Module._ts_tree_cursor_reset_wasm=_ts_tree_cursor_reset_wasm=e.ts_tree_cursor_reset_wasm,Module._ts_tree_cursor_reset_to_wasm=_ts_tree_cursor_reset_to_wasm=e.ts_tree_cursor_reset_to_wasm,Module._ts_tree_cursor_goto_first_child_wasm=_ts_tree_cursor_goto_first_child_wasm=e.ts_tree_cursor_goto_first_child_wasm,Module._ts_tree_cursor_goto_last_child_wasm=_ts_tree_cursor_goto_last_child_wasm=e.ts_tree_cursor_goto_last_child_wasm,Module._ts_tree_cursor_goto_first_child_for_index_wasm=_ts_tree_cursor_goto_first_child_for_index_wasm=e.ts_tree_cursor_goto_first_child_for_index_wasm,Module._ts_tree_cursor_goto_first_child_for_position_wasm=_ts_tree_cursor_goto_first_child_for_position_wasm=e.ts_tree_cursor_goto_first_child_for_position_wasm,Module._ts_tree_cursor_goto_next_sibling_wasm=_ts_tree_cursor_goto_next_sibling_wasm=e.ts_tree_cursor_goto_next_sibling_wasm,Module._ts_tree_cursor_goto_previous_sibling_wasm=_ts_tree_cursor_goto_previous_sibling_wasm=e.ts_tree_cursor_goto_previous_sibling_wasm,Module._ts_tree_cursor_goto_descendant_wasm=_ts_tree_cursor_goto_descendant_wasm=e.ts_tree_cursor_goto_descendant_wasm,Module._ts_tree_cursor_goto_parent_wasm=_ts_tree_cursor_goto_parent_wasm=e.ts_tree_cursor_goto_parent_wasm,Module._ts_tree_cursor_current_node_type_id_wasm=_ts_tree_cursor_current_node_type_id_wasm=e.ts_tree_cursor_current_node_type_id_wasm,Module._ts_tree_cursor_current_node_state_id_wasm=_ts_tree_cursor_current_node_state_id_wasm=e.ts_tree_cursor_current_node_state_id_wasm,Module._ts_tree_cursor_current_node_is_named_wasm=_ts_tree_cursor_current_node_is_named_wasm=e.ts_tree_cursor_current_node_is_named_wasm,Module._ts_tree_cursor_current_node_is_missing_wasm=_ts_tree_cursor_current_node_is_missing_wasm=e.ts_tree_cursor_current_node_is_missing_wasm,Module._ts_tree_cursor_current_node_id_wasm=_ts_tree_cursor_current_node_id_wasm=e.ts_tree_cursor_current_node_id_wasm,Module._ts_tree_cursor_start_position_wasm=_ts_tree_cursor_start_position_wasm=e.ts_tree_cursor_start_position_wasm,Module._ts_tree_cursor_end_position_wasm=_ts_tree_cursor_end_position_wasm=e.ts_tree_cursor_end_position_wasm,Module._ts_tree_cursor_start_index_wasm=_ts_tree_cursor_start_index_wasm=e.ts_tree_cursor_start_index_wasm,Module._ts_tree_cursor_end_index_wasm=_ts_tree_cursor_end_index_wasm=e.ts_tree_cursor_end_index_wasm,Module._ts_tree_cursor_current_field_id_wasm=_ts_tree_cursor_current_field_id_wasm=e.ts_tree_cursor_current_field_id_wasm,Module._ts_tree_cursor_current_depth_wasm=_ts_tree_cursor_current_depth_wasm=e.ts_tree_cursor_current_depth_wasm,Module._ts_tree_cursor_current_descendant_index_wasm=_ts_tree_cursor_current_descendant_index_wasm=e.ts_tree_cursor_current_descendant_index_wasm,Module._ts_tree_cursor_current_node_wasm=_ts_tree_cursor_current_node_wasm=e.ts_tree_cursor_current_node_wasm,Module._ts_node_symbol_wasm=_ts_node_symbol_wasm=e.ts_node_symbol_wasm,Module._ts_node_field_name_for_child_wasm=_ts_node_field_name_for_child_wasm=e.ts_node_field_name_for_child_wasm,Module._ts_node_field_name_for_named_child_wasm=_ts_node_field_name_for_named_child_wasm=e.ts_node_field_name_for_named_child_wasm,Module._ts_node_children_by_field_id_wasm=_ts_node_children_by_field_id_wasm=e.ts_node_children_by_field_id_wasm,Module._ts_node_first_child_for_byte_wasm=_ts_node_first_child_for_byte_wasm=e.ts_node_first_child_for_byte_wasm,Module._ts_node_first_named_child_for_byte_wasm=_ts_node_first_named_child_for_byte_wasm=e.ts_node_first_named_child_for_byte_wasm,Module._ts_node_grammar_symbol_wasm=_ts_node_grammar_symbol_wasm=e.ts_node_grammar_symbol_wasm,Module._ts_node_child_count_wasm=_ts_node_child_count_wasm=e.ts_node_child_count_wasm,Module._ts_node_named_child_count_wasm=_ts_node_named_child_count_wasm=e.ts_node_named_child_count_wasm,Module._ts_node_child_wasm=_ts_node_child_wasm=e.ts_node_child_wasm,Module._ts_node_named_child_wasm=_ts_node_named_child_wasm=e.ts_node_named_child_wasm,Module._ts_node_child_by_field_id_wasm=_ts_node_child_by_field_id_wasm=e.ts_node_child_by_field_id_wasm,Module._ts_node_next_sibling_wasm=_ts_node_next_sibling_wasm=e.ts_node_next_sibling_wasm,Module._ts_node_prev_sibling_wasm=_ts_node_prev_sibling_wasm=e.ts_node_prev_sibling_wasm,Module._ts_node_next_named_sibling_wasm=_ts_node_next_named_sibling_wasm=e.ts_node_next_named_sibling_wasm,Module._ts_node_prev_named_sibling_wasm=_ts_node_prev_named_sibling_wasm=e.ts_node_prev_named_sibling_wasm,Module._ts_node_descendant_count_wasm=_ts_node_descendant_count_wasm=e.ts_node_descendant_count_wasm,Module._ts_node_parent_wasm=_ts_node_parent_wasm=e.ts_node_parent_wasm,Module._ts_node_child_with_descendant_wasm=_ts_node_child_with_descendant_wasm=e.ts_node_child_with_descendant_wasm,Module._ts_node_descendant_for_index_wasm=_ts_node_descendant_for_index_wasm=e.ts_node_descendant_for_index_wasm,Module._ts_node_named_descendant_for_index_wasm=_ts_node_named_descendant_for_index_wasm=e.ts_node_named_descendant_for_index_wasm,Module._ts_node_descendant_for_position_wasm=_ts_node_descendant_for_position_wasm=e.ts_node_descendant_for_position_wasm,Module._ts_node_named_descendant_for_position_wasm=_ts_node_named_descendant_for_position_wasm=e.ts_node_named_descendant_for_position_wasm,Module._ts_node_start_point_wasm=_ts_node_start_point_wasm=e.ts_node_start_point_wasm,Module._ts_node_end_point_wasm=_ts_node_end_point_wasm=e.ts_node_end_point_wasm,Module._ts_node_start_index_wasm=_ts_node_start_index_wasm=e.ts_node_start_index_wasm,Module._ts_node_end_index_wasm=_ts_node_end_index_wasm=e.ts_node_end_index_wasm,Module._ts_node_to_string_wasm=_ts_node_to_string_wasm=e.ts_node_to_string_wasm,Module._ts_node_children_wasm=_ts_node_children_wasm=e.ts_node_children_wasm,Module._ts_node_named_children_wasm=_ts_node_named_children_wasm=e.ts_node_named_children_wasm,Module._ts_node_descendants_of_type_wasm=_ts_node_descendants_of_type_wasm=e.ts_node_descendants_of_type_wasm,Module._ts_node_is_named_wasm=_ts_node_is_named_wasm=e.ts_node_is_named_wasm,Module._ts_node_has_changes_wasm=_ts_node_has_changes_wasm=e.ts_node_has_changes_wasm,Module._ts_node_has_error_wasm=_ts_node_has_error_wasm=e.ts_node_has_error_wasm,Module._ts_node_is_error_wasm=_ts_node_is_error_wasm=e.ts_node_is_error_wasm,Module._ts_node_is_missing_wasm=_ts_node_is_missing_wasm=e.ts_node_is_missing_wasm,Module._ts_node_is_extra_wasm=_ts_node_is_extra_wasm=e.ts_node_is_extra_wasm,Module._ts_node_parse_state_wasm=_ts_node_parse_state_wasm=e.ts_node_parse_state_wasm,Module._ts_node_next_parse_state_wasm=_ts_node_next_parse_state_wasm=e.ts_node_next_parse_state_wasm,Module._ts_query_matches_wasm=_ts_query_matches_wasm=e.ts_query_matches_wasm,Module._ts_query_captures_wasm=_ts_query_captures_wasm=e.ts_query_captures_wasm,Module._memset=_memset=e.memset,Module._memcpy=_memcpy=e.memcpy,Module._memmove=_memmove=e.memmove,Module._iswalpha=_iswalpha=e.iswalpha,Module._iswblank=_iswblank=e.iswblank,Module._iswdigit=_iswdigit=e.iswdigit,Module._iswlower=_iswlower=e.iswlower,Module._iswupper=_iswupper=e.iswupper,Module._iswxdigit=_iswxdigit=e.iswxdigit,Module._memchr=_memchr=e.memchr,Module._strlen=_strlen=e.strlen,Module._strcmp=_strcmp=e.strcmp,Module._strncat=_strncat=e.strncat,Module._strncpy=_strncpy=e.strncpy,Module._towlower=_towlower=e.towlower,Module._towupper=_towupper=e.towupper,_setThrew=e.setThrew,__emscripten_stack_restore=e._emscripten_stack_restore,__emscripten_stack_alloc=e._emscripten_stack_alloc,_emscripten_stack_get_current=e.emscripten_stack_get_current,___wasm_apply_data_relocs=e.__wasm_apply_data_relocs}__name(assignWasmExports,"assignWasmExports");var wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback,tree_sitter_progress_callback:_tree_sitter_progress_callback,tree_sitter_query_progress_callback:_tree_sitter_query_progress_callback};function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc((r+1)*4),i=n;e.forEach(e=>{LE_HEAP_STORE_U32((i>>2)*4,stringToUTF8OnStack(e)),i+=4}),LE_HEAP_STORE_U32((i>>2)*4,0);try{var s=t(r,n);return exitJS(s,!0),s}catch(e){return handleException(e)}}}function run(e=arguments_){if(runDependencies>0||(preRun(),runDependencies>0)){dependenciesFulfilled=run;return}function t(){if(Module.calledRun=!0,!ABORT){initRuntime(),readyPromiseResolve?.(Module),Module.onRuntimeInitialized?.();var t=Module.noInitialRun||!1;t||callMain(e),postRun()}}__name(t,"doRun"),Module.setStatus?(Module.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>Module.setStatus(""),1),t()},1)):t()}return __name(callMain,"callMain"),__name(run,"run"),wasmExports=await createWasm(),run(),moduleRtn=runtimeInitialized?Module:new Promise((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})}__name(Module2,"Module");var web_tree_sitter_default=Module2,Module3=null;async function initializeBinding(e){return Module3??=await web_tree_sitter_default(e)}function checkModule(){return!!Module3}__name(initializeBinding,"initializeBinding"),__name(checkModule,"checkModule");var Parser=class{static{__name(this,"Parser")}0=0;1=0;logCallback=null;language=null;static async init(e){setModule(await initializeBinding(e)),TRANSFER_BUFFER=C._ts_init(),LANGUAGE_VERSION=C.getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}constructor(){this.initialize()}initialize(){if(!checkModule())throw Error("cannot construct a Parser before calling `init()`");C._ts_parser_new_wasm(),this[0]=C.getValue(TRANSFER_BUFFER,"i32"),this[1]=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e)if(e.constructor===Language){t=e[0];let r=C._ts_language_abi_version(t);if(r<MIN_COMPATIBLE_VERSION||LANGUAGE_VERSION<r)throw Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${LANGUAGE_VERSION}.`);this.language=e}else throw Error("Argument must be a Language");else t=0,this.language=null;return C._ts_parser_set_language(this[0],t),this}parse(e,t,r){if("string"==typeof e)C.currentParseCallback=t=>e.slice(t);else if("function"==typeof e)C.currentParseCallback=e;else throw Error("Argument must be a string or a function");r?.progressCallback?C.currentProgressCallback=r.progressCallback:C.currentProgressCallback=null,this.logCallback?(C.currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(C.currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,i=0;if(r?.includedRanges){n=r.includedRanges.length;let e=i=C._calloc(n,SIZE_OF_RANGE);for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}let s=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,i,n);if(!s)return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,null;if(!this.language)throw Error("Parser must have a language to parse");let o=new Tree(INTERNAL,s,this.language,C.currentParseCallback);return C.currentParseCallback=null,C.currentLogCallback=null,C.currentProgressCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);let e=C.getValue(TRANSFER_BUFFER,"i32"),t=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}setLogger(e){if(e)if("function"!=typeof e)throw Error("Logger callback must be a function");else this.logCallback=e;else this.logCallback=null;return this}getLogger(){return this.logCallback}},PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,QUERY_WORD_REGEX=/[\w-]+/g,CaptureQuantifier={},isCaptureStep=__name(e=>"capture"===e.type,"isCaptureStep"),isStringStep=__name(e=>"string"===e.type,"isStringStep"),QueryErrorKind={Syntax:1,NodeName:2,FieldName:3,CaptureName:4,PatternStructure:5},QueryError=class _QueryError extends Error{constructor(e,t,r,n){super(_QueryError.formatMessage(e,t)),this.kind=e,this.info=t,this.index=r,this.length=n,this.name="QueryError"}static{__name(this,"QueryError")}static formatMessage(e,t){switch(e){case QueryErrorKind.NodeName:return`Bad node name '${t.word}'`;case QueryErrorKind.FieldName:return`Bad field name '${t.word}'`;case QueryErrorKind.CaptureName:return`Bad capture name @${t.word}`;case QueryErrorKind.PatternStructure:return`Bad pattern structure at offset ${t.suffix}`;case QueryErrorKind.Syntax:return`Bad syntax at offset ${t.suffix}`}}};function parseAnyPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}`);if(!isCaptureStep(e[1]))throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}"`);let i="eq?"===r||"any-eq?"===r,s=!r.startsWith("any-");if(isCaptureStep(e[2])){let r=e[1].name,o=e[2].name;n[t].push(e=>{let t=[],n=[];for(let i of e)i.name===r&&t.push(i.node),i.name===o&&n.push(i.node);let l=__name((e,t,r)=>r?e.text===t.text:e.text!==t.text,"compare");return s?t.every(e=>n.some(t=>l(e,t,i))):t.some(e=>n.some(t=>l(e,t,i)))})}else{let r=e[1].name,o=e[2].value,l=__name(e=>e.text===o,"matches"),a=__name(e=>e.text!==o,"doesNotMatch");n[t].push(e=>{let t=[];for(let n of e)n.name===r&&t.push(n.node);let n=i?l:a;return s?t.every(n):t.some(n)})}}function parseMatchPredicate(e,t,r,n){if(3!==e.length)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 2, got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);if("string"!==e[2].type)throw Error(`Second argument of \`#${r}\` predicate must be a string. Got @${e[2].name}.`);let i="match?"===r||"any-match?"===r,s=!r.startsWith("any-"),o=e[1].name,l=new RegExp(e[2].value);n[t].push(e=>{let t=[];for(let r of e)r.name===o&&t.push(r.node.text);let r=__name((e,t)=>t?l.test(e):!l.test(e),"test");return 0===t.length?!i:s?t.every(e=>r(e,i)):t.some(e=>r(e,i))})}function parseAnyOfPredicate(e,t,r,n){if(e.length<2)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected at least 1. Got ${e.length-1}.`);if("capture"!==e[1].type)throw Error(`First argument of \`#${r}\` predicate must be a capture. Got "${e[1].value}".`);let i="any-of?"===r,s=e[1].name,o=e.slice(2);if(!o.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let l=o.map(e=>e.value);n[t].push(e=>{let t=[];for(let r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!i:t.every(e=>l.includes(e))===i})}function parseIsPredicate(e,t,r,n,i){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#${r}\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error(`Arguments to \`#${r}\` predicate must be strings.".`);let s="is?"===r?n:i;s[t]||(s[t]={}),s[t][e[1].value]=e[2]?.value??null}function parseSetDirective(e,t,r){if(e.length<2||e.length>3)throw Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${e.length-1}.`);if(!e.every(isStringStep))throw Error('Arguments to `#set!` predicate must be strings.".');r[t]||(r[t]={}),r[t][e[1].value]=e[2]?.value??null}function parsePattern(e,t,r,n,i,s,o,l,a,u,c){if(t===PREDICATE_STEP_TYPE_CAPTURE){let e=n[r];s.push({type:"capture",name:e})}else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:i[r]});else if(s.length>0){if("string"!==s[0].type)throw Error("Predicates must begin with a literal value");let t=s[0].value;switch(t){case"any-not-eq?":case"not-eq?":case"any-eq?":case"eq?":parseAnyPredicate(s,e,t,o);break;case"any-not-match?":case"not-match?":case"any-match?":case"match?":parseMatchPredicate(s,e,t,o);break;case"not-any-of?":case"any-of?":parseAnyOfPredicate(s,e,t,o);break;case"is?":case"is-not?":parseIsPredicate(s,e,t,u,c);break;case"set!":parseSetDirective(s,e,a);break;default:l[e].push({operator:t,operands:s.slice(1)})}s.length=0}}__name(parseAnyPredicate,"parseAnyPredicate"),__name(parseMatchPredicate,"parseMatchPredicate"),__name(parseAnyOfPredicate,"parseAnyOfPredicate"),__name(parseIsPredicate,"parseIsPredicate"),__name(parseSetDirective,"parseSetDirective"),__name(parsePattern,"parsePattern");var Query=class{static{__name(this,"Query")}0=0;exceededMatchLimit;textPredicates;captureNames;captureQuantifiers;predicates;setProperties;assertedProperties;refutedProperties;matchLimit;constructor(e,t){const r=C.lengthBytesUTF8(t),n=C._malloc(r+1);C.stringToUTF8(t,n,r+1);const i=C._ts_query_new(e[0],n,r,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!i){const e=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=C.getValue(TRANSFER_BUFFER,"i32"),i=C.UTF8ToString(n,r).length,s=t.slice(i,i+100).split("\n")[0],o=s.match(QUERY_WORD_REGEX)?.[0]??"";switch(C._free(n),e){case QueryErrorKind.Syntax:throw new QueryError(QueryErrorKind.Syntax,{suffix:`${i}: '${s}'...`},i,0);case QueryErrorKind.NodeName:case QueryErrorKind.FieldName:case QueryErrorKind.CaptureName:throw new QueryError(e,{word:o},i,o.length);case QueryErrorKind.PatternStructure:throw new QueryError(e,{suffix:`${i}: '${s}'...`},i,0)}}const s=C._ts_query_string_count(i),o=C._ts_query_capture_count(i),l=C._ts_query_pattern_count(i),a=Array(o),u=Array(l),c=Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");a[e]=C.UTF8ToString(t,r)}for(let e=0;e<l;e++){const t=Array(o);for(let r=0;r<o;r++){const n=C._ts_query_capture_quantifier_for_id(i,e,r);t[r]=n}u[e]=t}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");c[e]=C.UTF8ToString(t,r)}const h=Array(l),d=Array(l),p=Array(l),f=Array(l),m=Array(l);for(let e=0;e<l;e++){const t=C._ts_query_predicates_for_pattern(i,e,TRANSFER_BUFFER),r=C.getValue(TRANSFER_BUFFER,"i32");f[e]=[],m[e]=[];const n=[];let s=t;for(let t=0;t<r;t++){const t=C.getValue(s,"i32");s+=SIZE_OF_INT;const r=C.getValue(s,"i32");s+=SIZE_OF_INT,parsePattern(e,t,r,a,c,n,m,f,h,d,p)}Object.freeze(m[e]),Object.freeze(f[e]),Object.freeze(h[e]),Object.freeze(d[e]),Object.freeze(p[e])}C._free(n),this[0]=i,this.captureNames=a,this.captureQuantifiers=u,this.textPredicates=m,this.predicates=f,this.setProperties=h,this.assertedProperties=d,this.refutedProperties=p,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=Array(p);this.exceededMatchLimit=!!m;let _=0,y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=Array(r);if(y=unmarshalCaptures(this,e.tree,y,t,n),this.textPredicates[t].every(e=>e(n))){g[_]={patternIndex:t,captures:n};let e=this.setProperties[t];g[_].setProperties=e;let r=this.assertedProperties[t];g[_].assertedProperties=r;let i=this.refutedProperties[t];g[_].refutedProperties=i,_++}}return g.length=_,C._free(f),C.currentQueryProgressCallback=null,g}captures(e,t={}){let r=t.startPosition??ZERO_POINT,n=t.endPosition??ZERO_POINT,i=t.startIndex??0,s=t.endIndex??0,o=t.startContainingPosition??ZERO_POINT,l=t.endContainingPosition??ZERO_POINT,a=t.startContainingIndex??0,u=t.endContainingIndex??0,c=t.matchLimit??0xffffffff,h=t.maxStartDepth??0xffffffff,d=t.progressCallback;if("number"!=typeof c)throw Error("Arguments must be numbers");if(this.matchLimit=c,0!==s&&i>s)throw Error("`startIndex` cannot be greater than `endIndex`");if(n!==ZERO_POINT&&(r.row>n.row||r.row===n.row&&r.column>n.column))throw Error("`startPosition` cannot be greater than `endPosition`");if(0!==u&&a>u)throw Error("`startContainingIndex` cannot be greater than `endContainingIndex`");if(l!==ZERO_POINT&&(o.row>l.row||o.row===l.row&&o.column>l.column))throw Error("`startContainingPosition` cannot be greater than `endContainingPosition`");d&&(C.currentQueryProgressCallback=d),marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],r.row,r.column,n.row,n.column,i,s,o.row,o.column,l.row,l.column,a,u,c,h);let p=C.getValue(TRANSFER_BUFFER,"i32"),f=C.getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),m=C.getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),g=[];this.exceededMatchLimit=!!m;let _=[],y=f;for(let t=0;t<p;t++){let t=C.getValue(y,"i32");y+=SIZE_OF_INT;let r=C.getValue(y,"i32");y+=SIZE_OF_INT;let n=C.getValue(y,"i32");if(y+=SIZE_OF_INT,_.length=r,y=unmarshalCaptures(this,e.tree,y,t,_),this.textPredicates[t].every(e=>e(_))){let e=_[n];e.setProperties=this.setProperties[t],e.assertedProperties=this.assertedProperties[t],e.refutedProperties=this.refutedProperties[t],g.push(e)}}return C._free(f),C.currentQueryProgressCallback=null,g}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){let t=C.lengthBytesUTF8(e),r=C._malloc(t+1);C.stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}disablePattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);C._ts_query_disable_pattern(this[0],e)}didExceedMatchLimit(){return this.exceededMatchLimit}startIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_start_byte_for_pattern(this[0],e)}endIndexForPattern(e){if(e>=this.predicates.length)throw Error(`Pattern index is ${e} but the pattern count is ${this.predicates.length}`);return C._ts_query_end_byte_for_pattern(this[0],e)}patternCount(){return C._ts_query_pattern_count(this[0])}captureIndexForName(e){return this.captureNames.indexOf(e)}isPatternRooted(e){return 1===C._ts_query_is_pattern_rooted(this[0],e)}isPatternNonLocal(e){return 1===C._ts_query_is_pattern_non_local(this[0],e)}isPatternGuaranteedAtStep(e){return 1===C._ts_query_is_pattern_guaranteed_at_step(this[0],e)}}},15813:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],s=(0,n.A)("list",i)},20232:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],s=(0,n.A)("play",i)},20986:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(90425);let i=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],s=(0,n.A)("rotate-cw",i)},26932:(e,t,r)=>{"use strict";r.d(t,{o:()=>nB});var n,i,s,o,l,a,u,c={};r.r(c),r.d(c,{decode:()=>k,encode:()=>v,format:()=>C,parse:()=>z});var h={};r.r(h),r.d(h,{Any:()=>B,Cc:()=>q,Cf:()=>j,P:()=>P,S:()=>$,Z:()=>H});var d={};r.r(d),r.d(d,{arrayReplaceAt:()=>ep,asciiTrim:()=>ez,assign:()=>ed,escapeHtml:()=>eS,escapeRE:()=>eT,fromCodePoint:()=>em,has:()=>eh,isMdAsciiPunct:()=>eR,isPunctChar:()=>eI,isPunctCharCode:()=>eL,isSpace:()=>eD,isString:()=>eu,isValidEntityCode:()=>ef,isWhiteSpace:()=>eF,lib:()=>eP,normalizeReference:()=>eN,unescapeAll:()=>ex,unescapeMd:()=>ew});var p={};r.r(p),r.d(p,{parseLinkDestination:()=>eB,parseLinkLabel:()=>e$,parseLinkTitle:()=>eq});var f=r(82159),m=r(27050);let g={};function _(e){let t=g[e];if(t)return t;t=g[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function y(e,t){"string"!=typeof t&&(t=y.defaultChars);let r=_(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let s=parseInt(e.slice(n+1,n+3),16);if(s<128){t+=r[s];continue}if((224&s)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=s<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&s)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=s<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&s)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&o)==128){let e=s<<18&1835008|r<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}y.defaultChars=";/?:@&=+$,#",y.componentChars="";let k=y,b={};function w(e){let t=b[e];if(t)return t;t=b[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function x(e,t,r){"string"!=typeof t&&(r=t,t=x.defaultChars),void 0===r&&(r=!0);let n=w(t),i="";for(let t=0,s=e.length;t<s;t++){let o=e.charCodeAt(t);if(r&&37===o&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(o<128){i+=n[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<s){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}x.defaultChars=";/?:@&=+$,-_.!~*'()#",x.componentChars="-_.!~*'()";let v=x;function C(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function A(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let E=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,M=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),D=["/","?","#"],F=255,I=/^[+a-z0-9A-Z_-]{0,63}$/,L=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,R={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function O(e,t){if(e&&e instanceof A)return e;let r=new A;return r.parse(e,t),r}A.prototype.parse=function(e,t){let r,n,i,s=e;if(s=s.trim(),!t&&1===e.split("#").length){let e=M.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=E.exec(s);if(o&&(r=(o=o[0]).toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===s.substr(0,2))&&!(o&&R[o])&&(s=s.substr(2),this.slashes=!0),!R[o]&&(i||o&&!N[o])){let e,t,r=-1;for(let e=0;e<D.length;e++)-1!==(n=s.indexOf(D[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?s.lastIndexOf("@"):s.lastIndexOf("@",r))&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),r=-1;for(let e=0;e<T.length;e++)-1!==(n=s.indexOf(T[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=s.length),":"===s[r-1]&&r--;let i=s.slice(0,r);s=s.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(I)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(I)){let n=e.slice(0,t),i=e.slice(t+1),o=r.match(L);o&&(n.push(o[1]),i.unshift(o[2])),i.length&&(s=i.join(".")+s),this.hostname=n.join(".");break}}}}this.hostname.length>F&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let l=s.indexOf("#");-1!==l&&(this.hash=s.substr(l),s=s.slice(0,l));let a=s.indexOf("?");return -1!==a&&(this.search=s.substr(a),s=s.slice(0,a)),s&&(this.pathname=s),N[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},A.prototype.parseHost=function(e){let t=S.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let z=O,P=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,B=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=/[\0-\x1F\x7F-\x9F]/,j=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,H=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,V=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),U=new Uint16Array("Ȁaglq \x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),W=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),J=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function K(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!=(t=W.get(e))?t:e}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(i||(i={}));let G=32;function Z(e){return e>=i.ZERO&&e<=i.NINE}function X(e){return e>=i.UPPER_A&&e<=i.UPPER_F||e>=i.LOWER_A&&e<=i.LOWER_F}function Y(e){return e>=i.UPPER_A&&e<=i.UPPER_Z||e>=i.LOWER_A&&e<=i.LOWER_Z||Z(e)}function Q(e){return e===i.EQUALS||Y(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s||(s={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(o||(o={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class ee{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=o.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=o.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case o.EntityStart:if(e.charCodeAt(t)===i.NUM)return this.state=o.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=o.NamedEntity,this.stateNamedEntity(e,t);case o.NumericStart:return this.stateNumericStart(e,t);case o.NumericDecimal:return this.stateNumericDecimal(e,t);case o.NumericHex:return this.stateNumericHex(e,t);case o.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|G)===i.LOWER_X?(this.state=o.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=o.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!(Z(n)||X(n)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!Z(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===i.SEMI)this.consumed+=1;else if(this.decodeMode===l.Strict)return 0;return this.emitCodePoint(K(this.result),this.consumed),this.errors&&(e!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],o=(n&s.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=er(r,n,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l.Attribute&&(0===o||Q(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(o=((n=r[this.treeIndex])&s.VALUE_LENGTH)>>14)){if(a===i.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&s.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~s.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case o.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case o.NumericDecimal:return this.emitNumericEntity(0,2);case o.NumericHex:return this.emitNumericEntity(0,3);case o.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case o.EntityStart:return 0}}}function et(e){let t="",r=new ee(e,e=>t+=J(e));return function(e,n){let i=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),r.startEntity(n);let o=r.write(e,s+1);if(o<0){i=s+r.end();break}i=s+o,s=0===o?i+1:i}let o=t+e.slice(i);return t="",o}}function er(e,t,r,n){let i=(t&s.BRANCH_LENGTH)>>7,o=t&s.JUMP_TABLE;if(0===i)return 0!==o&&n===o?r:-1;if(o){let t=n-o;return t<0||t>=i?-1:e[r+t]-1}let l=r,a=l+i-1;for(;l<=a;){let t=l+a>>>1,r=e[t];if(r<n)l=t+1;else{if(!(r>n))return e[t+i];a=t-1}}return -1}let en=et(V);function ei(e,t=l.Legacy){return en(e,t)}function es(e){return en(e,l.Strict)}et(U);let eo=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function el(e,t){return function(r){let n,i=0,s="";for(;n=e.exec(r);)i!==n.index&&(s+=r.substring(i,n.index)),s+=t.get(n[0].charCodeAt(0)),i=n.index+1;return s+r.substring(i)}}function ea(e){return Object.prototype.toString.call(e)}function eu(e){return"[object String]"===ea(e)}String.prototype.codePointAt,el(/[&<>'"]/g,eo),el(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),el(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(a||(a={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(u||(u={}));let ec=Object.prototype.hasOwnProperty;function eh(e,t){return ec.call(e,t)}function ed(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function ep(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function ef(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function em(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let eg=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,e_=/&([a-z#][a-z0-9]{1,31});/gi,ey=RegExp(eg.source+"|"+e_.source,"gi"),ek=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function eb(e,t){if(35===t.charCodeAt(0)&&ek.test(t)){let r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ef(r)?em(r):e}let r=ei(e);return r!==e?r:e}function ew(e){return 0>e.indexOf("\\")?e:e.replace(eg,"$1")}function ex(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(ey,function(e,t,r){return t||eb(e,r)})}let ev=/[&<>"]/,eC=/[&<>"]/g,eA={"&":"&","<":"<",">":">",'"':"""};function eE(e){return eA[e]}function eS(e){return ev.test(e)?e.replace(eC,eE):e}let eM=/[.?*+^$[\]\\(){}|-]/g;function eT(e){return e.replace(eM,"\\$&")}function eD(e){switch(e){case 9:case 32:return!0}return!1}function eF(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function eI(e){return P.test(e)||$.test(e)}function eL(e){return eI(em(e))}function eR(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function eN(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function eO(e){return 32===e||9===e||10===e||13===e}function ez(e){let t=0;for(;t<e.length&&eO(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&eO(e.charCodeAt(r));r--);return e.slice(t,r+1)}let eP={mdurl:c,ucmicro:h};function e$(e,t,r){let n,i,s,o,l=e.posMax,a=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(93===(s=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===s){if(o===e.pos-1)n++;else if(r)return e.pos=a,-1}}let u=-1;return i&&(u=e.pos),e.pos=a,u}function eB(e,t,r){let n,i=t,s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){s.pos=i+1,s.str=ex(e.slice(t+1,i)),s.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return s}let o=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++o>32)return s;if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(s.str=ex(e.slice(t,i)),s.pos=i,s.ok=!0),s}function eq(e,t,r,n){let i,s=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(s>=r)return o;let n=e.charCodeAt(s);if(34!==n&&39!==n&&40!==n)return o;t++,s++,40===n&&(n=41),o.marker=n}for(;s<r;){if((i=e.charCodeAt(s))===o.marker)return o.pos=s+1,o.str+=ex(e.slice(t,s)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&s+1<r&&s++,s++}return o.can_continue=!0,o.str+=ex(e.slice(t,s)),o}let ej={};function eH(){this.rules=ed({},ej)}ej.code_inline=function(e,t,r,n,i){let s=e[t];return"<code"+i.renderAttrs(s)+">"+eS(s.content)+"</code>"},ej.code_block=function(e,t,r,n,i){let s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+eS(e[t].content)+"</code></pre>\n"},ej.fence=function(e,t,r,n,i){let s,o=e[t],l=o.info?ex(o.info).trim():"",a="",u="";if(l){let e=l.split(/(\s+)/g);a=e[0],u=e.slice(2).join("")}if(0===(s=r.highlight&&r.highlight(o.content,a,u)||eS(o.content)).indexOf("<pre"))return s+"\n";if(l){let e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",r.langPrefix+a]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+a);let n={attrs:t};return`<pre><code${i.renderAttrs(n)}>${s}</code></pre>
|