vansrouter 0.8.2 → 0.8.4
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/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +9 -9
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +3 -3
- package/app/.next-cli-build/routes-manifest.json +22 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/masuk/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/masuk/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +9 -9
- package/app/.next-cli-build/server/chunks/3141.js +9 -0
- package/app/.next-cli-build/server/chunks/383.js +1 -1
- package/app/.next-cli-build/server/chunks/4418.js +2 -2
- package/app/.next-cli-build/server/chunks/4574.js +1 -1
- package/app/.next-cli-build/server/chunks/5006.js +1 -1
- package/app/.next-cli-build/server/chunks/5598.js +1 -1
- package/app/.next-cli-build/server/chunks/6009.js +1 -0
- package/app/.next-cli-build/server/chunks/6159.js +1 -1
- package/app/.next-cli-build/server/chunks/8121.js +9 -0
- package/app/.next-cli-build/server/chunks/9633.js +1 -1
- package/app/.next-cli-build/server/chunks/9984.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/{4385-3e455409e9263c2e.js → 4385-b6dfc51a547b5095.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-3675446d31ef1ed1.js +10 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-a3da2d8345735ec6.js +1 -0
- package/app/node_modules/@swc/helpers/LICENSE +201 -0
- package/app/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_array_like_to_array/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_array_with_holes/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_array_without_holes/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_async_generator/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_async_iterator/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_async_to_generator/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_await_async_generator/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_await_value/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_call_super/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_call_check/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_get/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_init/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_set/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_field_update/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_method_get/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_method_init/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_private_method_set/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_construct/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_create_class/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_create_super/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_decorate/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_defaults/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_define_property/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_dispose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_export_star/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_extends/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_get/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_get_prototype_of/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_identity/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_inherits/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_inherits_loose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_initializer_define_property/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_instanceof/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_is_native_function/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_iterable_to_array/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_jsx/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_new_arrow_check/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_object_spread/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_object_spread_props/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_object_without_properties/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_read_only_error/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_set/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_set_prototype_of/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_sliced_to_array/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_super_prop_base/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_throw/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_to_array/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_to_consumable_array/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_to_primitive/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_to_property_key/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_decorate/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_generator/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_metadata/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_param/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_ts_values/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_type_of/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_update/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_using/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_using_ctx/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_wrap_native_super/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/_write_only_error/package.json +4 -0
- package/app/node_modules/@swc/helpers/_/index/package.json +4 -0
- package/app/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +35 -0
- package/app/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +550 -0
- package/app/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_async_generator.cjs +78 -0
- package/app/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +49 -0
- package/app/node_modules/@swc/helpers/cjs/_async_iterator.cjs +46 -0
- package/app/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +33 -0
- package/app/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_await_value.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_call_super.cjs +19 -0
- package/app/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +25 -0
- package/app/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +15 -0
- package/app/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +30 -0
- package/app/node_modules/@swc/helpers/cjs/_class_call_check.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +9 -0
- package/app/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +13 -0
- package/app/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +13 -0
- package/app/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +14 -0
- package/app/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +13 -0
- package/app/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_construct.cjs +22 -0
- package/app/node_modules/@swc/helpers/cjs/_create_class.cjs +20 -0
- package/app/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +24 -0
- package/app/node_modules/@swc/helpers/cjs/_create_super.cjs +23 -0
- package/app/node_modules/@swc/helpers/cjs/_decorate.cjs +270 -0
- package/app/node_modules/@swc/helpers/cjs/_defaults.cjs +15 -0
- package/app/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +26 -0
- package/app/node_modules/@swc/helpers/cjs/_define_property.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_dispose.cjs +43 -0
- package/app/node_modules/@swc/helpers/cjs/_export_star.cjs +17 -0
- package/app/node_modules/@swc/helpers/cjs/_extends.cjs +15 -0
- package/app/node_modules/@swc/helpers/cjs/_get.cjs +23 -0
- package/app/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_identity.cjs +7 -0
- package/app/node_modules/@swc/helpers/cjs/_inherits.cjs +14 -0
- package/app/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +13 -0
- package/app/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_instanceof.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/app/node_modules/@swc/helpers/cjs/_is_native_function.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +18 -0
- package/app/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +31 -0
- package/app/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +17 -0
- package/app/node_modules/@swc/helpers/cjs/_jsx.cjs +28 -0
- package/app/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_object_spread.cjs +25 -0
- package/app/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +30 -0
- package/app/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +23 -0
- package/app/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +18 -0
- package/app/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_read_only_error.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_set.cjs +44 -0
- package/app/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +12 -0
- package/app/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +13 -0
- package/app/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_throw.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/_to_array.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_to_primitive.cjs +18 -0
- package/app/node_modules/@swc/helpers/cjs/_to_property_key.cjs +11 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_generator.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_param.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_ts_values.cjs +3 -0
- package/app/node_modules/@swc/helpers/cjs/_type_of.cjs +8 -0
- package/app/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +15 -0
- package/app/node_modules/@swc/helpers/cjs/_update.cjs +16 -0
- package/app/node_modules/@swc/helpers/cjs/_using.cjs +24 -0
- package/app/node_modules/@swc/helpers/cjs/_using_ctx.cjs +75 -0
- package/app/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +10 -0
- package/app/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +28 -0
- package/app/node_modules/@swc/helpers/cjs/_write_only_error.cjs +6 -0
- package/app/node_modules/@swc/helpers/cjs/index.cjs +423 -0
- package/app/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +33 -0
- package/app/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +548 -0
- package/app/node_modules/@swc/helpers/esm/_array_like_to_array.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_array_with_holes.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_array_without_holes.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_assert_this_initialized.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_async_generator.js +76 -0
- package/app/node_modules/@swc/helpers/esm/_async_generator_delegate.js +47 -0
- package/app/node_modules/@swc/helpers/esm/_async_iterator.js +44 -0
- package/app/node_modules/@swc/helpers/esm/_async_to_generator.js +31 -0
- package/app/node_modules/@swc/helpers/esm/_await_async_generator.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_await_value.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_call_super.js +17 -0
- package/app/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +23 -0
- package/app/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +13 -0
- package/app/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +28 -0
- package/app/node_modules/@swc/helpers/esm/_class_call_check.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_get.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_set.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_field_update.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_method_get.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_method_init.js +7 -0
- package/app/node_modules/@swc/helpers/esm/_class_private_method_set.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +11 -0
- package/app/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +11 -0
- package/app/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +12 -0
- package/app/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +11 -0
- package/app/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_construct.js +20 -0
- package/app/node_modules/@swc/helpers/esm/_create_class.js +18 -0
- package/app/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +22 -0
- package/app/node_modules/@swc/helpers/esm/_create_super.js +21 -0
- package/app/node_modules/@swc/helpers/esm/_decorate.js +268 -0
- package/app/node_modules/@swc/helpers/esm/_defaults.js +13 -0
- package/app/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +24 -0
- package/app/node_modules/@swc/helpers/esm/_define_property.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_dispose.js +41 -0
- package/app/node_modules/@swc/helpers/esm/_export_star.js +15 -0
- package/app/node_modules/@swc/helpers/esm/_extends.js +13 -0
- package/app/node_modules/@swc/helpers/esm/_get.js +21 -0
- package/app/node_modules/@swc/helpers/esm/_get_prototype_of.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_identity.js +5 -0
- package/app/node_modules/@swc/helpers/esm/_inherits.js +12 -0
- package/app/node_modules/@swc/helpers/esm/_inherits_loose.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_initializer_define_property.js +11 -0
- package/app/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_instanceof.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
- package/app/node_modules/@swc/helpers/esm/_is_native_function.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +16 -0
- package/app/node_modules/@swc/helpers/esm/_iterable_to_array.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +29 -0
- package/app/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +15 -0
- package/app/node_modules/@swc/helpers/esm/_jsx.js +26 -0
- package/app/node_modules/@swc/helpers/esm/_new_arrow_check.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_non_iterable_rest.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_non_iterable_spread.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_object_spread.js +23 -0
- package/app/node_modules/@swc/helpers/esm/_object_spread_props.js +28 -0
- package/app/node_modules/@swc/helpers/esm/_object_without_properties.js +21 -0
- package/app/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +16 -0
- package/app/node_modules/@swc/helpers/esm/_possible_constructor_return.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_read_only_error.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_set.js +42 -0
- package/app/node_modules/@swc/helpers/esm/_set_prototype_of.js +10 -0
- package/app/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_sliced_to_array.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_super_prop_base.js +11 -0
- package/app/node_modules/@swc/helpers/esm/_tagged_template_literal.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_throw.js +4 -0
- package/app/node_modules/@swc/helpers/esm/_to_array.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_to_consumable_array.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_to_primitive.js +16 -0
- package/app/node_modules/@swc/helpers/esm/_to_property_key.js +9 -0
- package/app/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_ts_decorate.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_ts_generator.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_ts_metadata.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_ts_param.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_ts_values.js +1 -0
- package/app/node_modules/@swc/helpers/esm/_type_of.js +6 -0
- package/app/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +13 -0
- package/app/node_modules/@swc/helpers/esm/_update.js +14 -0
- package/app/node_modules/@swc/helpers/esm/_using.js +22 -0
- package/app/node_modules/@swc/helpers/esm/_using_ctx.js +73 -0
- package/app/node_modules/@swc/helpers/esm/_wrap_async_generator.js +8 -0
- package/app/node_modules/@swc/helpers/esm/_wrap_native_super.js +26 -0
- package/app/node_modules/@swc/helpers/esm/_write_only_error.js +4 -0
- package/app/node_modules/@swc/helpers/esm/index.js +106 -0
- package/app/node_modules/@swc/helpers/package.json +471 -0
- package/app/node_modules/@swc/helpers/scripts/ast_grep.js +229 -0
- package/app/node_modules/@swc/helpers/scripts/build.js +121 -0
- package/app/node_modules/@swc/helpers/scripts/errors.js +1 -0
- package/app/node_modules/@swc/helpers/scripts/utils.js +3 -0
- package/app/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_array_like_to_array.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_array_with_holes.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_array_without_holes.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_async_generator.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_async_iterator.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_async_to_generator.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_await_async_generator.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_await_value.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_call_super.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_call_check.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_get.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_init.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_set.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_field_update.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_method_get.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_method_init.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_private_method_set.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_construct.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_create_class.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_create_super.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_decorate.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_defaults.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_define_property.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_dispose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_export_star.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_extends.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_get.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_get_prototype_of.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_identity.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_inherits.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_inherits_loose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_initializer_define_property.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_instanceof.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_interop_require_default.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_is_native_function.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_iterable_to_array.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_jsx.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_new_arrow_check.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_object_spread.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_object_spread_props.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_object_without_properties.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_read_only_error.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_set.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_set_prototype_of.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_sliced_to_array.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_super_prop_base.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_throw.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_to_array.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_to_consumable_array.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_to_primitive.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_to_property_key.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_decorate.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_generator.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_metadata.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_param.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_ts_values.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_type_of.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_update.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_using.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_using_ctx.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_wrap_native_super.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/_write_only_error.mjs +1 -0
- package/app/node_modules/@swc/helpers/src/index.mjs +1 -0
- package/app/package.json +3 -1
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/1500.js +0 -9
- package/app/.next-cli-build/server/chunks/1613.js +0 -9
- package/app/.next-cli-build/server/chunks/2564.js +0 -1
- package/app/.next-cli-build/server/chunks/3652.js +0 -9
- package/app/.next-cli-build/server/chunks/4042.js +0 -1
- package/app/.next-cli-build/server/chunks/4327.js +0 -9
- package/app/.next-cli-build/server/chunks/4486.js +0 -9
- package/app/.next-cli-build/server/chunks/6333.js +0 -9
- package/app/.next-cli-build/server/chunks/8685.js +0 -9
- package/app/.next-cli-build/server/chunks/9294.js +0 -9
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-794575f7237c2fd7.js +0 -10
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-f1d9bf293afc3684.js +0 -1
- /package/app/.next-cli-build/static/{s3-GQm3AGLpboXygnZn-r → OwLuLaSNWFD4GTAVj_meK}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{s3-GQm3AGLpboXygnZn-r → OwLuLaSNWFD4GTAVj_meK}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{1863:(e,t,a)=>{"use strict";function s(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}a.d(t,{g:()=>s})},3812:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(5102),l=a(3916),i=a(8140);function n({currentPage:e,pageSize:t,totalItems:a,onPageChange:r,onPageSizeChange:o,className:d}){let c=Math.ceil(a/t),m=a>0?(e-1)*t+1:0,p=Math.min(e*t,a),x=(()=>{let t=[],a=Math.max(1,e-2),s=Math.min(c,a+5-1);s-a+1<5&&(a=Math.max(1,s-5+1));for(let e=a;e<=s;e++)t.push(e);return t})();return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col sm:flex-row items-center justify-between gap-4 py-4 px-2",d),children:[a>0&&(0,s.jsxs)("div",{className:"text-sm text-text-muted",children:["Showing ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:m})," to"," ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:p})," of"," ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:a})," results"]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[o&&(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-sm text-text-muted",children:"Rows:"}),(0,s.jsx)("select",{value:t,onChange:e=>o(Number(e.target.value)),className:(0,l.cn)("h-9 rounded-lg border border-black/10 dark:border-white/10 bg-surface","text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20","cursor-pointer"),style:{colorScheme:"auto"},children:[10,20,50].map(e=>(0,s.jsx)("option",{value:e,children:e},e))})]}),c>1&&(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(i.A,{variant:"outline",size:"sm",onClick:()=>r(e-1),disabled:1===e,className:"w-9 px-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_left"})}),x[0]>1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{variant:"ghost",size:"sm",onClick:()=>r(1),className:"w-9 px-0 hidden sm:inline-flex",children:"1"}),x[0]>2&&(0,s.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."})]}),x.map(t=>(0,s.jsx)(i.A,{variant:e===t?"primary":"ghost",size:"sm",onClick:()=>r(t),className:(0,l.cn)("w-9 px-0",e===t?"inline-flex":"hidden sm:inline-flex"),children:t},t)),x[x.length-1]<c&&(0,s.jsxs)(s.Fragment,{children:[x[x.length-1]<c-1&&(0,s.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."}),(0,s.jsx)(i.A,{variant:"ghost",size:"sm",onClick:()=>r(c),className:"w-9 px-0 hidden sm:inline-flex",children:c})]}),(0,s.jsx)(i.A,{variant:"outline",size:"sm",onClick:()=>r(e+1),disabled:e===c,className:"w-9 px-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})})]})]})]})}},5399:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_});var s=a(5102),l=a(2030),i=a(3278),n=a(3885),r=a.n(n),o=a(7837),d=a(497),c=a(1038),m=a(5223),p=a(1577),x=a(5737),u=a(264);let h=new Map;async function f(e){if(!e?.url||!e?.type)return[];let t=h.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),a=await fetch(`/api/providers/suggested-models?${t}`);if(!a.ok)return[];let s=(await a.json()).data??[];return h.set(e.url,{data:s,expiresAt:Date.now()+6e5}),s}catch{return[]}}function g({customModels:e=[],modelAliases:t={},providerAlias:a,builtInModels:s=[],type:l="llm",includeLegacyAliases:i=!0}){let n=new Set(s.map(e=>e.id)),r=new Set,o=[];for(let t of e){if(!t?.id||t.providerAlias!==a)continue;let e=t?.kind||t?.type||"llm";if(l&&e!==l||n.has(t.id))continue;let s=`${a}/${t.id}`;r.has(s)||(r.add(s),o.push({id:t.id,name:t.name||t.id,fullModel:s,source:"custom",type:e}))}if(!i)return o;let d=`${a}/`;for(let[e,a]of Object.entries(t||{})){if("string"!=typeof a||!a.startsWith(d))continue;let t=a.slice(d.length);!t||n.has(t)||r.has(a)||(r.add(a),o.push({id:t,alias:e,fullModel:a,source:"legacyAlias",type:l||"llm"}))}return o}function y({model:e,fullModel:t,alias:a,copied:l,onCopy:i,testStatus:n,isCustom:r,isFree:o,onDeleteAlias:c,onTest:m,isTesting:p,onDisable:x,caps:u}){let h="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,s.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===n?"border-green-500/40":"error"===n?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:h?{color:h}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,s.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:t}),(0,s.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,s.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,s.jsx)(d.CapacityBadges,{caps:u,colorOverride:"text-text-muted/70",size:12})]})]}),m&&(0,s.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,s.jsx)("button",{onClick:m,disabled:p,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${p?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:p?{animation:"spin 1s linear infinite"}:void 0,children:p?"progress_activity":"science"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:p?"Testing...":"Test"})]}),(0,s.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,s.jsx)("button",{onClick:()=>i(t,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:l===`model-${e.id}`?"check":"content_copy"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:l===`model-${e.id}`?"Copied!":"Copy"})]}),r?(0,s.jsx)("button",{onClick:c,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):x?(0,s.jsx)("button",{onClick:x,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function b({modelId:e,fullModel:t,copied:a,onCopy:l,onDeleteAlias:i,onTest:n,testStatus:r,isTesting:o}){let d="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0;return(0,s.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,s.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,s.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:()=>l(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:a===`model-${e}`?"check":"content_copy"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:a===`model-${e}`?"Copied!":"Copy"})]}),n&&(0,s.jsxs)("div",{className:"relative group/btn",children:[(0,s.jsx)("button",{onClick:n,disabled:o,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:o?{animation:"spin 1s linear infinite"}:void 0,children:o?"progress_activity":"science"})}),(0,s.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:o?"Testing...":"Test"})]})]})]}),(0,s.jsx)("button",{onClick:i,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function v({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:a,customModels:i,copied:n,onCopy:r,onDeleteAlias:o,onAddCustomModel:c,onDeleteCustomModel:m,connections:p,isAnthropic:x}){let[u,h]=(0,l.useState)(""),[f,y]=(0,l.useState)(!1),[j,w]=(0,l.useState)(!1),[N,k]=(0,l.useState)(null),[C,S]=(0,l.useState)({}),A=async t=>{if(!N){k(t);try{let a=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),s=await a.json();S(e=>({...e,[t]:s.ok?"ok":"error"}))}catch{S(e=>({...e,[t]:"error"}))}finally{k(null)}}},T=g({customModels:i,modelAliases:a,providerAlias:e,type:"llm"}),$=async()=>{if(!u.trim()||f)return;let e=u.trim();if(T.some(t=>t.id===e))return void alert("Model already exists for this provider.");y(!0);try{await c(e),h("")}catch(e){console.log("Error adding model:",e)}finally{y(!1)}},E=async()=>{if(j)return;let e=p.find(e=>!1!==e.isActive);if(e){w(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),a=await t.json();if(!t.ok)return void alert(a.error||"Failed to import models");let s=a.models||[];if(0===s.length)return void alert("No models returned from /models.");let l=0;for(let e of s){let t=e.id||e.name||e.model;t&&(T.some(e=>e.id===t)||(await c(t),l+=1))}0===l&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{w(!1)}}},I=p.some(e=>!1!==e.isActive);return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",x?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,s.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,s.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,s.jsx)("input",{id:"new-compatible-model-input",type:"text",value:u,onChange:e=>h(e.target.value),onKeyDown:e=>"Enter"===e.key&&$(),placeholder:x?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:$,disabled:!u.trim()||f,children:f?"Adding...":"Add"}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"download",onClick:E,disabled:!I||j,children:j?"Importing...":"Import from /models"})]}),!I&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),T.length>0&&(0,s.jsx)("div",{className:"flex flex-col gap-3",children:T.map(({id:a,alias:l,source:i})=>(0,s.jsx)(b,{modelId:a,fullModel:`${t}/${a}`,copied:n,onCopy:r,onDeleteAlias:()=>"custom"===i?m(a):o(l),onTest:p.length>0?()=>A(a):void 0,testStatus:C[a],isTesting:N===a},`${i}-${e}/${a}`))})]})}var j=a(1863);function w({until:e}){let[t,a]=(0,l.useState)("");return((0,l.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void a("");let s=Math.floor(t/1e3);if(s<60)a(`${s}s`);else if(s<3600)a(`${Math.floor(s/60)}m ${s%60}s`);else{let e=Math.floor(s/3600),t=Math.floor(s%3600/60);a(`${e}h ${t}m`)}};t();let s=setInterval(t,1e3);return()=>clearInterval(s)},[e]),t)?(0,s.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function N({connection:e,proxyPools:t,isOAuth:a,isFirst:i,isLast:n,onMoveUp:r,onMoveDown:o,onToggleActive:c,onUpdateProxy:m,onEdit:p,onDelete:x,oneByOneStatus:u=null,autoPing:h=null}){let[f,g]=(0,l.useState)(!1),[y,b]=(0,l.useState)(!1),v=(0,l.useRef)(null),k=new Map((t||[]).map(e=>[e.id,e])),C=e.providerSpecificData?.proxyPoolId||null,S=C?k.get(C):null,A=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,T=!!C||A,$=S?`Pool: ${S.name}`:C?`Pool: ${C} (inactive/missing)`:A?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",E="";if(S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);E=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{E=t}}let I=S?.noProxy||e.providerSpecificData?.connectionNoProxy||"",O="default";S?.isActive===!0?O="success":(C||A)&&(O="error"),(0,l.useEffect)(()=>{if(!f)return;let e=e=>{v.current&&!v.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[f]);let P=async e=>{b(!0);try{await m("__none__"===e?null:e)}finally{b(!1),g(!1)}},D=e.authType||(a?"oauth":"apikey"),_="oauth"===D,M="cookie"===D,z=e.name?.trim()||e.email?.trim()||e.displayName?.trim()||(_?"OAuth Account":M?"Cookie Account":"API Key"),U=e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null,[B,R]=(0,l.useState)(!1),K=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>!!e).sort()[0]||null;(0,l.useEffect)(()=>{let t=()=>{R(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let a=K?setInterval(t,1e3):null;return()=>{a&&clearInterval(a)}},[K]);let L="unavailable"!==e.testStatus||B?e.testStatus:"active",F=()=>u?"queued"===u.state?"queued":"testing"===u.state?"testing":"success"===u.state?"success":"failed"===u.state?u.error?`failed: ${u.error}`:"failed":null:null;return(0,s.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===e.isActive?"opacity-60":""}`,children:[(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,s.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,s.jsx)("button",{onClick:r,disabled:i,className:`p-0.5 rounded ${i?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,s.jsx)("button",{onClick:o,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,s.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:M?"cookie":_?"lock":"key"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium truncate",children:z}),U&&(0,s.jsx)("p",{className:"text-xs text-text-muted truncate",children:U}),(0,s.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,s.jsx)(d.Badge,{variant:(0,j.g)(e.isActive,L),size:"sm",dot:!0,children:!1===e.isActive?"disabled":L||"Unknown"}),(0,s.jsx)(d.Badge,{variant:"default",size:"sm",children:_?"OAuth":M?"Cookie":"API Key"}),T&&(0,s.jsx)(d.Badge,{variant:O,size:"sm",children:"Proxy"}),B&&!1!==e.isActive&&(0,s.jsx)(w,{until:K}),e.lastError&&!1!==e.isActive&&(0,s.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),F()&&(0,s.jsx)(d.Badge,{variant:u?"success"===u.state?"success":"failed"===u.state?"error":"testing"===u.state?"primary":"default":"default",size:"sm",children:F()})]}),T&&(0,s.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,s.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:$,children:$}),E&&(0,s.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:E}),I&&(0,s.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:I,children:["no_proxy: ",I]})]})]})]}),(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,s.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,s.jsxs)("div",{className:"relative",ref:v,children:[(0,s.jsxs)("button",{onClick:()=>g(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${T?"text-primary":"text-text-muted hover:text-primary"}`,disabled:y,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:y?"progress_activity":"lan"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),f&&(0,s.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,s.jsx)("button",{onClick:()=>P("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!C?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,s.jsx)("button",{onClick:()=>P(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${C===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),h&&(0,s.jsx)(d.Tooltip,{text:"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",children:(0,s.jsxs)("button",{onClick:()=>h.onToggle(!h.on),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${h.on?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,s.jsxs)("button",{onClick:p,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,s.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,s.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,s.jsx)(d.Toggle,{size:"sm",checked:e.isActive??!0,onChange:c,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}let k=`name1|sk-key1
|
|
2
|
+
name2|sk-key2
|
|
3
|
+
sk-key-only-auto-named`;function C({cloudflareData:e,setCloudflareData:t}){return(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,s.jsx)(d.Input,{label:"Account ID",value:e.accountId,onChange:a=>t({...e,accountId:a.target.value}),placeholder:"abc123def456..."}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,s.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]})}function S({azureData:e,setAzureData:t}){return(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(d.Input,{label:"Azure Endpoint",value:e.azureEndpoint,onChange:a=>t({...e,azureEndpoint:a.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,s.jsx)(d.Input,{label:"Deployment Name",value:e.deployment,onChange:a=>t({...e,deployment:a.target.value}),placeholder:"gpt-4"}),(0,s.jsx)(d.Input,{label:"API Version",value:e.apiVersion,onChange:a=>t({...e,apiVersion:a.target.value}),placeholder:"2024-10-01-preview"}),(0,s.jsx)(d.Input,{label:"Organization",value:e.organization,onChange:a=>t({...e,organization:a.target.value}),placeholder:"Organization ID"})]})]})}function A({isOpen:e,provider:t,providerName:a,isCompatible:i,isAnthropic:n,authType:r,authHint:o,website:m,proxyPools:p,error:x,onSave:u,onBulkDone:h,onClose:f}){let g="__none__",y="ollama-local"===t,b="cookie"===r,v="xai"===t&&!b,j=b?"Cookie Value":"API Key",w="azure"===t,N="cloudflare-ai"===t,T=c.Q2?.[t]?.regions||null,$=c.Q2?.[t]?.defaultRegion||T?.[0]?.id||"",[E,I]=(0,l.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:g,ollamaHostUrl:""}),[O,P]=(0,l.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[D,_]=(0,l.useState)({accountId:""}),[M,z]=(0,l.useState)($),[U,B]=(0,l.useState)(!1),[R,K]=(0,l.useState)(null),[L,F]=(0,l.useState)(!1),[J,W]=(0,l.useState)("single"),[q,V]=(0,l.useState)(""),[H,G]=(0,l.useState)(null),Q=()=>y&&E.ollamaHostUrl.trim()?{baseUrl:E.ollamaHostUrl.trim()}:w?{azureEndpoint:O.azureEndpoint,apiVersion:O.apiVersion,deployment:O.deployment,organization:O.organization}:N?{accountId:D.accountId}:T&&M?{region:M}:void 0,X=async()=>{B(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:E.apiKey,providerSpecificData:Q()})}),a=await e.json();K(a.valid?"success":"failed")}catch{K("failed")}finally{B(!1)}},Y=async()=>{if(t&&(y||E.apiKey)&&(y||E.name)&&(!i||E.defaultModel.trim())){F(!0);try{let e=!1;try{B(!0),K(null);let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:E.apiKey,providerSpecificData:Q()})});e=!!(await a.json()).valid,K(e?"success":"failed")}catch{K("failed")}finally{B(!1)}await u({name:E.name||(y?"Ollama Local":""),apiKey:E.apiKey,defaultModel:i?E.defaultModel.trim():void 0,priority:E.priority,proxyPoolId:E.proxyPoolId===g?null:E.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:Q()})}finally{F(!1)}}},Z=async()=>{let e=q.split("\n").flatMap(e=>{let t=e.trim();return t?[t]:[]});if(!e.length)return;F(!0),G(null);let a=await Promise.all(e.map(async(e,a)=>{let s=e.split("|"),l=s.length>=2?s.slice(1).join("|").trim():s[0].trim(),i=s.length>=2?s[0].trim():"Key",n=`${i} ${a+1}`;try{let e=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:l,name:n,priority:1,testStatus:"unknown"})}),a=await e.json();return e.ok&&a.connection?.id&&fetch(`/api/providers/${a.connection.id}/test`,{method:"POST"}).catch(()=>{}),e.ok?"ok":"fail"}catch{return"fail"}})),s=a.filter(e=>"ok"===e).length,l=a.filter(e=>"fail"===e).length;F(!1),G({success:s,failed:l}),s>0&&h&&h()};return t?(0,s.jsx)(d.Modal,{isOpen:e,title:`Add ${a||t} ${j}`,onClose:f,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{size:"sm",variant:"single"===J?"primary":"ghost",onClick:()=>{W("single"),G(null)},children:"Single"}),(0,s.jsx)(d.Button,{size:"sm",variant:"bulk"===J?"primary":"ghost",onClick:()=>{W("bulk"),G(null)},children:"Bulk Add"})]}),"bulk"===J&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["One key per line. Format: ",(0,s.jsx)("code",{children:"name|apiKey"})," or just ",(0,s.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:k,value:q,onChange:e=>V(e.target.value),"aria-label":"Bulk API keys"}),H&&(0,s.jsxs)("div",{className:`text-sm font-medium ${H.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",H.success," added",H.failed>0?`, ✗ ${H.failed} failed`:""]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:Z,fullWidth:!0,disabled:L||!q.trim(),children:L?"Adding...":"Add All Keys"}),(0,s.jsx)(d.Button,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===J&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Input,{label:"Name",value:E.name,onChange:e=>I({...E,name:e.target.value}),placeholder:y?"Ollama Local":"Production Key"}),y&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Input,{label:"Ollama Host URL",value:E.ollamaHostUrl,onChange:e=>I({...E,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.Button,{onClick:X,disabled:U||L,variant:"secondary",children:U?"Checking...":"Check"})})]}),!y&&(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Input,{label:j,type:b?"text":"password",value:E.apiKey,onChange:e=>I({...E,apiKey:e.target.value}),placeholder:b?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":v?"xai-...":"",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.Button,{onClick:X,disabled:!E.apiKey||U||L,variant:"secondary",children:U?"Checking...":"Check"})})]}),v&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),b&&o&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[o,m&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsxs)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",m.replace(/^https?:\/\//,"")]})]})]}),T&&(0,s.jsx)(d.Select,{label:"Region",value:M,onChange:e=>z(e.target.value),options:T.map(e=>({value:e.id,label:e.label}))}),i&&(0,s.jsx)(d.Input,{label:"Default Model",value:E.defaultModel,onChange:e=>I({...E,defaultModel:e.target.value}),placeholder:n?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),y&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,s.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,s.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),R&&(0,s.jsx)(d.Badge,{variant:"success"===R?"success":"error",children:"success"===R?"Valid":"Invalid"}),x&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),i&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),N&&(0,s.jsx)(C,{cloudflareData:D,setCloudflareData:_}),w&&(0,s.jsx)(S,{azureData:O,setAzureData:P}),(0,s.jsx)(d.Input,{label:"Priority",type:"number",value:E.priority,onChange:e=>I({...E,priority:Number.parseInt(e.target.value)||1})}),(0,s.jsx)(d.Select,{label:"Proxy Pool",value:E.proxyPoolId,onChange:e=>I({...E,proxyPoolId:e.target.value}),options:[{value:g,label:"None"},...(p||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(p||[]).length&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:Y,fullWidth:!0,disabled:L||!y&&(!E.name||!E.apiKey)||i&&!E.defaultModel.trim()||w&&(!O.azureEndpoint||!O.deployment||!O.organization)||N&&!D.accountId,children:L?"Saving...":"Save"}),(0,s.jsx)(d.Button,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}let T=[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}];function $({isOpen:e,node:t,onSave:a,onClose:i,isAnthropic:n}){let[r,o]=(0,l.useState)(()=>({name:t?.name||"",prefix:t?.prefix||"",apiType:t?.apiType||"chat",baseUrl:t?.baseUrl||(n?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})),[c,m]=(0,l.useState)(!1),[p,x]=(0,l.useState)(""),[u,h]=(0,l.useState)(""),[f,g]=(0,l.useState)(!1),[y,b]=(0,l.useState)(null),[v,j]=(0,l.useState)(t);t!==v&&(j(t),t&&o({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(n?"https://api.anthropic.com/v1":"https://api.openai.com/v1")}));let w=async()=>{if(r.name.trim()&&r.prefix.trim()&&r.baseUrl.trim()){m(!0);try{let e={name:r.name,prefix:r.prefix,baseUrl:r.baseUrl};n||(e.apiType=r.apiType),await a(e)}finally{m(!1)}}},N=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:r.baseUrl,apiKey:p,type:n?"anthropic-compatible":"openai-compatible",modelId:u.trim()||void 0})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,s.jsx)(d.Modal,{isOpen:e,title:`Edit ${n?"Anthropic":"OpenAI"} Compatible`,onClose:i,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(d.Input,{label:"Name",value:r.name,onChange:e=>o({...r,name:e.target.value}),placeholder:`${n?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,s.jsx)(d.Input,{label:"Prefix",value:r.prefix,onChange:e=>o({...r,prefix:e.target.value}),placeholder:n?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!n&&(0,s.jsx)(d.Select,{label:"API Type",options:T,value:r.apiType,onChange:e=>o({...r,apiType:e.target.value})}),(0,s.jsx)(d.Input,{label:"Base URL",value:r.baseUrl,onChange:e=>o({...r,baseUrl:e.target.value}),placeholder:n?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${n?"Anthropic":"OpenAI"}-compatible API.`}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Input,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>x(e.target.value),className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.Button,{onClick:N,disabled:!p||f||!r.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,s.jsx)(d.Input,{label:"Model ID (optional)",value:u,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),y&&(0,s.jsx)(d.Badge,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:w,fullWidth:!0,disabled:!r.name.trim()||!r.prefix.trim()||!r.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,s.jsx)(d.Button,{onClick:i,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function E(e,t){switch(t.type){case"RESET":return{modelId:"",testStatus:null,testError:"",saving:!1};case"SET_MODEL":return{...e,modelId:t.value,testStatus:null,testError:""};case"TEST_START":return{...e,testStatus:"testing",testError:""};case"TEST_RESULT":return{...e,testStatus:t.ok?"ok":"error",testError:t.error||""};case"SAVE_START":return{...e,saving:!0};case"SAVE_DONE":return{...e,saving:!1};default:return e}}function I({isOpen:e,providerAlias:t,providerDisplayAlias:a,onSave:i,onClose:n}){let[r,o]=(0,l.useReducer)(E,{modelId:"",testStatus:null,testError:"",saving:!1}),{modelId:c,testStatus:m,testError:p,saving:x}=r,[u,h]=(0,l.useState)(!1);e&&!u?(h(!0),o({type:"RESET"})):!e&&u&&h(!1);let f=e=>{let a=`${t}/`;return e.startsWith(a)?e.slice(a.length):e},g=async()=>{let e=f(c.trim());if(e){o({type:"TEST_START"});try{let a=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${e}`})}),s=await a.json();o({type:"TEST_RESULT",ok:s.ok,error:s.error})}catch(e){o({type:"TEST_RESULT",ok:!1,error:e.message})}}},y=async()=>{let e=f(c.trim());if(e&&!x){o({type:"SAVE_START"});try{await i(e)}finally{o({type:"SAVE_DONE"})}}};return(0,s.jsx)(d.Modal,{isOpen:e,onClose:n,title:"Add Custom Model",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"add-custom-model-id",className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{id:"add-custom-model-id",type:"text",value:c,onChange:e=>o({type:"SET_MODEL",value:e.target.value}),onKeyDown:e=>{"Enter"===e.key&&g()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),(0,s.jsx)(d.Button,{variant:"secondary",icon:"science",loading:"testing"===m,onClick:g,disabled:!c.trim()||"testing"===m,children:"testing"===m?"Testing...":"Test"})]}),(0,s.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,s.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:f(c.trim())||"model-id"})]})]}),"ok"===m&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===m&&(0,s.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,s.jsx)("span",{children:p||"Model not reachable"})]}),(0,s.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,s.jsx)(d.Button,{onClick:n,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,s.jsx)(d.Button,{onClick:y,fullWidth:!0,size:"sm",disabled:!c.trim()||x,children:x?"Adding...":"Add Model"})]})]})})}let O=`[
|
|
4
|
+
{
|
|
5
|
+
"accessToken": "eyJhbGc...",
|
|
6
|
+
"refreshToken": "rt_...",
|
|
7
|
+
"idToken": "eyJhbGc...",
|
|
8
|
+
"email": "user@example.com"
|
|
9
|
+
}
|
|
10
|
+
]`;function P({isOpen:e,onClose:t,onSuccess:a}){let[i,n]=(0,l.useState)(""),[r,o]=(0,l.useState)(!1),[c,m]=(0,l.useState)(""),[p,x]=(0,l.useState)(null),h=()=>{r||(n(""),m(""),x(null),t())},f=async()=>{var e;let t;m(""),x(null);let s=i.trim();if(!s)return;try{t=JSON.parse(s)}catch(e){m(`${(0,u.Tl)("Invalid JSON")}: ${e.message}`);return}let l=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!l||0===l.length)return void m((0,u.Tl)("No accounts found in input"));o(!0);try{let e=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:l})}),t=await e.json();if(!e.ok)return void m(t?.error||`Request failed: ${e.status}`);x(t),t.success>0&&"function"==typeof a&&a()}catch(e){m(e.message||(0,u.Tl)("Request failed"))}finally{o(!1)}},g=p?.results?.filter(e=>!e.ok)||[];return(0,s.jsx)(d.Modal,{isOpen:e,title:(0,u.Tl)("Bulk Add Codex Accounts"),onClose:h,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,u.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:O,value:i,onChange:e=>n(e.target.value),disabled:r}),c&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:c}),p&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:`text-sm font-medium ${p.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",p.success," ",(0,u.Tl)("added"),p.failed>0?`, ✗ ${p.failed} ${(0,u.Tl)("failed")}`:""]}),g.length>0&&(0,s.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:g.map(e=>(0,s.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.Button,{onClick:f,fullWidth:!0,disabled:r||!i.trim(),children:r?(0,u.Tl)("Importing..."):(0,u.Tl)("Import All")}),(0,s.jsx)(d.Button,{onClick:h,variant:"ghost",fullWidth:!0,disabled:r,children:(0,u.Tl)("Close")})]})]})})}var D=a(3812);function _(){let e,t=(0,i.useParams)(),a=(0,i.useRouter)(),n=t.id,{getCaps:h}=(0,x.y)(),[b,j]=(0,l.useState)([]),[w,k]=(0,l.useState)(!0),[C,S]=(0,l.useState)(null),[T,E]=(0,l.useState)([]),[O,_]=(0,l.useState)(!1),[M,z]=(0,l.useState)(!1),[U,B]=(0,l.useState)(!1),[R,K]=(0,l.useState)(""),[L,F]=(0,l.useState)(!1),[J,W]=(0,l.useState)(!1),[q,V]=(0,l.useState)(!1),[H,G]=(0,l.useState)(!1),[Q,X]=(0,l.useState)(null),[Y,Z]=(0,l.useState)({}),[ee,et]=(0,l.useState)([]),[ea,es]=(0,l.useState)(!1),[el,ei]=(0,l.useState)({}),[en,er]=(0,l.useState)(""),[eo,ed]=(0,l.useState)(()=>new Set),[ec,em]=(0,l.useState)(!1),[ep,ex]=(0,l.useState)([]),[eu,eh]=(0,l.useState)("__none__"),[ef,eg]=(0,l.useState)(!1),[ey,eb]=(0,l.useState)(null),[ev,ej]=(0,l.useState)(""),[ew,eN]=(0,l.useState)("auto"),[ek,eC]=(0,l.useState)({enabled:!1,connections:{}}),[eS,eA]=(0,l.useState)([]),[eT,e$]=(0,l.useState)([]),[eE,eI]=(0,l.useState)([]),[eO,eP]=(0,l.useState)(null),[eD,e_]=(0,l.useState)(!1),[eM,ez]=(0,l.useState)(!1),[eU,eB]=(0,l.useState)(!1),[eR,eK]=(0,l.useState)(null),[eL,eF]=(0,l.useState)({}),[eJ,eW]=(0,l.useState)(null),eq=(0,l.useRef)(!1),[eV,eH]=(0,l.useState)(!1),[eG,eQ]=(0,l.useState)(1),{copied:eX,copy:eY}=(0,p.C)(),eZ="ag_risk_confirmed",e0=()=>{_(!0)},e1=()=>{"antigravity"===n&&"true"!==window.localStorage.getItem(eZ)?e_(!0):e8?e0():(K(""),B(!0))},e2=()=>{K(""),B(!0)},e5=()=>{e8?e1():e2()},e3=C?{id:C.id,name:C.name||("anthropic-compatible"===C.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===C.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===C.type?"AC":"OC",apiType:C.apiType,baseUrl:C.baseUrl,type:C.type}:c.zN[n]||c.fg[n]||c.IS[n]||c.nJ[n]||c.br[n],e4=e3?.authModes||[],e8=!!c.zN[n]||!!c.IS[n]||e4.includes("oauth"),e6=!!c.fg[n]||e4.includes("apikey"),e7=!!c.IS[n]?.noAuth,e9=(0,m.KC)(n),te=(0,c.wG)(n),tt=(0,c.mq)(n),ta=(0,c.gb)(n),ts=tt||ta,tl=!ts&&e8&&e6,ti="xai"===n?"Grok Build OAuth":"OAuth",tn="xai"===n?"xAI API Key":"API Key";c.Q2[n]?.thinkingConfig||c.s9.extended;let tr=ts?n:te,to=ts?C?.prefix||n:te,td=(0,l.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tr)}`,{cache:"no-store"}),t=await e.json();e.ok&&eI(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[tr]),tc=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tr,ids:[e]})})).ok&&await td()}catch(e){console.log("Error disabling model:",e)}},tm=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tr)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await td()}catch(e){console.log("Error enabling model:",e)}},tp=async e=>{e.length&&eP({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{eP(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tr,ids:e})})).ok&&await td()}catch(e){console.log("Error disabling all models:",e)}}})},tx=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tr)}`,{method:"DELETE"})).ok&&await td()}catch(e){console.log("Error enabling all models:",e)}},tu=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&Z(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),th=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&et(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,l.useEffect)(()=>{"kilocode"===n&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&e$(e.models)}).catch(()=>{})},[n]);let tf=(0,l.useCallback)(async()=>{try{let[e,t,a,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),l=await e.json(),i=await t.json(),r=await a.json(),o=s.ok?await s.json():{};if(e.ok){let e=(l.connections||[]).filter(e=>e.provider===n);j(e)}a.ok&&E(r.proxyPools||[]);let d=(o.providerStrategies||{})[n]||{};eb(d.fallbackStrategy||null),ej(null!=d.stickyRoundRobinLimit?String(d.stickyRoundRobinLimit):"1");let c=(o.providerThinking||{})[n]||{};eN(c.mode||"auto");let m=o.claudeAutoPing||{};if(eC({enabled:!0===m.enabled,connections:m.connections||{}}),t.ok){let e=(i.nodes||[]).find(e=>e.id===n)||null;if(!e&&ts)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===n)||null))break}S(e)}}catch(e){console.log("Error fetching connections:",e)}finally{k(!1)}},[n,ts]),tg=async e=>{try{let t=await fetch(`/api/provider-nodes/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await t.json();t.ok&&(S(a.node),await tf(),V(!1))}catch(e){console.log("Error updating provider node:",e)}},ty=async(e,t)=>{try{let a=await fetch("/api/settings",{cache:"no-store"}),s=(a.ok?await a.json():{}).providerStrategies||{},l={};e&&(l.fallbackStrategy=e),"round-robin"===e&&""!==t&&(l.stickyRoundRobinLimit=Number(t)||3);let i={...s};0===Object.keys(l).length?delete i[n]:i[n]=l,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:i})})}catch(e){console.log("Error saving provider strategy:",e)}},tb=async e=>{eC(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({claudeAutoPing:e})})}catch(e){console.log("Error saving auto-ping config:",e)}};(0,l.useEffect)(()=>{tf(),tu(),th(),td()},[tf,tu,th,td]),(0,l.useEffect)(()=>{let e=(c.zN[n]||c.fg[n]||c.IS[n]||c.nJ[n])?.modelsFetcher;e&&f(e).then(eA)},[n]);let tv=async(e,t,a=te)=>{let s=`${a}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:s,alias:t})});if(e.ok)await tu();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},tj=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tu()}catch(e){console.log("Error deleting alias:",e)}},tw=async(e,t="llm",a=tr)=>{try{let s=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:a,id:e,type:t})});if(s.ok)await th(),window.dispatchEvent(new CustomEvent("customModelChanged"));else{let e=await s.json();alert(e.error||"Failed to add custom model")}}catch(e){console.log("Error adding custom model:",e)}},tN=async(e,t="llm",a=tr)=>{try{let s=new URLSearchParams({providerAlias:a,id:e,type:t});(await fetch(`/api/models/custom?${s}`,{method:"DELETE"})).ok&&(await th(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},tk=async()=>{if(eV)return;let e=b.find(e=>!1!==e.isActive);if(!e)return void alert((0,u.Tl)("Please add an active Qoder connection first"));eH(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),a=await t.json();if(!t.ok)return void alert(a.error||(0,u.Tl)("Failed to fetch models"));let s=a.models||[];if(0===s.length)return void alert((0,u.Tl)("No models returned"));let l=0;for(let e of s){let t=e.id||e.name;if(!t)continue;let a=t.replace(/^qoder\//,"");ee.some(e=>e.providerAlias===tr&&e.id===a&&"llm"===(e.kind||e.type||"llm"))||Object.values(Y).includes(`${tr}/${a}`)||(await tw(a,"llm",tr),l+=1)}0===l?alert((0,u.Tl)("All models already exist, no new models added")):alert((0,u.Tl)("Successfully added")+` ${l} `+(0,u.Tl)("models"))}catch(e){console.log("Error importing Qoder models:",e),alert((0,u.Tl)("Error fetching models")+": "+e.message)}finally{eH(!1)}},tC=async()=>{if(eM||0===b.length)return;let e=Object.fromEntries(b.map(e=>[e.id,{state:"queued",error:null}]));eq.current=!1,ez(!0),eB(!1),eK(null),eF(e),eW({total:b.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,a=0;try{for(let e=0;e<b.length;e+=1){if(eq.current){eW({total:b.length,completed:e,passed:t,failed:a,stopped:!0});break}let s=b[e];eK(s.id),eF(e=>({...e,[s.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${s.id}/test`,{method:"POST"}),l=await e.json(),i=!!l.valid;i?t+=1:a+=1,eF(e=>({...e,[s.id]:{state:i?"success":"failed",error:i?null:l.error||null}}))}catch(e){a+=1,eF(t=>({...t,[s.id]:{state:"failed",error:e.message||"Test failed"}}))}eW({total:b.length,completed:e+1,passed:t,failed:a,stopped:!1}),e<b.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{eK(null),ez(!1),eB(!1),eq.current=!1}},tS=async e=>{eP({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{eP(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&j(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},tA=()=>{let e=ep.length;0!==e&&eP({title:`Delete ${e} Connection${e>1?"s":""}`,message:`Delete ${e} connection${e>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{eP(null);let e=0,t=[...ep];for(let a of t)try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok||(e+=1)}catch(t){console.log("Error deleting connection:",t),e+=1}j(e=>e.filter(e=>!t.includes(e.id))),ex([]),e>0&&alert(`Deleted ${t.length-e} connection(s), ${e} failed.`)}})},tT=()=>{tf(),_(!1)},t$=async e=>{K("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:n,...e})}),a=null;try{a=await t.json()}catch{a=null}if(t.ok){await tf(),B(!1);return}K(a?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),K("Failed to save connection")}},tE=async e=>{try{(await fetch(`/api/providers/${Q.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await tf(),W(!1))}catch(e){console.log("Error updating connection:",e)}},tI=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&j(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("Error updating connection status:",e)}},tO=async(e,t)=>{let a=[...b];[a[e],a[t]]=[a[t],a[e]],j(a);try{await Promise.all([fetch(`/api/providers/${a[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${a[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await tf()}},tP=b.filter(e=>ep.includes(e.id)),tD=b.length>0&&ep.length===b.length,t_=Math.min(Math.max(1,eG),Math.max(1,Math.ceil(b.length/10))),tM=(t_-1)*10,tz=b.slice(tM,tM+10);(0,l.useEffect)(()=>{let e=Math.max(1,Math.ceil(b.length/10));eQ(t=>t>e?e:t<1?1:t)},[b.length]),(0,l.useEffect)(()=>{eQ(1)},[n]);let tU=()=>{tD?ex([]):ex(b.map(e=>e.id))};(0,l.useEffect)(()=>{ex(e=>e.filter(e=>b.some(t=>t.id===e)))},[b]),(()=>{if(0===tP.length)return;let e=new Set(tP.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let a=T.find(e=>e.id===t);return a?.name}})();let tB=()=>{ef||G(!1)},tR=async e=>{eg(!0);try{let t=0;for(let{connectionId:a,proxyPoolId:s}of e)try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:s})})).ok||(t+=1)}catch(e){console.log("Error applying proxy for",a,e),t+=1}t>0&&alert(`Updated with ${t} failed request(s).`),await tf(),G(!1)}finally{eg(!1)}},tK=e=>tR(b.map(t=>({connectionId:t.id,proxyPoolId:e}))),tL=(0,s.jsxs)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:[b.length>1&&(0,s.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 text-xs text-text-muted",children:[(0,s.jsx)("input",{type:"checkbox",checked:tD,onChange:tU,className:"h-3.5 w-3.5 rounded border-border accent-primary"}),(0,s.jsx)("span",{children:ep.length>0?`${ep.length} selected`:"Select all"})]}),tz.map((e,t)=>{let a,l=tM+t;return(0,s.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,s.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,s.jsx)("input",{type:"checkbox",checked:(a=e.id,ep.includes(a)),onChange:()=>{var t;return t=e.id,void ex(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)(N,{connection:e,proxyPools:T,isOAuth:e8,isFirst:0===l,isLast:l===b.length-1,onMoveUp:()=>tO(l,l-1),onMoveDown:()=>tO(l,l+1),onToggleActive:t=>tI(e.id,t),autoPing:"claude"===n&&"oauth"===e.authType?{on:!0===ek.connections[e.id],onToggle:t=>{var a;return a=e.id,void tb({...ek,connections:{...ek.connections,[a]:t}})}}:null,onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&j(a=>a.map(a=>a.id===e.id?{...a,providerSpecificData:{...a.providerSpecificData,proxyPoolId:t||null}}:a))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{X(e),W(!0)},onDelete:()=>tS(e.id),oneByOneStatus:eL[e.id]||null})})]},e.id)})]}),tF=T.filter(e=>!0===e.isActive),tJ=(0,s.jsx)(d.Modal,{isOpen:H,onClose:tB,title:`Apply Proxy (${b.length} connections)`,children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("button",{onClick:()=>{let e=T.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):tR(b.map((t,a)=>({connectionId:t.id,proxyPoolId:e[a%e.length].id})))},disabled:ef||0===tF.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,s.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,s.jsxs)("button",{onClick:()=>tK(null),disabled:ef,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,s.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),T.map(e=>(0,s.jsxs)("button",{onClick:()=>tK(e.id),disabled:ef||!0!==e.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,s.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),ef&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,s.jsx)(d.Button,{onClick:tB,variant:"ghost",fullWidth:!0,disabled:ef,children:"Cancel"})]})}),tW=async e=>{if(!eo.has(e)){ed(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${tr}/${e}`})}),a=await t.json();ei(t=>({...t,[e]:a.ok?"ok":"error"})),er(a.ok?"":a.error||"Model not reachable")}catch{ei(t=>({...t,[e]:"error"})),er("Network error")}finally{ed(t=>{let a=new Set(t);return a.delete(e),a})}}};return w?(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(d.CardSkeleton,{}),(0,s.jsx)(d.CardSkeleton,{})]}):e3?(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)(r(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,s.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${e3.color}15`},children:ea?(0,s.jsx)("span",{className:"text-sm font-bold",style:{color:e3.color},children:e3.textIcon||e3.id.slice(0,2).toUpperCase()}):(0,s.jsx)(o.default,{src:tt&&e3.apiType?"responses"===e3.apiType?"/providers/oai-r.webp":"/providers/oai-cc.webp":ta?"/providers/anthropic-m.webp":`/providers/${e3.id}.webp`,alt:e3.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>es(!0)})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:e3.name}),(e3.notice?.apiKeyUrl||e3.notice?.signupUrl||e3.website)&&(0,s.jsxs)("a",{href:e3.notice?.apiKeyUrl||e3.notice?.signupUrl||e3.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),e3.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,s.jsxs)("p",{className:"text-text-muted",children:[b.length," connection",1===b.length?"":"s"]})]})]})]}),e3.deprecated&&(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,s.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:e3.deprecationNotice})]}),e3.notice?.text&&!e3.deprecated&&(0,s.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,s.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:e3.notice.text}),e3.notice.apiKeyUrl&&(0,s.jsx)("a",{href:e3.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),ts&&C&&(0,s.jsx)(d.Card,{children:(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:ta?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,s.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[ta?"Messages API":"responses"===C.apiType?"Responses API":"Chat Completions"," \xb7 ",(C.baseUrl||"").replace(/\/$/,""),"/",ta?"messages":"responses"===C.apiType?"responses":"chat/completions"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:()=>{K(""),B(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>V(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{eP({title:"Delete Compatible Node",message:`Delete this ${ta?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{eP(null);try{(await fetch(`/api/provider-nodes/${n}`,{method:"DELETE"})).ok&&a.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),e7?(0,s.jsx)(d.NoAuthProxyCard,{providerId:n}):(0,s.jsxs)(d.Card,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[b.length>0&&T.length>0&&(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>G(!0),children:"Apply Proxy"}),b.length>1&&(0,s.jsxs)(d.Button,{size:"sm",variant:"danger",icon:"delete_sweep",onClick:tA,disabled:0===ep.length,children:["Delete",ep.length>0?` (${ep.length})`:""]}),b.length>0&&(0,s.jsxs)(s.Fragment,{children:[ep.length>0&&(0,s.jsxs)(d.Button,{size:"sm",variant:"danger",icon:"delete",onClick:tA,children:["Delete Selected (",ep.length,")"]}),(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"sync",onClick:tC,disabled:eM,children:eM?"Testing Connection One-by-One...":"Test Connection One-by-One"}),eM&&(0,s.jsx)(d.Button,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{eM&&(eq.current=!0,eB(!0))},disabled:eU,children:eU?"Stopping...":"Stop"})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,s.jsx)(d.Toggle,{checked:"round-robin"===ey,onChange:e=>{let t=e?"round-robin":null,a=e?ev||"1":ev;e&&!ev&&ej("1"),eb(t),ty(t,a)}}),"round-robin"===ey&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,s.jsx)("input",{type:"number",min:1,value:ev,onChange:e=>{var t;ej(t=e.target.value),ty("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===b.length?(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e8?"lock":"key"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),tl&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",ti," or ",tn,"."]})]})]}),(0,s.jsx)("div",{className:"flex gap-2",children:tl?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Button,{size:"sm",icon:"lock",variant:"secondary",onClick:e1,children:ti}),(0,s.jsx)(d.Button,{size:"sm",icon:"key",onClick:e2,children:tn})]}):(0,s.jsxs)(s.Fragment,{children:[!ts&&"iflow"===n&&(0,s.jsx)(d.Button,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>z(!0),children:"Cookie"}),"codex"===n&&(0,s.jsx)(d.Button,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>F(!0),children:(0,u.Tl)("Bulk Add")}),(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:e5,children:ts?"Add API Key":"iflow"===n?"OAuth":"Add Connection"})]})})]}):(0,s.jsxs)(s.Fragment,{children:[eJ&&(0,s.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsxs)("span",{children:["Total: ",eJ.total]}),(0,s.jsxs)("span",{children:["Completed: ",eJ.completed]}),(0,s.jsxs)("span",{children:["Passed: ",eJ.passed]}),(0,s.jsxs)("span",{children:["Failed: ",eJ.failed]}),eJ.stopped&&(0,s.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),eM&&eR&&(0,s.jsxs)("span",{children:["Running: ",b.find(e=>e.id===eR)?.name||eR]})]})}),b.length>0&&(0,s.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,s.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,s.jsx)("input",{type:"checkbox",checked:tD,onChange:tU,className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),tL,b.length>10&&(0,s.jsx)(D.A,{currentPage:t_,pageSize:10,totalItems:b.length,onPageChange:eQ}),!ts&&(0,s.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===n&&(0,s.jsx)(d.Button,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>z(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===n&&(0,s.jsx)(d.Button,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>F(!0),title:(0,u.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,u.Tl)("Bulk Add")}),tl?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Button,{size:"sm",icon:"lock",variant:"secondary",onClick:e1,className:"w-full sm:w-auto",children:ti}),(0,s.jsx)(d.Button,{size:"sm",icon:"key",onClick:e2,className:"w-full sm:w-auto",children:tn})]}):(0,s.jsx)(d.Button,{size:"sm",icon:"add",onClick:e5,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(0,s.jsxs)(d.Card,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),!ts&&(e=[...e9,...eT.filter(e=>!e9.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!eE.includes(e)),(0,s.jsxs)("div",{className:"flex gap-2",children:[eE.length>0&&(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:tx,children:"Active All"}),e.length>0&&(0,s.jsx)(d.Button,{size:"sm",variant:"secondary",icon:"block",onClick:()=>tp(e),children:"Disable All"})]}))]}),!!en&&(0,s.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:en}),(()=>{let e,t,a;if(ts)return(0,s.jsx)(v,{providerStorageAlias:tr,providerDisplayAlias:to,modelAliases:Y,customModels:ee,copied:eX,onCopy:eY,onSetAlias:tv,onDeleteAlias:tj,onAddCustomModel:e=>tw(e,"llm",tr),onDeleteCustomModel:e=>tN(e,"llm",tr),connections:b,isAnthropic:ta});let l=[...e9,...eT.filter(e=>!e9.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}),i=new Set(eE),r=l.filter(e=>!i.has(e.id)),o=l.filter(e=>i.has(e.id)),d=g({customModels:ee,modelAliases:Y,providerAlias:tr,builtInModels:e9,type:"llm"});return(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[d.map(e=>(0,s.jsx)(y,{model:{id:e.id,name:e.name},fullModel:`${to}/${e.id}`,alias:e.alias,copied:eX,onCopy:eY,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?tN(e.id,"llm",tr):tj(e.alias)},testStatus:el[e.id],onTest:b.length>0||e7?()=>tW(e.id):void 0,isTesting:eo.has(e.id),isCustom:!0,isFree:!1,caps:h(`${n}/${e.id}`)},`${e.source}-${e.fullModel}`)),r.map(e=>{let t=`${tr}/${e.id}`,a=`${n}/${e.id}`,l=Object.entries(Y).find(([,e])=>e===t||e===a)?.[0];return(0,s.jsx)(y,{model:e,fullModel:`${to}/${e.id}`,alias:l,copied:eX,onCopy:eY,onSetAlias:t=>tv(e.id,t,tr),onDeleteAlias:()=>tj(l),testStatus:el[e.id],onTest:b.length>0||e7?()=>tW(e.id):void 0,isTesting:eo.has(e.id),isFree:e.isFree,onDisable:()=>tc(e.id),caps:h(`${n}/${e.id}`)},e.id)}),(0,s.jsxs)("button",{onClick:()=>em(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"qoder"===n&&b.some(e=>!1!==e.isActive)&&(0,s.jsxs)("button",{onClick:tk,disabled:eV,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:eV?{animation:"spin 1s linear infinite"}:void 0,children:eV?"progress_activity":"download"}),eV?(0,u.Tl)("Fetching..."):(0,u.Tl)("Fetch Qoder Models")]}),eS.length>0&&(e=new Set([...Object.values(Y),...d.map(e=>e.fullModel)]),t=new Set(e9.map(e=>e.id)),0===(a=eS.filter(a=>!e.has(`${tr}/${a.id}`)&&!t.has(a.id))).length?null:(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:a.map(e=>(0,s.jsxs)("button",{onClick:async()=>{await tw(e.id,"llm",tr)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),o.length>0&&(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",o.length,"):"]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:o.map(e=>(0,s.jsxs)("button",{onClick:()=>tm(e.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id]},e.id))})]})]})})()]}),tJ,"kiro"===n?(0,s.jsx)(d.KiroOAuthWrapper,{isOpen:O,providerInfo:e3,onSuccess:tT,onClose:()=>_(!1)}):"cursor"===n?(0,s.jsx)(d.CursorAuthModal,{isOpen:O,onSuccess:tT,onClose:()=>_(!1)}):"gitlab"===n?(0,s.jsx)(d.GitLabAuthModal,{isOpen:O,providerInfo:e3,onSuccess:tT,onClose:()=>_(!1)}):(0,s.jsx)(d.OAuthModal,{isOpen:O,provider:n,providerInfo:e3,onSuccess:tT,onClose:()=>_(!1)}),"iflow"===n&&(0,s.jsx)(d.IFlowCookieModal,{isOpen:M,onSuccess:()=>{tf(),z(!1)},onClose:()=>z(!1)}),(0,s.jsx)(A,{isOpen:U,provider:n,providerName:e3.name,isCompatible:ts,isAnthropic:ta,authType:e3?.authType,authHint:e3?.authHint,website:e3?.website,proxyPools:T,error:R,onSave:t$,onBulkDone:tf,onClose:()=>{K(""),B(!1)}}),(0,s.jsx)(d.EditConnectionModal,{isOpen:J,connection:Q,proxyPools:T,onSave:tE,onClose:()=>W(!1)}),ts&&(0,s.jsx)($,{isOpen:q,node:C,onSave:tg,onClose:()=>V(!1),isAnthropic:ta}),!ts&&(0,s.jsx)(I,{isOpen:ec,providerAlias:tr,providerDisplayAlias:to,onSave:async e=>{await tw(e,"llm",tr),em(!1)},onClose:()=>em(!1)}),"codex"===n&&(0,s.jsx)(P,{isOpen:L,onClose:()=>F(!1),onSuccess:tf}),(0,s.jsx)(d.ConfirmModal,{isOpen:eD,onClose:()=>e_(!1),onConfirm:()=>{(window.localStorage.setItem(eZ,"true"),e_(!1),e8)?e0():e2()},title:"Risk Notice",message:e3?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,s.jsx)(d.ConfirmModal,{isOpen:!!eO,onClose:()=>eP(null),onConfirm:eO?.onConfirm,title:eO?.title||"Confirm",message:eO?.message,variant:"danger"})]}):(0,s.jsxs)("div",{className:"text-center py-20",children:[(0,s.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,s.jsx)(r(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}},8810:(e,t,a)=>{Promise.resolve().then(a.bind(a,5399))}},e=>{e.O(0,[2554,7418,3885,9458,9814,4385,497,7236,5737,2147,3204,7358],()=>e(e.s=8810)),_N_E=e.O()}]);
|
package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-a3da2d8345735ec6.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2825],{3812:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(5102),l=s(3916),n=s(8140);function r({currentPage:e,pageSize:t,totalItems:s,onPageChange:i,onPageSizeChange:o,className:d}){let c=Math.ceil(s/t),x=s>0?(e-1)*t+1:0,m=Math.min(e*t,s),h=(()=>{let t=[],s=Math.max(1,e-2),a=Math.min(c,s+5-1);a-s+1<5&&(s=Math.max(1,a-5+1));for(let e=s;e<=a;e++)t.push(e);return t})();return(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-col sm:flex-row items-center justify-between gap-4 py-4 px-2",d),children:[s>0&&(0,a.jsxs)("div",{className:"text-sm text-text-muted",children:["Showing ",(0,a.jsx)("span",{className:"font-medium text-text-main",children:x})," to"," ",(0,a.jsx)("span",{className:"font-medium text-text-main",children:m})," of"," ",(0,a.jsx)("span",{className:"font-medium text-text-main",children:s})," results"]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[o&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"Rows:"}),(0,a.jsx)("select",{value:t,onChange:e=>o(Number(e.target.value)),className:(0,l.cn)("h-9 rounded-lg border border-black/10 dark:border-white/10 bg-surface","text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20","cursor-pointer"),style:{colorScheme:"auto"},children:[10,20,50].map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]}),c>1&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(n.A,{variant:"outline",size:"sm",onClick:()=>i(e-1),disabled:1===e,className:"w-9 px-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_left"})}),h[0]>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{variant:"ghost",size:"sm",onClick:()=>i(1),className:"w-9 px-0 hidden sm:inline-flex",children:"1"}),h[0]>2&&(0,a.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."})]}),h.map(t=>(0,a.jsx)(n.A,{variant:e===t?"primary":"ghost",size:"sm",onClick:()=>i(t),className:(0,l.cn)("w-9 px-0",e===t?"inline-flex":"hidden sm:inline-flex"),children:t},t)),h[h.length-1]<c&&(0,a.jsxs)(a.Fragment,{children:[h[h.length-1]<c-1&&(0,a.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."}),(0,a.jsx)(n.A,{variant:"ghost",size:"sm",onClick:()=>i(c),className:"w-9 px-0 hidden sm:inline-flex",children:c})]}),(0,a.jsx)(n.A,{variant:"outline",size:"sm",onClick:()=>i(e+1),disabled:e===c,className:"w-9 px-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})})]})]})]})}},5085:(e,t,s)=>{Promise.resolve().then(s.bind(s,9153))},9153:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var a=s(5102),l=s(2030),n=s(3278),r=s(497),i=s(2758),o=s(8140),d=s(3916);let c={sm:"w-[400px]",md:"w-[500px]",lg:"w-[600px]",xl:"w-[800px]",full:"w-full"};function x({isOpen:e,onClose:t,title:s,children:n,width:r="md",className:i}){let o=(0,l.useRef)(t);return((0,l.useEffect)(()=>{o.current=t}),(0,l.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,l.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e&&o.current()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e]),e)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in cursor-pointer",onClick:t,"aria-hidden":"true"}),(0,a.jsxs)("div",{className:(0,d.cn)("absolute right-0 top-0 h-full bg-surface flex flex-col","shadow-[var(--shadow-elev)]","slide-in-right","border-l border-border-subtle",c[r]||c.md,i),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-border-subtle flex-shrink-0",children:[(0,a.jsx)("div",{className:"flex items-center gap-3",children:s&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:s})}),(0,a.jsx)("button",{type:"button",onClick:t,className:"p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto p-6 custom-scrollbar",children:n})]})]}):null}var m=s(3812),h=s(1038);let u=null,p=null;async function f(){if(u&&p)return{providerNameCache:u,providerNodesCache:p};let e=await fetch("/api/provider-nodes"),t=(await e.json()).nodes||[];for(let e of(p={},t))p[e.id]=e.name;return{providerNameCache:u={...h.Q2,...p},providerNodesCache:p}}function b(e,t){if(!e||!t)return e;let s=t[e];if("string"==typeof s)return s;if(s?.name)return s.name;let a=(0,h.zt)(e)||h.Q2[e];return a?.name||e}function j({title:e,children:t,defaultOpen:s=!1,icon:n=null}){let[r,i]=(0,l.useState)(s);return(0,a.jsxs)("div",{className:"border border-black/5 dark:border-white/5 rounded-lg overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>i(!r),className:"w-full flex items-center justify-between p-3 bg-black/[0.02] dark:bg-white/[0.02] hover:bg-black/[0.04] dark:hover:bg-white/[0.04] transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[n&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] text-text-muted",children:n}),(0,a.jsx)("span",{className:"font-semibold text-sm text-text-main",children:e})]}),(0,a.jsx)("span",{className:(0,d.cn)("material-symbols-outlined text-[20px] text-text-muted transition-transform duration-200",r?"rotate-90":""),children:"chevron_right"})]}),r&&(0,a.jsx)("div",{className:"p-4 border-t border-black/5 dark:border-white/5",children:t})]})}function g(e){let t=e?.prompt_tokens||e?.input_tokens||0,s=e?.cached_tokens||e?.cache_read_input_tokens||0;return t<s?s:t}function v({filterProvider:e,setFilterProvider:t,filterStart:s,setFilterStart:l,filterEnd:n,setFilterEnd:r,providers:d,cn:c,handleApplyFilters:x,handleClearFilters:m}){return(0,a.jsx)(i.A,{padding:"md",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{htmlFor:"provider-filter",className:"text-sm font-medium text-text-main",children:"Provider"}),(0,a.jsxs)("select",{id:"provider-filter",value:e,onChange:e=>t(e.target.value),className:c("h-9 px-3 rounded-lg border border-black/10 dark:border-white/10 bg-surface text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20 w-full min-w-0 cursor-pointer"),style:{colorScheme:"auto"},children:[(0,a.jsx)("option",{value:"",children:"All Providers"}),d.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{htmlFor:"start-date-filter",className:"text-sm font-medium text-text-main",children:"Start Date"}),(0,a.jsx)("input",{id:"start-date-filter",type:"datetime-local",value:s,onChange:e=>l(e.target.value),className:c("h-9 px-3 rounded-lg border border-black/10 dark:border-white/10 bg-surface w-full min-w-0 text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20")})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{htmlFor:"end-date-filter",className:"text-sm font-medium text-text-main",children:"End Date"}),(0,a.jsx)("input",{id:"end-date-filter",type:"datetime-local",value:n,onChange:e=>r(e.target.value),className:c("h-9 px-3 rounded-lg border border-black/10 dark:border-white/10 bg-surface w-full min-w-0 text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20")})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2 sm:col-span-2 lg:col-span-1",children:[(0,a.jsx)("span",{className:"hidden text-sm font-medium text-text-main opacity-0 lg:block","aria-hidden":"true",children:"Actions"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(o.A,{onClick:x,className:"flex-1",children:"Search"}),(0,a.jsx)(o.A,{variant:"ghost",onClick:m,disabled:!e&&!s&&!n,className:"flex-1",children:"Clear"})]})]})]})})}function N({detail:e,index:t,handleViewDetail:s,providerNameCache:l}){return(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 last:border-b-0 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:"whitespace-nowrap p-4 text-sm text-text-main",children:new Date(e.timestamp).toLocaleString()}),(0,a.jsx)("td",{className:"max-w-[260px] truncate p-4 font-mono text-sm text-text-main",children:e.model}),(0,a.jsx)("td",{className:"max-w-[180px] truncate p-4 text-sm text-text-main",children:(0,a.jsx)("span",{className:"font-medium",children:b(e.provider,l)})}),(0,a.jsx)("td",{className:"p-4 text-sm text-text-main text-right font-mono",children:g(e.tokens).toLocaleString()}),(0,a.jsx)("td",{className:"p-4 text-sm text-text-main text-right font-mono",children:e.tokens?.completion_tokens?.toLocaleString()||0}),(0,a.jsx)("td",{className:"p-4 text-sm text-text-muted",children:(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsxs)("div",{children:["TTFT: ",(0,a.jsxs)("span",{className:"font-mono",children:[e.latency?.ttft||0,"ms"]})]}),(0,a.jsxs)("div",{children:["Total: ",(0,a.jsxs)("span",{className:"font-mono",children:[e.latency?.total||0,"ms"]})]})]})}),(0,a.jsx)("td",{className:"p-4 text-center",children:(0,a.jsx)(o.A,{variant:"outline",size:"sm",onClick:()=>s(e),children:"Detail"})})]},`${e.id}-${t}`)}function w(){var e;let[t,s]=(0,l.useState)([]),[n,r]=(0,l.useState)(0),[o,c]=(0,l.useState)(0),[h,u]=(0,l.useState)(1),[p,w]=(0,l.useState)(20),[k,y]=(0,l.useState)(!1),[S,C]=(0,l.useState)(null),[A,P]=(0,l.useState)(!1),[T,D]=(0,l.useState)([]),[R,_]=(0,l.useState)(null),[E,L]=(0,l.useState)(""),[F,O]=(0,l.useState)(""),[z,q]=(0,l.useState)(""),[I,M]=(0,l.useState)(""),[$,K]=(0,l.useState)(""),[U,J]=(0,l.useState)(""),[Q,H]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=setTimeout(()=>{let e=new Date;e.setDate(e.getDate()-7);let t=e.toISOString().slice(0,16);O(t),K(t),H(!0)},500);return()=>clearTimeout(e)},[]),(0,l.useEffect)(()=>{let e=new AbortController;return fetch("/api/usage/providers",{signal:e.signal}).then(e=>e.json()).then(async t=>{if(e.signal.aborted)return;D(t.providers||[]);let s=await f();e.signal.aborted||_(s.providerNameCache)}).catch(()=>{}),()=>e.abort()},[]),(0,l.useEffect)(()=>{if(!Q||!$)return;let e=new AbortController;y(!0);let t=new URLSearchParams({page:String(h),pageSize:String(p)});return I&&t.append("provider",I),t.append("startDate",$),U&&t.append("endDate",U),fetch(`/api/usage/request-details?${t}`,{signal:e.signal}).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(t=>{e.signal.aborted||(s(Array.isArray(t.details)?t.details:[]),r(t.pagination?.totalItems??0),c(t.pagination?.totalPages??0))}).catch(t=>{e.signal.aborted||console.error("request-details fetch failed:",t)}).finally(()=>{e.signal.aborted||y(!1)}),()=>e.abort()},[Q,h,p,I,$,U]);let V=e=>{C(e),P(!0),fetch(`/api/usage/request-details/${encodeURIComponent(e.id)}`).then(e=>e.ok?e.json():null).then(e=>{e?.detail&&C(e.detail)}).catch(()=>{})};return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[(0,a.jsx)(v,{filterProvider:E,setFilterProvider:L,filterStart:F,setFilterStart:O,filterEnd:z,setFilterEnd:q,providers:T,cn:d.cn,handleApplyFilters:()=>{u(1),M(E),K(F),J(z)},handleClearFilters:()=>{let e,t=((e=new Date).setDate(e.getDate()-7),e.toISOString().slice(0,16));L(""),O(t),q(""),u(1),M(""),K(t),J("")}}),(0,a.jsxs)(i.A,{padding:"none",children:[(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full min-w-[880px]",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Timestamp"}),(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Model"}),(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Provider"}),(0,a.jsx)("th",{className:"text-right p-4 text-sm font-semibold text-text-main",children:"Input Tokens"}),(0,a.jsx)("th",{className:"text-right p-4 text-sm font-semibold text-text-main",children:"Output Tokens"}),(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Latency"}),(0,a.jsx)("th",{className:"text-center p-4 text-sm font-semibold text-text-main",children:"Action"})]})}),(0,a.jsx)("tbody",{children:k||!Q?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:"7",className:"p-8 text-center text-text-muted",children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading..."]})})}):0===t.length?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:"7",className:"p-8 text-center text-text-muted",children:"No request details found"})}):t.map((e,t)=>(0,a.jsx)(N,{detail:e,index:t,handleViewDetail:V,providerNameCache:R},t))})]})}),!k&&t.length>0&&(0,a.jsx)("div",{className:"border-t border-black/5 dark:border-white/5",children:(0,a.jsx)(m.A,{currentPage:h,pageSize:p,totalItems:n,onPageChange:e=>u(e),onPageSizeChange:e=>{w(e),u(1)}})})]}),(0,a.jsx)(x,{isOpen:A,onClose:()=>P(!1),title:"Request Details",width:"lg",children:S&&(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-4 text-sm sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"ID:"})," ",(0,a.jsx)("span",{className:"break-all font-mono text-text-main",children:S.id})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Timestamp:"})," ",(0,a.jsx)("span",{className:"text-text-main",children:new Date(S.timestamp).toLocaleString()})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Provider:"})," ",(0,a.jsx)("span",{className:"text-text-main font-medium",children:b(S.provider,R)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Model:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:S.model})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"API Key Name:"})," ",(0,a.jsx)("span",{className:"text-text-main",children:S.apiKeyName||"-"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"API Key:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:S.apiKeyName&&S.apiKey?(e=S.apiKey)?e.length>8?`${e.slice(0,8)}...`:e:"":"-"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Status:"})," ",(0,a.jsx)("span",{className:(0,d.cn)("font-medium","success"===S.status?"text-green-600":"text-red-600"),children:S.status})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Latency:"})," ",(0,a.jsxs)("span",{className:"text-text-main font-mono",children:["TTFT ",S.latency?.ttft||0,"ms / Total ",S.latency?.total||0,"ms"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Input Tokens:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:g(S.tokens).toLocaleString()})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Output Tokens:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:S.tokens?.completion_tokens?.toLocaleString()||0})]})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(j,{title:"1. Client Request (Input)",defaultOpen:!0,icon:"input",children:(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:JSON.stringify(S.request,null,2)})}),S.providerRequest&&(0,a.jsx)(j,{title:"2. Provider Request (Translated)",icon:"translate",children:(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:JSON.stringify(S.providerRequest,null,2)})}),S.providerResponse&&(0,a.jsx)(j,{title:"3. Provider Response (Raw)",icon:"data_object",children:(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:"object"==typeof S.providerResponse?JSON.stringify(S.providerResponse,null,2):S.providerResponse})}),(0,a.jsxs)(j,{title:"4. Client Response (Final)",defaultOpen:!0,icon:"output",children:[S.response?.thinking&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("h4",{className:"font-semibold text-text-main mb-2 flex items-center gap-2 text-xs uppercase tracking-wide opacity-70",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"psychology"}),"Thinking Process"]}),(0,a.jsx)("pre",{className:"max-h-[200px] max-w-full overflow-auto rounded-lg border border-amber-200 bg-amber-50 p-3 font-mono text-xs text-amber-900 dark:border-amber-800 dark:bg-amber-950/30 dark:text-amber-100 sm:p-4",children:S.response.thinking})]}),(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-2 text-xs uppercase tracking-wide opacity-70",children:"Content"}),(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:S.response?.content||"[No content]"})]})]})]})})]})}let k=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"60d",label:"60D"}];function y(){return(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(r.CardSkeleton,{}),children:(0,a.jsx)(S,{})})}function S(){let e=(0,n.useSearchParams)(),t=(0,n.useRouter)(),[s,i]=(0,l.useState)("today"),o=e.get("tab"),d=o&&["overview","logs","details"].includes(o)?o:"overview";return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)(r.SegmentedControl,{options:[{value:"overview",label:"Overview"},{value:"details",label:"Details"}],value:d,onChange:s=>{if(s===d)return;let a=new URLSearchParams(e);a.set("tab",s),t.push(`/dashboard/usage?${a.toString()}`,{scroll:!1})},className:"w-full sm:w-auto"}),"overview"===d&&(0,a.jsx)(r.SegmentedControl,{options:k,value:s,onChange:i,size:"sm",className:"w-full sm:w-auto"})]}),"overview"===d&&(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(r.CardSkeleton,{}),children:(0,a.jsx)(r.UsageStats,{period:s,setPeriod:i,hidePeriodSelector:!0})}),"logs"===d&&(0,a.jsx)(r.RequestLogger,{}),"details"===d&&(0,a.jsx)(w,{})]})}}},e=>{e.O(0,[2554,7418,3885,9458,9814,4385,497,2147,3204,7358],()=>e(e.s=5085)),_N_E=e.O()}]);
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024 SWC contributors.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|