keyrouter 1.0.2 → 1.0.3

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 (431) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +16 -16
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +18 -18
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.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 +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-injection/page.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-injection/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-injection/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  88. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  89. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  90. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  91. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/prompt-injection/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  280. package/app/.next-cli-build/server/app/callback.html +1 -1
  281. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  282. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  283. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  284. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  285. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  286. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  287. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +5 -5
  288. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  289. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  290. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  291. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  292. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
  293. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  294. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  295. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  296. package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  297. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
  298. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  299. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  300. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  301. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  302. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +5 -5
  303. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  304. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  305. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  306. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  307. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
  308. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  309. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  310. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  312. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
  313. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  314. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  315. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  316. package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  317. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +5 -5
  318. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  319. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  320. package/app/.next-cli-build/server/app/dashboard/prompt-injection.html +1 -1
  321. package/app/.next-cli-build/server/app/dashboard/prompt-injection.rsc +5 -5
  322. package/app/.next-cli-build/server/app/dashboard/prompt-injection.segments/!KGRhc2hib2FyZCk/dashboard/prompt-injection/__PAGE__.segment.rsc +5 -5
  323. package/app/.next-cli-build/server/app/dashboard/prompt-injection.segments/_full.segment.rsc +5 -5
  324. package/app/.next-cli-build/server/app/dashboard/prompt-injection.segments/_tree.segment.rsc +2 -2
  325. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  326. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  327. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +5 -5
  328. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  329. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  330. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  331. package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  332. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
  333. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  334. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  335. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  336. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  337. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
  338. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  339. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  340. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  341. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  342. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
  343. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  344. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  345. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  346. package/app/.next-cli-build/server/app/dashboard/quota.rsc +5 -5
  347. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +5 -5
  348. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +5 -5
  349. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  350. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  353. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  354. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  355. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  356. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  357. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  358. package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  359. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +5 -5
  360. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  361. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  362. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  363. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  364. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +5 -5
  365. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  366. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  367. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  368. package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  369. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +5 -5
  370. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  371. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  372. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  373. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  374. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
  375. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  376. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  377. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  378. package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  379. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
  380. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  381. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  382. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/index.html +1 -1
  384. package/app/.next-cli-build/server/app/index.rsc +5 -5
  385. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  386. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  387. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  388. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  390. package/app/.next-cli-build/server/app/landing.html +1 -1
  391. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  392. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  393. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  394. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  395. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  397. package/app/.next-cli-build/server/app/login.html +1 -1
  398. package/app/.next-cli-build/server/app/login.rsc +5 -5
  399. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  400. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  401. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  402. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  405. package/app/.next-cli-build/server/app-paths-manifest.json +16 -16
  406. package/app/.next-cli-build/server/chunks/1051.js +1 -1
  407. package/app/.next-cli-build/server/chunks/2172.js +1 -1
  408. package/app/.next-cli-build/server/chunks/412.js +2 -2
  409. package/app/.next-cli-build/server/chunks/5626.js +1 -0
  410. package/app/.next-cli-build/server/chunks/8128.js +1 -1
  411. package/app/.next-cli-build/server/chunks/869.js +1 -1
  412. package/app/.next-cli-build/server/chunks/9604.js +1 -1
  413. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  415. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/pages/404.html +1 -1
  417. package/app/.next-cli-build/server/pages/500.html +1 -1
  418. package/app/.next-cli-build/static/chunks/5497-bd4f9f37c29968bd.js +1 -0
  419. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-18c2613dd78ff66f.js +1 -0
  420. package/app/.next-cli-build/static/chunks/app/layout-cd4efdfec7b51ca9.js +1 -0
  421. package/app/.next-cli-build/static/css/841943e9a30fe5cd.css +1 -0
  422. package/app/package.json +1 -1
  423. package/cli.js +77 -36
  424. package/package.json +1 -1
  425. package/app/.next-cli-build/server/chunks/4756.js +0 -1
  426. package/app/.next-cli-build/static/chunks/5497-54a2c3dfa292cd6f.js +0 -1
  427. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-36c42ca907c9f01d.js +0 -1
  428. package/app/.next-cli-build/static/chunks/app/layout-47a7f93a93a7249c.js +0 -1
  429. package/app/.next-cli-build/static/css/40eba1d7174ab2f7.css +0 -1
  430. /package/app/.next-cli-build/static/{OQlH5Y4fdrzSgUpl8Gw_9 → SaAkC7sXHdEDKHids4PIF}/_buildManifest.js +0 -0
  431. /package/app/.next-cli-build/static/{OQlH5Y4fdrzSgUpl8Gw_9 → SaAkC7sXHdEDKHids4PIF}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (()=>{var a={};a.id=3826,a.ids=[3826],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3493:(a,b,c)=>{"use strict";c.d(b,{default:()=>L});var d=c(48249),e=c(67484),f=c(19099),g=c(72738),h=c(62947),i=c(60757);let j=[10,20,50,100],k=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],l=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function m(a){return a.name?.trim()||a.email?.trim()||a.displayName?.trim()||null}function n(a,b){let c=b[a.id]?.quotas?.[0];return c&&"number"==typeof c.remaining?c.remaining:1/0}function o(a,b){let c=new Set(b.map(a=>a.id));return Object.fromEntries(Object.entries(a).filter(([a])=>c.has(a)))}async function p(a,b){return await a(b)}function q(a,b){return b&&0!==b?!a||a<0?100:a>=b?0:Math.round((b-a)/b*100):0}function r(a){return a&&"object"==typeof a?String(a.modelKey||a.name||"").trim():""}function s(a,b,c=[]){let d=b?.[a]?.hidden;return Array.isArray(d)&&0!==d.length?new Set((c.length>0?function(a=[],b=[]){if(!Array.isArray(a)||0===a.length)return[];let c=new Set(b.map(r).filter(Boolean));return[...new Set(a.map(a=>String(a).trim()).filter(a=>c.has(a)))]}(d,c):d).map(String)):new Set}function t({quotas:a=[],compact:b=!1,sortMode:c="default",showSortLabel:f=!1,onHideQuota:g=null}){let[h,i]=(0,e.useState)(1),j=(0,e.useMemo)(()=>a.map((a,b)=>({...a,index:b,remaining:a?.percentage!==void 0?Math.max(0,Math.round(!0===a.percentageIsUsed?100-a.percentage:a.percentage)):a?.remaining!==void 0?Math.max(0,Math.round(a.remaining)):a?.remainingPercentage!==void 0?Math.round(a.remainingPercentage):q(a?.used,a?.total)})),[a]),k=(0,e.useMemo)(()=>"remaining-asc"===c?[...j].sort((a,b)=>a.remaining-b.remaining||a.name.localeCompare(b.name)):"remaining-desc"===c?[...j].sort((a,b)=>b.remaining-a.remaining||a.name.localeCompare(b.name)):j,[j,c]),l=Math.max(1,Math.ceil(k.length/10));if(!a||0===a.length)return null;let m=k.slice((h-1)*10,10*h),n=0===k.length?0:(h-1)*10+1,o=Math.min(10*h,k.length),p=b?"py-1 px-1.5":"py-2 px-3",r=b?"text-[11px]":"text-sm",s=b?"text-[11px]":"text-sm",u=b?"text-[10px] leading-tight":"text-xs",v="function"==typeof g;return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"text-[10px] text-text-muted",children:[k.length," quota",k.length>1?"s":""]}),f&&(0,d.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,d.jsx)("div",{className:"space-y-px",children:m.map(a=>{var c;let e=!0===a.unlimited,f=!0===a.isCreditBalance,h=f?{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500",bgLight:"bg-blue-500/10",emoji:"\uD83D\uDCB0"}:(c=a.colorPercentage??a.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:c>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},i=a.neverExpires?"-":function(a){if(!a)return"-";try{let b="string"==typeof a?new Date(a):a,c=new Date,d=b-c;if(d<=0)return"-";let e=Math.ceil(d/6e4);if(e<60)return`${e}m`;let f=Math.floor(e/60),g=e%60;if(f<24)return`${f}h ${g}m`;let h=Math.floor(f/24);return`${h}d ${f%24}h ${g}m`}catch(a){return"-"}}(a.resetAt),j=!a.neverExpires&&!a.resetAt&&!!a.detailUrl,k=a.emptyMessage?a.emptyMessage:a.neverExpires?"Never expires":j?"See details":function(a){if(!a)return null;try{let b=new Date(a),c=new Date,d=new Date(c.getFullYear(),c.getMonth(),c.getDate()),e=new Date(d);e.setDate(e.getDate()+1);let f="";f=b>=d&&b<e?"Today":b>=e&&b<new Date(e.getTime()+864e5)?"Tomorrow":b.toLocaleDateString("en-US",{month:"short",day:"numeric"});let g=b.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${f}, ${g}`}catch{return null}}(a.resetAt),l=j&&a.detailUrl?a.detailUrl:k,m=!1!==a.recurring?`in ${i}`:`expires in ${i}`,n=b=>j?(0,d.jsxs)("a",{href:a.detailUrl,target:"_blank",rel:"noopener noreferrer",className:`${b} inline-flex items-center gap-0.5 hover:text-text-primary hover:underline`,title:`Open usage details: ${l}`,"aria-label":`Open usage details for ${a.name}`,children:[k,(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]}):k;return(0,d.jsxs)("div",{className:`flex items-center gap-2 border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${p}`,children:[(0,d.jsxs)("div",{className:"flex w-36 min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-[10px] shrink-0",children:h.emoji}),(0,d.jsx)("span",{className:`${r} font-medium text-text-primary truncate`,children:a.name})]}),(0,d.jsxs)("div",{className:`min-w-0 flex-1 ${b?"space-y-1":"space-y-1.5"}`,children:[!e&&!f&&(0,d.jsx)("div",{className:`${b?"h-1":"h-1.5"} rounded-full overflow-hidden border ${h.bgLight} ${0===a.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,d.jsx)("div",{className:`h-full transition-all duration-300 ${h.bg}`,style:{width:`${Math.min(a.remaining,100)}%`}})}),(0,d.jsxs)("div",{className:`flex items-center justify-between gap-1 min-w-0 ${b?"text-[10px]":"text-xs"}`,children:[(0,d.jsx)("span",{className:"text-text-muted truncate",title:e?`${a.used.toLocaleString()} used \xb7 Unlimited`:f?`Credit balance: ${a.total.toFixed(2)} ${a.currency||""}`:`${a.used.toLocaleString()} / ${a.total>0?a.total.toLocaleString():"∞"}`,children:e?`${a.used.toLocaleString()} used \xb7 Unlimited`:f?`Credit: ${a.total.toFixed(2)} ${a.currency||""}`:`${a.used.toLocaleString()} / ${a.total>0?a.total.toLocaleString():"∞"}${a.unit?` ${a.unit}`:""}`}),(0,d.jsx)("span",{className:`font-medium ${e?"text-green-600 dark:text-green-400":f?"text-blue-600 dark:text-blue-400":h.text} shrink-0`,children:e?"Unlimited":f?"":`${a.remaining}%`})]})]}),(0,d.jsx)("div",{className:"min-w-0 shrink",children:"-"!==i||k?b?(0,d.jsx)("div",{className:`${s} text-text-primary font-medium truncate`,title:l||"",children:"-"!==i?m:n(s)}):(0,d.jsxs)("div",{className:"min-w-0 space-y-0.5",children:["-"!==i&&(0,d.jsx)("div",{className:`${s} text-text-primary font-medium truncate`,children:m}),k&&(0,d.jsx)("div",{className:`${u} text-text-muted truncate`,children:n(u)})]}):(0,d.jsx)("div",{className:`${s} text-text-muted italic`,children:"N/A"})}),v&&(0,d.jsx)("button",{type:"button",onClick:()=>g(a),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5",title:"Hide this quota row","aria-label":`Hide quota ${a.name}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"visibility_off"})})]},`${a.name}-${a.index}`)})}),l>1&&(0,d.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,d.jsxs)("span",{children:["Showing ",n,"-",o," of ",k.length]}),(0,d.jsxs)("span",{children:["Page ",h," / ",l]})]}),(0,d.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,d.jsx)("button",{type:"button",onClick:()=>i(a=>Math.max(1,a-1)),disabled:1===h,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,d.jsx)("button",{type:"button",onClick:()=>i(a=>Math.min(l,a+1)),disabled:h===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var u=c(95514),v=c(32971),w=c(17660),x=c(50412),y=c(56020),z=c(54589),A=c(92592),B=c(50377);let C={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},D={claude:"claudeAutoPing",codex:"codexAutoPing"};function E(a){return a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null}function F(a){let b=a.providerSpecificData?.region;if(b)return b;let c=a.providerSpecificData?.profileArn;return("string"==typeof c?c.split(":")[3]:"")||""}let G={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function H(a){let b=[...new Set((a||[]).map(a=>G[a]).filter(Boolean))];return b.length?`${b.join(" + ")} limits`:"limits"}function I(a){return A.Q2[a]?.name||a}function J(a){if(!a)return"N/A";let b=new Date(a);return Number.isFinite(b.getTime())?b.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function K(a){if(!a)return"N/A";let b=new Date(a).getTime()-Date.now();if(!Number.isFinite(b))return"N/A";if(b<=0)return"Expired";let c=Math.ceil(b/36e5),d=Math.floor(c/24),e=c%24;return d>0?`${d}d ${e}h`:`${e}h`}function L(){let{copied:a,copy:b}=(0,B.C)(),c=(0,f.useSearchParams)(),G=(0,f.useRouter)(),L=(0,f.usePathname)(),[M,N]=(0,e.useState)([]),[O,P]=(0,e.useState)({}),[Q,R]=(0,e.useState)({}),[S,T]=(0,e.useState)({}),[U,V]=(0,e.useState)(!0),[W,X]=(0,e.useState)({claude:{},codex:{}}),[Y,Z]=(0,e.useState)(null),[$,_]=(0,e.useState)(null),[aa,ab]=(0,e.useState)(!1),[ac,ad]=(0,e.useState)(!1),[ae,af]=(0,e.useState)(60),[ag,ah]=(0,e.useState)(!0),[ai,aj]=(0,e.useState)(null),[ak,al]=(0,e.useState)(null),[am,an]=(0,e.useState)(null),[ao,ap]=(0,e.useState)(null),[aq,ar]=(0,e.useState)(null),[as,at]=(0,e.useState)(!1),[au,av]=(0,e.useState)(null),[aw,ax]=(0,e.useState)([]),[ay,az]=(0,e.useState)(()=>c?.get("provider")||"all"),aA=(0,e.useCallback)(a=>{az(a);try{let b=new URLSearchParams(c?.toString()||"");"all"===a?b.delete("provider"):b.set("provider",a);let d=b.toString()?`${L}?${b.toString()}`:L;G.replace(d,{scroll:!1})}catch{}},[L,G,c]),[aB,aC]=(0,e.useState)([]),[aD,aE]=(0,e.useState)("all"),[aF,aG]=(0,e.useState)("default"),[aH,aI]=(0,e.useState)({}),[aJ,aK]=(0,e.useState)(!1),[aL,aM]=(0,e.useState)(!1),[aN,aO]=(0,e.useState)(!1),[aP,aQ]=(0,e.useState)(1),[aR,aS]=(0,e.useState)(20),[aT,aU]=(0,e.useState)(String(20)),[aV,aW]=(0,e.useState)({page:1,pageSize:20,total:0,totalPages:1}),[aX,aY]=(0,e.useState)({eligibleConnections:0,providerFilteredConnections:0});(0,e.useRef)(null),(0,e.useRef)(null);let aZ=(0,e.useRef)(0),a$=(0,e.useCallback)(async(a=aP)=>{try{var b,c;let d=new URLSearchParams({page:String(a),pageSize:String(aR),accountStatus:aD,sort:"priority"});"all"!==ay&&d.set("provider",ay);let e=await fetch(`/api/providers/client?${d.toString()}`);if(!e.ok)throw Error("Failed to fetch connections");let f=await e.json(),g=f.connections||[],h=(b=f.pagination,b||{page:1,pageSize:aR,total:0,totalPages:1}),i=function(a,b=0){return a||{eligibleConnections:b,providerFilteredConnections:b}}(f.totals,g.length);return N(g),aC(f.providerOptions||[]),aW(h),aY(i),aQ((c=f.pagination,c?.page||a)),g}catch(a){return console.error("Error fetching connections:",a),N([]),aC([]),aW({page:1,pageSize:aR,total:0,totalPages:1}),aY({eligibleConnections:0,providerFilteredConnections:0}),[]}},[aD,aJ,aP,aR,ay]),a_=(0,e.useCallback)(async(a,b,{force:c=!1}={})=>{R(b=>({...b,[a]:!0})),T(b=>({...b,[a]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${b} (${a})`);let d=`/api/usage/${a}${c?"?force=1":""}`,e=await fetch(d);if(!e.ok){let c=(await e.json().catch(()=>({}))).error||e.statusText;if(404===e.status)return void console.warn(`[ProviderLimits] Connection not found for ${b}, skipping`);if(401===e.status){console.warn(`[ProviderLimits] Auth error for ${b}:`,c);let d={quotas:[],message:c};P(b=>({...b,[a]:d}));return}throw Error(`HTTP ${e.status}: ${c}`)}let f=await e.json();console.log(`[ProviderLimits] Got quota for ${b}:`,f);let g={quotas:function(a,b){if(!b||"object"!=typeof b)return[];let c=[];try{switch(a.toLowerCase()){case"github":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"antigravity":if(b.quotas){let a=Object.entries(b.quotas),d=new Set(["gemini_weekly","claude_gpt_weekly"]),e=new Set(["gemini_session","claude_gpt_session"]),f=new Set([...d,...e]),g=a.filter(([a])=>a.startsWith("gemini-")&&!a.includes("image")),h=a.filter(([a])=>a.startsWith("claude-")),i=a.filter(([a])=>a.includes("image")),j=a.filter(([a])=>f.has(a)),k=a.filter(([a])=>!a.startsWith("gemini-")&&!a.startsWith("claude-")&&!a.includes("image")&&!f.has(a)),l=!!b.quotas.gemini_weekly,m=!!b.quotas.gemini_session,n=!!b.quotas.claude_gpt_weekly,o=!!b.quotas.claude_gpt_session;if(m)j.filter(([a])=>"gemini_session"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});else if(g.length>0){let a=g.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1],d=b.quotas.gemini_weekly?.resetAt;l&&a.resetAt===d&&(a.remainingPercentage??0)===0||c.push({name:"Gemini (Flash / Pro)",modelKey:"gemini",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage})}if(l&&j.filter(([a])=>"gemini_weekly"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})}),o)j.filter(([a])=>"claude_gpt_session"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});else if(h.length>0){let a=h.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1],d=b.quotas.claude_gpt_weekly?.resetAt;n&&a.resetAt===d&&(a.remainingPercentage??0)===0||c.push({name:"Claude (Sonnet / Opus)",modelKey:"claude",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage})}n&&j.filter(([a])=>"claude_gpt_weekly"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})}),i.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})}),n||o||k.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})})}break;case"codex":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{let d=a;"spark_session"===a?d="Spark (5h)":"spark_weekly"===a?d="Spark (Weekly)":"session"===a?d="5h":"weekly"===a?d="Weekly":"review_session"===a?d="Review (5h)":"review_weekly"===a&&(d="Review (Weekly)"),c.push({name:d,quotaType:a,used:b.used||0,total:b.total||0,remaining:b.remaining,resetAt:b.resetAt||null})});break;case"kiro":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"qoder":case"qoder-cn":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{b&&0!==(Number(b.total)||0)&&c.push({name:"user"===a?"Personal":"organization"===a?"Organization":"addOn"===a?"Add-on":a,used:b.used||0,total:b.total||0,unit:b.unit,resetAt:b.resetAt||null,neverExpires:!0===b.neverExpires,detailUrl:b.detailUrl||null})});break;case"claude":b.message?c.push({name:"error",used:0,total:0,resetAt:null,message:b.message}):b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:void 0!==b.remaining?b.remaining:Math.max(0,(b.total||100)-(b.used||0)),remainingPercentage:void 0!==b.remainingPercentage?b.remainingPercentage:q(b.used,b.total),resetAt:b.resetAt||null})});break;case"vercel-ai-gateway":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,recurring:!1!==b.recurring})});break;case"grok-cli":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"kimi":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"deepseek":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,isCreditBalance:b.isCreditBalance??!0,currency:b.currency||(a.includes("(")?a.slice(a.indexOf("(")+1,a.indexOf(")")):"USD")})});break;case"cursor":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"groq":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"ollama":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,isCreditBalance:b.isCreditBalance,currency:b.currency,unit:b.unit,unlimited:b.unlimited})});break;case"zed":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,unlimited:b.unlimited})});break;case"minimax-code":case"minimax-code-global":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:b.remaining,remainingPercentage:b.remainingPercentage,resetAt:b.resetAt||null,message:b.message,isCreditBalance:b.isCreditBalance,currency:b.currency})});break;default:b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:b.name||a,used:b.used||0,total:b.total||0,percentage:b.percentage,colorPercentage:b.colorPercentage,percentageIsUsed:!0===b.percentageIsUsed,resetAt:b.resetAt||null,emptyMessage:b.emptyMessage||null})})}}catch(b){return console.error(`Error parsing quota data for ${a}:`,b),[]}if(a?.toLowerCase()==="claude"){let a={"session (5h)":0,"weekly (7d)":1,"weekly fable (7d)":2,"weekly opus (7d)":3,"weekly sonnet (7d)":4};return c.sort((b,c)=>(a[b.name]??99)-(a[c.name]??99)),c}let d=(0,i.KC)(a);if(d.length>0){let a=new Map(d.map((a,b)=>[a.id,b]));c.sort((b,c)=>{let d=b.modelKey||b.name,e=c.modelKey||c.name;return("gemini"===d||"gemini_session"===d)&&(d="gemini-3.8-flash-high"),("claude"===d||"claude_gpt_session"===d)&&(d="claude-sonnet-4-6"),("gemini"===e||"gemini_session"===e)&&(e="gemini-3.8-flash-high"),("claude"===e||"claude_gpt_session"===e)&&(e="claude-sonnet-4-6"),(a.get(d)??999)-(a.get(e)??999)})}return c}(b,f),plan:f.plan||null,message:f.message||null,raw:f};P(b=>({...b,[a]:g}))}catch(c){console.error(`[ProviderLimits] Error fetching quota for ${b} (${a}):`,c),T(b=>({...b,[a]:c.message||"Failed to fetch quota"}))}finally{R(b=>({...b,[a]:!1}))}},[]),a0=(0,e.useCallback)(async(a,b)=>{await a_(a,b,{force:!0}),_(new Date)},[a_]),a1=(0,e.useCallback)(async(a,b)=>{if(("codex"===b||"claude"===b)&&!am){an(a),T(b=>({...b,[a]:null}));try{let c="claude"===b?await fetch(`/api/usage/${a}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:O[a]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${a}/codex-reset-credits`,{method:"POST"}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.message||d.error||d.code||"Failed to reset limit");await a_(a,b,{force:!0}),_(new Date)}catch(b){T(c=>({...c,[a]:b.message||"Failed to reset limit"}))}finally{an(null)}}},[a_,am,O]),a2=(0,e.useCallback)((a,b)=>{ar({connection:a,loading:!1,error:null,data:{kind:"claude",...b}})},[]),a3=(0,e.useCallback)(async a=>{ar({connection:a,loading:!0,error:null,data:null});try{let b=await fetch(`/api/usage/${a.id}/codex-reset-credits`,{cache:"no-store"}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||c.message||"Failed to load Codex reset credits");let d=Array.isArray(c.credits)?[...c.credits]:[];d.sort((a,b)=>(a.expiresAt?new Date(a.expiresAt).getTime():1/0)-(b.expiresAt?new Date(b.expiresAt).getTime():1/0)),ar({connection:a,loading:!1,error:null,data:{...c,credits:d}})}catch(b){ar({connection:a,loading:!1,error:b.message||"Failed to load Codex reset credits",data:null})}},[]),a4=(0,e.useCallback)(async a=>{if(confirm("Delete this connection?")){aj(a);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(P(b=>{let c={...b};return delete c[a],c}),R(b=>{let c={...b};return delete c[a],c}),T(b=>{let c={...b};return delete c[a],c}),await p(a$,aP))}catch(a){console.error("Error deleting connection:",a)}finally{aj(null)}}},[a$,aP]),a5=(0,e.useCallback)(async(a,b)=>{al(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(P(a=>({...a})),await p(a$,aP))}catch(a){console.error("Error updating connection status:",a)}finally{al(null)}},[a$,aP]),a6=(0,e.useCallback)(async a=>{if(!au?.id)return;let b=au.id,c=au.provider;try{(await fetch(`/api/providers/${b}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await a$(),at(!1),av(null),A.wb.includes(c)&&await a_(b,c))}catch(a){console.error("Error saving connection:",a)}},[au,a$,a_]),a7=(0,e.useCallback)(async(a=!1)=>{if(ac)return;ad(!0),af(60);let b=aZ.current+=1;try{let c,d=await a$(aP);R((c={},d.forEach(a=>{c[a.id]=!0}),c)),T(a=>o(a,d)),P(a=>o(a,d)),await Promise.all(d.filter(c=>a||"claude"!==c.provider||b%10==0).map(a=>a_(a.id,a.provider))),_(new Date)}catch(a){console.error("Error refreshing all providers:",a)}finally{ad(!1)}},[ac,a$,a_,aP]),a8=(0,e.useCallback)(async(a,b,{reactive:c,schedule:d})=>{let e=D[b];if(!e)return;let f=W[b]||{},g={...f,connections:{...f.connections||{},[a]:c},schedules:{...f.schedules||{},[a]:d}};X({...W,[b]:g});try{let a=await fetch("/api/settings",{cache:"no-store"}),b={...(a.ok?await a.json():{})[e]||{},connections:g.connections,schedules:g.schedules};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[e]:b})})}catch{X(W)}},[W]),a9=(0,e.useCallback)(async(a,b)=>{aI(a);try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:a})})).ok)throw Error("Failed to update quota visibility")}catch(a){console.error("Error updating quota visibility:",a),aI(b)}},[]),ba=(0,e.useCallback)((a,b)=>{let c=r(b);if(!a||!c)return;let d=aH[a]||{},e=new Set(d.hidden||[]);if(e.add(c),"antigravity"===a){if("gemini"===c)for(let a of e)a.startsWith("gemini-")&&!a.includes("image")&&e.delete(a);else if("claude"===c)for(let a of e)a.startsWith("claude-")&&e.delete(a)}a9({...aH,[a]:{...d,hidden:[...e]}},aH)},[aH,a9]),bb=(0,e.useCallback)((a,b)=>{let c=r(b);if(!a||!c)return;let d=aH[a]||{},e=new Set(d.hidden||[]);if(e.delete(c),"antigravity"===a){if("gemini"===c)for(let a of e)a.startsWith("gemini-")&&!a.includes("image")&&e.delete(a);else if("claude"===c)for(let a of e)a.startsWith("claude-")&&e.delete(a)}a9({...aH,[a]:{...d,hidden:[...e]}},aH)},[aH,a9]),bc=(0,e.useMemo)(()=>(function(a,b,c,d,e){if("codex"===d&&"default"!==e)return[...a].sort((a,c)=>{let d=n(a,b),f=n(c,b),g="remaining-asc"===e?d-f:f-d;return 0!==g?g:(m(a)||"").localeCompare(m(c)||"")});if(!c){let b=new Map;for(let c of a){let a=c.provider||"";b.has(a)||b.set(a,[]),b.get(a).push(c)}return Array.from(b.values()).flat()}let f=a=>{let c=(b[a.id]?.quotas||[]).map(a=>a.resetAt?new Date(a.resetAt).getTime():1/0).filter(a=>Number.isFinite(a));return c.length>0?Math.min(...c):1/0};return[...a].sort((a,b)=>{let c=f(a)-f(b);return 0!==c?c:(a.provider||"").localeCompare(b.provider||"")||(m(a)||"").localeCompare(m(b)||"")})})(M,O,aJ,ay,aF),[M,O,aJ,ay,aF]),bd=a=>{let b=O[a.id]?.quotas;return!!b?.length&&b.some(a=>!!a.total&&!(a.total<=0)&&5>=q(a.used,a.total))},be=(0,e.useCallback)(async(a,b)=>{if(a.length&&!aN){aO(!0);try{await Promise.all(a.map(a=>fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})}))),await p(a$,aP)}catch(a){console.error("Error bulk toggling connections:",a)}finally{aO(!1)}}},[aN,a$,aP]),bf="all"===ay?"All providers":I(ay),bg=aX.eligibleConnections>0,bh=bc.length>0,bi=aX.eligibleConnections?aX.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===ay?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===aD?"turned off":"active"===aD?"active":"matching"} accounts found for ${ay}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},bj=function(a){var b;let{start:c,end:d}=(b=a).total?{start:(b.page-1)*b.pageSize+1,end:Math.min(b.page*b.pageSize,b.total)}:{start:0,end:0};return`Showing ${c}-${d} of ${a.total}`}(aV),bk=!j.includes(aR);return ag||bg?ag||bh?(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-center",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>aM(a=>!a),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2","aria-haspopup":"menu","aria-expanded":aL,title:"Filter quota providers",children:[(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===ay?(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,d.jsx)(g.A,{src:`/providers/${ay}.png`,alt:ay,size:18,className:"size-[18px] rounded object-contain",fallbackText:ay.slice(0,2).toUpperCase()}),(0,d.jsx)("span",{className:"truncate hidden lg:inline",children:bf})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),aL&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>aM(!1)}),(0,d.jsxs)("div",{className:"absolute left-0 z-40 mt-2 w-64 overflow-hidden rounded-xl border border-border bg-surface p-1.5 shadow-warm sm:w-72",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>{"all"!==ay&&aQ(1),aA("all"),aM(!1)},className:`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition-colors ${"all"===ay?"bg-surface-2 text-text-main":"text-text-main hover:bg-surface-2"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:"apps"}),(0,d.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===ay&&(0,d.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]}),(0,d.jsx)("div",{className:"my-1 h-px bg-border"}),(0,d.jsx)("div",{className:"max-h-72 overflow-y-auto pr-1",children:aB.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>{ay!==a&&aQ(1),aA(a),aM(!1)},className:`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition-colors ${ay===a?"bg-surface-2 text-text-main":"text-text-main hover:bg-surface-2"}`,children:[(0,d.jsx)(g.A,{src:`/providers/${a}.png`,alt:a,size:24,className:"size-6 rounded-md object-contain",fallbackText:a.slice(0,2).toUpperCase()}),(0,d.jsx)("span",{className:"font-medium",children:I(a)}),ay===a&&(0,d.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},a))})]})]})]}),(0,d.jsx)(h.A,{value:aD,onChange:a=>{aD!==a&&aQ(1),aE(a)},options:k.map(a=>({value:a.value,label:a.label})),buttonClassName:"h-8 rounded-lg px-2 font-display text-xs font-medium",menuClassName:"w-48",align:"right"}),"codex"===ay&&(0,d.jsx)(h.A,{value:aF,onChange:aG,options:l.map(a=>({value:a.value,label:a.label})),buttonClassName:"h-8 rounded-lg px-2 font-display text-xs font-medium",menuClassName:"w-48",align:"right"}),(0,d.jsxs)("button",{type:"button",onClick:()=>aK(a=>!a),"aria-pressed":aJ,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 font-display text-xs font-medium transition-colors ${aJ?"border-text-subtle bg-surface-2 text-text-main":"border-border text-text-main hover:bg-surface-2"}`,title:"Sort accounts by earliest quota reset time",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,d.jsxs)("button",{type:"button",onClick:()=>{be(bc.filter(a=>(a.isActive??!0)&&bd(a)).map(a=>a.id),!1)},disabled:aN,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"block"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,d.jsxs)("button",{type:"button",onClick:()=>{be(bc.filter(a=>!(a.isActive??!0)&&!bd(a)).map(a=>a.id),!0)},disabled:aN,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"check_circle"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),(0,d.jsxs)("button",{onClick:()=>V(a=>!a),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2",title:U?"Disable auto-refresh":"Enable auto-refresh",children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${U?"text-text-main":"text-text-subtle"}`,children:U?"toggle_on":"toggle_off"}),(0,d.jsx)("span",{className:"hidden text-text-main sm:inline",children:"Auto-refresh"}),U&&(0,d.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",ae,"s)"]})]}),(0,d.jsx)("button",{type:"button",onClick:()=>a7(!0),disabled:ac,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",title:"Refresh all",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${ac?"animate-spin":""}`,children:"refresh"})})]})}),aJ&&(0,d.jsx)("div",{className:"rounded-xl border border-border bg-surface-2/50 px-3 py-2 text-xs text-text-muted",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:bc.map(c=>{let e,f,h,i=O[c.id],j=Q[c.id],k=S[c.id],l=!1===c.isActive,n="codex"===c.provider,o="claude"===c.provider?i?.raw?.resetCredits:null,p=n?"Codex reset credit":"Claude limit reset",q=Number.isFinite(f="number"==typeof(e=i?.raw?.resetCredits?.availableCount)?e:Number(e))?Math.max(0,f):0,x=am===c.id,y=ai===c.id||ak===c.id||x,A=i?.quotas||[],B=function(a,b=[],c={}){if(!Array.isArray(b)||0===b.length)return[];let d=s(a,c,b);return 0===d.size?b:b.filter(a=>!d.has(r(a)))}(c.provider,A,aH),G=function(a,b=[],c={}){if(!Array.isArray(b)||0===b.length)return[];let d=s(a,c,b);return 0===d.size?[]:b.filter(a=>d.has(r(a)))}(c.provider,A,aH);return(0,d.jsxs)(w.default,{padding:"none",className:`min-w-0 ${l?"opacity-60":""}`,children:[(0,d.jsx)("div",{className:"px-3 py-2 border-b border-border",children:(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,d.jsx)(g.A,{src:`/providers/${c.provider}.png`,alt:c.provider,size:32,className:"object-contain",fallbackText:c.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-sm font-semibold text-text-primary truncate",children:I(c.provider)}),m(c)?(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:m(c)}):null,E(c)?(0,d.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:E(c)}):null,"kiro"===c.provider&&(0,d.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,d.jsx)("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-[10px] font-medium text-text-muted",children:(h=c.providerSpecificData?.authMethod)&&C[h]?C[h]:"api_key"===c.authType?"API Key":"OAuth"}),F(c)&&(0,d.jsx)("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-[10px] font-medium text-text-muted",children:F(c)}),(0,d.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-medium ${l?"bg-surface-2 text-text-muted":"active"===c.testStatus||"success"===c.testStatus?"bg-success/10 text-success":"error"===c.testStatus||"expired"===c.testStatus||"unavailable"===c.testStatus?"bg-danger/10 text-danger":"bg-surface-2 text-text-muted"}`,children:l?"disabled":c.testStatus||"unknown"}),c.providerSpecificData?.profileArn&&(0,d.jsxs)("button",{type:"button",onClick:()=>b(c.providerSpecificData.profileArn,c.id),title:c.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a===c.id?"check":"content_copy"}),(0,d.jsx)("code",{className:"truncate font-mono",children:c.providerSpecificData.profileArn})]})]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(n||o)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(v.default,{text:q>0?o?`Use your reset now (${q} left, use by ${J(o.expiresAt)}) \xb7 refills ${H(o.clears)}`:`Use one ${p}. Available: ${q}`:`No ${p}s available`,children:(0,d.jsxs)("button",{type:"button",onClick:()=>ap({connection:c,resetCreditCount:q}),disabled:q<=0||j||y,"aria-label":q>0?`Use one ${p}. ${q} available.`:`No ${p}s available`,className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 font-display text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${q>0?"border-text-subtle bg-surface-2 text-text-main hover:bg-surface-3":"border-border bg-surface text-text-muted"}`,children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[15px] ${x?"animate-spin":""}`,children:x?"progress_activity":"restart_alt"}),(0,d.jsx)("span",{children:q})]})}),(0,d.jsx)(v.default,{text:n?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,d.jsx)("button",{type:"button",onClick:()=>n?a3(c):a2(c,o),disabled:j||y,"aria-label":n?"View Codex reset credit expiry":"View Claude Code reset expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface text-text-muted transition-colors hover:border-text-subtle hover:bg-surface-2 hover:text-text-main disabled:cursor-not-allowed disabled:opacity-50",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),D[c.provider]&&"oauth"===c.authType&&(()=>{let a=W[c.provider]||{},b=a.connections?.[c.id]===!0,e=a.schedules?.[c.id],f=e?.enabled===!0,g=[];if(b&&g.push("On reset"),f){let a=(0,z.JW)(e).join(" / ");g.push(`Scheduled (${a||"active"})`)}let h=g.length>0?`Auto-ping active: ${g.join(" + ")}. Click to configure.`:"codex"===c.provider?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure.";return(0,d.jsx)(v.default,{text:h,children:(0,d.jsx)("button",{type:"button",onClick:()=>Z(c),"aria-label":"Configure auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg border transition-colors hover:border-text-subtle hover:bg-surface-2 ${b||f?"border-text-subtle bg-surface-2 text-text-main":"border-border bg-surface text-text-muted"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})})})(),(0,d.jsx)(v.default,{text:"Refresh quota",children:(0,d.jsx)("button",{type:"button",onClick:()=>a0(c.id,c.provider),disabled:j||y,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${j?"animate-spin":""}`,children:"refresh"})})}),(0,d.jsx)(v.default,{text:"Edit connection",children:(0,d.jsx)("button",{type:"button",onClick:()=>{av(c),at(!0)},disabled:y,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface text-text-muted transition-colors hover:border-text-subtle hover:bg-surface-2 hover:text-text-main disabled:opacity-50",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,d.jsx)(v.default,{text:"Delete connection",children:(0,d.jsx)("button",{type:"button",onClick:()=>a4(c.id),disabled:y,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[18px] ${ai===c.id?"animate-pulse":""}`,children:"delete"})})}),(0,d.jsx)("div",{className:"inline-flex items-center pl-0.5",title:c.isActive??!0?"Disable connection":"Enable connection",children:(0,d.jsx)(u.default,{size:"sm",checked:c.isActive??!0,disabled:y,onChange:a=>a5(c.id,a)})})]})]})}),(0,d.jsxs)("div",{className:"px-2 py-1.5",children:[j?(0,d.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):k?(0,d.jsxs)("div",{className:"text-center py-5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,d.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:k})]}):i?.message?(0,d.jsx)("div",{className:"text-center py-5",children:(0,d.jsx)("p",{className:"text-xs text-text-muted",children:i.message})}):(0,d.jsx)(t,{quotas:B,compact:!0,sortMode:"default",showSortLabel:"codex"===c.provider&&"default"!==aF,onHideQuota:a=>ba(c.provider,a)}),i?.message&&!k&&!j&&(0,d.jsx)("p",{className:"mt-2 px-1 text-[10px] leading-relaxed text-text-muted",children:i.message}),G.length>0&&(0,d.jsxs)("div",{className:"mt-2 flex min-w-0 items-center gap-1 border-t border-border pt-2 text-[10px] text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px]",children:"visibility_off"}),(0,d.jsx)("span",{className:"shrink-0",children:"Hidden:"}),(0,d.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap pb-2",children:G.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>bb(c.provider,a),className:"shrink-0 rounded-md border border-border bg-surface px-1.5 py-0.5 font-display transition-colors hover:bg-surface-2 hover:text-text-main",title:"Show this quota row",children:a.name},r(a)))})]})]})]},c.id)})}),(0,d.jsx)("div",{className:"rounded-xl border border-border bg-surface-2/50 px-3 py-2",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-wider text-text-subtle",children:bj}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(h.A,{value:bk?"custom":String(aR),onChange:a=>{if("custom"===a)return;let b=Number.parseInt(String(a),10);Number.isFinite(b)&&(aQ(1),aS(b),aU(String(b)))},options:[...j.map(a=>({value:String(a),label:`${a} / page`})),{value:"custom",label:"Custom"}],buttonClassName:"h-8 rounded-lg px-2 font-display text-xs font-medium",menuClassName:"w-40",align:"right"}),(0,d.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:aT,onChange:a=>aU(a.target.value),onBlur:()=>{let a=Number.parseInt(aT,10);if(!Number.isFinite(a))return void aU(String(aR));let b=Math.min(500,Math.max(1,a));aQ(1),aS(b),aU(String(b))},onKeyDown:a=>{if("Enter"!==a.key)return;let b=Number.parseInt(aT,10);if(!Number.isFinite(b))return void aU(String(aR));let c=Math.min(500,Math.max(1,b));aQ(1),aS(c),aU(String(c))},className:"h-8 w-20 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main outline-none transition-colors hover:border-text-subtle hover:bg-surface-2","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,d.jsxs)("span",{className:"font-mono text-[10px] uppercase tracking-wider text-text-subtle",children:["Page ",aV.page," / ",aV.totalPages]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("button",{type:"button",onClick:()=>aQ(1),disabled:aV.page<=1||ag||ac,className:"flex h-8 items-center rounded-lg border border-border bg-surface px-3 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40",children:"First Page"}),(0,d.jsx)("button",{type:"button",onClick:()=>aQ(a=>Math.max(1,a-1)),disabled:aV.page<=1||ag||ac,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface font-display text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Previous accounts page",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,d.jsx)("button",{type:"button",onClick:()=>aQ(a=>Math.min(aV.totalPages,a+1)),disabled:aV.page>=aV.totalPages||ag||ac,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface font-display text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Next accounts page",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,d.jsx)("button",{type:"button",onClick:()=>aQ(aV.totalPages),disabled:aV.page>=aV.totalPages||ag||ac,className:"flex h-8 items-center rounded-lg border border-border bg-surface px-3 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40",children:"Last Page"})]})]})}),(0,d.jsx)(x.uo,{isOpen:!!ao,onClose:()=>{am||ap(null)},onConfirm:async()=>{let a=ao?.connection;a&&(await a1(a.id,a.provider),ap(null))},title:ao?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ao?.connection?.provider==="claude"?`Refills your ${H(O[ao.connection.id]?.raw?.resetCredits?.clears)} now for ${m(ao.connection)||"this account"} \xb7 your weekly reset day stays ${J(O[ao.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ao.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${m(ao?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ao?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!am}),aq&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:aq.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,d.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:m(aq.connection)||(aq.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,d.jsx)("button",{type:"button",onClick:()=>ar(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,d.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:aq.loading?(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):aq.error?(0,d.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:aq.error}):aq.data?.kind==="claude"&&aq.data.grants?.length?(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,d.jsxs)("span",{children:[aq.data.availableCount??0," reset",1===aq.data.availableCount?"":"s"," left"]}),(0,d.jsxs)("span",{children:["Weekly reset day: ",J(aq.data.weeklyResetsAt)]})]}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,d.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,d.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,d.jsx)("tbody",{children:(aq.data.grants||[]).map(a=>(0,d.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,d.jsxs)("td",{className:"px-3 py-2",children:[(0,d.jsx)("div",{className:"text-text-primary",children:a.label||a.id}),(0,d.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.resetsLeft<=0?"used":a.paused?"paused":a.endsAt&&new Date(a.endsAt).getTime()<=Date.now()?"expired":a.usableNow?"usable now":a.startsAt&&new Date(a.startsAt).getTime()>Date.now()?"not started":a.useRequiresLimit?"at limit only":"unavailable"})]}),(0,d.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text-primary",children:[a.resetsLeft," / ",a.resetsTotal]}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-muted",children:H(a.clears)}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-primary",children:J(a.endsAt)}),(0,d.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text-primary",children:K(a.endsAt)})]},a.id))})]})})]}):aq.data?.credits?.length?(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,d.jsxs)("span",{children:[aq.data.credits.length," reset credit",1===aq.data.credits.length?"":"s"]}),(0,d.jsxs)("span",{children:[aq.data.availableCount??0," available"]})]}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,d.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,d.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,d.jsx)("tbody",{children:aq.data.credits.map((a,b)=>(0,d.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,d.jsx)("td",{className:"px-3 py-2",children:(0,d.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.status||"unknown"})}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-muted",children:J(a.grantedAt)}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-primary",children:J(a.expiresAt)}),(0,d.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:K(a.expiresAt)})]},`${a.status}-${a.expiresAt||b}`))})]})})]}):(0,d.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:aq.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,d.jsx)(x.wI,{isOpen:as,connection:au,proxyPools:aw,onSave:a6,onClose:()=>{at(!1),av(null)}}),Y&&(0,d.jsx)(y.A,{isOpen:!!Y,onClose:()=>Z(null),connection:Y,reactive:W[Y.provider]?.connections?.[Y.id]===!0,schedule:W[Y.provider]?.schedules?.[Y.id]||null,onSave:a=>a8(Y.id,Y.provider,a)})]}):(0,d.jsx)(w.default,{padding:"lg",children:(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:bi.icon}),(0,d.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:bi.title}),(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:bi.description})]})}):(0,d.jsx)(w.default,{padding:"lg",children:(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,d.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8236:(a,b,c)=>{Promise.resolve().then(c.bind(c,57471)),Promise.resolve().then(c.bind(c,92082))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},16736:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(5735),e=c(91986),f=c(92082),g=c(57471);function h(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(f.CardSkeleton,{}),children:(0,d.jsx)(g.default,{})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54589:(a,b,c)=>{"use strict";function d(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}c.d(b,{JW:()=>i,Vm:()=>d,fB:()=>f,gy:()=>e,nz:()=>g});let e={anchor:"09:30",timezone:d(),windowHours:5,slotsPerDay:3};function f(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function g(a){return Math.max(1,Math.floor(24/a))}function h(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function i(a){let b=function(a){if(!a||!0!==a.enabled)return null;let b=f(a.anchor)||f(e.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?e.timezone:a.timezone,i=h(a.windowHours,e.windowHours,.5,24),j=Math.round(h(a.slotsPerDay,e.slotsPerDay,1,g(i)));return{enabled:!0,anchor:c,timezone:d,windowHours:i,slotsPerDay:j}}(a);if(!b)return[];let{hour:c,minute:d}=f(b.anchor),i=60*c+d;return Array.from({length:b.slotsPerDay},(a,c)=>{let d=Math.round(i+c*b.windowHours*60)%1440;return`${String(Math.floor(d/60)).padStart(2,"0")}:${String(d%60).padStart(2,"0")}`})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56020:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(71404),j=c(54589);let k=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function l({isOpen:a,onClose:b,onSave:c,connection:f,reactive:g=!1,schedule:m=null}){let[n,o]=(0,e.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===g?"reset":"off",anchor:m?.anchor||j.gy.anchor,timezone:(0,j.Vm)(),windowHours:String(m?.windowHours??j.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??j.gy.slotsPerDay)})),p=Number(n.windowHours),q=Number(n.slotsPerDay),r=!!(0,j.fB)(n.anchor),s=Number.isFinite(p)&&p>=.5&&p<=24,t=s?(0,j.nz)(p):24,u=Number.isInteger(q)&&q>=1&&q<=t,v=r&&s&&u,w="schedule"!==n.mode||v,x=v?(0,j.JW)({enabled:!0,...n,windowHours:p,slotsPerDay:q}):[],y=x.length&&s?(()=>{let{hour:a,minute:b}=(0,j.fB)(n.anchor),c=Math.round(60*a+b+q*p*60)%1440;return`${String(Math.floor(c/60)).padStart(2,"0")}:${String(c%60).padStart(2,"0")}`})():"",z=a=>o(b=>({...b,...a}));return(0,d.jsx)(h.aF,{isOpen:a,onClose:b,title:"Auto-ping settings",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:b,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:()=>{w&&(c({reactive:"reset"===n.mode,schedule:"schedule"===n.mode?{enabled:!0,anchor:n.anchor,timezone:n.timezone,windowHours:p,slotsPerDay:q}:{enabled:!1}}),b())},disabled:!w,children:"Save"})]}),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",f?.name?` for ${f.name}`:""," - pick one mode."]}),(0,d.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:k.map(a=>{let b=n.mode===a.value;return(0,d.jsxs)("button",{type:"button",onClick:()=>z({mode:a.value}),className:(0,i.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",b?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:a.icon}),(0,d.jsx)("span",{children:a.label})]},a.value)})}),"reset"===n.mode&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===n.mode&&(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,d.jsx)(h.pd,{label:"Anchor time",type:"time",value:n.anchor,onChange:a=>z({anchor:a.target.value}),error:r?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:n.windowHours,onChange:a=>z({windowHours:a.target.value}),error:s?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Pings per day",type:"number",min:"1",max:String(t),step:"1",value:n.slotsPerDay,onChange:a=>z({slotsPerDay:a.target.value}),error:u?"":`1 – ${t}`,hint:u?`Max ${t}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),x.length>0&&(0,d.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,d.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",n.timezone,")"]}),(0,d.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:x.join(" → ")}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",x[0]," – ",y,", then pauses until ",x[0]," next day."]})]})]})]})})}l.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSave:g().func.isRequired,connection:g().object,reactive:g().bool,schedule:g().object}},57075:a=>{"use strict";a.exports=require("node:stream")},57471:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js","default")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},71788:(a,b,c)=>{Promise.resolve().then(c.bind(c,3493)),Promise.resolve().then(c.bind(c,74812))},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},73799:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>w,handler:()=>y,routeModule:()=>x});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u={children:["",{children:["(dashboard)",{children:["dashboard",{children:["quota",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,16736))),"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/dashboard/quota/page.js"]}]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/keyzakyy/Projects/keyrouter/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,v=(0,e.H)({tree:u,page:"/(dashboard)/dashboard/quota/page",pathname:"/dashboard/quota",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),w=v.__next_app__,x=v.routeModule,y=v.handler},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,7678,2760,9100,8499,6070,869,915,6457,4123,2172,6777,412,4756],()=>b(b.s=73799));module.exports=c})();
