@jheavenknows/bluerouter 5.4.4 → 5.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +5 -7
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +0 -28
- package/app/.next-cli-build/routes-manifest.json +0 -12
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page_client-reference-manifest.js +1 -1
- 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/model-profiles/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/model-profiles/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/model-profiles/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/cluster/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/console/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/console/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/console/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/logs/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personal/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personal/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personal/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/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/prompt-logs/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +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/providers/stt/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/stt/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/stt/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/tts/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/tts/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/tts/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/resource-monitor/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/me/route.js +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/me/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/audit-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/users/route.js +1 -1
- package/app/.next-cli-build/server/app/api/audit-proxy/users/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +2 -2
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/view-mode/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/view-mode/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/branding/[asset]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/branding/[asset]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/branding/route.js +1 -1
- package/app/.next-cli-build/server/app/api/branding/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/branding/upload/route.js +1 -1
- package/app/.next-cli-build/server/app/api/branding/upload/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/cloud-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/cloud-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-model-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +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 +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +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 +2 -2
- 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 +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- 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/cli-tools/qwen-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/config/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/config/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/peers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cluster/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cluster/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +2 -2
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/ai-power-index/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/ai-power-index/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js +2 -2
- package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js +2 -2
- package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js +1 -1
- package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +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 +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]/caveman-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/caveman-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +2 -2
- 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 +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 +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 +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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/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 +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/device-code/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/device-code/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/poll/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/poll/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +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/personal-cloud-providers/[id]/api-key-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/move/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/move/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/shares/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/shares/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/visibility/route.js +1 -1
- package/app/.next-cli-build/server/app/api/personal-cloud-providers/visibility/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/catalog/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pricing/catalog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/openai-compatible/manage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/openai-compatible/manage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +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 +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- 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/resource-monitor/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js +2 -2
- package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/route.js +1 -1
- package/app/.next-cli-build/server/app/api/resource-monitor/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
- 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 +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 +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 +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 +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- 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/tunnel/tailscale-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- 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 +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/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/restart/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 +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/!KGRhc2hib2FyZCk/dashboard/ai-power-index/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +10 -10
- package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/model-profiles/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cluster.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cluster.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cluster.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/logs.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/logs.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/logs.segments/!KGRhc2hib2FyZCk/dashboard/logs/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/logs.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/logs.segments/_tree.segment.rsc +2 -2
- 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 +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/personal.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/personal.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/personal.segments/!KGRhc2hib2FyZCk/dashboard/personal/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/personal.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/personal.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/stt.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/stt.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/stt.segments/!KGRhc2hib2FyZCk/dashboard/providers/stt/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/stt.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/stt.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/tts.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/tts.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/tts.segments/!KGRhc2hib2FyZCk/dashboard/providers/tts/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/tts.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/tts.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- 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 +5 -7
- package/app/.next-cli-build/server/chunks/{8360.js → 1470.js} +2 -2
- package/app/.next-cli-build/server/chunks/2242.js +2 -2
- package/app/.next-cli-build/server/chunks/3399.js +1 -1
- package/app/.next-cli-build/server/chunks/3958.js +2 -2
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6992.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +9 -9
- package/app/.next-cli-build/server/chunks/8352.js +2 -2
- package/app/.next-cli-build/server/chunks/8491.js +2 -2
- package/app/.next-cli-build/server/chunks/8640.js +2 -2
- package/app/.next-cli-build/server/chunks/9434.js +1 -1
- package/app/.next-cli-build/server/functions-config-manifest.json +0 -3
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/prefetch-hints.json +0 -24
- package/app/.next-cli-build/static/0Dv6zNbjXmmBjIsBPEnA4/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/{5263-2775658f96376a48.js → 5263-b89232068b3f9372.js} +1 -1
- package/app/.next-cli-build/static/chunks/{5497-c181d7302594ff73.js → 5497-c352fe8c48441441.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/page-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/ca/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/me/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/users/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/view-mode/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/cloud-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/ai-power-index/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/device-code/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/poll/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/move/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/shares/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/visibility/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/catalog/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/openai-compatible/manage/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-789cc66c3eec1431.js +1 -0
- package/app/.next-cli-build/static/css/94ed68d5c090ac3d.css +1 -0
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-shm +0 -0
- package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-wal +0 -0
- package/app/package.json +1 -1
- package/package.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page.js +0 -18
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page.js.nft.json +0 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/app/api/dashboard/local-ai-report/route.js +0 -27
- package/app/.next-cli-build/server/app/api/dashboard/local-ai-report/route.js.nft.json +0 -1
- package/app/.next-cli-build/server/app/api/dashboard/local-ai-report/route_client-reference-manifest.js +0 -1
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.html +0 -1
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.meta +0 -36
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.rsc +0 -25
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/!KGRhc2hib2FyZCk/dashboard/local-ai-report/__PAGE__.segment.rsc +0 -32
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/_full.segment.rsc +0 -25
- package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/_tree.segment.rsc +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/local-ai-report/page-560eded56e8ad020.js +0 -18
- package/app/.next-cli-build/static/chunks/app/_global-error/page-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/ca/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/me/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/audit-proxy/users/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/view-mode/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/cloud-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-model-profiles/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/config/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/heartbeat/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/command/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/peers/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/snapshot/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/sync/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cluster/test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/ai-power-index/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/ai-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/analyze/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/local-ai-report/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/caveman-test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/device-code/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/poll/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/move/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/shares/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/visibility/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/catalog/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-health/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/openai-compatible/manage/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/[id]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/ai-models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/analyze/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/history/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/resource-monitor/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/restart/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-a38b49063dd7112f.js +0 -1
- package/app/.next-cli-build/static/css/e4c646fd9567d3bf.css +0 -1
- package/app/.next-cli-build/static/ptF4VeYwMH7g8QfUbGpSq/_buildManifest.js +0 -1
- /package/app/.next-cli-build/static/{ptF4VeYwMH7g8QfUbGpSq → 0Dv6zNbjXmmBjIsBPEnA4}/_ssgManifest.js +0 -0
- /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.3.86-to-5.3.87-5.3.87-20260823-220012 → upgrade-5.4.2-to-5.4.3-5.4.3-20260823-231221}/data.sqlite +0 -0
package/app/.next-cli-build/static/chunks/{5497-c181d7302594ff73.js → 5497-c352fe8c48441441.js}
RENAMED
|
@@ -12,4 +12,4 @@ Output: ${w(o)}`;return"success"===d.kind&&a>0?(0,r.jsxs)("span",{className:"inl
|
|
|
12
12
|
`,title:e.internalName&&e.internalName!==t?`Internal: ${e.internalName}`:t,children:[a&&(0,r.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),(0,r.jsx)("span",{children:s})]},`${e.pickerSource||"combo"}-${e.id||t}`)})})]}),Object.entries(D).map(([e,t])=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 z-10 bg-white py-1 dark:bg-zinc-950",children:[(0,r.jsx)(i.A,{src:(0,d.mq)(e)||(0,d.gb)(e)?null:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,r.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,r.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=n===e.value,s=e.isPlaceholder;return(0,r.jsx)("button",{onClick:()=>F(e),title:s?"Select to pre-fill, then edit model ID in the input":void 0,className:`
|
|
13
13
|
px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
|
|
14
14
|
${s?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":t?"bg-primary text-white border-primary":f.includes(e.value)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
|
|
15
|
-
`,children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[f.includes(e.value)&&!s&&(0,r.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,r.jsxs)(r.Fragment,{children:[e.name,(0,r.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):e.name]})},e.value)})})]},e)),0===Object.keys(D).length&&0===z.length&&(0,r.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,r.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})]})}):null}u.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onSelect:n().func.isRequired,onDeselect:n().func,selectedModel:n().string,activeProviders:n().arrayOf(n().shape({provider:n().string.isRequired})),title:n().string,modelAliases:n().object,kindFilter:n().string,addedModelValues:n().arrayOf(n().string),closeOnSelect:n().bool,personalOnly:n().bool,extraModels:n().arrayOf(n().string)}},73006:(e,t,s)=>{"use strict";s.d(t,{FE:()=>u,Tl:()=>d,wn:()=>x});var r=s(93308);let a={},l=r.Xn,n=[];function i(){if("u"<typeof document)return r.Xn;let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${r.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):r.Xn;return(0,r.QC)(t)}async function o(e){if("en"===e){a={};return}try{let t=await fetch(`/i18n/literals/${e}.json`);a=await t.json()}catch(e){console.error("Failed to load translations:",e),a={}}}function d(e){if(!e||"string"!=typeof e)return e;let t=e.trim();return t&&"en"!==l&&a[t]||e}function c(e){if(!e.nodeValue||!e.nodeValue.trim())return;let t=e.parentElement;if(!t)return;let s=t;for(;s;){if(s.hasAttribute&&s.hasAttribute("data-i18n-skip"))return;s=s.parentElement}if(["script","style","code","pre","colgroup","table","thead","tbody","tfoot","tr","select","datalist","optgroup"].includes(t.tagName?.toLowerCase()))return;e._originalText||(e._originalText=e.nodeValue);let r=d(e._originalText);r!==e.nodeValue&&(e.nodeValue=r)}function m(e){let t;if(!e)return;let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r=[];for(;t=s.nextNode();)r.push(t);r.forEach(c)}async function u(){l=i(),await o(l),m(document.body),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE?m(e):e.nodeType===Node.TEXT_NODE&&c(e)})})}).observe(document.body,{childList:!0,subtree:!0})}async function x(){l=i(),await o(l),n.forEach(e=>e()),m(document.body)}},73579:(e,t,s)=>{"use strict";s.d(t,{default:()=>v});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(81127),o=s(11910),d=s(92542),c=s(56061),m=s(52679),u=s(90620),x=s(12494);let h=[0,1,2,3,4,5,6],p=[{value:1,label:"T2"},{value:2,label:"T3"},{value:3,label:"T4"},{value:4,label:"T5"},{value:5,label:"T6"},{value:6,label:"T7"},{value:0,label:"CN"}];function b(e,t){let s=String(e||"").trim();return/^([01]\d|2[0-3]):([0-5]\d)$/.test(s)?s:t}function f(e={}){let t=e&&"object"==typeof e?e:{},s=Array.isArray(t.weekdays)?t.weekdays.map(Number).filter(e=>e>=0&&e<=6):h;return{enabled:!1!==t.enabled,weekdays:[...new Set(s)].sort((e,t)=>e-t),fromTime:b(t.fromTime||t.from,"00:00"),toTime:b(t.toTime||t.to,"23:59")}}function g(e={}){var t;let s=e&&"object"==typeof e?e:{};return{enabled:!0===s.enabled,intervalSec:Math.max(10,Number.parseInt(s.intervalSec||60,10)||60),failureThreshold:Math.max(1,Number.parseInt(s.failureThreshold||3,10)||3),timeoutMs:Math.max(1e3,Number.parseInt(s.timeoutMs||15e3,10)||15e3),prompt:"string"==typeof s.prompt&&s.prompt.trim()?s.prompt.trim():"Say hi",disableThinking:!1!==s.disableThinking,model:"string"==typeof(t=s.model||s.healthModel||s.testModel)?t.trim():""}}function y(){return"text-xs font-medium text-text-muted"}function j(){return"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary disabled:cursor-not-allowed disabled:opacity-50"}function v({isOpen:e,connection:t,proxyPools:s,onSave:l,onClose:n}){let[b,N]=(0,a.useState)({name:"",priority:1,apiKey:""}),[k,w]=(0,a.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[C,S]=(0,a.useState)({accountId:""}),[T,_]=(0,a.useState)(!1),[A,I]=(0,a.useState)(null),[M,$]=(0,a.useState)(!1),[P,R]=(0,a.useState)(null),[O,E]=(0,a.useState)(!1),[L,q]=(0,a.useState)(f()),[U,z]=(0,a.useState)(g()),[D,F]=(0,a.useState)(!1),[K,W]=(0,a.useState)(!1),[B,V]=(0,a.useState)([]),[G,H]=(0,a.useState)(!1),[J,Q]=(0,a.useState)("");(0,a.useEffect)(()=>{t&&(N({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData?w({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}):w({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),"cloudflare-ai"===t.provider&&t.providerSpecificData?S({accountId:t.providerSpecificData.accountId||""}):S({accountId:""}),q(f(t.schedule||{})),z(g(t.healthCheck||{})),F(!0===t.providerScheduleOverride),W(!0===t.providerHealthOverride),I(null),R(null))},[t]);let X=t?.authType==="oauth",Y=t?.provider==="azure",Z=t?.provider==="cloudflare-ai",ee=t?function(e=""){if((0,m.gb)(e))return"anthropic";if((0,m.mq)(e)||"cloudflare-ai"===e)return"openai";if("gemini"===e)return"gemini";if("github"===e)return"openai";let t=u.X3?.[e]||"";return t.includes("/messages")?"anthropic":t.includes("/chat/completions")||t.includes("/responses")?"openai":null}(t.provider):null,et=!!ee,es=(0,x.wB)(B,U.model);(0,a.useEffect)(()=>{if(!e||!t?.provider)return;let s=!1;return async function(){H(!0),Q("");try{let e=await (0,x.ns)({providerId:t.provider,connections:[t],currentModel:U.model||t.defaultModel||""});s||(V(e.models),Q(e.warning||""))}catch(e){s||(V([]),Q(e.message||"Kh\xf4ng tải được danh s\xe1ch Available Models cục bộ"))}finally{s||H(!1)}}(),()=>{s=!0}},[e,t,U.model]);let er=async()=>{if(t?.provider){_(!0),I(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),s=await e.json();I(s.valid?"success":"failed")}catch{I("failed")}finally{_(!1)}}},ea=async()=>{if(t?.provider&&b.apiKey){$(!0),R(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:b.apiKey,...Y?{providerSpecificData:k}:{},...Z?{providerSpecificData:C}:{}})}),s=await e.json();R(s.valid?"success":"failed")}catch{R("failed")}finally{$(!1)}}},el=async()=>{if(t){E(!0);try{let e={name:b.name,priority:b.priority,schedule:f(L),healthCheck:g(U)};if(!X&&b.apiKey){e.apiKey=b.apiKey;let s="success"===P;if(!s)try{$(!0),R(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:b.apiKey,...Y?{providerSpecificData:k}:{},...Z?{providerSpecificData:C}:{}})});s=!!(await e.json()).valid,R(s?"success":"failed")}catch{R("failed")}finally{$(!1)}s&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}Y&&(e.providerSpecificData={azureEndpoint:k.azureEndpoint,apiVersion:k.apiVersion,deployment:k.deployment,organization:k.organization}),Z&&(e.providerSpecificData={accountId:C.accountId}),await l(e)}finally{E(!1)}}};return t?(0,r.jsx)(i.default,{isOpen:e,onClose:n,title:"Chỉnh sửa connection",size:"full",children:(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsx)(o.default,{label:"T\xean",value:b.name,onChange:e=>N({...b,name:e.target.value}),placeholder:X?"T\xean t\xe0i khoản":"Key production"}),(0,r.jsx)(o.default,{label:"Độ ưu ti\xean",type:"number",value:b.priority,onChange:e=>N({...b,priority:Number.parseInt(e.target.value,10)||1})})]}),X&&t.email&&(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-sidebar/40 px-3 py-2 text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"font-medium text-text-main",children:"Email:"})," ",t.email]}),!X&&(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.default,{label:"API Key",type:"password",value:b.apiKey,onChange:e=>N({...b,apiKey:e.target.value}),placeholder:"Nhập API key mới",hint:"Để trống nếu muốn giữ API key hiện tại.",className:"flex-1"}),(0,r.jsx)("div",{className:"pt-6",children:(0,r.jsx)(d.default,{onClick:ea,disabled:!b.apiKey||M||O,variant:"secondary",children:M?"Checking...":"Check"})}),P&&(0,r.jsx)("div",{className:"pt-7",children:(0,r.jsx)(c.default,{variant:"success"===P?"success":"error",children:"success"===P?"Valid":"Invalid"})})]}),Y&&(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-sidebar/40 p-4",children:[(0,r.jsx)("h3",{className:"mb-3 text-sm font-semibold text-text-main",children:"Cấu h\xecnh Azure OpenAI"}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsx)(o.default,{label:"Azure Endpoint",value:k.azureEndpoint,onChange:e=>w({...k,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,r.jsx)(o.default,{label:"T\xean deployment",value:k.deployment,onChange:e=>w({...k,deployment:e.target.value}),placeholder:"gpt-4"}),(0,r.jsx)(o.default,{label:"Phi\xean bản API",value:k.apiVersion,onChange:e=>w({...k,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,r.jsx)(o.default,{label:"Organization",value:k.organization,onChange:e=>w({...k,organization:e.target.value}),placeholder:"Organization ID"})]})]}),Z&&(0,r.jsx)(o.default,{label:"Cloudflare Account ID",value:C.accountId,onChange:e=>S({...C,accountId:e.target.value})}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-sidebar/30 p-4",children:[(0,r.jsx)("h3",{className:"mb-3 text-sm font-semibold text-text-main",children:"Lịch hoạt động"}),D&&(0,r.jsx)("p",{className:"mb-3 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-yellow-500",children:"Provider đang bật ghi đ\xe8 lịch. Lịch ri\xeang của t\xe0i khoản n\xe0y sẽ bị kh\xf3a v\xe0 bị bỏ qua khi ghi đ\xe8 c\xf2n bật."}),(0,r.jsxs)("label",{className:"mb-3 flex items-center gap-2 text-sm text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:L.enabled,disabled:D,onChange:e=>q(t=>({...t,enabled:e.target.checked}))}),"Bật lịch cho t\xe0i khoản"]}),(0,r.jsx)("div",{className:"mb-3 flex flex-wrap gap-2",children:p.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-1.5 rounded-lg border border-border px-2.5 py-1.5 text-xs text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:L.weekdays.includes(e.value),disabled:D,onChange:()=>q(t=>{let s=new Set(Array.isArray(t.weekdays)?t.weekdays:h);return s.has(e.value)?s.delete(e.value):s.add(e.value),{...t,weekdays:[...s].sort((e,t)=>e-t)}})}),e.label]},e.value))}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("label",{className:y(),children:["Từ giờ",(0,r.jsx)("input",{type:"time",value:L.fromTime,disabled:D,onChange:e=>q(t=>({...t,fromTime:e.target.value})),className:j()})]}),(0,r.jsxs)("label",{className:y(),children:["Đến giờ",(0,r.jsx)("input",{type:"time",value:L.toTime,disabled:D,onChange:e=>q(t=>({...t,toTime:e.target.value})),className:j()})]})]})]}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-sidebar/30 p-4",children:[(0,r.jsx)("h3",{className:"mb-3 text-sm font-semibold text-text-main",children:"Kiểm tra sức khỏe bằng ping"}),K&&(0,r.jsx)("p",{className:"mb-3 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-yellow-500",children:"Provider đang bật ghi đ\xe8 healthcheck. Ch\xednh s\xe1ch healthcheck ri\xeang của t\xe0i khoản n\xe0y sẽ bị kh\xf3a v\xe0 bị bỏ qua khi ghi đ\xe8 c\xf2n bật."}),(0,r.jsxs)("label",{className:"mb-3 flex items-center gap-2 text-sm text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:U.enabled,disabled:K,onChange:e=>z(t=>({...t,enabled:e.target.checked}))}),"Bật healthcheck định kỳ"]}),U.enabled&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:y(),children:["Model d\xf9ng để healthcheck",(0,r.jsxs)("select",{value:U.model||"",onChange:e=>z(t=>({...t,model:e.target.value})),className:j(),disabled:K||G,children:[(0,r.jsx)("option",{value:"",children:"Chỉ kiểm tra connection/base URL — kh\xf4ng ping chat"}),es.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name||e.id},e.id))]})]}),(0,r.jsxs)("label",{className:`${y()} mt-3 block`,children:["Nhập model healthcheck thủ c\xf4ng",(0,r.jsx)("input",{value:U.model||"",onChange:e=>z(t=>({...t,model:e.target.value})),placeholder:"anthropic"===ee?"t\xean model Claude từ endpoint n\xe0y":"gemini"===ee?"model Gemini, v\xed dụ gemini-2.5-flash":"t\xean model từ Available Models",className:j(),disabled:K||G})]}),G&&(0,r.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"Đang tải Available Models cục bộ..."}),J&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-yellow-500",children:["Ghi ch\xfa danh s\xe1ch model: ",J]}),!G&&!J&&(0,r.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"Danh s\xe1ch model được lấy từ Available Models / DB cục bộ, kh\xf4ng gọi API /models của provider."}),"anthropic"===ee&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-text-muted",children:["Healthcheck tương th\xedch Anthropic gửi ",(0,r.jsx)("code",{children:"Say hi"})," tới ",(0,r.jsx)("code",{children:"/v1/messages"})," chỉ khi đ\xe3 chọn model."]}),"gemini"===ee&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-text-muted",children:["Healthcheck Gemini gửi ",(0,r.jsx)("code",{children:"Say hi"})," bằng API native ",(0,r.jsx)("code",{children:"generateContent"})," chỉ khi đ\xe3 chọn model."]}),"cloudflare-ai"===t.provider&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-text-muted",children:["Healthcheck Cloudflare gửi ",(0,r.jsx)("code",{children:"Say hi"})," tới Workers AI OpenAI-style chat endpoint chỉ khi đ\xe3 chọn model."]}),!et&&(0,r.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"Provider n\xe0y vẫn c\xf3 thể hiển thị Available Models cục bộ. Auto healthcheck sẽ tiếp tục d\xf9ng kiểm tra connection/token/account gốc cho đến khi c\xf3 direct chat endpoint."})]}),U.enabled&&(!et||!U.model)&&(0,r.jsx)("p",{className:"mt-4 rounded-lg border border-border bg-background/60 px-3 py-2 text-xs text-text-muted",children:"Chưa bật model/endpoint direct chat healthcheck. Auto healthcheck sẽ kiểm tra connection/base URL/key/token/account v\xe0 kh\xf4ng gửi ping chat Say hi."}),(0,r.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:[(0,r.jsxs)("label",{className:y(),children:["Chu kỳ (gi\xe2y)",(0,r.jsx)("input",{type:"number",min:"10",value:U.intervalSec,disabled:K,onChange:e=>z(t=>({...t,intervalSec:Math.max(10,Number.parseInt(e.target.value,10)||60)})),className:j()})]}),(0,r.jsxs)("label",{className:y(),children:["Ngưỡng lỗi",(0,r.jsx)("input",{type:"number",min:"1",value:U.failureThreshold,disabled:K,onChange:e=>z(t=>({...t,failureThreshold:Math.max(1,Number.parseInt(e.target.value,10)||3)})),className:j()})]}),(0,r.jsxs)("label",{className:y(),children:["Timeout (ms)",(0,r.jsx)("input",{type:"number",min:"1000",value:U.timeoutMs,disabled:K,onChange:e=>z(t=>({...t,timeoutMs:Math.max(1e3,Number.parseInt(e.target.value,10)||15e3)})),className:j()})]})]}),(0,r.jsxs)("label",{className:`${y()} mt-3 block`,children:["Lời nhắc",(0,r.jsx)("input",{value:U.prompt,disabled:K,onChange:e=>z(t=>({...t,prompt:e.target.value})),className:j()})]}),(0,r.jsxs)("label",{className:"mt-3 flex items-center gap-2 text-sm text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:U.disableThinking,disabled:K,onChange:e=>z(t=>({...t,disableThinking:e.target.checked}))}),"Ưu ti\xean payload kiểm tra nhẹ / tắt thinking nếu được hỗ trợ"]}),(0,r.jsxs)("div",{className:"mt-3 text-xs text-text-muted",children:["Trạng th\xe1i: ",(0,r.jsx)("span",{className:"font-medium text-text-main",children:t.healthStatus||"kh\xf4ng r\xf5"}),t.healthLastCheckedAt&&(0,r.jsxs)("span",{children:[" \xb7 lần kiểm tra cuối: ",function(e){if(!e)return"";try{return new Date(e).toLocaleString()}catch{return String(e)}}(t.healthLastCheckedAt)]}),t.healthLastError&&(0,r.jsx)("p",{className:"mt-1 break-words text-red-500",children:t.healthLastError})]})]}),!Y&&!Z&&(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(d.default,{onClick:er,disabled:T,variant:"secondary",children:T?"Đang kiểm tra...":"Kiểm tra connection"}),A&&(0,r.jsx)(c.default,{variant:"success"===A?"success":"error",children:"success"===A?"Hợp lệ":"Thất bại"})]}),(0,r.jsxs)("div",{className:"flex gap-2 border-t border-border pt-4",children:[(0,r.jsx)(d.default,{onClick:el,disabled:O||Y&&(!k.azureEndpoint||!k.deployment||!k.organization)||Z&&!C.accountId,fullWidth:!0,children:O?"Đang lưu...":"Lưu"}),(0,r.jsx)(d.default,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}v.propTypes={isOpen:n().bool.isRequired,connection:n().shape({id:n().string,name:n().string,email:n().string,priority:n().number,authType:n().string,provider:n().string,defaultModel:n().string,providerSpecificData:n().object,schedule:n().object,healthCheck:n().object,healthStatus:n().string,healthLastCheckedAt:n().string,healthLastError:n().string,providerScheduleOverride:n().bool,providerHealthOverride:n().bool}),proxyPools:n().arrayOf(n().shape({id:n().string,name:n().string})),onSave:n().func.isRequired,onClose:n().func.isRequired}},74891:(e,t,s)=>{"use strict";s.d(t,{default:()=>f});var r=s(95155),a=s(12115),l=s(73321),n=s(98500),i=s.n(n),o=s(14051),d=s.n(o),c=s(80752),m=s(38587),u=s(94027),x=s(38003),h=s(90620),p=s(52679),b=s(73006);function f({onMenuClick:e,showMenuButton:t=!0}){let s=(0,l.usePathname)(),n=(0,l.useRouter)(),{displayName:o,loginMethod:d}=(0,u.s)(),{title:x,description:y,icon:j,breadcrumbs:v}=(0,a.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],s=t[2],r=p.rj.find(t=>t.id===e),a=p.Q2[s];return{title:a?.name||s,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:r?.label||e,href:`/dashboard/media-providers/${e}`},{label:a?.name||s,image:`/providers/${s}.png`}]}}let s=e.match(/\/media-providers\/([^/]+)$/);if(s){let e=s[1],t=p.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let r=e.match(/\/providers\/([^/]+)$/);if(r){let e=r[1],t=h.zN[e]||h.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:`/providers/${t.id}.png`}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/token-saver")?{title:"Token Saver Analytics",description:"Theo d\xf5i hiệu quả RTK token saving theo source tool, provider, model v\xe0 filter",icon:"compress",breadcrumbs:[]}:e.includes("/analytics")?{title:"Analytics",description:"Thống k\xea request, token, API key, Source IP, provider, model v\xe0 lỗi vận h\xe0nh",icon:"monitoring",breadcrumbs:[]}:e.includes("/resource-monitor")?{title:"Linux Resources",description:"Realtime resource monitoring for remote Linux servers",icon:"monitor_heart",breadcrumbs:[]}:e.includes("/cluster")?{title:"Cluster Nodes",description:"Synchronize Master backups to Standby BlueRouter nodes",icon:"hub",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"AI Traffic Proxy",description:"Intercept CLI tool traffic and route through this router gateway",icon:"security",breadcrumbs:[]}:e.includes("/prompt-logs")?{title:"Prompt Logs",description:"Search Copilot/MITM prompts across the prompt log database",icon:"manage_search",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"terminal",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use this Router — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:e.includes("/api-keys")?{title:"API Keys",description:"Manage API keys and model access",icon:"vpn_key",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(s),[s]),N=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&(n.push("/login"),n.refresh())}catch(e){console.error("Failed to logout:",e)}};return(0,r.jsx)("header",{className:"sticky top-0 z-30 border-b border-border bg-background/80 backdrop-blur",children:(0,r.jsxs)("div",{className:"flex min-h-[72px] items-center justify-between gap-4 px-4 md:px-6",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[t?(0,r.jsx)("button",{type:"button",onClick:e,className:"rounded-xl border border-border p-2 text-text-muted hover:bg-surface hover:text-text-main lg:hidden","aria-label":"Open menu",children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}):null,(0,r.jsx)("div",{className:"min-w-0",children:v.length>0?(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-1 text-sm text-text-muted",children:v.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[t>0?(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"}):null,e.href?(0,r.jsx)(i(),{href:e.href,className:"hover:text-primary",children:(0,b.Tl)(e.label)}):(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[e.image?(0,r.jsx)("img",{src:e.image,alt:"",className:"h-5 w-5 rounded"}):null,(0,r.jsx)("h1",{className:"text-xl font-semibold text-text-main",children:(0,b.Tl)(e.label)})]})]},`${e.label}-${t}`))}):x?(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[j?(0,r.jsx)("span",{className:"material-symbols-outlined text-primary",children:j}):null,(0,r.jsx)("h1",{className:"truncate text-xl font-semibold text-text-main",children:(0,b.Tl)(x)})]}),y?(0,r.jsx)("p",{className:"mt-1 truncate text-sm text-text-muted",children:(0,b.Tl)(y)}):null]}):null})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,r.jsx)(g,{}),o&&"OIDC"===d?(0,r.jsxs)("div",{className:"hidden items-center gap-2 rounded-xl border border-border px-3 py-2 text-sm text-text-muted md:flex",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"person"}),(0,r.jsx)("span",{children:o}),(0,r.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs text-primary",children:"OIDC"})]}):null,(0,r.jsx)(m.default,{}),(0,r.jsx)(c.default,{onLogout:N})]})]})})}function g(){let e=(0,x.C)(e=>e.visible),t=(0,x.C)(e=>e.query),s=(0,x.C)(e=>e.placeholder),a=(0,x.C)(e=>e.setQuery);return e?(0,r.jsxs)("div",{className:"relative hidden w-72 md:block",children:[(0,r.jsx)("span",{className:"material-symbols-outlined pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-[18px] text-text-muted",children:"search"}),(0,r.jsx)("input",{value:t,onChange:e=>a(e.target.value),placeholder:s,className:"h-9 w-full rounded-lg border border-border bg-surface/60 pl-8 pr-8 text-sm text-text-main outline-none transition-colors placeholder:text-text-muted focus:border-primary/50"}),t?(0,r.jsx)("button",{type:"button",onClick:()=>a(""),className:"absolute right-1 top-1/2 -translate-y-1/2 rounded p-0.5 text-text-muted hover:text-text-main","aria-label":"Clear search",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})}):null]}):null}f.propTypes={onMenuClick:d().func,showMenuButton:d().bool}},77907:(e,t,s)=>{"use strict";s.d(t,{Fv:()=>r,SI:()=>a,VC:()=>i}),Object.freeze({ADMIN:"admin",MONITOR_ADMIN:"monitor_admin",AI_GATEWAYS_MONITOR:"ai_gateways_monitor",USER:"user",GUEST:"guest"});let r="/dashboard/endpoint",a=Object.freeze([{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"}]),l=Object.freeze(["/dashboard","/dashboard/endpoint","/dashboard/api-keys","/dashboard/usage","/dashboard/analytics","/dashboard/ai-power-index","/dashboard/quota"]);function n(e=""){return String(e||"").split("?")[0].replace(/\/+$/,"")||"/"}function i(e=""){let t=n(e);return"/dashboard"===t||l.filter(e=>"/dashboard"!==e).some(e=>{let s,r;return s=n(t),s===(r=n(e))||s.startsWith(`${r}/`)})}},78314:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(95155),a=s(90882),l=s(12115),n=s(81127),i=s(92542),o=s(11059);function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:a,connectionScope:c="personal"}){let[m,u]=(0,l.useState)(null),[x,h]=(0,l.useState)("starting"),[p,b]=(0,l.useState)(""),f=(0,l.useRef)(!1),g=(0,l.useRef)(0),{copied:y,copy:j}=(0,o.C)(),v=m?.verification_uri_complete||m?.verification_uri||"",N=(0,l.useCallback)(async(e,t,r)=>{let a=Math.max(2,Number(t)||5);for(let t=0;t<120&&!f.current&&g.current===r;t+=1){if(await new Promise(e=>setTimeout(e,1e3*a)),f.current||g.current!==r)return;try{let t=await fetch("/api/oauth/grok-cli/poll",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,connectionScope:c})}),r=await t.json().catch(()=>({}));if(r.success){f.current=!0,h("success"),s?.();return}if(!t.ok||r.error&&!r.pending&&"authorization_pending"!==r.error&&"slow_down"!==r.error)throw Error(r.errorDescription||r.error||`Authorization failed (${t.status})`)}catch(e){if(f.current||g.current!==r)return;b(e?.message||"Authorization failed"),h("error");return}}f.current||g.current!==r||(b("Authorization timeout. Please try again."),h("error"))},[c,s]),k=(0,l.useCallback)(async()=>{f.current=!1;let e=++g.current;h("starting"),b(""),u(null);try{let t=new URL("/api/oauth/grok-cli/device-code",window.location.origin);t.searchParams.set("connection_scope",c);let s=await fetch(t.toString(),{cache:"no-store"}),r=await s.json().catch(()=>({}));if(!s.ok)throw Error(r.error||"Unable to start Grok authorization");if(f.current||g.current!==e)return;u(r),h("waiting");let a=r.verification_uri_complete||r.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer"),N(r.device_code,r.interval||5,e)}catch(t){if(f.current||g.current!==e)return;b(t?.message||"Unable to start Grok authorization"),h("error")}},[c,N]);(0,l.useEffect)(()=>(e?k():(f.current=!0,g.current+=1),()=>{f.current=!0,g.current+=1}),[e,k]);let w=()=>{f.current=!0,g.current+=1,a?.()};return(0,r.jsx)(n.default,{isOpen:e,onClose:w,title:`Connect ${t?.name||"Grok CLI"}`,busy:"starting"===x,footer:(0,r.jsxs)("div",{className:"flex items-center justify-end gap-2",children:["error"===x&&(0,r.jsx)(i.default,{variant:"secondary",onClick:k,children:"Try again"}),(0,r.jsx)(i.default,{variant:"secondary",onClick:w,children:"success"===x?"Done":"Close"})]}),children:(0,r.jsxs)("div",{className:"space-y-4 p-1",children:[(0,r.jsx)("p",{className:"text-sm text-text-muted",children:"Sign in with your xAI / Grok account. This connects Grok Build / SuperGrok subscription access, separate from the xAI API provider."}),"starting"===x&&(0,r.jsx)("div",{className:"text-sm text-text-muted",children:"Requesting a Grok device code…"}),m&&"success"!==x&&(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"rounded-lg border border-border-subtle bg-surface-secondary p-3",children:[(0,r.jsx)("div",{className:"text-xs uppercase tracking-wide text-text-muted",children:"Device code"}),(0,r.jsxs)("div",{className:"mt-1 flex items-center justify-between gap-3",children:[(0,r.jsx)("code",{className:"text-xl font-semibold tracking-wider text-text-main",children:m.user_code||"—"}),m.user_code&&(0,r.jsx)(i.default,{size:"sm",variant:"secondary",onClick:()=>j(m.user_code),children:y?"Copied":"Copy"})]})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:v&&(0,r.jsx)(i.default,{onClick:()=>window.open(v,"_blank","noopener,noreferrer"),children:"Open authorization page"})}),(0,r.jsx)("div",{className:"text-sm text-text-muted",children:"Waiting for authorization… You can keep this dialog open while approving the device code."})]}),"success"===x&&(0,r.jsx)("div",{className:"rounded-lg border border-border-subtle p-3 text-sm text-text-main",children:"Grok CLI connected. Models and quota will be imported automatically."}),p&&(0,r.jsx)("div",{className:"rounded-lg border border-red-500/30 bg-red-500/5 p-3 text-sm text-red-500",children:p})]})})}function c(e){return e?.provider==="grok-cli"?(0,r.jsx)(d,{...e}):(0,r.jsx)(a.A,{...e})}},80752:(e,t,s)=>{"use strict";s.d(t,{default:()=>f});var r=s(95155),a=s(12115),l=s(47650),n=s(14051),i=s.n(n),o=s(93308),d=s(1620),c=s(94027),m=s(40197);s(14932);var u=s(21931),x=s(92542),h=s(81127);let p={en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (BR)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (PT)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"}};function b({icon:e,label:t,onClick:s,trailing:a,danger:l}){return(0,r.jsxs)("button",{onClick:s,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${l?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[20px] ${l?"":"text-text-muted"}`,children:e}),(0,r.jsx)("span",{className:"flex-1 text-left",children:t}),a&&(0,r.jsx)("span",{className:"text-base",children:a})]})}function f({onLogout:e}){let[t,s]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[j,v]=(0,a.useState)(!1),[N,k]=(0,a.useState)(""),[w,C]=(0,a.useState)(10),[S,T]=(0,a.useState)(!1),[_,A]=(0,a.useState)("en"),{toggleTheme:I,isDark:M}=(0,d.D)(),{isAdmin:$}=(0,c.s)(),P=(0,a.useRef)(null),R=(0,a.useRef)(null),O=(0,a.useRef)(null);(0,a.useEffect)(()=>{A(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${o.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,o.QC)(t)}())},[S]),(0,a.useEffect)(()=>{let e=e=>{P.current&&!P.current.contains(e.target)&&s(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,a.useEffect)(()=>()=>{R.current&&clearTimeout(R.current),O.current&&clearInterval(O.current)},[]);let E=()=>{R.current&&(clearTimeout(R.current),R.current=null),O.current&&(clearInterval(O.current),O.current=null)},L=()=>{j||(y(!1),k(""),C(10))},q=async()=>{if($&&!j){v(!0),k("");try{let e=await fetch("/api/version/restart",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok||t?.success===!1)throw Error(t?.message||"Restart request failed");E(),C(10),O.current=setInterval(()=>{C(e=>Math.max(0,e-1))},1e3),R.current=setTimeout(()=>{window.location.reload()},1e4)}catch(e){E(),C(10),k(e?.message||"Restart request failed"),v(!1)}}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative",ref:P,children:[(0,r.jsx)("button",{onClick:()=>s(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,r.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,r.jsx)(b,{icon:"history",label:"Change Log",onClick:()=>{s(!1),i(!0)}}),(0,r.jsx)(b,{icon:"language",label:p[_]?.name||_,trailing:p[_]?.flag||"\uD83C\uDF10",onClick:()=>{s(!1),T(!0)}}),(0,r.jsx)(b,{icon:M?"light_mode":"dark_mode",label:"Theme",onClick:()=>{I(),s(!1)}}),(0,r.jsx)(b,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{s(!1),e()}}),$?(0,r.jsx)(b,{icon:"restart_alt",label:j?"Restarting...":"Restart",danger:!0,onClick:()=>{$&&!j&&(s(!1),k(""),y(!0))}}):null]})]}),g&&"u">typeof document?(0,l.createPortal)((0,r.jsx)(h.default,{isOpen:g,onClose:L,title:"Restart BlueRouter",size:"sm",closeOnOverlay:!j,className:"overflow-hidden",footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.default,{variant:"ghost",onClick:L,disabled:j,children:"Cancel"}),(0,r.jsx)(x.default,{variant:"primary",icon:"restart_alt",loading:j,onClick:q,children:j?"Restarting":"Restart now"})]}),children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"rounded-2xl border border-primary/15 bg-primary/10 p-4",children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-primary/15 text-primary",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"restart_alt"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Confirm service restart"}),(0,r.jsx)("p",{className:"mt-1 text-sm leading-6 text-text-muted",children:"The dashboard and API gateway may be unavailable for a few seconds while BlueRouter restarts."})]})]})}),N?(0,r.jsxs)("div",{className:"flex gap-2 rounded-xl border border-red-500/20 bg-red-500/10 p-3 text-sm text-red-600 dark:text-red-300",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"error"}),(0,r.jsx)("span",{children:N})]}):null,j?(0,r.jsxs)("div",{className:"flex items-center gap-2 rounded-xl border border-border bg-surface-2 px-3 py-2 text-xs font-medium text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px] text-primary",children:"progress_activity"}),"Restart command sent. This page will reload automatically in ",w,"s."]}):null]})}),document.body):null,(0,r.jsx)(m.default,{isOpen:n,onClose:()=>i(!1)}),(0,r.jsx)(u.default,{hideTrigger:!0,isOpen:S,onClose:e=>{T(!1),A(e)}})]})}b.propTypes={icon:i().string.isRequired,label:i().string.isRequired,onClick:i().func.isRequired,trailing:i().node,danger:i().bool},f.propTypes={onLogout:i().func.isRequired}},84588:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var r=s(95155),a=s(31474);function l({children:e,title:t,subtitle:s,icon:n,action:i,padding:o="md",hover:d=!1,elev:c=!1,className:m,...u}){return(0,r.jsxs)("div",{className:(0,a.cn)("bg-surface border border-border",c?"rounded-[14px] shadow-[var(--shadow-elev)]":"rounded-[14px] shadow-[0_1px_2px_rgba(15,23,42,0.045),0_12px_28px_-26px_rgba(37,99,235,0.38)]",d&&"hover:shadow-[var(--shadow-warm)] hover:border-brand-500/40 transition-all cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-5",lg:"p-6"}[o],m),...u,children:[(t||i)&&(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[n&&(0,r.jsx)("div",{className:"p-2 rounded-[10px] bg-bg-alt border border-border-subtle text-text-muted",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:n})}),(0,r.jsxs)("div",{children:[t&&(0,r.jsx)("h3",{className:"text-text-main font-semibold",children:t}),s&&(0,r.jsx)("p",{className:"text-sm text-text-muted",children:s})]})]}),i]}),e]})}l.Section=function({children:e,className:t,...s}){return(0,r.jsx)("div",{className:(0,a.cn)("p-4 rounded-[10px]","bg-bg-alt border border-border",t),...s,children:e})},l.Row=function({children:e,className:t,...s}){return(0,r.jsx)("div",{className:(0,a.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...s,children:e})},l.ListItem=function({children:e,actions:t,className:s,...l}){return(0,r.jsxs)("div",{className:(0,a.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",s),...l,children:[(0,r.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,r.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},86671:(e,t,s)=>{"use strict";s.d(t,{default:()=>g});var r=s(95155),a=s(12115),l=s(73321),n=s(65921),i=s(94027),o=s(92622),d=s(74891),c=s(77907);let m=["/dashboard/api-keys","/dashboard/personal","/dashboard/personalcloudprovider","/dashboard/personalquota","/dashboard/usage","/dashboard/analytics","/dashboard/ai-power-index","/dashboard/token-saver"];function u(e,t){return e===t||e.startsWith(`${t}/`)}function x({children:e}){let t=(0,l.usePathname)(),s=(0,l.useRouter)(),{isAdmin:n,isMonitorAdmin:o,canUseAuditProxy:d,loading:h}=(0,i.s)(),p=function({pathname:e,isAdmin:t,isMonitorAdmin:s,canUseAuditProxy:r}){return!!(t||r&&u(e,"/dashboard/audit-proxy"))||(s?(0,c.VC)(e):m.some(t=>u(e,t)))}({pathname:t,isAdmin:n,isMonitorAdmin:o,canUseAuditProxy:d});return((0,a.useEffect)(()=>{h||p||s.replace(function({isMonitorAdmin:e}){return e?c.Fv:"/dashboard/api-keys"}({isMonitorAdmin:o}))},[p,o,h,s]),h)?(0,r.jsxs)("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined mr-2 animate-spin",children:"progress_activity"}),"Đang tải dashboard..."]}):p?e:(0,r.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-text-muted",children:"Đang chuyển hướng..."})}var h=s(18088),p=s.n(h),b=s(61460),f=s.n(b);function g({children:e}){let[t,s]=(0,a.useState)(!1),c=(0,n.i)(e=>e.notifications),m=(0,n.i)(e=>e.removeNotification),u=(0,l.usePathname)();return(0,r.jsx)(i.Y,{children:(0,r.jsx)(x,{children:(0,r.jsxs)("div",{className:`${p().dashboardShell} min-h-screen bg-bg text-text-main`,children:[(0,r.jsx)("div",{className:"fixed right-4 top-4 z-[100] w-[min(420px,calc(100vw-2rem))] space-y-2",children:c.map(e=>{var t;let s="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,r.jsx)("div",{className:`rounded-2xl border px-4 py-3 shadow-lg backdrop-blur ${s.wrapper}`,children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:s.icon}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,r.jsx)("div",{className:"font-semibold",children:e.title}):null,(0,r.jsx)("div",{className:"text-sm opacity-90",children:e.message})]}),e.dismissible?(0,r.jsx)("button",{type:"button",onClick:()=>m(e.id),className:"text-current/70 hover:text-current","aria-label":"Dismiss notification",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})}):null]})},e.id)})}),t?(0,r.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40 lg:hidden",onClick:()=>s(!1)}):null,(0,r.jsxs)("div",{className:"flex min-h-screen",children:[(0,r.jsx)("div",{className:`${f().sidebarHost} hidden lg:block`,children:(0,r.jsx)(o.default,{})}),(0,r.jsx)("div",{className:`${f().sidebarHost} fixed inset-y-0 left-0 z-50 transform transition-transform lg:hidden ${t?"translate-x-0":"-translate-x-full"}`,children:(0,r.jsx)(o.default,{onClose:()=>s(!1)})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 bg-bg",children:[(0,r.jsx)(d.default,{onMenuClick:()=>s(!0)},u),(0,r.jsx)("main",{"data-dashboard-path":u,className:`${f().content} w-full px-3 py-4 md:px-4 md:py-5 lg:px-5 xl:px-6`,children:e})]})]})]})})})}},87600:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497);let o="http://localhost:8009/v1/audio/transcriptions";function d({isOpen:e,onClose:t,onCreated:s,onSaved:l,node:n}){let c=!!n,[m,u]=(0,a.useState)({name:"",prefix:"",baseUrl:o,authHeader:"bearer",apiKey:"",defaultModel:"whisper-1"}),[x,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&(c?u({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o,authHeader:n.authHeader||"bearer",apiKey:n.apiKey||"",defaultModel:n.defaultModel||"whisper-1"}):u({name:"",prefix:"",baseUrl:o,authHeader:"bearer",apiKey:"",defaultModel:"whisper-1"}))},[e,c,n]);let p=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){h(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",r={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl,authHeader:m.authHeader,apiKey:m.apiKey,defaultModel:m.defaultModel};c||(r.type="custom-stt");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await a.json();a.ok?c?l?.(i.node):s?.(i.node):alert(i.error||"Failed to save custom STT provider")}catch(e){console.log("Error saving custom STT node:",e),alert("Failed to save custom STT provider")}finally{h(!1)}}};return(0,r.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom STT":"Add Custom STT",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Local Faster Whisper"}),(0,r.jsx)(i.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"localstt",hint:"Client model will be prefix/model, e.g. localstt/whisper-1."}),(0,r.jsx)(i.pd,{label:"Transcription Endpoint",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:o,hint:"Full OpenAI-compatible /v1/audio/transcriptions endpoint. If you enter /v1, BlueRouter appends /audio/transcriptions."}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Upstream Auth"}),(0,r.jsxs)("select",{value:m.authHeader,onChange:e=>u({...m,authHeader:e.target.value}),className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,r.jsx)("option",{value:"bearer",children:"Bearer token"}),(0,r.jsx)("option",{value:"x-api-key",children:"x-api-key"}),(0,r.jsx)("option",{value:"none",children:"No auth"})]})]}),"none"!==m.authHeader&&(0,r.jsx)(i.pd,{label:"Upstream API Key",type:"password",value:m.apiKey,onChange:e=>u({...m,apiKey:e.target.value}),placeholder:"Token required by the STT server"}),(0,r.jsx)(i.pd,{label:"Default Model",value:m.defaultModel,onChange:e=>u({...m,defaultModel:e.target.value}),placeholder:"whisper-1",hint:"Shown in /v1/models/stt and example. Requests may still use any model after the prefix."}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:p,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,r.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string,authHeader:n().string,apiKey:n().string,defaultModel:n().string})}},90085:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r=s(1934),a=s(31692),l=s(90620);function n(e){let t=document.documentElement,s=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";"dark"===("system"===e?s:e)?t.classList.add("dark"):t.classList.remove("dark")}let i=(0,r.v)((0,a.Zr)((e,t)=>({theme:l.B2.defaultTheme,setTheme:t=>{e({theme:t}),n(t)},toggleTheme:()=>{let s="dark"===t().theme?"light":"dark";e({theme:s}),n(s)},initTheme:()=>{n(t().theme)}}),{name:l.B2.storageKey}))},90882:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497),o=s(11059);function d({isOpen:e,provider:t,providerInfo:s,onSuccess:l,onClose:n,oauthMeta:c,idcConfig:m,connectionScope:u="system",reauthConnectionId:x=""}){let[h,p]=(0,a.useState)("waiting"),[b,f]=(0,a.useState)(null),[g,y]=(0,a.useState)(""),[j,v]=(0,a.useState)(null),[N,k]=(0,a.useState)(!1),[w,C]=(0,a.useState)(null),[S,T]=(0,a.useState)(!1),_=(0,a.useRef)(null),A=(0,a.useRef)(!1),{copied:I,copy:M}=(0,o.C)(),[$,P]=(0,a.useState)(!1),[R,O]=(0,a.useState)("/callback?code=..."),E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{P("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),O(`${window.location.origin}/callback?code=...`)},[]);let L=(0,a.useCallback)(async(e,s)=>{if(b)try{let r=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:b.redirectUri,codeVerifier:b.codeVerifier,state:s,...c?{meta:c}:{},..."personal"===u||x?{connectionScope:"personal"}:{},...x?{reauthConnectionId:x}:{}})}),a=await r.json();if(!r.ok)throw Error(a.error);p("success"),l?.()}catch(e){v(e.message),p("error")}},[b,t,l,c,u,x]),q=(0,a.useCallback)(async e=>{if(b?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:b.state})}),s=await t.json();if(!t.ok)throw Error(s.error);p("success"),l?.()}catch(e){v(e.message),p("error")}},[b,l]),U=(0,a.useCallback)(async(e,s,r,a)=>{A.current=!1,T(!0);for(let n=0;n<60;n++){if(A.current){console.log("[OAuthModal] Polling aborted"),T(!1);return}if(await new Promise(e=>setTimeout(e,1e3*r)),A.current){console.log("[OAuthModal] Polling aborted after sleep"),T(!1);return}try{let n=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:s,extraData:a,..."personal"===u||x?{connectionScope:"personal"}:{},...x?{reauthConnectionId:x}:{}})}),i=await n.json();if(i.success){A.current=!0,p("success"),T(!1),l?.();return}if("expired_token"===i.error||"access_denied"===i.error)throw Error(i.errorDescription||i.error);"slow_down"===i.error&&(r=Math.min(r+5,30))}catch(e){v(e.message),p("error"),T(!1);return}}v("Authorization timeout"),p("error"),T(!1)},[t,l,u,x]),z=(0,a.useCallback)(async()=>{if(t)try{let e;if(v(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy"].includes(t)){k(!0),p("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);("personal"===u||x)&&e.searchParams.set("connection_scope","personal"),x&&e.searchParams.set("reauth_connection_id",x),"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let s=await fetch(e.toString()),r=await s.json();if(!s.ok)throw Error(r.error);C(r);let a=r.verification_uri_complete||r.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer");let l="kiro"===t?{_clientId:r._clientId,_clientSecret:r._clientSecret,_region:r._region,_authMethod:r._authMethod,_startUrl:r._startUrl}:null;U(r.device_code,r.codeVerifier,r.interval||5,l);return}let s=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":$?`${window.location.origin}/callback`:"http://localhost:54545/callback";let r=new URL(`/api/oauth/${t}/authorize`,window.location.origin);r.searchParams.set("redirect_uri",e),("personal"===u||x)&&r.searchParams.set("connection_scope","personal"),x&&r.searchParams.set("reauth_connection_id",x),c&&Object.entries(c).forEach(([e,t])=>{t&&r.searchParams.set(e,t)});let a=await fetch(r.toString()),l=await a.json();if(!a.ok)throw Error(l.error);let n=!1,i=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",l.state),t.searchParams.set("code_verifier",l.codeVerifier),t.searchParams.set("redirect_uri",e),("personal"===u||x)&&t.searchParams.set("connection_scope","personal"),x&&t.searchParams.set("reauth_connection_id",x);let r=await fetch(t.toString()),a=await r.json();n=a.success,i=!!a.serverSide}catch{n=!1}let o=!1,d=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",l.state),t.searchParams.set("code_verifier",l.codeVerifier),t.searchParams.set("redirect_uri",e),("personal"===u||x)&&t.searchParams.set("connection_scope","personal"),x&&t.searchParams.set("reauth_connection_id",x);let r=await fetch(t.toString()),a=await r.json();if(o=a.success,d=!!a.serverSide,!o&&"port_busy"===a.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}f({...l,redirectUri:e,codexServerSide:i,xaiServerSide:d}),"codex"===t&&n||"xai"===t&&o||$&&"codex"!==t&&"xai"!==t?(p("waiting"),_.current=window.open(l.authUrl,"oauth_popup","width=600,height=700"),_.current||p("input")):(p("input"),window.open(l.authUrl,"_blank"))}catch(e){v(e.message),p("error")}},[t,$,U,c,m,u,x]);(0,a.useEffect)(()=>{e&&t?(f(null),y(""),v(null),k(!1),C(null),T(!1),A.current=!1,z()):e||(A.current=!0,"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}))},[e,t,z]),(0,a.useEffect)(()=>{let e=b?.codexServerSide?"codex":b?.xaiServerSide?"xai":null;if(!e||!b?.state||E.current)return;let t=!1,s=0,r=async()=>{if(!t&&!E.current){s+=1;try{let s=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(b.state)}`),r=await s.json();if(t||E.current)return;if("done"===r.status){E.current=!0,p("success"),l?.();return}if("error"===r.status){E.current=!0,v(r.error||"Authentication failed"),p("error");return}}catch{}if(s>=200){E.current=!0,v("Authentication timeout"),p("error");return}setTimeout(r,1500)}};return setTimeout(r,1500),()=>{t=!0}},[b,l]),(0,a.useEffect)(()=>{let e;if(!b)return;E.current=!1;let t=async e=>{if(E.current)return;let{code:t,state:s,error:r,errorDescription:a}=e;if(r){E.current=!0,v(a||r),p("error");return}t&&(E.current=!0,await L(t,s))},s=e=>{let s=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),r=e.origin===window.location.origin;(s||r)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",s);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let r=e=>{if("oauth_callback"===e.key&&e.newValue)try{let s=JSON.parse(e.newValue);t(s),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",r);try{let e=localStorage.getItem("oauth_callback");if(e){let s=JSON.parse(e);s.timestamp&&Date.now()-s.timestamp<3e4&&t(s),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",s),window.removeEventListener("storage",r),e&&e.close()}},[b,L]);let D=async()=>{try{v(null);let e=g.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await L(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await q(e);let s=new URL(e),r=s.searchParams.get("code"),a=s.searchParams.get("state"),l=s.searchParams.get("error");if(l)throw Error(s.searchParams.get("error_description")||l);if(!r)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"No authorization code found in URL");await L(r,a)}catch(e){v(e.message),p("error")}},F=(0,a.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}),n()},[n,t]);if(!t||!s)return null;let K="xai"===t,W=!!x,B=w?.verification_uri_complete||w?.verification_uri||"",V=K?"Connect Grok Build OAuth":`Connect ${s.name}`,G=W?`Re-authenticate ${s.name}`:V;return(0,r.jsx)(i.aF,{isOpen:e,title:G,onClose:F,size:"lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[W?(0,r.jsx)("div",{className:"rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Reauth mode — tokens mới sẽ ghi đ\xe8 l\xean account hiện tại, giữ nguy\xean t\xean/routing/priority."}):null,("waiting"===h||"input"===h)&&!N&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,r.jsx)("span",{className:"text-sm",children:K?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,r.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,r.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,r.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",K?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.pd,{value:b?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,r.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===I?"check":"content_copy",onClick:()=>M(b?.authUrl,"auth_url"),disabled:!b?.authUrl,children:"Copy"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"callback URL"," here"]}),(0,r.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"After authorization, copy the full URL from your browser."}),(0,r.jsx)(i.pd,{value:g,onChange:e=>y(e.target.value),placeholder:K?"http://127.0.0.1:56121/callback?code=... or copied code":R,className:"font-mono text-xs"})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:D,fullWidth:!0,disabled:!g,children:"Connect"}),(0,r.jsx)(i.$n,{onClick:F,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===h&&N&&w&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-center py-4",children:[(0,r.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,r.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,r.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("code",{className:"flex-1 text-sm break-all",children:B}),(0,r.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"login_url"===I?"check":"content_copy",onClick:()=>M(B,"login_url"),disabled:!B}),(0,r.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(B,"_blank","noopener,noreferrer"),disabled:!B,children:"Open"})]})]}),(0,r.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,r.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:w.user_code}),(0,r.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"user_code"===I?"check":"content_copy",onClick:()=>M(w.user_code,"user_code")})]})]})]}),S&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===h&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:W?"Re-authenticated Successfully!":"Connected Successfully!"}),(0,r.jsx)("p",{className:"text-sm text-text-muted mb-4",children:W?`Token mới cho ${s.name} đ\xe3 ghi đ\xe8 l\xean account cũ.`:`Your ${s.name} account has been connected.`}),(0,r.jsx)(i.$n,{onClick:F,fullWidth:!0,children:"Done"})]}),"error"===h&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,r.jsx)("p",{className:"text-sm text-red-600 mb-4",children:j}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:z,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,r.jsx)(i.$n,{onClick:F,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired,oauthMeta:n().object,idcConfig:n().shape({startUrl:n().string,region:n().string}),connectionScope:n().oneOf(["system","personal"]),reauthConnectionId:n().string}},91450:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var r=s(95155),a=s(14051),l=s.n(a),n=s(38587);function i({children:e}){return(0,r.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,r.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,r.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,r.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,r.jsx)(n.default,{variant:"card"})}),(0,r.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}i.propTypes={children:l().node.isRequired}},92173:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(95155),a=s(98500),l=s.n(a),n=s(90620);let i=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,r.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,r.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,r.jsx)("div",{className:"size-6 text-primary",children:(0,r.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,r.jsx)("span",{className:"text-xl font-bold text-text-main",children:n.vQ.name})]}),(0,r.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,r.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:i.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,r.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,r.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",n.vQ.name," Inc. All rights reserved."]}),(0,r.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,r.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,r.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92622:(e,t,s)=>{"use strict";s.d(t,{default:()=>k});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(98500),o=s.n(i),d=s(73321),c=s(90620),m=s(92542),u=s(81127),x=s(77907),h=s(94027),p=s(44656),b=s(31474);let f=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/personal",label:"Personal OAuth",icon:"cloud_sync"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/local-ai-report",label:"Local AI Report",icon:"summarize"},{href:"/dashboard/resource-monitor",label:"Linux Resources",icon:"monitor_heart"},{href:"/dashboard/cluster",label:"Cluster Nodes",icon:"hub"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"compress"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/media-providers/web",label:"Media / Web",icon:"perm_media",advanced:!0},{href:"/dashboard/mitm",label:"AI Traffic Gateway",icon:"security",advanced:!0},{href:"/dashboard/audit-proxy",label:"AI Audit Proxy",icon:"policy"},{href:"/dashboard/logs",label:"Logs",icon:"manage_search"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal",advanced:!0},{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan",advanced:!0},{href:"/dashboard/skills",label:"Skills",icon:"extension",advanced:!0},{href:"/dashboard/translator",label:"Translator",icon:"translate",advanced:!0},{href:"/dashboard/settings/pricing",label:"Pricing",icon:"payments"},{href:"/dashboard/profile",label:"Settings",icon:"settings"}],g=[...x.SI],y={href:"/dashboard/audit-proxy",label:"AI Audit Proxy",icon:"policy"},j=[{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/personal",label:"Personal OAuth",icon:"cloud_sync"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"compress"}],v=c.h0?.installCmdLatest||"npm install -g @jheavenknows/bluerouter@latest";function N({href:e,label:t,icon:s,active:a,onClick:l}){return(0,r.jsxs)(o(),{href:e,onClick:l,className:(0,b.cn)("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors",a?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface hover:text-text-main"),children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:s}),(0,r.jsx)("span",{className:"truncate",children:t})]})}function k({onClose:e}){let t=(0,d.usePathname)(),s=(0,d.useRouter)(),{displayName:l,loginMethod:n,isAdmin:i,actualIsAdmin:o,showAsUser:x,canToggleUserMode:b,isMonitorAdmin:w,isAiGatewaysMonitor:C,canUseAuditProxy:S,reload:T}=(0,h.s)(),{logoUrl:_,siteShortName:A,siteTitle:I}=(0,p.useBranding)(),M=A||I||"Blue Router",[$,P]=(0,a.useState)(null),[R,O]=(0,a.useState)(null),[E,L]=(0,a.useState)(!1),[q,U]=(0,a.useState)(!1),[z,D]=(0,a.useState)(!1),[F,K]=(0,a.useState)(""),[W,B]=(0,a.useState)(!0),[V,G]=(0,a.useState)(!1),H=()=>e?.();(0,a.useEffect)(()=>{let e=!1;return fetch("/api/version",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&(P(t),O(i&&t.hasUpdate?t:null))}).catch(()=>{e||O(null)}),()=>{e=!0}},[i]),(0,a.useEffect)(()=>{if(!i)return;let e=!1,t=e=>{B(e?.detail?.visible!==!1)};return fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&B(!1!==t.sidebarAdvancedToolsVisible)}).catch(()=>{}),window.addEventListener("bluerouter:sidebar-advanced-tools",t),()=>{e=!0,window.removeEventListener("bluerouter:sidebar-advanced-tools",t)}},[i]),(0,a.useEffect)(()=>{if(!q)return;let e=setTimeout(()=>U(!1),2e3);return()=>clearTimeout(e)},[q]);let J=async()=>{K("");try{return await navigator.clipboard.writeText(R?.installCommand||v),U(!0),!0}catch(e){return K(e?.message||"Could not copy update command. Please copy it manually."),!1}},Q=async()=>{if(!z&&await J()){D(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch{}}},X=async()=>{if(o&&b&&!V){G(!0);try{let e=await fetch("/api/auth/view-mode",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:x?"admin":"user"})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error||"Kh\xf4ng đổi được chế độ hiển thị");await T(),s.refresh()}catch(e){console.error("[sidebar] Could not switch dashboard view mode:",e)}finally{G(!1)}}},Y=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch{}s.push("/login"),s.refresh()},Z=i?f:w?g:j,ee=(i||!S||Z.some(e=>e.href===y.href)?Z:[...Z,y]).filter(e=>!e.advanced||W),et=x?"User mode":i?"Admin":w?"Monitor Admin":C?"AI Gateways Monitor":"User",es=$?.currentVersion||c.vQ?.version||"local";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("aside",{className:"flex h-full w-64 flex-col border-r border-border bg-background p-3",children:[(0,r.jsx)("div",{"data-sidebar-section":"logout",className:"mb-3 border-b border-border pb-3",children:(0,r.jsxs)("button",{type:"button",onClick:Y,className:"flex w-full items-center justify-between gap-3 rounded-2xl border border-border bg-surface/70 px-3 py-2.5 text-left text-sm font-semibold text-text-muted transition hover:border-border-subtle hover:bg-surface hover:text-text-main",children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"logout"}),(0,r.jsx)("span",{className:"truncate",children:"Logout"})]}),(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px] opacity-60",children:"chevron_right"})]})}),(0,r.jsxs)("div",{"data-sidebar-section":"identity",className:"mb-4 rounded-2xl bg-primary/10 p-4 text-primary",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[_?(0,r.jsx)("img",{src:_,alt:M,className:"h-8 w-8 rounded-md object-contain"}):(0,r.jsx)("span",{className:"material-symbols-outlined text-[28px]",children:"hub"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"truncate font-bold text-text-main",children:M}),(0,r.jsxs)("div",{className:"text-xs text-text-muted",children:["v",es]})]})]}),i&&R?(0,r.jsxs)("button",{type:"button",onClick:()=>{K(""),U(!1),L(!0)},className:"mt-3 flex w-full items-center justify-between gap-2 rounded-xl border border-amber-400/40 bg-amber-500/10 px-3 py-2 text-left text-xs font-semibold text-amber-700 transition hover:bg-amber-500/15 dark:text-amber-300",title:`New BlueRouter version available: v${R.latestVersion}`,children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"system_update_alt"}),(0,r.jsxs)("span",{className:"truncate",children:["New v",R.latestVersion]})]}),(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})]}):null,l?(0,r.jsxs)("div",{"data-sidebar-section":"user",className:"mt-4 flex items-start gap-2 text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"person"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("div",{className:"truncate text-sm font-semibold text-text-main",children:l}),(0,r.jsxs)("div",{className:"text-xs",children:[et,n?` \xb7 ${n}`:""]})]})]}):null,b?(0,r.jsxs)("button",{type:"button",role:"switch","aria-checked":x,onClick:X,disabled:V,className:"mt-3 flex w-full items-center justify-between gap-3 rounded-xl border border-primary/20 bg-background/75 px-3 py-2.5 text-left transition hover:border-primary/40 disabled:cursor-wait disabled:opacity-60",title:"Ghi nhớ chế độ n\xe0y v\xe0 \xe1p dụng quyền giống user thường tr\xean cả UI lẫn API dashboard",children:[(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block text-xs font-semibold text-text-main",children:"Show as user"}),(0,r.jsx)("span",{className:"mt-0.5 block text-[11px] leading-4 text-text-muted",children:x?"Đang d\xf9ng quyền user thường":"Xem dashboard như user thường"})]}),(0,r.jsx)("span",{className:`relative inline-flex h-5 w-9 shrink-0 rounded-full transition-colors ${x?"bg-primary":"bg-surface-3"}`,children:(0,r.jsx)("span",{className:`mt-0.5 h-4 w-4 rounded-full bg-white shadow-sm transition-transform ${x?"translate-x-[18px]":"translate-x-0.5"}`})})]}):null]}),(0,r.jsx)("nav",{className:"min-h-0 flex-1 space-y-1 overflow-y-auto pr-1",children:ee.map(e=>{var s;return(0,r.jsx)(N,{href:e.href,label:e.label,icon:e.icon,active:"/dashboard/endpoint"===(s=e.href)?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):"/dashboard/personal"===s?t.startsWith("/dashboard/personal")||t.startsWith("/dashboard/personalcloudprovider")||t.startsWith("/dashboard/personalquota"):"/dashboard/logs"===s?t.startsWith("/dashboard/logs")||t.startsWith("/dashboard/prompt-logs")||t.startsWith("/dashboard/console-log"):"/dashboard/providers"===s?t.startsWith("/dashboard/providers")||t.startsWith("/dashboard/media-providers/stt")||t.startsWith("/dashboard/media-providers/tts"):t===s||t.startsWith(`${s}/`),onClick:H},e.href)})})]}),(0,r.jsx)(u.default,{isOpen:E,onClose:()=>{z||L(!1)},title:"Update BlueRouter",size:"md",closeOnOverlay:!z,footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.default,{type:"button",variant:"ghost",onClick:()=>L(!1),disabled:z,children:"Cancel"}),(0,r.jsx)(m.default,{type:"button",variant:"secondary",onClick:J,disabled:z,children:q?"Copied":"Copy command"}),(0,r.jsx)(m.default,{type:"button",variant:"primary",onClick:Q,loading:z,children:"Copy & shutdown"})]}),children:(0,r.jsxs)("div",{className:"space-y-4 text-sm text-text-muted",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"Current version"}),(0,r.jsxs)("span",{className:"font-mono font-semibold text-text-main",children:["v",$?.currentVersion||R?.currentVersion||c.vQ?.version||"local"]})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"Latest npm version"}),(0,r.jsxs)("span",{className:"font-mono font-semibold text-primary",children:["v",$?.latestVersion||R?.latestVersion||"unknown"]})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"NPM package"}),(0,r.jsx)("span",{className:"truncate font-mono text-xs text-text-main",children:$?.packageName||R?.packageName||c.h0?.npmPackageName||"@jheavenknows/bluerouter"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-2 font-medium text-text-main",children:"Install command"}),(0,r.jsx)("pre",{className:"overflow-x-auto rounded-xl border border-border bg-bg-subtle px-3 py-2 font-mono text-xs text-text-main",children:R?.installCommand||v})]}),(0,r.jsxs)("ol",{className:"list-decimal space-y-1 pl-5",children:[(0,r.jsxs)("li",{children:["Click ",(0,r.jsx)("span",{className:"font-semibold text-text-main",children:"Copy & shutdown"}),"."]}),(0,r.jsx)("li",{children:"Paste the command into the server terminal and run it."}),(0,r.jsx)("li",{children:"Start BlueRouter again after npm finishes installing."})]}),F?(0,r.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 px-3 py-2 text-red-600 dark:text-red-300",children:F}):null,z?(0,r.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-amber-700 dark:text-amber-300",children:"Command copied. BlueRouter is shutting down so you can run the npm update command safely."}):null]})})]})}N.propTypes={href:n().string.isRequired,label:n().string.isRequired,icon:n().string.isRequired,active:n().bool,onClick:n().func},k.propTypes={onClose:n().func}},93308:(e,t,s)=>{"use strict";s.d(t,{CL:()=>l,QC:()=>n,Xn:()=>a,YZ:()=>r});let r=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no"],a="en",l="locale";function n(e){return"zh"===e||"zh-CN"===e?"zh-CN":"en"===e?"en":"vi"===e?"vi":"zh-TW"===e?"zh-TW":"ja"===e?"ja":"pt-BR"===e?"pt-BR":"pt-PT"===e?"pt-PT":"ko"===e?"ko":"es"===e?"es":"de"===e?"de":"fr"===e?"fr":"he"===e?"he":"ar"===e?"ar":"ru"===e?"ru":"pl"===e?"pl":"cs"===e?"cs":"nl"===e?"nl":"tr"===e?"tr":"uk"===e?"uk":"tl"===e?"tl":"id"===e?"id":"th"===e?"th":"hi"===e?"hi":"bn"===e?"bn":"ur"===e?"ur":"ro"===e?"ro":"sv"===e?"sv":"it"===e?"it":"el"===e?"el":"hu"===e?"hu":"fi"===e?"fi":"da"===e?"da":"no"===e?"no":a}},94027:(e,t,s)=>{"use strict";s.d(t,{Y:()=>o,s:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l);let i=(0,a.createContext)(null);function o({children:e}){let[t,s]=(0,a.useState)(null),[l,n]=(0,a.useState)(!0),[d,c]=(0,a.useState)(""),m=(0,a.useCallback)(async()=>{n(!0),c("");try{let e=await fetch("/api/auth/status",{cache:"no-store"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error||"Kh\xf4ng tải được trạng th\xe1i đăng nhập");return s(t||{}),t||{}}catch(e){return c(e?.message||"Kh\xf4ng tải được trạng th\xe1i đăng nhập"),s({}),{}}finally{n(!1)}},[]);(0,a.useEffect)(()=>{let e=!1;return(async()=>{n(!0),c("");try{let t=await fetch("/api/auth/status",{cache:"no-store"}),r=await t.json().catch(()=>({}));if(e)return;if(!t.ok)throw Error(r?.error||"Kh\xf4ng tải được trạng th\xe1i đăng nhập");s(r||{})}catch(t){e||(c(t?.message||"Kh\xf4ng tải được trạng th\xe1i đăng nhập"),s({}))}finally{e||n(!1)}})(),()=>{e=!0}},[]);let u=(0,a.useMemo)(()=>{let e,s,r,a,l,n,i;return s=(e=t&&"object"==typeof t?t:{}).displayName||e.oidcName||e.oidcEmail||e.userId||"",a=(r=!0===e.actualIsAdmin||!0===e.isAdmin&&!0!==e.showAsUser)&&!0===e.showAsUser,l=!0===e.isAdmin&&!a,n=!0===e.isMonitorAdmin,i=!0===e.isAiGatewaysMonitor,{status:e,displayName:s,userId:e.userId||"",loginMethod:e.loginMethod||"",role:e.role||"guest",actualRole:e.actualRole||e.role||"guest",isAdmin:l,actualIsAdmin:r,showAsUser:a,canToggleUserMode:!0===e.canToggleUserMode||r,isMonitorAdmin:n,isAiGatewaysMonitor:i,canManageApiKeys:!0===e.canManageApiKeys||l||n,canUseMonitorAdminTabs:!0===e.canUseMonitorAdminTabs||l||n,canViewAllAnalytics:!0===e.canViewAllAnalytics||l||n||i,canUseAuditProxy:!0===e.canUseAuditProxy||l}},[t]),x=(0,a.useMemo)(()=>({...u,loading:l,error:d,reload:m}),[u,l,d,m]);return(0,r.jsx)(i.Provider,{value:x,children:e})}function d(){let e=(0,a.useContext)(i);return e||{status:{},displayName:"",userId:"",loginMethod:"",role:"admin",actualRole:"admin",isAdmin:!0,actualIsAdmin:!0,showAsUser:!1,canToggleUserMode:!0,isMonitorAdmin:!1,isAiGatewaysMonitor:!1,canManageApiKeys:!0,canUseMonitorAdminTabs:!0,canViewAllAnalytics:!0,loading:!1,error:"",reload:async()=>({})}}o.propTypes={children:n().node}},94230:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497),o=s(11059);function d({isOpen:e,provider:t,onSuccess:s,onClose:l}){let[n,c]=(0,a.useState)("loading"),[m,u]=(0,a.useState)(""),[x,h]=(0,a.useState)(null),[p,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(null),{copied:y,copy:j}=(0,o.C)();(0,a.useEffect)(()=>{e&&t&&(async()=>{try{g(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),s=await e.json();if(!e.ok)throw Error(s.error);h(s),u(s.authUrl),c("input"),window.open(s.authUrl,"_blank")}catch(e){g(e.message),c("error")}})()},[e,t]);let v=async()=>{try{let e;g(null);try{e=new URL(p)}catch(e){throw Error("Invalid callback URL format")}let r=e.searchParams.get("code");e.searchParams.get("state");let a=e.searchParams.get("error");if(a)throw Error(e.searchParams.get("error_description")||a);if(!r)throw Error("No authorization code found in URL");let l=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:r,codeVerifier:x.codeVerifier,provider:t})}),n=await l.json();if(!l.ok)throw Error(n.error);c("success"),s?.()}catch(e){g(e.message),c("error")}},N="google"===t?"Google":"GitHub";return(0,r.jsx)(i.aF,{isOpen:e,title:`Connect Kiro via ${N}`,onClose:l,size:"lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===n&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,r.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",N," authentication"]})]}),"input"===n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.pd,{value:m,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,r.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===y?"check":"content_copy",onClick:()=>j(m,"auth_url"),children:"Copy"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,r.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,r.jsx)(i.pd,{value:p,onChange:e=>b(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:!p,children:"Connect"}),(0,r.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===n&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,r.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",N," has been connected."]}),(0,r.jsx)(i.$n,{onClick:l,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,r.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,r.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().oneOf(["google","github"]).isRequired,onSuccess:n().func,onClose:n().func.isRequired}},95088:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:l}){let n,[c,m]=(0,a.useState)(null),[u,x]=(0,a.useState)(o),[h,p]=(0,a.useState)(""),[b,f]=(0,a.useState)(""),[g,y]=(0,a.useState)(""),[j,v]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),[S,T]=(0,a.useState)(null),_=()=>{m(null),x(o),p(""),f(""),y(""),k(null),v(!1),C(!1),T(null),l()},A=async()=>{if(!g.trim())return void k("Personal Access Token is required");v(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g.trim(),baseUrl:u.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");s?.(),_()}catch(e){k(e.message)}finally{v(!1)}};return e?w&&S?(0,r.jsx)(i.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{s?.(),_()},onClose:()=>{C(!1),T(null)}}):(0,r.jsx)(i.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:_,size:"lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,r.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,r.jsx)("a",{href:`${u.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(n=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${n}/callback`)})]}),(0,r.jsx)(i.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,r.jsx)(i.pd,{label:"Client ID",value:h,onChange:e=>p(e.target.value),placeholder:"Your OAuth application client ID"}),(0,r.jsx)(i.pd,{label:"Client Secret (optional for PKCE)",value:b,onChange:e=>f(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,r.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:()=>{h.trim()?(k(null),T({baseUrl:u.trim()||o,clientId:h.trim(),clientSecret:b.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!h.trim(),children:"Authorize"}),(0,r.jsx)(i.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,r.jsx)("a",{href:`${u.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,r.jsx)(i.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,r.jsx)(i.pd,{label:"Personal Access Token",value:g,onChange:e=>y(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,r.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:A,fullWidth:!0,disabled:!g.trim()||j,loading:j,children:"Connect"}),(0,r.jsx)(i.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:n().bool.isRequired,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired}},96748:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:s,onSaved:l,node:n}){let c=!!n,[m,u]=(0,a.useState)({name:"",prefix:"",baseUrl:o}),[x,h]=(0,a.useState)(!1),[p,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[y,j]=(0,a.useState)(!1),[v,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(N(null),b(""),g(""),c?u({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o}):u({name:"",prefix:"",baseUrl:o}))},[e,c,n]);let k=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){h(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",r={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(r.type="custom-embedding");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await a.json();a.ok&&(c?l?.(i.node):s?.(i.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{h(!1)}}},w=async()=>{j(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:p,type:"custom-embedding",modelId:f.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,r.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,r.jsx)(i.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,r.jsx)(i.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,r.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>b(e.target.value)}),(0,r.jsx)(i.pd,{label:"Model ID (for Check)",value:f,onChange:e=>g(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(i.$n,{onClick:w,disabled:!p||!f.trim()||y||!m.baseUrl.trim(),variant:"secondary",children:y?"Checking...":"Check"}),(()=>{if(!v)return null;let{valid:e,error:t,dimensions:s}=v;return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ex,{variant:"success",children:"Valid"}),s&&(0,r.jsxs)("span",{className:"text-sm text-text-muted",children:[s," dims"]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(i.Ex,{variant:"error",children:"Invalid"}),t&&(0,r.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:k,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,r.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string})}},98542:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var r=s(95155),a=s(31474);function l({checked:e=!1,onChange:t,label:s,description:n,disabled:i=!1,size:o="md",className:d}){let c={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}};return(0,r.jsxs)("div",{className:(0,a.cn)("flex items-center gap-3",i&&"opacity-50 cursor-not-allowed",d),children:[(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:i,onClick:()=>{!i&&t&&t(!e)},className:(0,a.cn)("relative inline-flex shrink-0 cursor-pointer rounded-full","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-brand-500/30",e?"bg-brand-500":"bg-surface-3",c[o].track,i&&"cursor-not-allowed"),children:(0,r.jsx)("span",{className:(0,a.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[o].translate:"translate-x-0.5",c[o].thumb,"mt-0.5")})}),(s||n)&&(0,r.jsxs)("div",{className:"flex flex-col",children:[s&&(0,r.jsx)("span",{className:"text-sm font-medium text-text-main",children:s}),n&&(0,r.jsx)("span",{className:"text-xs text-text-muted",children:n})]})]})}}}]);
|
|
15
|
+
`,children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[f.includes(e.value)&&!s&&(0,r.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,r.jsxs)(r.Fragment,{children:[e.name,(0,r.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):e.name]})},e.value)})})]},e)),0===Object.keys(D).length&&0===z.length&&(0,r.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,r.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})]})}):null}u.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onSelect:n().func.isRequired,onDeselect:n().func,selectedModel:n().string,activeProviders:n().arrayOf(n().shape({provider:n().string.isRequired})),title:n().string,modelAliases:n().object,kindFilter:n().string,addedModelValues:n().arrayOf(n().string),closeOnSelect:n().bool,personalOnly:n().bool,extraModels:n().arrayOf(n().string)}},73006:(e,t,s)=>{"use strict";s.d(t,{FE:()=>u,Tl:()=>d,wn:()=>x});var r=s(93308);let a={},l=r.Xn,n=[];function i(){if("u"<typeof document)return r.Xn;let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${r.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):r.Xn;return(0,r.QC)(t)}async function o(e){if("en"===e){a={};return}try{let t=await fetch(`/i18n/literals/${e}.json`);a=await t.json()}catch(e){console.error("Failed to load translations:",e),a={}}}function d(e){if(!e||"string"!=typeof e)return e;let t=e.trim();return t&&"en"!==l&&a[t]||e}function c(e){if(!e.nodeValue||!e.nodeValue.trim())return;let t=e.parentElement;if(!t)return;let s=t;for(;s;){if(s.hasAttribute&&s.hasAttribute("data-i18n-skip"))return;s=s.parentElement}if(["script","style","code","pre","colgroup","table","thead","tbody","tfoot","tr","select","datalist","optgroup"].includes(t.tagName?.toLowerCase()))return;e._originalText||(e._originalText=e.nodeValue);let r=d(e._originalText);r!==e.nodeValue&&(e.nodeValue=r)}function m(e){let t;if(!e)return;let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r=[];for(;t=s.nextNode();)r.push(t);r.forEach(c)}async function u(){l=i(),await o(l),m(document.body),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE?m(e):e.nodeType===Node.TEXT_NODE&&c(e)})})}).observe(document.body,{childList:!0,subtree:!0})}async function x(){l=i(),await o(l),n.forEach(e=>e()),m(document.body)}},73579:(e,t,s)=>{"use strict";s.d(t,{default:()=>v});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(81127),o=s(11910),d=s(92542),c=s(56061),m=s(52679),u=s(90620),x=s(12494);let h=[0,1,2,3,4,5,6],p=[{value:1,label:"T2"},{value:2,label:"T3"},{value:3,label:"T4"},{value:4,label:"T5"},{value:5,label:"T6"},{value:6,label:"T7"},{value:0,label:"CN"}];function b(e,t){let s=String(e||"").trim();return/^([01]\d|2[0-3]):([0-5]\d)$/.test(s)?s:t}function f(e={}){let t=e&&"object"==typeof e?e:{},s=Array.isArray(t.weekdays)?t.weekdays.map(Number).filter(e=>e>=0&&e<=6):h;return{enabled:!1!==t.enabled,weekdays:[...new Set(s)].sort((e,t)=>e-t),fromTime:b(t.fromTime||t.from,"00:00"),toTime:b(t.toTime||t.to,"23:59")}}function g(e={}){var t;let s=e&&"object"==typeof e?e:{};return{enabled:!0===s.enabled,intervalSec:Math.max(10,Number.parseInt(s.intervalSec||60,10)||60),failureThreshold:Math.max(1,Number.parseInt(s.failureThreshold||3,10)||3),timeoutMs:Math.max(1e3,Number.parseInt(s.timeoutMs||15e3,10)||15e3),prompt:"string"==typeof s.prompt&&s.prompt.trim()?s.prompt.trim():"Say hi",disableThinking:!1!==s.disableThinking,model:"string"==typeof(t=s.model||s.healthModel||s.testModel)?t.trim():""}}function y(){return"text-xs font-medium text-text-muted"}function j(){return"mt-1 w-full rounded-lg border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary disabled:cursor-not-allowed disabled:opacity-50"}function v({isOpen:e,connection:t,proxyPools:s,onSave:l,onClose:n}){let[b,N]=(0,a.useState)({name:"",priority:1,apiKey:""}),[k,w]=(0,a.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[C,S]=(0,a.useState)({accountId:""}),[T,_]=(0,a.useState)(!1),[A,I]=(0,a.useState)(null),[M,$]=(0,a.useState)(!1),[P,R]=(0,a.useState)(null),[O,E]=(0,a.useState)(!1),[L,q]=(0,a.useState)(f()),[U,z]=(0,a.useState)(g()),[D,F]=(0,a.useState)(!1),[K,W]=(0,a.useState)(!1),[B,V]=(0,a.useState)([]),[G,H]=(0,a.useState)(!1),[J,Q]=(0,a.useState)("");(0,a.useEffect)(()=>{t&&(N({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData?w({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}):w({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),"cloudflare-ai"===t.provider&&t.providerSpecificData?S({accountId:t.providerSpecificData.accountId||""}):S({accountId:""}),q(f(t.schedule||{})),z(g(t.healthCheck||{})),F(!0===t.providerScheduleOverride),W(!0===t.providerHealthOverride),I(null),R(null))},[t]);let X=t?.authType==="oauth",Y=t?.provider==="azure",Z=t?.provider==="cloudflare-ai",ee=t?function(e=""){if((0,m.gb)(e))return"anthropic";if((0,m.mq)(e)||"cloudflare-ai"===e)return"openai";if("gemini"===e)return"gemini";if("github"===e)return"openai";let t=u.X3?.[e]||"";return t.includes("/messages")?"anthropic":t.includes("/chat/completions")||t.includes("/responses")?"openai":null}(t.provider):null,et=!!ee,es=(0,x.wB)(B,U.model);(0,a.useEffect)(()=>{if(!e||!t?.provider)return;let s=!1;return async function(){H(!0),Q("");try{let e=await (0,x.ns)({providerId:t.provider,connections:[t],currentModel:U.model||t.defaultModel||""});s||(V(e.models),Q(e.warning||""))}catch(e){s||(V([]),Q(e.message||"Kh\xf4ng tải được danh s\xe1ch Available Models cục bộ"))}finally{s||H(!1)}}(),()=>{s=!0}},[e,t,U.model]);let er=async()=>{if(t?.provider){_(!0),I(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),s=await e.json();I(s.valid?"success":"failed")}catch{I("failed")}finally{_(!1)}}},ea=async()=>{if(t?.provider&&b.apiKey){$(!0),R(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:b.apiKey,...Y?{providerSpecificData:k}:{},...Z?{providerSpecificData:C}:{}})}),s=await e.json();R(s.valid?"success":"failed")}catch{R("failed")}finally{$(!1)}}},el=async()=>{if(t){E(!0);try{let e={name:b.name,priority:b.priority,schedule:f(L),healthCheck:g(U)};if(!X&&b.apiKey){e.apiKey=b.apiKey;let s="success"===P;if(!s)try{$(!0),R(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:b.apiKey,...Y?{providerSpecificData:k}:{},...Z?{providerSpecificData:C}:{}})});s=!!(await e.json()).valid,R(s?"success":"failed")}catch{R("failed")}finally{$(!1)}s&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}Y&&(e.providerSpecificData={azureEndpoint:k.azureEndpoint,apiVersion:k.apiVersion,deployment:k.deployment,organization:k.organization}),Z&&(e.providerSpecificData={accountId:C.accountId}),await l(e)}finally{E(!1)}}};return t?(0,r.jsx)(i.default,{isOpen:e,onClose:n,title:"Chỉnh sửa connection",size:"full",children:(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsx)(o.default,{label:"T\xean",value:b.name,onChange:e=>N({...b,name:e.target.value}),placeholder:X?"T\xean t\xe0i khoản":"Key production"}),(0,r.jsx)(o.default,{label:"Độ ưu ti\xean",type:"number",value:b.priority,onChange:e=>N({...b,priority:Number.parseInt(e.target.value,10)||1})})]}),X&&t.email&&(0,r.jsxs)("div",{className:"rounded-lg border border-border bg-sidebar/40 px-3 py-2 text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"font-medium text-text-main",children:"Email:"})," ",t.email]}),!X&&(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(o.default,{label:"API Key",type:"password",value:b.apiKey,onChange:e=>N({...b,apiKey:e.target.value}),placeholder:"Nhập API key mới",hint:"Để trống nếu muốn giữ API key hiện tại.",className:"flex-1"}),(0,r.jsx)("div",{className:"pt-6",children:(0,r.jsx)(d.default,{onClick:ea,disabled:!b.apiKey||M||O,variant:"secondary",children:M?"Checking...":"Check"})}),P&&(0,r.jsx)("div",{className:"pt-7",children:(0,r.jsx)(c.default,{variant:"success"===P?"success":"error",children:"success"===P?"Valid":"Invalid"})})]}),Y&&(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-sidebar/40 p-4",children:[(0,r.jsx)("h3",{className:"mb-3 text-sm font-semibold text-text-main",children:"Cấu h\xecnh Azure OpenAI"}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsx)(o.default,{label:"Azure Endpoint",value:k.azureEndpoint,onChange:e=>w({...k,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,r.jsx)(o.default,{label:"T\xean deployment",value:k.deployment,onChange:e=>w({...k,deployment:e.target.value}),placeholder:"gpt-4"}),(0,r.jsx)(o.default,{label:"Phi\xean bản API",value:k.apiVersion,onChange:e=>w({...k,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,r.jsx)(o.default,{label:"Organization",value:k.organization,onChange:e=>w({...k,organization:e.target.value}),placeholder:"Organization ID"})]})]}),Z&&(0,r.jsx)(o.default,{label:"Cloudflare Account ID",value:C.accountId,onChange:e=>S({...C,accountId:e.target.value})}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-sidebar/30 p-4",children:[(0,r.jsx)("h3",{className:"mb-3 text-sm font-semibold text-text-main",children:"Lịch hoạt động"}),D&&(0,r.jsx)("p",{className:"mb-3 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-yellow-500",children:"Provider đang bật ghi đ\xe8 lịch. Lịch ri\xeang của t\xe0i khoản n\xe0y sẽ bị kh\xf3a v\xe0 bị bỏ qua khi ghi đ\xe8 c\xf2n bật."}),(0,r.jsxs)("label",{className:"mb-3 flex items-center gap-2 text-sm text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:L.enabled,disabled:D,onChange:e=>q(t=>({...t,enabled:e.target.checked}))}),"Bật lịch cho t\xe0i khoản"]}),(0,r.jsx)("div",{className:"mb-3 flex flex-wrap gap-2",children:p.map(e=>(0,r.jsxs)("label",{className:"flex items-center gap-1.5 rounded-lg border border-border px-2.5 py-1.5 text-xs text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:L.weekdays.includes(e.value),disabled:D,onChange:()=>q(t=>{let s=new Set(Array.isArray(t.weekdays)?t.weekdays:h);return s.has(e.value)?s.delete(e.value):s.add(e.value),{...t,weekdays:[...s].sort((e,t)=>e-t)}})}),e.label]},e.value))}),(0,r.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("label",{className:y(),children:["Từ giờ",(0,r.jsx)("input",{type:"time",value:L.fromTime,disabled:D,onChange:e=>q(t=>({...t,fromTime:e.target.value})),className:j()})]}),(0,r.jsxs)("label",{className:y(),children:["Đến giờ",(0,r.jsx)("input",{type:"time",value:L.toTime,disabled:D,onChange:e=>q(t=>({...t,toTime:e.target.value})),className:j()})]})]})]}),(0,r.jsxs)("section",{className:"rounded-xl border border-border bg-sidebar/30 p-4",children:[(0,r.jsx)("h3",{className:"mb-3 text-sm font-semibold text-text-main",children:"Kiểm tra sức khỏe bằng ping"}),K&&(0,r.jsx)("p",{className:"mb-3 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2 text-xs text-yellow-500",children:"Provider đang bật ghi đ\xe8 healthcheck. Ch\xednh s\xe1ch healthcheck ri\xeang của t\xe0i khoản n\xe0y sẽ bị kh\xf3a v\xe0 bị bỏ qua khi ghi đ\xe8 c\xf2n bật."}),(0,r.jsxs)("label",{className:"mb-3 flex items-center gap-2 text-sm text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:U.enabled,disabled:K,onChange:e=>z(t=>({...t,enabled:e.target.checked}))}),"Bật healthcheck định kỳ"]}),U.enabled&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("label",{className:y(),children:["Model d\xf9ng để healthcheck",(0,r.jsxs)("select",{value:U.model||"",onChange:e=>z(t=>({...t,model:e.target.value})),className:j(),disabled:K||G,children:[(0,r.jsx)("option",{value:"",children:"Chỉ kiểm tra connection/base URL — kh\xf4ng ping chat"}),es.map(e=>(0,r.jsx)("option",{value:e.id,children:e.name||e.id},e.id))]})]}),(0,r.jsxs)("label",{className:`${y()} mt-3 block`,children:["Nhập model healthcheck thủ c\xf4ng",(0,r.jsx)("input",{value:U.model||"",onChange:e=>z(t=>({...t,model:e.target.value})),placeholder:"anthropic"===ee?"t\xean model Claude từ endpoint n\xe0y":"gemini"===ee?"model Gemini, v\xed dụ gemini-2.5-flash":"t\xean model từ Available Models",className:j(),disabled:K||G})]}),G&&(0,r.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"Đang tải Available Models cục bộ..."}),J&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-yellow-500",children:["Ghi ch\xfa danh s\xe1ch model: ",J]}),!G&&!J&&(0,r.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"Danh s\xe1ch model được lấy từ Available Models / DB cục bộ, kh\xf4ng gọi API /models của provider."}),"anthropic"===ee&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-text-muted",children:["Healthcheck tương th\xedch Anthropic gửi ",(0,r.jsx)("code",{children:"Say hi"})," tới ",(0,r.jsx)("code",{children:"/v1/messages"})," chỉ khi đ\xe3 chọn model."]}),"gemini"===ee&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-text-muted",children:["Healthcheck Gemini gửi ",(0,r.jsx)("code",{children:"Say hi"})," bằng API native ",(0,r.jsx)("code",{children:"generateContent"})," chỉ khi đ\xe3 chọn model."]}),"cloudflare-ai"===t.provider&&(0,r.jsxs)("p",{className:"mt-2 text-xs text-text-muted",children:["Healthcheck Cloudflare gửi ",(0,r.jsx)("code",{children:"Say hi"})," tới Workers AI OpenAI-style chat endpoint chỉ khi đ\xe3 chọn model."]}),!et&&(0,r.jsx)("p",{className:"mt-2 text-xs text-text-muted",children:"Provider n\xe0y vẫn c\xf3 thể hiển thị Available Models cục bộ. Auto healthcheck sẽ tiếp tục d\xf9ng kiểm tra connection/token/account gốc cho đến khi c\xf3 direct chat endpoint."})]}),U.enabled&&(!et||!U.model)&&(0,r.jsx)("p",{className:"mt-4 rounded-lg border border-border bg-background/60 px-3 py-2 text-xs text-text-muted",children:"Chưa bật model/endpoint direct chat healthcheck. Auto healthcheck sẽ kiểm tra connection/base URL/key/token/account v\xe0 kh\xf4ng gửi ping chat Say hi."}),(0,r.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:[(0,r.jsxs)("label",{className:y(),children:["Chu kỳ (gi\xe2y)",(0,r.jsx)("input",{type:"number",min:"10",value:U.intervalSec,disabled:K,onChange:e=>z(t=>({...t,intervalSec:Math.max(10,Number.parseInt(e.target.value,10)||60)})),className:j()})]}),(0,r.jsxs)("label",{className:y(),children:["Ngưỡng lỗi",(0,r.jsx)("input",{type:"number",min:"1",value:U.failureThreshold,disabled:K,onChange:e=>z(t=>({...t,failureThreshold:Math.max(1,Number.parseInt(e.target.value,10)||3)})),className:j()})]}),(0,r.jsxs)("label",{className:y(),children:["Timeout (ms)",(0,r.jsx)("input",{type:"number",min:"1000",value:U.timeoutMs,disabled:K,onChange:e=>z(t=>({...t,timeoutMs:Math.max(1e3,Number.parseInt(e.target.value,10)||15e3)})),className:j()})]})]}),(0,r.jsxs)("label",{className:`${y()} mt-3 block`,children:["Lời nhắc",(0,r.jsx)("input",{value:U.prompt,disabled:K,onChange:e=>z(t=>({...t,prompt:e.target.value})),className:j()})]}),(0,r.jsxs)("label",{className:"mt-3 flex items-center gap-2 text-sm text-text-main",children:[(0,r.jsx)("input",{type:"checkbox",checked:U.disableThinking,disabled:K,onChange:e=>z(t=>({...t,disableThinking:e.target.checked}))}),"Ưu ti\xean payload kiểm tra nhẹ / tắt thinking nếu được hỗ trợ"]}),(0,r.jsxs)("div",{className:"mt-3 text-xs text-text-muted",children:["Trạng th\xe1i: ",(0,r.jsx)("span",{className:"font-medium text-text-main",children:t.healthStatus||"kh\xf4ng r\xf5"}),t.healthLastCheckedAt&&(0,r.jsxs)("span",{children:[" \xb7 lần kiểm tra cuối: ",function(e){if(!e)return"";try{return new Date(e).toLocaleString()}catch{return String(e)}}(t.healthLastCheckedAt)]}),t.healthLastError&&(0,r.jsx)("p",{className:"mt-1 break-words text-red-500",children:t.healthLastError})]})]}),!Y&&!Z&&(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(d.default,{onClick:er,disabled:T,variant:"secondary",children:T?"Đang kiểm tra...":"Kiểm tra connection"}),A&&(0,r.jsx)(c.default,{variant:"success"===A?"success":"error",children:"success"===A?"Hợp lệ":"Thất bại"})]}),(0,r.jsxs)("div",{className:"flex gap-2 border-t border-border pt-4",children:[(0,r.jsx)(d.default,{onClick:el,disabled:O||Y&&(!k.azureEndpoint||!k.deployment||!k.organization)||Z&&!C.accountId,fullWidth:!0,children:O?"Đang lưu...":"Lưu"}),(0,r.jsx)(d.default,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}v.propTypes={isOpen:n().bool.isRequired,connection:n().shape({id:n().string,name:n().string,email:n().string,priority:n().number,authType:n().string,provider:n().string,defaultModel:n().string,providerSpecificData:n().object,schedule:n().object,healthCheck:n().object,healthStatus:n().string,healthLastCheckedAt:n().string,healthLastError:n().string,providerScheduleOverride:n().bool,providerHealthOverride:n().bool}),proxyPools:n().arrayOf(n().shape({id:n().string,name:n().string})),onSave:n().func.isRequired,onClose:n().func.isRequired}},74891:(e,t,s)=>{"use strict";s.d(t,{default:()=>f});var r=s(95155),a=s(12115),l=s(73321),n=s(98500),i=s.n(n),o=s(14051),d=s.n(o),c=s(80752),m=s(38587),u=s(94027),x=s(38003),h=s(90620),p=s(52679),b=s(73006);function f({onMenuClick:e,showMenuButton:t=!0}){let s=(0,l.usePathname)(),n=(0,l.useRouter)(),{displayName:o,loginMethod:d}=(0,u.s)(),{title:x,description:y,icon:j,breadcrumbs:v}=(0,a.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],s=t[2],r=p.rj.find(t=>t.id===e),a=p.Q2[s];return{title:a?.name||s,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:r?.label||e,href:`/dashboard/media-providers/${e}`},{label:a?.name||s,image:`/providers/${s}.png`}]}}let s=e.match(/\/media-providers\/([^/]+)$/);if(s){let e=s[1],t=p.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let r=e.match(/\/providers\/([^/]+)$/);if(r){let e=r[1],t=h.zN[e]||h.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:`/providers/${t.id}.png`}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/token-saver")?{title:"Token Saver Analytics",description:"Theo d\xf5i hiệu quả RTK token saving theo source tool, provider, model v\xe0 filter",icon:"compress",breadcrumbs:[]}:e.includes("/analytics")?{title:"Analytics",description:"Thống k\xea request, token, API key, Source IP, provider, model v\xe0 lỗi vận h\xe0nh",icon:"monitoring",breadcrumbs:[]}:e.includes("/resource-monitor")?{title:"Linux Resources",description:"Realtime resource monitoring for remote Linux servers",icon:"monitor_heart",breadcrumbs:[]}:e.includes("/cluster")?{title:"Cluster Nodes",description:"Synchronize Master backups to Standby BlueRouter nodes",icon:"hub",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"AI Traffic Proxy",description:"Intercept CLI tool traffic and route through this router gateway",icon:"security",breadcrumbs:[]}:e.includes("/prompt-logs")?{title:"Prompt Logs",description:"Search Copilot/MITM prompts across the prompt log database",icon:"manage_search",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"terminal",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use this Router — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:e.includes("/api-keys")?{title:"API Keys",description:"Manage API keys and model access",icon:"vpn_key",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"api",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(s),[s]),N=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&(n.push("/login"),n.refresh())}catch(e){console.error("Failed to logout:",e)}};return(0,r.jsx)("header",{className:"sticky top-0 z-30 border-b border-border bg-background/80 backdrop-blur",children:(0,r.jsxs)("div",{className:"flex min-h-[72px] items-center justify-between gap-4 px-4 md:px-6",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[t?(0,r.jsx)("button",{type:"button",onClick:e,className:"rounded-xl border border-border p-2 text-text-muted hover:bg-surface hover:text-text-main lg:hidden","aria-label":"Open menu",children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}):null,(0,r.jsx)("div",{className:"min-w-0",children:v.length>0?(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-1 text-sm text-text-muted",children:v.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[t>0?(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"}):null,e.href?(0,r.jsx)(i(),{href:e.href,className:"hover:text-primary",children:(0,b.Tl)(e.label)}):(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[e.image?(0,r.jsx)("img",{src:e.image,alt:"",className:"h-5 w-5 rounded"}):null,(0,r.jsx)("h1",{className:"text-xl font-semibold text-text-main",children:(0,b.Tl)(e.label)})]})]},`${e.label}-${t}`))}):x?(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[j?(0,r.jsx)("span",{className:"material-symbols-outlined text-primary",children:j}):null,(0,r.jsx)("h1",{className:"truncate text-xl font-semibold text-text-main",children:(0,b.Tl)(x)})]}),y?(0,r.jsx)("p",{className:"mt-1 truncate text-sm text-text-muted",children:(0,b.Tl)(y)}):null]}):null})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,r.jsx)(g,{}),o&&"OIDC"===d?(0,r.jsxs)("div",{className:"hidden items-center gap-2 rounded-xl border border-border px-3 py-2 text-sm text-text-muted md:flex",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"person"}),(0,r.jsx)("span",{children:o}),(0,r.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs text-primary",children:"OIDC"})]}):null,(0,r.jsx)(m.default,{}),(0,r.jsx)(c.default,{onLogout:N})]})]})})}function g(){let e=(0,x.C)(e=>e.visible),t=(0,x.C)(e=>e.query),s=(0,x.C)(e=>e.placeholder),a=(0,x.C)(e=>e.setQuery);return e?(0,r.jsxs)("div",{className:"relative hidden w-72 md:block",children:[(0,r.jsx)("span",{className:"material-symbols-outlined pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-[18px] text-text-muted",children:"search"}),(0,r.jsx)("input",{value:t,onChange:e=>a(e.target.value),placeholder:s,className:"h-9 w-full rounded-lg border border-border bg-surface/60 pl-8 pr-8 text-sm text-text-main outline-none transition-colors placeholder:text-text-muted focus:border-primary/50"}),t?(0,r.jsx)("button",{type:"button",onClick:()=>a(""),className:"absolute right-1 top-1/2 -translate-y-1/2 rounded p-0.5 text-text-muted hover:text-text-main","aria-label":"Clear search",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})}):null]}):null}f.propTypes={onMenuClick:d().func,showMenuButton:d().bool}},77907:(e,t,s)=>{"use strict";s.d(t,{Fv:()=>r,SI:()=>a,VC:()=>i}),Object.freeze({ADMIN:"admin",MONITOR_ADMIN:"monitor_admin",AI_GATEWAYS_MONITOR:"ai_gateways_monitor",USER:"user",GUEST:"guest"});let r="/dashboard/endpoint",a=Object.freeze([{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"}]),l=Object.freeze(["/dashboard","/dashboard/endpoint","/dashboard/api-keys","/dashboard/usage","/dashboard/analytics","/dashboard/ai-power-index","/dashboard/quota"]);function n(e=""){return String(e||"").split("?")[0].replace(/\/+$/,"")||"/"}function i(e=""){let t=n(e);return"/dashboard"===t||l.filter(e=>"/dashboard"!==e).some(e=>{let s,r;return s=n(t),s===(r=n(e))||s.startsWith(`${r}/`)})}},78314:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(95155),a=s(90882),l=s(12115),n=s(81127),i=s(92542),o=s(11059);function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:a,connectionScope:c="personal"}){let[m,u]=(0,l.useState)(null),[x,h]=(0,l.useState)("starting"),[p,b]=(0,l.useState)(""),f=(0,l.useRef)(!1),g=(0,l.useRef)(0),{copied:y,copy:j}=(0,o.C)(),v=m?.verification_uri_complete||m?.verification_uri||"",N=(0,l.useCallback)(async(e,t,r)=>{let a=Math.max(2,Number(t)||5);for(let t=0;t<120&&!f.current&&g.current===r;t+=1){if(await new Promise(e=>setTimeout(e,1e3*a)),f.current||g.current!==r)return;try{let t=await fetch("/api/oauth/grok-cli/poll",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,connectionScope:c})}),r=await t.json().catch(()=>({}));if(r.success){f.current=!0,h("success"),s?.();return}if(!t.ok||r.error&&!r.pending&&"authorization_pending"!==r.error&&"slow_down"!==r.error)throw Error(r.errorDescription||r.error||`Authorization failed (${t.status})`)}catch(e){if(f.current||g.current!==r)return;b(e?.message||"Authorization failed"),h("error");return}}f.current||g.current!==r||(b("Authorization timeout. Please try again."),h("error"))},[c,s]),k=(0,l.useCallback)(async()=>{f.current=!1;let e=++g.current;h("starting"),b(""),u(null);try{let t=new URL("/api/oauth/grok-cli/device-code",window.location.origin);t.searchParams.set("connection_scope",c);let s=await fetch(t.toString(),{cache:"no-store"}),r=await s.json().catch(()=>({}));if(!s.ok)throw Error(r.error||"Unable to start Grok authorization");if(f.current||g.current!==e)return;u(r),h("waiting");let a=r.verification_uri_complete||r.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer"),N(r.device_code,r.interval||5,e)}catch(t){if(f.current||g.current!==e)return;b(t?.message||"Unable to start Grok authorization"),h("error")}},[c,N]);(0,l.useEffect)(()=>(e?k():(f.current=!0,g.current+=1),()=>{f.current=!0,g.current+=1}),[e,k]);let w=()=>{f.current=!0,g.current+=1,a?.()};return(0,r.jsx)(n.default,{isOpen:e,onClose:w,title:`Connect ${t?.name||"Grok CLI"}`,busy:"starting"===x,footer:(0,r.jsxs)("div",{className:"flex items-center justify-end gap-2",children:["error"===x&&(0,r.jsx)(i.default,{variant:"secondary",onClick:k,children:"Try again"}),(0,r.jsx)(i.default,{variant:"secondary",onClick:w,children:"success"===x?"Done":"Close"})]}),children:(0,r.jsxs)("div",{className:"space-y-4 p-1",children:[(0,r.jsx)("p",{className:"text-sm text-text-muted",children:"Sign in with your xAI / Grok account. This connects Grok Build / SuperGrok subscription access, separate from the xAI API provider."}),"starting"===x&&(0,r.jsx)("div",{className:"text-sm text-text-muted",children:"Requesting a Grok device code…"}),m&&"success"!==x&&(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"rounded-lg border border-border-subtle bg-surface-secondary p-3",children:[(0,r.jsx)("div",{className:"text-xs uppercase tracking-wide text-text-muted",children:"Device code"}),(0,r.jsxs)("div",{className:"mt-1 flex items-center justify-between gap-3",children:[(0,r.jsx)("code",{className:"text-xl font-semibold tracking-wider text-text-main",children:m.user_code||"—"}),m.user_code&&(0,r.jsx)(i.default,{size:"sm",variant:"secondary",onClick:()=>j(m.user_code),children:y?"Copied":"Copy"})]})]}),(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:v&&(0,r.jsx)(i.default,{onClick:()=>window.open(v,"_blank","noopener,noreferrer"),children:"Open authorization page"})}),(0,r.jsx)("div",{className:"text-sm text-text-muted",children:"Waiting for authorization… You can keep this dialog open while approving the device code."})]}),"success"===x&&(0,r.jsx)("div",{className:"rounded-lg border border-border-subtle p-3 text-sm text-text-main",children:"Grok CLI connected. Models and quota will be imported automatically."}),p&&(0,r.jsx)("div",{className:"rounded-lg border border-red-500/30 bg-red-500/5 p-3 text-sm text-red-500",children:p})]})})}function c(e){return e?.provider==="grok-cli"?(0,r.jsx)(d,{...e}):(0,r.jsx)(a.A,{...e})}},80752:(e,t,s)=>{"use strict";s.d(t,{default:()=>f});var r=s(95155),a=s(12115),l=s(47650),n=s(14051),i=s.n(n),o=s(93308),d=s(1620),c=s(94027),m=s(40197);s(14932);var u=s(21931),x=s(92542),h=s(81127);let p={en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (BR)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (PT)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"}};function b({icon:e,label:t,onClick:s,trailing:a,danger:l}){return(0,r.jsxs)("button",{onClick:s,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${l?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[20px] ${l?"":"text-text-muted"}`,children:e}),(0,r.jsx)("span",{className:"flex-1 text-left",children:t}),a&&(0,r.jsx)("span",{className:"text-base",children:a})]})}function f({onLogout:e}){let[t,s]=(0,a.useState)(!1),[n,i]=(0,a.useState)(!1),[g,y]=(0,a.useState)(!1),[j,v]=(0,a.useState)(!1),[N,k]=(0,a.useState)(""),[w,C]=(0,a.useState)(10),[S,T]=(0,a.useState)(!1),[_,A]=(0,a.useState)("en"),{toggleTheme:I,isDark:M}=(0,d.D)(),{isAdmin:$}=(0,c.s)(),P=(0,a.useRef)(null),R=(0,a.useRef)(null),O=(0,a.useRef)(null);(0,a.useEffect)(()=>{A(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${o.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,o.QC)(t)}())},[S]),(0,a.useEffect)(()=>{let e=e=>{P.current&&!P.current.contains(e.target)&&s(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,a.useEffect)(()=>()=>{R.current&&clearTimeout(R.current),O.current&&clearInterval(O.current)},[]);let E=()=>{R.current&&(clearTimeout(R.current),R.current=null),O.current&&(clearInterval(O.current),O.current=null)},L=()=>{j||(y(!1),k(""),C(10))},q=async()=>{if($&&!j){v(!0),k("");try{let e=await fetch("/api/version/restart",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok||t?.success===!1)throw Error(t?.message||"Restart request failed");E(),C(10),O.current=setInterval(()=>{C(e=>Math.max(0,e-1))},1e3),R.current=setTimeout(()=>{window.location.reload()},1e4)}catch(e){E(),C(10),k(e?.message||"Restart request failed"),v(!1)}}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative",ref:P,children:[(0,r.jsx)("button",{onClick:()=>s(e=>!e),className:"flex items-center justify-center p-2 rounded-lg text-text-muted hover:text-text-main hover:bg-black/5 dark:hover:bg-white/5 transition-all",title:"Menu",children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,r.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,r.jsx)(b,{icon:"history",label:"Change Log",onClick:()=>{s(!1),i(!0)}}),(0,r.jsx)(b,{icon:"language",label:p[_]?.name||_,trailing:p[_]?.flag||"\uD83C\uDF10",onClick:()=>{s(!1),T(!0)}}),(0,r.jsx)(b,{icon:M?"light_mode":"dark_mode",label:"Theme",onClick:()=>{I(),s(!1)}}),(0,r.jsx)(b,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{s(!1),e()}}),$?(0,r.jsx)(b,{icon:"restart_alt",label:j?"Restarting...":"Restart",danger:!0,onClick:()=>{$&&!j&&(s(!1),k(""),y(!0))}}):null]})]}),g&&"u">typeof document?(0,l.createPortal)((0,r.jsx)(h.default,{isOpen:g,onClose:L,title:"Restart BlueRouter",size:"sm",closeOnOverlay:!j,className:"overflow-hidden",footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.default,{variant:"ghost",onClick:L,disabled:j,children:"Cancel"}),(0,r.jsx)(x.default,{variant:"primary",icon:"restart_alt",loading:j,onClick:q,children:j?"Restarting":"Restart now"})]}),children:(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("div",{className:"rounded-2xl border border-primary/15 bg-primary/10 p-4",children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl bg-primary/15 text-primary",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"restart_alt"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Confirm service restart"}),(0,r.jsx)("p",{className:"mt-1 text-sm leading-6 text-text-muted",children:"The dashboard and API gateway may be unavailable for a few seconds while BlueRouter restarts."})]})]})}),N?(0,r.jsxs)("div",{className:"flex gap-2 rounded-xl border border-red-500/20 bg-red-500/10 p-3 text-sm text-red-600 dark:text-red-300",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"error"}),(0,r.jsx)("span",{children:N})]}):null,j?(0,r.jsxs)("div",{className:"flex items-center gap-2 rounded-xl border border-border bg-surface-2 px-3 py-2 text-xs font-medium text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px] text-primary",children:"progress_activity"}),"Restart command sent. This page will reload automatically in ",w,"s."]}):null]})}),document.body):null,(0,r.jsx)(m.default,{isOpen:n,onClose:()=>i(!1)}),(0,r.jsx)(u.default,{hideTrigger:!0,isOpen:S,onClose:e=>{T(!1),A(e)}})]})}b.propTypes={icon:i().string.isRequired,label:i().string.isRequired,onClick:i().func.isRequired,trailing:i().node,danger:i().bool},f.propTypes={onLogout:i().func.isRequired}},84588:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var r=s(95155),a=s(31474);function l({children:e,title:t,subtitle:s,icon:n,action:i,padding:o="md",hover:d=!1,elev:c=!1,className:m,...u}){return(0,r.jsxs)("div",{className:(0,a.cn)("bg-surface border border-border",c?"rounded-[14px] shadow-[var(--shadow-elev)]":"rounded-[14px] shadow-[0_1px_2px_rgba(15,23,42,0.045),0_12px_28px_-26px_rgba(37,99,235,0.38)]",d&&"hover:shadow-[var(--shadow-warm)] hover:border-brand-500/40 transition-all cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-5",lg:"p-6"}[o],m),...u,children:[(t||i)&&(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[n&&(0,r.jsx)("div",{className:"p-2 rounded-[10px] bg-bg-alt border border-border-subtle text-text-muted",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:n})}),(0,r.jsxs)("div",{children:[t&&(0,r.jsx)("h3",{className:"text-text-main font-semibold",children:t}),s&&(0,r.jsx)("p",{className:"text-sm text-text-muted",children:s})]})]}),i]}),e]})}l.Section=function({children:e,className:t,...s}){return(0,r.jsx)("div",{className:(0,a.cn)("p-4 rounded-[10px]","bg-bg-alt border border-border",t),...s,children:e})},l.Row=function({children:e,className:t,...s}){return(0,r.jsx)("div",{className:(0,a.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...s,children:e})},l.ListItem=function({children:e,actions:t,className:s,...l}){return(0,r.jsxs)("div",{className:(0,a.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",s),...l,children:[(0,r.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,r.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},86671:(e,t,s)=>{"use strict";s.d(t,{default:()=>g});var r=s(95155),a=s(12115),l=s(73321),n=s(65921),i=s(94027),o=s(92622),d=s(74891),c=s(77907);let m=["/dashboard/api-keys","/dashboard/personal","/dashboard/personalcloudprovider","/dashboard/personalquota","/dashboard/usage","/dashboard/analytics","/dashboard/ai-power-index","/dashboard/token-saver"];function u(e,t){return e===t||e.startsWith(`${t}/`)}function x({children:e}){let t=(0,l.usePathname)(),s=(0,l.useRouter)(),{isAdmin:n,isMonitorAdmin:o,canUseAuditProxy:d,loading:h}=(0,i.s)(),p=function({pathname:e,isAdmin:t,isMonitorAdmin:s,canUseAuditProxy:r}){return!!(t||r&&u(e,"/dashboard/audit-proxy"))||(s?(0,c.VC)(e):m.some(t=>u(e,t)))}({pathname:t,isAdmin:n,isMonitorAdmin:o,canUseAuditProxy:d});return((0,a.useEffect)(()=>{h||p||s.replace(function({isMonitorAdmin:e}){return e?c.Fv:"/dashboard/api-keys"}({isMonitorAdmin:o}))},[p,o,h,s]),h)?(0,r.jsxs)("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined mr-2 animate-spin",children:"progress_activity"}),"Đang tải dashboard..."]}):p?e:(0,r.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-text-muted",children:"Đang chuyển hướng..."})}var h=s(18088),p=s.n(h),b=s(61460),f=s.n(b);function g({children:e}){let[t,s]=(0,a.useState)(!1),c=(0,n.i)(e=>e.notifications),m=(0,n.i)(e=>e.removeNotification),u=(0,l.usePathname)();return(0,r.jsx)(i.Y,{children:(0,r.jsx)(x,{children:(0,r.jsxs)("div",{className:`${p().dashboardShell} min-h-screen bg-bg text-text-main`,children:[(0,r.jsx)("div",{className:"fixed right-4 top-4 z-[100] w-[min(420px,calc(100vw-2rem))] space-y-2",children:c.map(e=>{var t;let s="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,r.jsx)("div",{className:`rounded-2xl border px-4 py-3 shadow-lg backdrop-blur ${s.wrapper}`,children:(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:s.icon}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,r.jsx)("div",{className:"font-semibold",children:e.title}):null,(0,r.jsx)("div",{className:"text-sm opacity-90",children:e.message})]}),e.dismissible?(0,r.jsx)("button",{type:"button",onClick:()=>m(e.id),className:"text-current/70 hover:text-current","aria-label":"Dismiss notification",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})}):null]})},e.id)})}),t?(0,r.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40 lg:hidden",onClick:()=>s(!1)}):null,(0,r.jsxs)("div",{className:"flex min-h-screen",children:[(0,r.jsx)("div",{className:`${f().sidebarHost} hidden lg:block`,children:(0,r.jsx)(o.default,{})}),(0,r.jsx)("div",{className:`${f().sidebarHost} fixed inset-y-0 left-0 z-50 transform transition-transform lg:hidden ${t?"translate-x-0":"-translate-x-full"}`,children:(0,r.jsx)(o.default,{onClose:()=>s(!1)})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 bg-bg",children:[(0,r.jsx)(d.default,{onMenuClick:()=>s(!0)},u),(0,r.jsx)("main",{"data-dashboard-path":u,className:`${f().content} w-full px-3 py-4 md:px-4 md:py-5 lg:px-5 xl:px-6`,children:e})]})]})]})})})}},87600:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497);let o="http://localhost:8009/v1/audio/transcriptions";function d({isOpen:e,onClose:t,onCreated:s,onSaved:l,node:n}){let c=!!n,[m,u]=(0,a.useState)({name:"",prefix:"",baseUrl:o,authHeader:"bearer",apiKey:"",defaultModel:"whisper-1"}),[x,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&(c?u({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o,authHeader:n.authHeader||"bearer",apiKey:n.apiKey||"",defaultModel:n.defaultModel||"whisper-1"}):u({name:"",prefix:"",baseUrl:o,authHeader:"bearer",apiKey:"",defaultModel:"whisper-1"}))},[e,c,n]);let p=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){h(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",r={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl,authHeader:m.authHeader,apiKey:m.apiKey,defaultModel:m.defaultModel};c||(r.type="custom-stt");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await a.json();a.ok?c?l?.(i.node):s?.(i.node):alert(i.error||"Failed to save custom STT provider")}catch(e){console.log("Error saving custom STT node:",e),alert("Failed to save custom STT provider")}finally{h(!1)}}};return(0,r.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom STT":"Add Custom STT",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Local Faster Whisper"}),(0,r.jsx)(i.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"localstt",hint:"Client model will be prefix/model, e.g. localstt/whisper-1."}),(0,r.jsx)(i.pd,{label:"Transcription Endpoint",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:o,hint:"Full OpenAI-compatible /v1/audio/transcriptions endpoint. If you enter /v1, BlueRouter appends /audio/transcriptions."}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Upstream Auth"}),(0,r.jsxs)("select",{value:m.authHeader,onChange:e=>u({...m,authHeader:e.target.value}),className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,r.jsx)("option",{value:"bearer",children:"Bearer token"}),(0,r.jsx)("option",{value:"x-api-key",children:"x-api-key"}),(0,r.jsx)("option",{value:"none",children:"No auth"})]})]}),"none"!==m.authHeader&&(0,r.jsx)(i.pd,{label:"Upstream API Key",type:"password",value:m.apiKey,onChange:e=>u({...m,apiKey:e.target.value}),placeholder:"Token required by the STT server"}),(0,r.jsx)(i.pd,{label:"Default Model",value:m.defaultModel,onChange:e=>u({...m,defaultModel:e.target.value}),placeholder:"whisper-1",hint:"Shown in /v1/models/stt and example. Requests may still use any model after the prefix."}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:p,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,r.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string,authHeader:n().string,apiKey:n().string,defaultModel:n().string})}},90085:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r=s(1934),a=s(31692),l=s(90620);function n(e){let t=document.documentElement,s=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";"dark"===("system"===e?s:e)?t.classList.add("dark"):t.classList.remove("dark")}let i=(0,r.v)((0,a.Zr)((e,t)=>({theme:l.B2.defaultTheme,setTheme:t=>{e({theme:t}),n(t)},toggleTheme:()=>{let s="dark"===t().theme?"light":"dark";e({theme:s}),n(s)},initTheme:()=>{n(t().theme)}}),{name:l.B2.storageKey}))},90882:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497),o=s(11059);function d({isOpen:e,provider:t,providerInfo:s,onSuccess:l,onClose:n,oauthMeta:c,idcConfig:m,connectionScope:u="system",reauthConnectionId:x=""}){let[h,p]=(0,a.useState)("waiting"),[b,f]=(0,a.useState)(null),[g,y]=(0,a.useState)(""),[j,v]=(0,a.useState)(null),[N,k]=(0,a.useState)(!1),[w,C]=(0,a.useState)(null),[S,T]=(0,a.useState)(!1),_=(0,a.useRef)(null),A=(0,a.useRef)(!1),{copied:I,copy:M}=(0,o.C)(),[$,P]=(0,a.useState)(!1),[R,O]=(0,a.useState)("/callback?code=..."),E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{P("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),O(`${window.location.origin}/callback?code=...`)},[]);let L=(0,a.useCallback)(async(e,s)=>{if(b)try{let r=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:b.redirectUri,codeVerifier:b.codeVerifier,state:s,...c?{meta:c}:{},..."personal"===u||x?{connectionScope:"personal"}:{},...x?{reauthConnectionId:x}:{}})}),a=await r.json();if(!r.ok)throw Error(a.error);p("success"),l?.()}catch(e){v(e.message),p("error")}},[b,t,l,c,u,x]),q=(0,a.useCallback)(async e=>{if(b?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:b.state})}),s=await t.json();if(!t.ok)throw Error(s.error);p("success"),l?.()}catch(e){v(e.message),p("error")}},[b,l]),U=(0,a.useCallback)(async(e,s,r,a)=>{A.current=!1,T(!0);for(let n=0;n<60;n++){if(A.current){console.log("[OAuthModal] Polling aborted"),T(!1);return}if(await new Promise(e=>setTimeout(e,1e3*r)),A.current){console.log("[OAuthModal] Polling aborted after sleep"),T(!1);return}try{let n=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:s,extraData:a,..."personal"===u||x?{connectionScope:"personal"}:{},...x?{reauthConnectionId:x}:{}})}),i=await n.json();if(i.success){A.current=!0,p("success"),T(!1),l?.();return}if("expired_token"===i.error||"access_denied"===i.error)throw Error(i.errorDescription||i.error);"slow_down"===i.error&&(r=Math.min(r+5,30))}catch(e){v(e.message),p("error"),T(!1);return}}v("Authorization timeout"),p("error"),T(!1)},[t,l,u,x]),z=(0,a.useCallback)(async()=>{if(t)try{let e;if(v(null),["github","qwen","kiro","kimi-coding","kilocode","codebuddy"].includes(t)){k(!0),p("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);("personal"===u||x)&&e.searchParams.set("connection_scope","personal"),x&&e.searchParams.set("reauth_connection_id",x),"kiro"===t&&m?.startUrl&&(e.searchParams.set("start_url",m.startUrl),m.region&&e.searchParams.set("region",m.region),e.searchParams.set("auth_method","idc"));let s=await fetch(e.toString()),r=await s.json();if(!s.ok)throw Error(r.error);C(r);let a=r.verification_uri_complete||r.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer");let l="kiro"===t?{_clientId:r._clientId,_clientSecret:r._clientSecret,_region:r._region,_authMethod:r._authMethod,_startUrl:r._startUrl}:null;U(r.device_code,r.codeVerifier,r.interval||5,l);return}let s=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":$?`${window.location.origin}/callback`:"http://localhost:54545/callback";let r=new URL(`/api/oauth/${t}/authorize`,window.location.origin);r.searchParams.set("redirect_uri",e),("personal"===u||x)&&r.searchParams.set("connection_scope","personal"),x&&r.searchParams.set("reauth_connection_id",x),c&&Object.entries(c).forEach(([e,t])=>{t&&r.searchParams.set(e,t)});let a=await fetch(r.toString()),l=await a.json();if(!a.ok)throw Error(l.error);let n=!1,i=!1;if("codex"===t)try{let t=new URL("/api/oauth/codex/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",l.state),t.searchParams.set("code_verifier",l.codeVerifier),t.searchParams.set("redirect_uri",e),("personal"===u||x)&&t.searchParams.set("connection_scope","personal"),x&&t.searchParams.set("reauth_connection_id",x);let r=await fetch(t.toString()),a=await r.json();n=a.success,i=!!a.serverSide}catch{n=!1}let o=!1,d=!1;if("xai"===t)try{let t=new URL("/api/oauth/xai/start-proxy",window.location.origin);t.searchParams.set("app_port",s),t.searchParams.set("state",l.state),t.searchParams.set("code_verifier",l.codeVerifier),t.searchParams.set("redirect_uri",e),("personal"===u||x)&&t.searchParams.set("connection_scope","personal"),x&&t.searchParams.set("reauth_connection_id",x);let r=await fetch(t.toString()),a=await r.json();if(o=a.success,d=!!a.serverSide,!o&&"port_busy"===a.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;o=!1}f({...l,redirectUri:e,codexServerSide:i,xaiServerSide:d}),"codex"===t&&n||"xai"===t&&o||$&&"codex"!==t&&"xai"!==t?(p("waiting"),_.current=window.open(l.authUrl,"oauth_popup","width=600,height=700"),_.current||p("input")):(p("input"),window.open(l.authUrl,"_blank"))}catch(e){v(e.message),p("error")}},[t,$,U,c,m,u,x]);(0,a.useEffect)(()=>{e&&t?(f(null),y(""),v(null),k(!1),C(null),T(!1),A.current=!1,z()):e||(A.current=!0,"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}))},[e,t,z]),(0,a.useEffect)(()=>{let e=b?.codexServerSide?"codex":b?.xaiServerSide?"xai":null;if(!e||!b?.state||E.current)return;let t=!1,s=0,r=async()=>{if(!t&&!E.current){s+=1;try{let s=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(b.state)}`),r=await s.json();if(t||E.current)return;if("done"===r.status){E.current=!0,p("success"),l?.();return}if("error"===r.status){E.current=!0,v(r.error||"Authentication failed"),p("error");return}}catch{}if(s>=200){E.current=!0,v("Authentication timeout"),p("error");return}setTimeout(r,1500)}};return setTimeout(r,1500),()=>{t=!0}},[b,l]),(0,a.useEffect)(()=>{let e;if(!b)return;E.current=!1;let t=async e=>{if(E.current)return;let{code:t,state:s,error:r,errorDescription:a}=e;if(r){E.current=!0,v(a||r),p("error");return}t&&(E.current=!0,await L(t,s))},s=e=>{let s=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),r=e.origin===window.location.origin;(s||r)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",s);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let r=e=>{if("oauth_callback"===e.key&&e.newValue)try{let s=JSON.parse(e.newValue);t(s),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",r);try{let e=localStorage.getItem("oauth_callback");if(e){let s=JSON.parse(e);s.timestamp&&Date.now()-s.timestamp<3e4&&t(s),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",s),window.removeEventListener("storage",r),e&&e.close()}},[b,L]);let D=async()=>{try{v(null);let e=g.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await L(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await q(e);let s=new URL(e),r=s.searchParams.get("code"),a=s.searchParams.get("state"),l=s.searchParams.get("error");if(l)throw Error(s.searchParams.get("error_description")||l);if(!r)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"No authorization code found in URL");await L(r,a)}catch(e){v(e.message),p("error")}},F=(0,a.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy").catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy").catch(()=>{}),n()},[n,t]);if(!t||!s)return null;let K="xai"===t,W=!!x,B=w?.verification_uri_complete||w?.verification_uri||"",V=K?"Connect Grok Build OAuth":`Connect ${s.name}`,G=W?`Re-authenticate ${s.name}`:V;return(0,r.jsx)(i.aF,{isOpen:e,title:G,onClose:F,size:"lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[W?(0,r.jsx)("div",{className:"rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Reauth mode — tokens mới sẽ ghi đ\xe8 l\xean account hiện tại, giữ nguy\xean t\xean/routing/priority."}):null,("waiting"===h||"input"===h)&&!N&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,r.jsx)("span",{className:"text-sm",children:K?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,r.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,r.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,r.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",K?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.pd,{value:b?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,r.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===I?"check":"content_copy",onClick:()=>M(b?.authUrl,"auth_url"),disabled:!b?.authUrl,children:"Copy"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"callback URL"," here"]}),(0,r.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"After authorization, copy the full URL from your browser."}),(0,r.jsx)(i.pd,{value:g,onChange:e=>y(e.target.value),placeholder:K?"http://127.0.0.1:56121/callback?code=... or copied code":R,className:"font-mono text-xs"})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:D,fullWidth:!0,disabled:!g,children:"Connect"}),(0,r.jsx)(i.$n,{onClick:F,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===h&&N&&w&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-center py-4",children:[(0,r.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,r.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,r.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("code",{className:"flex-1 text-sm break-all",children:B}),(0,r.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"login_url"===I?"check":"content_copy",onClick:()=>M(B,"login_url"),disabled:!B}),(0,r.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(B,"_blank","noopener,noreferrer"),disabled:!B,children:"Open"})]})]}),(0,r.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,r.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:w.user_code}),(0,r.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"user_code"===I?"check":"content_copy",onClick:()=>M(w.user_code,"user_code")})]})]})]}),S&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===h&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:W?"Re-authenticated Successfully!":"Connected Successfully!"}),(0,r.jsx)("p",{className:"text-sm text-text-muted mb-4",children:W?`Token mới cho ${s.name} đ\xe3 ghi đ\xe8 l\xean account cũ.`:`Your ${s.name} account has been connected.`}),(0,r.jsx)(i.$n,{onClick:F,fullWidth:!0,children:"Done"})]}),"error"===h&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,r.jsx)("p",{className:"text-sm text-red-600 mb-4",children:j}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:z,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,r.jsx)(i.$n,{onClick:F,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired,oauthMeta:n().object,idcConfig:n().shape({startUrl:n().string,region:n().string}),connectionScope:n().oneOf(["system","personal"]),reauthConnectionId:n().string}},91450:(e,t,s)=>{"use strict";s.d(t,{default:()=>i});var r=s(95155),a=s(14051),l=s.n(a),n=s(38587);function i({children:e}){return(0,r.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,r.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,r.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,r.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,r.jsx)(n.default,{variant:"card"})}),(0,r.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}i.propTypes={children:l().node.isRequired}},92173:(e,t,s)=>{"use strict";s.d(t,{default:()=>c});var r=s(95155),a=s(98500),l=s.n(a),n=s(90620);let i=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,r.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,r.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,r.jsx)("div",{className:"size-6 text-primary",children:(0,r.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,r.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,r.jsx)("span",{className:"text-xl font-bold text-text-main",children:n.vQ.name})]}),(0,r.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,r.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:i.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,r.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,r.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,r.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",n.vQ.name," Inc. All rights reserved."]}),(0,r.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,r.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,r.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92622:(e,t,s)=>{"use strict";s.d(t,{default:()=>k});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(98500),o=s.n(i),d=s(73321),c=s(90620),m=s(92542),u=s(81127),x=s(77907),h=s(94027),p=s(44656),b=s(31474);let f=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/personal",label:"Personal OAuth",icon:"cloud_sync"},{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/resource-monitor",label:"Linux Resources",icon:"monitor_heart"},{href:"/dashboard/cluster",label:"Cluster Nodes",icon:"hub"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"compress"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/media-providers/web",label:"Media / Web",icon:"perm_media",advanced:!0},{href:"/dashboard/mitm",label:"AI Traffic Gateway",icon:"security",advanced:!0},{href:"/dashboard/audit-proxy",label:"AI Audit Proxy",icon:"policy"},{href:"/dashboard/logs",label:"Logs",icon:"manage_search"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"terminal",advanced:!0},{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan",advanced:!0},{href:"/dashboard/skills",label:"Skills",icon:"extension",advanced:!0},{href:"/dashboard/translator",label:"Translator",icon:"translate",advanced:!0},{href:"/dashboard/settings/pricing",label:"Pricing",icon:"payments"},{href:"/dashboard/profile",label:"Settings",icon:"settings"}],g=[...x.SI],y={href:"/dashboard/audit-proxy",label:"AI Audit Proxy",icon:"policy"},j=[{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/personal",label:"Personal OAuth",icon:"cloud_sync"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"compress"}],v=c.h0?.installCmdLatest||"npm install -g @jheavenknows/bluerouter@latest";function N({href:e,label:t,icon:s,active:a,onClick:l}){return(0,r.jsxs)(o(),{href:e,onClick:l,className:(0,b.cn)("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors",a?"bg-primary/10 text-primary":"text-text-muted hover:bg-surface hover:text-text-main"),children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:s}),(0,r.jsx)("span",{className:"truncate",children:t})]})}function k({onClose:e}){let t=(0,d.usePathname)(),s=(0,d.useRouter)(),{displayName:l,loginMethod:n,isAdmin:i,actualIsAdmin:o,showAsUser:x,canToggleUserMode:b,isMonitorAdmin:w,isAiGatewaysMonitor:C,canUseAuditProxy:S,reload:T}=(0,h.s)(),{logoUrl:_,siteShortName:A,siteTitle:I}=(0,p.useBranding)(),M=A||I||"Blue Router",[$,P]=(0,a.useState)(null),[R,O]=(0,a.useState)(null),[E,L]=(0,a.useState)(!1),[q,U]=(0,a.useState)(!1),[z,D]=(0,a.useState)(!1),[F,K]=(0,a.useState)(""),[W,B]=(0,a.useState)(!0),[V,G]=(0,a.useState)(!1),H=()=>e?.();(0,a.useEffect)(()=>{let e=!1;return fetch("/api/version",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&(P(t),O(i&&t.hasUpdate?t:null))}).catch(()=>{e||O(null)}),()=>{e=!0}},[i]),(0,a.useEffect)(()=>{if(!i)return;let e=!1,t=e=>{B(e?.detail?.visible!==!1)};return fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{!e&&t&&B(!1!==t.sidebarAdvancedToolsVisible)}).catch(()=>{}),window.addEventListener("bluerouter:sidebar-advanced-tools",t),()=>{e=!0,window.removeEventListener("bluerouter:sidebar-advanced-tools",t)}},[i]),(0,a.useEffect)(()=>{if(!q)return;let e=setTimeout(()=>U(!1),2e3);return()=>clearTimeout(e)},[q]);let J=async()=>{K("");try{return await navigator.clipboard.writeText(R?.installCommand||v),U(!0),!0}catch(e){return K(e?.message||"Could not copy update command. Please copy it manually."),!1}},Q=async()=>{if(!z&&await J()){D(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch{}}},X=async()=>{if(o&&b&&!V){G(!0);try{let e=await fetch("/api/auth/view-mode",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:x?"admin":"user"})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error||"Kh\xf4ng đổi được chế độ hiển thị");await T(),s.refresh()}catch(e){console.error("[sidebar] Could not switch dashboard view mode:",e)}finally{G(!1)}}},Y=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch{}s.push("/login"),s.refresh()},Z=i?f:w?g:j,ee=(i||!S||Z.some(e=>e.href===y.href)?Z:[...Z,y]).filter(e=>!e.advanced||W),et=x?"User mode":i?"Admin":w?"Monitor Admin":C?"AI Gateways Monitor":"User",es=$?.currentVersion||c.vQ?.version||"local";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("aside",{className:"flex h-full w-64 flex-col border-r border-border bg-background p-3",children:[(0,r.jsx)("div",{"data-sidebar-section":"logout",className:"mb-3 border-b border-border pb-3",children:(0,r.jsxs)("button",{type:"button",onClick:Y,className:"flex w-full items-center justify-between gap-3 rounded-2xl border border-border bg-surface/70 px-3 py-2.5 text-left text-sm font-semibold text-text-muted transition hover:border-border-subtle hover:bg-surface hover:text-text-main",children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"logout"}),(0,r.jsx)("span",{className:"truncate",children:"Logout"})]}),(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px] opacity-60",children:"chevron_right"})]})}),(0,r.jsxs)("div",{"data-sidebar-section":"identity",className:"mb-4 rounded-2xl bg-primary/10 p-4 text-primary",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[_?(0,r.jsx)("img",{src:_,alt:M,className:"h-8 w-8 rounded-md object-contain"}):(0,r.jsx)("span",{className:"material-symbols-outlined text-[28px]",children:"hub"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"truncate font-bold text-text-main",children:M}),(0,r.jsxs)("div",{className:"text-xs text-text-muted",children:["v",es]})]})]}),i&&R?(0,r.jsxs)("button",{type:"button",onClick:()=>{K(""),U(!1),L(!0)},className:"mt-3 flex w-full items-center justify-between gap-2 rounded-xl border border-amber-400/40 bg-amber-500/10 px-3 py-2 text-left text-xs font-semibold text-amber-700 transition hover:bg-amber-500/15 dark:text-amber-300",title:`New BlueRouter version available: v${R.latestVersion}`,children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"system_update_alt"}),(0,r.jsxs)("span",{className:"truncate",children:["New v",R.latestVersion]})]}),(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})]}):null,l?(0,r.jsxs)("div",{"data-sidebar-section":"user",className:"mt-4 flex items-start gap-2 text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"person"}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("div",{className:"truncate text-sm font-semibold text-text-main",children:l}),(0,r.jsxs)("div",{className:"text-xs",children:[et,n?` \xb7 ${n}`:""]})]})]}):null,b?(0,r.jsxs)("button",{type:"button",role:"switch","aria-checked":x,onClick:X,disabled:V,className:"mt-3 flex w-full items-center justify-between gap-3 rounded-xl border border-primary/20 bg-background/75 px-3 py-2.5 text-left transition hover:border-primary/40 disabled:cursor-wait disabled:opacity-60",title:"Ghi nhớ chế độ n\xe0y v\xe0 \xe1p dụng quyền giống user thường tr\xean cả UI lẫn API dashboard",children:[(0,r.jsxs)("span",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"block text-xs font-semibold text-text-main",children:"Show as user"}),(0,r.jsx)("span",{className:"mt-0.5 block text-[11px] leading-4 text-text-muted",children:x?"Đang d\xf9ng quyền user thường":"Xem dashboard như user thường"})]}),(0,r.jsx)("span",{className:`relative inline-flex h-5 w-9 shrink-0 rounded-full transition-colors ${x?"bg-primary":"bg-surface-3"}`,children:(0,r.jsx)("span",{className:`mt-0.5 h-4 w-4 rounded-full bg-white shadow-sm transition-transform ${x?"translate-x-[18px]":"translate-x-0.5"}`})})]}):null]}),(0,r.jsx)("nav",{className:"min-h-0 flex-1 space-y-1 overflow-y-auto pr-1",children:ee.map(e=>{var s;return(0,r.jsx)(N,{href:e.href,label:e.label,icon:e.icon,active:"/dashboard/endpoint"===(s=e.href)?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):"/dashboard/personal"===s?t.startsWith("/dashboard/personal")||t.startsWith("/dashboard/personalcloudprovider")||t.startsWith("/dashboard/personalquota"):"/dashboard/logs"===s?t.startsWith("/dashboard/logs")||t.startsWith("/dashboard/prompt-logs")||t.startsWith("/dashboard/console-log"):"/dashboard/providers"===s?t.startsWith("/dashboard/providers")||t.startsWith("/dashboard/media-providers/stt")||t.startsWith("/dashboard/media-providers/tts"):t===s||t.startsWith(`${s}/`),onClick:H},e.href)})})]}),(0,r.jsx)(u.default,{isOpen:E,onClose:()=>{z||L(!1)},title:"Update BlueRouter",size:"md",closeOnOverlay:!z,footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.default,{type:"button",variant:"ghost",onClick:()=>L(!1),disabled:z,children:"Cancel"}),(0,r.jsx)(m.default,{type:"button",variant:"secondary",onClick:J,disabled:z,children:q?"Copied":"Copy command"}),(0,r.jsx)(m.default,{type:"button",variant:"primary",onClick:Q,loading:z,children:"Copy & shutdown"})]}),children:(0,r.jsxs)("div",{className:"space-y-4 text-sm text-text-muted",children:[(0,r.jsxs)("div",{className:"rounded-xl border border-border bg-surface p-4",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"Current version"}),(0,r.jsxs)("span",{className:"font-mono font-semibold text-text-main",children:["v",$?.currentVersion||R?.currentVersion||c.vQ?.version||"local"]})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"Latest npm version"}),(0,r.jsxs)("span",{className:"font-mono font-semibold text-primary",children:["v",$?.latestVersion||R?.latestVersion||"unknown"]})]}),(0,r.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,r.jsx)("span",{children:"NPM package"}),(0,r.jsx)("span",{className:"truncate font-mono text-xs text-text-main",children:$?.packageName||R?.packageName||c.h0?.npmPackageName||"@jheavenknows/bluerouter"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-2 font-medium text-text-main",children:"Install command"}),(0,r.jsx)("pre",{className:"overflow-x-auto rounded-xl border border-border bg-bg-subtle px-3 py-2 font-mono text-xs text-text-main",children:R?.installCommand||v})]}),(0,r.jsxs)("ol",{className:"list-decimal space-y-1 pl-5",children:[(0,r.jsxs)("li",{children:["Click ",(0,r.jsx)("span",{className:"font-semibold text-text-main",children:"Copy & shutdown"}),"."]}),(0,r.jsx)("li",{children:"Paste the command into the server terminal and run it."}),(0,r.jsx)("li",{children:"Start BlueRouter again after npm finishes installing."})]}),F?(0,r.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 px-3 py-2 text-red-600 dark:text-red-300",children:F}):null,z?(0,r.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-amber-700 dark:text-amber-300",children:"Command copied. BlueRouter is shutting down so you can run the npm update command safely."}):null]})})]})}N.propTypes={href:n().string.isRequired,label:n().string.isRequired,icon:n().string.isRequired,active:n().bool,onClick:n().func},k.propTypes={onClose:n().func}},93308:(e,t,s)=>{"use strict";s.d(t,{CL:()=>l,QC:()=>n,Xn:()=>a,YZ:()=>r});let r=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no"],a="en",l="locale";function n(e){return"zh"===e||"zh-CN"===e?"zh-CN":"en"===e?"en":"vi"===e?"vi":"zh-TW"===e?"zh-TW":"ja"===e?"ja":"pt-BR"===e?"pt-BR":"pt-PT"===e?"pt-PT":"ko"===e?"ko":"es"===e?"es":"de"===e?"de":"fr"===e?"fr":"he"===e?"he":"ar"===e?"ar":"ru"===e?"ru":"pl"===e?"pl":"cs"===e?"cs":"nl"===e?"nl":"tr"===e?"tr":"uk"===e?"uk":"tl"===e?"tl":"id"===e?"id":"th"===e?"th":"hi"===e?"hi":"bn"===e?"bn":"ur"===e?"ur":"ro"===e?"ro":"sv"===e?"sv":"it"===e?"it":"el"===e?"el":"hu"===e?"hu":"fi"===e?"fi":"da"===e?"da":"no"===e?"no":a}},94027:(e,t,s)=>{"use strict";s.d(t,{Y:()=>o,s:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l);let i=(0,a.createContext)(null);function o({children:e}){let[t,s]=(0,a.useState)(null),[l,n]=(0,a.useState)(!0),[d,c]=(0,a.useState)(""),m=(0,a.useCallback)(async()=>{n(!0),c("");try{let e=await fetch("/api/auth/status",{cache:"no-store"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error||"Kh\xf4ng tải được trạng th\xe1i đăng nhập");return s(t||{}),t||{}}catch(e){return c(e?.message||"Kh\xf4ng tải được trạng th\xe1i đăng nhập"),s({}),{}}finally{n(!1)}},[]);(0,a.useEffect)(()=>{let e=!1;return(async()=>{n(!0),c("");try{let t=await fetch("/api/auth/status",{cache:"no-store"}),r=await t.json().catch(()=>({}));if(e)return;if(!t.ok)throw Error(r?.error||"Kh\xf4ng tải được trạng th\xe1i đăng nhập");s(r||{})}catch(t){e||(c(t?.message||"Kh\xf4ng tải được trạng th\xe1i đăng nhập"),s({}))}finally{e||n(!1)}})(),()=>{e=!0}},[]);let u=(0,a.useMemo)(()=>{let e,s,r,a,l,n,i;return s=(e=t&&"object"==typeof t?t:{}).displayName||e.oidcName||e.oidcEmail||e.userId||"",a=(r=!0===e.actualIsAdmin||!0===e.isAdmin&&!0!==e.showAsUser)&&!0===e.showAsUser,l=!0===e.isAdmin&&!a,n=!0===e.isMonitorAdmin,i=!0===e.isAiGatewaysMonitor,{status:e,displayName:s,userId:e.userId||"",loginMethod:e.loginMethod||"",role:e.role||"guest",actualRole:e.actualRole||e.role||"guest",isAdmin:l,actualIsAdmin:r,showAsUser:a,canToggleUserMode:!0===e.canToggleUserMode||r,isMonitorAdmin:n,isAiGatewaysMonitor:i,canManageApiKeys:!0===e.canManageApiKeys||l||n,canUseMonitorAdminTabs:!0===e.canUseMonitorAdminTabs||l||n,canViewAllAnalytics:!0===e.canViewAllAnalytics||l||n||i,canUseAuditProxy:!0===e.canUseAuditProxy||l}},[t]),x=(0,a.useMemo)(()=>({...u,loading:l,error:d,reload:m}),[u,l,d,m]);return(0,r.jsx)(i.Provider,{value:x,children:e})}function d(){let e=(0,a.useContext)(i);return e||{status:{},displayName:"",userId:"",loginMethod:"",role:"admin",actualRole:"admin",isAdmin:!0,actualIsAdmin:!0,showAsUser:!1,canToggleUserMode:!0,isMonitorAdmin:!1,isAiGatewaysMonitor:!1,canManageApiKeys:!0,canUseMonitorAdminTabs:!0,canViewAllAnalytics:!0,loading:!1,error:"",reload:async()=>({})}}o.propTypes={children:n().node}},94230:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497),o=s(11059);function d({isOpen:e,provider:t,onSuccess:s,onClose:l}){let[n,c]=(0,a.useState)("loading"),[m,u]=(0,a.useState)(""),[x,h]=(0,a.useState)(null),[p,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(null),{copied:y,copy:j}=(0,o.C)();(0,a.useEffect)(()=>{e&&t&&(async()=>{try{g(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),s=await e.json();if(!e.ok)throw Error(s.error);h(s),u(s.authUrl),c("input"),window.open(s.authUrl,"_blank")}catch(e){g(e.message),c("error")}})()},[e,t]);let v=async()=>{try{let e;g(null);try{e=new URL(p)}catch(e){throw Error("Invalid callback URL format")}let r=e.searchParams.get("code");e.searchParams.get("state");let a=e.searchParams.get("error");if(a)throw Error(e.searchParams.get("error_description")||a);if(!r)throw Error("No authorization code found in URL");let l=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:r,codeVerifier:x.codeVerifier,provider:t})}),n=await l.json();if(!l.ok)throw Error(n.error);c("success"),s?.()}catch(e){g(e.message),c("error")}},N="google"===t?"Google":"GitHub";return(0,r.jsx)(i.aF,{isOpen:e,title:`Connect Kiro via ${N}`,onClose:l,size:"lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===n&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,r.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",N," authentication"]})]}),"input"===n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.pd,{value:m,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,r.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===y?"check":"content_copy",onClick:()=>j(m,"auth_url"),children:"Copy"})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,r.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,r.jsx)(i.pd,{value:p,onChange:e=>b(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:!p,children:"Connect"}),(0,r.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===n&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,r.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",N," has been connected."]}),(0,r.jsx)(i.$n,{onClick:l,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,r.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,r.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,r.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().oneOf(["google","github"]).isRequired,onSuccess:n().func,onClose:n().func.isRequired}},95088:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:s,onClose:l}){let n,[c,m]=(0,a.useState)(null),[u,x]=(0,a.useState)(o),[h,p]=(0,a.useState)(""),[b,f]=(0,a.useState)(""),[g,y]=(0,a.useState)(""),[j,v]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),[S,T]=(0,a.useState)(null),_=()=>{m(null),x(o),p(""),f(""),y(""),k(null),v(!1),C(!1),T(null),l()},A=async()=>{if(!g.trim())return void k("Personal Access Token is required");v(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g.trim(),baseUrl:u.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");s?.(),_()}catch(e){k(e.message)}finally{v(!1)}};return e?w&&S?(0,r.jsx)(i.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{s?.(),_()},onClose:()=>{C(!1),T(null)}}):(0,r.jsx)(i.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:_,size:"lg",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("button",{onClick:()=>m("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,r.jsxs)("button",{onClick:()=>m("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,r.jsx)("a",{href:`${u.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(n=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${n}/callback`)})]}),(0,r.jsx)(i.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,r.jsx)(i.pd,{label:"Client ID",value:h,onChange:e=>p(e.target.value),placeholder:"Your OAuth application client ID"}),(0,r.jsx)(i.pd,{label:"Client Secret (optional for PKCE)",value:b,onChange:e=>f(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,r.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:()=>{h.trim()?(k(null),T({baseUrl:u.trim()||o,clientId:h.trim(),clientSecret:b.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!h.trim(),children:"Authorize"}),(0,r.jsx)(i.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,r.jsx)("a",{href:`${u.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,r.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,r.jsx)(i.pd,{label:"GitLab Base URL",value:u,onChange:e=>x(e.target.value),placeholder:o}),(0,r.jsx)(i.pd,{label:"Personal Access Token",value:g,onChange:e=>y(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,r.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:A,fullWidth:!0,disabled:!g.trim()||j,loading:j,children:"Connect"}),(0,r.jsx)(i.$n,{onClick:()=>{m(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:n().bool.isRequired,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired}},96748:(e,t,s)=>{"use strict";s.d(t,{default:()=>d});var r=s(95155),a=s(12115),l=s(14051),n=s.n(l),i=s(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:s,onSaved:l,node:n}){let c=!!n,[m,u]=(0,a.useState)({name:"",prefix:"",baseUrl:o}),[x,h]=(0,a.useState)(!1),[p,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[y,j]=(0,a.useState)(!1),[v,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(N(null),b(""),g(""),c?u({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o}):u({name:"",prefix:"",baseUrl:o}))},[e,c,n]);let k=async()=>{if(m.name.trim()&&m.prefix.trim()&&m.baseUrl.trim()){h(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",r={name:m.name,prefix:m.prefix,baseUrl:m.baseUrl};c||(r.type="custom-embedding");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),i=await a.json();a.ok&&(c?l?.(i.node):s?.(i.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{h(!1)}}},w=async()=>{j(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:m.baseUrl,apiKey:p,type:"custom-embedding",modelId:f.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{j(!1)}};return(0,r.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.pd,{label:"Name",value:m.name,onChange:e=>u({...m,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,r.jsx)(i.pd,{label:"Prefix",value:m.prefix,onChange:e=>u({...m,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,r.jsx)(i.pd,{label:"Base URL",value:m.baseUrl,onChange:e=>u({...m,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,r.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>b(e.target.value)}),(0,r.jsx)(i.pd,{label:"Model ID (for Check)",value:f,onChange:e=>g(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(i.$n,{onClick:w,disabled:!p||!f.trim()||y||!m.baseUrl.trim(),variant:"secondary",children:y?"Checking...":"Check"}),(()=>{if(!v)return null;let{valid:e,error:t,dimensions:s}=v;return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ex,{variant:"success",children:"Valid"}),s&&(0,r.jsxs)("span",{className:"text-sm text-text-muted",children:[s," dims"]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(i.Ex,{variant:"error",children:"Invalid"}),t&&(0,r.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(i.$n,{onClick:k,fullWidth:!0,disabled:!m.name.trim()||!m.prefix.trim()||!m.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,r.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string})}},98542:(e,t,s)=>{"use strict";s.d(t,{default:()=>l});var r=s(95155),a=s(31474);function l({checked:e=!1,onChange:t,label:s,description:n,disabled:i=!1,size:o="md",className:d}){let c={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}};return(0,r.jsxs)("div",{className:(0,a.cn)("flex items-center gap-3",i&&"opacity-50 cursor-not-allowed",d),children:[(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":e,disabled:i,onClick:()=>{!i&&t&&t(!e)},className:(0,a.cn)("relative inline-flex shrink-0 cursor-pointer rounded-full","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2 focus:ring-brand-500/30",e?"bg-brand-500":"bg-surface-3",c[o].track,i&&"cursor-not-allowed"),children:(0,r.jsx)("span",{className:(0,a.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out",e?c[o].translate:"translate-x-0.5",c[o].thumb,"mt-0.5")})}),(s||n)&&(0,r.jsxs)("div",{className:"flex flex-col",children:[s&&(0,r.jsx)("span",{className:"text-sm font-medium text-text-main",children:s}),n&&(0,r.jsx)("span",{className:"text-xs text-text-muted",children:n})]})]})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174,204,219,312,335,342,387,451,501,516,543,552,654,675,684,747,748,754,767,874,887,907,920,931,948,992,997,1077,1088,1091,1110,1118,1173,1200,1243,1288,1320,1337,1382,1451,1512,1566,1666,1674,1697,1860,1907,1910,1946,1949,2121,2198,2222,2284,2296,2420,2525,2536,2627,2772,2785,2792,2797,2919,2922,3025,3038,3079,3113,3161,3195,3348,3352,3397,3472,3507,3510,3549,3562,3568,3577,3685,3883,3888,4010,4061,4078,4118,4245,4286,4422,4444,4486,4544,4612,4656,4674,4745,4761,4871,4896,4993,5018,5032,5091,5107,5177,5211,5226,5338,5418,5466,5606,5637,5685,5703,5745,5922,5998,6091,6107,6121,6268,6319,6479,6529,6547,6580,6593,6594,6601,6642,6691,6740,6743,6819,6919,6988,7131,7158,7180,7241,7249,7311,7429,7445,7473,7508,7520,7545,7656,7758,7772,7824,7851,7960,7988,8026,8095,8167,8207,8246,8273,8351,8433,8453,8489,8573,8648,8736,8791,8814,8870,8948,8970,8974,8975,9027,9035,9069,9088,9141,9199,9226,9230,9321,9395,9461,9547,9619,9678,9709,9951],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174,204,219,312,335,342,387,451,501,516,543,552,654,675,684,747,748,754,767,874,887,907,920,931,948,992,997,1077,1088,1091,1110,1118,1173,1200,1243,1288,1320,1337,1382,1451,1512,1566,1666,1674,1697,1860,1907,1910,1946,1949,2121,2198,2222,2284,2296,2420,2525,2536,2627,2772,2785,2792,2797,2919,2922,3025,3038,3079,3113,3161,3195,3348,3352,3397,3472,3507,3510,3549,3562,3568,3577,3685,3883,3888,4010,4061,4078,4118,4245,4286,4422,4444,4486,4544,4612,4656,4674,4745,4761,4871,4896,4993,5018,5032,5091,5107,5177,5211,5226,5338,5418,5466,5606,5637,5685,5703,5745,5922,5998,6091,6107,6121,6268,6319,6479,6529,6547,6580,6593,6594,6601,6642,6691,6740,6743,6819,6919,6988,7131,7158,7180,7241,7249,7311,7429,7445,7473,7508,7520,7545,7656,7758,7772,7824,7851,7960,7988,8026,8095,8167,8207,8246,8273,8351,8433,8453,8489,8573,8648,8736,8791,8814,8870,8948,8970,8974,8975,9027,9035,9069,9088,9141,9199,9226,9230,9321,9395,9461,9547,9619,9678,9709,9951],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174,204,219,312,335,342,387,451,501,516,543,552,654,675,684,747,748,754,767,874,887,907,920,931,948,992,997,1077,1088,1091,1110,1118,1173,1200,1243,1288,1320,1337,1382,1451,1512,1566,1666,1674,1697,1860,1907,1910,1946,1949,2121,2198,2222,2284,2296,2420,2525,2536,2627,2772,2785,2792,2797,2919,2922,3025,3038,3079,3113,3161,3195,3348,3352,3397,3472,3507,3510,3549,3562,3568,3577,3685,3883,3888,4010,4061,4078,4118,4245,4286,4422,4444,4486,4544,4612,4656,4674,4745,4761,4871,4896,4993,5018,5032,5091,5107,5177,5211,5226,5338,5418,5466,5606,5637,5685,5703,5745,5922,5998,6091,6107,6121,6268,6319,6479,6529,6547,6580,6593,6594,6601,6642,6691,6740,6743,6819,6919,6988,7131,7158,7180,7241,7249,7311,7429,7445,7473,7508,7520,7545,7656,7758,7772,7824,7851,7960,7988,8026,8095,8167,8207,8246,8273,8351,8433,8453,8489,8573,8648,8736,8791,8814,8870,8948,8970,8974,8975,9027,9035,9069,9088,9141,9199,9226,9230,9321,9395,9461,9547,9619,9678,9709,9951],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174,204,219,312,335,342,387,451,501,516,543,552,654,675,684,747,748,754,767,874,887,907,920,931,948,992,997,1077,1088,1091,1110,1118,1173,1200,1243,1288,1320,1337,1382,1451,1512,1566,1666,1674,1697,1860,1907,1910,1946,1949,2121,2198,2222,2284,2296,2420,2525,2536,2627,2772,2785,2792,2797,2919,2922,3025,3038,3079,3113,3161,3195,3348,3352,3397,3472,3507,3510,3549,3562,3568,3577,3685,3883,3888,4010,4061,4078,4118,4245,4286,4422,4444,4486,4544,4612,4656,4674,4745,4761,4871,4896,4993,5018,5032,5091,5107,5177,5211,5226,5338,5418,5466,5606,5637,5685,5703,5745,5922,5998,6091,6107,6121,6268,6319,6479,6529,6547,6580,6593,6594,6601,6642,6691,6740,6743,6819,6919,6988,7131,7158,7180,7241,7249,7311,7429,7445,7473,7508,7520,7545,7656,7758,7772,7824,7851,7960,7988,8026,8095,8167,8207,8246,8273,8351,8433,8453,8489,8573,8648,8736,8791,8814,8870,8948,8970,8974,8975,9027,9035,9069,9088,9141,9199,9226,9230,9321,9395,9461,9547,9619,9678,9709,9951],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[174,204,219,312,335,342,387,451,501,516,543,552,654,675,684,747,748,754,767,874,887,907,920,931,948,992,997,1077,1088,1091,1110,1118,1173,1200,1243,1288,1320,1337,1382,1451,1512,1566,1666,1674,1697,1860,1907,1910,1946,1949,2121,2198,2222,2284,2296,2420,2525,2536,2627,2772,2785,2792,2797,2919,2922,3025,3038,3079,3113,3161,3195,3348,3352,3397,3472,3507,3510,3549,3562,3568,3577,3685,3883,3888,4010,4061,4078,4118,4245,4286,4422,4444,4486,4544,4612,4656,4674,4745,4761,4871,4896,4993,5018,5032,5091,5107,5177,5211,5226,5338,5418,5466,5606,5637,5685,5703,5745,5922,5998,6091,6107,6121,6268,6319,6479,6529,6547,6580,6593,6594,6601,6642,6691,6740,6743,6819,6919,6988,7131,7158,7180,7241,7249,7311,7429,7445,7473,7508,7520,7545,7656,7758,7772,7824,7851,7960,7988,8026,8095,8167,8207,8246,8273,8351,8433,8453,8489,8573,8648,8736,8791,8814,8870,8948,8970,8974,8975,9027,9035,9069,9088,9141,9199,9226,9230,9321,9395,9461,9547,9619,9678,9709,9951],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|