@techysy/10router 1.3.3 → 1.3.5
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 +7 -7
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +4 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -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 +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 +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 +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 +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 +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/experimental/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +4 -4
- 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 +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 +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 +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 +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 +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 +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 +3 -3
- 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 +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 +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 +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/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.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 +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 +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 +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/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +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 +2 -2
- package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +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 +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 +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 +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 +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/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +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/auth/verify-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
- 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 +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-profiles/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +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.nft.json +1 -1
- 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 +1 -1
- 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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +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/grok-build-settings/route.js.nft.json +1 -1
- 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.nft.json +1 -1
- 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.nft.json +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 +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 +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/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +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 +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 +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/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +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 +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 +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 +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 +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 +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 +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 +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/caps/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +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 +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 +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/network/egress-region/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +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/codebuddy-cn/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +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 +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 +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 +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 +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 +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 +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 +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 +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 +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/oauth/qoder/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +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 +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 +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 +2 -2
- 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 +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 +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 +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 +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 +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 +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 +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 +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 +1 -1
- 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]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +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 +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 +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/dashboard/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +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 +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 +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/quotas/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +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 +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 +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/shell-update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +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 +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 +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 +2 -2
- package/app/.next-cli-build/server/app/callback.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +2 -2
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +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 +2 -2
- package/app/.next-cli-build/server/app/landing.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login/page.js +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 +2 -2
- package/app/.next-cli-build/server/app/login.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +7 -7
- package/app/.next-cli-build/server/chunks/1159.js +1 -1
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/2112.js +1 -1
- package/app/.next-cli-build/server/chunks/2120.js +1 -1
- package/app/.next-cli-build/server/chunks/2468.js +1 -1
- package/app/.next-cli-build/server/chunks/4008.js +1 -0
- package/app/.next-cli-build/server/chunks/4282.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/480.js +6 -0
- package/app/.next-cli-build/server/chunks/4927.js +2 -2
- package/app/.next-cli-build/server/chunks/5210.js +5 -5
- package/app/.next-cli-build/server/chunks/5330.js +2 -2
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/app/.next-cli-build/server/chunks/6326.js +1 -1
- package/app/.next-cli-build/server/chunks/6756.js +1 -1
- package/app/.next-cli-build/server/chunks/682.js +1 -0
- package/app/.next-cli-build/server/chunks/6960.js +1 -1
- package/app/.next-cli-build/server/chunks/7067.js +1 -1
- package/app/.next-cli-build/server/chunks/7122.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7274.js +1 -1
- package/app/.next-cli-build/server/chunks/8172.js +2 -2
- package/app/.next-cli-build/server/chunks/8499.js +1 -1
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +3 -3
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9628.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +2 -2
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/{1321-04a0bd75a8aa1806.js → 1321-daa1cffb0e36b547.js} +1 -1
- package/app/.next-cli-build/static/chunks/5497-1b7804fcf8283e96.js +7 -0
- package/app/.next-cli-build/static/chunks/6109-c3fa41c974584a96.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-3b6db6cc6c16b9ad.js → page-2a679f53191d77f7.js} +16 -16
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-ee6bbb288b22cf1b.js → page-1f9aa643b9f198e9.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-235a55e92666cbb2.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-21ddfd8a9e7d781f.js +14 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-96c6e23fdaedd167.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-ec96de061407f126.js +1 -0
- package/app/.next-cli-build/static/css/29b44146dde595c6.css +1 -0
- package/app/package.json +71 -71
- package/app/public/i18n/changelog/en.md +407 -384
- package/app/public/i18n/changelog/zh-CN.md +405 -382
- package/app/public/i18n/changelog/zh-TW.md +407 -384
- package/app/public/i18n/literals/zh-CN.json +7 -1
- package/app/public/i18n/literals/zh-TW.json +7 -1
- package/app/public/providers/trae-free.png +0 -0
- package/package.json +61 -61
- package/app/.next-cli-build/server/chunks/2269.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-9afa8ec82cb51857.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-fa1fbe256586f3e4.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-0ee5ba586a2d3dfa.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-e638376663f056c2.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-bc56399135571dd5.js +0 -1
- package/app/.next-cli-build/static/css/b28513ee0ebc26ad.css +0 -1
- /package/app/.next-cli-build/static/{HXtMOamjH7NR-IuqflR2K → nGfjkKzxmtvk6d_Zhtya7}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{HXtMOamjH7NR-IuqflR2K → nGfjkKzxmtvk6d_Zhtya7}/_ssgManifest.js +0 -0
package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var a={};a.id=182,a.ids=[182],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27555:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>p});var e=c(48249),f=c(67484),g=c(99258),h=c(74875),i=c(49885),j=c.n(i),k=c(94579),l=a([k]);function m({until:a}){let[b,c]=(0,f.useState)("");return b?(0,e.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function n({connection:a,proxyPools:b,isOAuth:c,isFirst:d,isLast:i,onMoveUp:j,onMoveDown:l,onToggleActive:o,onUpdateProxy:p,onEdit:q,onDelete:r}){let[s,t]=(0,f.useState)(!1),[u,v]=(0,f.useState)(!1),[w,x]=(0,f.useState)(!1),y=(0,f.useRef)(null),z=new Map((b||[]).map(a=>[a.id,a])),A=a.providerSpecificData?.proxyPoolId||null,B=A?z.get(A):null,C=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,D=!!A||C,E=B?`Pool: ${B.name}`:A?`Pool: ${A} (inactive/missing)`:C?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",F="",G=B?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;if(G)try{let a=new URL(G);F=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{F=G}let H=B?.noProxy||a.providerSpecificData?.connectionNoProxy||"",I=B?.isActive===!0?"success":A||C?"error":"default",J=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>a).filter(Boolean).sort()[0]||null,K="unavailable"!==a.testStatus||w?a.testStatus:"active",L=c?a.name||a.email||a.displayName||"OAuth Account":a.name,M=async a=>{v(!0);try{await p("__none__"===a?null:a)}finally{v(!1),t(!1)}};return(0,e.jsxs)("div",{className:`group flex flex-col gap-3 p-2 rounded-lg sm:flex-row sm:items-center sm:justify-between hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${!1===a.isActive?"opacity-60":""}`,children:[(0,e.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("button",{onClick:j,disabled:d,className:`p-0.5 rounded ${d?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,e.jsx)("button",{onClick:l,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,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,e.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:c?"lock":"key"}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium truncate",children:L}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,e.jsx)(k.Ex,{variant:(0,h.g)(a.isActive,K),size:"sm",dot:!0,children:!1===a.isActive?"disabled":K||"Unknown"}),D&&(0,e.jsx)(k.Ex,{variant:I,size:"sm",children:"Proxy"}),a.earliestPackageExpiry&&(0,e.jsxs)(k.Ex,{variant:"outline",size:"sm",title:`${(0,g.Tl)("Earliest package")}: ${a.earliestPackageName||(0,g.Tl)("Quota package")} (${new Date(a.earliestPackageExpiry).toLocaleString()})`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[12px] mr-1",children:"schedule"}),function(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return(0,g.Tl)("expired");let c=Math.floor(b/36e5);if(c<24)return`${c}h`;let d=Math.floor(c/24);return d<30?c%24?`${d}d ${c%24}h`:`${d}d`:new Date(a).toLocaleDateString()}(a.earliestPackageExpiry)]}),w&&!1!==a.isActive&&(0,e.jsx)(m,{until:J}),a.lastError&&!1!==a.isActive&&(0,e.jsx)("span",{className:"text-xs text-red-500 truncate max-w-[300px]",title:a.lastError,children:a.lastError}),(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]})]}),D&&(0,e.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:E,children:E}),F&&(0,e.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:F}),H&&(0,e.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:H,children:["no_proxy: ",H]})]})]})]}),(0,e.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,e.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(b||[]).length>0&&(0,e.jsxs)("div",{className:"relative",ref:y,children:[(0,e.jsxs)("button",{onClick:()=>t(a=>!a),className:`flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 transition-colors ${D?"text-primary":"text-text-muted hover:text-primary"}`,disabled:u,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:u?"progress_activity":"lan"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),s&&(0,e.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 bg-bg border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[(0,e.jsx)("button",{onClick:()=>M("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!A?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,e.jsx)("button",{onClick:()=>M(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${A===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),(0,e.jsxs)("button",{onClick:q,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,e.jsxs)("button",{onClick:r,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,e.jsx)(k.lM,{size:"sm",checked:a.isActive??!0,onChange:o,title:a.isActive??!0?"Disable":"Enable"})]})]})}function o({isOpen:a,provider:b,providerName:c,proxyPools:d,onSave:g,onClose:h}){let i="__none__",[j,l]=(0,f.useState)({name:"",apiKey:"",priority:1,proxyPoolId:i}),[m,n]=(0,f.useState)(!1),[p,q]=(0,f.useState)(null),[r,s]=(0,f.useState)(!1),t=async()=>{n(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:j.apiKey})}),c=await a.json();q(c.valid?"success":"failed")}catch{q("failed")}finally{n(!1)}},u=async()=>{if(b&&j.apiKey){s(!0);try{let a=!1;try{n(!0),q(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:j.apiKey})});a=!!(await c.json()).valid,q(a?"success":"failed")}catch{q("failed")}finally{n(!1)}await g({name:j.name,apiKey:j.apiKey,priority:j.priority,proxyPoolId:j.proxyPoolId===i?null:j.proxyPoolId,testStatus:a?"active":"unknown"})}finally{s(!1)}}};return b?(0,e.jsx)(k.aF,{isOpen:a,title:`Add ${c||b} API Key`,onClose:h,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Name"}),(0,e.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",value:j.name,onChange:a=>l({...j,name:a.target.value}),placeholder:"Production Key"})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"API Key"}),(0,e.jsx)("input",{type:"password",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",value:j.apiKey,onChange:a=>l({...j,apiKey:a.target.value})})]}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(k.$n,{onClick:t,disabled:!j.apiKey||m||r,variant:"secondary",children:m?"Checking...":"Check"})})]}),p&&(0,e.jsx)(k.Ex,{variant:"success"===p?"success":"error",children:"success"===p?"Valid":"Invalid"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,e.jsx)("input",{type:"number",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",value:j.priority,onChange:a=>l({...j,priority:Number.parseInt(a.target.value)||1})})]}),(0,e.jsx)(k.l6,{label:"Proxy Pool",value:j.proxyPoolId,onChange:a=>l({...j,proxyPoolId:a.target.value}),options:[{value:i,label:"None"},...(d||[]).map(a=>({value:a.id,label:a.name}))]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(k.$n,{onClick:u,fullWidth:!0,disabled:!j.name||!j.apiKey||r,children:r?"Saving...":"Save"}),(0,e.jsx)(k.$n,{onClick:h,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function p({providerId:a,isOAuth:b}){let[c,d]=(0,f.useState)([]),[h,i]=(0,f.useState)([]),[j,l]=(0,f.useState)(!0),[m,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)(null),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)("1"),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(null),D=(0,f.useCallback)(async()=>{try{let[b,c,e]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),f=await b.json(),g=await c.json(),h=e.ok?await e.json():{};b.ok&&d((f.connections||[]).filter(b=>b.provider===a)),c.ok&&i(g.proxyPools||[]);let j=(h.providerStrategies||{})[a]||{};w(j.fallbackStrategy||null),y(null!=j.stickyRoundRobinLimit?String(j.stickyRoundRobinLimit):"1"),A(!0===j.earliestExpiryFirst)}catch(a){console.log("ConnectionsCard fetch error:",a)}finally{l(!1)}},[a]),E=async(b,c,d=z)=>{try{let e=await fetch("/api/settings",{cache:"no-store"}),f=(e.ok?await e.json():{}).providerStrategies||{},g={...f[a]||{}};b?g.fallbackStrategy=b:delete g.fallbackStrategy,"round-robin"===b&&""!==c?g.stickyRoundRobinLimit=Number(c)||3:delete g.stickyRoundRobinLimit,d?g.earliestExpiryFirst=!0:delete g.earliestExpiryFirst;let h={...f};0===Object.keys(g).length?delete h[a]:h[a]=g,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:h})})}catch(a){console.log("saveStrategy error:",a)}},F=async(a,b)=>{let e=[...c];[e[a],e[b]]=[e[b],e[a]],d(e);try{await Promise.all([fetch(`/api/providers/${e[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${e[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch{await D()}},G=async a=>{C({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{C(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&d(b=>b.filter(b=>b.id!==a))}catch(a){console.log("delete error:",a)}}})},H=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&d(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("toggle error:",a)}},I=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&d(c=>c.map(c=>c.id===a?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("proxy error:",a)}},J=async b=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,...b})})).ok&&(await D(),q(!1))}catch(a){console.log("save apikey error:",a)}},K=async a=>{try{(await fetch(`/api/providers/${t.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await D(),s(!1))}catch(a){console.log("update connection error:",a)}};return j?(0,e.jsx)(k.Zp,{children:(0,e.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(k.Zp,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,e.jsx)("h2",{className:"text-lg font-semibold",children:(0,g.Tl)("Connections")}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted font-medium",title:(0,g.Tl)("Prioritize accounts with quota packages that expire soonest"),children:(0,g.Tl)("Earliest Expiry First")}),(0,e.jsx)(k.lM,{checked:z,onChange:a=>{A(a),E(v,x,a)}})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,g.Tl)("Round Robin")}),(0,e.jsx)(k.lM,{checked:"round-robin"===v,onChange:a=>{let b=a?"round-robin":null;w(b),a&&!x&&y("1"),E(b,a?x||"1":x,z)}}),"round-robin"===v&&(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted",children:(0,g.Tl)("Sticky:")}),(0,e.jsx)("input",{type:"number",min:1,value:x,onChange:a=>{y(a.target.value),E("round-robin",a.target.value,z)},className:"w-16 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]})]})]}),0===c.length?(0,e.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,e.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>q(!0),children:"Add Connection"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:c.map((a,d)=>(0,e.jsx)(n,{connection:a,proxyPools:h,isOAuth:b,isFirst:0===d,isLast:d===c.length-1,onMoveUp:()=>F(d,d-1),onMoveDown:()=>F(d,d+1),onToggleActive:b=>H(a.id,b),onUpdateProxy:b=>I(a.id,b),onEdit:()=>{u(a),s(!0)},onDelete:()=>G(a.id)},a.id))}),(0,e.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,e.jsx)(k.$n,{size:"sm",icon:"add",onClick:()=>q(!0),children:"Add"})})]})]}),(0,e.jsx)(o,{isOpen:m,provider:a,proxyPools:h,onSave:J,onClose:()=>q(!1)}),(0,e.jsx)(k.wI,{isOpen:r,connection:t,proxyPools:h,onSave:K,onClose:()=>s(!1)}),(0,e.jsx)(k.uo,{isOpen:!!B,onClose:()=>C(null),onConfirm:B?.onConfirm,title:B?.title||"Confirm",message:B?.message,variant:"danger"})]})}k=(l.then?(await l)():l)[0],m.propTypes={until:j().string.isRequired},n.propTypes={connection:j().shape({id:j().string,name:j().string,email:j().string,displayName:j().string,testStatus:j().string,isActive:j().bool,lastError:j().string,priority:j().number}).isRequired,proxyPools:j().array,isOAuth:j().bool.isRequired,isFirst:j().bool.isRequired,isLast:j().bool.isRequired,onMoveUp:j().func.isRequired,onMoveDown:j().func.isRequired,onToggleActive:j().func.isRequired,onUpdateProxy:j().func,onEdit:j().func.isRequired,onDelete:j().func.isRequired},o.propTypes={isOpen:j().bool.isRequired,provider:j().string,providerName:j().string,proxyPools:j().array,onSave:j().func.isRequired,onClose:j().func.isRequired},p.propTypes={providerId:j().string.isRequired,isOAuth:j().bool},d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},27961:(a,b,c)=>{"use strict";c.d(b,{f:()=>e,t:()=>f});var d=c(48249);function e({label:a,children:b}){return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:a}),(0,d.jsx)("div",{className:"w-full min-w-0 flex-1",children:b})]})}let f={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
|
|
1
|
+
(()=>{var a={};a.id=182,a.ids=[182],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27555:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>r});var e=c(48249),f=c(67484),g=c(99258),h=c(74875),i=c(54008),j=c(51543),k=c(49885),l=c.n(k),m=c(94579),n=a([m]);function o({until:a}){let[b,c]=(0,f.useState)("");return b?(0,e.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function p({connection:a,proxyPools:b,isOAuth:c,isFirst:d,isLast:k,onMoveUp:l,onMoveDown:n,onToggleActive:q,onUpdateProxy:r,onEdit:s,onDelete:t}){let[u,v]=(0,f.useState)(!1),[w,x]=(0,f.useState)(!1),y=(0,f.useRef)(null),z=new Map((b||[]).map(a=>[a.id,a])),A=a.providerSpecificData?.proxyPoolId||null,B=A?z.get(A):null,C=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,D=!!A||C,E=B?`Pool: ${B.name}`:A?`Pool: ${A} (inactive/missing)`:C?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",F="",G=B?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;if(G)try{let a=new URL(G);F=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{F=G}let H=B?.noProxy||a.providerSpecificData?.connectionNoProxy||"",I=B?.isActive===!0?"success":A||C?"error":"default",[J,K]=(0,f.useState)(()=>(0,i._)(a)),{state:L,earliestUntil:M}=J,N="partial"===L||"unavailable"===L,O="partial"===L?(0,g.Tl)("Partial"):L,P=c?a.name||a.email||a.displayName||"OAuth Account":a.name,Q=async a=>{x(!0);try{await r("__none__"===a?null:a)}finally{x(!1),v(!1)}};return(0,e.jsxs)("div",{className:`group flex flex-col gap-3 p-2 rounded-lg sm:flex-row sm:items-center sm:justify-between hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${!1===a.isActive?"opacity-60":""}`,children:[(0,e.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,e.jsxs)("div",{className:"flex flex-col",children:[(0,e.jsx)("button",{onClick:l,disabled:d,className:`p-0.5 rounded ${d?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,e.jsx)("button",{onClick:n,disabled:k,className:`p-0.5 rounded ${k?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,e.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:c?"lock":"key"}),(0,e.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,e.jsx)("p",{className:"text-sm font-medium truncate",children:P}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,e.jsx)(m.Ex,{variant:(0,h.g)(a.isActive,L),size:"sm",dot:!0,children:!1===a.isActive?"disabled":O||"Unknown"}),D&&(0,e.jsx)(m.Ex,{variant:I,size:"sm",children:"Proxy"}),a.earliestPackageExpiry&&(0,e.jsxs)(m.Ex,{variant:"outline",size:"sm",title:`${(0,g.Tl)("Earliest package")}: ${a.earliestPackageName||(0,g.Tl)("Quota package")} (${new Date(a.earliestPackageExpiry).toLocaleString()})`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[12px] mr-1",children:"schedule"}),function(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return(0,g.Tl)("expired");let c=Math.floor(b/36e5);if(c<24)return`${c}h`;let d=Math.floor(c/24);return d<30?c%24?`${d}d ${c%24}h`:`${d}d`:new Date(a).toLocaleDateString()}(a.earliestPackageExpiry)]}),N&&!1!==a.isActive&&(0,e.jsx)(o,{until:M}),a.lastError&&!1!==a.isActive&&(0,e.jsx)("span",{className:"text-xs text-red-500 truncate max-w-[300px]",title:(0,j.DY)(a.lastError),children:(0,j.DY)(a.lastError)}),(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]})]}),D&&(0,e.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:E,children:E}),F&&(0,e.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:F}),H&&(0,e.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:H,children:["no_proxy: ",H]})]})]})]}),(0,e.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,e.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(b||[]).length>0&&(0,e.jsxs)("div",{className:"relative",ref:y,children:[(0,e.jsxs)("button",{onClick:()=>v(a=>!a),className:`flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 transition-colors ${D?"text-primary":"text-text-muted hover:text-primary"}`,disabled:w,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:w?"progress_activity":"lan"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),u&&(0,e.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 bg-bg border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[(0,e.jsx)("button",{onClick:()=>Q("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!A?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,e.jsx)("button",{onClick:()=>Q(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${A===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),(0,e.jsxs)("button",{onClick:s,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,e.jsxs)("button",{onClick:t,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,e.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,e.jsx)(m.lM,{size:"sm",checked:a.isActive??!0,onChange:q,title:a.isActive??!0?"Disable":"Enable"})]})]})}function q({isOpen:a,provider:b,providerName:c,proxyPools:d,onSave:g,onClose:h}){let i="__none__",[j,k]=(0,f.useState)({name:"",apiKey:"",priority:1,proxyPoolId:i}),[l,n]=(0,f.useState)(!1),[o,p]=(0,f.useState)(null),[r,s]=(0,f.useState)(!1),t=async()=>{n(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:j.apiKey})}),c=await a.json();p(c.valid?"success":"failed")}catch{p("failed")}finally{n(!1)}},u=async()=>{if(b&&j.apiKey){s(!0);try{let a=!1;try{n(!0),p(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:j.apiKey})});a=!!(await c.json()).valid,p(a?"success":"failed")}catch{p("failed")}finally{n(!1)}await g({name:j.name,apiKey:j.apiKey,priority:j.priority,proxyPoolId:j.proxyPoolId===i?null:j.proxyPoolId,testStatus:a?"active":"unknown"})}finally{s(!1)}}};return b?(0,e.jsx)(m.aF,{isOpen:a,title:`Add ${c||b} API Key`,onClose:h,children:(0,e.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Name"}),(0,e.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",value:j.name,onChange:a=>k({...j,name:a.target.value}),placeholder:"Production Key"})]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"API Key"}),(0,e.jsx)("input",{type:"password",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",value:j.apiKey,onChange:a=>k({...j,apiKey:a.target.value})})]}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)(m.$n,{onClick:t,disabled:!j.apiKey||l||r,variant:"secondary",children:l?"Checking...":"Check"})})]}),o&&(0,e.jsx)(m.Ex,{variant:"success"===o?"success":"error",children:"success"===o?"Valid":"Invalid"}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,e.jsx)("input",{type:"number",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",value:j.priority,onChange:a=>k({...j,priority:Number.parseInt(a.target.value)||1})})]}),(0,e.jsx)(m.l6,{label:"Proxy Pool",value:j.proxyPoolId,onChange:a=>k({...j,proxyPoolId:a.target.value}),options:[{value:i,label:"None"},...(d||[]).map(a=>({value:a.id,label:a.name}))]}),(0,e.jsxs)("div",{className:"flex gap-2",children:[(0,e.jsx)(m.$n,{onClick:u,fullWidth:!0,disabled:!j.name||!j.apiKey||r,children:r?"Saving...":"Save"}),(0,e.jsx)(m.$n,{onClick:h,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function r({providerId:a,isOAuth:b}){let[c,d]=(0,f.useState)([]),[h,i]=(0,f.useState)([]),[j,k]=(0,f.useState)(!0),[l,n]=(0,f.useState)(!1),[o,s]=(0,f.useState)(!1),[t,u]=(0,f.useState)(null),[v,w]=(0,f.useState)(null),[x,y]=(0,f.useState)("1"),[z,A]=(0,f.useState)(!1),[B,C]=(0,f.useState)(null),D=(0,f.useCallback)(async()=>{try{let[b,c,e]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),f=await b.json(),g=await c.json(),h=e.ok?await e.json():{};b.ok&&d((f.connections||[]).filter(b=>b.provider===a)),c.ok&&i(g.proxyPools||[]);let j=(h.providerStrategies||{})[a]||{};w(j.fallbackStrategy||null),y(null!=j.stickyRoundRobinLimit?String(j.stickyRoundRobinLimit):"1"),A(!0===j.earliestExpiryFirst)}catch(a){console.log("ConnectionsCard fetch error:",a)}finally{k(!1)}},[a]),E=async(b,c,d=z)=>{try{let e=await fetch("/api/settings",{cache:"no-store"}),f=(e.ok?await e.json():{}).providerStrategies||{},g={...f[a]||{}};b?g.fallbackStrategy=b:delete g.fallbackStrategy,"round-robin"===b&&""!==c?g.stickyRoundRobinLimit=Number(c)||3:delete g.stickyRoundRobinLimit,d?g.earliestExpiryFirst=!0:delete g.earliestExpiryFirst;let h={...f};0===Object.keys(g).length?delete h[a]:h[a]=g,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:h})})}catch(a){console.log("saveStrategy error:",a)}},F=async(a,b)=>{let e=[...c];[e[a],e[b]]=[e[b],e[a]],d(e);try{await Promise.all([fetch(`/api/providers/${e[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a})}),fetch(`/api/providers/${e[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b})})])}catch{await D()}},G=async a=>{C({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{C(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&d(b=>b.filter(b=>b.id!==a))}catch(a){console.log("delete error:",a)}}})},H=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&d(c=>c.map(c=>c.id===a?{...c,isActive:b}:c))}catch(a){console.log("toggle error:",a)}},I=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&d(c=>c.map(c=>c.id===a?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c))}catch(a){console.log("proxy error:",a)}},J=async b=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,...b})})).ok&&(await D(),n(!1))}catch(a){console.log("save apikey error:",a)}},K=async a=>{try{(await fetch(`/api/providers/${t.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await D(),s(!1))}catch(a){console.log("update connection error:",a)}};return j?(0,e.jsx)(m.Zp,{children:(0,e.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(m.Zp,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,e.jsx)("h2",{className:"text-lg font-semibold",children:(0,g.Tl)("Connections")}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted font-medium",title:(0,g.Tl)("Prioritize accounts with quota packages that expire soonest"),children:(0,g.Tl)("Earliest Expiry First")}),(0,e.jsx)(m.lM,{checked:z,onChange:a=>{A(a),E(v,x,a)}})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,g.Tl)("Round Robin")}),(0,e.jsx)(m.lM,{checked:"round-robin"===v,onChange:a=>{let b=a?"round-robin":null;w(b),a&&!x&&y("1"),E(b,a?x||"1":x,z)}}),"round-robin"===v&&(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted",children:(0,g.Tl)("Sticky:")}),(0,e.jsx)("input",{type:"number",min:1,value:x,onChange:a=>{y(a.target.value),E("round-robin",a.target.value,z)},className:"w-16 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]})]})]}),0===c.length?(0,e.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,e.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,e.jsx)(m.$n,{size:"sm",icon:"add",onClick:()=>n(!0),children:"Add Connection"})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:c.map((a,d)=>(0,e.jsx)(p,{connection:a,proxyPools:h,isOAuth:b,isFirst:0===d,isLast:d===c.length-1,onMoveUp:()=>F(d,d-1),onMoveDown:()=>F(d,d+1),onToggleActive:b=>H(a.id,b),onUpdateProxy:b=>I(a.id,b),onEdit:()=>{u(a),s(!0)},onDelete:()=>G(a.id)},a.id))}),(0,e.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,e.jsx)(m.$n,{size:"sm",icon:"add",onClick:()=>n(!0),children:"Add"})})]})]}),(0,e.jsx)(q,{isOpen:l,provider:a,proxyPools:h,onSave:J,onClose:()=>n(!1)}),(0,e.jsx)(m.wI,{isOpen:o,connection:t,proxyPools:h,onSave:K,onClose:()=>s(!1)}),(0,e.jsx)(m.uo,{isOpen:!!B,onClose:()=>C(null),onConfirm:B?.onConfirm,title:B?.title||"Confirm",message:B?.message,variant:"danger"})]})}m=(n.then?(await n)():n)[0],o.propTypes={until:l().string.isRequired},p.propTypes={connection:l().shape({id:l().string,name:l().string,email:l().string,displayName:l().string,testStatus:l().string,isActive:l().bool,lastError:l().string,priority:l().number}).isRequired,proxyPools:l().array,isOAuth:l().bool.isRequired,isFirst:l().bool.isRequired,isLast:l().bool.isRequired,onMoveUp:l().func.isRequired,onMoveDown:l().func.isRequired,onToggleActive:l().func.isRequired,onUpdateProxy:l().func,onEdit:l().func.isRequired,onDelete:l().func.isRequired},q.propTypes={isOpen:l().bool.isRequired,provider:l().string,providerName:l().string,proxyPools:l().array,onSave:l().func.isRequired,onClose:l().func.isRequired},r.propTypes={providerId:l().string.isRequired,isOAuth:l().bool},d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},27961:(a,b,c)=>{"use strict";c.d(b,{f:()=>e,t:()=>f});var d=c(48249);function e({label:a,children:b}){return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:a}),(0,d.jsx)("div",{className:"w-full min-w-0 flex-1",children:b})]})}let f={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
|
|
2
2
|
"results": [
|
|
3
3
|
{ "title": "...", "url": "...", "snippet": "..." }
|
|
4
4
|
]
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
-F "temperature=${A}"`:""}${r.includes("prompt")&&w?` \\
|
|
37
37
|
-F "prompt=${w}"`:""}`,Z=async()=>{if(!s||!X)return;P(!0),R(""),L(null);let a=Date.now();try{let b=new FormData;b.append("file",s),b.append("model",X),r.includes("language")&&u&&b.append("language",u),r.includes("response_format")&&b.append("response_format",y),r.includes("temperature")&&A&&b.append("temperature",A),r.includes("prompt")&&w&&b.append("prompt",w);let c={};C&&(c.Authorization=`Bearer ${C}`);let d=await fetch("/api/v1/audio/transcriptions",{method:"POST",headers:c,body:b});N(Date.now()-a);let e=(d.headers.get("content-type")||"").includes("application/json")?await d.json():await d.text();if(!d.ok)return void R(e?.error?.message||e?.error||e||`HTTP ${d.status}`);L(e)}catch(a){R(a.message||"Network error")}finally{P(!1)}},$="string"==typeof K?K:K?JSON.stringify(K,null,2):`{
|
|
38
38
|
"text": "Hello world..."
|
|
39
|
-
}`;return(0,e.jsxs)(g.Zp,{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2.5",children:[n.length>0?(0,e.jsx)(k.f,{label:"Model",children:(0,e.jsx)("select",{value:o,onChange:a=>p(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:n.map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):(0,e.jsx)(k.f,{label:"Model",children:(0,e.jsx)("input",{value:o,onChange:a=>p(a.target.value),placeholder:"Enter model id",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"})}),(0,e.jsx)(k.f,{label:"Endpoint",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[W,"/v1/audio/transcriptions"]}),I&&(0,e.jsxs)("button",{onClick:()=>F(a=>!a),title:E?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${E?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,e.jsx)(k.f,{label:"API Key",children:(0,e.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:C?`${C.slice(0,8)}${"•".repeat(Math.min(20,C.length-8))}`:(0,e.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),(0,e.jsx)(k.f,{label:"Audio File",children:(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("input",{type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:a=>t(a.target.files?.[0]||null),className:"w-full text-xs text-text-muted file:mr-2 file:py-1 file:px-2.5 file:rounded-lg file:border file:border-border file:bg-surface file:text-text-main hover:file:bg-sidebar file:cursor-pointer"}),s&&(0,e.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[s.name," \xb7 ",(s.size/1024).toFixed(1)," KB"]})]})}),r.includes("language")&&(0,e.jsx)(k.f,{label:"Language",children:(0,e.jsx)("input",{value:u,onChange:a=>v(a.target.value),placeholder:"e.g. en, vi, ja (auto-detect if empty)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"})}),r.includes("prompt")&&(0,e.jsx)(k.f,{label:"Prompt",children:(0,e.jsx)("input",{value:w,onChange:a=>x(a.target.value),placeholder:"optional context to improve accuracy",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),r.includes("temperature")&&(0,e.jsx)(k.f,{label:"Temperature",children:(0,e.jsx)("input",{type:"number",step:"0.1",min:"0",max:"1",value:A,onChange:a=>B(a.target.value),placeholder:"0 - 1 (default 0)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),r.includes("response_format")&&(0,e.jsx)(k.f,{label:"Response Format",children:(0,e.jsxs)("select",{value:y,onChange:a=>z(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"json",children:"json"}),(0,e.jsx)("option",{value:"text",children:"text"}),(0,e.jsx)("option",{value:"srt",children:"srt"}),(0,e.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,e.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,e.jsxs)("div",{className:"mt-1",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("button",{onClick:()=>T(Y),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:S?"check":"content_copy"}),S?"Copied":"Copy"]}),(0,e.jsxs)("button",{onClick:Z,disabled:O||!s||!X,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:O?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),O?"Transcribing...":"Run"]})]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:Y})]}),Q&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:Q}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",K&&M&&(0,e.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",M,"ms"]})]}),K&&(0,e.jsxs)("button",{onClick:()=>V($),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:U?"check":"content_copy"}),U?"Copied":"Copy"]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:$})]})]})]})}g=(l.then?(await l)():l)[0],d()}catch(a){d(a)}})},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58504:(a,b,c)=>{"use strict";c.d(b,{R:()=>d});let d={"google-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"hardcoded"},openai:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openai-tts-models",voiceKey:"openai-tts-voices",voicesPerModel:!0},openrouter:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openrouter-tts-models",voiceKey:"openrouter-tts-voices",voicesPerModel:!0},elevenlabs:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"elevenlabs-tts-models",apiEndpoint:"/api/media-providers/tts/elevenlabs/voices"},"edge-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},"local-device":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},nvidia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},hyperbolic:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},deepgram:{hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/deepgram/voices"},huggingface:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},cartesia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},playht:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},coqui:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},tortoise:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},inworld:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"inworld-tts-models",apiEndpoint:"/api/media-providers/tts/inworld/voices"},qwen:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},minimax:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices",defaultVoiceId:"English_expressive_narrator"},"minimax-cn":{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices?provider=minimax-cn",defaultVoiceId:"English_expressive_narrator"},gemini:{hasLanguageDropdown:!1,hasLanguageHint:!0,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"gemini-tts-models",voiceKey:"gemini-tts-voices",voicesPerModel:!0},"xiaomi-mimo":{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!1,hasStyleInput:!0,hasLanguageHint:!0,languageOptions:["Chinese","English"],voiceSource:"hardcoded",modelKey:"xiaomi-mimo-tts-models",voicesPerModel:!0}}},62115:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{i:()=>p});var e=c(48249),f=c(67484),g=c(94579),h=c(92592),i=c(91431),j=c(50377),k=c(58504),l=c(99258);c(68019);var m=c(34973),n=c(27961),o=a([g]);g=(o.then?(await o)():o)[0];let q=`// Audio will appear here after running.
|
|
39
|
+
}`;return(0,e.jsxs)(g.Zp,{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2.5",children:[n.length>0?(0,e.jsx)(k.f,{label:"Model",children:(0,e.jsx)("select",{value:o,onChange:a=>p(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:n.map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):(0,e.jsx)(k.f,{label:"Model",children:(0,e.jsx)("input",{value:o,onChange:a=>p(a.target.value),placeholder:"Enter model id",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"})}),(0,e.jsx)(k.f,{label:"Endpoint",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[W,"/v1/audio/transcriptions"]}),I&&(0,e.jsxs)("button",{onClick:()=>F(a=>!a),title:E?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${E?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,e.jsx)(k.f,{label:"API Key",children:(0,e.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:C?`${C.slice(0,8)}${"•".repeat(Math.min(20,C.length-8))}`:(0,e.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),(0,e.jsx)(k.f,{label:"Audio File",children:(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("input",{type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:a=>t(a.target.files?.[0]||null),className:"w-full text-xs text-text-muted file:mr-2 file:py-1 file:px-2.5 file:rounded-lg file:border file:border-border file:bg-surface file:text-text-main hover:file:bg-sidebar file:cursor-pointer"}),s&&(0,e.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[s.name," \xb7 ",(s.size/1024).toFixed(1)," KB"]})]})}),r.includes("language")&&(0,e.jsx)(k.f,{label:"Language",children:(0,e.jsx)("input",{value:u,onChange:a=>v(a.target.value),placeholder:"e.g. en, vi, ja (auto-detect if empty)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"})}),r.includes("prompt")&&(0,e.jsx)(k.f,{label:"Prompt",children:(0,e.jsx)("input",{value:w,onChange:a=>x(a.target.value),placeholder:"optional context to improve accuracy",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),r.includes("temperature")&&(0,e.jsx)(k.f,{label:"Temperature",children:(0,e.jsx)("input",{type:"number",step:"0.1",min:"0",max:"1",value:A,onChange:a=>B(a.target.value),placeholder:"0 - 1 (default 0)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),r.includes("response_format")&&(0,e.jsx)(k.f,{label:"Response Format",children:(0,e.jsxs)("select",{value:y,onChange:a=>z(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"json",children:"json"}),(0,e.jsx)("option",{value:"text",children:"text"}),(0,e.jsx)("option",{value:"srt",children:"srt"}),(0,e.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,e.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,e.jsxs)("div",{className:"mt-1",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("button",{onClick:()=>T(Y),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:S?"check":"content_copy"}),S?"Copied":"Copy"]}),(0,e.jsxs)("button",{onClick:Z,disabled:O||!s||!X,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:O?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),O?"Transcribing...":"Run"]})]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:Y})]}),Q&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:Q}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",K&&M&&(0,e.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",M,"ms"]})]}),K&&(0,e.jsxs)("button",{onClick:()=>V($),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:U?"check":"content_copy"}),U?"Copied":"Copy"]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:$})]})]})]})}g=(l.then?(await l)():l)[0],d()}catch(a){d(a)}})},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},51543:(a,b,c)=>{"use strict";c.d(b,{DY:()=>g});var d=c(99258);let e=/subscription_quota_exhausted|本周用量已满|本周额度已用完/i;function f(a,b){return(0,d.Tl)(a).replace("{n}",String(b))}function g(a){if(!a||"string"!=typeof a)return a??"";let b=(0,d.Tl)(a);if(b&&b!==a)return b;if(e.test(a))return(0,d.Tl)("Subscription quota used up. Please wait for the quota reset.");if(/Individual quota reached|QUOTA_EXHAUSTED|RESOURCE_EXHAUSTED/i.test(a)){let b,c,e,g,h,i,j,k,{delay:l,timestamp:m,model:n}=(b=String(a||""),c=null,e=null,g=/"quotaResetDelay"\s*:\s*"([^"]+)"/.exec(b),h=/\bResets in\s+([0-9hms.]+)/i.exec(b),c=g&&g[1]||h&&h[1]||null,i=/"quotaResetTimeStamp"\s*:\s*"([^"]+)"/.exec(b),j=/"quotaResetTimeStamp"\s*:\s*(".*?"|\S+)/.exec(b),(e=i&&i[1]||j&&j[1]||null)&&(e=e.replace(/^"|"$/g,"")),{delay:c,timestamp:e,model:/"model"\s*:\s*"([^"]+)"/.exec(b)?.[1]||null}),o=function(a){if(!a)return"";let{h:b,m:c,s:d}=a;if(d>=60&&(c+=Math.floor(d/60),d%=60),c>=60&&(b+=Math.floor(c/60),c%=60),b>=24){let a=Math.floor(b/24),c=b%24;return c>0?`${f("{n}d",a)} ${f("{n}h",c)}`:f("{n}d",a)}let e=[];return b>0&&e.push(f("{n}h",b)),c>0&&e.push(f("{n}m",c)),(d>0||0===e.length)&&e.push(f("{n}s",d)),e.join(" ")}((k=/^(?:(\d+(?:\.\d+)?)h)?(?:(\d+(?:\.\d+)?)m)?(?:(\d+(?:\.\d+)?)s)?$/i.exec(String(l||"").trim()))&&(k[1]||k[2]||k[3])?{h:Math.floor(parseFloat(k[1]||0)),m:Math.floor(parseFloat(k[2]||0)),s:Math.round(parseFloat(k[3]||0))}:null),p=m?function(a){let b=new Date(a);if(Number.isNaN(b.getTime()))return a||"";try{return b.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return b.toISOString()}}(m):"",q=(0,d.Tl)(n?"Individual quota reached for model {model}. Resets at {time} (in {duration}).":"Individual quota reached. Resets at {time} (in {duration}).");return(q=(q=q.replace("{model}",n||"")).replace("{time}",p||(0,d.Tl)("shortly"))).replace("{duration}",o||(0,d.Tl)("a short while"))}return b}},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},58504:(a,b,c)=>{"use strict";c.d(b,{R:()=>d});let d={"google-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"hardcoded"},openai:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openai-tts-models",voiceKey:"openai-tts-voices",voicesPerModel:!0},openrouter:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openrouter-tts-models",voiceKey:"openrouter-tts-voices",voicesPerModel:!0},elevenlabs:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"elevenlabs-tts-models",apiEndpoint:"/api/media-providers/tts/elevenlabs/voices"},"edge-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},"local-device":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},nvidia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},hyperbolic:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},deepgram:{hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/deepgram/voices"},huggingface:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},cartesia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},playht:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},coqui:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},tortoise:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},inworld:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"inworld-tts-models",apiEndpoint:"/api/media-providers/tts/inworld/voices"},qwen:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},minimax:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices",defaultVoiceId:"English_expressive_narrator"},"minimax-cn":{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices?provider=minimax-cn",defaultVoiceId:"English_expressive_narrator"},gemini:{hasLanguageDropdown:!1,hasLanguageHint:!0,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"gemini-tts-models",voiceKey:"gemini-tts-voices",voicesPerModel:!0},"xiaomi-mimo":{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!1,hasStyleInput:!0,hasLanguageHint:!0,languageOptions:["Chinese","English"],voiceSource:"hardcoded",modelKey:"xiaomi-mimo-tts-models",voicesPerModel:!0}}},62115:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{i:()=>p});var e=c(48249),f=c(67484),g=c(94579),h=c(92592),i=c(91431),j=c(50377),k=c(58504),l=c(99258);c(68019);var m=c(34973),n=c(27961),o=a([g]);g=(o.then?(await o)():o)[0];let q=`// Audio will appear here after running.
|
|
40
40
|
// Example JSON response (response_format=json):
|
|
41
41
|
{
|
|
42
42
|
"format": "mp3",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
-H "Content-Type: application/json" \\
|
|
46
46
|
-H "Authorization: Bearer ${H||"YOUR_KEY"}" \\
|
|
47
47
|
-d '${JSON.stringify(aw)}' \\
|
|
48
|
-
${"json"===P?"":"--output speech.mp3"}`,ay=async()=>{if(!D.trim()||!av)return;W(!0),Y(""),S(""),U(null);let a=Date.now();try{let b={"Content-Type":"application/json"};H&&(b.Authorization=`Bearer ${H}`);let c=`/api/v1/audio/speech${"json"===P?"?response_format=json":""}`,d=await fetch(c,{method:"POST",headers:b,body:JSON.stringify({...aw,input:D.trim()})});if($(Date.now()-a),!d.ok){let a=await d.json().catch(()=>({}));Y(a?.error?.message||a?.error||`HTTP ${d.status}`);return}if("json"===P){let a=await d.json();U(a);let b=a.format||"mp3",c=await fetch(`data:audio/${b};base64,${a.audio}`).then(a=>a.blob());S(URL.createObjectURL(c))}else{let a=await d.blob();S(URL.createObjectURL(a))}}catch(a){Y(a.message||"Network error")}finally{W(!1)}};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(g.Zp,{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,e.jsx)(n.f,{label:"Endpoint",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[at,"/v1/audio/speech"]}),N&&(0,e.jsxs)("button",{onClick:()=>K(a=>!a),title:J?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${J?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,e.jsx)(n.f,{label:"API Key",children:(0,e.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:H?`${H.slice(0,8)}${"•".repeat(Math.min(20,H.length-8))}`:ap>0?(0,e.jsxs)("span",{className:"text-text-muted italic",children:["Using stored key(s) \xb7 ",ap," connection",ap>1?"s":""]}):(0,e.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),o.hasModelSelector&&(o.modelKey||(0,i.KC)(a).some(a=>"tts"===(0,i.CP)(a)))&&(0,e.jsx)(n.f,{label:"Model",children:(0,e.jsx)("select",{value:B,onChange:a=>C(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:((c=(0,i.KC)(a).filter(a=>"tts"===(0,i.CP)(a))).length?c:(0,i.KC)(o.modelKey)||[]).map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),o.hasLanguageHint&&(0,e.jsx)(n.f,{label:"Language",children:(0,e.jsxs)("select",{value:an,onChange:a=>ao(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"",children:"Auto-detect"}),(o.languageOptions||m.I).map(a=>"string"==typeof a?(0,e.jsx)("option",{value:a,children:a},a):(0,e.jsx)("option",{value:a.name,children:a.name},a.id))]})}),o.hasBrowseButton&&(0,e.jsx)(n.f,{label:"Language",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsx)("button",{onClick:ar,className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-surface font-mono truncate text-left hover:border-primary/40 transition-colors",children:z?(0,e.jsx)("span",{className:"text-text-main",children:ad.find(a=>a.code===z)?.name||z}):(0,e.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,e.jsxs)("button",{onClick:ar,className:"flex w-full items-center justify-center gap-1 text-xs px-2.5 py-1.5 rounded-lg border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors sm:w-auto sm:shrink-0",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),x.length>0&&(0,e.jsx)(n.f,{label:"Voice",children:(0,e.jsx)("div",{className:"flex flex-wrap gap-1.5",children:x.map(a=>(0,e.jsxs)("button",{onClick:()=>{s(a.id),u(a.name),o.hasVoiceIdInput&&w(a.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${r===a.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[a.name,a.language?` \xb7 ${a.language}`:"",a.gender?` \xb7 ${a.gender[0].toUpperCase()}`:"",!0===a.free_users_allowed&&(0,e.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-green-500/15 text-green-600 border border-green-500/20",children:"Free"}),!1===a.free_users_allowed&&(0,e.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-amber-500/15 text-amber-600 border border-amber-500/20",children:"Paid"})]},a.id))})}),o.hasVoiceIdInput&&(0,e.jsx)(n.f,{label:"Voice ID",children:(0,e.jsx)("div",{className:"flex flex-col gap-1",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{value:v,onChange:a=>{w(a.target.value),s(a.target.value)},placeholder:"e.g. CwhRBWXzGAHq8TQ4Fs17",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"}),v&&(0,e.jsx)("button",{type:"button",onClick:()=>{w(""),s("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})})}),o.hasLanguageDropdown&&(0,e.jsx)(n.f,{label:"Language",children:(0,e.jsx)("select",{value:r,onChange:b=>{let c=(0,i.KC)(a).filter(a=>"tts"===(0,i.CP)(a)).find(a=>a.id===b.target.value);s(b.target.value),u(c?.name||b.target.value)},className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:(0,i.KC)(a).filter(a=>"tts"===(0,i.CP)(a)).map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,e.jsx)(n.f,{label:"Input",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{value:D,onChange:a=>E(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"}),D&&(0,e.jsx)("button",{type:"button",onClick:()=>E(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),o.hasStyleInput&&(0,e.jsx)(n.f,{label:(0,l.Tl)("Style"),children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("textarea",{value:F,onChange:a=>G(a.target.value),placeholder:(0,l.Tl)("e.g. a warm, gentle voice, speaking slowly with a British accent"),rows:2,className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary resize-none"}),F&&(0,e.jsx)("button",{type:"button",onClick:()=>G(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,e.jsx)(n.f,{label:"Output Format",children:(0,e.jsxs)("select",{value:P,onChange:a=>Q(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,e.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,e.jsxs)("div",{className:"mt-1",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("button",{onClick:()=>aa(ax),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:_?"check":"content_copy"}),_?"Copied":"Copy"]}),(0,e.jsxs)("button",{onClick:ay,disabled:V||!D.trim()||!av,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:V?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),V?"Generating...":"Run"]})]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:ax})]}),X&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:X}),R?(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",Z&&(0,e.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",Z,"ms"]})]}),(0,e.jsxs)("a",{href:R,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,e.jsx)("audio",{controls:!0,src:R,className:"w-full"}),T&&(0,e.jsxs)("div",{className:"mt-3",children:[(0,e.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify({format:T.format,audio:T.audio?`${T.audio.substring(0,100)}...`:""},null,2)})]})]}):(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,e.jsx)("pre",{className:"mt-1.5 bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-50",children:q})]})]})]}),ab&&(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},onClick:()=>ac(!1),children:(0,e.jsxs)("div",{className:"border border-border rounded-xl shadow-2xl w-full max-w-md mx-4 flex flex-col max-h-[80vh]",style:{backgroundColor:"var(--color-bg)",isolation:"isolate"},onClick:a=>a.stopPropagation(),children:[(0,e.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Select Language"}),(0,e.jsx)("button",{onClick:()=>ac(!1),className:"text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,e.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,e.jsx)("input",{autoFocus:!0,value:ah,onChange:a=>ai(a.target.value),placeholder:"Search language...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),(0,e.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[aj&&(0,e.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:aj}),af?(0,e.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,e.jsxs)("div",{className:"flex flex-col gap-0.5",children:[as.map(a=>(0,e.jsxs)("button",{onClick:()=>{let b;return ac(!1),A(a.code),b=al[a.code]?.voices||[],void(y(b),b.length&&(s(b[0].id),u(b[0].name),o.hasVoiceIdInput&&w(b[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${z===a.code?"bg-primary/10 text-primary":""}`,children:[(0,e.jsx)("span",{className:"text-sm",children:a.name}),(0,e.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:[a.voices.length," voices"]}),z===a.code&&(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},a.code)),0===as.length&&(0,e.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}d()}catch(a){d(a)}})},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64754:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>v});var e=c(48249),f=c(19099),g=c(2116),h=c.n(g),i=c(67484),j=c(99258),k=c(94579),l=c(72738),m=c(92592),n=c(27555),o=c(89230),p=c(27961),q=c(93963),r=c(62115),s=c(88847),t=c(40379),u=a([k,l,n,o,q,r,s,t]);function v(){let{kind:a,id:b}=(0,f.useParams)(),c=(0,f.useRouter)(),d=m.rj.find(b=>b.id===a),g=(0,m.gC)(b)&&"embedding"===a,u=async()=>{if(confirm("Delete this Custom Embedding node?"))try{(await fetch(`/api/provider-nodes/${b}`,{method:"DELETE"})).ok&&c.push(`/dashboard/media-providers/${a}`)}catch(a){console.log("Error deleting custom embedding node:",a)}},[v,w]=(0,i.useState)(null),[x,y]=(0,i.useState)(g),[z,A]=(0,i.useState)(!1);if(!d)return(0,f.notFound)();let B=m.Q2[b],C=g?v?{id:b,name:v.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"}:null:B;if(!g&&!B||g&&!x&&!v)return(0,f.notFound)();if(g&&x)return(0,e.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let D=g?["embedding"]:C.serviceKinds??["llm"];return g||D.includes(a)?(0,e.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)(h(),{href:`/dashboard/media-providers/${a}`,className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),d.label]}),(0,e.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,e.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${C.color}15`},children:(0,e.jsx)(l.A,{src:`/providers/${C.id}.png`,alt:C.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:C.textIcon||C.id.slice(0,2).toUpperCase(),fallbackColor:C.color})}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,e.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:C.name}),!g&&C.notice?.apiKeyUrl&&(0,e.jsxs)("a",{href:C.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[g&&(0,e.jsxs)(k.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",v?.prefix]}),D.map(b=>(0,e.jsx)(k.Ex,{variant:b===a?"primary":"default",size:"sm",children:b.toUpperCase()},b))]})]}),g&&(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>A(!0),children:"Edit"}),(0,e.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:u,children:"Delete"})]})]})]}),!g&&C.kindNotice?.[a]&&(0,e.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,e.jsx)("p",{className:"text-sm",children:C.kindNotice[a]})]}),!g&&C.notice?.text&&!C.deprecated&&(0,e.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,e.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,e.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:(0,j.Tl)(C.notice.text)}),C.notice.apiKeyUrl&&(0,e.jsx)("a",{href:C.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:(0,j.Tl)("Get API Key →")})]}),!g&&C.noAuth?(0,e.jsx)(k.gw,{providerId:b}):(0,e.jsx)(n.A,{providerId:b,isOAuth:!1}),"tts"!==a&&"webSearch"!==a&&"webFetch"!==a&&(0,e.jsx)(o.A,{providerId:b,kindFilter:a,providerAliasOverride:g?v?.prefix:void 0}),!g&&(C.searchConfig||C.fetchConfig||C.ttsConfig||C.sttConfig||C.embeddingConfig||C.systemoneConfig||C.searchViaChat)&&(0,e.jsx)(k.Wx,{config:"webFetch"===a?C.fetchConfig:"tts"===a?C.ttsConfig:"stt"===a?C.sttConfig:"embedding"===a?C.embeddingConfig:"systemone"===a?C.systemoneConfig:C.searchConfig||{mode:"chat-completions",defaultModel:C.searchViaChat?.defaultModel,pricingUrl:C.searchViaChat?.pricingUrl,freeTier:C.searchViaChat?.freeTier},provider:C,title:`${d.label} Config`}),"embedding"===a&&(0,e.jsx)(q.W,{providerId:b,customAlias:v?.prefix}),"tts"===a&&(0,e.jsx)(r.i,{providerId:b}),"stt"===a&&!g&&(0,e.jsx)(t.Y,{providerId:b}),!g&&p.t[a]&&(0,e.jsx)(s.e,{providerId:b,kind:a}),g&&(0,e.jsx)(k.x0,{isOpen:z,node:v,onClose:()=>A(!1),onSaved:a=>{w(a),A(!1)}})]}):(0,f.notFound)()}[k,l,n,o,q,r,s,t]=u.then?(await u)():u,d()}catch(a){d(a)}})},69296:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\media-providers\\\\[kind]\\\\[id]\\\\page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\media-providers\\[kind]\\[id]\\page.js","default")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86389:(a,b,c)=>{Promise.resolve().then(c.bind(c,64754))},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},88847:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{e:()=>n});var e=c(48249),f=c(67484),g=c(94579),h=c(92592),i=c(91431),j=c(50377),k=c(27961),l=a([g]);g=(l.then?(await l)():l)[0];let o="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png";function m(a){let b="string"==typeof a?a.trim():"";return b?/^(data:image\/|https?:\/\/)/i.test(b)?b:`data:image/png;base64,${b}`:""}function n({providerId:a,kind:b}){let c=(0,h.wG)(a),d=(0,h.rs)(c)===a?c:a,l=h.rj.find(a=>a.id===b),p=k.t[b],q=p||{},r=(0,i.KC)(a).filter(a=>(0,i.CP)(a)===b),s=new Set(["image","video","music","imageToText","systemone"]).has(b),t=s&&0===r.length,[u,v]=(0,f.useState)(r[0]?.id??""),w=r.find(a=>a.id===u),x=!!w?.capabilities?.includes("edit"),y=!!w?.capabilities?.includes("mask"),[z,A]=(0,f.useState)(q.defaultInput||""),[B,C]=(0,f.useState)("Does this request require urgent attention?"),[D,E]=(0,f.useState)(""),[F,G]=(0,f.useState)(""),[H,I]=(0,f.useState)(()=>(q.extraFields||[]).reduce((a,b)=>(a[b.key]=b.default??"",a),{})),[J,K]=(0,f.useState)(""),[L,M]=(0,f.useState)(!1),[N,O]=(0,f.useState)(""),[P,Q]=(0,f.useState)(""),[R,S]=(0,f.useState)(null),[T,U]=(0,f.useState)(null),[V,W]=(0,f.useState)(null),[X,Y]=(0,f.useState)("json"),[Z,$]=(0,f.useState)(""),[_,aa]=(0,f.useState)(!1),[ab,ac]=(0,f.useState)(""),[ad,ae]=(0,f.useState)([]),[af,ag]=(0,f.useState)(""),{copied:ah,copy:ai}=(0,j.C)(),{copied:aj,copy:ak}=(0,j.C)();if(!l||!p)return null;let al=L?P:N,am=l.endpoint.path,an=s?u?`${d}/${u}`:t?"":d:d,ao="cloudflare-ai"!==a?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===u?{image:o}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===u?{image:o,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},ap=D.trim()||ao.image||"",aq=F.trim()||ao.mask_image||"",ar=m(ap),as=m(aq),at=Object.entries(H).reduce((a,[b,c])=>(""===c||null==c||"number"==typeof c&&Number.isNaN(c)||(a[b]=c),a),{}),au="systemone"===b?{questions:{is_urgent:{type:"noul",instructions:B.trim()||"Does this request require urgent attention?"}}}:{},av={model:an,[p.bodyKey]:z,...p.extraBody,...au,...at,...x&&ap?{image:ap}:{},...y&&aq?{mask_image:aq}:{}},aw="image"===b&&"binary"===X,ax="image"===b&&"codex"===a&&!aw,ay=`${am}${aw?"?response_format=binary":""}`,az=`-H "Content-Type: application/json" \\
|
|
48
|
+
${"json"===P?"":"--output speech.mp3"}`,ay=async()=>{if(!D.trim()||!av)return;W(!0),Y(""),S(""),U(null);let a=Date.now();try{let b={"Content-Type":"application/json"};H&&(b.Authorization=`Bearer ${H}`);let c=`/api/v1/audio/speech${"json"===P?"?response_format=json":""}`,d=await fetch(c,{method:"POST",headers:b,body:JSON.stringify({...aw,input:D.trim()})});if($(Date.now()-a),!d.ok){let a=await d.json().catch(()=>({}));Y(a?.error?.message||a?.error||`HTTP ${d.status}`);return}if("json"===P){let a=await d.json();U(a);let b=a.format||"mp3",c=await fetch(`data:audio/${b};base64,${a.audio}`).then(a=>a.blob());S(URL.createObjectURL(c))}else{let a=await d.blob();S(URL.createObjectURL(a))}}catch(a){Y(a.message||"Network error")}finally{W(!1)}};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(g.Zp,{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,e.jsx)(n.f,{label:"Endpoint",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[at,"/v1/audio/speech"]}),N&&(0,e.jsxs)("button",{onClick:()=>K(a=>!a),title:J?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${J?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,e.jsx)(n.f,{label:"API Key",children:(0,e.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:H?`${H.slice(0,8)}${"•".repeat(Math.min(20,H.length-8))}`:ap>0?(0,e.jsxs)("span",{className:"text-text-muted italic",children:["Using stored key(s) \xb7 ",ap," connection",ap>1?"s":""]}):(0,e.jsx)("span",{className:"text-text-muted italic",children:"No key configured"})})}),o.hasModelSelector&&(o.modelKey||(0,i.KC)(a).some(a=>"tts"===(0,i.CP)(a)))&&(0,e.jsx)(n.f,{label:"Model",children:(0,e.jsx)("select",{value:B,onChange:a=>C(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:((c=(0,i.KC)(a).filter(a=>"tts"===(0,i.CP)(a))).length?c:(0,i.KC)(o.modelKey)||[]).map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),o.hasLanguageHint&&(0,e.jsx)(n.f,{label:"Language",children:(0,e.jsxs)("select",{value:an,onChange:a=>ao(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"",children:"Auto-detect"}),(o.languageOptions||m.I).map(a=>"string"==typeof a?(0,e.jsx)("option",{value:a,children:a},a):(0,e.jsx)("option",{value:a.name,children:a.name},a.id))]})}),o.hasBrowseButton&&(0,e.jsx)(n.f,{label:"Language",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsx)("button",{onClick:ar,className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-surface font-mono truncate text-left hover:border-primary/40 transition-colors",children:z?(0,e.jsx)("span",{className:"text-text-main",children:ad.find(a=>a.code===z)?.name||z}):(0,e.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,e.jsxs)("button",{onClick:ar,className:"flex w-full items-center justify-center gap-1 text-xs px-2.5 py-1.5 rounded-lg border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors sm:w-auto sm:shrink-0",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),x.length>0&&(0,e.jsx)(n.f,{label:"Voice",children:(0,e.jsx)("div",{className:"flex flex-wrap gap-1.5",children:x.map(a=>(0,e.jsxs)("button",{onClick:()=>{s(a.id),u(a.name),o.hasVoiceIdInput&&w(a.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${r===a.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[a.name,a.language?` \xb7 ${a.language}`:"",a.gender?` \xb7 ${a.gender[0].toUpperCase()}`:"",!0===a.free_users_allowed&&(0,e.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-green-500/15 text-green-600 border border-green-500/20",children:"Free"}),!1===a.free_users_allowed&&(0,e.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-amber-500/15 text-amber-600 border border-amber-500/20",children:"Paid"})]},a.id))})}),o.hasVoiceIdInput&&(0,e.jsx)(n.f,{label:"Voice ID",children:(0,e.jsx)("div",{className:"flex flex-col gap-1",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{value:v,onChange:a=>{w(a.target.value),s(a.target.value)},placeholder:"e.g. CwhRBWXzGAHq8TQ4Fs17",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"}),v&&(0,e.jsx)("button",{type:"button",onClick:()=>{w(""),s("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})})}),o.hasLanguageDropdown&&(0,e.jsx)(n.f,{label:"Language",children:(0,e.jsx)("select",{value:r,onChange:b=>{let c=(0,i.KC)(a).filter(a=>"tts"===(0,i.CP)(a)).find(a=>a.id===b.target.value);s(b.target.value),u(c?.name||b.target.value)},className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:(0,i.KC)(a).filter(a=>"tts"===(0,i.CP)(a)).map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,e.jsx)(n.f,{label:"Input",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{value:D,onChange:a=>E(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"}),D&&(0,e.jsx)("button",{type:"button",onClick:()=>E(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),o.hasStyleInput&&(0,e.jsx)(n.f,{label:(0,l.Tl)("Style"),children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("textarea",{value:F,onChange:a=>G(a.target.value),placeholder:(0,l.Tl)("e.g. a warm, gentle voice, speaking slowly with a British accent"),rows:2,className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary resize-none"}),F&&(0,e.jsx)("button",{type:"button",onClick:()=>G(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,e.jsx)(n.f,{label:"Output Format",children:(0,e.jsxs)("select",{value:P,onChange:a=>Q(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,e.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,e.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,e.jsxs)("div",{className:"mt-1",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("button",{onClick:()=>aa(ax),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:_?"check":"content_copy"}),_?"Copied":"Copy"]}),(0,e.jsxs)("button",{onClick:ay,disabled:V||!D.trim()||!av,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:V?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),V?"Generating...":"Run"]})]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:ax})]}),X&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:X}),R?(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",Z&&(0,e.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",Z,"ms"]})]}),(0,e.jsxs)("a",{href:R,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,e.jsx)("audio",{controls:!0,src:R,className:"w-full"}),T&&(0,e.jsxs)("div",{className:"mt-3",children:[(0,e.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify({format:T.format,audio:T.audio?`${T.audio.substring(0,100)}...`:""},null,2)})]})]}):(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,e.jsx)("pre",{className:"mt-1.5 bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-50",children:q})]})]})]}),ab&&(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},onClick:()=>ac(!1),children:(0,e.jsxs)("div",{className:"border border-border rounded-xl shadow-2xl w-full max-w-md mx-4 flex flex-col max-h-[80vh]",style:{backgroundColor:"var(--color-bg)",isolation:"isolate"},onClick:a=>a.stopPropagation(),children:[(0,e.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Select Language"}),(0,e.jsx)("button",{onClick:()=>ac(!1),className:"text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,e.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,e.jsx)("input",{autoFocus:!0,value:ah,onChange:a=>ai(a.target.value),placeholder:"Search language...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),(0,e.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[aj&&(0,e.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:aj}),af?(0,e.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,e.jsxs)("div",{className:"flex flex-col gap-0.5",children:[as.map(a=>(0,e.jsxs)("button",{onClick:()=>{let b;return ac(!1),A(a.code),b=al[a.code]?.voices||[],void(y(b),b.length&&(s(b[0].id),u(b[0].name),o.hasVoiceIdInput&&w(b[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${z===a.code?"bg-primary/10 text-primary":""}`,children:[(0,e.jsx)("span",{className:"text-sm",children:a.name}),(0,e.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,e.jsxs)("span",{className:"text-xs text-text-muted",children:[a.voices.length," voices"]}),z===a.code&&(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},a.code)),0===as.length&&(0,e.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}d()}catch(a){d(a)}})},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64754:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>v});var e=c(48249),f=c(19099),g=c(2116),h=c.n(g),i=c(67484),j=c(99258),k=c(94579),l=c(72738),m=c(92592),n=c(27555),o=c(89230),p=c(27961),q=c(93963),r=c(62115),s=c(88847),t=c(40379),u=a([k,l,n,o,q,r,s,t]);function v(){let{kind:a,id:b}=(0,f.useParams)(),c=(0,f.useRouter)(),d=m.rj.find(b=>b.id===a),g=(0,m.gC)(b)&&"embedding"===a,u=async()=>{if(confirm("Delete this Custom Embedding node?"))try{(await fetch(`/api/provider-nodes/${b}`,{method:"DELETE"})).ok&&c.push(`/dashboard/media-providers/${a}`)}catch(a){console.log("Error deleting custom embedding node:",a)}},[v,w]=(0,i.useState)(null),[x,y]=(0,i.useState)(g),[z,A]=(0,i.useState)(!1);if(!d)return(0,f.notFound)();let B=m.Q2[b],C=g?v?{id:b,name:v.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"}:null:B;if(!g&&!B||g&&!x&&!v)return(0,f.notFound)();if(g&&x)return(0,e.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let D=g?["embedding"]:C.serviceKinds??["llm"];return g||D.includes(a)?(0,e.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)(h(),{href:`/dashboard/media-providers/${a}`,className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),d.label]}),(0,e.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,e.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${C.color}15`},children:(0,e.jsx)(l.A,{src:`/providers/${C.id}.png`,alt:C.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:C.textIcon||C.id.slice(0,2).toUpperCase(),fallbackColor:C.color})}),(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,e.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:C.name}),!g&&C.notice?.apiKeyUrl&&(0,e.jsxs)("a",{href:C.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[g&&(0,e.jsxs)(k.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",v?.prefix]}),D.map(b=>(0,e.jsx)(k.Ex,{variant:b===a?"primary":"default",size:"sm",children:b.toUpperCase()},b))]})]}),g&&(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>A(!0),children:"Edit"}),(0,e.jsx)(k.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:u,children:"Delete"})]})]})]}),!g&&C.kindNotice?.[a]&&(0,e.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,e.jsx)("p",{className:"text-sm",children:C.kindNotice[a]})]}),!g&&C.notice?.text&&!C.deprecated&&(0,e.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,e.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,e.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:(0,j.Tl)(C.notice.text)}),C.notice.apiKeyUrl&&(0,e.jsx)("a",{href:C.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:(0,j.Tl)("Get API Key →")})]}),!g&&C.noAuth?(0,e.jsx)(k.gw,{providerId:b}):(0,e.jsx)(n.A,{providerId:b,isOAuth:!1}),"tts"!==a&&"webSearch"!==a&&"webFetch"!==a&&(0,e.jsx)(o.A,{providerId:b,kindFilter:a,providerAliasOverride:g?v?.prefix:void 0}),!g&&(C.searchConfig||C.fetchConfig||C.ttsConfig||C.sttConfig||C.embeddingConfig||C.systemoneConfig||C.searchViaChat)&&(0,e.jsx)(k.Wx,{config:"webFetch"===a?C.fetchConfig:"tts"===a?C.ttsConfig:"stt"===a?C.sttConfig:"embedding"===a?C.embeddingConfig:"systemone"===a?C.systemoneConfig:C.searchConfig||{mode:"chat-completions",defaultModel:C.searchViaChat?.defaultModel,pricingUrl:C.searchViaChat?.pricingUrl,freeTier:C.searchViaChat?.freeTier},provider:C,title:`${d.label} Config`}),"embedding"===a&&(0,e.jsx)(q.W,{providerId:b,customAlias:v?.prefix}),"tts"===a&&(0,e.jsx)(r.i,{providerId:b}),"stt"===a&&!g&&(0,e.jsx)(t.Y,{providerId:b}),!g&&p.t[a]&&(0,e.jsx)(s.e,{providerId:b,kind:a}),g&&(0,e.jsx)(k.x0,{isOpen:z,node:v,onClose:()=>A(!1),onSaved:a=>{w(a),A(!1)}})]}):(0,f.notFound)()}[k,l,n,o,q,r,s,t]=u.then?(await u)():u,d()}catch(a){d(a)}})},69296:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\media-providers\\\\[kind]\\\\[id]\\\\page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\media-providers\\[kind]\\[id]\\page.js","default")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},74875:(a,b,c)=>{"use strict";function d(a,b){return!1===a?"default":"active"===b||"success"===b?"success":"partial"===b?"warning":"error"===b||"expired"===b||"unavailable"===b?"error":"default"}c.d(b,{g:()=>d})},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},86389:(a,b,c)=>{Promise.resolve().then(c.bind(c,64754))},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},88847:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{e:()=>n});var e=c(48249),f=c(67484),g=c(94579),h=c(92592),i=c(91431),j=c(50377),k=c(27961),l=a([g]);g=(l.then?(await l)():l)[0];let o="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png";function m(a){let b="string"==typeof a?a.trim():"";return b?/^(data:image\/|https?:\/\/)/i.test(b)?b:`data:image/png;base64,${b}`:""}function n({providerId:a,kind:b}){let c=(0,h.wG)(a),d=(0,h.rs)(c)===a?c:a,l=h.rj.find(a=>a.id===b),p=k.t[b],q=p||{},r=(0,i.KC)(a).filter(a=>(0,i.CP)(a)===b),s=new Set(["image","video","music","imageToText","systemone"]).has(b),t=s&&0===r.length,[u,v]=(0,f.useState)(r[0]?.id??""),w=r.find(a=>a.id===u),x=!!w?.capabilities?.includes("edit"),y=!!w?.capabilities?.includes("mask"),[z,A]=(0,f.useState)(q.defaultInput||""),[B,C]=(0,f.useState)("Does this request require urgent attention?"),[D,E]=(0,f.useState)(""),[F,G]=(0,f.useState)(""),[H,I]=(0,f.useState)(()=>(q.extraFields||[]).reduce((a,b)=>(a[b.key]=b.default??"",a),{})),[J,K]=(0,f.useState)(""),[L,M]=(0,f.useState)(!1),[N,O]=(0,f.useState)(""),[P,Q]=(0,f.useState)(""),[R,S]=(0,f.useState)(null),[T,U]=(0,f.useState)(null),[V,W]=(0,f.useState)(null),[X,Y]=(0,f.useState)("json"),[Z,$]=(0,f.useState)(""),[_,aa]=(0,f.useState)(!1),[ab,ac]=(0,f.useState)(""),[ad,ae]=(0,f.useState)([]),[af,ag]=(0,f.useState)(""),{copied:ah,copy:ai}=(0,j.C)(),{copied:aj,copy:ak}=(0,j.C)();if(!l||!p)return null;let al=L?P:N,am=l.endpoint.path,an=s?u?`${d}/${u}`:t?"":d:d,ao="cloudflare-ai"!==a?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===u?{image:o}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===u?{image:o,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},ap=D.trim()||ao.image||"",aq=F.trim()||ao.mask_image||"",ar=m(ap),as=m(aq),at=Object.entries(H).reduce((a,[b,c])=>(""===c||null==c||"number"==typeof c&&Number.isNaN(c)||(a[b]=c),a),{}),au="systemone"===b?{questions:{is_urgent:{type:"noul",instructions:B.trim()||"Does this request require urgent attention?"}}}:{},av={model:an,[p.bodyKey]:z,...p.extraBody,...au,...at,...x&&ap?{image:ap}:{},...y&&aq?{mask_image:aq}:{}},aw="image"===b&&"binary"===X,ax="image"===b&&"codex"===a&&!aw,ay=`${am}${aw?"?response_format=binary":""}`,az=`-H "Content-Type: application/json" \\
|
|
49
49
|
-H "Authorization: Bearer ${J||"YOUR_KEY"}"${af?` \\
|
|
50
50
|
-H "x-connection-id: ${af}"`:""}${ax?` \\
|
|
51
51
|
-H "Accept: text/event-stream"`:""}`,aA=`curl -X ${l.endpoint.method} ${al}${ay} \\
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
}`;function m({providerId:a,customAlias:b}){let c=(0,h.gC)(a),d=c?b||a:(0,h.wG)(a),l=c?[]:(0,i.KC)(a).filter(a=>"embedding"===(0,i.CP)(a)),[o,p]=(0,f.useState)(l[0]?.id??""),[q,r]=(0,f.useState)("The quick brown fox jumps over the lazy dog"),[s,t]=(0,f.useState)(""),[u,v]=(0,f.useState)(""),[w,x]=(0,f.useState)(!1),[y,z]=(0,f.useState)(""),[A,B]=(0,f.useState)(""),[C,D]=(0,f.useState)(null),[E,F]=(0,f.useState)(!1),[G,H]=(0,f.useState)(""),{copied:I,copy:J}=(0,j.C)(),{copied:K,copy:L}=(0,j.C)(),M=w?A:y,N=o?`${d}/${o}`:"",O=()=>{let a={model:N,input:q.trim()},b=Number(s);return s&&Number.isFinite(b)&&b>0&&(a.dimensions=b),a},P=`curl -X POST ${M}/v1/embeddings \\
|
|
63
63
|
-H "Content-Type: application/json" \\
|
|
64
64
|
-H "Authorization: Bearer ${u||"YOUR_KEY"}" \\
|
|
65
|
-
-d '${JSON.stringify(O())}'`,Q=async()=>{if(!q.trim()||!N)return;F(!0),H(""),D(null);let a=Date.now();try{let b={"Content-Type":"application/json"};u&&(b.Authorization=`Bearer ${u}`);let c=await fetch("/api/v1/embeddings",{method:"POST",headers:b,body:JSON.stringify(O())}),d=Date.now()-a,e=await c.json();if(!c.ok)return void H(e?.error?.message||e?.error||`HTTP ${c.status}`);D({data:e,latencyMs:d})}catch(a){H(a.message||"Network error")}finally{F(!1)}},R=C?JSON.stringify(C.data,null,2):"";return(0,e.jsxs)(g.Zp,{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,e.jsx)(k.f,{label:"Model",children:c?(0,e.jsx)("input",{value:o,onChange:a=>p(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"}):(0,e.jsx)("select",{value:o,onChange:a=>p(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:l.map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,e.jsx)(k.f,{label:"Endpoint",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsx)("input",{value:M,onChange:a=>w?B(a.target.value):z(a.target.value),className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono",placeholder:"http://localhost:3000"}),A&&(0,e.jsxs)("button",{onClick:()=>x(a=>!a),title:w?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${w?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,e.jsx)(k.f,{label:"API Key",children:(0,e.jsx)("input",{type:"password",value:u,onChange:a=>v(a.target.value),placeholder:"sk-...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"})}),(0,e.jsx)(k.f,{label:"Input",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{value:q,onChange:a=>r(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"}),q&&(0,e.jsx)("button",{type:"button",onClick:()=>r(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,e.jsx)(k.f,{label:"Dimensions",children:(0,e.jsx)("input",{type:"number",min:"1",value:s,onChange:a=>t(a.target.value),placeholder:"optional, e.g. 512, 1024 (leave empty for default)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),(0,e.jsxs)("div",{className:"mt-1",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("button",{onClick:()=>J(P),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:I?"check":"content_copy"}),I?"Copied":"Copy"]}),(0,e.jsxs)("button",{onClick:Q,disabled:E||!q.trim()||!N,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:E?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),E?"Running...":"Run"]})]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:P})]}),G&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:G}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",C&&(0,e.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",C.latencyMs,"ms"]})]}),C&&(0,e.jsxs)("button",{onClick:()=>L(R),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:K?"check":"content_copy"}),K?"Copied":"Copy"]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:(a=>{if(!a)return n;let b=JSON.parse(JSON.stringify(a));return(b.data||[]).forEach(a=>{Array.isArray(a.embedding)&&a.embedding.length>4&&(a.embedding=[...a.embedding.slice(0,4).map(a=>parseFloat(a.toFixed(6))),`... (${a.embedding.length} dims)`])}),JSON.stringify(b,null,2)})(C?.data)})]})]})]})}d()}catch(a){d(a)}})},94735:a=>{"use strict";a.exports=require("events")},96117:(a,b,c)=>{Promise.resolve().then(c.bind(c,69296))},98969:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>y,handler:()=>A,routeModule:()=>z});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),w={children:["",{children:["(dashboard)",{children:["dashboard",{children:["media-providers",{children:["[kind]",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,69296))),"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\media-providers\\[kind]\\[id]\\page.js"]}]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["combo","web"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,x=(0,e.H)({tree:w,page:"/(dashboard)/dashboard/media-providers/[kind]/[id]/page",pathname:"/dashboard/media-providers/[kind]/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),y=x.__next_app__,z=x.routeModule,A=x.handler},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2391,7568,2430,4613,8410,2116,
|
|
65
|
+
-d '${JSON.stringify(O())}'`,Q=async()=>{if(!q.trim()||!N)return;F(!0),H(""),D(null);let a=Date.now();try{let b={"Content-Type":"application/json"};u&&(b.Authorization=`Bearer ${u}`);let c=await fetch("/api/v1/embeddings",{method:"POST",headers:b,body:JSON.stringify(O())}),d=Date.now()-a,e=await c.json();if(!c.ok)return void H(e?.error?.message||e?.error||`HTTP ${c.status}`);D({data:e,latencyMs:d})}catch(a){H(a.message||"Network error")}finally{F(!1)}},R=C?JSON.stringify(C.data,null,2):"";return(0,e.jsxs)(g.Zp,{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,e.jsx)(k.f,{label:"Model",children:c?(0,e.jsx)("input",{value:o,onChange:a=>p(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"}):(0,e.jsx)("select",{value:o,onChange:a=>p(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:l.map(a=>(0,e.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,e.jsx)(k.f,{label:"Endpoint",children:(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsx)("input",{value:M,onChange:a=>w?B(a.target.value):z(a.target.value),className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono",placeholder:"http://localhost:3000"}),A&&(0,e.jsxs)("button",{onClick:()=>x(a=>!a),title:w?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${w?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,e.jsx)(k.f,{label:"API Key",children:(0,e.jsx)("input",{type:"password",value:u,onChange:a=>v(a.target.value),placeholder:"sk-...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary font-mono"})}),(0,e.jsx)(k.f,{label:"Input",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{value:q,onChange:a=>r(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"}),q&&(0,e.jsx)("button",{type:"button",onClick:()=>r(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,e.jsx)(k.f,{label:"Dimensions",children:(0,e.jsx)("input",{type:"number",min:"1",value:s,onChange:a=>t(a.target.value),placeholder:"optional, e.g. 512, 1024 (leave empty for default)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})}),(0,e.jsxs)("div",{className:"mt-1",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,e.jsxs)("button",{onClick:()=>J(P),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:I?"check":"content_copy"}),I?"Copied":"Copy"]}),(0,e.jsxs)("button",{onClick:Q,disabled:E||!q.trim()||!N,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:E?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),E?"Running...":"Run"]})]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:P})]}),G&&(0,e.jsx)("p",{className:"text-xs text-red-500 break-words",children:G}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,e.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",C&&(0,e.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",C.latencyMs,"ms"]})]}),C&&(0,e.jsxs)("button",{onClick:()=>L(R),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:K?"check":"content_copy"}),K?"Copied":"Copy"]})]}),(0,e.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:(a=>{if(!a)return n;let b=JSON.parse(JSON.stringify(a));return(b.data||[]).forEach(a=>{Array.isArray(a.embedding)&&a.embedding.length>4&&(a.embedding=[...a.embedding.slice(0,4).map(a=>parseFloat(a.toFixed(6))),`... (${a.embedding.length} dims)`])}),JSON.stringify(b,null,2)})(C?.data)})]})]})]})}d()}catch(a){d(a)}})},94735:a=>{"use strict";a.exports=require("events")},96117:(a,b,c)=>{Promise.resolve().then(c.bind(c,69296))},98969:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>y,handler:()=>A,routeModule:()=>z});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),w={children:["",{children:["(dashboard)",{children:["dashboard",{children:["media-providers",{children:["[kind]",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,69296))),"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\media-providers\\[kind]\\[id]\\page.js"]}]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["combo","web"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,x=(0,e.H)({tree:w,page:"/(dashboard)/dashboard/media-providers/[kind]/[id]/page",pathname:"/dashboard/media-providers/[kind]/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),y=x.__next_app__,z=x.routeModule,A=x.handler},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2391,7568,2430,4613,8410,2116,682,6070,1329,5781,7274,7239,1219,4123,8172,6960,4886,4008],()=>b(b.s=98969));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/bundle-name/index.js","../../../../../../../../node_modules/bundle-name/package.json","../../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../../node_modules/default-browser/index.js","../../../../../../../../node_modules/default-browser/package.json","../../../../../../../../node_modules/default-browser/windows.js","../../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/is-docker/index.js","../../../../../../../../node_modules/is-docker/package.json","../../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../../node_modules/is-wsl/index.js","../../../../../../../../node_modules/is-wsl/package.json","../../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/open/index.js","../../../../../../../../node_modules/open/package.json","../../../../../../../../node_modules/open/xdg-open","../../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../../node_modules/powershell-utils/package.json","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/run-applescript/index.js","../../../../../../../../node_modules/run-applescript/package.json","../../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../../node_modules/sql.js/package.json","../../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1159.js","../../../../../../chunks/1219.js","../../../../../../chunks/1220.js","../../../../../../chunks/1261.js","../../../../../../chunks/1329.js","../../../../../../chunks/1386.js","../../../../../../chunks/1531.js","../../../../../../chunks/1710.js","../../../../../../chunks/1813.js","../../../../../../chunks/1998.js","../../../../../../chunks/2112.js","../../../../../../chunks/2116.js","../../../../../../chunks/2120.js","../../../../../../chunks/2132.js","../../../../../../chunks/2269.js","../../../../../../chunks/2391.js","../../../../../../chunks/241.js","../../../../../../chunks/2430.js","../../../../../../chunks/2468.js","../../../../../../chunks/2732.js","../../../../../../chunks/2750.js","../../../../../../chunks/2812.js","../../../../../../chunks/2926.js","../../../../../../chunks/3225.js","../../../../../../chunks/3245.js","../../../../../../chunks/3256.js","../../../../../../chunks/3433.js","../../../../../../chunks/3500.js","../../../../../../chunks/3535.js","../../../../../../chunks/3593.js","../../../../../../chunks/3792.js","../../../../../../chunks/3885.js","../../../../../../chunks/3943.js","../../../../../../chunks/4123.js","../../../../../../chunks/4125.js","../../../../../../chunks/4152.js","../../../../../../chunks/4177.js","../../../../../../chunks/4190.js","../../../../../../chunks/4282.js","../../../../../../chunks/4293.js","../../../../../../chunks/436.js","../../../../../../chunks/4575.js","../../../../../../chunks/4613.js","../../../../../../chunks/4689.js","../../../../../../chunks/4730.js","../../../../../../chunks/4739.js","../../../../../../chunks/4741.js","../../../../../../chunks/4746.js","../../../../../../chunks/4755.js","../../../../../../chunks/4780.js","../../../../../../chunks/4803.js","../../../../../../chunks/4886.js","../../../../../../chunks/4927.js","../../../../../../chunks/507.js","../../../../../../chunks/5081.js","../../../../../../chunks/5182.js","../../../../../../chunks/5210.js","../../../../../../chunks/5258.js","../../../../../../chunks/5330.js","../../../../../../chunks/539.js","../../../../../../chunks/5433.js","../../../../../../chunks/5485.js","../../../../../../chunks/5573.js","../../../../../../chunks/5615.js","../../../../../../chunks/5640.js","../../../../../../chunks/5692.js","../../../../../../chunks/5781.js","../../../../../../chunks/595.js","../../../../../../chunks/6070.js","../../../../../../chunks/6103.js","../../../../../../chunks/6133.js","../../../../../../chunks/615.js","../../../../../../chunks/6252.js","../../../../../../chunks/6306.js","../../../../../../chunks/6326.js","../../../../../../chunks/6457.js","../../../../../../chunks/6492.js","../../../../../../chunks/653.js","../../../../../../chunks/6756.js","../../../../../../chunks/6763.js","../../../../../../chunks/6844.js","../../../../../../chunks/6875.js","../../../../../../chunks/6921.js","../../../../../../chunks/6922.js","../../../../../../chunks/6947.js","../../../../../../chunks/6956.js","../../../../../../chunks/6960.js","../../../../../../chunks/698.js","../../../../../../chunks/6982.js","../../../../../../chunks/7066.js","../../../../../../chunks/7067.js","../../../../../../chunks/7070.js","../../../../../../chunks/7122.js","../../../../../../chunks/7239.js","../../../../../../chunks/7247.js","../../../../../../chunks/7274.js","../../../../../../chunks/7322.js","../../../../../../chunks/7568.js","../../../../../../chunks/7726.js","../../../../../../chunks/7753.js","../../../../../../chunks/7774.js","../../../../../../chunks/7775.js","../../../../../../chunks/7828.js","../../../../../../chunks/7965.js","../../../../../../chunks/8062.js","../../../../../../chunks/808.js","../../../../../../chunks/8172.js","../../../../../../chunks/8292.js","../../../../../../chunks/8370.js","../../../../../../chunks/8410.js","../../../../../../chunks/8469.js","../../../../../../chunks/8499.js","../../../../../../chunks/8520.js","../../../../../../chunks/8595.js","../../../../../../chunks/8658.js","../../../../../../chunks/8672.js","../../../../../../chunks/8689.js","../../../../../../chunks/8749.js","../../../../../../chunks/8838.js","../../../../../../chunks/8895.js","../../../../../../chunks/8920.js","../../../../../../chunks/8988.js","../../../../../../chunks/9046.js","../../../../../../chunks/9055.js","../../../../../../chunks/9154.js","../../../../../../chunks/939.js","../../../../../../chunks/9451.js","../../../../../../chunks/9489.js","../../../../../../chunks/9609.js","../../../../../../chunks/9628.js","../../../../../../chunks/976.js","../../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/bundle-name/index.js","../../../../../../../../node_modules/bundle-name/package.json","../../../../../../../../node_modules/default-browser-id/index.js","../../../../../../../../node_modules/default-browser-id/package.json","../../../../../../../../node_modules/default-browser/index.js","../../../../../../../../node_modules/default-browser/package.json","../../../../../../../../node_modules/default-browser/windows.js","../../../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/is-docker/index.js","../../../../../../../../node_modules/is-docker/package.json","../../../../../../../../node_modules/is-in-ssh/index.js","../../../../../../../../node_modules/is-in-ssh/package.json","../../../../../../../../node_modules/is-inside-container/index.js","../../../../../../../../node_modules/is-inside-container/package.json","../../../../../../../../node_modules/is-wsl/index.js","../../../../../../../../node_modules/is-wsl/package.json","../../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/open/index.js","../../../../../../../../node_modules/open/package.json","../../../../../../../../node_modules/open/xdg-open","../../../../../../../../node_modules/powershell-utils/index.js","../../../../../../../../node_modules/powershell-utils/package.json","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/run-applescript/index.js","../../../../../../../../node_modules/run-applescript/package.json","../../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../../node_modules/sql.js/package.json","../../../../../../../../node_modules/wsl-utils/index.js","../../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../../../node_modules/wsl-utils/package.json","../../../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1159.js","../../../../../../chunks/1219.js","../../../../../../chunks/1220.js","../../../../../../chunks/1261.js","../../../../../../chunks/1329.js","../../../../../../chunks/1386.js","../../../../../../chunks/1531.js","../../../../../../chunks/1710.js","../../../../../../chunks/1813.js","../../../../../../chunks/1998.js","../../../../../../chunks/2112.js","../../../../../../chunks/2116.js","../../../../../../chunks/2120.js","../../../../../../chunks/2132.js","../../../../../../chunks/2391.js","../../../../../../chunks/241.js","../../../../../../chunks/2430.js","../../../../../../chunks/2468.js","../../../../../../chunks/2732.js","../../../../../../chunks/2750.js","../../../../../../chunks/2812.js","../../../../../../chunks/2926.js","../../../../../../chunks/3225.js","../../../../../../chunks/3245.js","../../../../../../chunks/3256.js","../../../../../../chunks/3433.js","../../../../../../chunks/3500.js","../../../../../../chunks/3535.js","../../../../../../chunks/3593.js","../../../../../../chunks/3792.js","../../../../../../chunks/3885.js","../../../../../../chunks/3943.js","../../../../../../chunks/4008.js","../../../../../../chunks/4123.js","../../../../../../chunks/4125.js","../../../../../../chunks/4152.js","../../../../../../chunks/4177.js","../../../../../../chunks/4190.js","../../../../../../chunks/4282.js","../../../../../../chunks/4293.js","../../../../../../chunks/436.js","../../../../../../chunks/4575.js","../../../../../../chunks/4613.js","../../../../../../chunks/4689.js","../../../../../../chunks/4730.js","../../../../../../chunks/4739.js","../../../../../../chunks/4741.js","../../../../../../chunks/4746.js","../../../../../../chunks/4755.js","../../../../../../chunks/4780.js","../../../../../../chunks/480.js","../../../../../../chunks/4803.js","../../../../../../chunks/4886.js","../../../../../../chunks/4927.js","../../../../../../chunks/507.js","../../../../../../chunks/5081.js","../../../../../../chunks/5182.js","../../../../../../chunks/5210.js","../../../../../../chunks/5258.js","../../../../../../chunks/5330.js","../../../../../../chunks/539.js","../../../../../../chunks/5433.js","../../../../../../chunks/5485.js","../../../../../../chunks/5573.js","../../../../../../chunks/5615.js","../../../../../../chunks/5640.js","../../../../../../chunks/5692.js","../../../../../../chunks/5781.js","../../../../../../chunks/595.js","../../../../../../chunks/6070.js","../../../../../../chunks/6103.js","../../../../../../chunks/6133.js","../../../../../../chunks/615.js","../../../../../../chunks/6252.js","../../../../../../chunks/6306.js","../../../../../../chunks/6326.js","../../../../../../chunks/6457.js","../../../../../../chunks/6492.js","../../../../../../chunks/653.js","../../../../../../chunks/6756.js","../../../../../../chunks/6763.js","../../../../../../chunks/682.js","../../../../../../chunks/6844.js","../../../../../../chunks/6875.js","../../../../../../chunks/6921.js","../../../../../../chunks/6922.js","../../../../../../chunks/6947.js","../../../../../../chunks/6956.js","../../../../../../chunks/6960.js","../../../../../../chunks/698.js","../../../../../../chunks/6982.js","../../../../../../chunks/7066.js","../../../../../../chunks/7067.js","../../../../../../chunks/7070.js","../../../../../../chunks/7122.js","../../../../../../chunks/7239.js","../../../../../../chunks/7247.js","../../../../../../chunks/7274.js","../../../../../../chunks/7322.js","../../../../../../chunks/7568.js","../../../../../../chunks/7726.js","../../../../../../chunks/7753.js","../../../../../../chunks/7774.js","../../../../../../chunks/7775.js","../../../../../../chunks/7828.js","../../../../../../chunks/7965.js","../../../../../../chunks/8062.js","../../../../../../chunks/808.js","../../../../../../chunks/8172.js","../../../../../../chunks/8292.js","../../../../../../chunks/8370.js","../../../../../../chunks/8410.js","../../../../../../chunks/8469.js","../../../../../../chunks/8499.js","../../../../../../chunks/8520.js","../../../../../../chunks/8595.js","../../../../../../chunks/8658.js","../../../../../../chunks/8672.js","../../../../../../chunks/8689.js","../../../../../../chunks/8749.js","../../../../../../chunks/8838.js","../../../../../../chunks/8895.js","../../../../../../chunks/8920.js","../../../../../../chunks/8988.js","../../../../../../chunks/9046.js","../../../../../../chunks/9055.js","../../../../../../chunks/9154.js","../../../../../../chunks/939.js","../../../../../../chunks/9451.js","../../../../../../chunks/9489.js","../../../../../../chunks/9609.js","../../../../../../chunks/9628.js","../../../../../../chunks/976.js","../../../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|