1
+ (()=>{var a={};a.id=3826,a.ids=[3826],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3493:(a,b,c)=>{"use strict";c.d(b,{default:()=>L});var d=c(48249),e=c(67484),f=c(19099),g=c(72738),h=c(62947),i=c(60757);let j=[10,20,50,100],k=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],l=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function m(a){return a.name?.trim()||a.email?.trim()||a.displayName?.trim()||null}function n(a,b){let c=b[a.id]?.quotas?.[0];return c&&"number"==typeof c.remaining?c.remaining:1/0}function o(a,b){let c=new Set(b.map(a=>a.id));return Object.fromEntries(Object.entries(a).filter(([a])=>c.has(a)))}async function p(a,b){return await a(b)}function q(a,b){return b&&0!==b?!a||a<0?100:a>=b?0:Math.round((b-a)/b*100):0}function r(a){return a&&"object"==typeof a?String(a.modelKey||a.name||"").trim():""}function s(a,b,c=[]){let d=b?.[a]?.hidden;return Array.isArray(d)&&0!==d.length?new Set((c.length>0?function(a=[],b=[]){if(!Array.isArray(a)||0===a.length)return[];let c=new Set(b.map(r).filter(Boolean));return[...new Set(a.map(a=>String(a).trim()).filter(a=>c.has(a)))]}(d,c):d).map(String)):new Set}function t({quotas:a=[],compact:b=!1,sortMode:c="default",showSortLabel:f=!1,onHideQuota:g=null}){let[h,i]=(0,e.useState)(1),j=(0,e.useMemo)(()=>a.map((a,b)=>({...a,index:b,remaining:a?.percentage!==void 0?Math.max(0,Math.round(!0===a.percentageIsUsed?100-a.percentage:a.percentage)):a?.remaining!==void 0?Math.max(0,Math.round(a.remaining)):a?.remainingPercentage!==void 0?Math.round(a.remainingPercentage):q(a?.used,a?.total)})),[a]),k=(0,e.useMemo)(()=>"remaining-asc"===c?[...j].sort((a,b)=>a.remaining-b.remaining||a.name.localeCompare(b.name)):"remaining-desc"===c?[...j].sort((a,b)=>b.remaining-a.remaining||a.name.localeCompare(b.name)):j,[j,c]),l=Math.max(1,Math.ceil(k.length/10));if(!a||0===a.length)return null;let m=k.slice((h-1)*10,10*h),n=0===k.length?0:(h-1)*10+1,o=Math.min(10*h,k.length),p=b?"py-1 px-1.5":"py-2 px-3",r=b?"text-[11px]":"text-sm",s=b?"text-[11px]":"text-sm",u=b?"text-[10px] leading-tight":"text-xs",v="function"==typeof g;return(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"text-[10px] text-text-muted",children:[k.length," quota",k.length>1?"s":""]}),f&&(0,d.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,d.jsx)("div",{className:"space-y-px",children:m.map(a=>{var c;let e=!0===a.unlimited,f=!0===a.isCreditBalance,h=f?{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500",bgLight:"bg-blue-500/10",emoji:"\uD83D\uDCB0"}:(c=a.colorPercentage??a.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:c>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},i=a.neverExpires?"-":function(a){if(!a)return"-";try{let b="string"==typeof a?new Date(a):a,c=new Date,d=b-c;if(d<=0)return"-";let e=Math.ceil(d/6e4);if(e<60)return`${e}m`;let f=Math.floor(e/60),g=e%60;if(f<24)return`${f}h ${g}m`;let h=Math.floor(f/24);return`${h}d ${f%24}h ${g}m`}catch(a){return"-"}}(a.resetAt),j=!a.neverExpires&&!a.resetAt&&!!a.detailUrl,k=a.emptyMessage?a.emptyMessage:a.neverExpires?"Never expires":j?"See details":function(a){if(!a)return null;try{let b=new Date(a),c=new Date,d=new Date(c.getFullYear(),c.getMonth(),c.getDate()),e=new Date(d);e.setDate(e.getDate()+1);let f="";f=b>=d&&b<e?"Today":b>=e&&b<new Date(e.getTime()+864e5)?"Tomorrow":b.toLocaleDateString("en-US",{month:"short",day:"numeric"});let g=b.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${f}, ${g}`}catch{return null}}(a.resetAt),l=j&&a.detailUrl?a.detailUrl:k,m=!1!==a.recurring?`in ${i}`:`expires in ${i}`,n=b=>j?(0,d.jsxs)("a",{href:a.detailUrl,target:"_blank",rel:"noopener noreferrer",className:`${b} inline-flex items-center gap-0.5 hover:text-text-primary hover:underline`,title:`Open usage details: ${l}`,"aria-label":`Open usage details for ${a.name}`,children:[k,(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]}):k;return(0,d.jsxs)("div",{className:`flex items-center gap-2 border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${p}`,children:[(0,d.jsxs)("div",{className:"flex w-36 min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-[10px] shrink-0",children:h.emoji}),(0,d.jsx)("span",{className:`${r} font-medium text-text-primary truncate`,children:a.name})]}),(0,d.jsxs)("div",{className:`min-w-0 flex-1 ${b?"space-y-1":"space-y-1.5"}`,children:[!e&&!f&&(0,d.jsx)("div",{className:`${b?"h-1":"h-1.5"} rounded-full overflow-hidden border ${h.bgLight} ${0===a.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,d.jsx)("div",{className:`h-full transition-all duration-300 ${h.bg}`,style:{width:`${Math.min(a.remaining,100)}%`}})}),(0,d.jsxs)("div",{className:`flex items-center justify-between gap-1 min-w-0 ${b?"text-[10px]":"text-xs"}`,children:[(0,d.jsx)("span",{className:"text-text-muted truncate",title:e?`${a.used.toLocaleString()} used \xb7 Unlimited`:f?`Credit balance: ${a.total.toFixed(2)} ${a.currency||""}`:`${a.used.toLocaleString()} / ${a.total>0?a.total.toLocaleString():"∞"}`,children:e?`${a.used.toLocaleString()} used \xb7 Unlimited`:f?`Credit: ${a.total.toFixed(2)} ${a.currency||""}`:`${a.used.toLocaleString()} / ${a.total>0?a.total.toLocaleString():"∞"}${a.unit?` ${a.unit}`:""}`}),(0,d.jsx)("span",{className:`font-medium ${e?"text-green-600 dark:text-green-400":f?"text-blue-600 dark:text-blue-400":h.text} shrink-0`,children:e?"Unlimited":f?"":`${a.remaining}%`})]})]}),(0,d.jsx)("div",{className:"min-w-0 shrink",children:"-"!==i||k?b?(0,d.jsx)("div",{className:`${s} text-text-primary font-medium truncate`,title:l||"",children:"-"!==i?m:n(s)}):(0,d.jsxs)("div",{className:"min-w-0 space-y-0.5",children:["-"!==i&&(0,d.jsx)("div",{className:`${s} text-text-primary font-medium truncate`,children:m}),k&&(0,d.jsx)("div",{className:`${u} text-text-muted truncate`,children:n(u)})]}):(0,d.jsx)("div",{className:`${s} text-text-muted italic`,children:"N/A"})}),v&&(0,d.jsx)("button",{type:"button",onClick:()=>g(a),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5",title:"Hide this quota row","aria-label":`Hide quota ${a.name}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"visibility_off"})})]},`${a.name}-${a.index}`)})}),l>1&&(0,d.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,d.jsxs)("span",{children:["Showing ",n,"-",o," of ",k.length]}),(0,d.jsxs)("span",{children:["Page ",h," / ",l]})]}),(0,d.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,d.jsx)("button",{type:"button",onClick:()=>i(a=>Math.max(1,a-1)),disabled:1===h,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,d.jsx)("button",{type:"button",onClick:()=>i(a=>Math.min(l,a+1)),disabled:h===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var u=c(95514),v=c(32971),w=c(17660),x=c(50412),y=c(56020),z=c(54589),A=c(92592),B=c(50377);let C={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},D={claude:"claudeAutoPing",codex:"codexAutoPing"};function E(a){return a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()?a.email.trim():a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()?a.displayName.trim():null}function F(a){let b=a.providerSpecificData?.region;if(b)return b;let c=a.providerSpecificData?.profileArn;return("string"==typeof c?c.split(":")[3]:"")||""}let G={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function H(a){let b=[...new Set((a||[]).map(a=>G[a]).filter(Boolean))];return b.length?`${b.join(" + ")} limits`:"limits"}function I(a){return A.Q2[a]?.name||a}function J(a){if(!a)return"N/A";let b=new Date(a);return Number.isFinite(b.getTime())?b.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function K(a){if(!a)return"N/A";let b=new Date(a).getTime()-Date.now();if(!Number.isFinite(b))return"N/A";if(b<=0)return"Expired";let c=Math.ceil(b/36e5),d=Math.floor(c/24),e=c%24;return d>0?`${d}d ${e}h`:`${e}h`}function L(){let{copied:a,copy:b}=(0,B.C)(),c=(0,f.useSearchParams)(),G=(0,f.useRouter)(),L=(0,f.usePathname)(),[M,N]=(0,e.useState)([]),[O,P]=(0,e.useState)({}),[Q,R]=(0,e.useState)({}),[S,T]=(0,e.useState)({}),[U,V]=(0,e.useState)(!0),[W,X]=(0,e.useState)({claude:{},codex:{}}),[Y,Z]=(0,e.useState)(null),[$,_]=(0,e.useState)(null),[aa,ab]=(0,e.useState)(!1),[ac,ad]=(0,e.useState)(!1),[ae,af]=(0,e.useState)(60),[ag,ah]=(0,e.useState)(!0),[ai,aj]=(0,e.useState)(null),[ak,al]=(0,e.useState)(null),[am,an]=(0,e.useState)(null),[ao,ap]=(0,e.useState)(null),[aq,ar]=(0,e.useState)(null),[as,at]=(0,e.useState)(!1),[au,av]=(0,e.useState)(null),[aw,ax]=(0,e.useState)([]),[ay,az]=(0,e.useState)(()=>c?.get("provider")||"all"),aA=(0,e.useCallback)(a=>{az(a);try{let b=new URLSearchParams(c?.toString()||"");"all"===a?b.delete("provider"):b.set("provider",a);let d=b.toString()?`${L}?${b.toString()}`:L;G.replace(d,{scroll:!1})}catch{}},[L,G,c]),[aB,aC]=(0,e.useState)([]),[aD,aE]=(0,e.useState)("all"),[aF,aG]=(0,e.useState)("default"),[aH,aI]=(0,e.useState)({}),[aJ,aK]=(0,e.useState)(!1),[aL,aM]=(0,e.useState)(!1),[aN,aO]=(0,e.useState)(!1),[aP,aQ]=(0,e.useState)(1),[aR,aS]=(0,e.useState)(20),[aT,aU]=(0,e.useState)(String(20)),[aV,aW]=(0,e.useState)({page:1,pageSize:20,total:0,totalPages:1}),[aX,aY]=(0,e.useState)({eligibleConnections:0,providerFilteredConnections:0});(0,e.useRef)(null),(0,e.useRef)(null);let aZ=(0,e.useRef)(0),a$=(0,e.useCallback)(async(a=aP)=>{try{var b,c;let d=new URLSearchParams({page:String(a),pageSize:String(aR),accountStatus:aD,sort:"priority"});"all"!==ay&&d.set("provider",ay);let e=await fetch(`/api/providers/client?${d.toString()}`);if(!e.ok)throw Error("Failed to fetch connections");let f=await e.json(),g=f.connections||[],h=(b=f.pagination,b||{page:1,pageSize:aR,total:0,totalPages:1}),i=function(a,b=0){return a||{eligibleConnections:b,providerFilteredConnections:b}}(f.totals,g.length);return N(g),aC(f.providerOptions||[]),aW(h),aY(i),aQ((c=f.pagination,c?.page||a)),g}catch(a){return console.error("Error fetching connections:",a),N([]),aC([]),aW({page:1,pageSize:aR,total:0,totalPages:1}),aY({eligibleConnections:0,providerFilteredConnections:0}),[]}},[aD,aJ,aP,aR,ay]),a_=(0,e.useCallback)(async(a,b,{force:c=!1}={})=>{R(b=>({...b,[a]:!0})),T(b=>({...b,[a]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${b} (${a})`);let d=`/api/usage/${a}${c?"?force=1":""}`,e=await fetch(d);if(!e.ok){let c=(await e.json().catch(()=>({}))).error||e.statusText;if(404===e.status)return void console.warn(`[ProviderLimits] Connection not found for ${b}, skipping`);if(401===e.status){console.warn(`[ProviderLimits] Auth error for ${b}:`,c);let d={quotas:[],message:c};P(b=>({...b,[a]:d}));return}throw Error(`HTTP ${e.status}: ${c}`)}let f=await e.json();console.log(`[ProviderLimits] Got quota for ${b}:`,f);let g={quotas:function(a,b){if(!b||"object"!=typeof b)return[];let c=[];try{switch(a.toLowerCase()){case"github":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"antigravity":if(b.quotas){let a=Object.entries(b.quotas),d=new Set(["gemini_weekly","claude_gpt_weekly"]),e=new Set(["gemini_session","claude_gpt_session"]),f=new Set([...d,...e]),g=a.filter(([a])=>a.startsWith("gemini-")&&!a.includes("image")),h=a.filter(([a])=>a.startsWith("claude-")),i=a.filter(([a])=>a.includes("image")),j=a.filter(([a])=>f.has(a)),k=a.filter(([a])=>!a.startsWith("gemini-")&&!a.startsWith("claude-")&&!a.includes("image")&&!f.has(a)),l=!!b.quotas.gemini_weekly,m=!!b.quotas.gemini_session,n=!!b.quotas.claude_gpt_weekly,o=!!b.quotas.claude_gpt_session;if(m)j.filter(([a])=>"gemini_session"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});else if(g.length>0){let a=g.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1],d=b.quotas.gemini_weekly?.resetAt;l&&a.resetAt===d&&(a.remainingPercentage??0)===0||c.push({name:"Gemini (Flash / Pro)",modelKey:"gemini",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage})}if(l&&j.filter(([a])=>"gemini_weekly"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})}),o)j.filter(([a])=>"claude_gpt_session"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});else if(h.length>0){let a=h.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1],d=b.quotas.claude_gpt_weekly?.resetAt;n&&a.resetAt===d&&(a.remainingPercentage??0)===0||c.push({name:"Claude (Sonnet / Opus)",modelKey:"claude",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage})}n&&j.filter(([a])=>"claude_gpt_weekly"===a).forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})}),i.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})}),n||o||k.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})})}break;case"codex":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{let d=a;"spark_session"===a?d="Spark (5h)":"spark_weekly"===a?d="Spark (Weekly)":"session"===a?d="5h":"weekly"===a?d="Weekly":"review_session"===a?d="Review (5h)":"review_weekly"===a&&(d="Review (Weekly)"),c.push({name:d,quotaType:a,used:b.used||0,total:b.total||0,remaining:b.remaining,resetAt:b.resetAt||null})});break;case"kiro":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"qoder":case"qoder-cn":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{b&&0!==(Number(b.total)||0)&&c.push({name:"user"===a?"Personal":"organization"===a?"Organization":"addOn"===a?"Add-on":a,used:b.used||0,total:b.total||0,unit:b.unit,resetAt:b.resetAt||null,neverExpires:!0===b.neverExpires,detailUrl:b.detailUrl||null})});break;case"claude":b.message?c.push({name:"error",used:0,total:0,resetAt:null,message:b.message}):b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:void 0!==b.remaining?b.remaining:Math.max(0,(b.total||100)-(b.used||0)),remainingPercentage:void 0!==b.remainingPercentage?b.remainingPercentage:q(b.used,b.total),resetAt:b.resetAt||null})});break;case"vercel-ai-gateway":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,recurring:!1!==b.recurring})});break;case"grok-cli":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"kimi":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"deepseek":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,isCreditBalance:b.isCreditBalance??!0,currency:b.currency||(a.includes("(")?a.slice(a.indexOf("(")+1,a.indexOf(")")):"USD")})});break;case"cursor":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"groq":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"ollama":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,isCreditBalance:b.isCreditBalance,currency:b.currency,unit:b.unit,unlimited:b.unlimited})});break;case"zed":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,unlimited:b.unlimited})});break;case"minimax-code":case"minimax-code-global":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:b.remaining,remainingPercentage:b.remainingPercentage,resetAt:b.resetAt||null,message:b.message,isCreditBalance:b.isCreditBalance,currency:b.currency})});break;default:b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:b.name||a,used:b.used||0,total:b.total||0,percentage:b.percentage,colorPercentage:b.colorPercentage,percentageIsUsed:!0===b.percentageIsUsed,resetAt:b.resetAt||null,emptyMessage:b.emptyMessage||null})})}}catch(b){return console.error(`Error parsing quota data for ${a}:`,b),[]}if(a?.toLowerCase()==="claude"){let a={"session (5h)":0,"weekly (7d)":1,"weekly fable (7d)":2,"weekly opus (7d)":3,"weekly sonnet (7d)":4};return c.sort((b,c)=>(a[b.name]??99)-(a[c.name]??99)),c}let d=(0,i.KC)(a);if(d.length>0){let a=new Map(d.map((a,b)=>[a.id,b]));c.sort((b,c)=>{let d=b.modelKey||b.name,e=c.modelKey||c.name;return("gemini"===d||"gemini_session"===d)&&(d="gemini-3.8-flash-high"),("claude"===d||"claude_gpt_session"===d)&&(d="claude-sonnet-4-6"),("gemini"===e||"gemini_session"===e)&&(e="gemini-3.8-flash-high"),("claude"===e||"claude_gpt_session"===e)&&(e="claude-sonnet-4-6"),(a.get(d)??999)-(a.get(e)??999)})}return c}(b,f),plan:f.plan||null,message:f.message||null,raw:f};P(b=>({...b,[a]:g}))}catch(c){console.error(`[ProviderLimits] Error fetching quota for ${b} (${a}):`,c),T(b=>({...b,[a]:c.message||"Failed to fetch quota"}))}finally{R(b=>({...b,[a]:!1}))}},[]),a0=(0,e.useCallback)(async(a,b)=>{await a_(a,b,{force:!0}),_(new Date)},[a_]),a1=(0,e.useCallback)(async(a,b)=>{if(("codex"===b||"claude"===b)&&!am){an(a),T(b=>({...b,[a]:null}));try{let c="claude"===b?await fetch(`/api/usage/${a}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:O[a]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${a}/codex-reset-credits`,{method:"POST"}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.message||d.error||d.code||"Failed to reset limit");await a_(a,b,{force:!0}),_(new Date)}catch(b){T(c=>({...c,[a]:b.message||"Failed to reset limit"}))}finally{an(null)}}},[a_,am,O]),a2=(0,e.useCallback)((a,b)=>{ar({connection:a,loading:!1,error:null,data:{kind:"claude",...b}})},[]),a3=(0,e.useCallback)(async a=>{ar({connection:a,loading:!0,error:null,data:null});try{let b=await fetch(`/api/usage/${a.id}/codex-reset-credits`,{cache:"no-store"}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||c.message||"Failed to load Codex reset credits");let d=Array.isArray(c.credits)?[...c.credits]:[];d.sort((a,b)=>(a.expiresAt?new Date(a.expiresAt).getTime():1/0)-(b.expiresAt?new Date(b.expiresAt).getTime():1/0)),ar({connection:a,loading:!1,error:null,data:{...c,credits:d}})}catch(b){ar({connection:a,loading:!1,error:b.message||"Failed to load Codex reset credits",data:null})}},[]),a4=(0,e.useCallback)(async a=>{if(confirm("Delete this connection?")){aj(a);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(P(b=>{let c={...b};return delete c[a],c}),R(b=>{let c={...b};return delete c[a],c}),T(b=>{let c={...b};return delete c[a],c}),await p(a$,aP))}catch(a){console.error("Error deleting connection:",a)}finally{aj(null)}}},[a$,aP]),a5=(0,e.useCallback)(async(a,b)=>{al(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(P(a=>({...a})),await p(a$,aP))}catch(a){console.error("Error updating connection status:",a)}finally{al(null)}},[a$,aP]),a6=(0,e.useCallback)(async a=>{if(!au?.id)return;let b=au.id,c=au.provider;try{(await fetch(`/api/providers/${b}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await a$(),at(!1),av(null),A.wb.includes(c)&&await a_(b,c))}catch(a){console.error("Error saving connection:",a)}},[au,a$,a_]),a7=(0,e.useCallback)(async(a=!1)=>{if(ac)return;ad(!0),af(60);let b=aZ.current+=1;try{let c,d=await a$(aP);R((c={},d.forEach(a=>{c[a.id]=!0}),c)),T(a=>o(a,d)),P(a=>o(a,d)),await Promise.all(d.filter(c=>a||"claude"!==c.provider||b%10==0).map(a=>a_(a.id,a.provider))),_(new Date)}catch(a){console.error("Error refreshing all providers:",a)}finally{ad(!1)}},[ac,a$,a_,aP]),a8=(0,e.useCallback)(async(a,b,{reactive:c,schedule:d})=>{let e=D[b];if(!e)return;let f=W[b]||{},g={...f,connections:{...f.connections||{},[a]:c},schedules:{...f.schedules||{},[a]:d}};X({...W,[b]:g});try{let a=await fetch("/api/settings",{cache:"no-store"}),b={...(a.ok?await a.json():{})[e]||{},connections:g.connections,schedules:g.schedules};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[e]:b})})}catch{X(W)}},[W]),a9=(0,e.useCallback)(async(a,b)=>{aI(a);try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:a})})).ok)throw Error("Failed to update quota visibility")}catch(a){console.error("Error updating quota visibility:",a),aI(b)}},[]),ba=(0,e.useCallback)((a,b)=>{let c=r(b);if(!a||!c)return;let d=aH[a]||{},e=new Set(d.hidden||[]);if(e.add(c),"antigravity"===a){if("gemini"===c)for(let a of e)a.startsWith("gemini-")&&!a.includes("image")&&e.delete(a);else if("claude"===c)for(let a of e)a.startsWith("claude-")&&e.delete(a)}a9({...aH,[a]:{...d,hidden:[...e]}},aH)},[aH,a9]),bb=(0,e.useCallback)((a,b)=>{let c=r(b);if(!a||!c)return;let d=aH[a]||{},e=new Set(d.hidden||[]);if(e.delete(c),"antigravity"===a){if("gemini"===c)for(let a of e)a.startsWith("gemini-")&&!a.includes("image")&&e.delete(a);else if("claude"===c)for(let a of e)a.startsWith("claude-")&&e.delete(a)}a9({...aH,[a]:{...d,hidden:[...e]}},aH)},[aH,a9]),bc=(0,e.useMemo)(()=>(function(a,b,c,d,e){if("codex"===d&&"default"!==e)return[...a].sort((a,c)=>{let d=n(a,b),f=n(c,b),g="remaining-asc"===e?d-f:f-d;return 0!==g?g:(m(a)||"").localeCompare(m(c)||"")});if(!c){let b=new Map;for(let c of a){let a=c.provider||"";b.has(a)||b.set(a,[]),b.get(a).push(c)}return Array.from(b.values()).flat()}let f=a=>{let c=(b[a.id]?.quotas||[]).map(a=>a.resetAt?new Date(a.resetAt).getTime():1/0).filter(a=>Number.isFinite(a));return c.length>0?Math.min(...c):1/0};return[...a].sort((a,b)=>{let c=f(a)-f(b);return 0!==c?c:(a.provider||"").localeCompare(b.provider||"")||(m(a)||"").localeCompare(m(b)||"")})})(M,O,aJ,ay,aF),[M,O,aJ,ay,aF]),bd=a=>{let b=O[a.id]?.quotas;return!!b?.length&&b.some(a=>!!a.total&&!(a.total<=0)&&5>=q(a.used,a.total))},be=(0,e.useCallback)(async(a,b)=>{if(a.length&&!aN){aO(!0);try{await Promise.all(a.map(a=>fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})}))),await p(a$,aP)}catch(a){console.error("Error bulk toggling connections:",a)}finally{aO(!1)}}},[aN,a$,aP]),bf="all"===ay?"All providers":I(ay),bg=aX.eligibleConnections>0,bh=bc.length>0,bi=aX.eligibleConnections?aX.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===ay?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===aD?"turned off":"active"===aD?"active":"matching"} accounts found for ${ay}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},bj=function(a){var b;let{start:c,end:d}=(b=a).total?{start:(b.page-1)*b.pageSize+1,end:Math.min(b.page*b.pageSize,b.total)}:{start:0,end:0};return`Showing ${c}-${d} of ${a.total}`}(aV),bk=!j.includes(aR);return ag||bg?ag||bh?(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-center",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>aM(a=>!a),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2","aria-haspopup":"menu","aria-expanded":aL,title:"Filter quota providers",children:[(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===ay?(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,d.jsx)(g.A,{src:`/providers/${ay}.png`,alt:ay,size:18,className:"size-[18px] rounded object-contain",fallbackText:ay.slice(0,2).toUpperCase()}),(0,d.jsx)("span",{className:"truncate hidden lg:inline",children:bf})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),aL&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>aM(!1)}),(0,d.jsxs)("div",{className:"absolute left-0 z-40 mt-2 w-64 overflow-hidden rounded-xl border border-border bg-surface p-1.5 shadow-warm sm:w-72",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>{"all"!==ay&&aQ(1),aA("all"),aM(!1)},className:`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition-colors ${"all"===ay?"bg-surface-2 text-text-main":"text-text-main hover:bg-surface-2"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:"apps"}),(0,d.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===ay&&(0,d.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]}),(0,d.jsx)("div",{className:"my-1 h-px bg-border"}),(0,d.jsx)("div",{className:"max-h-72 overflow-y-auto pr-1",children:aB.map(a=>(0,d.jsxs)("button",{type:"button",onClick:()=>{ay!==a&&aQ(1),aA(a),aM(!1)},className:`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition-colors ${ay===a?"bg-surface-2 text-text-main":"text-text-main hover:bg-surface-2"}`,children:[(0,d.jsx)(g.A,{src:`/providers/${a}.png`,alt:a,size:24,className:"size-6 rounded-md object-contain",fallbackText:a.slice(0,2).toUpperCase()}),(0,d.jsx)("span",{className:"font-medium",children:I(a)}),ay===a&&(0,d.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},a))})]})]})]}),(0,d.jsx)(h.A,{value:aD,onChange:a=>{aD!==a&&aQ(1),aE(a)},options:k.map(a=>({value:a.value,label:a.label})),buttonClassName:"h-8 rounded-lg px-2 font-display text-xs font-medium",menuClassName:"w-48",align:"right"}),"codex"===ay&&(0,d.jsx)(h.A,{value:aF,onChange:aG,options:l.map(a=>({value:a.value,label:a.label})),buttonClassName:"h-8 rounded-lg px-2 font-display text-xs font-medium",menuClassName:"w-48",align:"right"}),(0,d.jsxs)("button",{type:"button",onClick:()=>aK(a=>!a),"aria-pressed":aJ,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 font-display text-xs font-medium transition-colors ${aJ?"border-text-subtle bg-surface-2 text-text-main":"border-border text-text-main hover:bg-surface-2"}`,title:"Sort accounts by earliest quota reset time",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,d.jsxs)("button",{type:"button",onClick:()=>{be(bc.filter(a=>(a.isActive??!0)&&bd(a)).map(a=>a.id),!1)},disabled:aN,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"block"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,d.jsxs)("button",{type:"button",onClick:()=>{be(bc.filter(a=>!(a.isActive??!0)&&!bd(a)).map(a=>a.id),!0)},disabled:aN,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"check_circle"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),(0,d.jsxs)("button",{onClick:()=>V(a=>!a),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2",title:U?"Disable auto-refresh":"Enable auto-refresh",children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${U?"text-text-main":"text-text-subtle"}`,children:U?"toggle_on":"toggle_off"}),(0,d.jsx)("span",{className:"hidden text-text-main sm:inline",children:"Auto-refresh"}),U&&(0,d.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",ae,"s)"]})]}),(0,d.jsx)("button",{type:"button",onClick:()=>a7(!0),disabled:ac,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",title:"Refresh all",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[14px] ${ac?"animate-spin":""}`,children:"refresh"})})]})}),aJ&&(0,d.jsx)("div",{className:"rounded-xl border border-border bg-surface-2/50 px-3 py-2 text-xs text-text-muted",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:bc.map(c=>{let e,f,h,i=O[c.id],j=Q[c.id],k=S[c.id],l=!1===c.isActive,n="codex"===c.provider,o="claude"===c.provider?i?.raw?.resetCredits:null,p=n?"Codex reset credit":"Claude limit reset",q=Number.isFinite(f="number"==typeof(e=i?.raw?.resetCredits?.availableCount)?e:Number(e))?Math.max(0,f):0,x=am===c.id,y=ai===c.id||ak===c.id||x,A=i?.quotas||[],B=function(a,b=[],c={}){if(!Array.isArray(b)||0===b.length)return[];let d=s(a,c,b);return 0===d.size?b:b.filter(a=>!d.has(r(a)))}(c.provider,A,aH),G=function(a,b=[],c={}){if(!Array.isArray(b)||0===b.length)return[];let d=s(a,c,b);return 0===d.size?[]:b.filter(a=>d.has(r(a)))}(c.provider,A,aH);return(0,d.jsxs)(w.default,{padding:"none",className:`min-w-0 ${l?"opacity-60":""}`,children:[(0,d.jsx)("div",{className:"px-3 py-2 border-b border-border",children:(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,d.jsx)(g.A,{src:`/providers/${c.provider}.png`,alt:c.provider,size:32,className:"object-contain",fallbackText:c.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-sm font-semibold text-text-primary truncate",children:I(c.provider)}),m(c)?(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:m(c)}):null,E(c)?(0,d.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:E(c)}):null,"kiro"===c.provider&&(0,d.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,d.jsx)("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-[10px] font-medium text-text-muted",children:(h=c.providerSpecificData?.authMethod)&&C[h]?C[h]:"api_key"===c.authType?"API Key":"OAuth"}),F(c)&&(0,d.jsx)("span",{className:"rounded-full bg-surface-2 px-2 py-0.5 text-[10px] font-medium text-text-muted",children:F(c)}),(0,d.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-medium ${l?"bg-surface-2 text-text-muted":"active"===c.testStatus||"success"===c.testStatus?"bg-success/10 text-success":"error"===c.testStatus||"expired"===c.testStatus||"unavailable"===c.testStatus?"bg-danger/10 text-danger":"bg-surface-2 text-text-muted"}`,children:l?"disabled":c.testStatus||"unknown"}),c.providerSpecificData?.profileArn&&(0,d.jsxs)("button",{type:"button",onClick:()=>b(c.providerSpecificData.profileArn,c.id),title:c.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a===c.id?"check":"content_copy"}),(0,d.jsx)("code",{className:"truncate font-mono",children:c.providerSpecificData.profileArn})]})]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(n||o)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(v.default,{text:q>0?o?`Use your reset now (${q} left, use by ${J(o.expiresAt)}) \xb7 refills ${H(o.clears)}`:`Use one ${p}. Available: ${q}`:`No ${p}s available`,children:(0,d.jsxs)("button",{type:"button",onClick:()=>ap({connection:c,resetCreditCount:q}),disabled:q<=0||j||y,"aria-label":q>0?`Use one ${p}. ${q} available.`:`No ${p}s available`,className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 font-display text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${q>0?"border-text-subtle bg-surface-2 text-text-main hover:bg-surface-3":"border-border bg-surface text-text-muted"}`,children:[(0,d.jsx)("span",{className:`material-symbols-outlined text-[15px] ${x?"animate-spin":""}`,children:x?"progress_activity":"restart_alt"}),(0,d.jsx)("span",{children:q})]})}),(0,d.jsx)(v.default,{text:n?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,d.jsx)("button",{type:"button",onClick:()=>n?a3(c):a2(c,o),disabled:j||y,"aria-label":n?"View Codex reset credit expiry":"View Claude Code reset expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface text-text-muted transition-colors hover:border-text-subtle hover:bg-surface-2 hover:text-text-main disabled:cursor-not-allowed disabled:opacity-50",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),D[c.provider]&&"oauth"===c.authType&&(()=>{let a=W[c.provider]||{},b=a.connections?.[c.id]===!0,e=a.schedules?.[c.id],f=e?.enabled===!0,g=[];if(b&&g.push("On reset"),f){let a=(0,z.JW)(e).join(" / ");g.push(`Scheduled (${a||"active"})`)}let h=g.length>0?`Auto-ping active: ${g.join(" + ")}. Click to configure.`:"codex"===c.provider?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure.";return(0,d.jsx)(v.default,{text:h,children:(0,d.jsx)("button",{type:"button",onClick:()=>Z(c),"aria-label":"Configure auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg border transition-colors hover:border-text-subtle hover:bg-surface-2 ${b||f?"border-text-subtle bg-surface-2 text-text-main":"border-border bg-surface text-text-muted"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})})})(),(0,d.jsx)(v.default,{text:"Refresh quota",children:(0,d.jsx)("button",{type:"button",onClick:()=>a0(c.id,c.provider),disabled:j||y,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:opacity-50",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${j?"animate-spin":""}`,children:"refresh"})})}),(0,d.jsx)(v.default,{text:"Edit connection",children:(0,d.jsx)("button",{type:"button",onClick:()=>{av(c),at(!0)},disabled:y,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface text-text-muted transition-colors hover:border-text-subtle hover:bg-surface-2 hover:text-text-main disabled:opacity-50",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,d.jsx)(v.default,{text:"Delete connection",children:(0,d.jsx)("button",{type:"button",onClick:()=>a4(c.id),disabled:y,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,d.jsx)("span",{className:`material-symbols-outlined text-[18px] ${ai===c.id?"animate-pulse":""}`,children:"delete"})})}),(0,d.jsx)("div",{className:"inline-flex items-center pl-0.5",title:c.isActive??!0?"Disable connection":"Enable connection",children:(0,d.jsx)(u.default,{size:"sm",checked:c.isActive??!0,disabled:y,onChange:a=>a5(c.id,a)})})]})]})}),(0,d.jsxs)("div",{className:"px-2 py-1.5",children:[j?(0,d.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):k?(0,d.jsxs)("div",{className:"text-center py-5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,d.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:k})]}):i?.message?(0,d.jsx)("div",{className:"text-center py-5",children:(0,d.jsx)("p",{className:"text-xs text-text-muted",children:i.message})}):(0,d.jsx)(t,{quotas:B,compact:!0,sortMode:"default",showSortLabel:"codex"===c.provider&&"default"!==aF,onHideQuota:a=>ba(c.provider,a)}),i?.message&&!k&&!j&&(0,d.jsx)("p",{className:"mt-2 px-1 text-[10px] leading-relaxed text-text-muted",children:i.message}),G.length>0&&(0,d.jsxs)("div",{className:"mt-2 flex min-w-0 items-center gap-1 border-t border-border pt-2 text-[10px] text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px]",children:"visibility_off"}),(0,d.jsx)("span",{className:"shrink-0",children:"Hidden:"}),(0,d.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap pb-2",children:G.map(a=>(0,d.jsx)("button",{type:"button",onClick:()=>bb(c.provider,a),className:"shrink-0 rounded-md border border-border bg-surface px-1.5 py-0.5 font-display transition-colors hover:bg-surface-2 hover:text-text-main",title:"Show this quota row",children:a.name},r(a)))})]})]})]},c.id)})}),(0,d.jsx)("div",{className:"rounded-xl border border-border bg-surface-2/50 px-3 py-2",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-wider text-text-subtle",children:bj}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)(h.A,{value:bk?"custom":String(aR),onChange:a=>{if("custom"===a)return;let b=Number.parseInt(String(a),10);Number.isFinite(b)&&(aQ(1),aS(b),aU(String(b)))},options:[...j.map(a=>({value:String(a),label:`${a} / page`})),{value:"custom",label:"Custom"}],buttonClassName:"h-8 rounded-lg px-2 font-display text-xs font-medium",menuClassName:"w-40",align:"right"}),(0,d.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:aT,onChange:a=>aU(a.target.value),onBlur:()=>{let a=Number.parseInt(aT,10);if(!Number.isFinite(a))return void aU(String(aR));let b=Math.min(500,Math.max(1,a));aQ(1),aS(b),aU(String(b))},onKeyDown:a=>{if("Enter"!==a.key)return;let b=Number.parseInt(aT,10);if(!Number.isFinite(b))return void aU(String(aR));let c=Math.min(500,Math.max(1,b));aQ(1),aS(c),aU(String(c))},className:"h-8 w-20 rounded-lg border border-border bg-surface px-2 font-display text-xs font-medium text-text-main outline-none transition-colors hover:border-text-subtle hover:bg-surface-2","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,d.jsxs)("span",{className:"font-mono text-[10px] uppercase tracking-wider text-text-subtle",children:["Page ",aV.page," / ",aV.totalPages]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)("button",{type:"button",onClick:()=>aQ(1),disabled:aV.page<=1||ag||ac,className:"flex h-8 items-center rounded-lg border border-border bg-surface px-3 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40",children:"First Page"}),(0,d.jsx)("button",{type:"button",onClick:()=>aQ(a=>Math.max(1,a-1)),disabled:aV.page<=1||ag||ac,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface font-display text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Previous accounts page",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,d.jsx)("button",{type:"button",onClick:()=>aQ(a=>Math.min(aV.totalPages,a+1)),disabled:aV.page>=aV.totalPages||ag||ac,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-border bg-surface font-display text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40","aria-label":"Next accounts page",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,d.jsx)("button",{type:"button",onClick:()=>aQ(aV.totalPages),disabled:aV.page>=aV.totalPages||ag||ac,className:"flex h-8 items-center rounded-lg border border-border bg-surface px-3 font-display text-xs font-medium text-text-main transition-colors hover:border-text-subtle hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-40",children:"Last Page"})]})]})}),(0,d.jsx)(x.uo,{isOpen:!!ao,onClose:()=>{am||ap(null)},onConfirm:async()=>{let a=ao?.connection;a&&(await a1(a.id,a.provider),ap(null))},title:ao?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ao?.connection?.provider==="claude"?`Refills your ${H(O[ao.connection.id]?.raw?.resetCredits?.clears)} now for ${m(ao.connection)||"this account"} \xb7 your weekly reset day stays ${J(O[ao.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ao.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${m(ao?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ao?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!am}),aq&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:aq.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,d.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:m(aq.connection)||(aq.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,d.jsx)("button",{type:"button",onClick:()=>ar(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,d.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:aq.loading?(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):aq.error?(0,d.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:aq.error}):aq.data?.kind==="claude"&&aq.data.grants?.length?(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,d.jsxs)("span",{children:[aq.data.availableCount??0," reset",1===aq.data.availableCount?"":"s"," left"]}),(0,d.jsxs)("span",{children:["Weekly reset day: ",J(aq.data.weeklyResetsAt)]})]}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,d.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,d.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,d.jsx)("tbody",{children:(aq.data.grants||[]).map(a=>(0,d.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,d.jsxs)("td",{className:"px-3 py-2",children:[(0,d.jsx)("div",{className:"text-text-primary",children:a.label||a.id}),(0,d.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.resetsLeft<=0?"used":a.paused?"paused":a.endsAt&&new Date(a.endsAt).getTime()<=Date.now()?"expired":a.usableNow?"usable now":a.startsAt&&new Date(a.startsAt).getTime()>Date.now()?"not started":a.useRequiresLimit?"at limit only":"unavailable"})]}),(0,d.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text-primary",children:[a.resetsLeft," / ",a.resetsTotal]}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-muted",children:H(a.clears)}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-primary",children:J(a.endsAt)}),(0,d.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text-primary",children:K(a.endsAt)})]},a.id))})]})})]}):aq.data?.credits?.length?(0,d.jsxs)("div",{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,d.jsxs)("span",{children:[aq.data.credits.length," reset credit",1===aq.data.credits.length?"":"s"]}),(0,d.jsxs)("span",{children:[aq.data.availableCount??0," available"]})]}),(0,d.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,d.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,d.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,d.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,d.jsx)("tbody",{children:aq.data.credits.map((a,b)=>(0,d.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,d.jsx)("td",{className:"px-3 py-2",children:(0,d.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.status||"unknown"})}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-muted",children:J(a.grantedAt)}),(0,d.jsx)("td",{className:"px-3 py-2 text-text-primary",children:J(a.expiresAt)}),(0,d.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:K(a.expiresAt)})]},`${a.status}-${a.expiresAt||b}`))})]})})]}):(0,d.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:aq.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,d.jsx)(x.wI,{isOpen:as,connection:au,proxyPools:aw,onSave:a6,onClose:()=>{at(!1),av(null)}}),Y&&(0,d.jsx)(y.A,{isOpen:!!Y,onClose:()=>Z(null),connection:Y,reactive:W[Y.provider]?.connections?.[Y.id]===!0,schedule:W[Y.provider]?.schedules?.[Y.id]||null,onSave:a=>a8(Y.id,Y.provider,a)})]}):(0,d.jsx)(w.default,{padding:"lg",children:(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:bi.icon}),(0,d.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:bi.title}),(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:bi.description})]})}):(0,d.jsx)(w.default,{padding:"lg",children:(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,d.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8236:(a,b,c)=>{Promise.resolve().then(c.bind(c,57471)),Promise.resolve().then(c.bind(c,92082))},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},16736:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(5735),e=c(91986),f=c(92082),g=c(57471);function h(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(f.CardSkeleton,{}),children:(0,d.jsx)(g.default,{})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},54589:(a,b,c)=>{"use strict";function d(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}c.d(b,{JW:()=>i,Vm:()=>d,fB:()=>f,gy:()=>e,nz:()=>g});let e={anchor:"09:30",timezone:d(),windowHours:5,slotsPerDay:3};function f(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function g(a){return Math.max(1,Math.floor(24/a))}function h(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function i(a){let b=function(a){if(!a||!0!==a.enabled)return null;let b=f(a.anchor)||f(e.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,d=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?e.timezone:a.timezone,i=h(a.windowHours,e.windowHours,.5,24),j=Math.round(h(a.slotsPerDay,e.slotsPerDay,1,g(i)));return{enabled:!0,anchor:c,timezone:d,windowHours:i,slotsPerDay:j}}(a);if(!b)return[];let{hour:c,minute:d}=f(b.anchor),i=60*c+d;return Array.from({length:b.slotsPerDay},(a,c)=>{let d=Math.round(i+c*b.windowHours*60)%1440;return`${String(Math.floor(d/60)).padStart(2,"0")}:${String(d%60).padStart(2,"0")}`})}},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},56020:(a,b,c)=>{"use strict";c.d(b,{A:()=>l});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(71404),j=c(54589);let k=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function l({isOpen:a,onClose:b,onSave:c,connection:f,reactive:g=!1,schedule:m=null}){let[n,o]=(0,e.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===g?"reset":"off",anchor:m?.anchor||j.gy.anchor,timezone:(0,j.Vm)(),windowHours:String(m?.windowHours??j.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??j.gy.slotsPerDay)})),p=Number(n.windowHours),q=Number(n.slotsPerDay),r=!!(0,j.fB)(n.anchor),s=Number.isFinite(p)&&p>=.5&&p<=24,t=s?(0,j.nz)(p):24,u=Number.isInteger(q)&&q>=1&&q<=t,v=r&&s&&u,w="schedule"!==n.mode||v,x=v?(0,j.JW)({enabled:!0,...n,windowHours:p,slotsPerDay:q}):[],y=x.length&&s?(()=>{let{hour:a,minute:b}=(0,j.fB)(n.anchor),c=Math.round(60*a+b+q*p*60)%1440;return`${String(Math.floor(c/60)).padStart(2,"0")}:${String(c%60).padStart(2,"0")}`})():"",z=a=>o(b=>({...b,...a}));return(0,d.jsx)(h.aF,{isOpen:a,onClose:b,title:"Auto-ping settings",size:"lg",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:b,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:()=>{w&&(c({reactive:"reset"===n.mode,schedule:"schedule"===n.mode?{enabled:!0,anchor:n.anchor,timezone:n.timezone,windowHours:p,slotsPerDay:q}:{enabled:!1}}),b())},disabled:!w,children:"Save"})]}),children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",f?.name?` for ${f.name}`:""," - pick one mode."]}),(0,d.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:k.map(a=>{let b=n.mode===a.value;return(0,d.jsxs)("button",{type:"button",onClick:()=>z({mode:a.value}),className:(0,i.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",b?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:a.icon}),(0,d.jsx)("span",{children:a.label})]},a.value)})}),"reset"===n.mode&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===n.mode&&(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,d.jsx)(h.pd,{label:"Anchor time",type:"time",value:n.anchor,onChange:a=>z({anchor:a.target.value}),error:r?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:n.windowHours,onChange:a=>z({windowHours:a.target.value}),error:s?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,d.jsx)(h.pd,{label:"Pings per day",type:"number",min:"1",max:String(t),step:"1",value:n.slotsPerDay,onChange:a=>z({slotsPerDay:a.target.value}),error:u?"":`1 – ${t}`,hint:u?`Max ${t}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),x.length>0&&(0,d.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,d.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",n.timezone,")"]}),(0,d.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:x.join(" → ")}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",x[0]," – ",y,", then pauses until ",x[0]," next day."]})]})]})]})})}l.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSave:g().func.isRequired,connection:g().object,reactive:g().bool,schedule:g().object}},57075:a=>{"use strict";a.exports=require("node:stream")},57471:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js","default")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},71788:(a,b,c)=>{Promise.resolve().then(c.bind(c,3493)),Promise.resolve().then(c.bind(c,74812))},72271:a=>{"use strict";a.exports=require("@aws-sdk/credential-providers")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},73799:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>w,handler:()=>y,routeModule:()=>x});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u={children:["",{children:["(dashboard)",{children:["dashboard",{children:["quota",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,16736))),"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/dashboard/quota/page.js"]}]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/home/keyzakyy/Projects/keyrouter/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/keyzakyy/Projects/keyrouter/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,v=(0,e.H)({tree:u,page:"/(dashboard)/dashboard/quota/page",pathname:"/dashboard/quota",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),w=v.__next_app__,x=v.routeModule,y=v.handler},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1260,2430,7678,2760,9100,8499,6070,869,915,6457,4123,2172,6777,412,5626],()=>b(b.s=73799));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../node_modules/@aws-sdk/core/client.js","../../../../../../node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js","../../../../../../node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js","../../../../../../node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js","../../../../../../node_modules/@aws-sdk/core/httpAuthSchemes.js","../../../../../../node_modules/@aws-sdk/core/package.json","../../../../../../node_modules/@aws-sdk/core/protocols.js","../../../../../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-v413cIIq.js","../../../../../../node_modules/@aws-sdk/credential-provider-cognito-identity/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-env/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-http/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-ini/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-login/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-node/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-process/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js","../../../../../../node_modules/@aws-sdk/credential-provider-sso/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-web-identity/package.json","../../../../../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts-C4jOcYxJ.js","../../../../../../node_modules/@aws-sdk/credential-providers/package.json","../../../../../../node_modules/@aws-sdk/nested-clients/cognito-identity.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/package.json","../../../../../../node_modules/@aws-sdk/nested-clients/signin.js","../../../../../../node_modules/@aws-sdk/nested-clients/sso-oidc.js","../../../../../../node_modules/@aws-sdk/nested-clients/sso.js","../../../../../../node_modules/@aws-sdk/nested-clients/sts.js","../../../../../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/signature-v4-multi-region/package.json","../../../../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/token-providers/package.json","../../../../../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/xml-builder/package.json","../../../../../../node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js","../../../../../../node_modules/@aws/lambda-invoke-store/package.json","../../../../../../node_modules/@smithy/core/cbor.js","../../../../../../node_modules/@smithy/core/checksum.js","../../../../../../node_modules/@smithy/core/client.js","../../../../../../node_modules/@smithy/core/config.js","../../../../../../node_modules/@smithy/core/dist-cjs/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/client/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/config/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/retry/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/schema/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/serde/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/transport/index.js","../../../../../../node_modules/@smithy/core/endpoints.js","../../../../../../node_modules/@smithy/core/event-streams.js","../../../../../../node_modules/@smithy/core/package.json","../../../../../../node_modules/@smithy/core/protocols.js","../../../../../../node_modules/@smithy/core/retry.js","../../../../../../node_modules/@smithy/core/schema.js","../../../../../../node_modules/@smithy/core/serde.js","../../../../../../node_modules/@smithy/core/transport.js","../../../../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js","../../../../../../node_modules/@smithy/credential-provider-imds/package.json","../../../../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js","../../../../../../node_modules/@smithy/node-http-handler/package.json","../../../../../../node_modules/@smithy/signature-v4/dist-cjs/index.js","../../../../../../node_modules/@smithy/signature-v4/package.json","../../../../../../node_modules/@smithy/types/dist-cjs/index.js","../../../../../../node_modules/@smithy/types/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/bowser/es5.js","../../../../../../node_modules/bowser/package.json","../../../../../../node_modules/bundle-name/index.js","../../../../../../node_modules/bundle-name/package.json","../../../../../../node_modules/default-browser-id/index.js","../../../../../../node_modules/default-browser-id/package.json","../../../../../../node_modules/default-browser/index.js","../../../../../../node_modules/default-browser/package.json","../../../../../../node_modules/default-browser/windows.js","../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/is-docker/index.js","../../../../../../node_modules/is-docker/package.json","../../../../../../node_modules/is-in-ssh/index.js","../../../../../../node_modules/is-in-ssh/package.json","../../../../../../node_modules/is-inside-container/index.js","../../../../../../node_modules/is-inside-container/package.json","../../../../../../node_modules/is-wsl/index.js","../../../../../../node_modules/is-wsl/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/route-kind.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/open/index.js","../../../../../../node_modules/open/package.json","../../../../../../node_modules/open/xdg-open","../../../../../../node_modules/powershell-utils/index.js","../../../../../../node_modules/powershell-utils/package.json","../../../../../../node_modules/run-applescript/index.js","../../../../../../node_modules/run-applescript/package.json","../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../node_modules/sql.js/package.json","../../../../../../node_modules/wsl-utils/index.js","../../../../../../node_modules/wsl-utils/package.json","../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1051.js","../../../../chunks/1133.js","../../../../chunks/1220.js","../../../../chunks/1260.js","../../../../chunks/1306.js","../../../../chunks/1350.js","../../../../chunks/1356.js","../../../../chunks/1455.js","../../../../chunks/1679.js","../../../../chunks/1757.js","../../../../chunks/1813.js","../../../../chunks/1998.js","../../../../chunks/2132.js","../../../../chunks/2172.js","../../../../chunks/2220.js","../../../../chunks/2365.js","../../../../chunks/238.js","../../../../chunks/2380.js","../../../../chunks/2391.js","../../../../chunks/24.js","../../../../chunks/2409.js","../../../../chunks/241.js","../../../../chunks/2430.js","../../../../chunks/2578.js","../../../../chunks/2750.js","../../../../chunks/2760.js","../../../../chunks/2822.js","../../../../chunks/2970.js","../../../../chunks/3016.js","../../../../chunks/3225.js","../../../../chunks/3449.js","../../../../chunks/3535.js","../../../../chunks/3546.js","../../../../chunks/3593.js","../../../../chunks/3697.js","../../../../chunks/3726.js","../../../../chunks/3943.js","../../../../chunks/3966.js","../../../../chunks/4055.js","../../../../chunks/412.js","../../../../chunks/4123.js","../../../../chunks/4152.js","../../../../chunks/4190.js","../../../../chunks/4279.js","../../../../chunks/4293.js","../../../../chunks/436.js","../../../../chunks/4480.js","../../../../chunks/4730.js","../../../../chunks/4739.js","../../../../chunks/4756.js","../../../../chunks/4780.js","../../../../chunks/4866.js","../../../../chunks/4882.js","../../../../chunks/507.js","../../../../chunks/5081.js","../../../../chunks/5215.js","../../../../chunks/5217.js","../../../../chunks/5258.js","../../../../chunks/5299.js","../../../../chunks/5308.js","../../../../chunks/5330.js","../../../../chunks/5573.js","../../../../chunks/5615.js","../../../../chunks/595.js","../../../../chunks/6070.js","../../../../chunks/615.js","../../../../chunks/6457.js","../../../../chunks/669.js","../../../../chunks/6690.js","../../../../chunks/6708.js","../../../../chunks/6724.js","../../../../chunks/6763.js","../../../../chunks/6777.js","../../../../chunks/6844.js","../../../../chunks/6877.js","../../../../chunks/6921.js","../../../../chunks/698.js","../../../../chunks/7066.js","../../../../chunks/7121.js","../../../../chunks/7187.js","../../../../chunks/7247.js","../../../../chunks/7373.js","../../../../chunks/7525.js","../../../../chunks/7552.js","../../../../chunks/7678.js","../../../../chunks/7716.js","../../../../chunks/7774.js","../../../../chunks/778.js","../../../../chunks/7801.js","../../../../chunks/7828.js","../../../../chunks/7965.js","../../../../chunks/7995.js","../../../../chunks/8128.js","../../../../chunks/8251.js","../../../../chunks/8271.js","../../../../chunks/8292.js","../../../../chunks/8332.js","../../../../chunks/8402.js","../../../../chunks/8416.js","../../../../chunks/8499.js","../../../../chunks/8520.js","../../../../chunks/8623.js","../../../../chunks/8682.js","../../../../chunks/869.js","../../../../chunks/8895.js","../../../../chunks/8920.js","../../../../chunks/9055.js","../../../../chunks/9100.js","../../../../chunks/9128.js","../../../../chunks/915.js","../../../../chunks/9489.js","../../../../chunks/9604.js","../../../../chunks/9609.js","../../../../chunks/9689.js","../../../../chunks/9696.js","../../../../chunks/9745.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../node_modules/@aws-sdk/core/client.js","../../../../../../node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js","../../../../../../node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js","../../../../../../node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js","../../../../../../node_modules/@aws-sdk/core/httpAuthSchemes.js","../../../../../../node_modules/@aws-sdk/core/package.json","../../../../../../node_modules/@aws-sdk/core/protocols.js","../../../../../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-v413cIIq.js","../../../../../../node_modules/@aws-sdk/credential-provider-cognito-identity/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-env/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-http/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-ini/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-login/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-node/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-process/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js","../../../../../../node_modules/@aws-sdk/credential-provider-sso/package.json","../../../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-provider-web-identity/package.json","../../../../../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts-C4jOcYxJ.js","../../../../../../node_modules/@aws-sdk/credential-providers/package.json","../../../../../../node_modules/@aws-sdk/nested-clients/cognito-identity.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js","../../../../../../node_modules/@aws-sdk/nested-clients/package.json","../../../../../../node_modules/@aws-sdk/nested-clients/signin.js","../../../../../../node_modules/@aws-sdk/nested-clients/sso-oidc.js","../../../../../../node_modules/@aws-sdk/nested-clients/sso.js","../../../../../../node_modules/@aws-sdk/nested-clients/sts.js","../../../../../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/signature-v4-multi-region/package.json","../../../../../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/token-providers/package.json","../../../../../../node_modules/@aws-sdk/xml-builder/dist-cjs/index.js","../../../../../../node_modules/@aws-sdk/xml-builder/package.json","../../../../../../node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js","../../../../../../node_modules/@aws/lambda-invoke-store/package.json","../../../../../../node_modules/@smithy/core/cbor.js","../../../../../../node_modules/@smithy/core/checksum.js","../../../../../../node_modules/@smithy/core/client.js","../../../../../../node_modules/@smithy/core/config.js","../../../../../../node_modules/@smithy/core/dist-cjs/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/client/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/config/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/retry/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/schema/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/serde/index.js","../../../../../../node_modules/@smithy/core/dist-cjs/submodules/transport/index.js","../../../../../../node_modules/@smithy/core/endpoints.js","../../../../../../node_modules/@smithy/core/event-streams.js","../../../../../../node_modules/@smithy/core/package.json","../../../../../../node_modules/@smithy/core/protocols.js","../../../../../../node_modules/@smithy/core/retry.js","../../../../../../node_modules/@smithy/core/schema.js","../../../../../../node_modules/@smithy/core/serde.js","../../../../../../node_modules/@smithy/core/transport.js","../../../../../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js","../../../../../../node_modules/@smithy/credential-provider-imds/package.json","../../../../../../node_modules/@smithy/node-http-handler/dist-cjs/index.js","../../../../../../node_modules/@smithy/node-http-handler/package.json","../../../../../../node_modules/@smithy/signature-v4/dist-cjs/index.js","../../../../../../node_modules/@smithy/signature-v4/package.json","../../../../../../node_modules/@smithy/types/dist-cjs/index.js","../../../../../../node_modules/@smithy/types/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/bowser/es5.js","../../../../../../node_modules/bowser/package.json","../../../../../../node_modules/bundle-name/index.js","../../../../../../node_modules/bundle-name/package.json","../../../../../../node_modules/default-browser-id/index.js","../../../../../../node_modules/default-browser-id/package.json","../../../../../../node_modules/default-browser/index.js","../../../../../../node_modules/default-browser/package.json","../../../../../../node_modules/default-browser/windows.js","../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/is-docker/index.js","../../../../../../node_modules/is-docker/package.json","../../../../../../node_modules/is-in-ssh/index.js","../../../../../../node_modules/is-in-ssh/package.json","../../../../../../node_modules/is-inside-container/index.js","../../../../../../node_modules/is-inside-container/package.json","../../../../../../node_modules/is-wsl/index.js","../../../../../../node_modules/is-wsl/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/segment-config/ensure-static.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/app-dir-module.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/route-kind.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/open/index.js","../../../../../../node_modules/open/package.json","../../../../../../node_modules/open/xdg-open","../../../../../../node_modules/powershell-utils/index.js","../../../../../../node_modules/powershell-utils/package.json","../../../../../../node_modules/run-applescript/index.js","../../../../../../node_modules/run-applescript/package.json","../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../node_modules/sql.js/package.json","../../../../../../node_modules/wsl-utils/index.js","../../../../../../node_modules/wsl-utils/package.json","../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1051.js","../../../../chunks/1133.js","../../../../chunks/1220.js","../../../../chunks/1260.js","../../../../chunks/1306.js","../../../../chunks/1350.js","../../../../chunks/1356.js","../../../../chunks/1455.js","../../../../chunks/1679.js","../../../../chunks/1757.js","../../../../chunks/1813.js","../../../../chunks/1998.js","../../../../chunks/2132.js","../../../../chunks/2172.js","../../../../chunks/2220.js","../../../../chunks/2365.js","../../../../chunks/238.js","../../../../chunks/2380.js","../../../../chunks/2391.js","../../../../chunks/24.js","../../../../chunks/2409.js","../../../../chunks/241.js","../../../../chunks/2430.js","../../../../chunks/2578.js","../../../../chunks/2750.js","../../../../chunks/2760.js","../../../../chunks/2822.js","../../../../chunks/2970.js","../../../../chunks/3016.js","../../../../chunks/3225.js","../../../../chunks/3449.js","../../../../chunks/3535.js","../../../../chunks/3546.js","../../../../chunks/3593.js","../../../../chunks/3697.js","../../../../chunks/3726.js","../../../../chunks/3943.js","../../../../chunks/3966.js","../../../../chunks/4055.js","../../../../chunks/412.js","../../../../chunks/4123.js","../../../../chunks/4152.js","../../../../chunks/4190.js","../../../../chunks/4279.js","../../../../chunks/4293.js","../../../../chunks/436.js","../../../../chunks/4480.js","../../../../chunks/4730.js","../../../../chunks/4739.js","../../../../chunks/4780.js","../../../../chunks/4866.js","../../../../chunks/4882.js","../../../../chunks/507.js","../../../../chunks/5081.js","../../../../chunks/5215.js","../../../../chunks/5217.js","../../../../chunks/5258.js","../../../../chunks/5299.js","../../../../chunks/5308.js","../../../../chunks/5330.js","../../../../chunks/5573.js","../../../../chunks/5615.js","../../../../chunks/5626.js","../../../../chunks/595.js","../../../../chunks/6070.js","../../../../chunks/615.js","../../../../chunks/6457.js","../../../../chunks/669.js","../../../../chunks/6690.js","../../../../chunks/6708.js","../../../../chunks/6724.js","../../../../chunks/6763.js","../../../../chunks/6777.js","../../../../chunks/6844.js","../../../../chunks/6877.js","../../../../chunks/6921.js","../../../../chunks/698.js","../../../../chunks/7066.js","../../../../chunks/7121.js","../../../../chunks/7187.js","../../../../chunks/7247.js","../../../../chunks/7373.js","../../../../chunks/7525.js","../../../../chunks/7552.js","../../../../chunks/7678.js","../../../../chunks/7716.js","../../../../chunks/7774.js","../../../../chunks/778.js","../../../../chunks/7801.js","../../../../chunks/7828.js","../../../../chunks/7965.js","../../../../chunks/7995.js","../../../../chunks/8128.js","../../../../chunks/8251.js","../../../../chunks/8271.js","../../../../chunks/8292.js","../../../../chunks/8332.js","../../../../chunks/8402.js","../../../../chunks/8416.js","../../../../chunks/8499.js","../../../../chunks/8520.js","../../../../chunks/8623.js","../../../../chunks/8682.js","../../../../chunks/869.js","../../../../chunks/8895.js","../../../../chunks/8920.js","../../../../chunks/9055.js","../../../../chunks/9100.js","../../../../chunks/9128.js","../../../../chunks/915.js","../../../../chunks/9489.js","../../../../chunks/9604.js","../../../../chunks/9609.js","../../../../chunks/9689.js","../../../../chunks/9696.js","../../../../chunks/9745.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}