prozygent 0.5.31 → 0.5.32
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 +12 -12
- package/app/.next-cli-build/build-manifest.json +3 -3
- 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 +4 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +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 +2 -2
- 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 +1 -1
- 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/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/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/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +7 -7
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.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-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.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/droid-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/kimchi-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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +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/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/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/migrate-9router/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.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.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +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/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/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 +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +7 -7
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +4 -4
- 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 +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +11 -12
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +11 -12
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +4 -4
- 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 +7 -7
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +4 -4
- 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 +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +8 -8
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/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 +12 -12
- package/app/.next-cli-build/server/chunks/1275.js +1 -1
- package/app/.next-cli-build/server/chunks/{6482.js → 1734.js} +3 -3
- package/app/.next-cli-build/server/chunks/2231.js +1 -1
- package/app/.next-cli-build/server/chunks/2574.js +1 -0
- package/app/.next-cli-build/server/chunks/{7362.js → 2615.js} +1 -1
- package/app/.next-cli-build/server/chunks/318.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +2 -2
- package/app/.next-cli-build/server/chunks/4161.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4827.js +1 -1
- package/app/.next-cli-build/server/chunks/5699.js +1 -1
- package/app/.next-cli-build/server/chunks/5961.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/6445.js +1 -1
- package/app/.next-cli-build/server/chunks/6777.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8255.js +1 -1
- package/app/.next-cli-build/server/chunks/8271.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/next-font-manifest.js +1 -1
- package/app/.next-cli-build/server/next-font-manifest.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/1321-cb694b9be4b074a7.js +1 -0
- package/app/.next-cli-build/static/chunks/3538-16f21d7740926b80.js +11 -0
- package/app/.next-cli-build/static/chunks/5497-6e22cd18275b7026.js +7 -0
- package/app/.next-cli-build/static/chunks/705-d00a365c44f4889a.js +1 -0
- package/app/.next-cli-build/static/chunks/{5425-7c326ef7b3d99c85.js → app/(dashboard)/dashboard/endpoint/page-c0fe0679eb8012ff.js} +2 -2
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-e766810d69eab32a.js +1 -0
- package/app/.next-cli-build/static/chunks/app/layout-668adac2589b9c44.js +1 -0
- package/app/.next-cli-build/static/chunks/{webpack-f482ccef6733ebcc.js → webpack-fde1c5fc27386925.js} +1 -1
- package/app/.next-cli-build/static/css/839057c387ce85e4.css +1 -0
- package/app/.next-cli-build/static/css/96a483bf51833f19.css +1 -0
- package/app/.next-cli-build/static/media/558ca1a6aa3cb55e-s.p.woff2 +0 -0
- package/app/.next-cli-build/static/media/64d784ea54a4acde-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/6d831b18ae5b01dc-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/ac0e76ddaeeb7981-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/edc640959b0c7826-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/ff71da380fbe67dd-s.woff2 +0 -0
- package/app/cli/.build-home/.prozygent/db/backups/{upgrade-0.5.26-to-0.5.27-0.5.27-20260622-033603 → upgrade-0.5.31-to-0.5.32-0.5.32-20260622-143914}/data.sqlite +0 -0
- package/app/cli/.build-home/.prozygent/db/data.sqlite +0 -0
- package/app/package.json +1 -1
- package/app/public/providers/naraya.png +0 -0
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/4886.js +0 -3
- package/app/.next-cli-build/server/chunks/9870.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-48565a62b45c6d94.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-cdbdacf00a356013.js +0 -7
- package/app/.next-cli-build/static/chunks/705-a2160ca69d8022ae.js +0 -1
- package/app/.next-cli-build/static/chunks/8982-6d1803817450bcd4.js +0 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-b9309559d0f27dc7.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-cd993646b8a1f37e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/layout-dfa8c86d04a1b17f.js +0 -1
- package/app/.next-cli-build/static/css/018cd9c25b61b9c4.css +0 -1
- package/app/.next-cli-build/static/css/8f9ac5a7bd3a79e5.css +0 -1
- package/app/.next-cli-build/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/app/.next-cli-build/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- /package/app/.next-cli-build/static/{je3Fh3IfzAhtK2dZxG6eL → UVvVC1WzC2hHmH6jcVf12}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{je3Fh3IfzAhtK2dZxG6eL → UVvVC1WzC2hHmH6jcVf12}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5425],{65425:(e,t,a)=>{Promise.resolve().then(a.bind(a,76648))},76648:(e,t,a)=>{"use strict";a.d(t,{default:()=>j});var s=a(95155),l=a(12115),n=a(14051),r=a.n(n),i=a(35497),o=a(11059),c=a(73006);let d=["zh-CN","zh-TW"],x=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],m=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],u=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}];async function h(e){if(!e)return!1;try{return(await fetch(`${e}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(5e3)})).ok}catch{return!1}}async function p(...e){let t=e.filter(Boolean).map(h);return!!t.length&&new Promise(e=>{let a=t.length;t.forEach(t=>t.then(t=>{t?e(!0):0==--a&&e(!1)}))})}function g({label:e,url:t,copyId:a,copied:l,onCopy:n,badge:r,actions:o}){return(0,s.jsxs)("div",{className:"grid gap-2 rounded-2xl border border-cyan-200/10 bg-slate-950/25 p-3 md:grid-cols-[7rem_1fr_auto] md:items-center",children:[(0,s.jsx)("span",{className:`text-[11px] font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full shrink-0 text-center ${"CF"===r||"TS"===r?"bg-cyan-400/10 text-cyan-200":"bg-surface-2 text-text-muted"}`,children:e}),(0,s.jsx)(i.pd,{value:t,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)("button",{onClick:()=>n(t,a),className:"p-2 hover:bg-cyan-400/10 rounded-xl text-text-muted hover:text-cyan-200 transition-colors shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l===a?"check":"content_copy"})}),o]})}function b({status:e,className:t=""}){return(0,s.jsx)("div",{className:`p-2 rounded text-sm ${t} ${"success"===e.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===e.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===e.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:e.message.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>/^https?:\/\//.test(e)?(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:e},t):e)})}function f({text:e}){return(0,s.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,s.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:e})]})}function y({message:e,action:t}){return(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,s.jsx)("p",{className:"text-xs flex-1",children:e}),t&&(0,s.jsx)("a",{href:t.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:t.href.startsWith("#")?e=>{e.preventDefault(),document.getElementById(t.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:t.label})]})}function j({machineId:e}){let[t,a]=(0,l.useState)([]),[n,r]=(0,l.useState)(!0),[v,k]=(0,l.useState)(!1),[w,N]=(0,l.useState)(""),[C,S]=(0,l.useState)(null),[_,T]=(0,l.useState)(null),[E,P]=(0,l.useState)(!1),[$,U]=(0,l.useState)(!0),[O,A]=(0,l.useState)(!0),[L,D]=(0,l.useState)(!1),[F,I]=(0,l.useState)(!0),[R,W]=(0,l.useState)(!1),[q,z]=(0,l.useState)("http://localhost:8787"),[K,H]=(0,l.useState)(!1),[M,J]=(0,l.useState)({installed:!1,running:!1,python:null,loading:!0}),[B,G]=(0,l.useState)(!1),[Q,Y]=(0,l.useState)(!1),[Z,V]=(0,l.useState)(""),[X,ee]=(0,l.useState)(!1),[et,ea]=(0,l.useState)("full"),[es,el]=(0,l.useState)(!1),[en,er]=(0,l.useState)("full"),[ei,eo]=(0,l.useState)("en"),[ec,ed]=(0,l.useState)(!0),[ex,em]=(0,l.useState)(!1),[eu,eh]=(0,l.useState)(!1),[ep,eg]=(0,l.useState)(""),[eb,ef]=(0,l.useState)(""),[ey,ej]=(0,l.useState)(!1),[ev,ek]=(0,l.useState)(""),[ew,eN]=(0,l.useState)(null),[eC,eS]=(0,l.useState)(!1),[e_,eT]=(0,l.useState)(!1),[eE,eP]=(0,l.useState)(!1),[e$,eU]=(0,l.useState)(!1),[eO,eA]=(0,l.useState)(""),[eL,eD]=(0,l.useState)(!1),[eF,eI]=(0,l.useState)(""),[eR,eW]=(0,l.useState)(null),[eq,ez]=(0,l.useState)(""),[eK,eH]=(0,l.useState)(""),[eM,eJ]=(0,l.useState)(null),[eB,eG]=(0,l.useState)(!1),[eQ,eY]=(0,l.useState)([]),[eZ,eV]=(0,l.useState)(""),[eX,e0]=(0,l.useState)(!1),[e1,e2]=(0,l.useState)(!1),[e5,e4]=(0,l.useState)(!1),e3=(0,l.useRef)(null),e8=(0,l.useRef)(0),e6=(0,l.useRef)(0),e7=(0,l.useRef)(!1),e9=(0,l.useRef)(!1),te=(0,l.useRef)(!1),tt=(0,l.useRef)(!1),[ta,ts]=(0,l.useState)(!1),[tl,tn]=(0,l.useState)(!1),[tr,ti]=(0,l.useState)(new Set),[to,tc]=(0,l.useState)(!1);(0,l.useEffect)(()=>{tc(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,l.useEffect)(()=>(eo((0,c.kk)()),(0,c.oQ)(()=>eo((0,c.kk)()))),[]);let td=d.includes(ei),tx=td?m:m.filter(e=>!e.wenyan);(0,l.useEffect)(()=>{let e=m.find(e=>e.id===et);e?.wenyan&&!td&&(ea("ultra"),tk({cavemanLevel:"ultra"}))},[td,et]);let{copied:tm,copy:tu}=(0,o.C)(),th=!$||!O,tp=$?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,l.useEffect)(()=>{e3.current&&(e3.current.scrollTop=e3.current.scrollHeight)},[eQ]),(0,l.useEffect)(()=>{t_(),tf()},[]),(0,l.useEffect)(()=>{if(!(ex||eE))return;let e=!ex||eu,t=!eE||e$,a=()=>{document.hidden||tb()};if(document.addEventListener("visibilitychange",a),e&&t)return()=>document.removeEventListener("visibilitychange",a);let s=setInterval(()=>{document.hidden||tb()},5e3);return()=>{clearInterval(s),document.removeEventListener("visibilitychange",a)}},[ex,eE,eu,e$]),(0,l.useEffect)(()=>{let e=async()=>{if(!document.hidden){if(ex&&(ep||eb)){let e=await p(eb,ep);e7.current=e,e?(e8.current=0,eh(!0),te.current||(te.current=!0,ts(!0))):(e8.current+=1,e8.current>=5&&eh(!1))}else e7.current=!1;if(eE&&eO){let e=await h(eO);e9.current=e,e?(e6.current=0,eU(!0),tt.current||(tt.current=!0,tn(!0))):(e6.current+=1,e6.current>=5&&eU(!1))}else e9.current=!1}};if(!(ex&&(ep||eb)||eE&&eO))return;e();let t=!eE||e$;if((!ex||eu)&&t)return;let a=setInterval(e,1e4);return()=>clearInterval(a)},[ex,ep,eb,eE,eO,eu,e$]);let tg=(0,l.useCallback)((e,t,a,s,l,n)=>{t.current?(a.current=0,s(!0),l.current||(l.current=!0,n(!0))):(a.current+=1,a.current>=5&&s(!1))},[]),tb=async()=>{try{let e=await fetch("/api/tunnel/status",{cache:"no-store"});if(!e.ok)return;let t=await e.json(),a=t.tunnel?.settingsEnabled??t.tunnel?.enabled??!1,s=t.tunnel?.tunnelUrl||"";eg(s),ef(t.tunnel?.publicUrl||""),em(a),tg(null,e7,e8,eh,te,ts);let l=t.tailscale?.settingsEnabled??t.tailscale?.enabled??!1,n=t.tailscale?.tunnelUrl||"";eA(n),eP(l),tg(null,e9,e6,eU,tt,tn)}catch{}},tf=async()=>{ed(!0);try{let[e,t]=await Promise.all([fetch("/api/settings"),fetch("/api/tunnel/status",{cache:"no-store"})]);if(e.ok){let t=await e.json();P(t.requireApiKey||!1),U(!1!==t.requireLogin),A(t.hasPassword||!1),D(t.tunnelDashboardAccess||!1),I(!1!==t.rtkEnabled),W(!!t.headroomEnabled),z(t.headroomUrl||"http://localhost:8787"),H(!!t.headroomCompressUserMessages),tN(),ee(!!t.cavemanEnabled),ea(t.cavemanLevel||"full"),el(!!t.ponytailEnabled),er(t.ponytailLevel||"full")}if(t.ok){let e=await t.json(),a=e.tunnel?.settingsEnabled??e.tunnel?.enabled??!1,s=e.tunnel?.tunnelUrl||"";eg(s),ef(e.tunnel?.publicUrl||""),em(a),tg(null,e7,e8,eh,te,ts);let l=e.tailscale?.settingsEnabled??e.tailscale?.enabled??!1,n=e.tailscale?.tunnelUrl||"";eA(n),eP(l),tg(null,e9,e6,eU,tt,tn)}}catch(e){console.log("Error loading settings:",e)}finally{ed(!1)}},ty=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:e})})).ok&&D(e)}catch(e){console.log("Error updating tunnelDashboardAccess:",e)}},tj=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:e})})).ok&&P(e)}catch(e){console.log("Error updating requireApiKey:",e)}},tv=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:e})})).ok&&I(e)}catch(e){console.log("Error updating rtkEnabled:",e)}},tk=async e=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.log("Error updating setting:",e)}},tw=async()=>{let e=q.trim()||"http://localhost:8787";z(e),await tk({headroomUrl:e}),tN()},tN=(0,l.useCallback)(async()=>{J(e=>({...e,loading:!0}));try{let e=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();J({...t,loading:!1})}catch{J({installed:!1,running:!1,python:null,loading:!1})}},[]),tC=(0,l.useCallback)(async()=>{V(""),Y(!0);try{let e=await fetch("/api/headroom/start",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to start proxy");await tN()}catch(e){V(e.message)}finally{Y(!1)}},[tN]),tS=(0,l.useCallback)(async()=>{Y(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await tN()}finally{Y(!1)}},[tN]),t_=async()=>{try{let e=await fetch("/api/keys"),t=await e.json();e.ok&&a(t.keys||[])}catch(e){console.log("Error fetching data:",e)}finally{r(!1)}},tT=async(...e)=>{ej(!0),ek("Waiting for tunnel ready...");let t=e.filter(Boolean).map(e=>`${e}/api/health`),a=Date.now();for(;Date.now()-a<3e5;){if(await new Promise(e=>setTimeout(e,2e3)),await Promise.any(t.map(async e=>{if((await fetch(e,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return em(!0),ej(!1),ek(""),!0;if((Date.now()-a)%1e4<2e3)try{let e=await fetch("/api/tunnel/status");if(e.ok){let t=await e.json();if(!t.tunnel?.enabled)return eN({type:"error",message:"Tunnel process stopped unexpectedly."}),ej(!1),ek(""),!1}}catch{}}return eN({type:"error",message:"Tunnel created but not reachable. Please try again."}),ej(!1),ek(""),!1},tE=async()=>{eS(!1),ej(!0),eN(null),ek("Creating tunnel...");let e=!0;(async()=>{for(;e;){try{let t=await fetch("/api/tunnel/status");if(t.ok){let a=await t.json();a.download?.downloading?ek(`Downloading cloudflared... ${a.download.progress}%`):e&&ek("Creating tunnel...")}}catch{}await new Promise(e=>setTimeout(e,1e3))}})();try{let t=await fetch("/api/tunnel/enable",{method:"POST"});e=!1;let a=await t.json();if(!t.ok)return void eN({type:"error",message:a.error||"Failed to enable tunnel"});let s=a.tunnelUrl;if(!s)return void eN({type:"error",message:"No tunnel URL returned"});eg(s),ef(a.publicUrl||""),await tT(a.publicUrl,s)}catch(e){eN({type:"error",message:e.message})}finally{e=!1,ej(!1),ek("")}},tP=async()=>{ej(!0),eN(null);try{let e=await fetch("/api/tunnel/disable",{method:"POST"}),t=await e.json();e.ok?(em(!1),eg(""),eT(!1),eN({type:"success",message:"Tunnel disabled"})):eN({type:"error",message:t.error||"Failed to disable tunnel"})}catch(e){eN({type:"error",message:e.message})}finally{ej(!1)}},t$=async()=>{eJ(null);try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok){let t=await e.json();return eJ(t.installed),t}}catch{}return eJ(!1),{installed:!1}},tU=async()=>{eG(!0),eW(null),eY([]);try{let e=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:eZ})});eV("");let t=e.body.getReader(),a=new TextDecoder,s="";for(;;){let{done:e,value:l}=await t.read();if(e)break;let n=(s+=a.decode(l,{stream:!0})).split("\n\n");for(let e of(s=n.pop()||"",n)){let t=e.split("\n"),a="progress",s=null;for(let e of t)if(e.startsWith("event: ")&&(a=e.slice(7).trim()),e.startsWith("data: "))try{s=JSON.parse(e.slice(6))}catch{}if(s)if("progress"===a)eY(e=>[...e.slice(-50),s.message]);else if("done"===a){eJ(!0),eG(!1),e2(!1),tD();return}else"error"===a&&eW({type:"error",message:s.error||"Install failed"})}}}catch(e){eW({type:"error",message:e.message})}finally{eG(!1)}},tO=async e=>{eI("Waiting for Tailscale ready...");let t=`${e}/api/health`,a=Date.now();for(;Date.now()-a<3e5;){await new Promise(e=>setTimeout(e,2e3));try{let e=await fetch(t,{mode:"no-cors",cache:"no-store"});if(e.ok||"opaque"===e.type)return!0}catch{}}return!1},tA=(e,t)=>{ez(e),eH(t)},tL=()=>{ez(""),eH("")},tD=async()=>{e2(!1),e0(!0),eD(!0),eW(null),eI("Connecting..."),tL();try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){eA(t.tunnelUrl||"");let e=await tO(t.tunnelUrl);eP(!0),eW(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.needsLogin&&t.authUrl){tA(t.authUrl,"Open Login Page"),eI('Login required — click "Open Login Page" to continue');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok&&(await e.json()).loggedIn){tL(),eI("Starting funnel...");let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){eA(t.tunnelUrl||"");let e=await tO(t.tunnelUrl);eP(!0),eW(e?null:{type:"warning",message:"Connected but not reachable yet."})}else t.funnelNotEnabled&&t.enableUrl?await tF(t.enableUrl):eW({type:"error",message:t.error||"Failed to start funnel"});return}}catch{}}tL(),eW({type:"error",message:"Login timed out. Please try again."});return}if(t.funnelNotEnabled&&t.enableUrl)return void await tF(t.enableUrl);eW({type:"error",message:t.error||"Failed to connect"})}catch(e){eW({type:"error",message:e.message})}finally{eD(!1),e0(!1),eI(""),tL()}},tF=async e=>{tA(e,"Open Funnel Settings"),eI('Click "Open Funnel Settings" to enable Funnel...');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){tL(),eA(t.tunnelUrl||"");let e=await tO(t.tunnelUrl);eP(!0),eW(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.funnelNotEnabled)continue;if(t.error){tL(),eW({type:"error",message:t.error});return}}catch{}}tL(),eW({type:"error",message:"Timed out waiting for Funnel to be enabled."})},tI=async()=>{eD(!0),eW(null);try{let e=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),t=await e.json();e.ok?(eP(!1),eA(""),e4(!1),eW({type:"success",message:"Tailscale disabled"})):eW({type:"error",message:t.error||"Failed to disable Tailscale"})}catch(e){eW({type:"error",message:e.message})}finally{eD(!1)}},tR=async()=>{eW(null),eY([]);let e=await t$();e?.installed&&e?.hasCachedPassword?tD():e2(!0)},tW=async()=>{if(w.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:w})}),t=await e.json();e.ok&&(S(t.key),await t_(),N(""),k(!1))}catch(e){console.log("Error creating key:",e)}},tq=async e=>{T({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{T(null);try{(await fetch(`/api/keys/${e}`,{method:"DELETE"})).ok&&(a(t.filter(t=>t.id!==e)),ti(t=>{let a=new Set(t);return a.delete(e),a}))}catch(e){console.log("Error deleting key:",e)}}})},tz=async(e,t)=>{try{(await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&a(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("Error toggling key:",e)}},[tK,tH]=(0,l.useState)("/v1");if((0,l.useEffect)(()=>{tH(`${window.location.origin}/v1`)},[]),n)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(i.Qv,{}),(0,s.jsx)(i.Qv,{})]});let tM=!!M.running,tJ=!1!==M.localUrl,tB=!!M.canStart,tG=tJ&&!!M.managedPid,tQ=M.loading?"Checking…":tM?"Running":tJ&&!M.installed?"Not installed":tJ?"Proxy off":"Unreachable",tY=[{label:"Local",value:"Always on",active:!0},{label:"Tunnel",value:ex?eu?"Online":"Syncing":"Off",active:ex&&eu},{label:"Tailscale",value:eE?e$?"Online":"Syncing":"Off",active:eE&&e$},{label:"Keys",value:E?`${t.length} gated`:"Open",active:E}];return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-6 pb-8",children:[(0,s.jsxs)("section",{className:"relative overflow-hidden rounded-[2rem] border border-cyan-200/10 bg-slate-950/45 p-5 shadow-[0_24px_80px_rgba(0,0,0,0.25)] md:p-7",children:[(0,s.jsx)("div",{className:"absolute -right-16 -top-20 h-72 w-72 rounded-full bg-cyan-400/15 blur-3xl"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-1/3 h-44 w-44 rounded-full bg-violet-500/10 blur-3xl"}),(0,s.jsxs)("div",{className:"relative grid gap-6 lg:grid-cols-[1.1fr_0.9fr] lg:items-end",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-cyan-200/15 bg-cyan-400/[0.08] px-3 py-1.5 text-[10px] font-black uppercase tracking-[0.28em] text-cyan-200",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"radar"}),"Endpoint control deck"]}),(0,s.jsx)("h2",{className:"max-w-3xl text-4xl font-black tracking-[-0.06em] text-text-main md:text-5xl",children:"Route every client through one live gateway."}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-6 text-text-muted",children:"Copy endpoints, gate access, expose tunnels, and tune token compression without leaving this cockpit."})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-2",children:tY.map(e=>(0,s.jsxs)("div",{className:"rounded-2xl border border-cyan-200/10 bg-surface/55 p-4 backdrop-blur-xl",children:[(0,s.jsx)("div",{className:`mb-3 h-2 w-2 rounded-full ${e.active?"bg-cyan-300 shadow-[0_0_18px_rgba(34,211,238,0.9)]":"bg-text-subtle/50"}`}),(0,s.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-text-subtle",children:e.label}),(0,s.jsx)("p",{className:"mt-1 text-lg font-black tracking-[-0.04em]",children:e.value})]},e.label))})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6 w-full",children:[(0,s.jsxs)(i.Zp,{className:"xl:col-span-7 flex flex-col relative overflow-hidden group",children:[(0,s.jsx)("div",{className:"absolute -top-40 -right-40 w-96 h-96 bg-brand-500/10 rounded-full blur-[100px] pointer-events-none transition-transform duration-700 group-hover:scale-150"}),(0,s.jsxs)("h2",{className:"text-xl font-black tracking-[-0.04em] mb-6 flex items-center gap-3 relative z-10",children:[(0,s.jsx)("div",{className:"p-2 rounded-2xl bg-cyan-400/10 text-cyan-300 flex items-center justify-center ring-1 ring-cyan-300/15",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"api"})}),"Live endpoints"]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(g,{label:"Local",url:tK,copyId:"local_url",copied:tm,onCopy:tu}),(0,s.jsxs)("div",{className:"grid gap-2 rounded-2xl border border-cyan-200/10 bg-slate-950/25 p-3 md:grid-cols-[7rem_1fr_auto_auto] md:items-center",children:[(0,s.jsx)("span",{className:`text-[11px] font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full shrink-0 text-center ${ex?"bg-cyan-400/10 text-cyan-200":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),ex&&!ey&&eu?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.pd,{value:`${eb||ep}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)("button",{onClick:()=>tu(`${eb||ep}/v1`,"tunnel_url"),className:"p-2 hover:bg-cyan-400/10 rounded-xl text-text-muted hover:text-cyan-200 transition-colors shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===tm?"check":"content_copy"})}),(0,s.jsx)("button",{onClick:()=>eT(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!ex||ey||eu?ey?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ev||"Creating tunnel..."]}),(0,s.jsx)("button",{onClick:()=>{ej(!1),ek("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):ew?.type==="error"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),ew.message]}),(0,s.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>eS(!0),children:"Enable"})]}):ec?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,s.jsx)("button",{onClick:()=>ed(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,s.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{th?eN({type:"error",message:`Security required: ${tp}`}):E?eS(!0):eN({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ta?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,s.jsx)("button",{onClick:()=>eT(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,s.jsxs)("div",{className:"grid gap-2 rounded-2xl border border-cyan-200/10 bg-slate-950/25 p-3 md:grid-cols-[7rem_1fr_auto_auto] md:items-center",children:[(0,s.jsx)("span",{className:`text-[11px] font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full shrink-0 text-center ${eE?"bg-cyan-400/10 text-cyan-200":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),eE&&!eL&&e$?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.pd,{value:`${eO}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)("button",{onClick:()=>tu(`${eO}/v1`,"ts_url"),className:"p-2 hover:bg-cyan-400/10 rounded-xl text-text-muted hover:text-cyan-200 transition-colors shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===tm?"check":"content_copy"})}),(0,s.jsx)("button",{onClick:()=>e4(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!eE||eL||e$?eL||eX?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),eF||"Connecting..."]}),eq&&(0,s.jsx)(i.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(eq,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:eK||"Open"}),(0,s.jsx)("button",{onClick:()=>{eD(!1),e0(!1),eI(""),tL()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):eR?.type==="error"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),eR.message]}),(0,s.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:tR,children:"Enable"})]}):(0,s.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{th?eW({type:"error",message:`Security required: ${tp}`}):tR()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),tl?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,s.jsx)("button",{onClick:()=>e4(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),th&&!ex&&!eE&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(y,{message:tp,action:{label:"Open settings",href:"/dashboard/profile"}})}),(ex||eE)&&(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!E&&(0,s.jsx)(y,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!$||!O)&&(0,s.jsx)(y,{message:$?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:$?"Change password":"Enable",href:"/dashboard/profile"}})]}),(ex||eE)&&(0,s.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,s.jsx)(i.lM,{checked:L,onChange:()=>ty(!L)}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,s.jsx)(f,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,s.jsxs)(i.Zp,{id:"require-api-key",className:"xl:col-span-5 flex flex-col relative overflow-hidden group",children:[(0,s.jsx)("div",{className:"absolute -bottom-40 -left-40 w-96 h-96 bg-orange-500/10 rounded-full blur-[100px] pointer-events-none transition-transform duration-700 group-hover:scale-150"}),(0,s.jsxs)("div",{className:"flex items-center justify-between mb-6 relative z-10",children:[(0,s.jsxs)("h2",{className:"text-xl font-black tracking-[-0.04em] flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-2xl bg-violet-500/10 text-violet-300 flex items-center justify-center ring-1 ring-violet-300/15",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"vpn_key"})}),"Access keys"]}),(0,s.jsx)(i.$n,{icon:"add",onClick:()=>k(!0),children:"Create Key"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,s.jsx)(i.lM,{checked:E,onChange:()=>tj(!E)})]}),to&&!E&&(0,s.jsx)("div",{className:"mb-4 -mt-2",children:(0,s.jsx)(y,{message:"Endpoint is exposed without an API key."})}),0===t.length?(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,s.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,s.jsx)(i.$n,{icon:"add",onClick:()=>k(!0),children:"Create Key"})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 relative z-10 overflow-y-auto pr-2",style:{maxHeight:"400px"},children:t.map(e=>{var t;return(0,s.jsxs)("div",{className:`group flex items-center justify-between p-4 rounded-xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors ${!1===e.isActive?"opacity-60 grayscale":""}`,children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1.5 bg-black/10 dark:bg-white/[0.03] w-fit px-2 py-1 rounded-md",children:[(0,s.jsx)("code",{className:"text-xs text-text-muted font-mono tracking-wider",children:tr.has(e.id)?e.key:(t=e.key)&&!(t.length<=10)?t.slice(0,6)+"•".repeat(t.length-10)+t.slice(-4):t||""}),(0,s.jsx)("button",{onClick:()=>{var t;return t=e.id,void ti(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/10 rounded text-text-muted hover:text-primary transition-all",title:tr.has(e.id)?"Hide key":"Show key",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tr.has(e.id)?"visibility_off":"visibility"})}),(0,s.jsx)("button",{onClick:()=>tu(e.key,e.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/10 rounded text-text-muted hover:text-primary transition-all",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tm===e.id?"check":"content_copy"})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[(0,s.jsx)("p",{className:"text-[11px] text-text-muted font-medium uppercase tracking-wider",children:new Date(e.createdAt).toLocaleDateString()}),!1===e.isActive&&(0,s.jsx)("span",{className:"text-[10px] bg-orange-500/10 text-orange-500 px-1.5 py-0.5 rounded font-bold uppercase tracking-wider",children:"Paused"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 pl-4 border-l border-border-subtle/30 ml-4",children:[(0,s.jsx)(i.lM,{size:"sm",checked:e.isActive??!0,onChange:t=>{e.isActive&&!t?T({title:"Pause API Key",message:`Pause API key "${e.name}"?
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6099],{65425:(e,t,a)=>{Promise.resolve().then(a.bind(a,76648))},76648:(e,t,a)=>{"use strict";a.d(t,{default:()=>j});var s=a(95155),l=a(12115),n=a(14051),r=a.n(n),i=a(35497),o=a(11059),c=a(73006);let d=["zh-CN","zh-TW"],x=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],m=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],u=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}];async function h(e){if(!e)return!1;try{return(await fetch(`${e}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(5e3)})).ok}catch{return!1}}async function p(...e){let t=e.filter(Boolean).map(h);return!!t.length&&new Promise(e=>{let a=t.length;t.forEach(t=>t.then(t=>{t?e(!0):0==--a&&e(!1)}))})}function g({label:e,url:t,copyId:a,copied:l,onCopy:n,badge:r,actions:o}){return(0,s.jsxs)("div",{className:"grid gap-2 rounded-2xl border border-cyan-200/10 bg-slate-950/25 p-3 md:grid-cols-[7rem_1fr_auto] md:items-center",children:[(0,s.jsx)("span",{className:`text-[11px] font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full shrink-0 text-center ${"CF"===r||"TS"===r?"bg-cyan-400/10 text-cyan-200":"bg-surface-2 text-text-muted"}`,children:e}),(0,s.jsx)(i.pd,{value:t,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)("button",{onClick:()=>n(t,a),className:"p-2 hover:bg-cyan-400/10 rounded-xl text-text-muted hover:text-cyan-200 transition-colors shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l===a?"check":"content_copy"})}),o]})}function b({status:e,className:t=""}){return(0,s.jsx)("div",{className:`p-2 rounded text-sm ${t} ${"success"===e.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===e.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===e.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:e.message.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>/^https?:\/\//.test(e)?(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:e},t):e)})}function f({text:e}){return(0,s.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,s.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:e})]})}function y({message:e,action:t}){return(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,s.jsx)("p",{className:"text-xs flex-1",children:e}),t&&(0,s.jsx)("a",{href:t.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:t.href.startsWith("#")?e=>{e.preventDefault(),document.getElementById(t.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:t.label})]})}function j({machineId:e}){let[t,a]=(0,l.useState)([]),[n,r]=(0,l.useState)(!0),[v,k]=(0,l.useState)(!1),[w,N]=(0,l.useState)(""),[C,S]=(0,l.useState)(null),[_,T]=(0,l.useState)(null),[E,P]=(0,l.useState)(!1),[$,O]=(0,l.useState)(!0),[U,A]=(0,l.useState)(!0),[L,D]=(0,l.useState)(!1),[F,I]=(0,l.useState)(!0),[R,W]=(0,l.useState)(!1),[q,z]=(0,l.useState)("http://localhost:8787"),[K,H]=(0,l.useState)(!1),[M,J]=(0,l.useState)({installed:!1,running:!1,python:null,loading:!0}),[B,G]=(0,l.useState)(!1),[Q,Y]=(0,l.useState)(!1),[Z,V]=(0,l.useState)(""),[X,ee]=(0,l.useState)(!1),[et,ea]=(0,l.useState)("full"),[es,el]=(0,l.useState)(!1),[en,er]=(0,l.useState)("full"),[ei,eo]=(0,l.useState)("en"),[ec,ed]=(0,l.useState)(!0),[ex,em]=(0,l.useState)(!1),[eu,eh]=(0,l.useState)(!1),[ep,eg]=(0,l.useState)(""),[eb,ef]=(0,l.useState)(""),[ey,ej]=(0,l.useState)(!1),[ev,ek]=(0,l.useState)(""),[ew,eN]=(0,l.useState)(null),[eC,eS]=(0,l.useState)(!1),[e_,eT]=(0,l.useState)(!1),[eE,eP]=(0,l.useState)(!1),[e$,eO]=(0,l.useState)(!1),[eU,eA]=(0,l.useState)(""),[eL,eD]=(0,l.useState)(!1),[eF,eI]=(0,l.useState)(""),[eR,eW]=(0,l.useState)(null),[eq,ez]=(0,l.useState)(""),[eK,eH]=(0,l.useState)(""),[eM,eJ]=(0,l.useState)(null),[eB,eG]=(0,l.useState)(!1),[eQ,eY]=(0,l.useState)([]),[eZ,eV]=(0,l.useState)(""),[eX,e0]=(0,l.useState)(!1),[e1,e2]=(0,l.useState)(!1),[e5,e4]=(0,l.useState)(!1),e3=(0,l.useRef)(null),e8=(0,l.useRef)(0),e6=(0,l.useRef)(0),e7=(0,l.useRef)(!1),e9=(0,l.useRef)(!1),te=(0,l.useRef)(!1),tt=(0,l.useRef)(!1),[ta,ts]=(0,l.useState)(!1),[tl,tn]=(0,l.useState)(!1),[tr,ti]=(0,l.useState)(new Set),[to,tc]=(0,l.useState)(!1);(0,l.useEffect)(()=>{tc(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,l.useEffect)(()=>(eo((0,c.kk)()),(0,c.oQ)(()=>eo((0,c.kk)()))),[]);let td=d.includes(ei),tx=td?m:m.filter(e=>!e.wenyan);(0,l.useEffect)(()=>{let e=m.find(e=>e.id===et);e?.wenyan&&!td&&(ea("ultra"),tk({cavemanLevel:"ultra"}))},[td,et]);let{copied:tm,copy:tu}=(0,o.C)(),th=!$||!U,tp=$?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,l.useEffect)(()=>{e3.current&&(e3.current.scrollTop=e3.current.scrollHeight)},[eQ]),(0,l.useEffect)(()=>{t_(),tf()},[]),(0,l.useEffect)(()=>{if(!(ex||eE))return;let e=!ex||eu,t=!eE||e$,a=()=>{document.hidden||tb()};if(document.addEventListener("visibilitychange",a),e&&t)return()=>document.removeEventListener("visibilitychange",a);let s=setInterval(()=>{document.hidden||tb()},5e3);return()=>{clearInterval(s),document.removeEventListener("visibilitychange",a)}},[ex,eE,eu,e$]),(0,l.useEffect)(()=>{let e=async()=>{if(!document.hidden){if(ex&&(ep||eb)){let e=await p(eb,ep);e7.current=e,e?(e8.current=0,eh(!0),te.current||(te.current=!0,ts(!0))):(e8.current+=1,e8.current>=5&&eh(!1))}else e7.current=!1;if(eE&&eU){let e=await h(eU);e9.current=e,e?(e6.current=0,eO(!0),tt.current||(tt.current=!0,tn(!0))):(e6.current+=1,e6.current>=5&&eO(!1))}else e9.current=!1}};if(!(ex&&(ep||eb)||eE&&eU))return;e();let t=!eE||e$;if((!ex||eu)&&t)return;let a=setInterval(e,1e4);return()=>clearInterval(a)},[ex,ep,eb,eE,eU,eu,e$]);let tg=(0,l.useCallback)((e,t,a,s,l,n)=>{t.current?(a.current=0,s(!0),l.current||(l.current=!0,n(!0))):(a.current+=1,a.current>=5&&s(!1))},[]),tb=async()=>{try{let e=await fetch("/api/tunnel/status",{cache:"no-store"});if(!e.ok)return;let t=await e.json(),a=t.tunnel?.settingsEnabled??t.tunnel?.enabled??!1,s=t.tunnel?.tunnelUrl||"";eg(s),ef(t.tunnel?.publicUrl||""),em(a),tg(null,e7,e8,eh,te,ts);let l=t.tailscale?.settingsEnabled??t.tailscale?.enabled??!1,n=t.tailscale?.tunnelUrl||"";eA(n),eP(l),tg(null,e9,e6,eO,tt,tn)}catch{}},tf=async()=>{ed(!0);try{let[e,t]=await Promise.all([fetch("/api/settings"),fetch("/api/tunnel/status",{cache:"no-store"})]);if(e.ok){let t=await e.json();P(t.requireApiKey||!1),O(!1!==t.requireLogin),A(t.hasPassword||!1),D(t.tunnelDashboardAccess||!1),I(!1!==t.rtkEnabled),W(!!t.headroomEnabled),z(t.headroomUrl||"http://localhost:8787"),H(!!t.headroomCompressUserMessages),tN(),ee(!!t.cavemanEnabled),ea(t.cavemanLevel||"full"),el(!!t.ponytailEnabled),er(t.ponytailLevel||"full")}if(t.ok){let e=await t.json(),a=e.tunnel?.settingsEnabled??e.tunnel?.enabled??!1,s=e.tunnel?.tunnelUrl||"";eg(s),ef(e.tunnel?.publicUrl||""),em(a),tg(null,e7,e8,eh,te,ts);let l=e.tailscale?.settingsEnabled??e.tailscale?.enabled??!1,n=e.tailscale?.tunnelUrl||"";eA(n),eP(l),tg(null,e9,e6,eO,tt,tn)}}catch(e){console.log("Error loading settings:",e)}finally{ed(!1)}},ty=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:e})})).ok&&D(e)}catch(e){console.log("Error updating tunnelDashboardAccess:",e)}},tj=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:e})})).ok&&P(e)}catch(e){console.log("Error updating requireApiKey:",e)}},tv=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:e})})).ok&&I(e)}catch(e){console.log("Error updating rtkEnabled:",e)}},tk=async e=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.log("Error updating setting:",e)}},tw=async()=>{let e=q.trim()||"http://localhost:8787";z(e),await tk({headroomUrl:e}),tN()},tN=(0,l.useCallback)(async()=>{J(e=>({...e,loading:!0}));try{let e=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();J({...t,loading:!1})}catch{J({installed:!1,running:!1,python:null,loading:!1})}},[]),tC=(0,l.useCallback)(async()=>{V(""),Y(!0);try{let e=await fetch("/api/headroom/start",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to start proxy");await tN()}catch(e){V(e.message)}finally{Y(!1)}},[tN]),tS=(0,l.useCallback)(async()=>{Y(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await tN()}finally{Y(!1)}},[tN]),t_=async()=>{try{let e=await fetch("/api/keys"),t=await e.json();e.ok&&a(t.keys||[])}catch(e){console.log("Error fetching data:",e)}finally{r(!1)}},tT=async(...e)=>{ej(!0),ek("Waiting for tunnel ready...");let t=e.filter(Boolean).map(e=>`${e}/api/health`),a=Date.now();for(;Date.now()-a<3e5;){if(await new Promise(e=>setTimeout(e,2e3)),await Promise.any(t.map(async e=>{if((await fetch(e,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return em(!0),ej(!1),ek(""),!0;if((Date.now()-a)%1e4<2e3)try{let e=await fetch("/api/tunnel/status");if(e.ok){let t=await e.json();if(!t.tunnel?.enabled)return eN({type:"error",message:"Tunnel process stopped unexpectedly."}),ej(!1),ek(""),!1}}catch{}}return eN({type:"error",message:"Tunnel created but not reachable. Please try again."}),ej(!1),ek(""),!1},tE=async()=>{eS(!1),ej(!0),eN(null),ek("Creating tunnel...");let e=!0;(async()=>{for(;e;){try{let t=await fetch("/api/tunnel/status");if(t.ok){let a=await t.json();a.download?.downloading?ek(`Downloading cloudflared... ${a.download.progress}%`):e&&ek("Creating tunnel...")}}catch{}await new Promise(e=>setTimeout(e,1e3))}})();try{let t=await fetch("/api/tunnel/enable",{method:"POST"});e=!1;let a=await t.json();if(!t.ok)return void eN({type:"error",message:a.error||"Failed to enable tunnel"});let s=a.tunnelUrl;if(!s)return void eN({type:"error",message:"No tunnel URL returned"});eg(s),ef(a.publicUrl||""),await tT(a.publicUrl,s)}catch(e){eN({type:"error",message:e.message})}finally{e=!1,ej(!1),ek("")}},tP=async()=>{ej(!0),eN(null);try{let e=await fetch("/api/tunnel/disable",{method:"POST"}),t=await e.json();e.ok?(em(!1),eg(""),eT(!1),eN({type:"success",message:"Tunnel disabled"})):eN({type:"error",message:t.error||"Failed to disable tunnel"})}catch(e){eN({type:"error",message:e.message})}finally{ej(!1)}},t$=async()=>{eJ(null);try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok){let t=await e.json();return eJ(t.installed),t}}catch{}return eJ(!1),{installed:!1}},tO=async()=>{eG(!0),eW(null),eY([]);try{let e=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:eZ})});eV("");let t=e.body.getReader(),a=new TextDecoder,s="";for(;;){let{done:e,value:l}=await t.read();if(e)break;let n=(s+=a.decode(l,{stream:!0})).split("\n\n");for(let e of(s=n.pop()||"",n)){let t=e.split("\n"),a="progress",s=null;for(let e of t)if(e.startsWith("event: ")&&(a=e.slice(7).trim()),e.startsWith("data: "))try{s=JSON.parse(e.slice(6))}catch{}if(s)if("progress"===a)eY(e=>[...e.slice(-50),s.message]);else if("done"===a){eJ(!0),eG(!1),e2(!1),tD();return}else"error"===a&&eW({type:"error",message:s.error||"Install failed"})}}}catch(e){eW({type:"error",message:e.message})}finally{eG(!1)}},tU=async e=>{eI("Waiting for Tailscale ready...");let t=`${e}/api/health`,a=Date.now();for(;Date.now()-a<3e5;){await new Promise(e=>setTimeout(e,2e3));try{let e=await fetch(t,{mode:"no-cors",cache:"no-store"});if(e.ok||"opaque"===e.type)return!0}catch{}}return!1},tA=(e,t)=>{ez(e),eH(t)},tL=()=>{ez(""),eH("")},tD=async()=>{e2(!1),e0(!0),eD(!0),eW(null),eI("Connecting..."),tL();try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){eA(t.tunnelUrl||"");let e=await tU(t.tunnelUrl);eP(!0),eW(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.needsLogin&&t.authUrl){tA(t.authUrl,"Open Login Page"),eI('Login required — click "Open Login Page" to continue');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok&&(await e.json()).loggedIn){tL(),eI("Starting funnel...");let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){eA(t.tunnelUrl||"");let e=await tU(t.tunnelUrl);eP(!0),eW(e?null:{type:"warning",message:"Connected but not reachable yet."})}else t.funnelNotEnabled&&t.enableUrl?await tF(t.enableUrl):eW({type:"error",message:t.error||"Failed to start funnel"});return}}catch{}}tL(),eW({type:"error",message:"Login timed out. Please try again."});return}if(t.funnelNotEnabled&&t.enableUrl)return void await tF(t.enableUrl);eW({type:"error",message:t.error||"Failed to connect"})}catch(e){eW({type:"error",message:e.message})}finally{eD(!1),e0(!1),eI(""),tL()}},tF=async e=>{tA(e,"Open Funnel Settings"),eI('Click "Open Funnel Settings" to enable Funnel...');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){tL(),eA(t.tunnelUrl||"");let e=await tU(t.tunnelUrl);eP(!0),eW(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.funnelNotEnabled)continue;if(t.error){tL(),eW({type:"error",message:t.error});return}}catch{}}tL(),eW({type:"error",message:"Timed out waiting for Funnel to be enabled."})},tI=async()=>{eD(!0),eW(null);try{let e=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),t=await e.json();e.ok?(eP(!1),eA(""),e4(!1),eW({type:"success",message:"Tailscale disabled"})):eW({type:"error",message:t.error||"Failed to disable Tailscale"})}catch(e){eW({type:"error",message:e.message})}finally{eD(!1)}},tR=async()=>{eW(null),eY([]);let e=await t$();e?.installed&&e?.hasCachedPassword?tD():e2(!0)},tW=async()=>{if(w.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:w})}),t=await e.json();e.ok&&(S(t.key),await t_(),N(""),k(!1))}catch(e){console.log("Error creating key:",e)}},tq=async e=>{T({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{T(null);try{(await fetch(`/api/keys/${e}`,{method:"DELETE"})).ok&&(a(t.filter(t=>t.id!==e)),ti(t=>{let a=new Set(t);return a.delete(e),a}))}catch(e){console.log("Error deleting key:",e)}}})},tz=async(e,t)=>{try{(await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&a(a=>a.map(a=>a.id===e?{...a,isActive:t}:a))}catch(e){console.log("Error toggling key:",e)}},[tK,tH]=(0,l.useState)("/v1");if((0,l.useEffect)(()=>{tH(`${window.location.origin}/v1`)},[]),n)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(i.Qv,{}),(0,s.jsx)(i.Qv,{})]});let tM=!!M.running,tJ=!1!==M.localUrl,tB=!!M.canStart,tG=tJ&&!!M.managedPid,tQ=M.loading?"Checking…":tM?"Running":tJ&&!M.installed?"Not installed":tJ?"Proxy off":"Unreachable",tY=[{label:"Local",value:"Always on",active:!0},{label:"Tunnel",value:ex?eu?"Online":"Syncing":"Off",active:ex&&eu},{label:"Tailscale",value:eE?e$?"Online":"Syncing":"Off",active:eE&&e$},{label:"Keys",value:E?`${t.length} gated`:"Open",active:E}];return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-6 pb-8",children:[(0,s.jsxs)("section",{className:"relative overflow-hidden rounded-[2rem] border border-cyan-200/10 bg-slate-950/45 p-5 shadow-[0_24px_80px_rgba(0,0,0,0.25)] md:p-7",children:[(0,s.jsx)("div",{className:"absolute -right-16 -top-20 h-72 w-72 rounded-full bg-cyan-400/15 blur-3xl"}),(0,s.jsx)("div",{className:"absolute bottom-0 left-1/3 h-44 w-44 rounded-full bg-violet-500/10 blur-3xl"}),(0,s.jsxs)("div",{className:"relative grid gap-6 lg:grid-cols-[1.1fr_0.9fr] lg:items-end",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-4 inline-flex items-center gap-2 rounded-full border border-cyan-200/15 bg-cyan-400/[0.08] px-3 py-1.5 text-[10px] font-black uppercase tracking-[0.28em] text-cyan-200",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"radar"}),"Endpoint control deck"]}),(0,s.jsx)("h2",{className:"max-w-3xl text-4xl font-black tracking-[-0.06em] text-text-main md:text-5xl",children:"Route every client through one live gateway."}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-6 text-text-muted",children:"Copy endpoints, gate access, expose tunnels, and tune token compression without leaving this cockpit."})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-4 lg:grid-cols-2",children:tY.map(e=>(0,s.jsxs)("div",{className:"rounded-2xl border border-cyan-200/10 bg-surface/55 p-4 backdrop-blur-xl",children:[(0,s.jsx)("div",{className:`mb-3 h-2 w-2 rounded-full ${e.active?"bg-cyan-300 shadow-[0_0_18px_rgba(34,211,238,0.9)]":"bg-text-subtle/50"}`}),(0,s.jsx)("p",{className:"text-[10px] font-black uppercase tracking-[0.24em] text-text-subtle",children:e.label}),(0,s.jsx)("p",{className:"mt-1 text-lg font-black tracking-[-0.04em]",children:e.value})]},e.label))})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6 w-full",children:[(0,s.jsxs)(i.Zp,{className:"xl:col-span-7 flex flex-col relative overflow-hidden group",children:[(0,s.jsx)("div",{className:"absolute -top-40 -right-40 w-96 h-96 bg-brand-500/10 rounded-full blur-[100px] pointer-events-none transition-transform duration-700 group-hover:scale-150"}),(0,s.jsxs)("h2",{className:"text-xl font-black tracking-[-0.04em] mb-6 flex items-center gap-3 relative z-10",children:[(0,s.jsx)("div",{className:"p-2 rounded-2xl bg-cyan-400/10 text-cyan-300 flex items-center justify-center ring-1 ring-cyan-300/15",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"api"})}),"Live endpoints"]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(g,{label:"Local",url:tK,copyId:"local_url",copied:tm,onCopy:tu}),(0,s.jsxs)("div",{className:"grid gap-2 rounded-2xl border border-cyan-200/10 bg-slate-950/25 p-3 md:grid-cols-[7rem_1fr_auto_auto] md:items-center",children:[(0,s.jsx)("span",{className:`text-[11px] font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full shrink-0 text-center ${ex?"bg-cyan-400/10 text-cyan-200":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),ex&&!ey&&eu?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.pd,{value:`${eb||ep}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)("button",{onClick:()=>tu(`${eb||ep}/v1`,"tunnel_url"),className:"p-2 hover:bg-cyan-400/10 rounded-xl text-text-muted hover:text-cyan-200 transition-colors shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===tm?"check":"content_copy"})}),(0,s.jsx)("button",{onClick:()=>eT(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!ex||ey||eu?ey?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ev||"Creating tunnel..."]}),(0,s.jsx)("button",{onClick:()=>{ej(!1),ek("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):ew?.type==="error"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),ew.message]}),(0,s.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>eS(!0),children:"Enable"})]}):ec?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,s.jsx)("button",{onClick:()=>ed(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,s.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{th?eN({type:"error",message:`Security required: ${tp}`}):E?eS(!0):eN({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),ta?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,s.jsx)("button",{onClick:()=>eT(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,s.jsxs)("div",{className:"grid gap-2 rounded-2xl border border-cyan-200/10 bg-slate-950/25 p-3 md:grid-cols-[7rem_1fr_auto_auto] md:items-center",children:[(0,s.jsx)("span",{className:`text-[11px] font-black uppercase tracking-[0.2em] px-2 py-1 rounded-full shrink-0 text-center ${eE?"bg-cyan-400/10 text-cyan-200":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),eE&&!eL&&e$?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.pd,{value:`${eU}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)("button",{onClick:()=>tu(`${eU}/v1`,"ts_url"),className:"p-2 hover:bg-cyan-400/10 rounded-xl text-text-muted hover:text-cyan-200 transition-colors shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===tm?"check":"content_copy"})}),(0,s.jsx)("button",{onClick:()=>e4(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!eE||eL||e$?eL||eX?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),eF||"Connecting..."]}),eq&&(0,s.jsx)(i.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(eq,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:eK||"Open"}),(0,s.jsx)("button",{onClick:()=>{eD(!1),e0(!1),eI(""),tL()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):eR?.type==="error"?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),eR.message]}),(0,s.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:tR,children:"Enable"})]}):(0,s.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{th?eW({type:"error",message:`Security required: ${tp}`}):tR()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),tl?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,s.jsx)("button",{onClick:()=>e4(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),th&&!ex&&!eE&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(y,{message:tp,action:{label:"Open settings",href:"/dashboard/profile"}})}),(ex||eE)&&(0,s.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!E&&(0,s.jsx)(y,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!$||!U)&&(0,s.jsx)(y,{message:$?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:$?"Change password":"Enable",href:"/dashboard/profile"}})]}),(ex||eE)&&(0,s.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,s.jsx)(i.lM,{checked:L,onChange:()=>ty(!L)}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,s.jsx)(f,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,s.jsxs)(i.Zp,{id:"require-api-key",className:"xl:col-span-5 flex flex-col relative overflow-hidden group",children:[(0,s.jsx)("div",{className:"absolute -bottom-40 -left-40 w-96 h-96 bg-orange-500/10 rounded-full blur-[100px] pointer-events-none transition-transform duration-700 group-hover:scale-150"}),(0,s.jsxs)("div",{className:"flex items-center justify-between mb-6 relative z-10",children:[(0,s.jsxs)("h2",{className:"text-xl font-black tracking-[-0.04em] flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-2xl bg-violet-500/10 text-violet-300 flex items-center justify-center ring-1 ring-violet-300/15",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"vpn_key"})}),"Access keys"]}),(0,s.jsx)(i.$n,{icon:"add",onClick:()=>k(!0),children:"Create Key"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,s.jsx)(i.lM,{checked:E,onChange:()=>tj(!E)})]}),to&&!E&&(0,s.jsx)("div",{className:"mb-4 -mt-2",children:(0,s.jsx)(y,{message:"Endpoint is exposed without an API key."})}),0===t.length?(0,s.jsxs)("div",{className:"text-center py-12",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,s.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,s.jsx)(i.$n,{icon:"add",onClick:()=>k(!0),children:"Create Key"})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 relative z-10 overflow-y-auto pr-2",style:{maxHeight:"400px"},children:t.map(e=>{var t;return(0,s.jsxs)("div",{className:`group flex items-center justify-between p-4 rounded-xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors ${!1===e.isActive?"opacity-60 grayscale":""}`,children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold",children:e.name}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-1.5 bg-black/10 dark:bg-white/[0.03] w-fit px-2 py-1 rounded-md",children:[(0,s.jsx)("code",{className:"text-xs text-text-muted font-mono tracking-wider",children:tr.has(e.id)?e.key:(t=e.key)&&!(t.length<=10)?t.slice(0,6)+"•".repeat(t.length-10)+t.slice(-4):t||""}),(0,s.jsx)("button",{onClick:()=>{var t;return t=e.id,void ti(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/10 rounded text-text-muted hover:text-primary transition-all",title:tr.has(e.id)?"Hide key":"Show key",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tr.has(e.id)?"visibility_off":"visibility"})}),(0,s.jsx)("button",{onClick:()=>tu(e.key,e.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/10 rounded text-text-muted hover:text-primary transition-all",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tm===e.id?"check":"content_copy"})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[(0,s.jsx)("p",{className:"text-[11px] text-text-muted font-medium uppercase tracking-wider",children:new Date(e.createdAt).toLocaleDateString()}),!1===e.isActive&&(0,s.jsx)("span",{className:"text-[10px] bg-orange-500/10 text-orange-500 px-1.5 py-0.5 rounded font-bold uppercase tracking-wider",children:"Paused"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 pl-4 border-l border-border-subtle/30 ml-4",children:[(0,s.jsx)(i.lM,{size:"sm",checked:e.isActive??!0,onChange:t=>{e.isActive&&!t?T({title:"Pause API Key",message:`Pause API key "${e.name}"?
|
|
2
2
|
|
|
3
|
-
This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{T(null),tz(e.id,t)}}):tz(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,s.jsx)("button",{onClick:()=>tq(e.id),className:"p-2 hover:bg-red-500/10 rounded-lg text-red-500/50 hover:text-red-500 transition-all",title:"Delete Key",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,s.jsxs)(i.Zp,{id:"rtk",className:"xl:col-span-12 flex flex-col relative overflow-hidden group",children:[(0,s.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-full h-40 bg-indigo-500/10 rounded-full blur-[120px] pointer-events-none transition-transform duration-700 group-hover:scale-110"}),(0,s.jsx)("div",{className:"flex items-center justify-between mb-6 relative z-10",children:(0,s.jsxs)("h2",{className:"text-xl font-bold flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-xl bg-indigo-500/10 text-indigo-500 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"bolt"})}),"Token Saver"]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 relative z-10",children:[(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-semibold text-[15px] flex items-center gap-2",children:["Compress tool output",(0,s.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"RTK"})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted mt-1 leading-relaxed",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,s.jsx)(i.lM,{checked:F,onChange:()=>tv(!F)})]})}),(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[(0,s.jsx)("p",{className:"font-semibold text-[15px]",children:"Compress context"}),(0,s.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"Headroom"}),(0,s.jsx)("span",{className:`text-[10px] uppercase font-bold tracking-wider px-1.5 py-0.5 rounded ${tM?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:tQ})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted leading-relaxed",children:"Compress prompts via /v1/compress before routing"}),(0,s.jsx)("button",{type:"button",onClick:()=>G(!0),className:"text-[12px] text-indigo-400 hover:text-indigo-300 font-medium mt-2",children:tM?"Manage configuration →":"Setup instructions →"})]}),(0,s.jsx)(i.lM,{checked:R&&tM,disabled:!tM,onChange:()=>{var e;let t;return e=!R,void(z(t=q.trim()||"http://localhost:8787"),W(e),tk({headroomEnabled:e,headroomUrl:t}))}})]})}),(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-semibold text-[15px] flex items-center gap-2",children:["Compress LLM output",(0,s.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"Caveman"})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted mt-1 leading-relaxed",children:"Terse-style system prompt → ~65% fewer output tokens"})]}),(0,s.jsx)(i.lM,{checked:X,onChange:()=>{var e;ee(e=!X),tk({cavemanEnabled:e})}})]}),X&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 bg-black/10 dark:bg-white/[0.01] p-3 rounded-xl",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:tx.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;ea(t=e.id),tk({cavemanLevel:t})},className:`flex-1 py-1.5 rounded-lg text-xs font-semibold border transition-all ${et===e.id?"bg-indigo-500 text-white border-indigo-500 shadow-[0_0_10px_rgba(99,102,241,0.3)]":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-[11px] text-indigo-400/80 font-medium text-center",children:m.find(e=>e.id===et)?.desc})]})]})}),(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-semibold text-[15px] flex items-center gap-2",children:["Lazy senior dev",(0,s.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"Ponytail"})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted mt-1 leading-relaxed",children:"Bias model toward minimal code: YAGNI, reuse stdlib"})]}),(0,s.jsx)(i.lM,{checked:es,onChange:()=>{var e;el(e=!es),tk({ponytailEnabled:e})}})]}),es&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 bg-black/10 dark:bg-white/[0.01] p-3 rounded-xl",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:u.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;er(t=e.id),tk({ponytailLevel:t})},className:`flex-1 py-1.5 rounded-lg text-xs font-semibold border transition-all ${en===e.id?"bg-indigo-500 text-white border-indigo-500 shadow-[0_0_10px_rgba(99,102,241,0.3)]":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-[11px] text-indigo-400/80 font-medium text-center",children:u.find(e=>e.id===en)?.desc})]})]})})]})]})]}),(0,s.jsx)(i.aF,{isOpen:v,title:"Create API Key",onClose:()=>{k(!1),N("")},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(i.pd,{label:"Key Name",value:w,onChange:e=>N(e.target.value),placeholder:"Production Key"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tW,fullWidth:!0,disabled:!w.trim(),children:"Create"}),(0,s.jsx)(i.$n,{onClick:()=>{k(!1),N("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:!!C,title:"API Key Created",onClose:()=>S(null),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,s.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,s.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:C||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"created_key"===tm?"check":"content_copy",onClick:()=>tu(C,"created_key"),children:"created_key"===tm?"Copied!":"Copy"})]}),(0,s.jsx)(i.$n,{onClick:()=>S(null),fullWidth:!0,children:"Done"})]})}),(0,s.jsx)(i.aF,{isOpen:eC,title:"Enable Tunnel",onClose:()=>eS(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:x.map(e=>(0,s.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:e.icon}),(0,s.jsx)("p",{className:"text-xs font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:e.desc})]},e.title))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tE,fullWidth:!0,children:"Start Tunnel"}),(0,s.jsx)(i.$n,{onClick:()=>eS(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:e_,title:"Disable Tunnel",onClose:()=>!ey&&eT(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tP,fullWidth:!0,disabled:ey,variant:"danger",children:ey?"Disabling...":"Disable"}),(0,s.jsx)(i.$n,{onClick:()=>eT(!1),variant:"ghost",fullWidth:!0,disabled:ey,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:e1,title:"Tailscale Funnel",onClose:()=>{eB||(e2(!1),eV(""),eW(null))},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[null===eM&&(0,s.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===eM&&!eB&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tU,fullWidth:!0,children:"Install Tailscale"}),(0,s.jsx)(i.$n,{onClick:()=>e2(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),eB&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),eQ.length>0&&(0,s.jsx)("div",{ref:e3,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:eQ.map((e,t)=>(0,s.jsx)("div",{children:e},t))})]}),!0===eM&&!eB&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>tD(),fullWidth:!0,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:()=>e2(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),eR&&(0,s.jsx)(b,{status:eR})]})}),(0,s.jsx)(i.aF,{isOpen:e5,title:"Disable Tailscale",onClose:()=>!eL&&e4(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tI,fullWidth:!0,disabled:eL,variant:"danger",children:eL?"Disabling...":"Disable"}),(0,s.jsx)(i.$n,{onClick:()=>e4(!1),variant:"ghost",fullWidth:!0,disabled:eL,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:B,title:tM?"Headroom":"Setup Headroom",onClose:()=>G(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{children:"Status"}),(0,s.jsx)("span",{className:tM?"text-success":"text-warning",children:tQ})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,s.jsx)(i.pd,{value:q,onChange:e=>z(e.target.value),onBlur:tw,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),tG?(0,s.jsx)(i.$n,{onClick:tS,variant:"ghost",fullWidth:!0,disabled:Q,children:Q?"Stopping…":"Stop Headroom"}):tM?(0,s.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):tB?(0,s.jsx)(i.$n,{onClick:tC,fullWidth:!0,disabled:Q,children:Q?"Starting…":"Start Headroom"}):tJ?M.python?(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",onClick:()=>tu('pip install "headroom-ai[proxy]"'),children:tm?"Copied":"Copy"})]})]}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),Z&&(0,s.jsx)("p",{className:"text-sm text-warning",children:Z}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>tN(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,s.jsx)(i.$n,{onClick:()=>G(!1),fullWidth:!0,children:"Done"})]})]})}),(0,s.jsx)(i.uo,{isOpen:!!_,onClose:()=>T(null),onConfirm:_?.onConfirm,title:_?.title||"Confirm",message:_?.message,variant:"danger"})]})}j.propTypes={machineId:r().string.isRequired}}}]);
|
|
3
|
+
This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{T(null),tz(e.id,t)}}):tz(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,s.jsx)("button",{onClick:()=>tq(e.id),className:"p-2 hover:bg-red-500/10 rounded-lg text-red-500/50 hover:text-red-500 transition-all",title:"Delete Key",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,s.jsxs)(i.Zp,{id:"rtk",className:"xl:col-span-12 flex flex-col relative overflow-hidden group",children:[(0,s.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-full h-40 bg-indigo-500/10 rounded-full blur-[120px] pointer-events-none transition-transform duration-700 group-hover:scale-110"}),(0,s.jsx)("div",{className:"flex items-center justify-between mb-6 relative z-10",children:(0,s.jsxs)("h2",{className:"text-xl font-bold flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 rounded-xl bg-indigo-500/10 text-indigo-500 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"bolt"})}),"Token Saver"]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 relative z-10",children:[(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-semibold text-[15px] flex items-center gap-2",children:["Compress tool output",(0,s.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"RTK"})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted mt-1 leading-relaxed",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,s.jsx)(i.lM,{checked:F,onChange:()=>tv(!F)})]})}),(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap mb-1",children:[(0,s.jsx)("p",{className:"font-semibold text-[15px]",children:"Compress context"}),(0,s.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"Headroom"}),(0,s.jsx)("span",{className:`text-[10px] uppercase font-bold tracking-wider px-1.5 py-0.5 rounded ${tM?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:tQ})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted leading-relaxed",children:"Compress prompts via /v1/compress before routing"}),(0,s.jsx)("button",{type:"button",onClick:()=>G(!0),className:"text-[12px] text-indigo-400 hover:text-indigo-300 font-medium mt-2",children:tM?"Manage configuration →":"Setup instructions →"})]}),(0,s.jsx)(i.lM,{checked:R&&tM,disabled:!tM,onChange:()=>{var e;let t;return e=!R,void(z(t=q.trim()||"http://localhost:8787"),W(e),tk({headroomEnabled:e,headroomUrl:t}))}})]})}),(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-semibold text-[15px] flex items-center gap-2",children:["Compress LLM output",(0,s.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"Caveman"})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted mt-1 leading-relaxed",children:"Terse-style system prompt → ~65% fewer output tokens"})]}),(0,s.jsx)(i.lM,{checked:X,onChange:()=>{var e;ee(e=!X),tk({cavemanEnabled:e})}})]}),X&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 bg-black/10 dark:bg-white/[0.01] p-3 rounded-xl",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:tx.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;ea(t=e.id),tk({cavemanLevel:t})},className:`flex-1 py-1.5 rounded-lg text-xs font-semibold border transition-all ${et===e.id?"bg-indigo-500 text-white border-indigo-500 shadow-[0_0_10px_rgba(99,102,241,0.3)]":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-[11px] text-indigo-400/80 font-medium text-center",children:m.find(e=>e.id===et)?.desc})]})]})}),(0,s.jsx)("div",{className:"flex flex-col justify-between p-5 rounded-2xl bg-black/20 dark:bg-white/[0.02] border border-black/5 dark:border-white/[0.04] hover:bg-black/10 dark:hover:bg-white/[0.04] transition-colors gap-4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"font-semibold text-[15px] flex items-center gap-2",children:["Lazy senior dev",(0,s.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-[11px] font-bold text-indigo-500 uppercase tracking-wider hover:opacity-80 bg-indigo-500/10 px-1.5 py-0.5 rounded",children:"Ponytail"})]}),(0,s.jsx)("p",{className:"text-[13px] text-text-muted mt-1 leading-relaxed",children:"Bias model toward minimal code: YAGNI, reuse stdlib"})]}),(0,s.jsx)(i.lM,{checked:es,onChange:()=>{var e;el(e=!es),tk({ponytailEnabled:e})}})]}),es&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 bg-black/10 dark:bg-white/[0.01] p-3 rounded-xl",children:[(0,s.jsx)("div",{className:"flex items-center gap-1.5",children:u.map(e=>(0,s.jsx)("button",{onClick:()=>{var t;er(t=e.id),tk({ponytailLevel:t})},className:`flex-1 py-1.5 rounded-lg text-xs font-semibold border transition-all ${en===e.id?"bg-indigo-500 text-white border-indigo-500 shadow-[0_0_10px_rgba(99,102,241,0.3)]":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,s.jsx)("p",{className:"text-[11px] text-indigo-400/80 font-medium text-center",children:u.find(e=>e.id===en)?.desc})]})]})})]})]})]}),(0,s.jsx)(i.aF,{isOpen:v,title:"Create API Key",onClose:()=>{k(!1),N("")},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(i.pd,{label:"Key Name",value:w,onChange:e=>N(e.target.value),placeholder:"Production Key"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tW,fullWidth:!0,disabled:!w.trim(),children:"Create"}),(0,s.jsx)(i.$n,{onClick:()=>{k(!1),N("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:!!C,title:"API Key Created",onClose:()=>S(null),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,s.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,s.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:C||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"created_key"===tm?"check":"content_copy",onClick:()=>tu(C,"created_key"),children:"created_key"===tm?"Copied!":"Copy"})]}),(0,s.jsx)(i.$n,{onClick:()=>S(null),fullWidth:!0,children:"Done"})]})}),(0,s.jsx)(i.aF,{isOpen:eC,title:"Enable Tunnel",onClose:()=>eS(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-3",children:x.map(e=>(0,s.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:e.icon}),(0,s.jsx)("p",{className:"text-xs font-semibold",children:e.title}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:e.desc})]},e.title))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tE,fullWidth:!0,children:"Start Tunnel"}),(0,s.jsx)(i.$n,{onClick:()=>eS(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:e_,title:"Disable Tunnel",onClose:()=>!ey&&eT(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tP,fullWidth:!0,disabled:ey,variant:"danger",children:ey?"Disabling...":"Disable"}),(0,s.jsx)(i.$n,{onClick:()=>eT(!1),variant:"ghost",fullWidth:!0,disabled:ey,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:e1,title:"Tailscale Funnel",onClose:()=>{eB||(e2(!1),eV(""),eW(null))},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[null===eM&&(0,s.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===eM&&!eB&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tO,fullWidth:!0,children:"Install Tailscale"}),(0,s.jsx)(i.$n,{onClick:()=>e2(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),eB&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),eQ.length>0&&(0,s.jsx)("div",{ref:e3,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:eQ.map((e,t)=>(0,s.jsx)("div",{children:e},t))})]}),!0===eM&&!eB&&(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>tD(),fullWidth:!0,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:()=>e2(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),eR&&(0,s.jsx)(b,{status:eR})]})}),(0,s.jsx)(i.aF,{isOpen:e5,title:"Disable Tailscale",onClose:()=>!eL&&e4(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:tI,fullWidth:!0,disabled:eL,variant:"danger",children:eL?"Disabling...":"Disable"}),(0,s.jsx)(i.$n,{onClick:()=>e4(!1),variant:"ghost",fullWidth:!0,disabled:eL,children:"Cancel"})]})]})}),(0,s.jsx)(i.aF,{isOpen:B,title:tM?"Headroom":"Setup Headroom",onClose:()=>G(!1),children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsx)("span",{children:"Status"}),(0,s.jsx)("span",{className:tM?"text-success":"text-warning",children:tQ})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,s.jsx)(i.pd,{value:q,onChange:e=>z(e.target.value),onBlur:tw,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),tG?(0,s.jsx)(i.$n,{onClick:tS,variant:"ghost",fullWidth:!0,disabled:Q,children:Q?"Stopping…":"Stop Headroom"}):tM?(0,s.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):tB?(0,s.jsx)(i.$n,{onClick:tC,fullWidth:!0,disabled:Q,children:Q?"Starting…":"Start Headroom"}):tJ?M.python?(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",onClick:()=>tu('pip install "headroom-ai[proxy]"'),children:tm?"Copied":"Copy"})]})]}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,s.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),Z&&(0,s.jsx)("p",{className:"text-sm text-warning",children:Z}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>tN(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,s.jsx)(i.$n,{onClick:()=>G(!1),fullWidth:!0,children:"Done"})]})]})}),(0,s.jsx)(i.uo,{isOpen:!!_,onClose:()=>T(null),onConfirm:_?.onConfirm,title:_?.title||"Confirm",message:_?.message,variant:"danger"})]})}j.propTypes={machineId:r().string.isRequired}}},e=>{e.O(0,[2574,3862,2649,1321,705,5497,8441,3794,7358],()=>e(e.s=65425)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6337],{8624:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var n=t(95155),a=t(12115),l=t(98500),r=t.n(l),c=t(35497),i=t(90620);let o=["> NEXUS-9 TERMINAL BOOTING...","> Initializing RTK compression engine... OK","> Loading provider registry... 47 providers found","> Establishing SSE bridge... CONNECTED","> Mounting MITM proxy... PORT 20128 LISTENING","> Calibrating token optimizer... +34% headroom","> Authentication subsystem... NOMINAL","> Dashboard UI... RENDERED","> WELCOME, OPERATOR."],d=e=>null==e?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e);function x({label:e,value:s,sub:t,icon:a,accent:l="cyan",delay:r=0,loading:c}){let i="green"===l?"text-green-400 border-green-500/30":"magenta"===l?"text-fuchsia-400 border-fuchsia-500/30":"amber"===l?"text-amber-400 border-amber-500/30":"text-cyan-300 border-cyan-500/30";return(0,n.jsxs)("div",{className:`hud-brackets relative overflow-hidden bg-black/40 backdrop-blur-sm border ${i} rounded-lg p-4 slide-up`,style:{animationDelay:`${r}ms`},children:[(0,n.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,n.jsx)("span",{className:"text-[9px] font-mono font-bold uppercase tracking-[0.2em] text-text-subtle",children:e}),a&&(0,n.jsx)("span",{className:`material-symbols-outlined text-[16px] ${i.split(" ")[0]}`,children:a})]}),(0,n.jsx)("div",{className:`text-2xl lg:text-3xl font-mono font-extrabold ${i.split(" ")[0]}`,children:c?(0,n.jsx)("span",{className:"inline-block w-16 h-6 bg-cyan-300/10 animate-pulse rounded"}):s}),t&&(0,n.jsx)("div",{className:"text-[10px] font-mono text-text-subtle mt-1 uppercase tracking-wider",children:t}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-current to-transparent opacity-20"})]})}function m({data:e,color:s="#00ff88"}){if(!e||0===e.length)return(0,n.jsx)("div",{className:"h-12 flex items-center text-[10px] font-mono text-text-subtle",children:"// NO DATA"});let t=Math.max(...e,1),a=e.map((s,n)=>`${n/(e.length-1||1)*100},${100-s/t*90-5}`).join(" ");return(0,n.jsxs)("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"w-full h-12",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:`grad-${s}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:s,stopOpacity:"0.3"}),(0,n.jsx)("stop",{offset:"100%",stopColor:s,stopOpacity:"0"})]})}),(0,n.jsx)("polyline",{points:`0,100 ${a} 100,100`,fill:`url(#grad-${s})`,stroke:"none"}),(0,n.jsx)("polyline",{points:a,fill:"none",stroke:s,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke",style:{filter:`drop-shadow(0 0 4px ${s})`}})]})}function p({items:e}){let s=(0,a.useRef)(null);return((0,a.useEffect)(()=>{s.current&&(s.current.scrollTop=0)},[e]),e&&0!==e.length)?(0,n.jsx)("div",{ref:s,className:"h-40 overflow-y-auto custom-scrollbar space-y-1 pr-1",children:e.map((e,s)=>{let t=e.status&&"ok"!==e.status&&"success"!==e.status&&200!==e.status;return(0,n.jsxs)("div",{className:"flex items-center gap-2 text-[11px] font-mono py-1 border-b border-cyan-300/5 last:border-0 slide-in-right",style:{animationDelay:`${30*s}ms`},children:[(0,n.jsx)("span",{className:`size-1.5 rounded-full ${t?"bg-red-500":"bg-green-500"} shrink-0`}),(0,n.jsx)("span",{className:"text-text-subtle shrink-0",children:e.timestamp?.slice(11,19)||"--:--:--"}),(0,n.jsx)("span",{className:"text-cyan-300/80 truncate flex-1",children:e.model||"unknown"}),(0,n.jsxs)("span",{className:"text-text-muted shrink-0 hidden sm:inline",children:[d(e.promptTokens),"→",d(e.completionTokens)]}),(0,n.jsx)("span",{className:`shrink-0 ${t?"text-red-400":"text-green-400"}`,children:t?"ERR":"OK"})]},`${e.timestamp}-${s}`)})}):(0,n.jsx)("div",{className:"h-40 flex items-center justify-center text-[11px] font-mono text-text-subtle",children:"// AWAITING TRAFFIC..."})}function u({name:e,value:s,max:t,color:a="#00ff88"}){let l=t>0?s/t*100:0;return(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-[11px] font-mono",children:[(0,n.jsx)("span",{className:"text-text-muted truncate",children:e}),(0,n.jsx)("span",{className:"text-cyan-300/80 shrink-0 ml-2",children:d(s)})]}),(0,n.jsx)("div",{className:"h-1.5 bg-black/50 rounded-sm overflow-hidden border border-cyan-300/8",children:(0,n.jsx)("div",{className:"h-full rounded-sm transition-all duration-700 ease-out",style:{width:`${l}%`,background:a,boxShadow:`0 0 8px ${a}`}})})]})}function h(){var e;let[s,t]=(0,a.useState)(null),[l,h]=(0,a.useState)(null),[j,N]=(0,a.useState)([]),[b,g]=(0,a.useState)(!1),[y,v]=(0,a.useState)(!0),[E,k]=(0,a.useState)(!1),[T,S]=(0,a.useState)(""),{displayed:I,done:O}=function(e,s=40,t=180){let[n,l]=(0,a.useState)([]),[r,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let n=0,a=0,r=!1,i=()=>{if(r)return;if(n>=e.length)return void c(!0);let o=e[n];a<=o.length?(l(e=>{let s=[...e];return s[n]=o.slice(0,a),s}),a++,setTimeout(i,s)):(n++,a=0,setTimeout(i,t))};return i(),()=>{r=!0}},[e,s,t]),{displayed:n,done:r}}(o,22,100);(0,a.useEffect)(()=>{if(O){let e=setTimeout(()=>k(!0),500);return()=>clearTimeout(e)}},[O]),(0,a.useEffect)(()=>{let e=()=>{let e=new Date;S(e.toTimeString().slice(0,8)+" UTC"+(e.getTimezoneOffset()>0?"-":"+")+Math.abs(e.getTimezoneOffset()/60))};e();let s=setInterval(e,1e3);return()=>clearInterval(s)},[]);let R=(0,a.useCallback)(async()=>{try{let[e,s,n,a]=await Promise.all([fetch("/api/usage/stats?period=24h").then(e=>e.json()).catch(()=>null),fetch("/api/usage/chart?period=24h").then(e=>e.json()).catch(()=>null),fetch("/api/providers").then(e=>e.json()).catch(()=>null),fetch("/api/health").then(e=>e.json()).catch(()=>null)]);if(e&&!e.error&&t(e),s&&!s.error&&h(s),a?.ok&&g(!0),n){let e=n.connections||n.providers||[];N(Array.isArray(e)?e:[])}}catch{}finally{v(!1)}},[]);(0,a.useEffect)(()=>{if(!E)return;let e=!1;(async()=>{if(await R(),e)return})();let s=setInterval(R,15e3);return()=>{e=!0,clearInterval(s)}},[E,R]);let w=l?.series||l?.data||l||[],A=Array.isArray(w)?w.slice(-20).map(e=>e?.tokens||e?.y||e?.value||0):[],C=Array.isArray(w)?w.slice(-20).map(e=>e?.requests||e?.count||0):[],M=s?.byProvider?Object.entries(s.byProvider).sort((e,s)=>(s[1]?.requests||s[1]||0)-(e[1]?.requests||e[1]||0)).slice(0,5):[],$=M.reduce((e,[,s])=>Math.max(e,s?.requests||s||0),0),L=s?.activeRequests||[],P=s?.recentRequests||[];return E?(0,n.jsxs)("div",{className:"space-y-4 animate-content-in",children:[(0,n.jsx)("div",{className:"overflow-hidden border border-cyan-300/15 bg-black/50 rounded-lg py-1.5",children:(0,n.jsxs)("div",{className:"ticker-content text-[11px] font-mono text-cyan-300/70",children:[(0,n.jsx)("span",{className:"mx-4",children:"● SYSTEM_ONLINE"}),(0,n.jsx)("span",{className:"mx-4",children:"▸ RTK_COMPRESSION: ACTIVE"}),(0,n.jsx)("span",{className:"mx-4",children:"▸ SSE_BRIDGE: CONNECTED"}),(0,n.jsx)("span",{className:"mx-4",children:"▸ MITM_PROXY: LISTENING :20128"}),(0,n.jsxs)("span",{className:"mx-4",children:["▸ PROVIDERS: ",j.length," CONFIGURED"]}),(0,n.jsxs)("span",{className:"mx-4",children:["▸ ACTIVE_REQUESTS: ",L.length]}),(0,n.jsxs)("span",{className:"mx-4",children:["▸ ",T]}),(0,n.jsx)("span",{className:"mx-4",children:"● SYSTEM_ONLINE"}),(0,n.jsx)("span",{className:"mx-4",children:"▸ RTK_COMPRESSION: ACTIVE"}),(0,n.jsx)("span",{className:"mx-4",children:"▸ SSE_BRIDGE: CONNECTED"}),(0,n.jsx)("span",{className:"mx-4",children:"▸ MITM_PROXY: LISTENING :20128"}),(0,n.jsxs)("span",{className:"mx-4",children:["▸ PROVIDERS: ",j.length," CONFIGURED"]}),(0,n.jsxs)("span",{className:"mx-4",children:["▸ ACTIVE_REQUESTS: ",L.length]}),(0,n.jsxs)("span",{className:"mx-4",children:["▸ ",T]})]})}),(0,n.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[(0,n.jsx)(x,{label:"Requests / 24h",value:d(s?.totalRequests),sub:"total routed",icon:"bolt",accent:"cyan",delay:0,loading:y}),(0,n.jsx)(x,{label:"Prompt Tokens",value:d(s?.totalPromptTokens),sub:"input processed",icon:"input",accent:"green",delay:60,loading:y}),(0,n.jsx)(x,{label:"Output Tokens",value:d(s?.totalCompletionTokens),sub:"generated",icon:"output",accent:"green",delay:120,loading:y}),(0,n.jsx)(x,{label:"Est. Cost",value:null==(e=s?.totalCost)?"$0.00":e<.01?"$"+e.toFixed(4):"$"+e.toFixed(2),sub:"24h spend",icon:"payments",accent:"magenta",delay:180,loading:y})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,n.jsxs)(c.Zp,{className:"lg:col-span-2",padding:"md",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"size-1.5 rounded-full bg-cyan-400 pulse-dot text-cyan-400"}),(0,n.jsx)("h3",{className:"text-xs font-mono font-bold uppercase tracking-[0.2em] text-cyan-300",children:"Traffic Monitor"})]}),(0,n.jsx)(c.Ex,{variant:"primary",size:"sm",children:"LIVE"})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,n.jsx)("span",{className:"text-[10px] font-mono text-text-subtle uppercase",children:"Token Throughput"}),(0,n.jsxs)("span",{className:"text-[10px] font-mono text-green-400",children:[d(A[A.length-1]||0)," now"]})]}),(0,n.jsx)(m,{data:A,color:"#00ff88"})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,n.jsx)("span",{className:"text-[10px] font-mono text-text-subtle uppercase",children:"Request Rate"}),(0,n.jsxs)("span",{className:"text-[10px] font-mono text-cyan-400",children:[d(C[C.length-1]||0)," now"]})]}),(0,n.jsx)(m,{data:C,color:"#00f0ff"})]})]})]}),(0,n.jsxs)(c.Zp,{padding:"md",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsx)("h3",{className:"text-xs font-mono font-bold uppercase tracking-[0.2em] text-cyan-300",children:"Top Providers"}),(0,n.jsx)(r(),{href:"/dashboard/providers",className:"text-[10px] font-mono text-cyan-300/60 hover:text-cyan-300 transition-colors",children:"VIEW ALL →"})]}),(0,n.jsx)("div",{className:"space-y-3",children:0!==M.length||y?M.map(([e,s],t)=>{let a=["#00ff88","#00f0ff","#ff2e88","#ffaa00","#a855f7"],l="object"==typeof s?s.requests:s;return(0,n.jsx)(u,{name:e,value:l,max:$,color:a[t%a.length]},e)}):(0,n.jsx)("div",{className:"text-[11px] font-mono text-text-subtle py-8 text-center",children:"// NO TRAFFIC YET"})})]})]}),(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,n.jsxs)(c.Zp,{className:"lg:col-span-2",padding:"md",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"size-1.5 rounded-full bg-green-500 pulse-dot text-green-500"}),(0,n.jsx)("h3",{className:"text-xs font-mono font-bold uppercase tracking-[0.2em] text-green-400",children:"Request Stream"})]}),(0,n.jsx)(r(),{href:"/dashboard/usage",className:"text-[10px] font-mono text-cyan-300/60 hover:text-cyan-300 transition-colors",children:"FULL LOG →"})]}),(0,n.jsx)(p,{items:P})]}),(0,n.jsxs)(c.Zp,{padding:"md",children:[(0,n.jsx)("h3",{className:"text-xs font-mono font-bold uppercase tracking-[0.2em] text-cyan-300 mb-4",children:"System Status"}),(0,n.jsxs)("div",{className:"space-y-2.5",children:[(0,n.jsx)(f,{label:"API Health",ok:b}),(0,n.jsx)(f,{label:"SSE Bridge",ok:!0}),(0,n.jsx)(f,{label:"RTK Engine",ok:!0}),(0,n.jsx)(f,{label:"MITM Proxy",ok:!0}),(0,n.jsx)(f,{label:"Providers",ok:j.length>0,value:`${j.length}`}),L.length>0&&(0,n.jsx)(f,{label:"Active Reqs",ok:!0,value:String(L.length),warn:!0})]}),(0,n.jsxs)("div",{className:"mt-4 pt-4 border-t border-cyan-300/10 space-y-2",children:[(0,n.jsx)(r(),{href:"/dashboard/endpoint",className:"block w-full text-center py-2 rounded border border-cyan-300/40 bg-cyan-400/[0.06] text-cyan-300 text-[11px] font-mono font-bold uppercase tracking-wider hover:bg-cyan-400/15 hover:border-cyan-300/60 transition-all",children:"⚡ CONFIGURE ENDPOINT"}),(0,n.jsx)(r(),{href:"/dashboard/providers",className:"block w-full text-center py-2 rounded border border-cyan-300/20 text-text-muted text-[11px] font-mono uppercase tracking-wider hover:text-cyan-300 hover:border-cyan-300/40 transition-all",children:"MANAGE PROVIDERS"})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between text-[10px] font-mono text-text-subtle py-2 border-t border-cyan-300/8",children:[(0,n.jsxs)("span",{children:["NEXUS-9 TERMINAL // ",i.vQ.name," v",i.vQ.version]}),(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"size-1.5 rounded-full bg-green-500 pulse-dot text-green-500"}),"ALL SYSTEMS NOMINAL"]})]})]}):(0,n.jsx)("div",{className:"min-h-[60vh] flex items-center justify-center p-6",children:(0,n.jsxs)("div",{className:"w-full max-w-xl font-mono text-sm",children:[(0,n.jsx)("div",{className:"mb-4 text-cyan-300/60 text-xs uppercase tracking-[0.2em]",children:"// SYSTEM BOOT"}),(0,n.jsx)("div",{className:"space-y-1 min-h-[220px]",children:I.map((e,s)=>(0,n.jsxs)("div",{className:`boot-line ${e.includes("WELCOME")?"text-green-400 font-bold":"text-cyan-300/80"}`,children:[e,s===I.length-1&&!O&&(0,n.jsx)("span",{className:"inline-block w-2 h-4 bg-cyan-400 ml-1 animate-pulse"})]},s))})]})})}function f({label:e,ok:s,value:t,warn:a}){return(0,n.jsxs)("div",{className:"flex items-center justify-between text-[11px] font-mono",children:[(0,n.jsx)("span",{className:"text-text-muted uppercase tracking-wider",children:e}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[t&&(0,n.jsx)("span",{className:"text-cyan-300/80",children:t}),(0,n.jsx)("span",{className:`size-1.5 rounded-full ${a?"bg-amber-500":s?"bg-green-500":"bg-red-500"} pulse-dot`,style:{color:a?"#ffaa00":s?"#00ff88":"#ff3355"}}),(0,n.jsx)("span",{className:a?"text-amber-400":s?"text-green-400":"text-red-400",children:a?"WARN":s?"OK":"DOWN"})]})]})}},33096:(e,s,t)=>{Promise.resolve().then(t.bind(t,8624))}},e=>{e.O(0,[2574,3862,2649,1321,705,5497,8441,3794,7358],()=>e(e.s=33096)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{51743:()=>{},54428:(e,n,r)=>{Promise.resolve().then(r.bind(r,30565)),Promise.resolve().then(r.bind(r,90285)),Promise.resolve().then(r.bind(r,26300)),Promise.resolve().then(r.t.bind(r,5887,23)),Promise.resolve().then(r.t.bind(r,42593,23)),Promise.resolve().then(r.t.bind(r,8010,23)),Promise.resolve().then(r.t.bind(r,51743,23)),Promise.resolve().then(r.bind(r,94635)),Promise.resolve().then(r.bind(r,21110))},94635:(e,n,r)=>{"use strict";r.d(n,{RuntimeI18nProvider:()=>m});var s=r(95155),i=r(12115),t=r(73321),o=r(73006);function m({children:e}){let n=(0,t.usePathname)();return(0,i.useEffect)(()=>{(0,o.FE)()},[]),(0,i.useEffect)(()=>{n&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{(0,o.wn)()})})},[n]),(0,s.jsx)(s.Fragment,{children:e})}}},e=>{e.O(0,[8302,3334,3538,1321,8441,3794,7358],()=>e(e.s=54428)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,r,o,n,a,i,u,l={},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}},o=!0;try{l[e].call(r.exports,r,r.exports,s),o=!1}finally{o&&delete c[e]}return r.exports}s.m=l,e=[],s.O=(t,r,o,n)=>{if(r){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[r,o,n];return}for(var i=1/0,a=0;a<e.length;a++){for(var[r,o,n]=e[a],u=!0,l=0;l<r.length;l++)(!1&n||i>=n)&&Object.keys(s.O).every(e=>s.O[e](r[l]))?r.splice(l--,1):(u=!1,n<i&&(i=n));if(u){e.splice(a--,1);var c=o();void 0!==c&&(t=c)}}return t},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);s.r(n);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(n,a),n},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>"static/chunks/"+e+".1ffc6ce531e066ce.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},s.l=(e,t,r,n)=>{if(o[e])return void o[e].push(t);if(void 0!==r)for(var a,i,u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var c=u[l];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="_N_E:"+r){a=c;break}}a||(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack","_N_E:"+r),a.src=s.tu(e)),o[e]=[t];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);var n=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),i&&document.head.appendChild(a)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=()=>(void 0===n&&(n={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(n=trustedTypes.createPolicy("nextjs#bundler",n))),n),s.tu=e=>s.tt().createScriptURL(e),s.p="/_next/",a={8068:0,
|
|
1
|
+
(()=>{"use strict";var e,t,r,o,n,a,i,u,l={},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}},o=!0;try{l[e].call(r.exports,r,r.exports,s),o=!1}finally{o&&delete c[e]}return r.exports}s.m=l,e=[],s.O=(t,r,o,n)=>{if(r){n=n||0;for(var a=e.length;a>0&&e[a-1][2]>n;a--)e[a]=e[a-1];e[a]=[r,o,n];return}for(var i=1/0,a=0;a<e.length;a++){for(var[r,o,n]=e[a],u=!0,l=0;l<r.length;l++)(!1&n||i>=n)&&Object.keys(s.O).every(e=>s.O[e](r[l]))?r.splice(l--,1):(u=!1,n<i&&(i=n));if(u){e.splice(a--,1);var c=o();void 0!==c&&(t=c)}}return t},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);s.r(n);var a={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,s.d(n,a),n},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>"static/chunks/"+e+".1ffc6ce531e066ce.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},s.l=(e,t,r,n)=>{if(o[e])return void o[e].push(t);if(void 0!==r)for(var a,i,u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var c=u[l];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")=="_N_E:"+r){a=c;break}}a||(i=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack","_N_E:"+r),a.src=s.tu(e)),o[e]=[t];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);var n=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(r)),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),i&&document.head.appendChild(a)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=()=>(void 0===n&&(n={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(n=trustedTypes.createPolicy("nextjs#bundler",n))),n),s.tu=e=>s.tt().createScriptURL(e),s.p="/_next/",a={8068:0,8302:0,3334:0,2574:0},s.f.j=(e,t)=>{var r=s.o(a,e)?a[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(2574|3334|8068|8302)$/.test(e))a[e]=0;else{var o=new Promise((t,o)=>r=a[e]=[t,o]);t.push(r[2]=o);var n=s.p+s.u(e),i=Error();s.l(n,t=>{if(s.o(a,e)&&(0!==(r=a[e])&&(a[e]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+o+": "+n+")",i.name="ChunkLoadError",i.type=o,i.request=n,r[1](i)}},"chunk-"+e,e)}},s.O.j=e=>0===a[e],i=(e,t)=>{var r,o,[n,i,u]=t,l=0;if(n.some(e=>0!==a[e])){for(r in i)s.o(i,r)&&(s.m[r]=i[r]);if(u)var c=u(s)}for(e&&e(t);l<n.length;l++)o=n[l],s.o(a,o)&&a[o]&&a[o][0](),a[o]=0;return s.O(c)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(i.bind(null,0)),u.push=i.bind(null,u.push.bind(u))})();
|