@tianshu-ai/tianshu 0.3.0
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/LICENSE +200 -0
- package/README.md +284 -0
- package/README.zh-CN.md +136 -0
- package/bin/tianshu.mjs +32 -0
- package/package.json +60 -0
- package/packages/plugin-sdk/dist/agent-loop.d.ts +96 -0
- package/packages/plugin-sdk/dist/agent-loop.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/agent-loop.js +11 -0
- package/packages/plugin-sdk/dist/agent-loop.js.map +1 -0
- package/packages/plugin-sdk/dist/capabilities.d.ts +48 -0
- package/packages/plugin-sdk/dist/capabilities.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/capabilities.js +61 -0
- package/packages/plugin-sdk/dist/capabilities.js.map +1 -0
- package/packages/plugin-sdk/dist/catalog.d.ts +60 -0
- package/packages/plugin-sdk/dist/catalog.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/catalog.js +11 -0
- package/packages/plugin-sdk/dist/catalog.js.map +1 -0
- package/packages/plugin-sdk/dist/client.d.ts +171 -0
- package/packages/plugin-sdk/dist/client.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/client.js +96 -0
- package/packages/plugin-sdk/dist/client.js.map +1 -0
- package/packages/plugin-sdk/dist/index.d.ts +9 -0
- package/packages/plugin-sdk/dist/index.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/index.js +19 -0
- package/packages/plugin-sdk/dist/index.js.map +1 -0
- package/packages/plugin-sdk/dist/lsp.d.ts +32 -0
- package/packages/plugin-sdk/dist/lsp.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/lsp.js +19 -0
- package/packages/plugin-sdk/dist/lsp.js.map +1 -0
- package/packages/plugin-sdk/dist/manifest.d.ts +423 -0
- package/packages/plugin-sdk/dist/manifest.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/manifest.js +7 -0
- package/packages/plugin-sdk/dist/manifest.js.map +1 -0
- package/packages/plugin-sdk/dist/mcp-client.d.ts +74 -0
- package/packages/plugin-sdk/dist/mcp-client.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/mcp-client.js +226 -0
- package/packages/plugin-sdk/dist/mcp-client.js.map +1 -0
- package/packages/plugin-sdk/dist/mcp-fetch.d.ts +10 -0
- package/packages/plugin-sdk/dist/mcp-fetch.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/mcp-fetch.js +130 -0
- package/packages/plugin-sdk/dist/mcp-fetch.js.map +1 -0
- package/packages/plugin-sdk/dist/mcp-toolset.d.ts +128 -0
- package/packages/plugin-sdk/dist/mcp-toolset.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/mcp-toolset.js +246 -0
- package/packages/plugin-sdk/dist/mcp-toolset.js.map +1 -0
- package/packages/plugin-sdk/dist/server.d.ts +486 -0
- package/packages/plugin-sdk/dist/server.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/server.js +10 -0
- package/packages/plugin-sdk/dist/server.js.map +1 -0
- package/packages/plugin-sdk/dist/session-inbox.d.ts +56 -0
- package/packages/plugin-sdk/dist/session-inbox.d.ts.map +1 -0
- package/packages/plugin-sdk/dist/session-inbox.js +12 -0
- package/packages/plugin-sdk/dist/session-inbox.js.map +1 -0
- package/packages/plugin-sdk/package.json +36 -0
- package/packages/server/builtinConfig/plugins/README.md +1 -0
- package/packages/server/builtinConfig/plugins/files/manifest.json +100 -0
- package/packages/server/builtinConfig/plugins/files/skills/files-workspace-layout.md +29 -0
- package/packages/server/builtinConfig/plugins/microsandbox/manifest.json +177 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-browser-howto.md +155 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-build-use.md +201 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-config.md +38 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-exec-howto.md +144 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-libreoffice.md +159 -0
- package/packages/server/builtinConfig/plugins/microsandbox/skills/microsandbox-main-orchestration.md +75 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/README.md +26 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/browser.yaml +105 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/task-runner-with-browser.yaml +80 -0
- package/packages/server/builtinConfig/plugins/microsandbox/templates/task-runner.yaml +80 -0
- package/packages/server/builtinConfig/plugins/web-search/manifest.json +65 -0
- package/packages/server/builtinConfig/plugins/web-search/skills/web-search-howto.md +69 -0
- package/packages/server/builtinConfig/plugins/workboard/agent-seeds/echo-demo/agent.json +7 -0
- package/packages/server/builtinConfig/plugins/workboard/agent-seeds/llm-default/SOUL.md +53 -0
- package/packages/server/builtinConfig/plugins/workboard/agent-seeds/llm-default/agent.json +7 -0
- package/packages/server/builtinConfig/plugins/workboard/manifest.json +180 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/large-input-large-output.md +185 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/workboard-howto.md +166 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/worker-creator.md +267 -0
- package/packages/server/builtinConfig/plugins/workboard/skills/worker-fleet.md +431 -0
- package/packages/server/dist/catalog.d.ts +52 -0
- package/packages/server/dist/catalog.d.ts.map +1 -0
- package/packages/server/dist/catalog.js +189 -0
- package/packages/server/dist/catalog.js.map +1 -0
- package/packages/server/dist/chat/active-harnesses.d.ts +34 -0
- package/packages/server/dist/chat/active-harnesses.d.ts.map +1 -0
- package/packages/server/dist/chat/active-harnesses.js +118 -0
- package/packages/server/dist/chat/active-harnesses.js.map +1 -0
- package/packages/server/dist/chat/agent-loop.d.ts +64 -0
- package/packages/server/dist/chat/agent-loop.d.ts.map +1 -0
- package/packages/server/dist/chat/agent-loop.js +597 -0
- package/packages/server/dist/chat/agent-loop.js.map +1 -0
- package/packages/server/dist/chat/agent-tool-adapter.d.ts +33 -0
- package/packages/server/dist/chat/agent-tool-adapter.d.ts.map +1 -0
- package/packages/server/dist/chat/agent-tool-adapter.js +260 -0
- package/packages/server/dist/chat/agent-tool-adapter.js.map +1 -0
- package/packages/server/dist/chat/compact.d.ts +52 -0
- package/packages/server/dist/chat/compact.d.ts.map +1 -0
- package/packages/server/dist/chat/compact.js +248 -0
- package/packages/server/dist/chat/compact.js.map +1 -0
- package/packages/server/dist/chat/dump-system-prompt.d.ts +17 -0
- package/packages/server/dist/chat/dump-system-prompt.d.ts.map +1 -0
- package/packages/server/dist/chat/dump-system-prompt.js +58 -0
- package/packages/server/dist/chat/dump-system-prompt.js.map +1 -0
- package/packages/server/dist/chat/handler.d.ts +186 -0
- package/packages/server/dist/chat/handler.d.ts.map +1 -0
- package/packages/server/dist/chat/handler.js +1248 -0
- package/packages/server/dist/chat/handler.js.map +1 -0
- package/packages/server/dist/chat/image-fit.d.ts +34 -0
- package/packages/server/dist/chat/image-fit.d.ts.map +1 -0
- package/packages/server/dist/chat/image-fit.js +157 -0
- package/packages/server/dist/chat/image-fit.js.map +1 -0
- package/packages/server/dist/chat/messages.d.ts +118 -0
- package/packages/server/dist/chat/messages.d.ts.map +1 -0
- package/packages/server/dist/chat/messages.js +341 -0
- package/packages/server/dist/chat/messages.js.map +1 -0
- package/packages/server/dist/chat/session-inbox.d.ts +114 -0
- package/packages/server/dist/chat/session-inbox.d.ts.map +1 -0
- package/packages/server/dist/chat/session-inbox.js +418 -0
- package/packages/server/dist/chat/session-inbox.js.map +1 -0
- package/packages/server/dist/chat/sqlite-session-repo.d.ts +26 -0
- package/packages/server/dist/chat/sqlite-session-repo.d.ts.map +1 -0
- package/packages/server/dist/chat/sqlite-session-repo.js +132 -0
- package/packages/server/dist/chat/sqlite-session-repo.js.map +1 -0
- package/packages/server/dist/chat/sqlite-session-storage.d.ts +83 -0
- package/packages/server/dist/chat/sqlite-session-storage.d.ts.map +1 -0
- package/packages/server/dist/chat/sqlite-session-storage.js +418 -0
- package/packages/server/dist/chat/sqlite-session-storage.js.map +1 -0
- package/packages/server/dist/chat/stub-execution-env.d.ts +3 -0
- package/packages/server/dist/chat/stub-execution-env.d.ts.map +1 -0
- package/packages/server/dist/chat/stub-execution-env.js +87 -0
- package/packages/server/dist/chat/stub-execution-env.js.map +1 -0
- package/packages/server/dist/chat/token-estimate.d.ts +11 -0
- package/packages/server/dist/chat/token-estimate.d.ts.map +1 -0
- package/packages/server/dist/chat/token-estimate.js +67 -0
- package/packages/server/dist/chat/token-estimate.js.map +1 -0
- package/packages/server/dist/chat/ws-protocol.d.ts +244 -0
- package/packages/server/dist/chat/ws-protocol.d.ts.map +1 -0
- package/packages/server/dist/chat/ws-protocol.js +193 -0
- package/packages/server/dist/chat/ws-protocol.js.map +1 -0
- package/packages/server/dist/cli.d.ts +9 -0
- package/packages/server/dist/cli.d.ts.map +1 -0
- package/packages/server/dist/cli.js +329 -0
- package/packages/server/dist/cli.js.map +1 -0
- package/packages/server/dist/core/agent-seeds.d.ts +25 -0
- package/packages/server/dist/core/agent-seeds.d.ts.map +1 -0
- package/packages/server/dist/core/agent-seeds.js +69 -0
- package/packages/server/dist/core/agent-seeds.js.map +1 -0
- package/packages/server/dist/core/config.d.ts +172 -0
- package/packages/server/dist/core/config.d.ts.map +1 -0
- package/packages/server/dist/core/config.js +155 -0
- package/packages/server/dist/core/config.js.map +1 -0
- package/packages/server/dist/core/db-pool.d.ts +32 -0
- package/packages/server/dist/core/db-pool.d.ts.map +1 -0
- package/packages/server/dist/core/db-pool.js +108 -0
- package/packages/server/dist/core/db-pool.js.map +1 -0
- package/packages/server/dist/core/dev-mode.d.ts +13 -0
- package/packages/server/dist/core/dev-mode.d.ts.map +1 -0
- package/packages/server/dist/core/dev-mode.js +51 -0
- package/packages/server/dist/core/dev-mode.js.map +1 -0
- package/packages/server/dist/core/global-ops.d.ts +54 -0
- package/packages/server/dist/core/global-ops.d.ts.map +1 -0
- package/packages/server/dist/core/global-ops.js +143 -0
- package/packages/server/dist/core/global-ops.js.map +1 -0
- package/packages/server/dist/core/identity-resolvers.d.ts +102 -0
- package/packages/server/dist/core/identity-resolvers.d.ts.map +1 -0
- package/packages/server/dist/core/identity-resolvers.js +176 -0
- package/packages/server/dist/core/identity-resolvers.js.map +1 -0
- package/packages/server/dist/core/index.d.ts +13 -0
- package/packages/server/dist/core/index.d.ts.map +1 -0
- package/packages/server/dist/core/index.js +18 -0
- package/packages/server/dist/core/index.js.map +1 -0
- package/packages/server/dist/core/llm.d.ts +45 -0
- package/packages/server/dist/core/llm.d.ts.map +1 -0
- package/packages/server/dist/core/llm.js +140 -0
- package/packages/server/dist/core/llm.js.map +1 -0
- package/packages/server/dist/core/mcp-manager.d.ts +47 -0
- package/packages/server/dist/core/mcp-manager.d.ts.map +1 -0
- package/packages/server/dist/core/mcp-manager.js +129 -0
- package/packages/server/dist/core/mcp-manager.js.map +1 -0
- package/packages/server/dist/core/middleware.d.ts +31 -0
- package/packages/server/dist/core/middleware.d.ts.map +1 -0
- package/packages/server/dist/core/middleware.js +102 -0
- package/packages/server/dist/core/middleware.js.map +1 -0
- package/packages/server/dist/core/migrations/001-initial.d.ts +4 -0
- package/packages/server/dist/core/migrations/001-initial.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/001-initial.js +66 -0
- package/packages/server/dist/core/migrations/001-initial.js.map +1 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.d.ts +4 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.js +20 -0
- package/packages/server/dist/core/migrations/002-task-dependencies.js.map +1 -0
- package/packages/server/dist/core/migrations/003-session-tree.d.ts +4 -0
- package/packages/server/dist/core/migrations/003-session-tree.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/003-session-tree.js +96 -0
- package/packages/server/dist/core/migrations/003-session-tree.js.map +1 -0
- package/packages/server/dist/core/migrations/003-worker-agents.d.ts +4 -0
- package/packages/server/dist/core/migrations/003-worker-agents.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/003-worker-agents.js +65 -0
- package/packages/server/dist/core/migrations/003-worker-agents.js.map +1 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.d.ts +4 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.js +52 -0
- package/packages/server/dist/core/migrations/004-rebuild-message-chain.js.map +1 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.d.ts +4 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.js +64 -0
- package/packages/server/dist/core/migrations/005-task-status-rename.js.map +1 -0
- package/packages/server/dist/core/migrations/006-task-labels.d.ts +4 -0
- package/packages/server/dist/core/migrations/006-task-labels.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/006-task-labels.js +43 -0
- package/packages/server/dist/core/migrations/006-task-labels.js.map +1 -0
- package/packages/server/dist/core/migrations/007-session-inbox.d.ts +4 -0
- package/packages/server/dist/core/migrations/007-session-inbox.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/007-session-inbox.js +67 -0
- package/packages/server/dist/core/migrations/007-session-inbox.js.map +1 -0
- package/packages/server/dist/core/migrations/008-task-intervention.d.ts +4 -0
- package/packages/server/dist/core/migrations/008-task-intervention.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/008-task-intervention.js +60 -0
- package/packages/server/dist/core/migrations/008-task-intervention.js.map +1 -0
- package/packages/server/dist/core/migrations/index.d.ts +12 -0
- package/packages/server/dist/core/migrations/index.d.ts.map +1 -0
- package/packages/server/dist/core/migrations/index.js +58 -0
- package/packages/server/dist/core/migrations/index.js.map +1 -0
- package/packages/server/dist/core/paths.d.ts +53 -0
- package/packages/server/dist/core/paths.d.ts.map +1 -0
- package/packages/server/dist/core/paths.js +125 -0
- package/packages/server/dist/core/paths.js.map +1 -0
- package/packages/server/dist/core/plugins/builtin-loader.d.ts +56 -0
- package/packages/server/dist/core/plugins/builtin-loader.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/builtin-loader.js +153 -0
- package/packages/server/dist/core/plugins/builtin-loader.js.map +1 -0
- package/packages/server/dist/core/plugins/discovery.d.ts +28 -0
- package/packages/server/dist/core/plugins/discovery.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/discovery.js +97 -0
- package/packages/server/dist/core/plugins/discovery.js.map +1 -0
- package/packages/server/dist/core/plugins/index.d.ts +6 -0
- package/packages/server/dist/core/plugins/index.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/index.js +6 -0
- package/packages/server/dist/core/plugins/index.js.map +1 -0
- package/packages/server/dist/core/plugins/manifest.d.ts +9 -0
- package/packages/server/dist/core/plugins/manifest.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/manifest.js +584 -0
- package/packages/server/dist/core/plugins/manifest.js.map +1 -0
- package/packages/server/dist/core/plugins/registry.d.ts +269 -0
- package/packages/server/dist/core/plugins/registry.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/registry.js +1003 -0
- package/packages/server/dist/core/plugins/registry.js.map +1 -0
- package/packages/server/dist/core/plugins/secrets.d.ts +46 -0
- package/packages/server/dist/core/plugins/secrets.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/secrets.js +174 -0
- package/packages/server/dist/core/plugins/secrets.js.map +1 -0
- package/packages/server/dist/core/plugins/skills.d.ts +131 -0
- package/packages/server/dist/core/plugins/skills.d.ts.map +1 -0
- package/packages/server/dist/core/plugins/skills.js +389 -0
- package/packages/server/dist/core/plugins/skills.js.map +1 -0
- package/packages/server/dist/core/templates.d.ts +28 -0
- package/packages/server/dist/core/templates.d.ts.map +1 -0
- package/packages/server/dist/core/templates.js +103 -0
- package/packages/server/dist/core/templates.js.map +1 -0
- package/packages/server/dist/core/tenant-context.d.ts +18 -0
- package/packages/server/dist/core/tenant-context.d.ts.map +1 -0
- package/packages/server/dist/core/tenant-context.js +42 -0
- package/packages/server/dist/core/tenant-context.js.map +1 -0
- package/packages/server/dist/core/tenant-id.d.ts +8 -0
- package/packages/server/dist/core/tenant-id.d.ts.map +1 -0
- package/packages/server/dist/core/tenant-id.js +53 -0
- package/packages/server/dist/core/tenant-id.js.map +1 -0
- package/packages/server/dist/core/tenant-skills.d.ts +29 -0
- package/packages/server/dist/core/tenant-skills.d.ts.map +1 -0
- package/packages/server/dist/core/tenant-skills.js +77 -0
- package/packages/server/dist/core/tenant-skills.js.map +1 -0
- package/packages/server/dist/core/worker-agents-fs.d.ts +44 -0
- package/packages/server/dist/core/worker-agents-fs.d.ts.map +1 -0
- package/packages/server/dist/core/worker-agents-fs.js +86 -0
- package/packages/server/dist/core/worker-agents-fs.js.map +1 -0
- package/packages/server/dist/core/worker-agents.d.ts +77 -0
- package/packages/server/dist/core/worker-agents.d.ts.map +1 -0
- package/packages/server/dist/core/worker-agents.js +191 -0
- package/packages/server/dist/core/worker-agents.js.map +1 -0
- package/packages/server/dist/index.d.ts +2 -0
- package/packages/server/dist/index.d.ts.map +1 -0
- package/packages/server/dist/index.js +623 -0
- package/packages/server/dist/index.js.map +1 -0
- package/packages/server/dist/lsp/client.d.ts +53 -0
- package/packages/server/dist/lsp/client.d.ts.map +1 -0
- package/packages/server/dist/lsp/client.js +258 -0
- package/packages/server/dist/lsp/client.js.map +1 -0
- package/packages/server/dist/lsp/format.d.ts +13 -0
- package/packages/server/dist/lsp/format.d.ts.map +1 -0
- package/packages/server/dist/lsp/format.js +55 -0
- package/packages/server/dist/lsp/format.js.map +1 -0
- package/packages/server/dist/lsp/index.d.ts +20 -0
- package/packages/server/dist/lsp/index.d.ts.map +1 -0
- package/packages/server/dist/lsp/index.js +32 -0
- package/packages/server/dist/lsp/index.js.map +1 -0
- package/packages/server/dist/lsp/language-registry.d.ts +29 -0
- package/packages/server/dist/lsp/language-registry.d.ts.map +1 -0
- package/packages/server/dist/lsp/language-registry.js +62 -0
- package/packages/server/dist/lsp/language-registry.js.map +1 -0
- package/packages/server/dist/lsp/manager.d.ts +77 -0
- package/packages/server/dist/lsp/manager.d.ts.map +1 -0
- package/packages/server/dist/lsp/manager.js +300 -0
- package/packages/server/dist/lsp/manager.js.map +1 -0
- package/packages/server/dist/plugins-routes.d.ts +96 -0
- package/packages/server/dist/plugins-routes.d.ts.map +1 -0
- package/packages/server/dist/plugins-routes.js +627 -0
- package/packages/server/dist/plugins-routes.js.map +1 -0
- package/packages/server/dist/setup/checks/config.d.ts +9 -0
- package/packages/server/dist/setup/checks/config.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/config.js +66 -0
- package/packages/server/dist/setup/checks/config.js.map +1 -0
- package/packages/server/dist/setup/checks/db.d.ts +6 -0
- package/packages/server/dist/setup/checks/db.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/db.js +79 -0
- package/packages/server/dist/setup/checks/db.js.map +1 -0
- package/packages/server/dist/setup/checks/known-models.d.ts +18 -0
- package/packages/server/dist/setup/checks/known-models.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/known-models.js +119 -0
- package/packages/server/dist/setup/checks/known-models.js.map +1 -0
- package/packages/server/dist/setup/checks/network.d.ts +11 -0
- package/packages/server/dist/setup/checks/network.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/network.js +176 -0
- package/packages/server/dist/setup/checks/network.js.map +1 -0
- package/packages/server/dist/setup/checks/plugins.d.ts +9 -0
- package/packages/server/dist/setup/checks/plugins.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/plugins.js +194 -0
- package/packages/server/dist/setup/checks/plugins.js.map +1 -0
- package/packages/server/dist/setup/checks/providers.d.ts +12 -0
- package/packages/server/dist/setup/checks/providers.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/providers.js +368 -0
- package/packages/server/dist/setup/checks/providers.js.map +1 -0
- package/packages/server/dist/setup/checks/runtime.d.ts +3 -0
- package/packages/server/dist/setup/checks/runtime.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/runtime.js +44 -0
- package/packages/server/dist/setup/checks/runtime.js.map +1 -0
- package/packages/server/dist/setup/checks/sandbox.d.ts +9 -0
- package/packages/server/dist/setup/checks/sandbox.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/sandbox.js +110 -0
- package/packages/server/dist/setup/checks/sandbox.js.map +1 -0
- package/packages/server/dist/setup/checks/tenants.d.ts +9 -0
- package/packages/server/dist/setup/checks/tenants.d.ts.map +1 -0
- package/packages/server/dist/setup/checks/tenants.js +509 -0
- package/packages/server/dist/setup/checks/tenants.js.map +1 -0
- package/packages/server/dist/setup/cli-agent.d.ts +39 -0
- package/packages/server/dist/setup/cli-agent.d.ts.map +1 -0
- package/packages/server/dist/setup/cli-agent.js +1353 -0
- package/packages/server/dist/setup/cli-agent.js.map +1 -0
- package/packages/server/dist/setup/doctor.d.ts +32 -0
- package/packages/server/dist/setup/doctor.d.ts.map +1 -0
- package/packages/server/dist/setup/doctor.js +80 -0
- package/packages/server/dist/setup/doctor.js.map +1 -0
- package/packages/server/dist/setup/launchd.d.ts +107 -0
- package/packages/server/dist/setup/launchd.d.ts.map +1 -0
- package/packages/server/dist/setup/launchd.js +309 -0
- package/packages/server/dist/setup/launchd.js.map +1 -0
- package/packages/server/dist/setup/load-env.d.ts +21 -0
- package/packages/server/dist/setup/load-env.d.ts.map +1 -0
- package/packages/server/dist/setup/load-env.js +88 -0
- package/packages/server/dist/setup/load-env.js.map +1 -0
- package/packages/server/dist/setup/probe-default-model.d.ts +28 -0
- package/packages/server/dist/setup/probe-default-model.d.ts.map +1 -0
- package/packages/server/dist/setup/probe-default-model.js +133 -0
- package/packages/server/dist/setup/probe-default-model.js.map +1 -0
- package/packages/server/dist/setup/render.d.ts +28 -0
- package/packages/server/dist/setup/render.d.ts.map +1 -0
- package/packages/server/dist/setup/render.js +60 -0
- package/packages/server/dist/setup/render.js.map +1 -0
- package/packages/server/dist/setup/repo-root.d.ts +3 -0
- package/packages/server/dist/setup/repo-root.d.ts.map +1 -0
- package/packages/server/dist/setup/repo-root.js +43 -0
- package/packages/server/dist/setup/repo-root.js.map +1 -0
- package/packages/server/dist/setup/service.d.ts +60 -0
- package/packages/server/dist/setup/service.d.ts.map +1 -0
- package/packages/server/dist/setup/service.js +345 -0
- package/packages/server/dist/setup/service.js.map +1 -0
- package/packages/server/dist/setup/start-server.d.ts +23 -0
- package/packages/server/dist/setup/start-server.d.ts.map +1 -0
- package/packages/server/dist/setup/start-server.js +465 -0
- package/packages/server/dist/setup/start-server.js.map +1 -0
- package/packages/server/dist/setup/wizard.d.ts +59 -0
- package/packages/server/dist/setup/wizard.d.ts.map +1 -0
- package/packages/server/dist/setup/wizard.js +556 -0
- package/packages/server/dist/setup/wizard.js.map +1 -0
- package/packages/server/dist/tools/edit-file.d.ts +13 -0
- package/packages/server/dist/tools/edit-file.d.ts.map +1 -0
- package/packages/server/dist/tools/edit-file.js +90 -0
- package/packages/server/dist/tools/edit-file.js.map +1 -0
- package/packages/server/dist/tools/glob.d.ts +12 -0
- package/packages/server/dist/tools/glob.d.ts.map +1 -0
- package/packages/server/dist/tools/glob.js +82 -0
- package/packages/server/dist/tools/glob.js.map +1 -0
- package/packages/server/dist/tools/index.d.ts +82 -0
- package/packages/server/dist/tools/index.d.ts.map +1 -0
- package/packages/server/dist/tools/index.js +72 -0
- package/packages/server/dist/tools/index.js.map +1 -0
- package/packages/server/dist/tools/list-dir.d.ts +24 -0
- package/packages/server/dist/tools/list-dir.d.ts.map +1 -0
- package/packages/server/dist/tools/list-dir.js +99 -0
- package/packages/server/dist/tools/list-dir.js.map +1 -0
- package/packages/server/dist/tools/path-helper.d.ts +15 -0
- package/packages/server/dist/tools/path-helper.d.ts.map +1 -0
- package/packages/server/dist/tools/path-helper.js +72 -0
- package/packages/server/dist/tools/path-helper.js.map +1 -0
- package/packages/server/dist/tools/read-file.d.ts +17 -0
- package/packages/server/dist/tools/read-file.d.ts.map +1 -0
- package/packages/server/dist/tools/read-file.js +94 -0
- package/packages/server/dist/tools/read-file.js.map +1 -0
- package/packages/server/dist/tools/sandbox.d.ts +57 -0
- package/packages/server/dist/tools/sandbox.d.ts.map +1 -0
- package/packages/server/dist/tools/sandbox.js +291 -0
- package/packages/server/dist/tools/sandbox.js.map +1 -0
- package/packages/server/dist/tools/write-file.d.ts +12 -0
- package/packages/server/dist/tools/write-file.d.ts.map +1 -0
- package/packages/server/dist/tools/write-file.js +67 -0
- package/packages/server/dist/tools/write-file.js.map +1 -0
- package/packages/server/dist/worker-agents-routes.d.ts +11 -0
- package/packages/server/dist/worker-agents-routes.d.ts.map +1 -0
- package/packages/server/dist/worker-agents-routes.js +253 -0
- package/packages/server/dist/worker-agents-routes.js.map +1 -0
- package/packages/server/package.json +41 -0
- package/packages/web/dist/assets/index-DH-gJ09_.js +60 -0
- package/packages/web/dist/assets/index-xU4lYYqY.css +2 -0
- package/packages/web/dist/index.html +14 -0
- package/packages/web/package.json +36 -0
- package/plugins/README.md +64 -0
- package/plugins/files/dist/client.d.ts +5 -0
- package/plugins/files/dist/client.d.ts.map +1 -0
- package/plugins/files/dist/client.js +354 -0
- package/plugins/files/dist/client.js.map +1 -0
- package/plugins/files/dist/server.d.ts +32 -0
- package/plugins/files/dist/server.d.ts.map +1 -0
- package/plugins/files/dist/server.js +514 -0
- package/plugins/files/dist/server.js.map +1 -0
- package/plugins/files/dist/tools/edit-file.d.ts +29 -0
- package/plugins/files/dist/tools/edit-file.d.ts.map +1 -0
- package/plugins/files/dist/tools/edit-file.js +230 -0
- package/plugins/files/dist/tools/edit-file.js.map +1 -0
- package/plugins/files/dist/tools/edit-file.prompt.md +36 -0
- package/plugins/files/dist/tools/glob.d.ts +12 -0
- package/plugins/files/dist/tools/glob.d.ts.map +1 -0
- package/plugins/files/dist/tools/glob.js +84 -0
- package/plugins/files/dist/tools/glob.js.map +1 -0
- package/plugins/files/dist/tools/index.d.ts +13 -0
- package/plugins/files/dist/tools/index.d.ts.map +1 -0
- package/plugins/files/dist/tools/index.js +158 -0
- package/plugins/files/dist/tools/index.js.map +1 -0
- package/plugins/files/dist/tools/list-dir.d.ts +24 -0
- package/plugins/files/dist/tools/list-dir.d.ts.map +1 -0
- package/plugins/files/dist/tools/list-dir.js +104 -0
- package/plugins/files/dist/tools/list-dir.js.map +1 -0
- package/plugins/files/dist/tools/load-prompt.d.ts +5 -0
- package/plugins/files/dist/tools/load-prompt.d.ts.map +1 -0
- package/plugins/files/dist/tools/load-prompt.js +39 -0
- package/plugins/files/dist/tools/load-prompt.js.map +1 -0
- package/plugins/files/dist/tools/path-helper.d.ts +32 -0
- package/plugins/files/dist/tools/path-helper.d.ts.map +1 -0
- package/plugins/files/dist/tools/path-helper.js +113 -0
- package/plugins/files/dist/tools/path-helper.js.map +1 -0
- package/plugins/files/dist/tools/read-file.d.ts +17 -0
- package/plugins/files/dist/tools/read-file.d.ts.map +1 -0
- package/plugins/files/dist/tools/read-file.js +109 -0
- package/plugins/files/dist/tools/read-file.js.map +1 -0
- package/plugins/files/dist/tools/read-tracker.d.ts +28 -0
- package/plugins/files/dist/tools/read-tracker.d.ts.map +1 -0
- package/plugins/files/dist/tools/read-tracker.js +135 -0
- package/plugins/files/dist/tools/read-tracker.js.map +1 -0
- package/plugins/files/dist/tools/replacers.d.ts +27 -0
- package/plugins/files/dist/tools/replacers.d.ts.map +1 -0
- package/plugins/files/dist/tools/replacers.js +221 -0
- package/plugins/files/dist/tools/replacers.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-delete.d.ts +12 -0
- package/plugins/files/dist/tools/tenant-config-delete.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-delete.js +70 -0
- package/plugins/files/dist/tools/tenant-config-delete.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-edit.d.ts +25 -0
- package/plugins/files/dist/tools/tenant-config-edit.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-edit.js +142 -0
- package/plugins/files/dist/tools/tenant-config-edit.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-glob.d.ts +12 -0
- package/plugins/files/dist/tools/tenant-config-glob.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-glob.js +64 -0
- package/plugins/files/dist/tools/tenant-config-glob.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-helper.d.ts +64 -0
- package/plugins/files/dist/tools/tenant-config-helper.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-helper.js +162 -0
- package/plugins/files/dist/tools/tenant-config-helper.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-list.d.ts +20 -0
- package/plugins/files/dist/tools/tenant-config-list.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-list.js +95 -0
- package/plugins/files/dist/tools/tenant-config-list.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-read.d.ts +17 -0
- package/plugins/files/dist/tools/tenant-config-read.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-read.js +87 -0
- package/plugins/files/dist/tools/tenant-config-read.js.map +1 -0
- package/plugins/files/dist/tools/tenant-config-write.d.ts +14 -0
- package/plugins/files/dist/tools/tenant-config-write.d.ts.map +1 -0
- package/plugins/files/dist/tools/tenant-config-write.js +78 -0
- package/plugins/files/dist/tools/tenant-config-write.js.map +1 -0
- package/plugins/files/dist/tools/text-shape.d.ts +20 -0
- package/plugins/files/dist/tools/text-shape.d.ts.map +1 -0
- package/plugins/files/dist/tools/text-shape.js +57 -0
- package/plugins/files/dist/tools/text-shape.js.map +1 -0
- package/plugins/files/dist/tools/write-file.d.ts +12 -0
- package/plugins/files/dist/tools/write-file.d.ts.map +1 -0
- package/plugins/files/dist/tools/write-file.js +89 -0
- package/plugins/files/dist/tools/write-file.js.map +1 -0
- package/plugins/files/dist/tools/write-file.prompt.md +14 -0
- package/plugins/files/manifest.json +100 -0
- package/plugins/files/package.json +39 -0
- package/plugins/files/skills/files-workspace-layout.md +29 -0
- package/plugins/microsandbox/dist/admin/browser-routes.d.ts +41 -0
- package/plugins/microsandbox/dist/admin/browser-routes.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/browser-routes.js +208 -0
- package/plugins/microsandbox/dist/admin/browser-routes.js.map +1 -0
- package/plugins/microsandbox/dist/admin/preview-exec.d.ts +38 -0
- package/plugins/microsandbox/dist/admin/preview-exec.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/preview-exec.js +185 -0
- package/plugins/microsandbox/dist/admin/preview-exec.js.map +1 -0
- package/plugins/microsandbox/dist/admin/routes.d.ts +35 -0
- package/plugins/microsandbox/dist/admin/routes.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/routes.js +728 -0
- package/plugins/microsandbox/dist/admin/routes.js.map +1 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.d.ts +11 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.js +72 -0
- package/plugins/microsandbox/dist/admin/sandboxfile-io.js.map +1 -0
- package/plugins/microsandbox/dist/admin/templates.d.ts +16 -0
- package/plugins/microsandbox/dist/admin/templates.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin/templates.js +66 -0
- package/plugins/microsandbox/dist/admin/templates.js.map +1 -0
- package/plugins/microsandbox/dist/admin.d.ts +5 -0
- package/plugins/microsandbox/dist/admin.d.ts.map +1 -0
- package/plugins/microsandbox/dist/admin.js +256 -0
- package/plugins/microsandbox/dist/admin.js.map +1 -0
- package/plugins/microsandbox/dist/build/builder.d.ts +69 -0
- package/plugins/microsandbox/dist/build/builder.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/builder.js +257 -0
- package/plugins/microsandbox/dist/build/builder.js.map +1 -0
- package/plugins/microsandbox/dist/build/metadata.d.ts +27 -0
- package/plugins/microsandbox/dist/build/metadata.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/metadata.js +55 -0
- package/plugins/microsandbox/dist/build/metadata.js.map +1 -0
- package/plugins/microsandbox/dist/build/pointer.d.ts +51 -0
- package/plugins/microsandbox/dist/build/pointer.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/pointer.js +130 -0
- package/plugins/microsandbox/dist/build/pointer.js.map +1 -0
- package/plugins/microsandbox/dist/build/sandboxfile.d.ts +15 -0
- package/plugins/microsandbox/dist/build/sandboxfile.d.ts.map +1 -0
- package/plugins/microsandbox/dist/build/sandboxfile.js +176 -0
- package/plugins/microsandbox/dist/build/sandboxfile.js.map +1 -0
- package/plugins/microsandbox/dist/client.d.ts +5 -0
- package/plugins/microsandbox/dist/client.d.ts.map +1 -0
- package/plugins/microsandbox/dist/client.js +941 -0
- package/plugins/microsandbox/dist/client.js.map +1 -0
- package/plugins/microsandbox/dist/runner/browser.d.ts +50 -0
- package/plugins/microsandbox/dist/runner/browser.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/browser.js +142 -0
- package/plugins/microsandbox/dist/runner/browser.js.map +1 -0
- package/plugins/microsandbox/dist/runner/free-port.d.ts +6 -0
- package/plugins/microsandbox/dist/runner/free-port.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/free-port.js +53 -0
- package/plugins/microsandbox/dist/runner/free-port.js.map +1 -0
- package/plugins/microsandbox/dist/runner/index.d.ts +28 -0
- package/plugins/microsandbox/dist/runner/index.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/index.js +72 -0
- package/plugins/microsandbox/dist/runner/index.js.map +1 -0
- package/plugins/microsandbox/dist/runner/microsandbox.d.ts +64 -0
- package/plugins/microsandbox/dist/runner/microsandbox.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/microsandbox.js +668 -0
- package/plugins/microsandbox/dist/runner/microsandbox.js.map +1 -0
- package/plugins/microsandbox/dist/runner/nullable.d.ts +36 -0
- package/plugins/microsandbox/dist/runner/nullable.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/nullable.js +82 -0
- package/plugins/microsandbox/dist/runner/nullable.js.map +1 -0
- package/plugins/microsandbox/dist/runner/pool.d.ts +97 -0
- package/plugins/microsandbox/dist/runner/pool.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/pool.js +494 -0
- package/plugins/microsandbox/dist/runner/pool.js.map +1 -0
- package/plugins/microsandbox/dist/runner/types.d.ts +33 -0
- package/plugins/microsandbox/dist/runner/types.d.ts.map +1 -0
- package/plugins/microsandbox/dist/runner/types.js +79 -0
- package/plugins/microsandbox/dist/runner/types.js.map +1 -0
- package/plugins/microsandbox/dist/server.d.ts +7 -0
- package/plugins/microsandbox/dist/server.d.ts.map +1 -0
- package/plugins/microsandbox/dist/server.js +276 -0
- package/plugins/microsandbox/dist/server.js.map +1 -0
- package/plugins/microsandbox/dist/tools/browser.d.ts +25 -0
- package/plugins/microsandbox/dist/tools/browser.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/browser.js +78 -0
- package/plugins/microsandbox/dist/tools/browser.js.map +1 -0
- package/plugins/microsandbox/dist/tools/build.d.ts +5 -0
- package/plugins/microsandbox/dist/tools/build.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/build.js +243 -0
- package/plugins/microsandbox/dist/tools/build.js.map +1 -0
- package/plugins/microsandbox/dist/tools/index.d.ts +9 -0
- package/plugins/microsandbox/dist/tools/index.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/index.js +430 -0
- package/plugins/microsandbox/dist/tools/index.js.map +1 -0
- package/plugins/microsandbox/dist/tools/mcp-client.d.ts +63 -0
- package/plugins/microsandbox/dist/tools/mcp-client.d.ts.map +1 -0
- package/plugins/microsandbox/dist/tools/mcp-client.js +226 -0
- package/plugins/microsandbox/dist/tools/mcp-client.js.map +1 -0
- package/plugins/microsandbox/manifest.json +177 -0
- package/plugins/microsandbox/package.json +38 -0
- package/plugins/microsandbox/skills/microsandbox-browser-howto.md +155 -0
- package/plugins/microsandbox/skills/microsandbox-build-use.md +201 -0
- package/plugins/microsandbox/skills/microsandbox-config.md +38 -0
- package/plugins/microsandbox/skills/microsandbox-exec-howto.md +144 -0
- package/plugins/microsandbox/skills/microsandbox-libreoffice.md +159 -0
- package/plugins/microsandbox/templates/README.md +26 -0
- package/plugins/web-search/dist/server.d.ts +4 -0
- package/plugins/web-search/dist/server.d.ts.map +1 -0
- package/plugins/web-search/dist/server.js +73 -0
- package/plugins/web-search/dist/server.js.map +1 -0
- package/plugins/web-search/dist/tools/health.d.ts +31 -0
- package/plugins/web-search/dist/tools/health.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/health.js +59 -0
- package/plugins/web-search/dist/tools/health.js.map +1 -0
- package/plugins/web-search/dist/tools/index.d.ts +3 -0
- package/plugins/web-search/dist/tools/index.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/index.js +2 -0
- package/plugins/web-search/dist/tools/index.js.map +1 -0
- package/plugins/web-search/dist/tools/providers.d.ts +43 -0
- package/plugins/web-search/dist/tools/providers.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/providers.js +140 -0
- package/plugins/web-search/dist/tools/providers.js.map +1 -0
- package/plugins/web-search/dist/tools/web-search.d.ts +15 -0
- package/plugins/web-search/dist/tools/web-search.d.ts.map +1 -0
- package/plugins/web-search/dist/tools/web-search.js +244 -0
- package/plugins/web-search/dist/tools/web-search.js.map +1 -0
- package/plugins/web-search/manifest.json +65 -0
- package/plugins/web-search/node_modules/@esbuild/darwin-arm64/README.md +3 -0
- package/plugins/web-search/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/plugins/web-search/node_modules/@vitest/expect/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/expect/README.md +21 -0
- package/plugins/web-search/node_modules/@vitest/expect/dist/index.d.ts +808 -0
- package/plugins/web-search/node_modules/@vitest/expect/dist/index.js +1799 -0
- package/plugins/web-search/node_modules/@vitest/expect/package.json +46 -0
- package/plugins/web-search/node_modules/@vitest/mocker/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/mocker/README.md +5 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/auto-register.d.ts +2 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/auto-register.js +9 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/browser.d.ts +53 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/browser.js +91 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-interceptor-native.js +15 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-mocker.js +1602 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-pathe.M-eThtNZ.js +174 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-registry.js +182 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/chunk-utils.js +16 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/index.d.ts +21 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/index.js +174 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/mocker.d-Ce9_ySj5.d.ts +83 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/node.d.ts +821 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/node.js +1306 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/redirect.d.ts +3 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/redirect.js +75 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/register.d.ts +9 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/register.js +41 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/registry.d-D765pazg.d.ts +87 -0
- package/plugins/web-search/node_modules/@vitest/mocker/dist/types.d-D_aRZRdy.d.ts +8 -0
- package/plugins/web-search/node_modules/@vitest/mocker/package.json +82 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/dist/index.d.ts +119 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/dist/index.js +1387 -0
- package/plugins/web-search/node_modules/@vitest/pretty-format/package.json +44 -0
- package/plugins/web-search/node_modules/@vitest/runner/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/runner/README.md +5 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/chunk-hooks.js +2254 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/index.d.ts +261 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/index.js +6 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/tasks.d-CkscK4of.d.ts +558 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/types.d.ts +163 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/types.js +1 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/utils.d.ts +47 -0
- package/plugins/web-search/node_modules/@vitest/runner/dist/utils.js +6 -0
- package/plugins/web-search/node_modules/@vitest/runner/package.json +49 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/README.md +84 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/environment.d-DHdQ1Csl.d.ts +22 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/environment.d.ts +16 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/environment.js +40 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/index.d.ts +137 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/index.js +2305 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/manager.d.ts +18 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/manager.js +73 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/dist/rawSnapshot.d-lFsMJFUd.d.ts +61 -0
- package/plugins/web-search/node_modules/@vitest/snapshot/package.json +54 -0
- package/plugins/web-search/node_modules/@vitest/spy/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/spy/README.md +3 -0
- package/plugins/web-search/node_modules/@vitest/spy/dist/index.d.ts +356 -0
- package/plugins/web-search/node_modules/@vitest/spy/dist/index.js +191 -0
- package/plugins/web-search/node_modules/@vitest/spy/package.json +38 -0
- package/plugins/web-search/node_modules/@vitest/utils/LICENSE +21 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +158 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/diff.d.ts +104 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/diff.js +2185 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/error.d.ts +9 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/error.js +162 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/helpers.d.ts +56 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/helpers.js +251 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/index.d.ts +57 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/index.js +633 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/source-map.d.ts +139 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/source-map.js +996 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts +53 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/types.d.ts +53 -0
- package/plugins/web-search/node_modules/@vitest/utils/dist/types.js +1 -0
- package/plugins/web-search/node_modules/@vitest/utils/package.json +77 -0
- package/plugins/web-search/node_modules/chai/LICENSE +21 -0
- package/plugins/web-search/node_modules/chai/README.md +162 -0
- package/plugins/web-search/node_modules/chai/package.json +74 -0
- package/plugins/web-search/node_modules/esbuild/README.md +3 -0
- package/plugins/web-search/node_modules/esbuild/package.json +49 -0
- package/plugins/web-search/node_modules/std-env/README.md +118 -0
- package/plugins/web-search/node_modules/std-env/dist/index.cjs +1 -0
- package/plugins/web-search/node_modules/std-env/dist/index.d.cts +92 -0
- package/plugins/web-search/node_modules/std-env/dist/index.d.mts +92 -0
- package/plugins/web-search/node_modules/std-env/dist/index.d.ts +92 -0
- package/plugins/web-search/node_modules/std-env/dist/index.mjs +1 -0
- package/plugins/web-search/node_modules/std-env/package.json +46 -0
- package/plugins/web-search/node_modules/tinyexec/LICENSE +21 -0
- package/plugins/web-search/node_modules/tinyexec/README.md +256 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.cjs +575 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.d.cts +70 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.d.ts +70 -0
- package/plugins/web-search/node_modules/tinyexec/dist/main.js +578 -0
- package/plugins/web-search/node_modules/tinyexec/package.json +66 -0
- package/plugins/web-search/node_modules/tinyrainbow/README.md +28 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/browser.d.ts +8 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/browser.js +20 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +90 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/index-8b61d5bc.d.ts +59 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/node.d.ts +8 -0
- package/plugins/web-search/node_modules/tinyrainbow/dist/node.js +22 -0
- package/plugins/web-search/node_modules/tinyrainbow/package.json +37 -0
- package/plugins/web-search/node_modules/typescript/README.md +50 -0
- package/plugins/web-search/node_modules/typescript/package.json +120 -0
- package/plugins/web-search/node_modules/vite/README.md +20 -0
- package/plugins/web-search/node_modules/vite/dist/client/client.mjs +1106 -0
- package/plugins/web-search/node_modules/vite/dist/client/env.mjs +19 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/build.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/build2.js +5538 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/chunk.js +48 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/config.js +36065 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/config2.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/dist.js +6758 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/lib.js +377 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/logger.js +329 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/optimizer.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/postcss-import.js +479 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/preview.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/chunks/server.js +4 -0
- package/plugins/web-search/node_modules/vite/dist/node/cli.js +698 -0
- package/plugins/web-search/node_modules/vite/dist/node/index.d.ts +3717 -0
- package/plugins/web-search/node_modules/vite/dist/node/index.js +30 -0
- package/plugins/web-search/node_modules/vite/dist/node/module-runner.d.ts +311 -0
- package/plugins/web-search/node_modules/vite/dist/node/module-runner.js +1160 -0
- package/plugins/web-search/node_modules/vite/package.json +199 -0
- package/plugins/web-search/node_modules/vite/types/package.json +4 -0
- package/plugins/web-search/node_modules/vitest/README.md +7 -0
- package/plugins/web-search/node_modules/vitest/dist/browser.d.ts +34 -0
- package/plugins/web-search/node_modules/vitest/dist/browser.js +8 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +7 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/base.DfmxU-tU.js +38 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js +37 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/benchmark.d.BwvBVTda.d.ts +24 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/cac.0BJqEUeA.js +1469 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/cli-api.DWGBtMmz.js +10660 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/config.d.BKdhh7Zx.d.ts +224 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/console.CtFJOzRO.js +153 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/constants.DnKduX2e.js +44 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/coverage.DVF1vEu8.js +25 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/coverage.DfSpMS-b.js +4350 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/coverage.d.S9RMNXIe.d.ts +35 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/creator.GK6I-cL4.js +640 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +73 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/defaults.B7q_naMc.js +115 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/env.D4Lgay0q.js +8 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/environment.d.cL3nLXbE.d.ts +119 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/execute.B7h3T_Hc.js +708 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/git.BVQ8w_Sw.js +72 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/global.d.MAmajcmJ.d.ts +136 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/globals.DEHgCU4V.js +26 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.B521nVV-.js +157 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.BCWujgDG.js +231 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js +37 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.CmSc2RE5.js +587 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.CwejwG0H.js +105 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.D3XRDfWc.js +213 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.VByaPkjc.js +2183 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/index.X0nbfr6-.js +6584 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/inspector.C914Efll.js +57 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/mocker.d.BE_2ls6u.d.ts +17 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/node.fjCdwEIl.js +15 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/reporters.d.BuRON0I0.d.ts +3168 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/rpc.-pEldfrD.js +83 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/runBaseTests.9Ij9_de-.js +129 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/setup-common.Dd054P77.js +60 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/suite.d.FvehnV49.d.ts +10 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/typechecker.DRKU1-1g.js +874 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/utils.CAioKnHs.js +61 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +65 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +4015 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/vite.d.BnOPPc46.d.ts +25 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/vm.BThCzidc.js +756 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/worker.d.CUgIPz9V.d.ts +176 -0
- package/plugins/web-search/node_modules/vitest/dist/chunks/worker.d.uzWsCv9X.d.ts +8 -0
- package/plugins/web-search/node_modules/vitest/dist/cli.js +27 -0
- package/plugins/web-search/node_modules/vitest/dist/config.cjs +148 -0
- package/plugins/web-search/node_modules/vitest/dist/config.d.ts +100 -0
- package/plugins/web-search/node_modules/vitest/dist/config.js +21 -0
- package/plugins/web-search/node_modules/vitest/dist/coverage.d.ts +108 -0
- package/plugins/web-search/node_modules/vitest/dist/coverage.js +34 -0
- package/plugins/web-search/node_modules/vitest/dist/environments.d.ts +26 -0
- package/plugins/web-search/node_modules/vitest/dist/environments.js +2 -0
- package/plugins/web-search/node_modules/vitest/dist/execute.d.ts +150 -0
- package/plugins/web-search/node_modules/vitest/dist/execute.js +13 -0
- package/plugins/web-search/node_modules/vitest/dist/index.d.ts +651 -0
- package/plugins/web-search/node_modules/vitest/dist/index.js +18 -0
- package/plugins/web-search/node_modules/vitest/dist/mocker.d.ts +1 -0
- package/plugins/web-search/node_modules/vitest/dist/mocker.js +1 -0
- package/plugins/web-search/node_modules/vitest/dist/node.d.ts +158 -0
- package/plugins/web-search/node_modules/vitest/dist/node.js +105 -0
- package/plugins/web-search/node_modules/vitest/dist/path.js +7 -0
- package/plugins/web-search/node_modules/vitest/dist/reporters.d.ts +25 -0
- package/plugins/web-search/node_modules/vitest/dist/reporters.js +23 -0
- package/plugins/web-search/node_modules/vitest/dist/runners.d.ts +46 -0
- package/plugins/web-search/node_modules/vitest/dist/runners.js +235 -0
- package/plugins/web-search/node_modules/vitest/dist/snapshot.d.ts +9 -0
- package/plugins/web-search/node_modules/vitest/dist/snapshot.js +4 -0
- package/plugins/web-search/node_modules/vitest/dist/spy.js +1 -0
- package/plugins/web-search/node_modules/vitest/dist/suite.d.ts +5 -0
- package/plugins/web-search/node_modules/vitest/dist/suite.js +5 -0
- package/plugins/web-search/node_modules/vitest/dist/worker.js +124 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/forks.js +43 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/runVmTests.js +90 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/threads.js +31 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/vmForks.js +47 -0
- package/plugins/web-search/node_modules/vitest/dist/workers/vmThreads.js +37 -0
- package/plugins/web-search/node_modules/vitest/dist/workers.d.ts +40 -0
- package/plugins/web-search/node_modules/vitest/dist/workers.js +30 -0
- package/plugins/web-search/node_modules/vitest/package.json +207 -0
- package/plugins/web-search/package.json +30 -0
- package/plugins/web-search/skills/web-search-howto.md +69 -0
- package/plugins/workboard/agent-seeds/echo-demo/agent.json +7 -0
- package/plugins/workboard/agent-seeds/llm-default/SOUL.md +53 -0
- package/plugins/workboard/agent-seeds/llm-default/agent.json +7 -0
- package/plugins/workboard/dist/client.d.ts +5 -0
- package/plugins/workboard/dist/client.d.ts.map +1 -0
- package/plugins/workboard/dist/client.js +895 -0
- package/plugins/workboard/dist/client.js.map +1 -0
- package/plugins/workboard/dist/db/agents.d.ts +100 -0
- package/plugins/workboard/dist/db/agents.d.ts.map +1 -0
- package/plugins/workboard/dist/db/agents.js +280 -0
- package/plugins/workboard/dist/db/agents.js.map +1 -0
- package/plugins/workboard/dist/db/schema.d.ts +3 -0
- package/plugins/workboard/dist/db/schema.d.ts.map +1 -0
- package/plugins/workboard/dist/db/schema.js +31 -0
- package/plugins/workboard/dist/db/schema.js.map +1 -0
- package/plugins/workboard/dist/db/session-history.d.ts +28 -0
- package/plugins/workboard/dist/db/session-history.d.ts.map +1 -0
- package/plugins/workboard/dist/db/session-history.js +224 -0
- package/plugins/workboard/dist/db/session-history.js.map +1 -0
- package/plugins/workboard/dist/db/tasks.d.ts +260 -0
- package/plugins/workboard/dist/db/tasks.d.ts.map +1 -0
- package/plugins/workboard/dist/db/tasks.js +451 -0
- package/plugins/workboard/dist/db/tasks.js.map +1 -0
- package/plugins/workboard/dist/db/worker-agents.d.ts +16 -0
- package/plugins/workboard/dist/db/worker-agents.d.ts.map +1 -0
- package/plugins/workboard/dist/db/worker-agents.js +62 -0
- package/plugins/workboard/dist/db/worker-agents.js.map +1 -0
- package/plugins/workboard/dist/effective-skills.d.ts +13 -0
- package/plugins/workboard/dist/effective-skills.d.ts.map +1 -0
- package/plugins/workboard/dist/effective-skills.js +126 -0
- package/plugins/workboard/dist/effective-skills.js.map +1 -0
- package/plugins/workboard/dist/fs-worker-agents.d.ts +35 -0
- package/plugins/workboard/dist/fs-worker-agents.d.ts.map +1 -0
- package/plugins/workboard/dist/fs-worker-agents.js +199 -0
- package/plugins/workboard/dist/fs-worker-agents.js.map +1 -0
- package/plugins/workboard/dist/migrate-worker-agents.d.ts +11 -0
- package/plugins/workboard/dist/migrate-worker-agents.d.ts.map +1 -0
- package/plugins/workboard/dist/migrate-worker-agents.js +89 -0
- package/plugins/workboard/dist/migrate-worker-agents.js.map +1 -0
- package/plugins/workboard/dist/routes/handlers.d.ts +106 -0
- package/plugins/workboard/dist/routes/handlers.d.ts.map +1 -0
- package/plugins/workboard/dist/routes/handlers.js +668 -0
- package/plugins/workboard/dist/routes/handlers.js.map +1 -0
- package/plugins/workboard/dist/server.d.ts +6 -0
- package/plugins/workboard/dist/server.d.ts.map +1 -0
- package/plugins/workboard/dist/server.js +368 -0
- package/plugins/workboard/dist/server.js.map +1 -0
- package/plugins/workboard/dist/tools/index.d.ts +70 -0
- package/plugins/workboard/dist/tools/index.d.ts.map +1 -0
- package/plugins/workboard/dist/tools/index.js +963 -0
- package/plugins/workboard/dist/tools/index.js.map +1 -0
- package/plugins/workboard/dist/types.d.ts +27 -0
- package/plugins/workboard/dist/types.d.ts.map +1 -0
- package/plugins/workboard/dist/types.js +16 -0
- package/plugins/workboard/dist/types.js.map +1 -0
- package/plugins/workboard/dist/worker/pool.d.ts +220 -0
- package/plugins/workboard/dist/worker/pool.d.ts.map +1 -0
- package/plugins/workboard/dist/worker/pool.js +866 -0
- package/plugins/workboard/dist/worker/pool.js.map +1 -0
- package/plugins/workboard/dist/worker/tool-policy.d.ts +27 -0
- package/plugins/workboard/dist/worker/tool-policy.d.ts.map +1 -0
- package/plugins/workboard/dist/worker/tool-policy.js +76 -0
- package/plugins/workboard/dist/worker/tool-policy.js.map +1 -0
- package/plugins/workboard/dist/worker-agents-page.d.ts +4 -0
- package/plugins/workboard/dist/worker-agents-page.d.ts.map +1 -0
- package/plugins/workboard/dist/worker-agents-page.js +193 -0
- package/plugins/workboard/dist/worker-agents-page.js.map +1 -0
- package/plugins/workboard/manifest.json +180 -0
- package/plugins/workboard/package.json +37 -0
- package/plugins/workboard/skills/large-input-large-output.md +185 -0
- package/plugins/workboard/skills/workboard-howto.md +166 -0
- package/plugins/workboard/skills/worker-creator.md +267 -0
- package/plugins/workboard/skills/worker-fleet.md +431 -0
|
@@ -0,0 +1,1602 @@
|
|
|
1
|
+
import { mockObject } from './index.js';
|
|
2
|
+
import { M as MockerRegistry, R as RedirectedModule, A as AutomockedModule } from './chunk-registry.js';
|
|
3
|
+
import { e as extname, j as join } from './chunk-pathe.M-eThtNZ.js';
|
|
4
|
+
|
|
5
|
+
// src/index.ts
|
|
6
|
+
var f = {
|
|
7
|
+
reset: [0, 0],
|
|
8
|
+
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
9
|
+
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
10
|
+
italic: [3, 23],
|
|
11
|
+
underline: [4, 24],
|
|
12
|
+
inverse: [7, 27],
|
|
13
|
+
hidden: [8, 28],
|
|
14
|
+
strikethrough: [9, 29],
|
|
15
|
+
black: [30, 39],
|
|
16
|
+
red: [31, 39],
|
|
17
|
+
green: [32, 39],
|
|
18
|
+
yellow: [33, 39],
|
|
19
|
+
blue: [34, 39],
|
|
20
|
+
magenta: [35, 39],
|
|
21
|
+
cyan: [36, 39],
|
|
22
|
+
white: [37, 39],
|
|
23
|
+
gray: [90, 39],
|
|
24
|
+
bgBlack: [40, 49],
|
|
25
|
+
bgRed: [41, 49],
|
|
26
|
+
bgGreen: [42, 49],
|
|
27
|
+
bgYellow: [43, 49],
|
|
28
|
+
bgBlue: [44, 49],
|
|
29
|
+
bgMagenta: [45, 49],
|
|
30
|
+
bgCyan: [46, 49],
|
|
31
|
+
bgWhite: [47, 49],
|
|
32
|
+
blackBright: [90, 39],
|
|
33
|
+
redBright: [91, 39],
|
|
34
|
+
greenBright: [92, 39],
|
|
35
|
+
yellowBright: [93, 39],
|
|
36
|
+
blueBright: [94, 39],
|
|
37
|
+
magentaBright: [95, 39],
|
|
38
|
+
cyanBright: [96, 39],
|
|
39
|
+
whiteBright: [97, 39],
|
|
40
|
+
bgBlackBright: [100, 49],
|
|
41
|
+
bgRedBright: [101, 49],
|
|
42
|
+
bgGreenBright: [102, 49],
|
|
43
|
+
bgYellowBright: [103, 49],
|
|
44
|
+
bgBlueBright: [104, 49],
|
|
45
|
+
bgMagentaBright: [105, 49],
|
|
46
|
+
bgCyanBright: [106, 49],
|
|
47
|
+
bgWhiteBright: [107, 49]
|
|
48
|
+
}, h = Object.entries(f);
|
|
49
|
+
function a(n) {
|
|
50
|
+
return String(n);
|
|
51
|
+
}
|
|
52
|
+
a.open = "";
|
|
53
|
+
a.close = "";
|
|
54
|
+
function C(n = false) {
|
|
55
|
+
let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || [];
|
|
56
|
+
return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome;
|
|
57
|
+
}
|
|
58
|
+
function p(n = false) {
|
|
59
|
+
let e = C(n), i = (r, t, c, o) => {
|
|
60
|
+
let l = "", s = 0;
|
|
61
|
+
do
|
|
62
|
+
l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s);
|
|
63
|
+
while (~o);
|
|
64
|
+
return l + r.substring(s);
|
|
65
|
+
}, g = (r, t, c = r) => {
|
|
66
|
+
let o = (l) => {
|
|
67
|
+
let s = String(l), b = s.indexOf(t, r.length);
|
|
68
|
+
return ~b ? r + i(s, t, c, b) + t : r + s + t;
|
|
69
|
+
};
|
|
70
|
+
return o.open = r, o.close = t, o;
|
|
71
|
+
}, u = {
|
|
72
|
+
isColorSupported: e
|
|
73
|
+
}, d = (r) => `\x1B[${r}m`;
|
|
74
|
+
for (let [r, t] of h)
|
|
75
|
+
u[r] = e ? g(
|
|
76
|
+
d(t[0]),
|
|
77
|
+
d(t[1]),
|
|
78
|
+
t[2]
|
|
79
|
+
) : a;
|
|
80
|
+
return u;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
p();
|
|
84
|
+
|
|
85
|
+
function _mergeNamespaces(n, m) {
|
|
86
|
+
m.forEach(function(e) {
|
|
87
|
+
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
88
|
+
if (k !== "default" && !(k in n)) {
|
|
89
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
90
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function() {
|
|
93
|
+
return e[k];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
return Object.freeze(n);
|
|
100
|
+
}
|
|
101
|
+
function getDefaultExportFromCjs(x) {
|
|
102
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
103
|
+
}
|
|
104
|
+
var reactIs$1 = { exports: {} };
|
|
105
|
+
var reactIs_production = {};
|
|
106
|
+
/**
|
|
107
|
+
* @license React
|
|
108
|
+
* react-is.production.js
|
|
109
|
+
*
|
|
110
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the MIT license found in the
|
|
113
|
+
* LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/
|
|
115
|
+
var hasRequiredReactIs_production;
|
|
116
|
+
function requireReactIs_production() {
|
|
117
|
+
if (hasRequiredReactIs_production) return reactIs_production;
|
|
118
|
+
hasRequiredReactIs_production = 1;
|
|
119
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
120
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
121
|
+
function typeOf(object) {
|
|
122
|
+
if ("object" === typeof object && null !== object) {
|
|
123
|
+
var $$typeof = object.$$typeof;
|
|
124
|
+
switch ($$typeof) {
|
|
125
|
+
case REACT_ELEMENT_TYPE: switch (object = object.type, object) {
|
|
126
|
+
case REACT_FRAGMENT_TYPE:
|
|
127
|
+
case REACT_PROFILER_TYPE:
|
|
128
|
+
case REACT_STRICT_MODE_TYPE:
|
|
129
|
+
case REACT_SUSPENSE_TYPE:
|
|
130
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
131
|
+
case REACT_VIEW_TRANSITION_TYPE: return object;
|
|
132
|
+
default: switch (object = object && object.$$typeof, object) {
|
|
133
|
+
case REACT_CONTEXT_TYPE:
|
|
134
|
+
case REACT_FORWARD_REF_TYPE:
|
|
135
|
+
case REACT_LAZY_TYPE:
|
|
136
|
+
case REACT_MEMO_TYPE: return object;
|
|
137
|
+
case REACT_CONSUMER_TYPE: return object;
|
|
138
|
+
default: return $$typeof;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
case REACT_PORTAL_TYPE: return $$typeof;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
146
|
+
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
|
147
|
+
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
|
148
|
+
reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
149
|
+
reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
150
|
+
reactIs_production.Lazy = REACT_LAZY_TYPE;
|
|
151
|
+
reactIs_production.Memo = REACT_MEMO_TYPE;
|
|
152
|
+
reactIs_production.Portal = REACT_PORTAL_TYPE;
|
|
153
|
+
reactIs_production.Profiler = REACT_PROFILER_TYPE;
|
|
154
|
+
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
155
|
+
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
156
|
+
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
157
|
+
reactIs_production.isContextConsumer = function(object) {
|
|
158
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
159
|
+
};
|
|
160
|
+
reactIs_production.isContextProvider = function(object) {
|
|
161
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
162
|
+
};
|
|
163
|
+
reactIs_production.isElement = function(object) {
|
|
164
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
165
|
+
};
|
|
166
|
+
reactIs_production.isForwardRef = function(object) {
|
|
167
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
168
|
+
};
|
|
169
|
+
reactIs_production.isFragment = function(object) {
|
|
170
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
171
|
+
};
|
|
172
|
+
reactIs_production.isLazy = function(object) {
|
|
173
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
174
|
+
};
|
|
175
|
+
reactIs_production.isMemo = function(object) {
|
|
176
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
177
|
+
};
|
|
178
|
+
reactIs_production.isPortal = function(object) {
|
|
179
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
180
|
+
};
|
|
181
|
+
reactIs_production.isProfiler = function(object) {
|
|
182
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
183
|
+
};
|
|
184
|
+
reactIs_production.isStrictMode = function(object) {
|
|
185
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
186
|
+
};
|
|
187
|
+
reactIs_production.isSuspense = function(object) {
|
|
188
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
189
|
+
};
|
|
190
|
+
reactIs_production.isSuspenseList = function(object) {
|
|
191
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
192
|
+
};
|
|
193
|
+
reactIs_production.isValidElementType = function(type) {
|
|
194
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
195
|
+
};
|
|
196
|
+
reactIs_production.typeOf = typeOf;
|
|
197
|
+
return reactIs_production;
|
|
198
|
+
}
|
|
199
|
+
var reactIs_development$1 = {};
|
|
200
|
+
/**
|
|
201
|
+
* @license React
|
|
202
|
+
* react-is.development.js
|
|
203
|
+
*
|
|
204
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the MIT license found in the
|
|
207
|
+
* LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/
|
|
209
|
+
var hasRequiredReactIs_development$1;
|
|
210
|
+
function requireReactIs_development$1() {
|
|
211
|
+
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
212
|
+
hasRequiredReactIs_development$1 = 1;
|
|
213
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
214
|
+
function typeOf(object) {
|
|
215
|
+
if ("object" === typeof object && null !== object) {
|
|
216
|
+
var $$typeof = object.$$typeof;
|
|
217
|
+
switch ($$typeof) {
|
|
218
|
+
case REACT_ELEMENT_TYPE: switch (object = object.type, object) {
|
|
219
|
+
case REACT_FRAGMENT_TYPE:
|
|
220
|
+
case REACT_PROFILER_TYPE:
|
|
221
|
+
case REACT_STRICT_MODE_TYPE:
|
|
222
|
+
case REACT_SUSPENSE_TYPE:
|
|
223
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
224
|
+
case REACT_VIEW_TRANSITION_TYPE: return object;
|
|
225
|
+
default: switch (object = object && object.$$typeof, object) {
|
|
226
|
+
case REACT_CONTEXT_TYPE:
|
|
227
|
+
case REACT_FORWARD_REF_TYPE:
|
|
228
|
+
case REACT_LAZY_TYPE:
|
|
229
|
+
case REACT_MEMO_TYPE: return object;
|
|
230
|
+
case REACT_CONSUMER_TYPE: return object;
|
|
231
|
+
default: return $$typeof;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
case REACT_PORTAL_TYPE: return $$typeof;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
239
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
240
|
+
reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
241
|
+
reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
|
|
242
|
+
reactIs_development$1.Element = REACT_ELEMENT_TYPE;
|
|
243
|
+
reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
244
|
+
reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
|
|
245
|
+
reactIs_development$1.Lazy = REACT_LAZY_TYPE;
|
|
246
|
+
reactIs_development$1.Memo = REACT_MEMO_TYPE;
|
|
247
|
+
reactIs_development$1.Portal = REACT_PORTAL_TYPE;
|
|
248
|
+
reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
|
|
249
|
+
reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
250
|
+
reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
|
|
251
|
+
reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
252
|
+
reactIs_development$1.isContextConsumer = function(object) {
|
|
253
|
+
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
254
|
+
};
|
|
255
|
+
reactIs_development$1.isContextProvider = function(object) {
|
|
256
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
257
|
+
};
|
|
258
|
+
reactIs_development$1.isElement = function(object) {
|
|
259
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
260
|
+
};
|
|
261
|
+
reactIs_development$1.isForwardRef = function(object) {
|
|
262
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
263
|
+
};
|
|
264
|
+
reactIs_development$1.isFragment = function(object) {
|
|
265
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
266
|
+
};
|
|
267
|
+
reactIs_development$1.isLazy = function(object) {
|
|
268
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
269
|
+
};
|
|
270
|
+
reactIs_development$1.isMemo = function(object) {
|
|
271
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
272
|
+
};
|
|
273
|
+
reactIs_development$1.isPortal = function(object) {
|
|
274
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
275
|
+
};
|
|
276
|
+
reactIs_development$1.isProfiler = function(object) {
|
|
277
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
278
|
+
};
|
|
279
|
+
reactIs_development$1.isStrictMode = function(object) {
|
|
280
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
281
|
+
};
|
|
282
|
+
reactIs_development$1.isSuspense = function(object) {
|
|
283
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
284
|
+
};
|
|
285
|
+
reactIs_development$1.isSuspenseList = function(object) {
|
|
286
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
287
|
+
};
|
|
288
|
+
reactIs_development$1.isValidElementType = function(type) {
|
|
289
|
+
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
290
|
+
};
|
|
291
|
+
reactIs_development$1.typeOf = typeOf;
|
|
292
|
+
}();
|
|
293
|
+
return reactIs_development$1;
|
|
294
|
+
}
|
|
295
|
+
var hasRequiredReactIs$1;
|
|
296
|
+
function requireReactIs$1() {
|
|
297
|
+
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
298
|
+
hasRequiredReactIs$1 = 1;
|
|
299
|
+
if (process.env.NODE_ENV === "production") {
|
|
300
|
+
reactIs$1.exports = requireReactIs_production();
|
|
301
|
+
} else {
|
|
302
|
+
reactIs$1.exports = requireReactIs_development$1();
|
|
303
|
+
}
|
|
304
|
+
return reactIs$1.exports;
|
|
305
|
+
}
|
|
306
|
+
var reactIsExports$1 = requireReactIs$1();
|
|
307
|
+
var index$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports$1);
|
|
308
|
+
var ReactIs19 = /* @__PURE__ */ _mergeNamespaces({
|
|
309
|
+
__proto__: null,
|
|
310
|
+
default: index$1
|
|
311
|
+
}, [reactIsExports$1]);
|
|
312
|
+
var reactIs = { exports: {} };
|
|
313
|
+
var reactIs_production_min = {};
|
|
314
|
+
/**
|
|
315
|
+
* @license React
|
|
316
|
+
* react-is.production.min.js
|
|
317
|
+
*
|
|
318
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
319
|
+
*
|
|
320
|
+
* This source code is licensed under the MIT license found in the
|
|
321
|
+
* LICENSE file in the root directory of this source tree.
|
|
322
|
+
*/
|
|
323
|
+
var hasRequiredReactIs_production_min;
|
|
324
|
+
function requireReactIs_production_min() {
|
|
325
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
326
|
+
hasRequiredReactIs_production_min = 1;
|
|
327
|
+
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
|
|
328
|
+
u = Symbol.for("react.module.reference");
|
|
329
|
+
function v(a) {
|
|
330
|
+
if ("object" === typeof a && null !== a) {
|
|
331
|
+
var r = a.$$typeof;
|
|
332
|
+
switch (r) {
|
|
333
|
+
case b: switch (a = a.type, a) {
|
|
334
|
+
case d:
|
|
335
|
+
case f:
|
|
336
|
+
case e:
|
|
337
|
+
case m:
|
|
338
|
+
case n: return a;
|
|
339
|
+
default: switch (a = a && a.$$typeof, a) {
|
|
340
|
+
case k:
|
|
341
|
+
case h:
|
|
342
|
+
case l:
|
|
343
|
+
case q:
|
|
344
|
+
case p:
|
|
345
|
+
case g: return a;
|
|
346
|
+
default: return r;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
case c: return r;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
reactIs_production_min.ContextConsumer = h;
|
|
354
|
+
reactIs_production_min.ContextProvider = g;
|
|
355
|
+
reactIs_production_min.Element = b;
|
|
356
|
+
reactIs_production_min.ForwardRef = l;
|
|
357
|
+
reactIs_production_min.Fragment = d;
|
|
358
|
+
reactIs_production_min.Lazy = q;
|
|
359
|
+
reactIs_production_min.Memo = p;
|
|
360
|
+
reactIs_production_min.Portal = c;
|
|
361
|
+
reactIs_production_min.Profiler = f;
|
|
362
|
+
reactIs_production_min.StrictMode = e;
|
|
363
|
+
reactIs_production_min.Suspense = m;
|
|
364
|
+
reactIs_production_min.SuspenseList = n;
|
|
365
|
+
reactIs_production_min.isAsyncMode = function() {
|
|
366
|
+
return false;
|
|
367
|
+
};
|
|
368
|
+
reactIs_production_min.isConcurrentMode = function() {
|
|
369
|
+
return false;
|
|
370
|
+
};
|
|
371
|
+
reactIs_production_min.isContextConsumer = function(a) {
|
|
372
|
+
return v(a) === h;
|
|
373
|
+
};
|
|
374
|
+
reactIs_production_min.isContextProvider = function(a) {
|
|
375
|
+
return v(a) === g;
|
|
376
|
+
};
|
|
377
|
+
reactIs_production_min.isElement = function(a) {
|
|
378
|
+
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
379
|
+
};
|
|
380
|
+
reactIs_production_min.isForwardRef = function(a) {
|
|
381
|
+
return v(a) === l;
|
|
382
|
+
};
|
|
383
|
+
reactIs_production_min.isFragment = function(a) {
|
|
384
|
+
return v(a) === d;
|
|
385
|
+
};
|
|
386
|
+
reactIs_production_min.isLazy = function(a) {
|
|
387
|
+
return v(a) === q;
|
|
388
|
+
};
|
|
389
|
+
reactIs_production_min.isMemo = function(a) {
|
|
390
|
+
return v(a) === p;
|
|
391
|
+
};
|
|
392
|
+
reactIs_production_min.isPortal = function(a) {
|
|
393
|
+
return v(a) === c;
|
|
394
|
+
};
|
|
395
|
+
reactIs_production_min.isProfiler = function(a) {
|
|
396
|
+
return v(a) === f;
|
|
397
|
+
};
|
|
398
|
+
reactIs_production_min.isStrictMode = function(a) {
|
|
399
|
+
return v(a) === e;
|
|
400
|
+
};
|
|
401
|
+
reactIs_production_min.isSuspense = function(a) {
|
|
402
|
+
return v(a) === m;
|
|
403
|
+
};
|
|
404
|
+
reactIs_production_min.isSuspenseList = function(a) {
|
|
405
|
+
return v(a) === n;
|
|
406
|
+
};
|
|
407
|
+
reactIs_production_min.isValidElementType = function(a) {
|
|
408
|
+
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? true : false;
|
|
409
|
+
};
|
|
410
|
+
reactIs_production_min.typeOf = v;
|
|
411
|
+
return reactIs_production_min;
|
|
412
|
+
}
|
|
413
|
+
var reactIs_development = {};
|
|
414
|
+
/**
|
|
415
|
+
* @license React
|
|
416
|
+
* react-is.development.js
|
|
417
|
+
*
|
|
418
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
419
|
+
*
|
|
420
|
+
* This source code is licensed under the MIT license found in the
|
|
421
|
+
* LICENSE file in the root directory of this source tree.
|
|
422
|
+
*/
|
|
423
|
+
var hasRequiredReactIs_development;
|
|
424
|
+
function requireReactIs_development() {
|
|
425
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
426
|
+
hasRequiredReactIs_development = 1;
|
|
427
|
+
if (process.env.NODE_ENV !== "production") {
|
|
428
|
+
(function() {
|
|
429
|
+
// ATTENTION
|
|
430
|
+
// When adding new symbols to this file,
|
|
431
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
432
|
+
// The Symbol used to tag the ReactElement-like types.
|
|
433
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
434
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
435
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
436
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
437
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
438
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
439
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
440
|
+
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
441
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
442
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
443
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
444
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
445
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
446
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
447
|
+
// -----------------------------------------------------------------------------
|
|
448
|
+
var enableScopeAPI = false;
|
|
449
|
+
var enableCacheElement = false;
|
|
450
|
+
var enableTransitionTracing = false;
|
|
451
|
+
var enableLegacyHidden = false;
|
|
452
|
+
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
453
|
+
// issues in DEV builds.
|
|
454
|
+
var enableDebugTracing = false;
|
|
455
|
+
var REACT_MODULE_REFERENCE;
|
|
456
|
+
{
|
|
457
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
458
|
+
}
|
|
459
|
+
function isValidElementType(type) {
|
|
460
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
461
|
+
return true;
|
|
462
|
+
}
|
|
463
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
464
|
+
return true;
|
|
465
|
+
}
|
|
466
|
+
if (typeof type === "object" && type !== null) {
|
|
467
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
468
|
+
return true;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
function typeOf(object) {
|
|
474
|
+
if (typeof object === "object" && object !== null) {
|
|
475
|
+
var $$typeof = object.$$typeof;
|
|
476
|
+
switch ($$typeof) {
|
|
477
|
+
case REACT_ELEMENT_TYPE:
|
|
478
|
+
var type = object.type;
|
|
479
|
+
switch (type) {
|
|
480
|
+
case REACT_FRAGMENT_TYPE:
|
|
481
|
+
case REACT_PROFILER_TYPE:
|
|
482
|
+
case REACT_STRICT_MODE_TYPE:
|
|
483
|
+
case REACT_SUSPENSE_TYPE:
|
|
484
|
+
case REACT_SUSPENSE_LIST_TYPE: return type;
|
|
485
|
+
default:
|
|
486
|
+
var $$typeofType = type && type.$$typeof;
|
|
487
|
+
switch ($$typeofType) {
|
|
488
|
+
case REACT_SERVER_CONTEXT_TYPE:
|
|
489
|
+
case REACT_CONTEXT_TYPE:
|
|
490
|
+
case REACT_FORWARD_REF_TYPE:
|
|
491
|
+
case REACT_LAZY_TYPE:
|
|
492
|
+
case REACT_MEMO_TYPE:
|
|
493
|
+
case REACT_PROVIDER_TYPE: return $$typeofType;
|
|
494
|
+
default: return $$typeof;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
case REACT_PORTAL_TYPE: return $$typeof;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
return undefined;
|
|
501
|
+
}
|
|
502
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
503
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
504
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
505
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
506
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
507
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
508
|
+
var Memo = REACT_MEMO_TYPE;
|
|
509
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
510
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
511
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
512
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
513
|
+
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
514
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
515
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
516
|
+
function isAsyncMode(object) {
|
|
517
|
+
{
|
|
518
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
519
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
520
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, " + "and will be removed in React 18+.");
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
return false;
|
|
524
|
+
}
|
|
525
|
+
function isConcurrentMode(object) {
|
|
526
|
+
{
|
|
527
|
+
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
528
|
+
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
529
|
+
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, " + "and will be removed in React 18+.");
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
return false;
|
|
533
|
+
}
|
|
534
|
+
function isContextConsumer(object) {
|
|
535
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
536
|
+
}
|
|
537
|
+
function isContextProvider(object) {
|
|
538
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
539
|
+
}
|
|
540
|
+
function isElement(object) {
|
|
541
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
542
|
+
}
|
|
543
|
+
function isForwardRef(object) {
|
|
544
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
545
|
+
}
|
|
546
|
+
function isFragment(object) {
|
|
547
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
548
|
+
}
|
|
549
|
+
function isLazy(object) {
|
|
550
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
551
|
+
}
|
|
552
|
+
function isMemo(object) {
|
|
553
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
554
|
+
}
|
|
555
|
+
function isPortal(object) {
|
|
556
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
557
|
+
}
|
|
558
|
+
function isProfiler(object) {
|
|
559
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
560
|
+
}
|
|
561
|
+
function isStrictMode(object) {
|
|
562
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
563
|
+
}
|
|
564
|
+
function isSuspense(object) {
|
|
565
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
566
|
+
}
|
|
567
|
+
function isSuspenseList(object) {
|
|
568
|
+
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
569
|
+
}
|
|
570
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
571
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
572
|
+
reactIs_development.Element = Element;
|
|
573
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
574
|
+
reactIs_development.Fragment = Fragment;
|
|
575
|
+
reactIs_development.Lazy = Lazy;
|
|
576
|
+
reactIs_development.Memo = Memo;
|
|
577
|
+
reactIs_development.Portal = Portal;
|
|
578
|
+
reactIs_development.Profiler = Profiler;
|
|
579
|
+
reactIs_development.StrictMode = StrictMode;
|
|
580
|
+
reactIs_development.Suspense = Suspense;
|
|
581
|
+
reactIs_development.SuspenseList = SuspenseList;
|
|
582
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
583
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
584
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
585
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
586
|
+
reactIs_development.isElement = isElement;
|
|
587
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
588
|
+
reactIs_development.isFragment = isFragment;
|
|
589
|
+
reactIs_development.isLazy = isLazy;
|
|
590
|
+
reactIs_development.isMemo = isMemo;
|
|
591
|
+
reactIs_development.isPortal = isPortal;
|
|
592
|
+
reactIs_development.isProfiler = isProfiler;
|
|
593
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
594
|
+
reactIs_development.isSuspense = isSuspense;
|
|
595
|
+
reactIs_development.isSuspenseList = isSuspenseList;
|
|
596
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
597
|
+
reactIs_development.typeOf = typeOf;
|
|
598
|
+
})();
|
|
599
|
+
}
|
|
600
|
+
return reactIs_development;
|
|
601
|
+
}
|
|
602
|
+
var hasRequiredReactIs;
|
|
603
|
+
function requireReactIs() {
|
|
604
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
605
|
+
hasRequiredReactIs = 1;
|
|
606
|
+
if (process.env.NODE_ENV === "production") {
|
|
607
|
+
reactIs.exports = requireReactIs_production_min();
|
|
608
|
+
} else {
|
|
609
|
+
reactIs.exports = requireReactIs_development();
|
|
610
|
+
}
|
|
611
|
+
return reactIs.exports;
|
|
612
|
+
}
|
|
613
|
+
var reactIsExports = requireReactIs();
|
|
614
|
+
var index = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports);
|
|
615
|
+
var ReactIs18 = /* @__PURE__ */ _mergeNamespaces({
|
|
616
|
+
__proto__: null,
|
|
617
|
+
default: index
|
|
618
|
+
}, [reactIsExports]);
|
|
619
|
+
const reactIsMethods = [
|
|
620
|
+
"isAsyncMode",
|
|
621
|
+
"isConcurrentMode",
|
|
622
|
+
"isContextConsumer",
|
|
623
|
+
"isContextProvider",
|
|
624
|
+
"isElement",
|
|
625
|
+
"isForwardRef",
|
|
626
|
+
"isFragment",
|
|
627
|
+
"isLazy",
|
|
628
|
+
"isMemo",
|
|
629
|
+
"isPortal",
|
|
630
|
+
"isProfiler",
|
|
631
|
+
"isStrictMode",
|
|
632
|
+
"isSuspense",
|
|
633
|
+
"isSuspenseList",
|
|
634
|
+
"isValidElementType"
|
|
635
|
+
];
|
|
636
|
+
Object.fromEntries(reactIsMethods.map((m) => [m, (v) => ReactIs18[m](v) || ReactIs19[m](v)]));
|
|
637
|
+
|
|
638
|
+
let getPromiseValue = () => 'Promise{…}';
|
|
639
|
+
try {
|
|
640
|
+
// @ts-ignore
|
|
641
|
+
const { getPromiseDetails, kPending, kRejected } = process.binding('util');
|
|
642
|
+
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
643
|
+
getPromiseValue = (value, options) => {
|
|
644
|
+
const [state, innerValue] = getPromiseDetails(value);
|
|
645
|
+
if (state === kPending) {
|
|
646
|
+
return 'Promise{<pending>}';
|
|
647
|
+
}
|
|
648
|
+
return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`;
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
catch (notNode) {
|
|
653
|
+
/* ignore */
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Get original stacktrace without source map support the most performant way.
|
|
658
|
+
* - Create only 1 stack frame.
|
|
659
|
+
* - Rewrite prepareStackTrace to bypass "support-stack-trace" (usually takes ~250ms).
|
|
660
|
+
*/
|
|
661
|
+
function createSimpleStackTrace(options) {
|
|
662
|
+
const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {};
|
|
663
|
+
const limit = Error.stackTraceLimit;
|
|
664
|
+
const prepareStackTrace = Error.prepareStackTrace;
|
|
665
|
+
Error.stackTraceLimit = stackTraceLimit;
|
|
666
|
+
Error.prepareStackTrace = (e) => e.stack;
|
|
667
|
+
const err = new Error(message);
|
|
668
|
+
const stackTrace = err.stack || "";
|
|
669
|
+
Error.prepareStackTrace = prepareStackTrace;
|
|
670
|
+
Error.stackTraceLimit = limit;
|
|
671
|
+
return stackTrace;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
var jsTokens_1;
|
|
675
|
+
var hasRequiredJsTokens;
|
|
676
|
+
function requireJsTokens() {
|
|
677
|
+
if (hasRequiredJsTokens) return jsTokens_1;
|
|
678
|
+
hasRequiredJsTokens = 1;
|
|
679
|
+
// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell
|
|
680
|
+
// License: MIT.
|
|
681
|
+
var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace;
|
|
682
|
+
RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy;
|
|
683
|
+
Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
|
|
684
|
+
Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy;
|
|
685
|
+
StringLiteral = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y;
|
|
686
|
+
NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;
|
|
687
|
+
Template = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y;
|
|
688
|
+
WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/uy;
|
|
689
|
+
LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
|
|
690
|
+
MultiLineComment = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y;
|
|
691
|
+
SingleLineComment = /\/\/.*/y;
|
|
692
|
+
JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y;
|
|
693
|
+
JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy;
|
|
694
|
+
JSXString = /(['"])(?:(?!\1)[^])*(\1)?/y;
|
|
695
|
+
JSXText = /[^<>{}]+/y;
|
|
696
|
+
TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
|
|
697
|
+
TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
|
|
698
|
+
KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
|
|
699
|
+
KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
|
|
700
|
+
Newline = RegExp(LineTerminatorSequence.source);
|
|
701
|
+
jsTokens_1 = function* (input, { jsx = false } = {}) {
|
|
702
|
+
var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
|
|
703
|
+
({length} = input);
|
|
704
|
+
lastIndex = 0;
|
|
705
|
+
lastSignificantToken = "";
|
|
706
|
+
stack = [{ tag: "JS" }];
|
|
707
|
+
braces = [];
|
|
708
|
+
parenNesting = 0;
|
|
709
|
+
postfixIncDec = false;
|
|
710
|
+
while (lastIndex < length) {
|
|
711
|
+
mode = stack[stack.length - 1];
|
|
712
|
+
switch (mode.tag) {
|
|
713
|
+
case "JS":
|
|
714
|
+
case "JSNonExpressionParen":
|
|
715
|
+
case "InterpolationInTemplate":
|
|
716
|
+
case "InterpolationInJSX":
|
|
717
|
+
if (input[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
|
|
718
|
+
RegularExpressionLiteral.lastIndex = lastIndex;
|
|
719
|
+
if (match = RegularExpressionLiteral.exec(input)) {
|
|
720
|
+
lastIndex = RegularExpressionLiteral.lastIndex;
|
|
721
|
+
lastSignificantToken = match[0];
|
|
722
|
+
postfixIncDec = true;
|
|
723
|
+
yield {
|
|
724
|
+
type: "RegularExpressionLiteral",
|
|
725
|
+
value: match[0],
|
|
726
|
+
closed: match[1] !== void 0 && match[1] !== "\\"
|
|
727
|
+
};
|
|
728
|
+
continue;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
Punctuator.lastIndex = lastIndex;
|
|
732
|
+
if (match = Punctuator.exec(input)) {
|
|
733
|
+
punctuator = match[0];
|
|
734
|
+
nextLastIndex = Punctuator.lastIndex;
|
|
735
|
+
nextLastSignificantToken = punctuator;
|
|
736
|
+
switch (punctuator) {
|
|
737
|
+
case "(":
|
|
738
|
+
if (lastSignificantToken === "?NonExpressionParenKeyword") {
|
|
739
|
+
stack.push({
|
|
740
|
+
tag: "JSNonExpressionParen",
|
|
741
|
+
nesting: parenNesting
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
parenNesting++;
|
|
745
|
+
postfixIncDec = false;
|
|
746
|
+
break;
|
|
747
|
+
case ")":
|
|
748
|
+
parenNesting--;
|
|
749
|
+
postfixIncDec = true;
|
|
750
|
+
if (mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting) {
|
|
751
|
+
stack.pop();
|
|
752
|
+
nextLastSignificantToken = "?NonExpressionParenEnd";
|
|
753
|
+
postfixIncDec = false;
|
|
754
|
+
}
|
|
755
|
+
break;
|
|
756
|
+
case "{":
|
|
757
|
+
Punctuator.lastIndex = 0;
|
|
758
|
+
isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));
|
|
759
|
+
braces.push(isExpression);
|
|
760
|
+
postfixIncDec = false;
|
|
761
|
+
break;
|
|
762
|
+
case "}":
|
|
763
|
+
switch (mode.tag) {
|
|
764
|
+
case "InterpolationInTemplate":
|
|
765
|
+
if (braces.length === mode.nesting) {
|
|
766
|
+
Template.lastIndex = lastIndex;
|
|
767
|
+
match = Template.exec(input);
|
|
768
|
+
lastIndex = Template.lastIndex;
|
|
769
|
+
lastSignificantToken = match[0];
|
|
770
|
+
if (match[1] === "${") {
|
|
771
|
+
lastSignificantToken = "?InterpolationInTemplate";
|
|
772
|
+
postfixIncDec = false;
|
|
773
|
+
yield {
|
|
774
|
+
type: "TemplateMiddle",
|
|
775
|
+
value: match[0]
|
|
776
|
+
};
|
|
777
|
+
} else {
|
|
778
|
+
stack.pop();
|
|
779
|
+
postfixIncDec = true;
|
|
780
|
+
yield {
|
|
781
|
+
type: "TemplateTail",
|
|
782
|
+
value: match[0],
|
|
783
|
+
closed: match[1] === "`"
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
break;
|
|
789
|
+
case "InterpolationInJSX": if (braces.length === mode.nesting) {
|
|
790
|
+
stack.pop();
|
|
791
|
+
lastIndex += 1;
|
|
792
|
+
lastSignificantToken = "}";
|
|
793
|
+
yield {
|
|
794
|
+
type: "JSXPunctuator",
|
|
795
|
+
value: "}"
|
|
796
|
+
};
|
|
797
|
+
continue;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
postfixIncDec = braces.pop();
|
|
801
|
+
nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}";
|
|
802
|
+
break;
|
|
803
|
+
case "]":
|
|
804
|
+
postfixIncDec = true;
|
|
805
|
+
break;
|
|
806
|
+
case "++":
|
|
807
|
+
case "--":
|
|
808
|
+
nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec";
|
|
809
|
+
break;
|
|
810
|
+
case "<":
|
|
811
|
+
if (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
|
|
812
|
+
stack.push({ tag: "JSXTag" });
|
|
813
|
+
lastIndex += 1;
|
|
814
|
+
lastSignificantToken = "<";
|
|
815
|
+
yield {
|
|
816
|
+
type: "JSXPunctuator",
|
|
817
|
+
value: punctuator
|
|
818
|
+
};
|
|
819
|
+
continue;
|
|
820
|
+
}
|
|
821
|
+
postfixIncDec = false;
|
|
822
|
+
break;
|
|
823
|
+
default: postfixIncDec = false;
|
|
824
|
+
}
|
|
825
|
+
lastIndex = nextLastIndex;
|
|
826
|
+
lastSignificantToken = nextLastSignificantToken;
|
|
827
|
+
yield {
|
|
828
|
+
type: "Punctuator",
|
|
829
|
+
value: punctuator
|
|
830
|
+
};
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
Identifier.lastIndex = lastIndex;
|
|
834
|
+
if (match = Identifier.exec(input)) {
|
|
835
|
+
lastIndex = Identifier.lastIndex;
|
|
836
|
+
nextLastSignificantToken = match[0];
|
|
837
|
+
switch (match[0]) {
|
|
838
|
+
case "for":
|
|
839
|
+
case "if":
|
|
840
|
+
case "while":
|
|
841
|
+
case "with": if (lastSignificantToken !== "." && lastSignificantToken !== "?.") {
|
|
842
|
+
nextLastSignificantToken = "?NonExpressionParenKeyword";
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
lastSignificantToken = nextLastSignificantToken;
|
|
846
|
+
postfixIncDec = !KeywordsWithExpressionAfter.test(match[0]);
|
|
847
|
+
yield {
|
|
848
|
+
type: match[1] === "#" ? "PrivateIdentifier" : "IdentifierName",
|
|
849
|
+
value: match[0]
|
|
850
|
+
};
|
|
851
|
+
continue;
|
|
852
|
+
}
|
|
853
|
+
StringLiteral.lastIndex = lastIndex;
|
|
854
|
+
if (match = StringLiteral.exec(input)) {
|
|
855
|
+
lastIndex = StringLiteral.lastIndex;
|
|
856
|
+
lastSignificantToken = match[0];
|
|
857
|
+
postfixIncDec = true;
|
|
858
|
+
yield {
|
|
859
|
+
type: "StringLiteral",
|
|
860
|
+
value: match[0],
|
|
861
|
+
closed: match[2] !== void 0
|
|
862
|
+
};
|
|
863
|
+
continue;
|
|
864
|
+
}
|
|
865
|
+
NumericLiteral.lastIndex = lastIndex;
|
|
866
|
+
if (match = NumericLiteral.exec(input)) {
|
|
867
|
+
lastIndex = NumericLiteral.lastIndex;
|
|
868
|
+
lastSignificantToken = match[0];
|
|
869
|
+
postfixIncDec = true;
|
|
870
|
+
yield {
|
|
871
|
+
type: "NumericLiteral",
|
|
872
|
+
value: match[0]
|
|
873
|
+
};
|
|
874
|
+
continue;
|
|
875
|
+
}
|
|
876
|
+
Template.lastIndex = lastIndex;
|
|
877
|
+
if (match = Template.exec(input)) {
|
|
878
|
+
lastIndex = Template.lastIndex;
|
|
879
|
+
lastSignificantToken = match[0];
|
|
880
|
+
if (match[1] === "${") {
|
|
881
|
+
lastSignificantToken = "?InterpolationInTemplate";
|
|
882
|
+
stack.push({
|
|
883
|
+
tag: "InterpolationInTemplate",
|
|
884
|
+
nesting: braces.length
|
|
885
|
+
});
|
|
886
|
+
postfixIncDec = false;
|
|
887
|
+
yield {
|
|
888
|
+
type: "TemplateHead",
|
|
889
|
+
value: match[0]
|
|
890
|
+
};
|
|
891
|
+
} else {
|
|
892
|
+
postfixIncDec = true;
|
|
893
|
+
yield {
|
|
894
|
+
type: "NoSubstitutionTemplate",
|
|
895
|
+
value: match[0],
|
|
896
|
+
closed: match[1] === "`"
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
continue;
|
|
900
|
+
}
|
|
901
|
+
break;
|
|
902
|
+
case "JSXTag":
|
|
903
|
+
case "JSXTagEnd":
|
|
904
|
+
JSXPunctuator.lastIndex = lastIndex;
|
|
905
|
+
if (match = JSXPunctuator.exec(input)) {
|
|
906
|
+
lastIndex = JSXPunctuator.lastIndex;
|
|
907
|
+
nextLastSignificantToken = match[0];
|
|
908
|
+
switch (match[0]) {
|
|
909
|
+
case "<":
|
|
910
|
+
stack.push({ tag: "JSXTag" });
|
|
911
|
+
break;
|
|
912
|
+
case ">":
|
|
913
|
+
stack.pop();
|
|
914
|
+
if (lastSignificantToken === "/" || mode.tag === "JSXTagEnd") {
|
|
915
|
+
nextLastSignificantToken = "?JSX";
|
|
916
|
+
postfixIncDec = true;
|
|
917
|
+
} else {
|
|
918
|
+
stack.push({ tag: "JSXChildren" });
|
|
919
|
+
}
|
|
920
|
+
break;
|
|
921
|
+
case "{":
|
|
922
|
+
stack.push({
|
|
923
|
+
tag: "InterpolationInJSX",
|
|
924
|
+
nesting: braces.length
|
|
925
|
+
});
|
|
926
|
+
nextLastSignificantToken = "?InterpolationInJSX";
|
|
927
|
+
postfixIncDec = false;
|
|
928
|
+
break;
|
|
929
|
+
case "/": if (lastSignificantToken === "<") {
|
|
930
|
+
stack.pop();
|
|
931
|
+
if (stack[stack.length - 1].tag === "JSXChildren") {
|
|
932
|
+
stack.pop();
|
|
933
|
+
}
|
|
934
|
+
stack.push({ tag: "JSXTagEnd" });
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
lastSignificantToken = nextLastSignificantToken;
|
|
938
|
+
yield {
|
|
939
|
+
type: "JSXPunctuator",
|
|
940
|
+
value: match[0]
|
|
941
|
+
};
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
JSXIdentifier.lastIndex = lastIndex;
|
|
945
|
+
if (match = JSXIdentifier.exec(input)) {
|
|
946
|
+
lastIndex = JSXIdentifier.lastIndex;
|
|
947
|
+
lastSignificantToken = match[0];
|
|
948
|
+
yield {
|
|
949
|
+
type: "JSXIdentifier",
|
|
950
|
+
value: match[0]
|
|
951
|
+
};
|
|
952
|
+
continue;
|
|
953
|
+
}
|
|
954
|
+
JSXString.lastIndex = lastIndex;
|
|
955
|
+
if (match = JSXString.exec(input)) {
|
|
956
|
+
lastIndex = JSXString.lastIndex;
|
|
957
|
+
lastSignificantToken = match[0];
|
|
958
|
+
yield {
|
|
959
|
+
type: "JSXString",
|
|
960
|
+
value: match[0],
|
|
961
|
+
closed: match[2] !== void 0
|
|
962
|
+
};
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
break;
|
|
966
|
+
case "JSXChildren":
|
|
967
|
+
JSXText.lastIndex = lastIndex;
|
|
968
|
+
if (match = JSXText.exec(input)) {
|
|
969
|
+
lastIndex = JSXText.lastIndex;
|
|
970
|
+
lastSignificantToken = match[0];
|
|
971
|
+
yield {
|
|
972
|
+
type: "JSXText",
|
|
973
|
+
value: match[0]
|
|
974
|
+
};
|
|
975
|
+
continue;
|
|
976
|
+
}
|
|
977
|
+
switch (input[lastIndex]) {
|
|
978
|
+
case "<":
|
|
979
|
+
stack.push({ tag: "JSXTag" });
|
|
980
|
+
lastIndex++;
|
|
981
|
+
lastSignificantToken = "<";
|
|
982
|
+
yield {
|
|
983
|
+
type: "JSXPunctuator",
|
|
984
|
+
value: "<"
|
|
985
|
+
};
|
|
986
|
+
continue;
|
|
987
|
+
case "{":
|
|
988
|
+
stack.push({
|
|
989
|
+
tag: "InterpolationInJSX",
|
|
990
|
+
nesting: braces.length
|
|
991
|
+
});
|
|
992
|
+
lastIndex++;
|
|
993
|
+
lastSignificantToken = "?InterpolationInJSX";
|
|
994
|
+
postfixIncDec = false;
|
|
995
|
+
yield {
|
|
996
|
+
type: "JSXPunctuator",
|
|
997
|
+
value: "{"
|
|
998
|
+
};
|
|
999
|
+
continue;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
WhiteSpace.lastIndex = lastIndex;
|
|
1003
|
+
if (match = WhiteSpace.exec(input)) {
|
|
1004
|
+
lastIndex = WhiteSpace.lastIndex;
|
|
1005
|
+
yield {
|
|
1006
|
+
type: "WhiteSpace",
|
|
1007
|
+
value: match[0]
|
|
1008
|
+
};
|
|
1009
|
+
continue;
|
|
1010
|
+
}
|
|
1011
|
+
LineTerminatorSequence.lastIndex = lastIndex;
|
|
1012
|
+
if (match = LineTerminatorSequence.exec(input)) {
|
|
1013
|
+
lastIndex = LineTerminatorSequence.lastIndex;
|
|
1014
|
+
postfixIncDec = false;
|
|
1015
|
+
if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
|
|
1016
|
+
lastSignificantToken = "?NoLineTerminatorHere";
|
|
1017
|
+
}
|
|
1018
|
+
yield {
|
|
1019
|
+
type: "LineTerminatorSequence",
|
|
1020
|
+
value: match[0]
|
|
1021
|
+
};
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
MultiLineComment.lastIndex = lastIndex;
|
|
1025
|
+
if (match = MultiLineComment.exec(input)) {
|
|
1026
|
+
lastIndex = MultiLineComment.lastIndex;
|
|
1027
|
+
if (Newline.test(match[0])) {
|
|
1028
|
+
postfixIncDec = false;
|
|
1029
|
+
if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
|
|
1030
|
+
lastSignificantToken = "?NoLineTerminatorHere";
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
yield {
|
|
1034
|
+
type: "MultiLineComment",
|
|
1035
|
+
value: match[0],
|
|
1036
|
+
closed: match[1] !== void 0
|
|
1037
|
+
};
|
|
1038
|
+
continue;
|
|
1039
|
+
}
|
|
1040
|
+
SingleLineComment.lastIndex = lastIndex;
|
|
1041
|
+
if (match = SingleLineComment.exec(input)) {
|
|
1042
|
+
lastIndex = SingleLineComment.lastIndex;
|
|
1043
|
+
postfixIncDec = false;
|
|
1044
|
+
yield {
|
|
1045
|
+
type: "SingleLineComment",
|
|
1046
|
+
value: match[0]
|
|
1047
|
+
};
|
|
1048
|
+
continue;
|
|
1049
|
+
}
|
|
1050
|
+
firstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));
|
|
1051
|
+
lastIndex += firstCodePoint.length;
|
|
1052
|
+
lastSignificantToken = firstCodePoint;
|
|
1053
|
+
postfixIncDec = false;
|
|
1054
|
+
yield {
|
|
1055
|
+
type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid",
|
|
1056
|
+
value: firstCodePoint
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
return void 0;
|
|
1060
|
+
};
|
|
1061
|
+
return jsTokens_1;
|
|
1062
|
+
}
|
|
1063
|
+
requireJsTokens();
|
|
1064
|
+
// src/index.ts
|
|
1065
|
+
var reservedWords = {
|
|
1066
|
+
keyword: [
|
|
1067
|
+
"break",
|
|
1068
|
+
"case",
|
|
1069
|
+
"catch",
|
|
1070
|
+
"continue",
|
|
1071
|
+
"debugger",
|
|
1072
|
+
"default",
|
|
1073
|
+
"do",
|
|
1074
|
+
"else",
|
|
1075
|
+
"finally",
|
|
1076
|
+
"for",
|
|
1077
|
+
"function",
|
|
1078
|
+
"if",
|
|
1079
|
+
"return",
|
|
1080
|
+
"switch",
|
|
1081
|
+
"throw",
|
|
1082
|
+
"try",
|
|
1083
|
+
"var",
|
|
1084
|
+
"const",
|
|
1085
|
+
"while",
|
|
1086
|
+
"with",
|
|
1087
|
+
"new",
|
|
1088
|
+
"this",
|
|
1089
|
+
"super",
|
|
1090
|
+
"class",
|
|
1091
|
+
"extends",
|
|
1092
|
+
"export",
|
|
1093
|
+
"import",
|
|
1094
|
+
"null",
|
|
1095
|
+
"true",
|
|
1096
|
+
"false",
|
|
1097
|
+
"in",
|
|
1098
|
+
"instanceof",
|
|
1099
|
+
"typeof",
|
|
1100
|
+
"void",
|
|
1101
|
+
"delete"
|
|
1102
|
+
],
|
|
1103
|
+
strict: [
|
|
1104
|
+
"implements",
|
|
1105
|
+
"interface",
|
|
1106
|
+
"let",
|
|
1107
|
+
"package",
|
|
1108
|
+
"private",
|
|
1109
|
+
"protected",
|
|
1110
|
+
"public",
|
|
1111
|
+
"static",
|
|
1112
|
+
"yield"
|
|
1113
|
+
]
|
|
1114
|
+
}; new Set(reservedWords.keyword); new Set(reservedWords.strict);
|
|
1115
|
+
|
|
1116
|
+
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1117
|
+
const intToChar = new Uint8Array(64);
|
|
1118
|
+
const charToInt = new Uint8Array(128);
|
|
1119
|
+
for (let i = 0; i < chars.length; i++) {
|
|
1120
|
+
const c = chars.charCodeAt(i);
|
|
1121
|
+
intToChar[i] = c;
|
|
1122
|
+
charToInt[c] = i;
|
|
1123
|
+
}
|
|
1124
|
+
var UrlType;
|
|
1125
|
+
(function(UrlType) {
|
|
1126
|
+
UrlType[UrlType["Empty"] = 1] = "Empty";
|
|
1127
|
+
UrlType[UrlType["Hash"] = 2] = "Hash";
|
|
1128
|
+
UrlType[UrlType["Query"] = 3] = "Query";
|
|
1129
|
+
UrlType[UrlType["RelativePath"] = 4] = "RelativePath";
|
|
1130
|
+
UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath";
|
|
1131
|
+
UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative";
|
|
1132
|
+
UrlType[UrlType["Absolute"] = 7] = "Absolute";
|
|
1133
|
+
})(UrlType || (UrlType = {}));
|
|
1134
|
+
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
1135
|
+
function normalizeWindowsPath(input = "") {
|
|
1136
|
+
if (!input) {
|
|
1137
|
+
return input;
|
|
1138
|
+
}
|
|
1139
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
1140
|
+
}
|
|
1141
|
+
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
1142
|
+
function cwd() {
|
|
1143
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
1144
|
+
return process.cwd().replace(/\\/g, "/");
|
|
1145
|
+
}
|
|
1146
|
+
return "/";
|
|
1147
|
+
}
|
|
1148
|
+
const resolve = function(...arguments_) {
|
|
1149
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
1150
|
+
let resolvedPath = "";
|
|
1151
|
+
let resolvedAbsolute = false;
|
|
1152
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
1153
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
1154
|
+
if (!path || path.length === 0) {
|
|
1155
|
+
continue;
|
|
1156
|
+
}
|
|
1157
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
1158
|
+
resolvedAbsolute = isAbsolute(path);
|
|
1159
|
+
}
|
|
1160
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
1161
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
1162
|
+
return `/${resolvedPath}`;
|
|
1163
|
+
}
|
|
1164
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
1165
|
+
};
|
|
1166
|
+
function normalizeString(path, allowAboveRoot) {
|
|
1167
|
+
let res = "";
|
|
1168
|
+
let lastSegmentLength = 0;
|
|
1169
|
+
let lastSlash = -1;
|
|
1170
|
+
let dots = 0;
|
|
1171
|
+
let char = null;
|
|
1172
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
1173
|
+
if (index < path.length) {
|
|
1174
|
+
char = path[index];
|
|
1175
|
+
} else if (char === "/") {
|
|
1176
|
+
break;
|
|
1177
|
+
} else {
|
|
1178
|
+
char = "/";
|
|
1179
|
+
}
|
|
1180
|
+
if (char === "/") {
|
|
1181
|
+
if (lastSlash === index - 1 || dots === 1);
|
|
1182
|
+
else if (dots === 2) {
|
|
1183
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
1184
|
+
if (res.length > 2) {
|
|
1185
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
1186
|
+
if (lastSlashIndex === -1) {
|
|
1187
|
+
res = "";
|
|
1188
|
+
lastSegmentLength = 0;
|
|
1189
|
+
} else {
|
|
1190
|
+
res = res.slice(0, lastSlashIndex);
|
|
1191
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
1192
|
+
}
|
|
1193
|
+
lastSlash = index;
|
|
1194
|
+
dots = 0;
|
|
1195
|
+
continue;
|
|
1196
|
+
} else if (res.length > 0) {
|
|
1197
|
+
res = "";
|
|
1198
|
+
lastSegmentLength = 0;
|
|
1199
|
+
lastSlash = index;
|
|
1200
|
+
dots = 0;
|
|
1201
|
+
continue;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
if (allowAboveRoot) {
|
|
1205
|
+
res += res.length > 0 ? "/.." : "..";
|
|
1206
|
+
lastSegmentLength = 2;
|
|
1207
|
+
}
|
|
1208
|
+
} else {
|
|
1209
|
+
if (res.length > 0) {
|
|
1210
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
1211
|
+
} else {
|
|
1212
|
+
res = path.slice(lastSlash + 1, index);
|
|
1213
|
+
}
|
|
1214
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
1215
|
+
}
|
|
1216
|
+
lastSlash = index;
|
|
1217
|
+
dots = 0;
|
|
1218
|
+
} else if (char === "." && dots !== -1) {
|
|
1219
|
+
++dots;
|
|
1220
|
+
} else {
|
|
1221
|
+
dots = -1;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
return res;
|
|
1225
|
+
}
|
|
1226
|
+
const isAbsolute = function(p) {
|
|
1227
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
1228
|
+
};
|
|
1229
|
+
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
|
|
1230
|
+
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
|
|
1231
|
+
function extractLocation(urlLike) {
|
|
1232
|
+
// Fail-fast but return locations like "(native)"
|
|
1233
|
+
if (!urlLike.includes(":")) {
|
|
1234
|
+
return [urlLike];
|
|
1235
|
+
}
|
|
1236
|
+
const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
|
|
1237
|
+
const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, ""));
|
|
1238
|
+
if (!parts) {
|
|
1239
|
+
return [urlLike];
|
|
1240
|
+
}
|
|
1241
|
+
let url = parts[1];
|
|
1242
|
+
if (url.startsWith("async ")) {
|
|
1243
|
+
url = url.slice(6);
|
|
1244
|
+
}
|
|
1245
|
+
if (url.startsWith("http:") || url.startsWith("https:")) {
|
|
1246
|
+
const urlObj = new URL(url);
|
|
1247
|
+
urlObj.searchParams.delete("import");
|
|
1248
|
+
urlObj.searchParams.delete("browserv");
|
|
1249
|
+
url = urlObj.pathname + urlObj.hash + urlObj.search;
|
|
1250
|
+
}
|
|
1251
|
+
if (url.startsWith("/@fs/")) {
|
|
1252
|
+
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
|
1253
|
+
url = url.slice(isWindows ? 5 : 4);
|
|
1254
|
+
}
|
|
1255
|
+
return [
|
|
1256
|
+
url,
|
|
1257
|
+
parts[2] || undefined,
|
|
1258
|
+
parts[3] || undefined
|
|
1259
|
+
];
|
|
1260
|
+
}
|
|
1261
|
+
function parseSingleFFOrSafariStack(raw) {
|
|
1262
|
+
let line = raw.trim();
|
|
1263
|
+
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {
|
|
1264
|
+
return null;
|
|
1265
|
+
}
|
|
1266
|
+
if (line.includes(" > eval")) {
|
|
1267
|
+
line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
|
|
1268
|
+
}
|
|
1269
|
+
if (!line.includes("@") && !line.includes(":")) {
|
|
1270
|
+
return null;
|
|
1271
|
+
}
|
|
1272
|
+
// eslint-disable-next-line regexp/no-super-linear-backtracking, regexp/optimal-quantifier-concatenation
|
|
1273
|
+
const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/;
|
|
1274
|
+
const matches = line.match(functionNameRegex);
|
|
1275
|
+
const functionName = matches && matches[1] ? matches[1] : undefined;
|
|
1276
|
+
const [url, lineNumber, columnNumber] = extractLocation(line.replace(functionNameRegex, ""));
|
|
1277
|
+
if (!url || !lineNumber || !columnNumber) {
|
|
1278
|
+
return null;
|
|
1279
|
+
}
|
|
1280
|
+
return {
|
|
1281
|
+
file: url,
|
|
1282
|
+
method: functionName || "",
|
|
1283
|
+
line: Number.parseInt(lineNumber),
|
|
1284
|
+
column: Number.parseInt(columnNumber)
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
function parseSingleStack(raw) {
|
|
1288
|
+
const line = raw.trim();
|
|
1289
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) {
|
|
1290
|
+
return parseSingleFFOrSafariStack(line);
|
|
1291
|
+
}
|
|
1292
|
+
return parseSingleV8Stack(line);
|
|
1293
|
+
}
|
|
1294
|
+
// Based on https://github.com/stacktracejs/error-stack-parser
|
|
1295
|
+
// Credit to stacktracejs
|
|
1296
|
+
function parseSingleV8Stack(raw) {
|
|
1297
|
+
let line = raw.trim();
|
|
1298
|
+
if (!CHROME_IE_STACK_REGEXP.test(line)) {
|
|
1299
|
+
return null;
|
|
1300
|
+
}
|
|
1301
|
+
if (line.includes("(eval ")) {
|
|
1302
|
+
line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
|
|
1303
|
+
}
|
|
1304
|
+
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
|
|
1305
|
+
// capture and preserve the parenthesized location "(/foo/my bar.js:12:87)" in
|
|
1306
|
+
// case it has spaces in it, as the string is split on \s+ later on
|
|
1307
|
+
const location = sanitizedLine.match(/ (\(.+\)$)/);
|
|
1308
|
+
// remove the parenthesized location from the line, if it was matched
|
|
1309
|
+
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
|
|
1310
|
+
// if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine
|
|
1311
|
+
// because this line doesn't have function name
|
|
1312
|
+
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
|
|
1313
|
+
let method = location && sanitizedLine || "";
|
|
1314
|
+
let file = url && ["eval", "<anonymous>"].includes(url) ? undefined : url;
|
|
1315
|
+
if (!file || !lineNumber || !columnNumber) {
|
|
1316
|
+
return null;
|
|
1317
|
+
}
|
|
1318
|
+
if (method.startsWith("async ")) {
|
|
1319
|
+
method = method.slice(6);
|
|
1320
|
+
}
|
|
1321
|
+
if (file.startsWith("file://")) {
|
|
1322
|
+
file = file.slice(7);
|
|
1323
|
+
}
|
|
1324
|
+
// normalize Windows path (\ -> /)
|
|
1325
|
+
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
|
|
1326
|
+
if (method) {
|
|
1327
|
+
method = method.replace(/__vite_ssr_import_\d+__\./g, "");
|
|
1328
|
+
}
|
|
1329
|
+
return {
|
|
1330
|
+
method,
|
|
1331
|
+
file,
|
|
1332
|
+
line: Number.parseInt(lineNumber),
|
|
1333
|
+
column: Number.parseInt(columnNumber)
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
function createCompilerHints(options) {
|
|
1338
|
+
const globalThisAccessor = (options === null || options === void 0 ? void 0 : options.globalThisKey) || "__vitest_mocker__";
|
|
1339
|
+
function _mocker() {
|
|
1340
|
+
// @ts-expect-error injected by the plugin
|
|
1341
|
+
return typeof globalThis[globalThisAccessor] !== "undefined" ? globalThis[globalThisAccessor] : new Proxy({}, { get(_, name) {
|
|
1342
|
+
throw new Error("Vitest mocker was not initialized in this environment. " + `vi.${String(name)}() is forbidden.`);
|
|
1343
|
+
} });
|
|
1344
|
+
}
|
|
1345
|
+
return {
|
|
1346
|
+
hoisted(factory) {
|
|
1347
|
+
if (typeof factory !== "function") {
|
|
1348
|
+
throw new TypeError(`vi.hoisted() expects a function, but received a ${typeof factory}`);
|
|
1349
|
+
}
|
|
1350
|
+
return factory();
|
|
1351
|
+
},
|
|
1352
|
+
mock(path, factory) {
|
|
1353
|
+
if (typeof path !== "string") {
|
|
1354
|
+
throw new TypeError(`vi.mock() expects a string path, but received a ${typeof path}`);
|
|
1355
|
+
}
|
|
1356
|
+
const importer = getImporter("mock");
|
|
1357
|
+
_mocker().queueMock(path, importer, typeof factory === "function" ? () => factory(() => _mocker().importActual(path, importer)) : factory);
|
|
1358
|
+
},
|
|
1359
|
+
unmock(path) {
|
|
1360
|
+
if (typeof path !== "string") {
|
|
1361
|
+
throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof path}`);
|
|
1362
|
+
}
|
|
1363
|
+
_mocker().queueUnmock(path, getImporter("unmock"));
|
|
1364
|
+
},
|
|
1365
|
+
doMock(path, factory) {
|
|
1366
|
+
if (typeof path !== "string") {
|
|
1367
|
+
throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof path}`);
|
|
1368
|
+
}
|
|
1369
|
+
const importer = getImporter("doMock");
|
|
1370
|
+
_mocker().queueMock(path, importer, typeof factory === "function" ? () => factory(() => _mocker().importActual(path, importer)) : factory);
|
|
1371
|
+
},
|
|
1372
|
+
doUnmock(path) {
|
|
1373
|
+
if (typeof path !== "string") {
|
|
1374
|
+
throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof path}`);
|
|
1375
|
+
}
|
|
1376
|
+
_mocker().queueUnmock(path, getImporter("doUnmock"));
|
|
1377
|
+
},
|
|
1378
|
+
async importActual(path) {
|
|
1379
|
+
return _mocker().importActual(path, getImporter("importActual"));
|
|
1380
|
+
},
|
|
1381
|
+
async importMock(path) {
|
|
1382
|
+
return _mocker().importMock(path, getImporter("importMock"));
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
function getImporter(name) {
|
|
1387
|
+
const stackTrace = /* @__PURE__ */ createSimpleStackTrace({ stackTraceLimit: 5 });
|
|
1388
|
+
const stackArray = stackTrace.split("\n");
|
|
1389
|
+
// if there is no message in a stack trace, use the item - 1
|
|
1390
|
+
const importerStackIndex = stackArray.findIndex((stack) => {
|
|
1391
|
+
return stack.includes(` at Object.${name}`) || stack.includes(`${name}@`);
|
|
1392
|
+
});
|
|
1393
|
+
const stack = /* @__PURE__ */ parseSingleStack(stackArray[importerStackIndex + 1]);
|
|
1394
|
+
return (stack === null || stack === void 0 ? void 0 : stack.file) || "";
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
const hot = import.meta.hot || {
|
|
1398
|
+
on: warn,
|
|
1399
|
+
off: warn,
|
|
1400
|
+
send: warn
|
|
1401
|
+
};
|
|
1402
|
+
function warn() {
|
|
1403
|
+
console.warn("Vitest mocker cannot work if Vite didn't establish WS connection.");
|
|
1404
|
+
}
|
|
1405
|
+
function rpc(event, data) {
|
|
1406
|
+
hot.send(event, data);
|
|
1407
|
+
return new Promise((resolve, reject) => {
|
|
1408
|
+
const timeout = setTimeout(() => {
|
|
1409
|
+
reject(new Error(`Failed to resolve ${event} in time`));
|
|
1410
|
+
}, 5e3);
|
|
1411
|
+
hot.on(`${event}:result`, function r(data) {
|
|
1412
|
+
resolve(data);
|
|
1413
|
+
clearTimeout(timeout);
|
|
1414
|
+
hot.off(`${event}:result`, r);
|
|
1415
|
+
});
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
const { now } = Date;
|
|
1420
|
+
class ModuleMocker {
|
|
1421
|
+
registry = new MockerRegistry();
|
|
1422
|
+
queue = new Set();
|
|
1423
|
+
mockedIds = new Set();
|
|
1424
|
+
constructor(interceptor, rpc, spyOn, config) {
|
|
1425
|
+
this.interceptor = interceptor;
|
|
1426
|
+
this.rpc = rpc;
|
|
1427
|
+
this.spyOn = spyOn;
|
|
1428
|
+
this.config = config;
|
|
1429
|
+
}
|
|
1430
|
+
async prepare() {
|
|
1431
|
+
if (!this.queue.size) {
|
|
1432
|
+
return;
|
|
1433
|
+
}
|
|
1434
|
+
await Promise.all([...this.queue.values()]);
|
|
1435
|
+
}
|
|
1436
|
+
async resolveFactoryModule(id) {
|
|
1437
|
+
const mock = this.registry.get(id);
|
|
1438
|
+
if (!mock || mock.type !== "manual") {
|
|
1439
|
+
throw new Error(`Mock ${id} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);
|
|
1440
|
+
}
|
|
1441
|
+
const result = await mock.resolve();
|
|
1442
|
+
return result;
|
|
1443
|
+
}
|
|
1444
|
+
getFactoryModule(id) {
|
|
1445
|
+
const mock = this.registry.get(id);
|
|
1446
|
+
if (!mock || mock.type !== "manual") {
|
|
1447
|
+
throw new Error(`Mock ${id} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);
|
|
1448
|
+
}
|
|
1449
|
+
if (!mock.cache) {
|
|
1450
|
+
throw new Error(`Mock ${id} wasn't resolved. This is probably a Vitest error. Please, open a new issue with reproduction.`);
|
|
1451
|
+
}
|
|
1452
|
+
return mock.cache;
|
|
1453
|
+
}
|
|
1454
|
+
async invalidate() {
|
|
1455
|
+
const ids = Array.from(this.mockedIds);
|
|
1456
|
+
if (!ids.length) {
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1459
|
+
await this.rpc.invalidate(ids);
|
|
1460
|
+
await this.interceptor.invalidate();
|
|
1461
|
+
this.registry.clear();
|
|
1462
|
+
}
|
|
1463
|
+
async importActual(id, importer) {
|
|
1464
|
+
const resolved = await this.rpc.resolveId(id, importer);
|
|
1465
|
+
if (resolved == null) {
|
|
1466
|
+
throw new Error(`[vitest] Cannot resolve "${id}" imported from "${importer}"`);
|
|
1467
|
+
}
|
|
1468
|
+
const ext = extname(resolved.id);
|
|
1469
|
+
const url = new URL(resolved.url, location.href);
|
|
1470
|
+
const query = `_vitest_original&ext${ext}`;
|
|
1471
|
+
const actualUrl = `${url.pathname}${url.search ? `${url.search}&${query}` : `?${query}`}${url.hash}`;
|
|
1472
|
+
return this.wrapDynamicImport(() => import(
|
|
1473
|
+
/* @vite-ignore */
|
|
1474
|
+
actualUrl
|
|
1475
|
+
)).then((mod) => {
|
|
1476
|
+
if (!resolved.optimized || typeof mod.default === "undefined") {
|
|
1477
|
+
return mod;
|
|
1478
|
+
}
|
|
1479
|
+
// vite injects this helper for optimized modules, so we try to follow the same behavior
|
|
1480
|
+
const m = mod.default;
|
|
1481
|
+
return (m === null || m === void 0 ? void 0 : m.__esModule) ? m : {
|
|
1482
|
+
...typeof m === "object" && !Array.isArray(m) || typeof m === "function" ? m : {},
|
|
1483
|
+
default: m
|
|
1484
|
+
};
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
async importMock(rawId, importer) {
|
|
1488
|
+
await this.prepare();
|
|
1489
|
+
const { resolvedId, resolvedUrl, redirectUrl } = await this.rpc.resolveMock(rawId, importer, { mock: "auto" });
|
|
1490
|
+
const mockUrl = this.resolveMockPath(cleanVersion(resolvedUrl));
|
|
1491
|
+
let mock = this.registry.get(mockUrl);
|
|
1492
|
+
if (!mock) {
|
|
1493
|
+
if (redirectUrl) {
|
|
1494
|
+
const resolvedRedirect = new URL(this.resolveMockPath(cleanVersion(redirectUrl)), location.href).toString();
|
|
1495
|
+
mock = new RedirectedModule(rawId, resolvedId, mockUrl, resolvedRedirect);
|
|
1496
|
+
} else {
|
|
1497
|
+
mock = new AutomockedModule(rawId, resolvedId, mockUrl);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
if (mock.type === "manual") {
|
|
1501
|
+
return await mock.resolve();
|
|
1502
|
+
}
|
|
1503
|
+
if (mock.type === "automock" || mock.type === "autospy") {
|
|
1504
|
+
const url = new URL(`/@id/${resolvedId}`, location.href);
|
|
1505
|
+
const query = url.search ? `${url.search}&t=${now()}` : `?t=${now()}`;
|
|
1506
|
+
const moduleObject = await import(
|
|
1507
|
+
/* @vite-ignore */
|
|
1508
|
+
`${url.pathname}${query}&mock=${mock.type}${url.hash}`
|
|
1509
|
+
);
|
|
1510
|
+
return this.mockObject(moduleObject, mock.type);
|
|
1511
|
+
}
|
|
1512
|
+
return import(
|
|
1513
|
+
/* @vite-ignore */
|
|
1514
|
+
mock.redirect
|
|
1515
|
+
);
|
|
1516
|
+
}
|
|
1517
|
+
mockObject(object, moduleType = "automock") {
|
|
1518
|
+
return mockObject({
|
|
1519
|
+
globalConstructors: {
|
|
1520
|
+
Object,
|
|
1521
|
+
Function,
|
|
1522
|
+
Array,
|
|
1523
|
+
Map,
|
|
1524
|
+
RegExp
|
|
1525
|
+
},
|
|
1526
|
+
spyOn: this.spyOn,
|
|
1527
|
+
type: moduleType
|
|
1528
|
+
}, object);
|
|
1529
|
+
}
|
|
1530
|
+
queueMock(rawId, importer, factoryOrOptions) {
|
|
1531
|
+
const promise = this.rpc.resolveMock(rawId, importer, { mock: typeof factoryOrOptions === "function" ? "factory" : (factoryOrOptions === null || factoryOrOptions === void 0 ? void 0 : factoryOrOptions.spy) ? "spy" : "auto" }).then(async ({ redirectUrl, resolvedId, resolvedUrl, needsInterop, mockType }) => {
|
|
1532
|
+
const mockUrl = this.resolveMockPath(cleanVersion(resolvedUrl));
|
|
1533
|
+
this.mockedIds.add(resolvedId);
|
|
1534
|
+
const factory = typeof factoryOrOptions === "function" ? async () => {
|
|
1535
|
+
const data = await factoryOrOptions();
|
|
1536
|
+
// vite wraps all external modules that have "needsInterop" in a function that
|
|
1537
|
+
// merges all exports from default into the module object
|
|
1538
|
+
return needsInterop ? { default: data } : data;
|
|
1539
|
+
} : undefined;
|
|
1540
|
+
const mockRedirect = typeof redirectUrl === "string" ? new URL(this.resolveMockPath(cleanVersion(redirectUrl)), location.href).toString() : null;
|
|
1541
|
+
let module;
|
|
1542
|
+
if (mockType === "manual") {
|
|
1543
|
+
module = this.registry.register("manual", rawId, resolvedId, mockUrl, factory);
|
|
1544
|
+
} else if (mockType === "autospy") {
|
|
1545
|
+
module = this.registry.register("autospy", rawId, resolvedId, mockUrl);
|
|
1546
|
+
} else if (mockType === "redirect") {
|
|
1547
|
+
module = this.registry.register("redirect", rawId, resolvedId, mockUrl, mockRedirect);
|
|
1548
|
+
} else {
|
|
1549
|
+
module = this.registry.register("automock", rawId, resolvedId, mockUrl);
|
|
1550
|
+
}
|
|
1551
|
+
await this.interceptor.register(module);
|
|
1552
|
+
}).finally(() => {
|
|
1553
|
+
this.queue.delete(promise);
|
|
1554
|
+
});
|
|
1555
|
+
this.queue.add(promise);
|
|
1556
|
+
}
|
|
1557
|
+
queueUnmock(id, importer) {
|
|
1558
|
+
const promise = this.rpc.resolveId(id, importer).then(async (resolved) => {
|
|
1559
|
+
if (!resolved) {
|
|
1560
|
+
return;
|
|
1561
|
+
}
|
|
1562
|
+
const mockUrl = this.resolveMockPath(cleanVersion(resolved.url));
|
|
1563
|
+
this.mockedIds.add(resolved.id);
|
|
1564
|
+
this.registry.delete(mockUrl);
|
|
1565
|
+
await this.interceptor.delete(mockUrl);
|
|
1566
|
+
}).finally(() => {
|
|
1567
|
+
this.queue.delete(promise);
|
|
1568
|
+
});
|
|
1569
|
+
this.queue.add(promise);
|
|
1570
|
+
}
|
|
1571
|
+
// We need to await mock registration before importing the actual module
|
|
1572
|
+
// In case there is a mocked module in the import chain
|
|
1573
|
+
wrapDynamicImport(moduleFactory) {
|
|
1574
|
+
if (typeof moduleFactory === "function") {
|
|
1575
|
+
const promise = new Promise((resolve, reject) => {
|
|
1576
|
+
this.prepare().finally(() => {
|
|
1577
|
+
moduleFactory().then(resolve, reject);
|
|
1578
|
+
});
|
|
1579
|
+
});
|
|
1580
|
+
return promise;
|
|
1581
|
+
}
|
|
1582
|
+
return moduleFactory;
|
|
1583
|
+
}
|
|
1584
|
+
resolveMockPath(path) {
|
|
1585
|
+
const config = this.config;
|
|
1586
|
+
const fsRoot = join("/@fs/", config.root);
|
|
1587
|
+
// URL can be /file/path.js, but path is resolved to /file/path
|
|
1588
|
+
if (path.startsWith(config.root)) {
|
|
1589
|
+
return path.slice(config.root.length);
|
|
1590
|
+
}
|
|
1591
|
+
if (path.startsWith(fsRoot)) {
|
|
1592
|
+
return path.slice(fsRoot.length);
|
|
1593
|
+
}
|
|
1594
|
+
return path;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
const versionRegexp = /(\?|&)v=\w{8}/;
|
|
1598
|
+
function cleanVersion(url) {
|
|
1599
|
+
return url.replace(versionRegexp, "");
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
export { ModuleMocker as M, createCompilerHints as c, hot as h, rpc as r };
|