@jheavenknows/bluerouter 2.0.46 → 2.0.48

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.
Files changed (520) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +4 -4
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +1 -1
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  61. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  62. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  63. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  64. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  65. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  66. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  67. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  68. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  71. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  72. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  73. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  74. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  75. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  76. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  77. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  78. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  85. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  87. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js +68 -8
  111. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/version/restart/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  245. package/app/.next-cli-build/server/app/callback.html +1 -1
  246. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  247. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  248. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  249. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  250. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  251. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  252. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  253. package/app/.next-cli-build/server/app/dashboard/analytics.html +1 -1
  254. package/app/.next-cli-build/server/app/dashboard/analytics.rsc +6 -6
  255. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics/__PAGE__.segment.rsc +2 -2
  256. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics.segment.rsc +1 -1
  257. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  258. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  259. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_full.segment.rsc +6 -6
  260. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_head.segment.rsc +1 -1
  261. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_index.segment.rsc +4 -4
  262. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_tree.segment.rsc +2 -2
  263. package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
  264. package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +6 -6
  265. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +2 -2
  266. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys.segment.rsc +1 -1
  267. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  268. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  269. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +6 -6
  270. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_head.segment.rsc +1 -1
  271. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_index.segment.rsc +4 -4
  272. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +2 -2
  273. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  274. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  275. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  276. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  277. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  278. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  279. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  280. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  281. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  282. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  283. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  284. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  285. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  286. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  287. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  288. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  289. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  290. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  291. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  292. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  293. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  294. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  295. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  296. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  297. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  298. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  299. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  300. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  301. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  302. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  303. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  304. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  305. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  306. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  307. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  309. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  310. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  312. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  313. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  314. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  315. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  316. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  317. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  318. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  319. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  320. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  321. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  322. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  323. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  324. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  325. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  326. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  327. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  328. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  329. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  330. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  331. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  332. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  333. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  334. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  335. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  336. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  337. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  338. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  339. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  340. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  341. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  342. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  343. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  344. package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
  345. package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +5 -5
  346. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +1 -1
  347. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs.segment.rsc +1 -1
  348. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  349. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  350. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +5 -5
  351. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_head.segment.rsc +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_index.segment.rsc +4 -4
  353. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +2 -2
  354. package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
  355. package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +5 -5
  356. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +1 -1
  357. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health.segment.rsc +1 -1
  358. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  359. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  360. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +5 -5
  361. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_head.segment.rsc +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_index.segment.rsc +4 -4
  363. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +2 -2
  364. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  365. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  366. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  367. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  368. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  369. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  370. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  371. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  372. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  373. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  374. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  375. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  376. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  377. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  378. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  379. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  380. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  381. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  382. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  383. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  384. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  385. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  386. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  387. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  388. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  390. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  391. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  392. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  393. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  394. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  395. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  396. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  397. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  398. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  399. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  400. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  401. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  402. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  403. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  404. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  405. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  407. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  408. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  409. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  410. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  411. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  412. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  413. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  414. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  415. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  416. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  417. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  418. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  419. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  420. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  421. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  423. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  424. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  425. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  426. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  427. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  428. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  429. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  430. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  431. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  433. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  434. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  435. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  436. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  437. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  438. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  439. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  440. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  441. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  442. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  443. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  444. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  445. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  446. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  447. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  448. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  449. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  450. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  452. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  453. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  454. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  455. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/index.html +1 -1
  458. package/app/.next-cli-build/server/app/index.rsc +4 -4
  459. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  461. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  462. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  463. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  464. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  465. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  466. package/app/.next-cli-build/server/app/landing.html +1 -1
  467. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  468. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  469. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  470. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  471. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  472. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  473. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  474. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  475. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  476. package/app/.next-cli-build/server/app/login.html +1 -1
  477. package/app/.next-cli-build/server/app/login.rsc +5 -5
  478. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  479. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  480. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  481. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  482. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  483. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  484. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  485. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  487. package/app/.next-cli-build/server/app-paths-manifest.json +4 -4
  488. package/app/.next-cli-build/server/chunks/3110.js +1 -1
  489. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  490. package/app/.next-cli-build/server/chunks/5681.js +1 -1
  491. package/app/.next-cli-build/server/chunks/7130.js +1 -1
  492. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  493. package/app/.next-cli-build/server/chunks/7795.js +1 -1
  494. package/app/.next-cli-build/server/chunks/9489.js +2 -1
  495. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  496. package/app/.next-cli-build/server/middleware.js +1 -1
  497. package/app/.next-cli-build/server/pages/404.html +1 -1
  498. package/app/.next-cli-build/server/pages/500.html +1 -1
  499. package/app/.next-cli-build/static/chunks/{1321-387020f59e1bb897.js → 1321-0cabc772a87548bd.js} +1 -1
  500. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/analytics/page-15b13d024b783def.js +1 -0
  501. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-da1f6f82eaaa1188.js +1 -0
  502. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-da1f6f82eaaa1188.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-677e8d2d39fe85c9.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/login/{page-5134676839e72d1b.js → page-7902d86d6a45535f.js} +1 -1
  505. package/app/.next-cli-build/static/css/0205f5e862cf8623.css +1 -0
  506. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-shm +0 -0
  507. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-wal +0 -0
  508. package/app/package.json +1 -1
  509. package/package.json +1 -1
  510. package/app/.next-cli-build/server/chunks/1219.js +0 -1
  511. package/app/.next-cli-build/static/chunks/8032-dcfc14566596f13a.js +0 -1
  512. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/analytics/page-39cb7cea97e6c2d2.js +0 -1
  513. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-283d64c061cc08e1.js +0 -1
  514. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-019bf097bba329a7.js +0 -1
  515. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-3d41333f5ccdfd9e.js +0 -1
  516. package/app/.next-cli-build/static/css/c8bb17152dd4ba34.css +0 -1
  517. /package/app/.next-cli-build/static/{U73peQtUnXeRVNv_kInCI → xHze_wXftqJQPS7cBoQN4}/_buildManifest.js +0 -0
  518. /package/app/.next-cli-build/static/{U73peQtUnXeRVNv_kInCI → xHze_wXftqJQPS7cBoQN4}/_ssgManifest.js +0 -0
  519. /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-2.0.41-to-2.0.42-2.0.42-20260612-232811 → upgrade-2.0.46-to-2.0.47-2.0.47-20260613-082059}/data.sqlite +0 -0
  520. /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-2.0.42-to-2.0.43-2.0.43-20260612-234341 → upgrade-2.0.47-to-2.0.48-2.0.48-20260613-113314}/data.sqlite +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8978],{39944:(e,t,s)=>{Promise.resolve().then(s.bind(s,70959))},70959:(e,t,s)=>{"use strict";s.d(t,{default:()=>z});var l=s(95155),r=s(12115);let n=[{value:"today",label:"H\xf4m nay"},{value:"yesterday",label:"H\xf4m qua"},{value:"24h",label:"24 giờ"},{value:"thisWeek",label:"Tuần n\xe0y"},{value:"lastWeek",label:"Tuần trước"},{value:"7d",label:"7 ng\xe0y"},{value:"thisMonth",label:"Th\xe1ng n\xe0y"},{value:"lastMonth",label:"Th\xe1ng trước"},{value:"30d",label:"30 ng\xe0y"},{value:"60d",label:"60 ng\xe0y"},{value:"all",label:"Tất cả"},{value:"custom",label:"T\xf9y chọn"}],a=[{value:"overview",label:"Tổng quan",icon:"dashboard"},{value:"apiKeys",label:"API keys",icon:"vpn_key"},{value:"clients",label:"Client/User",icon:"groups"},{value:"sources",label:"Source IP / Tool",icon:"hub"},{value:"providers",label:"Provider / Model",icon:"dns"},{value:"experience",label:"Trải nghiệm",icon:"speed"},{value:"errors",label:"Lỗi & bất thường",icon:"warning"},{value:"raw",label:"Raw usage",icon:"table"}];function o(e,t=0){return Number(e||0).toLocaleString("vi-VN",{maximumFractionDigits:t})}function i(e){let t=Number(e||0);return Intl.NumberFormat("vi-VN",{notation:"compact",maximumFractionDigits:1}).format(t)}function d(e){let t=100*Number(e||0);return`${t.toLocaleString("vi-VN",{maximumFractionDigits:1})}%`}function c(e){let t=Number(e||0);return t?`$${t.toLocaleString("vi-VN",{minimumFractionDigits:4,maximumFractionDigits:6})}`:"$0"}function x(e){if(null==e||Number.isNaN(Number(e)))return"-";let t=Number(e);return t>=1e3?`${(t/1e3).toLocaleString("vi-VN",{maximumFractionDigits:2})}s`:`${t.toLocaleString("vi-VN",{maximumFractionDigits:0})}ms`}function m(e,t="/s"){if(null==e||Number.isNaN(Number(e)))return"-";let s=Number(e);return`${s.toLocaleString("vi-VN",{maximumFractionDigits:s>=10?1:2})}${t}`}function u(e){return null==e||Number.isNaN(Number(e))?"-":`${Number(e).toLocaleString("vi-VN",{maximumFractionDigits:0})}/100`}function h(e){if(!e)return"-";try{let t=new Date(e);if(Number.isNaN(t.getTime()))return String(e);return t.toLocaleString("vi-VN",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return String(e)}}function p(e){if(!e)return"";try{let t=new Date(e);if(Number.isNaN(t.getTime()))return String(e);return t.toLocaleString("vi-VN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1})}catch{return String(e)}}function b(...e){return e.filter(Boolean).join(" ")}function g(e,t={}){let s=new URLSearchParams;return Object.entries({...e,...t}).forEach(([e,t])=>{let l=String(t??"").trim();l&&s.set(e,l)}),s.toString()}function j({children:e,className:t=""}){return(0,l.jsx)("div",{className:b("rounded-2xl border border-border bg-surface p-5 shadow-sm",t),children:e})}function v({icon:e,label:t,value:s,hint:r,tone:n="blue"}){return(0,l.jsx)(j,{className:"min-h-[126px]",children:(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-sm font-medium text-text-muted",children:t}),(0,l.jsx)("div",{className:"mt-2 text-2xl font-semibold text-text-main",children:s}),r?(0,l.jsx)("div",{className:"mt-2 text-xs text-text-muted",children:r}):null]}),(0,l.jsx)("div",{className:b("flex h-10 w-10 items-center justify-center rounded-xl",{blue:"bg-blue-500/10 text-blue-600 dark:text-blue-300",green:"bg-green-500/10 text-green-600 dark:text-green-300",red:"bg-red-500/10 text-red-600 dark:text-red-300",amber:"bg-amber-500/10 text-amber-600 dark:text-amber-300",purple:"bg-purple-500/10 text-purple-600 dark:text-purple-300",slate:"bg-slate-500/10 text-slate-600 dark:text-slate-300"}[n]||"bg-blue-500/10 text-blue-600 dark:text-blue-300"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:e})})]})})}function k({label:e,children:t}){return(0,l.jsxs)("label",{className:"space-y-1.5 text-xs font-medium text-text-muted",children:[(0,l.jsx)("span",{children:e}),t]})}function y({value:e,onChange:t,children:s}){return(0,l.jsx)("select",{value:e||"",onChange:e=>t(e.target.value),className:"h-10 w-full rounded-xl border border-border bg-background px-3 text-sm text-text-main outline-none transition focus:border-primary/60 focus:ring-2 focus:ring-primary/20",children:s})}function N({value:e,onChange:t,placeholder:s="",type:r="text"}){return(0,l.jsx)("input",{value:e||"",type:r,onChange:e=>t(e.target.value),placeholder:s,className:"h-10 w-full rounded-xl border border-border bg-background px-3 text-sm text-text-main outline-none transition placeholder:text-text-muted/60 focus:border-primary/60 focus:ring-2 focus:ring-primary/20"})}function f(){return(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:Array.from({length:8}).map((e,t)=>(0,l.jsx)("div",{className:"h-32 animate-pulse rounded-2xl border border-border bg-surface"},t))}),(0,l.jsx)("div",{className:"h-80 animate-pulse rounded-2xl border border-border bg-surface"})]})}function T({title:e="Kh\xf4ng c\xf3 dữ liệu",description:t="Kh\xf4ng t\xecm thấy dữ liệu theo bộ lọc hiện tại."}){return(0,l.jsxs)("div",{className:"flex min-h-[180px] flex-col items-center justify-center rounded-2xl border border-dashed border-border bg-surface/60 p-8 text-center",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-4xl text-text-muted",children:"database_off"}),(0,l.jsx)("div",{className:"mt-3 text-sm font-semibold text-text-main",children:e}),(0,l.jsx)("div",{className:"mt-1 max-w-xl text-sm text-text-muted",children:t})]})}function w({data:e=[],valueKey:t="totalTokens",secondaryKey:s="requests",height:r=220}){let n=e||[],a=Math.max(...n.map(e=>Number(e[t]||0)),1),i=Math.max(...n.map(e=>Number(e[s]||0)),1);return 0===n.length?(0,l.jsx)(T,{description:"Chưa c\xf3 time-series trong khoảng thời gian n\xe0y."}):(0,l.jsx)("div",{className:"overflow-x-auto",children:(0,l.jsxs)("div",{className:"min-w-[720px]",children:[(0,l.jsx)("div",{className:"flex items-end gap-1",style:{height:r},children:n.map((e,n)=>{let d=Math.max(2,Number(e[t]||0)/a*(r-42)),c=Math.max(2,Number(e[s]||0)/i*(r-42));return(0,l.jsx)("div",{className:"group flex flex-1 flex-col items-center justify-end gap-1",children:(0,l.jsxs)("div",{className:"relative flex h-full w-full max-w-[34px] items-end justify-center gap-0.5",children:[(0,l.jsx)("div",{className:"w-2 rounded-t bg-primary/70",style:{height:d}}),(0,l.jsx)("div",{className:"w-2 rounded-t bg-amber-500/70",style:{height:c}}),(0,l.jsxs)("div",{className:"pointer-events-none absolute bottom-full left-1/2 z-20 hidden w-56 -translate-x-1/2 rounded-xl border border-border bg-surface p-3 text-left text-xs shadow-xl group-hover:block",children:[(0,l.jsx)("div",{className:"font-semibold text-text-main",children:p(e.label)}),(0,l.jsxs)("div",{className:"mt-1 text-text-muted",children:["Request: ",o(e.requests)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["Input token: ",o(e.promptTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["Output token: ",o(e.completionTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["Tổng token: ",o(e.totalTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["Lỗi: ",o(e.errors)]})]})]})},`${e.label}-${n}`)})}),(0,l.jsxs)("div",{className:"mt-3 flex justify-between gap-2 text-[11px] text-text-muted",children:[(0,l.jsx)("span",{children:p(n[0]?.label)}),(0,l.jsx)("span",{children:p(n[Math.floor(n.length/2)]?.label)}),(0,l.jsx)("span",{children:p(n[n.length-1]?.label)})]})]})})}function P(){return(0,l.jsxs)("div",{className:"flex flex-wrap gap-3 text-xs text-text-muted",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"h-2.5 w-2.5 rounded-sm bg-primary/70"}),"Token"]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"h-2.5 w-2.5 rounded-sm bg-amber-500/70"}),"Request"]})]})}function q({columns:e,rows:t,empty:s="Kh\xf4ng c\xf3 dữ liệu"}){return t&&0!==t.length?(0,l.jsx)("div",{className:"overflow-x-auto rounded-2xl border border-border",children:(0,l.jsxs)("table",{className:"min-w-full divide-y divide-border text-sm",children:[(0,l.jsx)("thead",{className:"bg-background/70",children:(0,l.jsx)("tr",{children:e.map(e=>(0,l.jsx)("th",{className:b("whitespace-nowrap px-4 py-3 text-left text-xs font-semibold uppercase tracking-wide text-text-muted",e.className),children:e.label},e.key))})}),(0,l.jsx)("tbody",{className:"divide-y divide-border bg-surface",children:t.map((t,s)=>(0,l.jsx)("tr",{className:"hover:bg-background/60",children:e.map(e=>(0,l.jsx)("td",{className:b("whitespace-nowrap px-4 py-3 align-top text-text-main",e.className),children:e.render?e.render(t,s):t[e.key]??"-"},e.key))},t.key||t.id||`${t.label}-${s}`))})]})}):(0,l.jsx)(T,{title:s})}function S({items:e=[]}){return e&&0!==e.length?(0,l.jsx)("div",{className:"flex max-w-[360px] flex-wrap gap-1.5",children:e.slice(0,3).map(e=>(0,l.jsxs)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs text-primary",children:[e.label||e.key," \xb7 ",o(e.count??e.requests??e.totalTokens??0)]},e.key))}):(0,l.jsx)("span",{className:"text-text-muted",children:"-"})}function I({row:e}){return(0,l.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,l.jsxs)("div",{className:"font-semibold text-text-main",children:[i(e.totalTokens)," token"]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["In ",i(e.promptTokens)," / Out ",i(e.completionTokens)]})]})}function R({value:e}){let t=Number(e||0);return(0,l.jsx)("span",{className:b("rounded-full px-2 py-1 text-xs font-semibold",t>=.2?"bg-red-500/10 text-red-600 dark:text-red-300":t>=.05?"bg-amber-500/10 text-amber-600 dark:text-amber-300":"bg-green-500/10 text-green-600 dark:text-green-300"),children:d(t)})}function L({level:e,label:t}){let s=String(e||"none");return(0,l.jsx)("span",{className:b("rounded-full px-2 py-1 text-xs font-semibold",{fast:"bg-green-500/10 text-green-700 dark:text-green-300",ok:"bg-blue-500/10 text-blue-700 dark:text-blue-300",slow:"bg-amber-500/10 text-amber-700 dark:text-amber-300",very_slow:"bg-red-500/10 text-red-700 dark:text-red-300",low_sample:"bg-amber-500/10 text-amber-700 dark:text-amber-300",none:"bg-slate-500/10 text-slate-700 dark:text-slate-300"}[s]||"bg-slate-500/10 text-slate-700 dark:text-slate-300"),children:t||"-"})}function M({level:e,label:t}){let s=String(e||"normal");return(0,l.jsx)("span",{className:b("rounded-full px-2 py-1 text-xs font-semibold",{critical:"bg-red-500/10 text-red-700 dark:text-red-300",high:"bg-amber-500/10 text-amber-700 dark:text-amber-300",medium:"bg-blue-500/10 text-blue-700 dark:text-blue-300",normal:"bg-green-500/10 text-green-700 dark:text-green-300",none:"bg-slate-500/10 text-slate-700 dark:text-slate-300"}[s]||"bg-slate-500/10 text-slate-700 dark:text-slate-300"),children:t||"-"})}function C({value:e}){let t=String(e||"unknown"),s={gateway:{label:"Gateway",cls:"bg-purple-500/10 text-purple-700 dark:text-purple-300"},upstream:{label:"Upstream",cls:"bg-red-500/10 text-red-700 dark:text-red-300"},client:{label:"Client",cls:"bg-slate-500/10 text-slate-700 dark:text-slate-300"},rate_limit:{label:"Rate limit",cls:"bg-amber-500/10 text-amber-700 dark:text-amber-300"},unknown:{label:"Unknown",cls:"bg-zinc-500/10 text-zinc-700 dark:text-zinc-300"}}[t]||{label:t,cls:"bg-zinc-500/10 text-zinc-700 dark:text-zinc-300"};return(0,l.jsx)("span",{className:b("rounded-full px-2 py-1 text-xs font-semibold",s.cls),children:s.label})}function K({row:e}){let t=e.sampleMessage||e.errorMessageShort||"";return t?(0,l.jsx)("span",{className:"block max-w-[360px] truncate text-xs text-text-muted",title:t,children:t}):(0,l.jsx)("span",{className:"text-text-muted",children:"-"})}function $({icon:e,label:t,value:s,hint:r,tone:n="slate"}){return(0,l.jsx)("div",{className:b("rounded-2xl border p-4 shadow-sm",{red:"border-red-500/20 bg-red-500/10 text-red-700 dark:text-red-300",amber:"border-amber-500/20 bg-amber-500/10 text-amber-700 dark:text-amber-300",purple:"border-purple-500/20 bg-purple-500/10 text-purple-700 dark:text-purple-300",slate:"border-border bg-surface text-text-main",green:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-300"}[n]||"border-border bg-surface text-text-main"),children:(0,l.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide opacity-75",children:t}),(0,l.jsx)("div",{className:"mt-2 text-2xl font-bold",children:o(s)}),r?(0,l.jsx)("div",{className:"mt-1 text-xs opacity-80",children:r}):null]}),(0,l.jsx)("span",{className:"material-symbols-outlined text-[24px] opacity-80",children:e})]})})}function A({anomaly:e}){let t="danger"===e.level?"border-red-500/30 bg-red-500/10 text-red-700 dark:text-red-300":"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",s="danger"===e.level?"error":"warning";return(0,l.jsx)("div",{className:b("rounded-2xl border p-4",t),children:(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:s}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.title}),(0,l.jsx)("div",{className:"mt-1 text-sm opacity-90",children:e.detail})]})]})})}function E({notes:e=[]}){return e.length?(0,l.jsx)("div",{className:"space-y-2 rounded-2xl border border-blue-500/20 bg-blue-500/10 p-4 text-sm text-blue-700 dark:text-blue-300",children:e.map((e,t)=>(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"info"}),(0,l.jsx)("span",{children:e})]},t))}):null}function F({filters:e,setFilters:t,options:s,onRefresh:r,onExportCsv:a,loading:o}){let i=(e,s)=>t(t=>({...t,[e]:s}));return(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"grid gap-3 md:grid-cols-2 xl:grid-cols-6",children:[(0,l.jsx)(k,{label:"Khoảng thời gian",children:(0,l.jsx)(y,{value:e.period,onChange:e=>i("period",e),children:n.map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))})}),(0,l.jsx)(k,{label:"Từ ng\xe0y",children:(0,l.jsx)(N,{type:"datetime-local",value:e.dateFrom,onChange:e=>i("dateFrom",e)})}),(0,l.jsx)(k,{label:"Đến ng\xe0y",children:(0,l.jsx)(N,{type:"datetime-local",value:e.dateTo,onChange:e=>i("dateTo",e)})}),(0,l.jsx)(k,{label:"Provider",children:(0,l.jsxs)(y,{value:e.provider,onChange:e=>i("provider",e),children:[(0,l.jsx)("option",{value:"",children:"Tất cả provider"}),(s.providers||[]).map(e=>{let t="string"==typeof e?e:e.value,s="string"==typeof e?e:e.label||e.value;return(0,l.jsx)("option",{value:t,children:s},t)})]})}),(0,l.jsx)(k,{label:"Model",children:(0,l.jsxs)(y,{value:e.model,onChange:e=>i("model",e),children:[(0,l.jsx)("option",{value:"",children:"Tất cả model"}),(s.models||[]).map(e=>(0,l.jsx)("option",{value:e,children:e},e))]})}),(0,l.jsx)(k,{label:"Provider account",children:(0,l.jsxs)(y,{value:e.connectionId,onChange:e=>i("connectionId",e),children:[(0,l.jsx)("option",{value:"",children:"Tất cả account"}),(s.connections||[]).map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))]})}),(0,l.jsx)(k,{label:"API key",children:(0,l.jsxs)(y,{value:e.apiKey,onChange:e=>i("apiKey",e),children:[(0,l.jsx)("option",{value:"",children:"Tất cả API key"}),(s.apiKeys||[]).map(e=>(0,l.jsx)("option",{value:e.value,children:e.label},e.value))]})}),(0,l.jsx)(k,{label:"Source IP",children:(0,l.jsx)(N,{value:e.clientIp,onChange:e=>i("clientIp",e),placeholder:"172.16.253.1"})}),(0,l.jsx)(k,{label:"Source tool",children:(0,l.jsx)(N,{value:e.sourceTool,onChange:e=>i("sourceTool",e),placeholder:"copilot, antigravity..."})}),(0,l.jsx)(k,{label:"Endpoint",children:(0,l.jsxs)(y,{value:e.endpoint,onChange:e=>i("endpoint",e),children:[(0,l.jsx)("option",{value:"",children:"Tất cả endpoint"}),(s.endpoints||[]).map(e=>(0,l.jsx)("option",{value:e,children:e},e))]})}),(0,l.jsx)(k,{label:"Status",children:(0,l.jsxs)(y,{value:e.status,onChange:e=>i("status",e),children:[(0,l.jsx)("option",{value:"",children:"Tất cả status"}),(s.statuses||[]).map(e=>(0,l.jsx)("option",{value:e,children:e},e))]})}),(0,l.jsx)(k,{label:"Session / keyword",children:(0,l.jsx)(N,{value:e.sessionId||e.keyword,onChange:e=>i("keyword",e),placeholder:"session, prompt, error..."})})]}),(0,l.jsxs)("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-3",children:[(0,l.jsx)("div",{className:"text-xs text-text-muted",children:"Token/cost lấy từ UsageHistory. Source IP/tool/session lấy từ Prompt Logs."}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,l.jsx)("button",{onClick:()=>t({period:"24h",dateFrom:"",dateTo:"",provider:"",model:"",connectionId:"",status:"",endpoint:"",apiKey:"",clientIp:"",sourceTool:"",sessionId:"",keyword:""}),className:"rounded-xl border border-border px-3 py-2 text-sm font-medium text-text-main hover:bg-background",children:"Reset"}),(0,l.jsxs)("button",{onClick:a,className:"rounded-xl border border-border px-3 py-2 text-sm font-medium text-text-main hover:bg-background",children:[(0,l.jsx)("span",{className:"material-symbols-outlined mr-1 align-[-4px] text-[18px]",children:"download"}),"Export CSV"]}),(0,l.jsxs)("button",{onClick:r,disabled:o,className:"rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white shadow-sm disabled:opacity-60",children:[(0,l.jsx)("span",{className:"material-symbols-outlined mr-1 align-[-4px] text-[18px]",children:"refresh"}),o?"Đang tải...":"Refresh"]})]})]})]})}function _({data:e}){let t=e.overview||{},s=e.latency||{},r=e.experience||{};return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:[(0,l.jsx)(v,{icon:"call_made",label:"Tổng request",value:o(t.requests),hint:`${o(t.requestsPerMinute,2)} request/ph\xfat`}),(0,l.jsx)(v,{icon:"check_circle",label:"Th\xe0nh c\xf4ng",value:o(t.success),hint:`Tỷ lệ lỗi ${d(t.errorRate)}`,tone:"green"}),(0,l.jsx)(v,{icon:"dns",label:"Lỗi server/provider",value:o(t.serverErrorEvents),hint:`Server-impacting ${d(t.serverErrorRate)} \xb7 client ${o(t.clientErrorEvents)}`,tone:t.serverErrorEvents?"red":"green"}),(0,l.jsx)(v,{icon:"speed",label:"Trải nghiệm",value:u(r.score),hint:`${r.label||"-"} \xb7 ${o(r.samples)} mẫu`,tone:r.tone||"purple"}),(0,l.jsx)(v,{icon:"timer",label:"Latency P95",value:x(r.p95LatencyMs||s.p95Ms),hint:`AVG ${x(r.avgLatencyMs||s.avgMs)} \xb7 P50 ${x(r.p50LatencyMs||s.p50Ms)}`,tone:"purple"}),(0,l.jsx)(v,{icon:"bolt",label:"TTFT P95",value:x(r.p95TtftMs),hint:"Thời gian chờ token đầu ti\xean",tone:r.slowTtftRate>=.2?"amber":"blue"}),(0,l.jsx)(v,{icon:"input",label:"Input P95",value:i(r.p95PromptTokens||0),hint:`Avg ${i(r.avgPromptTokens||t.avgPromptTokens)} \xb7 >=30k ${d(r.longInputRate)}`}),(0,l.jsx)(v,{icon:"person_alert",label:"Top user nặng",value:t.topHeavyUser||"-",hint:`Chiếm ${d(t.topHeavyUserTokenShare)} tổng token`,tone:t.topHeavyUserTokenShare>=.35?"amber":"slate"}),(0,l.jsx)(v,{icon:"running_with_errors",label:"Request chậm",value:d(r.slowRequestRate),hint:`>= ${x(r.thresholds?.slowLatencyMs||45e3)} \xb7 max ${x(r.maxLatencyMs)}`,tone:r.slowRequestRate>=.2?"amber":"green"}),(0,l.jsx)(v,{icon:"output",label:"Output tokens",value:i(t.completionTokens),hint:`Avg ${o(t.avgCompletionTokens,1)} / request`}),(0,l.jsx)(v,{icon:"token",label:"Tổng tokens",value:i(t.totalTokens),hint:`${i(t.tokensPerMinute)} token/ph\xfat`,tone:"amber"}),(0,l.jsx)(v,{icon:"speed",label:"Output speed",value:m(r.decodeTokensPerSecond," tok/s"),hint:`Latency/10k input ${x(r.latencyMsPer10kInputTokens)}`,tone:"slate"}),(0,l.jsx)(v,{icon:"payments",label:"Cost ước t\xednh",value:c(t.cost),hint:"Dựa tr\xean pricing đ\xe3 cấu h\xecnh",tone:"green"})]}),(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-[2fr_1fr]",children:[(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Tần suất request & token theo thời gian"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Cột xanh l\xe0 token, cột v\xe0ng l\xe0 số request trong từng bucket thời gian."})]}),(0,l.jsx)(P,{})]}),(0,l.jsx)(w,{data:e.timeSeries||[]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"T\xf3m tắt active"}),(0,l.jsx)("div",{className:"mt-4 space-y-3",children:[["API key đang d\xf9ng",t.activeApiKeys],["Provider active",t.activeProviders],["Model active",t.activeModels],["Endpoint active",t.activeEndpoints],["Cached tokens",t.cachedTokens],["Reasoning tokens",t.reasoningTokens],["Latency AVG",x(r.avgLatencyMs||s.avgMs)],["Latency P50",x(r.p50LatencyMs||s.p50Ms)],["Latency P99",x(r.p99LatencyMs||s.p99Ms)],["TTFT P95",x(r.p95TtftMs)],["Input P95",i(r.p95PromptTokens||0)],["Long input >=30k",d(r.longInputRate)]].map(([e,t])=>(0,l.jsxs)("div",{className:"flex items-center justify-between rounded-xl bg-background px-3 py-2",children:[(0,l.jsx)("span",{className:"text-sm text-text-muted",children:e}),(0,l.jsx)("span",{className:"font-semibold text-text-main",children:"number"==typeof t?o(t):t})]},e))})]})]}),(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-2",children:[(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Top API key d\xf9ng nhiều token"}),(0,l.jsx)(q,{rows:(e.clientRequests?.topApiKeysByTokens||e.groups?.apiKeys||[]).slice(0,8),columns:[{key:"name",label:"API key",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.name||e.label}),(0,l.jsxs)("div",{className:"text-xs text-text-muted",children:[e.fingerprint||e.apiKeyFingerprint,e.ownerUser||e.apiKeyOwner?` \xb7 ${e.ownerUser||e.apiKeyOwner}`:""]})]})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"input",label:"P95/Max input",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsx)("div",{children:i(e.p95PromptTokens||0)}),(0,l.jsxs)("div",{className:"text-text-muted",children:["max ",i(e.maxPromptTokens||0)]})]})}]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Top Source IP d\xf9ng nhiều token"}),(0,l.jsx)(q,{rows:(e.clientRequests?.topSourceIpsByTokens||[]).slice(0,8),columns:[{key:"label",label:"Source IP",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.label})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"heavy",label:"Nặng",render:e=>(0,l.jsxs)("span",{className:"text-xs text-text-muted",children:[o(e.heavyRequests||0)," req"]})}],empty:"Kh\xf4ng c\xf3 Source IP c\xf3 token trong khoảng lọc."})]})]})]})}function O({data:e}){let t=e.clientRequests||{},s=t.summary||{},r=t.topHeavyUsers||[],n=t.topProblemClients||[],a=t.topApiKeysByTokens||[],c=t.topSourceIpsByTokens||[];t.topSourceIpsByHeavyRequests;let m=t.inputBuckets||[],u=e=>(0,l.jsxs)("div",{className:"min-w-[220px]",children:[(0,l.jsx)("div",{className:"font-semibold text-text-main",children:e.label}),(0,l.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:e.ownerUser?`Owner ${e.ownerUser}`:e.apiKeyName||"Kh\xf4ng c\xf3 owner"}),(0,l.jsx)("div",{className:"font-mono text-[11px] text-text-muted",children:e.apiKeyFingerprint||e.primaryClientIp||e.key})]}),p=e=>(0,l.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,l.jsxs)("div",{children:["Nặng ",o(e.heavyRequests)," \xb7 ",d(e.heavyRequestRate)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["P95 input ",i(e.p95PromptTokens)," \xb7 Max ",i(e.maxPromptTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:[">=70k ",o(e.extremeInputRequests)," \xb7 ",d(e.extremeInputRate)]})]});return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:[(0,l.jsx)(v,{icon:"person_alert",label:"Top user nặng nhất",value:s.topUserLabel||"-",hint:`${i(s.topUserTokens)} token \xb7 ${d(s.topUserTokenShare)} tổng token`,tone:s.topUserTokenShare>=.35?"amber":"slate"}),(0,l.jsx)(v,{icon:"vpn_key",label:"Top API key nhiều token",value:s.topApiKeyLabel||"-",hint:`${i(s.topApiKeyTokens)} token \xb7 ${d(s.topApiKeyTokenShare)} tổng token`,tone:s.topApiKeyTokenShare>=.35?"amber":"blue"}),(0,l.jsx)(v,{icon:"lan",label:"Top IP nhiều token",value:s.topSourceIpLabel||"-",hint:`${i(s.topSourceIpTokens)} token \xb7 ${d(s.topSourceIpTokenShare)} tổng token`,tone:s.topSourceIpTokenShare>=.35?"amber":"purple"}),(0,l.jsx)(v,{icon:"input",label:"Input d\xe0i >=30k",value:d(s.longInputBucketShare||0),hint:`>=70k ${d(s.extremeInputShare||0)}`,tone:(s.extremeInputShare||0)>=.1?"amber":"green"}),(0,l.jsx)(v,{icon:"groups",label:"User/API key được theo d\xf5i",value:o(s.trackedUsers||0),hint:"Theo owner/API key fingerprint/source IP",tone:"blue"}),(0,l.jsx)(v,{icon:"network_check",label:"Top IP request nặng",value:s.topSourceIpHeavyLabel||"-",hint:`${o(s.topSourceIpHeavyRequests||0)} request >=30k input/total`,tone:s.topSourceIpHeavyRequests?"amber":"slate"}),(0,l.jsx)(v,{icon:"report",label:"Client lỗi nhiều",value:o(s.problemClients||0),hint:"Nh\xf3m user/API key c\xf3 error rows",tone:s.problemClients?"amber":"green"})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-start justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Top user/API key gửi request nặng nhất"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Xếp theo tổng input/output token của request th\xe0nh c\xf4ng c\xf3 token. D\xf9ng để ph\xe1t hiện user VS Code/agent đang tạo tải long-context lớn."})]}),(0,l.jsx)("span",{className:"rounded-full bg-primary/10 px-3 py-1 text-xs font-semibold text-primary",children:"Kh\xf4ng hiển thị full bearer token"})]}),(0,l.jsx)(q,{rows:r,columns:[{key:"user",label:"User/API key",render:u},{key:"quality",label:"\xc1p lực",render:e=>(0,l.jsx)(M,{level:e.level,label:e.pressureLabel})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"input",label:"Input pressure",render:e=>(0,l.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,l.jsxs)("div",{children:["Avg ",i(e.avgPromptTokens)," \xb7 P95 ",i(e.p95PromptTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["Max ",i(e.maxPromptTokens)," \xb7 >=30k ",d(e.longInputRate)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:[">=50k ",d(e.hugeInputRate)," \xb7 >=70k ",d(e.extremeInputRate)]})]})},{key:"latency",label:"Latency / TTFT",render:e=>(0,l.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,l.jsxs)("div",{children:["P95 ",x(e.p95LatencyMs)," \xb7 Max ",x(e.maxLatencyMs)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["TTFT P95 ",x(e.p95TtftMs)," \xb7 Slow ",d(e.slowRequestRate)]})]})},{key:"topModels",label:"Top model",render:e=>(0,l.jsx)(S,{items:e.topModels})},{key:"topIps",label:"IP / Tool",render:e=>(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)(S,{items:e.topIps}),(0,l.jsx)(S,{items:e.topTools})]})},{key:"meta",label:"Meta",render:e=>(0,l.jsxs)("div",{className:"space-y-1 text-xs text-text-muted",children:[(0,l.jsxs)("div",{children:["Key ",o(e.apiKeyCount)," \xb7 IP ",o(e.sourceIpCount)," \xb7 Tool ",o(e.sourceToolCount)]}),(0,l.jsxs)("div",{children:["Session ",o(e.sessionCount)," \xb7 Last ",h(e.lastSeen)]})]})}],empty:"Kh\xf4ng c\xf3 request th\xe0nh c\xf4ng c\xf3 token trong khoảng lọc."})]}),(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-2",children:[(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Top API key d\xf9ng nhiều token nhất"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Xếp theo tổng input + output token từ UsageHistory, kh\xf4ng lộ full bearer token."})]}),(0,l.jsx)(q,{rows:a,columns:[{key:"apiKey",label:"API key",render:e=>(0,l.jsxs)("div",{className:"min-w-[220px]",children:[(0,l.jsx)("div",{className:"font-semibold text-text-main",children:e.label}),(0,l.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:e.apiKeyOwner?`Owner ${e.apiKeyOwner}`:e.apiKeyName||e.primarySourceTool||"-"}),(0,l.jsx)("div",{className:"font-mono text-[11px] text-text-muted",children:e.apiKeyFingerprint||e.primaryClientIp||e.key})]})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"input",label:"Input nặng",render:p},{key:"meta",label:"Nguồn",render:e=>(0,l.jsxs)("div",{className:"text-xs text-text-muted",children:[(0,l.jsxs)("div",{children:["IP ",o(e.sourceIpCount)," \xb7 Tool ",o(e.sourceToolCount)]}),(0,l.jsxs)("div",{children:["Model ",o(e.modelCount)," \xb7 Provider ",o(e.providerCount)]})]})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}],empty:"Kh\xf4ng c\xf3 API key c\xf3 token trong khoảng lọc."})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Top Source IP d\xf9ng nhiều token nhất"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Dựa tr\xean UsageHistory n\xean c\xf3 input/output token, kh\xe1c với bảng Source IP từ Prompt Logs chỉ đếm log."})]}),(0,l.jsx)(q,{rows:c,columns:[{key:"ip",label:"Source IP",render:e=>(0,l.jsxs)("div",{className:"min-w-[180px]",children:[(0,l.jsx)("div",{className:"font-mono text-sm font-semibold text-text-main",children:e.label}),(0,l.jsxs)("div",{className:"mt-1 text-xs text-text-muted",children:["Tool ",o(e.sourceToolCount)," \xb7 API key ",o(e.apiKeyCount)]}),(0,l.jsxs)("div",{className:"text-xs text-text-muted",children:["Model ",o(e.modelCount)," \xb7 Provider ",o(e.providerCount)]})]})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"input",label:"Input nặng",render:p},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}],empty:"Kh\xf4ng c\xf3 Source IP c\xf3 token trong khoảng lọc."})]})]}),(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-2",children:[(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Ph\xe2n bố request theo k\xedch thước input"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Gi\xfap admin biết workload đang l\xe0 chat ngắn hay long-context VS Code/agent."})]}),(0,l.jsx)(q,{rows:m,columns:[{key:"label",label:"Input bucket",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.label})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"share",label:"Tỷ trọng",render:e=>d(e.share)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"latency",label:"Latency P95/MAX",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsxs)("div",{children:[x(e.p95LatencyMs)," / ",x(e.maxLatencyMs)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["TTFT P95 ",x(e.p95TtftMs)]})]})}],empty:"Kh\xf4ng c\xf3 dữ liệu bucket input."})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Client/API key lỗi nhiều"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"D\xf9ng để ph\xe1t hiện sai endpoint/model/auth/policy hoặc client tool cấu h\xecnh sai."})]}),(0,l.jsx)(q,{rows:n,columns:[{key:"user",label:"Client",render:u},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"errors",label:"Lỗi",render:e=>o(e.errors)},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"source",label:"IP/Tool",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsx)("div",{className:"font-mono",children:e.primaryClientIp||"-"}),(0,l.jsx)("div",{className:"text-text-muted",children:e.primarySourceTool||"-"})]})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}],empty:"Kh\xf4ng c\xf3 client lỗi theo bộ lọc hiện tại."})]})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"G\xf3c nh\xecn monitor client n\xean d\xf9ng"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"C\xe1c chỉ số n\xe0y bổ sung cho latency/model để admin ph\xe2n biệt server chậm hay client gửi request qu\xe1 nặng."})]}),(0,l.jsx)("div",{className:"grid gap-3 text-sm md:grid-cols-2 xl:grid-cols-3",children:[["Token/user","X\xe1c định user/API key tạo tải lớn nhất, hữu \xedch cho quota v\xe0 hướng dẫn workflow VS Code."],["Input bucket","Nếu phần lớn request nằm ở 30k-70k+, P95/P99 cao chủ yếu do prompt eval/context d\xe0i."],["TTFT theo user","TTFT cao cho một user thường l\xe0 input d\xe0i hoặc chờ slot, kh\xf4ng nhất thiết provider lỗi."],["Error theo client","T\xe1ch lỗi sai endpoint/model/API key khỏi lỗi server/provider để kh\xf4ng cảnh b\xe1o nhầm."],["Source IP/tool","Ph\xe1t hiện m\xe1y/tool gửi request nhiều hoặc cấu h\xecnh sai."],["Top request nặng","D\xf9ng Raw usage để drill-down request cụ thể khi một user k\xe9o tải hệ thống."]].map(([e,t])=>(0,l.jsxs)("div",{className:"rounded-xl border border-border bg-background p-3",children:[(0,l.jsx)("div",{className:"font-semibold text-text-main",children:e}),(0,l.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:t})]},e))})]})]})}function U({data:e}){return(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Thống k\xea theo API key"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Kh\xf4ng hiển thị full bearer token. Dashboard chỉ d\xf9ng fingerprint/masked key."})]}),(0,l.jsx)(q,{rows:e.groups?.apiKeys||[],columns:[{key:"name",label:"API key",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.name}),(0,l.jsxs)("div",{className:"text-xs text-text-muted",children:[e.fingerprint,e.ownerUser?` \xb7 Owner: ${e.ownerUser}`:""]})]})},{key:"requests",label:"Requests",render:e=>o(e.requests)},{key:"success",label:"OK/Lỗi",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsxs)("div",{className:"text-green-600",children:["OK ",o(e.success)]}),(0,l.jsxs)("div",{className:"text-red-600",children:["Lỗi ",o(e.errors)]})]})},{key:"tokens",label:"In/Out token",render:e=>(0,l.jsx)(I,{row:e})},{key:"cost",label:"Cost",render:e=>c(e.cost)},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})},{key:"topModels",label:"Top model",render:e=>(0,l.jsx)(S,{items:e.topModels})},{key:"topProviders",label:"Top provider",render:e=>(0,l.jsx)(S,{items:e.topProviders})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]})}function V({data:e}){let t=e.clientRequests?.topSourceIpsByTokens||[],s=e.clientRequests?.topSourceIpsByHeavyRequests||[],r=e=>(0,l.jsxs)("div",{className:"min-w-[180px]",children:[(0,l.jsx)("div",{className:"font-mono text-sm font-semibold text-text-main",children:e.label}),(0,l.jsxs)("div",{className:"mt-1 text-xs text-text-muted",children:["API key ",o(e.apiKeyCount)," \xb7 Tool ",o(e.sourceToolCount)]}),(0,l.jsxs)("div",{className:"text-xs text-text-muted",children:["Model ",o(e.modelCount)," \xb7 Provider ",o(e.providerCount)]})]});return(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-2",children:[(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Top IP d\xf9ng nhiều token nhất"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Aggregate từ UsageHistory, xếp theo tổng input + output token."})]}),(0,l.jsx)(q,{rows:t,columns:[{key:"ip",label:"Source IP",render:r},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}],empty:"Kh\xf4ng c\xf3 Source IP c\xf3 token trong khoảng lọc."})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Top IP gửi request nặng nhất"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Xếp theo số request input/total token từ 30k trở l\xean, sau đ\xf3 theo max/P95 input."})]}),(0,l.jsx)(q,{rows:s,columns:[{key:"ip",label:"Source IP",render:r},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"heavy",label:"Request nặng",render:e=>(0,l.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,l.jsxs)("div",{children:["Nặng ",o(e.heavyRequests)," \xb7 ",d(e.heavyRequestRate)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["P95 input ",i(e.p95PromptTokens)," \xb7 Max ",i(e.maxPromptTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:[">=70k ",o(e.extremeInputRequests)," \xb7 ",d(e.extremeInputRate)]})]})},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}],empty:"Kh\xf4ng c\xf3 Source IP gửi request nặng trong khoảng lọc."})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Source IP từ Prompt Logs"}),(0,l.jsx)(q,{rows:e.promptLogs?.topClientIps||[],columns:[{key:"label",label:"IP",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.label})},{key:"requests",label:"Logs",render:e=>o(e.requests)},{key:"errors",label:"Lỗi",render:e=>o(e.errors)},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})},{key:"topTools",label:"Tools",render:e=>(0,l.jsx)(S,{items:e.topTools})},{key:"topModels",label:"Models",render:e=>(0,l.jsx)(S,{items:e.topModels})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Source tool"}),(0,l.jsx)(q,{rows:e.promptLogs?.topSourceTools||[],columns:[{key:"label",label:"Tool",render:e=>(0,l.jsx)("span",{className:"font-semibold",children:e.label})},{key:"requests",label:"Logs",render:e=>o(e.requests)},{key:"errors",label:"Lỗi",render:e=>o(e.errors)},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})},{key:"topIps",label:"Top IP",render:e=>(0,l.jsx)(S,{items:e.topIps})},{key:"topModels",label:"Top model",render:e=>(0,l.jsx)(S,{items:e.topModels})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]}),(0,l.jsxs)(j,{className:"xl:col-span-2",children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Session nhiều hoạt động"}),(0,l.jsx)(q,{rows:e.promptLogs?.topSessions||[],columns:[{key:"label",label:"Session",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.label})},{key:"requests",label:"Logs",render:e=>o(e.requests)},{key:"errors",label:"Lỗi",render:e=>o(e.errors)},{key:"topIps",label:"IP",render:e=>(0,l.jsx)(S,{items:e.topIps})},{key:"topTools",label:"Tool",render:e=>(0,l.jsx)(S,{items:e.topTools})},{key:"topModels",label:"Model",render:e=>(0,l.jsx)(S,{items:e.topModels})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]})]})}function D({data:e}){return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Provider"}),(0,l.jsx)(q,{rows:e.groups?.providers||[],columns:[{key:"label",label:"Provider",render:e=>(0,l.jsx)("span",{className:"font-semibold",children:e.label})},{key:"requests",label:"Requests",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"cost",label:"Cost",render:e=>c(e.cost)},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})},{key:"topModels",label:"Top model",render:e=>(0,l.jsx)(S,{items:e.topModels})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]}),(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-2",children:[(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Model"}),(0,l.jsx)(q,{rows:e.groups?.models||[],columns:[{key:"label",label:"Model",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.model}),(0,l.jsx)("div",{className:"text-xs text-text-muted",children:e.providerLabel||e.provider})]})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"errorRate",label:"Lỗi",render:e=>(0,l.jsx)(R,{value:e.errorRate})}]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Provider account / connection"}),(0,l.jsx)(q,{rows:e.groups?.providerAccounts||[],columns:[{key:"label",label:"Account",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.label}),(0,l.jsx)("div",{className:"text-xs text-text-muted",children:e.provider||e.connectionId})]})},{key:"requests",label:"Req",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"errorRate",label:"Lỗi",render:e=>(0,l.jsx)(R,{value:e.errorRate})}]})]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Endpoint"}),(0,l.jsx)(q,{rows:e.groups?.endpoints||[],columns:[{key:"label",label:"Endpoint",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.label})},{key:"requests",label:"Requests",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"cost",label:"Cost",render:e=>c(e.cost)},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]})]})}function H({data:e}){let t=e.experience||{},s=t.thresholds||{},r=t.byModel||[],n=t.slowestRequests||[];return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-4",children:[(0,l.jsx)(v,{icon:"verified",label:"Đ\xe1nh gi\xe1 tổng",value:u(t.score),hint:`${t.label||"-"} \xb7 ${o(t.samples)} mẫu success c\xf3 token`,tone:t.tone||"slate"}),(0,l.jsx)(v,{icon:"timer",label:"Latency AVG / P95",value:`${x(t.avgLatencyMs)} / ${x(t.p95LatencyMs)}`,hint:`P50 ${x(t.p50LatencyMs)} \xb7 P99 ${x(t.p99LatencyMs)}`,tone:"purple"}),(0,l.jsx)(v,{icon:"bolt",label:"TTFT AVG / P95",value:`${x(t.avgTtftMs)} / ${x(t.p95TtftMs)}`,hint:"TTFT cao thường l\xe0 queue/prompt eval/input d\xe0i",tone:t.slowTtftRate>=.2?"amber":"blue"}),(0,l.jsx)(v,{icon:"keyboard_double_arrow_up",label:"Input AVG / P95",value:`${i(t.avgPromptTokens)} / ${i(t.p95PromptTokens)}`,hint:`>=30k ${d(t.longInputRate)} \xb7 >=50k ${d(t.hugeInputRate)}`}),(0,l.jsx)(v,{icon:"running_with_errors",label:"Slow request",value:d(t.slowRequestRate),hint:`Latency >= ${x(s.slowLatencyMs||45e3)} \xb7 rất chậm ${d(t.verySlowRequestRate)}`,tone:t.slowRequestRate>=.2?"amber":"green"}),(0,l.jsx)(v,{icon:"pending_actions",label:"Slow TTFT",value:d(t.slowTtftRate),hint:`TTFT >= ${x(s.slowTtftMs||2e4)}`,tone:t.slowTtftRate>=.2?"amber":"green"}),(0,l.jsx)(v,{icon:"speed",label:"Output tốc độ",value:m(t.decodeTokensPerSecond," tok/s"),hint:`Output/latency ${m(t.outputTokensPerSecond," tok/s")}`,tone:"slate"}),(0,l.jsx)(v,{icon:"data_usage",label:"Latency / 10k input",value:x(t.latencyMsPer10kInputTokens),hint:"Hữu \xedch khi VS Code gửi 30k–70k token",tone:"slate"})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"C\xe1ch đọc trải nghiệm user"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Nh\xf3m n\xe0y chỉ t\xednh request th\xe0nh c\xf4ng c\xf3 token v\xe0 latency > 0. Error/pending/success 0-token kh\xf4ng trộn v\xe0o tốc độ model. TTFT l\xe0 thời gian tới token đầu ti\xean; với VS Code input 30k–70k, TTFT cao thường phản \xe1nh chờ slot hoặc prompt eval d\xe0i."})]}),(0,l.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,l.jsxs)("div",{className:"rounded-2xl bg-background p-4",children:[(0,l.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide text-text-muted",children:"Nhanh/chậm thực tế"}),(0,l.jsx)("div",{className:"mt-2 text-sm text-text-main",children:"Latency AVG/P50/P95/MAX cho biết user phải chờ bao l\xe2u để request ho\xe0n tất."})]}),(0,l.jsxs)("div",{className:"rounded-2xl bg-background p-4",children:[(0,l.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide text-text-muted",children:"Queue hoặc prompt eval"}),(0,l.jsx)("div",{className:"mt-2 text-sm text-text-main",children:"TTFT cao + input P95 cao l\xe0 t\xedn hiệu request d\xe0i, hết slot hoặc upstream đang queue."})]}),(0,l.jsxs)("div",{className:"rounded-2xl bg-background p-4",children:[(0,l.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide text-text-muted",children:"VS Code / agent"}),(0,l.jsx)("div",{className:"mt-2 text-sm text-text-main",children:"Theo d\xf5i tỷ lệ input >=30k/50k/70k để biết P95/P99 cao c\xf3 phải do context cực d\xe0i hay kh\xf4ng."})]})]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Chất lượng phản hồi theo provider/model"}),(0,l.jsx)(q,{rows:r,empty:"Chưa c\xf3 mẫu latency cho model trong khoảng lọc.",columns:[{key:"model",label:"Model",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.model}),(0,l.jsx)("div",{className:"text-xs text-text-muted",children:e.providerLabel||e.provider})]})},{key:"quality",label:"Đ\xe1nh gi\xe1",render:e=>(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)(L,{level:e.level,label:e.labelQuality}),(0,l.jsx)("div",{className:"text-xs text-text-muted",children:u(e.score)})]})},{key:"samples",label:"Mẫu",render:e=>o(e.samples)},{key:"latency",label:"Latency P50/P95/MAX",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsxs)("div",{children:[x(e.p50LatencyMs)," / ",x(e.p95LatencyMs)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:["max ",x(e.maxLatencyMs)]})]})},{key:"ttft",label:"TTFT P95",render:e=>x(e.p95TtftMs)},{key:"input",label:"Input avg/P95",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsxs)("div",{children:[i(e.avgPromptTokens)," / ",i(e.p95PromptTokens)]}),(0,l.jsxs)("div",{className:"text-text-muted",children:[">=30k ",d(e.longInputRate)]})]})},{key:"slow",label:"Chậm",render:e=>(0,l.jsx)(R,{value:e.slowRequestRate})},{key:"speed",label:"Output tok/s",render:e=>m(e.outputTokensPerSecond," tok/s")}]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Request chậm nhất"}),(0,l.jsx)(q,{rows:n,empty:"Kh\xf4ng c\xf3 request chậm trong khoảng lọc.",columns:[{key:"timestamp",label:"Time",render:e=>h(e.timestamp)},{key:"model",label:"Model",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.model}),(0,l.jsx)("div",{className:"text-xs text-text-muted",children:e.provider})]})},{key:"latency",label:"Latency / TTFT",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsx)("div",{className:"font-semibold",children:x(e.latencyMs)}),(0,l.jsxs)("div",{className:"text-text-muted",children:["TTFT ",x(e.ttftMs)]})]})},{key:"tokens",label:"In / Out",render:e=>(0,l.jsx)(I,{row:e})},{key:"apiKeyName",label:"API key",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:e.apiKeyName}),(0,l.jsx)("div",{className:"font-mono text-xs text-text-muted",children:e.apiKeyFingerprint})]})},{key:"sourceTool",label:"Tool/IP",render:e=>(0,l.jsxs)("div",{className:"text-xs",children:[(0,l.jsx)("div",{children:e.sourceTool||"-"}),(0,l.jsx)("div",{className:"font-mono text-text-muted",children:e.clientIp||"-"})]})},{key:"endpoint",label:"Endpoint",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.endpoint||"-"})}]})]})]})}function B({data:e}){let t=e.requestErrors||{},s=t.summary||{},r=e.overview||{},n=Number(r.serverErrorRate||0),a=Number(r.clientErrorRate||0),i=Number(r.rateLimitErrorRate||0),c=[{key:"faultOwner",label:"Loại",render:e=>(0,l.jsx)(C,{value:e.faultOwner})},{key:"status",label:"Status",render:e=>(0,l.jsx)("span",{className:"rounded-full bg-red-500/10 px-2 py-1 text-xs font-semibold text-red-600 dark:text-red-300",children:e.status})},{key:"provider",label:"Provider"},{key:"model",label:"Model"},{key:"endpoint",label:"Endpoint",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.endpoint})},{key:"requests",label:"Lỗi",render:e=>o(e.errors||e.requests)},{key:"errorType",label:"Type",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.errorType||e.errorCode||"-"})},{key:"sampleMessage",label:"Sample",render:e=>(0,l.jsx)(K,{row:e})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}];return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-5",children:[(0,l.jsx)($,{icon:"dns",label:"Server/provider",value:s.serverImpacting||0,hint:`${d(n)} tr\xean tổng request`,tone:s.serverImpacting?"red":"green"}),(0,l.jsx)($,{icon:"cloud_off",label:"Upstream",value:s.upstream||0,hint:"Provider/model server, timeout, network, 5xx",tone:s.upstream?"red":"green"}),(0,l.jsx)($,{icon:"router",label:"Gateway",value:s.gateway||0,hint:"Lỗi nội bộ BlueRouter/gateway",tone:s.gateway?"purple":"green"}),(0,l.jsx)($,{icon:"integration_instructions",label:"Client/request",value:s.client||0,hint:`${d(a)} do endpoint/model/body/auth`,tone:s.client?"slate":"green"}),(0,l.jsx)($,{icon:"speed",label:"Rate/quota",value:s.rateLimit||0,hint:`${d(i)} rate-limit/quota`,tone:s.rateLimit?"amber":"green"})]}),(0,l.jsx)("div",{className:"rounded-2xl border border-blue-500/20 bg-blue-500/10 p-4 text-sm text-blue-700 dark:text-blue-300",children:(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:"rule_settings"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:"Ph\xe2n loại lỗi đ\xe3 t\xe1ch client khỏi server/provider"}),(0,l.jsxs)("div",{className:"mt-1 opacity-90",children:["Cảnh b\xe1o vận h\xe0nh n\xean ưu ti\xean nh\xf3m ",(0,l.jsx)("b",{children:"Server/provider"})," gồm gateway, upstream, timeout, network v\xe0 5xx. Nh\xf3m ",(0,l.jsx)("b",{children:"Client/request"})," vẫn được log đầy đủ nhưng thường l\xe0 sai endpoint, model, auth, JSON/body hoặc context."]})]})]})}),e.anomalies?.length?(0,l.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:e.anomalies.map((e,t)=>(0,l.jsx)(A,{anomaly:e},t))}):(0,l.jsxs)("div",{className:"rounded-2xl border border-green-500/20 bg-green-500/10 p-4 text-sm text-green-700 dark:text-green-300",children:[(0,l.jsx)("span",{className:"material-symbols-outlined mr-2 align-[-5px]",children:"check_circle"}),"Chưa ph\xe1t hiện bất thường server/provider r\xf5 r\xe0ng theo bộ lọc hiện tại."]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-start justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Lỗi server/provider cần xử l\xfd"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Chỉ gồm gateway/upstream/server-impacting errors. Đ\xe2y l\xe0 bảng quan trọng nhất cho vận h\xe0nh."})]}),(0,l.jsxs)("span",{className:"rounded-full bg-red-500/10 px-3 py-1 text-xs font-semibold text-red-600 dark:text-red-300",children:[o(s.serverImpacting||0)," lỗi"]})]}),(0,l.jsx)(q,{rows:t.topServerErrors||[],columns:c,empty:"Kh\xf4ng c\xf3 lỗi server/provider trong khoảng lọc."})]}),(0,l.jsxs)("div",{className:"grid gap-5 xl:grid-cols-2",children:[(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Lỗi client/request sai"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Sai endpoint, model, auth, JSON/body, context length. D\xf9ng để hướng dẫn client sửa request."})]}),(0,l.jsx)(q,{rows:t.topClientErrors||[],columns:c.filter(e=>!["sampleMessage"].includes(e.key)),empty:"Kh\xf4ng c\xf3 lỗi client/request trong khoảng lọc."})]}),(0,l.jsxs)(j,{children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Ph\xe2n bố loại lỗi"}),(0,l.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"T\xe1ch nguồn chịu tr\xe1ch nhiệm để kh\xf4ng nhầm lỗi client th\xe0nh lỗi server."})]}),(0,l.jsx)(q,{rows:t.byFaultOwner||[],columns:[{key:"faultOwner",label:"Loại",render:e=>(0,l.jsx)(C,{value:e.faultOwner||e.key})},{key:"requests",label:"Số lỗi",render:e=>o(e.requests)},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}],empty:"Kh\xf4ng c\xf3 lỗi để ph\xe2n loại."})]})]}),t.topRateLimitErrors?.length?(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Rate limit / quota"}),(0,l.jsx)(q,{rows:t.topRateLimitErrors||[],columns:c})]}):null,(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Tất cả lỗi raw theo status/provider/model/endpoint"}),(0,l.jsx)(q,{rows:e.groups?.errors||[],columns:[{key:"faultOwner",label:"Loại",render:e=>(0,l.jsx)(C,{value:e.faultOwner})},{key:"status",label:"Status",render:e=>(0,l.jsx)("span",{className:"rounded-full bg-red-500/10 px-2 py-1 text-xs font-semibold text-red-600 dark:text-red-300",children:e.status})},{key:"provider",label:"Provider"},{key:"model",label:"Model"},{key:"endpoint",label:"Endpoint",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.endpoint})},{key:"requests",label:"Lỗi",render:e=>o(e.errors||e.requests)},{key:"apiKey",label:"API key",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.apiKey})},{key:"lastSeen",label:"Last seen",render:e=>h(e.lastSeen)}]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Status distribution"}),(0,l.jsx)(q,{rows:e.groups?.statuses||[],columns:[{key:"label",label:"Status"},{key:"requests",label:"Requests",render:e=>o(e.requests)},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"errorRate",label:"Error %",render:e=>(0,l.jsx)(R,{value:e.errorRate})}]})]})]})}function G({data:e}){return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Top request nặng token"}),(0,l.jsx)(q,{rows:e.heavyRequests||[],columns:[{key:"timestamp",label:"Time",render:e=>h(e.timestamp)},{key:"model",label:"Model",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-semibold",children:e.model}),(0,l.jsx)("div",{className:"text-xs text-text-muted",children:e.provider})]})},{key:"apiKeyName",label:"API key",render:e=>(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:e.apiKeyName}),(0,l.jsx)("div",{className:"font-mono text-xs text-text-muted",children:e.apiKeyFingerprint})]})},{key:"accountName",label:"Account"},{key:"endpoint",label:"Endpoint",render:e=>(0,l.jsx)("span",{className:"font-mono text-xs",children:e.endpoint})},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"status",label:"Status"}]})]}),(0,l.jsxs)(j,{children:[(0,l.jsx)("h2",{className:"mb-4 text-lg font-semibold text-text-main",children:"Recent usage"}),(0,l.jsx)(q,{rows:e.recentUsage||[],columns:[{key:"timestamp",label:"Time",render:e=>h(e.timestamp)},{key:"provider",label:"Provider"},{key:"model",label:"Model"},{key:"apiKeyName",label:"API key"},{key:"tokens",label:"Token",render:e=>(0,l.jsx)(I,{row:e})},{key:"cost",label:"Cost",render:e=>c(e.cost)},{key:"status",label:"Status"}]})]})]})}function z(){let[e,t]=(0,r.useState)({period:"24h",dateFrom:"",dateTo:"",provider:"",model:"",connectionId:"",status:"",endpoint:"",apiKey:"",clientIp:"",sourceTool:"",sessionId:"",keyword:""}),[s,n]=(0,r.useState)(null),[o,i]=(0,r.useState)(!0),[d,c]=(0,r.useState)(""),[x,m]=(0,r.useState)("overview"),[u,p]=(0,r.useState)(!1),j=function(e,t=450){let[s,l]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let s=setTimeout(()=>l(e),t);return()=>clearTimeout(s)},[e,t]),s}(e,450),v=(0,r.useCallback)(async()=>{i(!0),c("");try{let e=g(j),t=await fetch(`/api/dashboard/analytics?${e}`,{cache:"no-store"}),s=await t.json().catch(()=>({}));if(!t.ok)throw Error(s.error||"Kh\xf4ng tải được dữ liệu analytics");n(s)}catch(e){c(e.message||"Kh\xf4ng tải được dữ liệu analytics")}finally{i(!1)}},[j]);(0,r.useEffect)(()=>{v()},[v]),(0,r.useEffect)(()=>{if(!u)return;let e=setInterval(()=>v(),1e4);return()=>clearInterval(e)},[u,v]);let k=s?.options||{},y=(0,r.useMemo)(()=>s?.generatedAt?h(s.generatedAt):"-",[s]);return(0,l.jsxs)("div",{className:"space-y-5 p-4 md:p-6",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 text-primary",children:[(0,l.jsx)("span",{className:"material-symbols-outlined",children:"monitoring"}),(0,l.jsx)("span",{className:"text-sm font-semibold uppercase tracking-wide",children:"BlueRouter Analytics"})]}),(0,l.jsx)("h1",{className:"mt-2 text-2xl font-bold text-text-main",children:"Thống k\xea sử dụng Gateway"}),(0,l.jsx)("p",{className:"mt-1 max-w-3xl text-sm text-text-muted",children:"Theo d\xf5i tần suất request, input/output token, API key, provider, model, endpoint, Source IP, source tool v\xe0 lỗi vận h\xe0nh."})]}),(0,l.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border border-border bg-surface px-4 py-3 text-sm text-text-muted",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"schedule"}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:["Generated: ",y]}),(0,l.jsxs)("label",{className:"mt-1 flex cursor-pointer items-center gap-2 text-xs",children:[(0,l.jsx)("input",{type:"checkbox",checked:u,onChange:e=>p(e.target.checked)}),"Auto refresh 10s"]})]})]})]}),(0,l.jsx)(F,{filters:e,setFilters:t,options:k,onRefresh:v,onExportCsv:()=>{let e=g(j,{format:"csv"});window.open(`/api/dashboard/analytics?${e}`,"_blank","noopener,noreferrer")},loading:o}),d?(0,l.jsxs)("div",{className:"rounded-2xl border border-red-500/30 bg-red-500/10 p-4 text-sm text-red-700 dark:text-red-300",children:[(0,l.jsx)("span",{className:"material-symbols-outlined mr-2 align-[-5px]",children:"error"}),d]}):null,s?.qualityNotes?.length?(0,l.jsx)(E,{notes:s.qualityNotes}):null,(0,l.jsx)("div",{className:"flex flex-wrap gap-2 rounded-2xl border border-border bg-surface p-2",children:a.map(e=>(0,l.jsxs)("button",{onClick:()=>m(e.value),className:b("flex items-center gap-2 rounded-xl px-3 py-2 text-sm font-medium transition",x===e.value?"bg-primary text-white shadow-sm":"text-text-muted hover:bg-background hover:text-text-main"),children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e.icon}),e.label]},e.value))}),o&&!s?(0,l.jsx)(f,{}):null,!o&&s&&s.overview?.requests===0&&0===(s.promptLogs?.total||0)?(0,l.jsx)(T,{title:"Chưa c\xf3 dữ liệu analytics",description:"Kh\xf4ng c\xf3 UsageHistory hoặc Prompt Logs theo bộ lọc hiện tại."}):null,s?(0,l.jsxs)(l.Fragment,{children:["overview"===x?(0,l.jsx)(_,{data:s}):null,"apiKeys"===x?(0,l.jsx)(U,{data:s}):null,"clients"===x?(0,l.jsx)(O,{data:s}):null,"sources"===x?(0,l.jsx)(V,{data:s}):null,"providers"===x?(0,l.jsx)(D,{data:s}):null,"experience"===x?(0,l.jsx)(H,{data:s}):null,"errors"===x?(0,l.jsx)(B,{data:s}):null,"raw"===x?(0,l.jsx)(G,{data:s}):null]}):null]})}}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=39944)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6099,6337],{18032:(e,t,s)=>{Promise.resolve().then(s.bind(s,95907))},95907:(e,t,s)=>{"use strict";s.d(t,{default:()=>m});var a=s(95155),l=s(12115),n=s(14051),i=s.n(n),r=s(35497),d=s(11059);let o=[{id:"lite",label:"Lite",desc:"N\xe9n nhẹ, vẫn giữ ngữ ph\xe1p dễ đọc."},{id:"full",label:"Full",desc:"N\xe9n c\xe2n bằng, giảm token r\xf5 hơn."},{id:"ultra",label:"Ultra",desc:"N\xe9n tối đa, c\xe2u cực ngắn."}];function c({label:e,value:t,copiedKey:s,copied:l,copy:n}){return(0,a.jsxs)("div",{className:"rounded-xl border border-border bg-background p-3",children:[(0,a.jsx)("div",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-text-muted",children:e}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)("code",{className:"min-w-0 flex-1 truncate rounded-lg bg-surface px-3 py-2 font-mono text-xs text-text-main",children:t}),(0,a.jsx)("button",{type:"button",onClick:()=>n(t,s),className:"rounded-lg border border-border px-2 py-2 text-text-muted transition hover:border-primary hover:text-primary",title:"Copy",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l===s?"check":"content_copy"})})]})]})}function m({machineId:e}){let[t,s]=(0,l.useState)(!0),[n,i]=(0,l.useState)(""),[x,p]=(0,l.useState)(""),[h,u]=(0,l.useState)({hasPassword:!0,rtkEnabled:!0,cavemanEnabled:!1,cavemanLevel:"full",apiKeyDefaultModel:""}),{copied:b,copy:v}=(0,d.C)(),y=(0,l.useMemo)(()=>(function(e=""){let t=e?`${e.replace(/\/$/,"")}/v1`:"/v1";return{base:t,chat:`${t}/chat/completions`,models:`${t}/models`,health:e?`${e.replace(/\/$/,"")}/api/health`:"/api/health"}})(x),[x]);(0,l.useEffect)(()=>{p(window.location.origin),j()},[]);let j=async()=>{s(!0);try{let e=await fetch("/api/dashboard/endpoint",{cache:"no-store"}),t=await e.json();e.ok&&u(e=>({...e,...t}))}catch(e){console.log("Error loading endpoint settings:",e)}finally{s(!1)}},g=async(e,t="")=>{i(t);try{let t=await fetch("/api/dashboard/endpoint",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok?u(e=>({...e,...s})):alert(s.error||"Cập nhật thiết lập thất bại")}catch(e){console.log("Error updating endpoint settings:",e),alert("Cập nhật thiết lập thất bại")}finally{i("")}};return t?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(r.Qv,{}),(0,a.jsx)(r.Qv,{})]}):(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Endpoint"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Endpoint nội bộ để tool gọi BlueRouter theo chuẩn OpenAI-compatible. Cloudflare Tunnel v\xe0 Tailscale đ\xe3 được bỏ khỏi trang n\xe0y để dashboard load nhẹ hơn."})]}),(0,a.jsxs)(r.$n,{onClick:j,variant:"ghost",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"refresh"}),"L\xe0m mới"]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex items-start gap-3",children:[(0,a.jsx)("div",{className:"rounded-2xl bg-primary/10 p-3 text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"hub"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-text-main",children:"Th\xf4ng tin API endpoint"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"D\xf9ng c\xe1c URL dưới đ\xe2y cho LibreChat, VSCode, Copilot proxy, Antigravity hoặc tool OpenAI-compatible kh\xe1c."})]})]}),(0,a.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,a.jsx)(c,{label:"Base URL",value:y.base,copiedKey:"base",copied:b,copy:v}),(0,a.jsx)(c,{label:"Chat Completions",value:y.chat,copiedKey:"chat",copied:b,copy:v}),(0,a.jsx)(c,{label:"Models",value:y.models,copiedKey:"models",copied:b,copy:v}),(0,a.jsx)(c,{label:"Health",value:y.health,copiedKey:"health",copied:b,copy:v})]}),(0,a.jsxs)("p",{className:"mt-4 text-xs text-text-muted",children:["Machine ID: ",(0,a.jsx)("code",{className:"rounded bg-surface px-1.5 py-0.5",children:e||"unknown"})]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex items-start gap-3",children:[(0,a.jsx)("div",{className:"rounded-2xl bg-primary/10 p-3 text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"bolt"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-text-main",children:"Token Saver"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Giảm token cho output từ tool v\xe0 phản hồi model. Bật/tắt tại đ\xe2y kh\xf4ng cần load API keys, provider hay tunnel status."})]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-semibold text-text-main",children:"RTK tool output compression"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"N\xe9n output của git/grep/ls/tree/logs trước khi gửi v\xe0o model."})]}),(0,a.jsx)(r.lM,{checked:!1!==h.rtkEnabled,onChange:e=>g({rtkEnabled:e},"rtkEnabled"),disabled:"rtkEnabled"===n})]}),(0,a.jsxs)("div",{className:"rounded-xl border border-border p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-semibold text-text-main",children:"Caveman output compression"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Th\xeam style prompt để model trả lời ngắn hơn, giảm output token."})]}),(0,a.jsx)(r.lM,{checked:!!h.cavemanEnabled,onChange:e=>g({cavemanEnabled:e},"cavemanEnabled"),disabled:"cavemanEnabled"===n})]}),h.cavemanEnabled&&(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:o.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>g({cavemanLevel:e.id},"cavemanLevel"),title:e.desc,className:`rounded-lg border px-3 py-1.5 text-xs font-medium transition ${h.cavemanLevel===e.id?"border-primary bg-primary text-white":"border-border text-text-muted hover:border-primary hover:text-primary"}`,children:e.label},e.id))})]})]})]})]})}c.propTypes={label:i().string.isRequired,value:i().string.isRequired,copiedKey:i().string.isRequired,copied:i().string,copy:i().func.isRequired},m.propTypes={machineId:i().string}}},e=>{e.O(0,[2574,3862,1051,1321,5497,8441,3794,7358],()=>e(e.s=18032)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6099,6337],{18032:(e,t,s)=>{Promise.resolve().then(s.bind(s,95907))},95907:(e,t,s)=>{"use strict";s.d(t,{default:()=>m});var a=s(95155),l=s(12115),n=s(14051),i=s.n(n),r=s(35497),d=s(11059);let o=[{id:"lite",label:"Lite",desc:"N\xe9n nhẹ, vẫn giữ ngữ ph\xe1p dễ đọc."},{id:"full",label:"Full",desc:"N\xe9n c\xe2n bằng, giảm token r\xf5 hơn."},{id:"ultra",label:"Ultra",desc:"N\xe9n tối đa, c\xe2u cực ngắn."}];function c({label:e,value:t,copiedKey:s,copied:l,copy:n}){return(0,a.jsxs)("div",{className:"rounded-xl border border-border bg-background p-3",children:[(0,a.jsx)("div",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-text-muted",children:e}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,a.jsx)("code",{className:"min-w-0 flex-1 truncate rounded-lg bg-surface px-3 py-2 font-mono text-xs text-text-main",children:t}),(0,a.jsx)("button",{type:"button",onClick:()=>n(t,s),className:"rounded-lg border border-border px-2 py-2 text-text-muted transition hover:border-primary hover:text-primary",title:"Copy",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l===s?"check":"content_copy"})})]})]})}function m({machineId:e}){let[t,s]=(0,l.useState)(!0),[n,i]=(0,l.useState)(""),[x,p]=(0,l.useState)(""),[h,u]=(0,l.useState)({hasPassword:!0,rtkEnabled:!0,cavemanEnabled:!1,cavemanLevel:"full",apiKeyDefaultModel:""}),{copied:b,copy:v}=(0,d.C)(),y=(0,l.useMemo)(()=>(function(e=""){let t=e?`${e.replace(/\/$/,"")}/v1`:"/v1";return{base:t,chat:`${t}/chat/completions`,models:`${t}/models`,health:e?`${e.replace(/\/$/,"")}/api/health`:"/api/health"}})(x),[x]);(0,l.useEffect)(()=>{p(window.location.origin),j()},[]);let j=async()=>{s(!0);try{let e=await fetch("/api/dashboard/endpoint",{cache:"no-store"}),t=await e.json();e.ok&&u(e=>({...e,...t}))}catch(e){console.log("Error loading endpoint settings:",e)}finally{s(!1)}},g=async(e,t="")=>{i(t);try{let t=await fetch("/api/dashboard/endpoint",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok?u(e=>({...e,...s})):alert(s.error||"Cập nhật thiết lập thất bại")}catch(e){console.log("Error updating endpoint settings:",e),alert("Cập nhật thiết lập thất bại")}finally{i("")}};return t?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(r.Qv,{}),(0,a.jsx)(r.Qv,{})]}):(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Endpoint"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Endpoint nội bộ để tool gọi BlueRouter theo chuẩn OpenAI-compatible. Cloudflare Tunnel v\xe0 Tailscale đ\xe3 được bỏ khỏi trang n\xe0y để dashboard load nhẹ hơn."})]}),(0,a.jsxs)(r.$n,{onClick:j,variant:"ghost",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"refresh"}),"L\xe0m mới"]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex items-start gap-3",children:[(0,a.jsx)("div",{className:"rounded-2xl bg-primary/10 p-3 text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"hub"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-text-main",children:"Th\xf4ng tin API endpoint"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"D\xf9ng c\xe1c URL dưới đ\xe2y cho LibreChat, VSCode, Copilot proxy, Antigravity hoặc tool OpenAI-compatible kh\xe1c."})]})]}),(0,a.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,a.jsx)(c,{label:"Base URL",value:y.base,copiedKey:"base",copied:b,copy:v}),(0,a.jsx)(c,{label:"Chat Completions",value:y.chat,copiedKey:"chat",copied:b,copy:v}),(0,a.jsx)(c,{label:"Models",value:y.models,copiedKey:"models",copied:b,copy:v}),(0,a.jsx)(c,{label:"Health",value:y.health,copiedKey:"health",copied:b,copy:v})]}),(0,a.jsxs)("p",{className:"mt-4 text-xs text-text-muted",children:["Machine ID: ",(0,a.jsx)("code",{className:"rounded bg-surface px-1.5 py-0.5",children:e||"unknown"})]})]}),(0,a.jsxs)(r.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex items-start gap-3",children:[(0,a.jsx)("div",{className:"rounded-2xl bg-primary/10 p-3 text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"bolt"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-text-main",children:"Token Saver"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Giảm token cho output từ tool v\xe0 phản hồi model. Bật/tắt tại đ\xe2y kh\xf4ng cần load API keys, provider hay tunnel status."})]})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-semibold text-text-main",children:"RTK tool output compression"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"N\xe9n output của git/grep/ls/tree/logs trước khi gửi v\xe0o model."})]}),(0,a.jsx)(r.lM,{checked:!1!==h.rtkEnabled,onChange:e=>g({rtkEnabled:e},"rtkEnabled"),disabled:"rtkEnabled"===n})]}),(0,a.jsxs)("div",{className:"rounded-xl border border-border p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"font-semibold text-text-main",children:"Caveman output compression"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:"Th\xeam style prompt để model trả lời ngắn hơn, giảm output token."})]}),(0,a.jsx)(r.lM,{checked:!!h.cavemanEnabled,onChange:e=>g({cavemanEnabled:e},"cavemanEnabled"),disabled:"cavemanEnabled"===n})]}),h.cavemanEnabled&&(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:o.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>g({cavemanLevel:e.id},"cavemanLevel"),title:e.desc,className:`rounded-lg border px-3 py-1.5 text-xs font-medium transition ${h.cavemanLevel===e.id?"border-primary bg-primary text-white":"border-border text-text-muted hover:border-primary hover:text-primary"}`,children:e.label},e.id))})]})]})]})]})}c.propTypes={label:i().string.isRequired,value:i().string.isRequired,copiedKey:i().string.isRequired,copied:i().string,copy:i().func.isRequired},m.propTypes={machineId:i().string}}},e=>{e.O(0,[2574,3862,1051,1321,5497,8441,3794,7358],()=>e(e.s=18032)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{7973:(e,a,s)=>{Promise.resolve().then(s.bind(s,64561))},64561:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>p});var t=s(95155),l=s(12115);let r="(|(sAMAccountName={{username}})(userPrincipalName={{username}})(mail={{username}}))";function d({status:e}){if(!e?.message)return null;let a="error"===e.type?"text-red-600 bg-red-50 border-red-200":"text-green-700 bg-green-50 border-green-200";return(0,t.jsx)("div",{className:`mt-3 rounded-xl border px-4 py-3 text-sm ${a}`,children:e.message})}function o({icon:e,title:a,desc:s,children:l}){return(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-surface p-6 shadow-sm",children:[(0,t.jsxs)("div",{className:"mb-5 flex items-start gap-3",children:[e&&(0,t.jsx)("span",{className:"material-symbols-outlined text-primary",children:e}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-bold text-text-main",children:a}),s&&(0,t.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:s})]})]}),l]})}function n({label:e,hint:a,children:s}){return(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"mb-1 block text-sm font-semibold text-text-main",children:e}),s,a&&(0,t.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:a})]})}function i(e){return(0,t.jsx)("input",{...e,className:`w-full rounded-xl border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary ${e.className||""}`})}function c({title:e,desc:a,checked:s,onChange:l,disabled:r}){return(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-xl border border-border bg-background px-4 py-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-text-main",children:e}),a&&(0,t.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:a})]}),(0,t.jsx)("button",{type:"button",disabled:r,onClick:()=>l(!s),className:`relative mt-0.5 h-6 w-11 rounded-full transition disabled:opacity-50 ${s?"bg-primary":"bg-border"}`,children:(0,t.jsx)("span",{className:`absolute top-0.5 h-5 w-5 rounded-full bg-white transition ${s?"left-5":"left-0.5"}`})})]})}function p(){let[e,a]=(0,l.useState)({}),[s,p]=(0,l.useState)(!0),[u,m]=(0,l.useState)({current:"",new:"",confirm:""}),[x,b]=(0,l.useState)({type:"",message:""}),[h,g]=(0,l.useState)(!1),[y,j]=(0,l.useState)(!1),[w,v]=(0,l.useState)({type:"",message:""}),D=(0,l.useRef)(null),[f,A]=(0,l.useState)("admin"),[N,C]=(0,l.useState)({type:"",message:""}),[U,L]=(0,l.useState)({ldapEnabled:!1,ldapUrl:"",ldapBindDn:"",ldapBindPassword:"",ldapUserBaseDn:"",ldapUserSearchFilter:r,ldapUserNameAttribute:"sAMAccountName",ldapUserDisplayAttribute:"displayName",ldapUserEmailAttribute:"mail",ldapLoginAllowedGroupDn:"",ldapAdminGroupDn:"",ldapMonitorAdminGroupDn:"",ldapNestedGroups:!0,ldapAllowedUsers:[],ldapTlsRejectUnauthorized:!0,ldapConnectTimeoutMs:8e3}),[S,k]=(0,l.useState)({type:"",message:""}),[P,I]=(0,l.useState)(!1),[O,G]=(0,l.useState)(!1),[B,M]=(0,l.useState)(""),[E,T]=(0,l.useState)([]),[R,F]=(0,l.useState)(!1),[_,$]=(0,l.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[q,z]=(0,l.useState)(""),[J,K]=(0,l.useState)({type:"",message:""}),[H,Q]=(0,l.useState)(!1),[V,W]=(0,l.useState)(!1),X=async()=>{p(!0);try{let e=await fetch("/api/settings",{cache:"no-store"}),s=await e.json();a(s),A(s.localLoginUsername||"admin"),L({ldapEnabled:!0===s.ldapEnabled,ldapUrl:s.ldapUrl||"",ldapBindDn:s.ldapBindDn||"",ldapBindPassword:"",ldapUserBaseDn:s.ldapUserBaseDn||s.ldapBaseDn||"",ldapUserSearchFilter:s.ldapUserSearchFilter||r,ldapUserNameAttribute:s.ldapUserNameAttribute||"sAMAccountName",ldapUserDisplayAttribute:s.ldapUserDisplayAttribute||"displayName",ldapUserEmailAttribute:s.ldapUserEmailAttribute||"mail",ldapLoginAllowedGroupDn:s.ldapLoginAllowedGroupDn||"",ldapAdminGroupDn:s.ldapAdminGroupDn||"",ldapMonitorAdminGroupDn:s.ldapMonitorAdminGroupDn||"",ldapNestedGroups:!1!==s.ldapNestedGroups,ldapAllowedUsers:Array.isArray(s.ldapAllowedUsers)?s.ldapAllowedUsers:[],ldapTlsRejectUnauthorized:!1!==s.ldapTlsRejectUnauthorized,ldapConnectTimeoutMs:s.ldapConnectTimeoutMs||8e3}),$({authMode:s.authMode||"password",oidcIssuerUrl:s.oidcIssuerUrl||"",oidcClientId:s.oidcClientId||"",oidcScopes:s.oidcScopes||"openid profile email",oidcLoginLabel:s.oidcLoginLabel||"Sign in with OIDC"}),("oidc"===s.authMode||"both"===s.authMode)&&W(!0)}catch(e){console.log("Failed to fetch settings:",e)}finally{p(!1)}};(0,l.useEffect)(()=>{X()},[]);let Y=async e=>{let s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),t=await s.json().catch(()=>({}));if(!s.ok)throw Error(t.error||"Failed to save settings");return a(e=>({...e,...t})),t},Z=async e=>{e.preventDefault(),C({type:"",message:""});try{let e=await Y({localLoginUsername:f});A(e.localLoginUsername||f||"admin"),C({type:"success",message:"Local account name saved."})}catch(e){C({type:"error",message:e.message})}},ee=async e=>{if(e.preventDefault(),u.new!==u.confirm)return void b({type:"error",message:"Passwords do not match"});g(!0),b({type:"",message:""});try{await Y({currentPassword:u.current,newPassword:u.new}),b({type:"success",message:"Password updated successfully"}),m({current:"",new:"",confirm:""})}catch(e){b({type:"error",message:e.message||"Failed to update password"})}finally{g(!1)}},ea=async()=>{j(!0),v({type:"",message:""});try{let e=await fetch("/api/settings/database");if(!e.ok){let a=await e.json().catch(()=>({}));throw Error(a.error||"Failed to export database")}let a=await e.json(),s=JSON.stringify(a,null,2),t=new Blob([s],{type:"application/json"}),l=URL.createObjectURL(t),r=document.createElement("a"),d=new Date().toISOString().replace(/[.:]/g,"-");r.href=l,r.download=`bluerouter-backup-${d}.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(l),v({type:"success",message:"Database backup downloaded."})}catch(e){v({type:"error",message:e.message||"Failed to export database."})}finally{j(!1)}},es=async e=>{let a=e.target.files?.[0];if(a){j(!0),v({type:"",message:""});try{let e=await a.text(),s=JSON.parse(e),t=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),l=await t.json().catch(()=>({}));if(!t.ok)throw Error(l.error||"Failed to import database");await X(),v({type:"success",message:"Database imported successfully."})}catch(e){v({type:"error",message:e.message||"Invalid backup file."})}finally{D.current&&(D.current.value=""),j(!1)}}},et=(e,a)=>L(s=>({...s,[e]:a})),el=async e=>{e?.preventDefault?.(),I(!0),k({type:"",message:""});try{let e={...U,ldapBaseDn:U.ldapUserBaseDn,ldapAllowedUsers:U.ldapAllowedUsers};e.ldapBindPassword||delete e.ldapBindPassword;let a=await Y(e);L(e=>({...e,ldapBindPassword:"",ldapEnabled:!0===a.ldapEnabled,ldapUserBaseDn:a.ldapUserBaseDn||a.ldapBaseDn||e.ldapUserBaseDn,ldapLoginAllowedGroupDn:a.ldapLoginAllowedGroupDn||"",ldapAdminGroupDn:a.ldapAdminGroupDn||"",ldapMonitorAdminGroupDn:a.ldapMonitorAdminGroupDn||"",ldapNestedGroups:!1!==a.ldapNestedGroups,ldapAllowedUsers:Array.isArray(a.ldapAllowedUsers)?a.ldapAllowedUsers:e.ldapAllowedUsers})),k({type:"success",message:"LDAP settings saved."})}catch(e){k({type:"error",message:e.message||"Failed to save LDAP settings"})}finally{I(!1)}},er=async()=>{G(!0),k({type:"",message:""});try{await el();let e=await fetch("/api/auth/ldap/test",{method:"POST"}),a=await e.json().catch(()=>({}));e.ok&&a.ok?k({type:"success",message:a.message||"LDAP connection OK."}):k({type:"error",message:a.error||"LDAP test failed."})}catch(e){k({type:"error",message:e.message||"LDAP test failed."})}finally{G(!1)}},ed=async()=>{F(!0),k({type:"",message:""});try{await el();let e=await fetch(`/api/auth/ldap/users?q=${encodeURIComponent(B)}`,{cache:"no-store"}),a=await e.json().catch(()=>({}));e.ok?(T(a.users||[]),k({type:"success",message:`Loaded ${(a.users||[]).length} LDAP user(s).`})):k({type:"error",message:a.error||"Failed to load LDAP users."})}catch(e){k({type:"error",message:e.message||"Failed to load LDAP users."})}finally{F(!1)}},eo=e=>{let a=String(e||"").trim();a&&L(e=>{let s=new Set(e.ldapAllowedUsers||[]);return s.has(a)?s.delete(a):s.add(a),{...e,ldapAllowedUsers:[...s]}})},en=async(a=_.authMode||"password")=>{let s=_.oidcIssuerUrl.trim(),t=_.oidcClientId.trim(),l=_.oidcScopes.trim(),r=_.oidcLoginLabel.trim(),d=q.trim();if("password"!==a&&(!s||!t||!d)&&!e.oidcConfigured)return void K({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});Q(!0),K({type:"",message:""});try{let e={authMode:a,oidcIssuerUrl:s,oidcClientId:t,oidcScopes:l||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};d&&(e.oidcClientSecret=d);let o=await Y(e);$({authMode:o.authMode||a,oidcIssuerUrl:o.oidcIssuerUrl||s,oidcClientId:o.oidcClientId||t,oidcScopes:o.oidcScopes||l||"openid profile email",oidcLoginLabel:o.oidcLoginLabel||r||"Sign in with OIDC"}),z(""),K({type:"success",message:"OIDC settings saved."})}catch(e){K({type:"error",message:e.message||"Failed to save OIDC settings"})}finally{Q(!1)}};return s?(0,t.jsx)("div",{className:"p-8 text-text-muted",children:"Loading settings..."}):(0,t.jsxs)("div",{className:"mx-auto max-w-6xl space-y-6 p-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-text-main",children:"Settings"}),(0,t.jsx)("p",{className:"mt-1 text-text-muted",children:"Configure local dashboard login, LDAP/Active Directory login, and OIDC login."})]}),(0,t.jsx)(o,{icon:"shield",title:"Dashboard Login",desc:"Local account remains available even when LDAP is enabled.",children:(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,t.jsxs)("form",{onSubmit:Z,className:"space-y-3",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main",children:"Local account"}),(0,t.jsx)(n,{label:"Local username",children:(0,t.jsx)(i,{value:f,onChange:e=>A(e.target.value)})}),(0,t.jsx)("button",{className:"rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white",children:"Save account"}),(0,t.jsx)(d,{status:N})]}),(0,t.jsxs)("form",{onSubmit:ee,className:"space-y-3",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main",children:"Local password"}),e.hasPassword&&(0,t.jsx)(n,{label:"Current password",children:(0,t.jsx)(i,{type:"password",value:u.current,onChange:e=>m({...u,current:e.target.value}),required:!0})}),(0,t.jsx)(n,{label:"New password",children:(0,t.jsx)(i,{type:"password",value:u.new,onChange:e=>m({...u,new:e.target.value}),required:!0})}),(0,t.jsx)(n,{label:"Confirm password",children:(0,t.jsx)(i,{type:"password",value:u.confirm,onChange:e=>m({...u,confirm:e.target.value}),required:!0})}),(0,t.jsx)("button",{disabled:h,className:"rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white disabled:opacity-50",children:e.hasPassword?"Update Password":"Set Password"}),(0,t.jsx)(d,{status:x})]})]})}),(0,t.jsxs)(o,{icon:"database",title:"Database Backup",desc:"Export or restore the local bluerouter configuration database.",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsx)("button",{onClick:ea,disabled:y,className:"rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white disabled:opacity-50",children:"Download Backup"}),(0,t.jsx)("button",{onClick:()=>D.current?.click(),disabled:y,className:"rounded-xl border border-border px-4 py-2 text-sm font-semibold text-text-main hover:border-primary/50 disabled:opacity-50",children:"Import Backup"}),(0,t.jsx)("input",{ref:D,type:"file",accept:"application/json",className:"hidden",onChange:es})]}),(0,t.jsx)(d,{status:w})]}),(0,t.jsx)(o,{icon:"corporate_fare",title:"LDAP / Active Directory Login",desc:"Search users from a User Base DN, restrict login by group DN, and grant admin by group DN. The old Selected LDAP users list is kept as a manual admin list.",children:(0,t.jsxs)("form",{onSubmit:el,className:"space-y-5",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-3",children:(0,t.jsx)("button",{type:"button",onClick:()=>et("ldapEnabled",!U.ldapEnabled),className:`rounded-xl px-3 py-2 text-sm font-semibold ${U.ldapEnabled?"bg-primary text-white":"border border-border text-text-muted"}`,children:U.ldapEnabled?"Enabled":"Disabled"})}),(0,t.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,t.jsx)(n,{label:"LDAP URL",children:(0,t.jsx)(i,{value:U.ldapUrl,onChange:e=>et("ldapUrl",e.target.value),placeholder:"ldap://dc01.company.local:389"})}),(0,t.jsx)(n,{label:"LDAP User Base DN",hint:"OU/container/domain where user objects are searched. Do not use a group DN here.",children:(0,t.jsx)(i,{value:U.ldapUserBaseDn,onChange:e=>et("ldapUserBaseDn",e.target.value),placeholder:"OU=Users,OU=xxx,DC=xx,DC=vn"})}),(0,t.jsx)(n,{label:"LDAP Bind DN",children:(0,t.jsx)(i,{value:U.ldapBindDn,onChange:e=>et("ldapBindDn",e.target.value),placeholder:"CN=svc-bluerouter,OU=Service Accounts,DC=company,DC=local"})}),(0,t.jsx)(n,{label:"LDAP Bind Password",children:(0,t.jsx)(i,{type:"password",value:U.ldapBindPassword,onChange:e=>et("ldapBindPassword",e.target.value),placeholder:e.ldapHasBindPassword?"Saved — leave blank to keep":"Service account password"})}),(0,t.jsx)(n,{label:"LDAP Login Allowed Group DN",hint:"Only members of this group can log in. Leave blank to allow any valid LDAP user.",children:(0,t.jsx)(i,{value:U.ldapLoginAllowedGroupDn,onChange:e=>et("ldapLoginAllowedGroupDn",e.target.value),placeholder:"CN=Apikeys_Groups,OU=AppGroups,OU=xxx,DC=xx,DC=vn"})}),(0,t.jsx)(n,{label:"LDAP Admin Group DN",hint:"Members of this group get full admin dashboard access.",children:(0,t.jsx)(i,{value:U.ldapAdminGroupDn,onChange:e=>et("ldapAdminGroupDn",e.target.value),placeholder:"CN=BlueRouter_Admins,OU=AppGroups,OU=xxx,DC=xx,DC=vn"})}),(0,t.jsx)(n,{label:"LDAP Monitor Admin Group DN",hint:"Members can use only Endpoint, API Keys, Usage, Analytics, Quota Tracker and Prompt Logs with admin-like permissions inside those tabs.",children:(0,t.jsx)(i,{value:U.ldapMonitorAdminGroupDn,onChange:e=>et("ldapMonitorAdminGroupDn",e.target.value),placeholder:"CN=BlueRouter_Monitor_Admins,OU=AppGroups,OU=xxx,DC=xx,DC=vn"})})]}),(0,t.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,t.jsx)(n,{label:"User search filter",hint:"Use {{username}} placeholder.",children:(0,t.jsx)(i,{value:U.ldapUserSearchFilter,onChange:e=>et("ldapUserSearchFilter",e.target.value)})}),(0,t.jsx)(n,{label:"Login group mode",hint:"Nested groups uses AD matching rule 1.2.840.113556.1.4.1941.",children:(0,t.jsx)(c,{title:"Nested group membership",desc:"Recommended for Active Directory nested groups.",checked:U.ldapNestedGroups,onChange:e=>et("ldapNestedGroups",e)})}),(0,t.jsx)(n,{label:"Username attribute",children:(0,t.jsx)(i,{value:U.ldapUserNameAttribute,onChange:e=>et("ldapUserNameAttribute",e.target.value)})}),(0,t.jsx)(n,{label:"Display attribute",children:(0,t.jsx)(i,{value:U.ldapUserDisplayAttribute,onChange:e=>et("ldapUserDisplayAttribute",e.target.value)})}),(0,t.jsx)(n,{label:"Email attribute",children:(0,t.jsx)(i,{value:U.ldapUserEmailAttribute,onChange:e=>et("ldapUserEmailAttribute",e.target.value)})}),(0,t.jsx)(n,{label:"Connect timeout ms",children:(0,t.jsx)(i,{type:"number",value:U.ldapConnectTimeoutMs,onChange:e=>et("ldapConnectTimeoutMs",e.target.value)})})]}),(0,t.jsx)(c,{title:"Reject invalid TLS certificates",desc:"Disable only for test/self-signed LDAP TLS.",checked:U.ldapTlsRejectUnauthorized,onChange:e=>et("ldapTlsRejectUnauthorized",e)}),(0,t.jsxs)("div",{className:"rounded-2xl border border-border bg-background p-4",children:[(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("h3",{className:"font-semibold text-text-main",children:"Manual admin users / LDAP owner list"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-text-muted",children:"Users loaded here come from Login Allowed Group DN when set. Selected users are also treated as manual admins for backward compatibility."})]}),(0,t.jsxs)("div",{className:"mb-3 flex gap-2",children:[(0,t.jsx)(i,{value:B,onChange:e=>M(e.target.value),placeholder:"Search users..."}),(0,t.jsx)("button",{type:"button",onClick:ed,disabled:R,className:"rounded-xl border border-border px-4 py-2 text-sm font-semibold text-text-main disabled:opacity-50",children:R?"Loading...":"Load users"})]}),E.length>0&&(0,t.jsx)("div",{className:"max-h-72 overflow-auto rounded-xl border border-border",children:E.map(e=>{let a=U.ldapAllowedUsers.includes(e.username);return(0,t.jsxs)("button",{type:"button",onClick:()=>eo(e.username),className:`flex w-full items-center justify-between gap-3 border-b border-border px-3 py-2 text-left text-sm last:border-b-0 ${a?"bg-primary/10":"bg-background hover:bg-surface"}`,children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-semibold text-text-main",children:e.displayName||e.username}),(0,t.jsxs)("span",{className:"ml-2 text-text-muted",children:[e.username,e.email?` \xb7 ${e.email}`:""]})]}),(0,t.jsx)("span",{className:"material-symbols-outlined text-primary",children:a?"check_circle":"radio_button_unchecked"})]},e.dn||e.username)})}),(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsxs)("div",{className:"mb-2 text-sm font-semibold text-text-main",children:["Selected manual admin users (",U.ldapAllowedUsers.length,")"]}),0===U.ldapAllowedUsers.length?(0,t.jsx)("div",{className:"text-sm text-text-muted",children:"No users selected."}):(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:U.ldapAllowedUsers.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>eo(e),className:"rounded-full border border-primary/30 bg-primary/10 px-3 py-1 text-xs text-primary",children:[e," \xd7"]},e))})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:er,disabled:O,className:"rounded-xl border border-border px-4 py-2 text-sm font-semibold text-text-main disabled:opacity-50",children:O?"Testing...":"Save & test LDAP"}),(0,t.jsx)("button",{type:"submit",disabled:P,className:"rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white disabled:opacity-50",children:P?"Saving...":"Save LDAP settings"})]}),(0,t.jsx)(d,{status:S})]})}),(0,t.jsxs)(o,{icon:"lock_open",title:"OIDC Dashboard Login",desc:"oidc"===e.authMode?"OIDC active":"both"===e.authMode?"Password + OIDC active":"Optional SSO via Authentik/Keycloak/Google",children:[(0,t.jsx)("button",{type:"button",onClick:()=>W(e=>!e),className:"mb-4 rounded-xl border border-border px-4 py-2 text-sm font-semibold text-text-main",children:V?"Hide OIDC settings":"Show OIDC settings"}),V&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-3",children:[{value:"password",title:"Password/LDAP",desc:"Keep local and LDAP login."},{value:"oidc",title:"OIDC only",desc:"Disable local/LDAP login when configured."},{value:"both",title:"Both",desc:"Allow either OIDC or local/LDAP."}].map(e=>{let a=_.authMode===e.value;return(0,t.jsxs)("button",{type:"button",onClick:()=>$(a=>({...a,authMode:e.value})),className:`rounded-xl border p-3 text-left ${a?"border-primary bg-primary/10":"border-border bg-background hover:border-primary/40"}`,children:[(0,t.jsx)("div",{className:"font-semibold text-text-main",children:e.title}),(0,t.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:e.desc})]},e.value)})}),(0,t.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,t.jsx)(n,{label:"Issuer URL",children:(0,t.jsx)(i,{value:_.oidcIssuerUrl,onChange:e=>$({..._,oidcIssuerUrl:e.target.value})})}),(0,t.jsx)(n,{label:"Client ID",children:(0,t.jsx)(i,{value:_.oidcClientId,onChange:e=>$({..._,oidcClientId:e.target.value})})}),(0,t.jsx)(n,{label:"Client Secret",children:(0,t.jsx)(i,{type:"password",value:q,onChange:e=>z(e.target.value),placeholder:e.oidcConfigured?"Saved — leave blank to keep":"Client secret"})}),(0,t.jsx)(n,{label:"Scopes",children:(0,t.jsx)(i,{value:_.oidcScopes,onChange:e=>$({..._,oidcScopes:e.target.value})})}),(0,t.jsx)(n,{label:"Login label",children:(0,t.jsx)(i,{value:_.oidcLoginLabel,onChange:e=>$({..._,oidcLoginLabel:e.target.value})})})]}),(0,t.jsx)("button",{type:"button",onClick:()=>en(),disabled:H,className:"rounded-xl bg-primary px-4 py-2 text-sm font-semibold text-white disabled:opacity-50",children:H?"Saving...":"Save OIDC settings"}),(0,t.jsx)(d,{status:J})]})]})]})}}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=7973)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{33796:(e,t,r)=>{Promise.resolve().then(r.bind(r,83016))},73321:(e,t,r)=>{"use strict";var s=r(74645);r.o(s,"notFound")&&r.d(t,{notFound:function(){return s.notFound}}),r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},83016:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(95155),a=r(12115),o=r(73321);function n(){let[e,t]=(0,a.useState)("admin"),[r,n]=(0,a.useState)(""),[l,d]=(0,a.useState)(""),[i,u]=(0,a.useState)(""),[c,x]=(0,a.useState)(0),[b,m]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),[f,g]=(0,a.useState)("password"),[y,w]=(0,a.useState)(!1),[j,N]=(0,a.useState)("Sign in with OIDC"),[v,S]=(0,a.useState)(!1),[k,P]=(0,a.useState)(!1),[C,L]=(0,a.useState)("admin"),I=(0,o.useRouter)();(0,a.useEffect)(()=>{if(c<=0)return;let e=setInterval(()=>x(e=>e>0?e-1:0),1e3);return()=>clearInterval(e)},[c]),(0,a.useEffect)(()=>{!async function(){let e=new AbortController,r=setTimeout(()=>e.abort(),5e3),s=window.location.origin;try{let a=await fetch(`${s}/api/auth/status`,{signal:e.signal});if(clearTimeout(r),a.ok){let e=await a.json();if(!1===e.requireLogin){I.push("/dashboard"),I.refresh();return}h(!!e.hasPassword),g(e.authMode||"password"),w(!0===e.oidcConfigured),N(e.oidcLoginLabel||"Sign in with OIDC"),S(!0===e.ldapEnabled),P(!0===e.ldapConfigured),L(e.localLoginUsername||"admin"),t(e.localLoginUsername||"admin")}else h(!0)}catch{clearTimeout(r),h(!0)}}()},[I]);let O=async t=>{t.preventDefault(),m(!0),d(""),u("");try{let t=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:r,loginType:"auto"})});if(t.ok)I.push("/dashboard"),I.refresh();else{let e=await t.json();d(e.error||"Invalid account or password"),e.resetHint&&u(e.resetHint),e.retryAfter&&x(Number(e.retryAfter))}}catch{d("An error occurred. Please try again.")}finally{m(!1)}},D=y&&["oidc","both"].includes(f),E="oidc"!==f||!y,R=v&&k&&E;return null===p?(0,s.jsx)("div",{className:"flex min-h-screen items-center justify-center text-text-muted",children:"Loading..."}):(0,s.jsxs)("div",{className:"relative flex min-h-screen items-center justify-center bg-background px-4 py-10",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-[0.35]",style:{backgroundImage:"linear-gradient(to right, rgba(231, 111, 81, 0.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(231, 111, 81, 0.12) 1px, transparent 1px)",backgroundSize:"48px 48px"}}),(0,s.jsxs)("div",{className:"relative w-full max-w-md",children:[(0,s.jsx)("div",{className:"mb-8 text-center",children:(0,s.jsx)("h1",{className:"text-4xl font-bold text-primary",children:"Blue Router Gateway"})}),(0,s.jsxs)("div",{className:"rounded-3xl border border-border bg-surface p-6 shadow-xl",children:[D&&(0,s.jsxs)("button",{type:"button",onClick:()=>{window.location.href="/api/auth/oidc/start"},className:"mb-4 flex w-full items-center justify-center gap-2 rounded-xl border border-border bg-background px-4 py-3 text-sm font-semibold text-text-main transition hover:border-primary/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"lock_open"}),j]}),D&&E&&(0,s.jsxs)("div",{className:"mb-4 flex items-center gap-3 text-xs text-text-muted",children:[(0,s.jsx)("span",{className:"h-px flex-1 bg-border"}),"or",(0,s.jsx)("span",{className:"h-px flex-1 bg-border"})]}),E?(0,s.jsxs)("form",{onSubmit:O,className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-sm font-semibold text-text-main",children:"Account"}),(0,s.jsx)("input",{value:e,onChange:e=>t(e.target.value),placeholder:R?"admin or your LDAP username":C||"admin",autoFocus:!D,required:!0,className:"w-full rounded-xl border border-border bg-background px-4 py-3 text-base outline-none transition focus:border-primary focus:ring-4 focus:ring-primary/15"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-sm font-semibold text-text-main",children:"Password"}),(0,s.jsx)("input",{type:"password",value:r,onChange:e=>n(e.target.value),placeholder:"Enter password",required:!0,className:"w-full rounded-xl border border-border bg-background px-4 py-3 text-base outline-none transition focus:border-primary focus:ring-4 focus:ring-primary/15"})]}),"oidc"===f&&!y&&(0,s.jsx)("p",{className:"rounded-xl border border-yellow-500/30 bg-yellow-500/10 p-3 text-xs text-yellow-700 dark:text-yellow-300",children:"OIDC login is enabled, but the issuer/client fields are not configured yet. Password login is still available for recovery."}),"both"===f&&y&&(0,s.jsx)("p",{className:"rounded-xl border border-blue-500/30 bg-blue-500/10 p-3 text-xs text-blue-700 dark:text-blue-300",children:"Password/OIDC login are both enabled."}),l&&(0,s.jsx)("p",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:l}),c>0&&(0,s.jsxs)("p",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:["Locked. Retry in ",c,"s."]}),i&&(0,s.jsxs)("p",{className:"rounded-xl border border-border bg-background p-3 text-xs text-text-muted",children:["Forgot password? Open ",(0,s.jsx)("span",{className:"font-mono",children:"bluerouter"})," CLI on the host → Settings → Reset Password to Default."]}),(0,s.jsx)("button",{type:"submit",disabled:b||c>0,className:"w-full rounded-xl bg-primary px-4 py-3 text-base font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",children:c>0?`Wait ${c}s`:b?"Signing in...":"Login"}),!1===p&&(0,s.jsx)("p",{className:"text-center text-xs text-text-muted",children:"No custom password is set yet. The default password above will work until you change it."})]}):l&&(0,s.jsx)("p",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:l})]})]})]})}}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=33796)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{33796:(e,t,r)=>{Promise.resolve().then(r.bind(r,83016))},73321:(e,t,r)=>{"use strict";var s=r(74645);r.o(s,"notFound")&&r.d(t,{notFound:function(){return s.notFound}}),r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}})},83016:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(95155),a=r(12115),o=r(73321);function n(){let[e,t]=(0,a.useState)("admin"),[r,n]=(0,a.useState)(""),[l,d]=(0,a.useState)(""),[i,u]=(0,a.useState)(""),[c,x]=(0,a.useState)(0),[b,m]=(0,a.useState)(!1),[p,h]=(0,a.useState)(null),[g,f]=(0,a.useState)("password"),[y,w]=(0,a.useState)(!1),[j,N]=(0,a.useState)("Sign in with OIDC"),[v,S]=(0,a.useState)(!1),[k,P]=(0,a.useState)(!1),[C,I]=(0,a.useState)("admin"),L=(0,o.useRouter)();(0,a.useEffect)(()=>{if(c<=0)return;let e=setInterval(()=>x(e=>e>0?e-1:0),1e3);return()=>clearInterval(e)},[c]),(0,a.useEffect)(()=>{!async function(){let e=new AbortController,r=setTimeout(()=>e.abort(),5e3),s=window.location.origin;try{let a=await fetch(`${s}/api/auth/status`,{signal:e.signal});if(clearTimeout(r),a.ok){let e=await a.json();h(!!e.hasPassword),f(e.authMode||"password"),w(!0===e.oidcConfigured),N(e.oidcLoginLabel||"Sign in with OIDC"),S(!0===e.ldapEnabled),P(!0===e.ldapConfigured),I(e.localLoginUsername||"admin"),t(e.localLoginUsername||"admin")}else h(!0)}catch{clearTimeout(r),h(!0)}}()},[L]);let O=async t=>{t.preventDefault(),m(!0),d(""),u("");try{let t=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:r,loginType:"auto"})});if(t.ok)L.push("/dashboard"),L.refresh();else{let e=await t.json();d(e.error||"Invalid account or password"),e.resetHint&&u(e.resetHint),e.retryAfter&&x(Number(e.retryAfter))}}catch{d("An error occurred. Please try again.")}finally{m(!1)}},D=y&&["oidc","both"].includes(g),E="oidc"!==g||!y,R=v&&k&&E;return null===p?(0,s.jsx)("div",{className:"flex min-h-screen items-center justify-center text-text-muted",children:"Loading..."}):(0,s.jsxs)("div",{className:"relative flex min-h-screen items-center justify-center bg-background px-4 py-10",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-[0.35]",style:{backgroundImage:"linear-gradient(to right, rgba(231, 111, 81, 0.12) 1px, transparent 1px), linear-gradient(to bottom, rgba(231, 111, 81, 0.12) 1px, transparent 1px)",backgroundSize:"48px 48px"}}),(0,s.jsxs)("div",{className:"relative w-full max-w-md",children:[(0,s.jsx)("div",{className:"mb-8 text-center",children:(0,s.jsx)("h1",{className:"text-4xl font-bold text-primary",children:"Blue Router Gateway"})}),(0,s.jsxs)("div",{className:"rounded-3xl border border-border bg-surface p-6 shadow-xl",children:[D&&(0,s.jsxs)("button",{type:"button",onClick:()=>{window.location.href="/api/auth/oidc/start"},className:"mb-4 flex w-full items-center justify-center gap-2 rounded-xl border border-border bg-background px-4 py-3 text-sm font-semibold text-text-main transition hover:border-primary/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"lock_open"}),j]}),D&&E&&(0,s.jsxs)("div",{className:"mb-4 flex items-center gap-3 text-xs text-text-muted",children:[(0,s.jsx)("span",{className:"h-px flex-1 bg-border"}),"or",(0,s.jsx)("span",{className:"h-px flex-1 bg-border"})]}),E?(0,s.jsxs)("form",{onSubmit:O,className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-sm font-semibold text-text-main",children:"Account"}),(0,s.jsx)("input",{value:e,onChange:e=>t(e.target.value),placeholder:R?"admin or your LDAP username":C||"admin",autoFocus:!D,required:!0,className:"w-full rounded-xl border border-border bg-background px-4 py-3 text-base outline-none transition focus:border-primary focus:ring-4 focus:ring-primary/15"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"mb-1.5 block text-sm font-semibold text-text-main",children:"Password"}),(0,s.jsx)("input",{type:"password",value:r,onChange:e=>n(e.target.value),placeholder:"Enter password",required:!0,className:"w-full rounded-xl border border-border bg-background px-4 py-3 text-base outline-none transition focus:border-primary focus:ring-4 focus:ring-primary/15"})]}),"oidc"===g&&!y&&(0,s.jsx)("p",{className:"rounded-xl border border-yellow-500/30 bg-yellow-500/10 p-3 text-xs text-yellow-700 dark:text-yellow-300",children:"OIDC login is enabled, but the issuer/client fields are not configured yet. Password login is still available for recovery."}),"both"===g&&y&&(0,s.jsx)("p",{className:"rounded-xl border border-blue-500/30 bg-blue-500/10 p-3 text-xs text-blue-700 dark:text-blue-300",children:"Password/OIDC login are both enabled."}),l&&(0,s.jsx)("p",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:l}),c>0&&(0,s.jsxs)("p",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:["Locked. Retry in ",c,"s."]}),i&&(0,s.jsxs)("p",{className:"rounded-xl border border-border bg-background p-3 text-xs text-text-muted",children:["Forgot password? Open ",(0,s.jsx)("span",{className:"font-mono",children:"bluerouter"})," CLI on the host → Settings → Reset Password to Default."]}),(0,s.jsx)("button",{type:"submit",disabled:b||c>0,className:"w-full rounded-xl bg-primary px-4 py-3 text-base font-semibold text-white shadow-sm transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50",children:c>0?`Wait ${c}s`:b?"Signing in...":"Login"}),!1===p&&(0,s.jsx)("p",{className:"text-center text-xs text-text-muted",children:"No custom password is set yet. The default password above will work until you change it."})]}):l&&(0,s.jsx)("p",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-600",children:l})]})]})]})}}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=33796)),_N_E=e.O()}]);