@jheavenknows/bluerouter 5.3.55 → 5.3.56

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 (693) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +12 -12
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +0 -28
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ai-power-index/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js +2 -2
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/audit-proxy/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/model-profiles/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/model-profiles/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/model-profiles/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/local-ai-report/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  93. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  95. package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page.js +1 -1
  96. package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page_client-reference-manifest.js +1 -1
  98. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-topology/page.js +1 -1
  99. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-topology/page.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-topology/page_client-reference-manifest.js +1 -1
  101. package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  102. package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  104. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  105. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  107. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  108. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  110. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  111. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  113. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  114. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  116. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  117. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  119. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  120. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  121. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  122. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  123. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  124. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  125. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  127. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  128. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  129. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  130. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  131. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  132. package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js +1 -18
  133. package/app/.next-cli-build/server/app/api/audit-proxy/ca/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/audit-proxy/route.js +14 -31
  135. package/app/.next-cli-build/server/app/api/audit-proxy/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/auth/view-mode/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/auth/view-mode/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/branding/[asset]/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/branding/[asset]/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/branding/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/branding/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/branding/upload/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/branding/upload/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-model-profiles/cloud-models/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-model-profiles/cloud-models/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-model-profiles/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-model-profiles/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/cluster/config/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/cluster/config/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/cluster/peers/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/cluster/peers/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js +2 -2
  200. package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/cluster/sync/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/cluster/sync/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/cluster/test/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/cluster/test/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +2 -2
  206. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/dashboard/ai-power-index/route.js +2 -2
  210. package/app/.next-cli-build/server/app/api/dashboard/ai-power-index/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js +2 -2
  216. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/dashboard/local-ai-report/route.js +2 -2
  222. package/app/.next-cli-build/server/app/api/dashboard/local-ai-report/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/dashboard/routing-topology/config/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/dashboard/routing-topology/config/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/dashboard/routing-topology/live/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/dashboard/routing-topology/live/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/dashboard/routing-topology/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/dashboard/routing-topology/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js +2 -2
  236. package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/keys/[id]/caveman-test/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/keys/[id]/caveman-test/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/keys/route.js +2 -2
  246. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +2 -2
  253. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/oauth/grok-cli/device-code/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/oauth/grok-cli/device-code/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/oauth/grok-cli/poll/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/oauth/grok-cli/poll/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/move/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/move/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/personal-cloud-providers/shares/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/personal-cloud-providers/shares/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/personal-cloud-providers/visibility/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/personal-cloud-providers/visibility/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pricing/catalog/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pricing/catalog/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/provider-health/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  328. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/provider-nodes/openai-compatible/manage/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/provider-nodes/openai-compatible/manage/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  349. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  357. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  359. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  363. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js +3 -3
  365. package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js +2 -2
  369. package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js +2 -2
  371. package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/resource-monitor/route.js +3 -3
  373. package/app/.next-cli-build/server/app/api/resource-monitor/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  386. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  406. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
  410. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  426. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  452. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  453. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  458. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  459. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  461. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/api/version/restart/route.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  464. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  465. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  467. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  469. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  470. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  471. package/app/.next-cli-build/server/app/callback.html +1 -1
  472. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  473. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  474. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  475. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  476. package/app/.next-cli-build/server/app/dashboard/ai-power-index.html +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/ai-power-index.rsc +7 -7
  478. package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/!KGRhc2hib2FyZCk/dashboard/ai-power-index/__PAGE__.segment.rsc +7 -7
  479. package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_full.segment.rsc +7 -7
  480. package/app/.next-cli-build/server/app/dashboard/ai-power-index.segments/_tree.segment.rsc +2 -2
  481. package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +10 -10
  483. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +10 -10
  484. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +10 -10
  485. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  488. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  489. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  490. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  491. package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.html +1 -1
  492. package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.rsc +8 -8
  493. package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/model-profiles/__PAGE__.segment.rsc +8 -8
  494. package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_full.segment.rsc +8 -8
  495. package/app/.next-cli-build/server/app/dashboard/cli-tools/model-profiles.segments/_tree.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  498. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  499. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  500. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  501. package/app/.next-cli-build/server/app/dashboard/cluster.html +1 -1
  502. package/app/.next-cli-build/server/app/dashboard/cluster.rsc +7 -7
  503. package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster/__PAGE__.segment.rsc +7 -7
  504. package/app/.next-cli-build/server/app/dashboard/cluster.segments/_full.segment.rsc +7 -7
  505. package/app/.next-cli-build/server/app/dashboard/cluster.segments/_tree.segment.rsc +2 -2
  506. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  508. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  509. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  510. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  511. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  513. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  514. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  515. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  516. package/app/.next-cli-build/server/app/dashboard/local-ai-report.html +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/local-ai-report.rsc +7 -7
  518. package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/!KGRhc2hib2FyZCk/dashboard/local-ai-report/__PAGE__.segment.rsc +7 -7
  519. package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/_full.segment.rsc +7 -7
  520. package/app/.next-cli-build/server/app/dashboard/local-ai-report.segments/_tree.segment.rsc +2 -2
  521. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  523. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
  524. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  525. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  526. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  527. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  528. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
  529. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  530. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  531. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  533. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  534. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  535. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  536. package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +7 -7
  538. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +7 -7
  539. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +7 -7
  540. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +7 -7
  543. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +7 -7
  544. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +7 -7
  545. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +2 -2
  546. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  548. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  549. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  550. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  553. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  554. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  555. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  556. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  558. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  559. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  560. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  563. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  564. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  565. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  566. package/app/.next-cli-build/server/app/dashboard/resource-monitor.html +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/resource-monitor.rsc +7 -7
  568. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor/__PAGE__.segment.rsc +7 -7
  569. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_full.segment.rsc +7 -7
  570. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_tree.segment.rsc +2 -2
  571. package/app/.next-cli-build/server/app/dashboard/routing-topology.html +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/routing-topology.rsc +7 -7
  573. package/app/.next-cli-build/server/app/dashboard/routing-topology.segments/!KGRhc2hib2FyZCk/dashboard/routing-topology/__PAGE__.segment.rsc +7 -7
  574. package/app/.next-cli-build/server/app/dashboard/routing-topology.segments/_full.segment.rsc +7 -7
  575. package/app/.next-cli-build/server/app/dashboard/routing-topology.segments/_tree.segment.rsc +2 -2
  576. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +7 -7
  578. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +7 -7
  579. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -7
  580. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  581. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  583. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
  584. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  585. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  586. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  588. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
  589. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  590. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  591. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  593. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
  594. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  595. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  596. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  598. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  599. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  600. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  601. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  602. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  603. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  604. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  605. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  606. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  607. package/app/.next-cli-build/server/app/index.html +1 -1
  608. package/app/.next-cli-build/server/app/index.rsc +6 -6
  609. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  610. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  611. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  612. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  613. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  614. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  615. package/app/.next-cli-build/server/app/landing.html +1 -1
  616. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  617. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  618. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  619. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
  620. package/app/.next-cli-build/server/app/login/page.js +1 -1
  621. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  622. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  623. package/app/.next-cli-build/server/app/login.html +1 -1
  624. package/app/.next-cli-build/server/app/login.rsc +7 -7
  625. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  626. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  627. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  628. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  629. package/app/.next-cli-build/server/app/page.js +1 -1
  630. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  631. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  632. package/app/.next-cli-build/server/app-paths-manifest.json +12 -12
  633. package/app/.next-cli-build/server/chunks/{7250.js → 1002.js} +1 -1
  634. package/app/.next-cli-build/server/chunks/2430.js +3 -3
  635. package/app/.next-cli-build/server/chunks/2507.js +1 -0
  636. package/app/.next-cli-build/server/chunks/2512.js +1 -0
  637. package/app/.next-cli-build/server/chunks/2944.js +1 -0
  638. package/app/.next-cli-build/server/chunks/3609.js +3 -0
  639. package/app/.next-cli-build/server/chunks/3738.js +1 -0
  640. package/app/.next-cli-build/server/chunks/3767.js +18 -0
  641. package/app/.next-cli-build/server/chunks/3958.js +14 -14
  642. package/app/.next-cli-build/server/chunks/{7638.js → 402.js} +8 -8
  643. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  644. package/app/.next-cli-build/server/chunks/4696.js +1 -1
  645. package/app/.next-cli-build/server/chunks/{1350.js → 4746.js} +2 -2
  646. package/app/.next-cli-build/server/chunks/5206.js +1 -0
  647. package/app/.next-cli-build/server/chunks/5424.js +1 -0
  648. package/app/.next-cli-build/server/chunks/5915.js +1 -0
  649. package/app/.next-cli-build/server/chunks/595.js +1 -1
  650. package/app/.next-cli-build/server/chunks/6053.js +1 -1
  651. package/app/.next-cli-build/server/chunks/{1900.js → 6064.js} +1 -1
  652. package/app/.next-cli-build/server/chunks/607.js +9 -0
  653. package/app/.next-cli-build/server/chunks/6328.js +1 -1
  654. package/app/.next-cli-build/server/chunks/6811.js +1 -1
  655. package/app/.next-cli-build/server/chunks/{7700.js → 6936.js} +4 -4
  656. package/app/.next-cli-build/server/chunks/6992.js +1 -1
  657. package/app/.next-cli-build/server/chunks/7639.js +1 -1
  658. package/app/.next-cli-build/server/chunks/7812.js +1 -1
  659. package/app/.next-cli-build/server/chunks/8099.js +1 -0
  660. package/app/.next-cli-build/server/chunks/8255.js +1 -1
  661. package/app/.next-cli-build/server/chunks/8316.js +1 -1
  662. package/app/.next-cli-build/server/chunks/8347.js +1 -0
  663. package/app/.next-cli-build/server/instrumentation.js +1 -1
  664. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  665. package/app/.next-cli-build/server/pages/404.html +1 -1
  666. package/app/.next-cli-build/server/pages/500.html +1 -1
  667. package/app/.next-cli-build/server/prefetch-hints.json +0 -24
  668. package/app/.next-cli-build/static/chunks/{5263-b67e8f4e90def189.js → 5263-880816cfad5dc39b.js} +1 -1
  669. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/audit-proxy/page-6ed8392f835a28e2.js +1 -0
  670. package/app/.next-cli-build/static/css/b14ac663d252f431.css +1 -0
  671. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.3.49-to-5.3.50-5.3.50-20260822-195035 → upgrade-5.3.53-to-5.3.54-5.3.54-20260822-220829}/data.sqlite +0 -0
  672. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite +0 -0
  673. package/app/package.json +1 -1
  674. package/package.json +1 -1
  675. package/app/.next-cli-build/server/app/dashboard/audit-proxy.html +0 -1
  676. package/app/.next-cli-build/server/app/dashboard/audit-proxy.meta +0 -36
  677. package/app/.next-cli-build/server/app/dashboard/audit-proxy.rsc +0 -26
  678. package/app/.next-cli-build/server/app/dashboard/audit-proxy.segments/!KGRhc2hib2FyZCk/dashboard/audit-proxy/__PAGE__.segment.rsc +0 -33
  679. package/app/.next-cli-build/server/app/dashboard/audit-proxy.segments/_full.segment.rsc +0 -26
  680. package/app/.next-cli-build/server/app/dashboard/audit-proxy.segments/_tree.segment.rsc +0 -4
  681. package/app/.next-cli-build/server/chunks/1220.js +0 -3
  682. package/app/.next-cli-build/server/chunks/1876.js +0 -1
  683. package/app/.next-cli-build/server/chunks/2999.js +0 -1
  684. package/app/.next-cli-build/server/chunks/4459.js +0 -9
  685. package/app/.next-cli-build/server/chunks/4755.js +0 -1
  686. package/app/.next-cli-build/server/chunks/5623.js +0 -1
  687. package/app/.next-cli-build/server/chunks/7895.js +0 -1
  688. package/app/.next-cli-build/server/chunks/8141.js +0 -1
  689. package/app/.next-cli-build/server/chunks/9413.js +0 -1
  690. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/audit-proxy/page-1668bdee838e50b6.js +0 -1
  691. package/app/.next-cli-build/static/css/1a3f62f10f5e4a32.css +0 -1
  692. /package/app/.next-cli-build/static/{dLYAsA1TrvO8gjZu0jVds → mhAZYh2CjtLe7IjwW4JJm}/_buildManifest.js +0 -0
  693. /package/app/.next-cli-build/static/{dLYAsA1TrvO8gjZu0jVds → mhAZYh2CjtLe7IjwW4JJm}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";exports.id=6053,exports.ids=[4755,6053],exports.modules={19225:(a,b,c)=>{a.exports=c(44870)},25060:(a,b,c)=>{c.d(b,{Kj:()=>aX});var d=c(34589),e=c(57975),f=c(77598),g=c(77030),h=c(41692),i=c(78474),j=class extends Error{constructor(a){super(a),this.name="InvalidAsn1Error"}},k=class{size;currentLength=0;currentOffset=0;buffer;constructor(a){if(!Buffer.isBuffer(a))throw TypeError("data must be a Buffer");this.buffer=a,this.size=a.length}get length(){return this.currentLength}get offset(){return this.currentOffset}set offset(a){this.currentOffset=a}get remain(){return this.size-this.currentOffset}get remainingBuffer(){return this.buffer.subarray(this.currentOffset)}setBufferSize(a){this.size=a}readByte(a=!1){if(this.size-this.currentOffset<1)return null;let b=this.buffer.readUInt8(this.currentOffset);return a||(this.currentOffset+=1),b}peek(){return this.readByte(!0)}readLength(a){let b=a??this.currentOffset;if(b>=this.size)return null;let c=this.buffer.readUInt8(b);if(b+=1,(128&c)==128){let a=127&c;if(0===a)throw new j("Indefinite length not supported");if(a>4)throw new j("Encoding too long");if(this.size-b<a)return null;this.currentLength=0;for(let c=0;c<a;c++)this.currentLength=(this.currentLength<<8)+this.buffer.readUInt8(b),b+=1}else this.currentLength=c;return b}readSequence(a){let b=this.peek();if(null===b)return null;if(void 0!==a&&a!==b)throw new j(`Expected 0x${a.toString(16)}: got 0x${b.toString(16)}`);let c=this.readLength(this.currentOffset+1);return null===c?null:(this.currentOffset=c,b)}readInt(){return this.readTag(2)}readBoolean(){let a=this.readTag(1);return null===a?null:0!==a}readEnumeration(){return this.readTag(10)}readString(a=4,b=!1){let c=this.peek();if(null===c)return null;if(c!==a)throw new j(`Expected 0x${a.toString(16)}: got 0x${c.toString(16)}`);let d=this.readLength(this.currentOffset+1);if(null===d||this.currentLength>this.size-d)return null;if(this.currentOffset=d,0===this.currentLength)return b?Buffer.alloc(0):"";let e=this.buffer.subarray(this.currentOffset,this.currentOffset+this.currentLength);return this.currentOffset+=this.currentLength,b?e:e.toString("utf8")}readOID(a=6){let b=this.readString(a,!0);if(null===b)return null;let c=[],d=0;for(let a of b)d=(d<<7)+(127&a),(128&a)==0&&(c.push(d),d=0);let e=c[0]??0;return[Math.trunc(e/40),e%40,...c.slice(1)].join(".")}readTag(a){let b=this.peek();if(null===b)return null;if(b!==a)throw new j(`Expected 0x${a.toString(16)}: got 0x${b.toString(16)}`);let c=this.readLength(this.currentOffset+1);if(null===c)return null;if(this.currentLength>4)throw new j(`Integer too long: ${this.currentLength}`);if(this.currentLength>this.size-c)return null;this.currentOffset=c;let d=this.buffer.readUInt8(this.currentOffset),e=0;for(let a=0;a<this.currentLength;a++)e=e<<8|this.buffer.readUInt8(this.currentOffset),this.currentOffset+=1;return(128&d)==128&&this.currentLength<4&&(e-=1<<8*this.currentLength),0|e}},l=class{data;size;currentOffset=0;growthFactor;sequenceOffsets=[];constructor(a={}){const b=a.size??1024;this.growthFactor=a.growthFactor??8,this.data=Buffer.alloc(b),this.size=b}get buffer(){if(this.sequenceOffsets.length>0)throw new j(`${this.sequenceOffsets.length} unended sequence(s)`);return this.data.subarray(0,this.currentOffset)}writeByte(a){this.ensureCapacity(1),this.data[this.currentOffset++]=a}writeInt(a,b=2){let c=a,d=4;for(;((0xff800000&c)==0||(0xff800000&c)==-8388608)&&d>1;)d--,c<<=8;if(d>4)throw new j("BER integers cannot be > 0xffffffff");for(this.ensureCapacity(2+d),this.data[this.currentOffset++]=b,this.data[this.currentOffset++]=d;d>0;)d--,this.data[this.currentOffset++]=(0xff000000&c)>>>24,c<<=8}writeNull(){this.writeByte(5),this.writeByte(0)}writeEnumeration(a,b=10){this.writeInt(a,b)}writeBoolean(a,b=1){this.ensureCapacity(3),this.data[this.currentOffset++]=b,this.data[this.currentOffset++]=1,this.data[this.currentOffset++]=255*!!a}writeString(a,b=4){let c=Buffer.byteLength(a);this.writeByte(b),this.writeLength(c),c>0&&(this.ensureCapacity(c),this.data.write(a,this.currentOffset),this.currentOffset+=c)}writeBuffer(a,b){this.writeByte(b),this.writeLength(a.length),this.ensureCapacity(a.length),a.copy(this.data,this.currentOffset,0,a.length),this.currentOffset+=a.length}writeStringArray(a){for(let b of a)this.writeString(b)}writeOID(a,b=6){if(!/^(\d+\.){3,}\d+$/.test(a))throw Error("Argument is not a valid OID string");let c=a.split("."),d=[],e=c[0]??"0",f=c[1]??"0";for(let a of(d.push(40*Number(e)+Number(f)),c.slice(2)))this.encodeOidOctet(d,Number(a));for(let a of(this.ensureCapacity(2+d.length),this.writeByte(b),this.writeLength(d.length),d))this.writeByte(a)}writeLength(a){if(this.ensureCapacity(4),a<=127)this.data[this.currentOffset++]=a;else if(a<=255)this.data[this.currentOffset++]=129,this.data[this.currentOffset++]=a;else if(a<=65535)this.data[this.currentOffset++]=130,this.data[this.currentOffset++]=a>>8,this.data[this.currentOffset++]=a;else if(a<=0xffffff)this.data[this.currentOffset++]=131,this.data[this.currentOffset++]=a>>16,this.data[this.currentOffset++]=a>>8,this.data[this.currentOffset++]=a;else throw new j("Length too long (> 4 bytes)")}startSequence(a=48){this.writeByte(a),this.sequenceOffsets.push(this.currentOffset),this.ensureCapacity(3),this.currentOffset+=3}endSequence(){let a=this.sequenceOffsets.pop();if(void 0===a)throw new j("No sequence to end");let b=a+3,c=this.currentOffset-b;if(c<=127)this.shiftContent(b,c,-2),this.data[a]=c;else if(c<=255)this.shiftContent(b,c,-1),this.data[a]=129,this.data[a+1]=c;else if(c<=65535)this.data[a]=130,this.data[a+1]=c>>8,this.data[a+2]=c;else if(c<=0xffffff)this.shiftContent(b,c,1),this.data[a]=131,this.data[a+1]=c>>16,this.data[a+2]=c>>8,this.data[a+3]=c;else throw new j("Sequence too long")}encodeOidOctet(a,b){b<128?a.push(b):(b<16384?a.push(b>>>7|128):(b<2097152?a.push(b>>>14|128):(b<0x10000000?a.push(b>>>21|128):(a.push((b>>>28|128)&255),a.push((b>>>21|128)&255)),a.push((b>>>14|128)&255)),a.push((b>>>7|128)&255)),a.push(127&b))}shiftContent(a,b,c){this.data.copy(this.data,a+c,a,a+b),this.currentOffset+=c}ensureCapacity(a){if(this.size-this.currentOffset<a){let b=this.size*this.growthFactor;b-this.currentOffset<a&&(b+=a);let c=Buffer.alloc(b);this.data.copy(c,0,0,this.currentOffset),this.data=c,this.size=b}}},m=class{type;critical;constructor(a,b={}){this.type=a,this.critical=!0===b.critical}write(a){a.startSequence(),a.writeString(this.type),a.writeBoolean(this.critical),this.writeControl(a),a.endSequence()}parse(a){this.parseControl(a)}writeControl(a){}parseControl(a){}},n=class a extends m{static type="2.16.840.1.113730.3.4.7";value;constructor(b={}){super(a.type,b),this.value=b.value}parseControl(a){if(a.readSequence()){let b,c=a.readInt()??0;8===c&&(b=a.readString());let d=a.readInt()??0;this.value={changeType:c,previousDN:b,changeNumber:d}}}writeControl(a){if(!this.value)return;let b=new l;b.startSequence(),b.writeInt(this.value.changeType),this.value.previousDN&&b.writeString(this.value.previousDN),b.writeInt(this.value.changeNumber),b.endSequence(),a.writeBuffer(b.buffer,4)}},o=class a extends m{static type="1.2.840.113556.1.4.319";value;constructor(b={}){super(a.type,b),this.value=b.value}parseControl(a){if(a.readSequence()){let b=a.readInt()??0,c=a.readString(4,!0)??Buffer.alloc(0);this.value={size:b,cookie:c}}}writeControl(a){if(!this.value)return;let b=new l;b.startSequence(),b.writeInt(this.value.size),this.value.cookie?.length?b.writeBuffer(this.value.cookie,4):b.writeString(""),b.endSequence(),a.writeBuffer(b.buffer,4)}},p=class a extends m{static type="2.16.840.1.113730.3.4.3";value;constructor(b={}){super(a.type,b),this.value=b.value}parseControl(a){if(a.readSequence()){let b=a.readInt()??0,c=a.readBoolean()??!1,d=a.readBoolean()??!1;this.value={changeTypes:b,changesOnly:c,returnECs:d}}}writeControl(a){if(!this.value)return;let b=new l;b.startSequence(),b.writeInt(this.value.changeTypes),b.writeBoolean(this.value.changesOnly),b.writeBoolean(this.value.returnECs),b.endSequence(),a.writeBuffer(b.buffer,4)}},q=class a extends m{static type="1.2.840.113556.1.4.473";values;constructor(b={}){super(a.type,b),Array.isArray(b.value)?this.values=b.value:"object"==typeof b.value?this.values=[b.value]:this.values=[]}parseControl(a){if(a.readSequence(48))for(;a.readSequence(48);){let b=a.readString()??"",c="",d=!1;128===a.peek()&&(c=a.readString(128)??""),129===a.peek()&&(d=0!==a.readTag(129)),this.values.push({attributeType:b,orderingRule:c,reverseOrder:d})}}writeControl(a){if(!this.values.length)return;let b=new l;for(let a of(b.startSequence(48),this.values))b.startSequence(48),b.writeString(a.attributeType,4),a.orderingRule&&b.writeString(a.orderingRule,128),void 0!==a.reverseOrder&&b.writeBoolean(a.reverseOrder,129),b.endSequence();b.endSequence(),a.writeBuffer(b.buffer,4)}},r=class a extends Error{messageDetails;constructor(b){super(b),this.name="MessageParserError",Object.setPrototypeOf(this,a.prototype)}},s=class a extends Error{code;constructor(b,c){super(`${c} Code: 0x${b.toString(16)}`),this.name="ResultCodeError",this.code=b,Object.setPrototypeOf(this,a.prototype)}},t=class a extends s{constructor(b){super(11,b??"An LDAP server limit set by an administrative authority has been exceeded."),this.name="AdminLimitExceededError",Object.setPrototypeOf(this,a.prototype)}},u=class a extends s{constructor(b){super(71,b??"The modify DN operation moves the entry from one LDAP server to another and thus requires more than one LDAP server."),this.name="AffectsMultipleDSAsError",Object.setPrototypeOf(this,a.prototype)}},v=class a extends s{constructor(b){super(36,b??"Either the client does not have access rights to read the aliased object's name or dereferencing is not allowed."),this.name="AliasDerefProblemError",Object.setPrototypeOf(this,a.prototype)}},w=class a extends s{constructor(b){super(33,b??"An error occurred when an alias was dereferenced."),this.name="AliasProblemError",Object.setPrototypeOf(this,a.prototype)}},x=class a extends s{constructor(b){super(68,b??"The add operation attempted to add an entry that already exists, or that the modify operation attempted to rename an entry to the name of an entry that already exists."),this.name="AlreadyExistsError",Object.setPrototypeOf(this,a.prototype)}},y=class a extends s{constructor(b){super(7,b??"The Directory Server does not support the requested Authentication Method."),this.name="AuthMethodNotSupportedError",Object.setPrototypeOf(this,a.prototype)}},z=class a extends s{constructor(b){super(51,b??"The LDAP server is too busy to process the client request at this time."),this.name="BusyError",Object.setPrototypeOf(this,a.prototype)}},A=class a extends s{constructor(b){super(13,b??"The session is not protected by a protocol such as Transport Layer Security (TLS), which provides session confidentiality and the request will not be handled without confidentiality enabled."),this.name="ConfidentialityRequiredError",Object.setPrototypeOf(this,a.prototype)}},B=class a extends s{constructor(b){super(19,b??"The attribute value specified in a Add Request, Modify Request or ModifyDNRequest operation violates constraints placed on the attribute. The constraint can be one of size or content (string only, no binary)."),this.name="ConstraintViolationError",Object.setPrototypeOf(this,a.prototype)}},C=class a extends s{constructor(b){super(48,b??"The client is attempting to use an authentication method incorrectly."),this.name="InappropriateAuthError",Object.setPrototypeOf(this,a.prototype)}},D=class a extends s{constructor(b){super(18,b??"The matching rule specified in the search filter does not match a rule defined for the attribute's syntax."),this.name="InappropriateMatchingError",Object.setPrototypeOf(this,a.prototype)}},E=class a extends s{constructor(b){super(50,b??"The caller does not have sufficient rights to perform the requested operation."),this.name="InsufficientAccessError",Object.setPrototypeOf(this,a.prototype)}},F=class a extends s{constructor(b){super(49,b??"Invalid credentials during a bind operation."),this.name="InvalidCredentialsError",Object.setPrototypeOf(this,a.prototype)}},G=class a extends s{constructor(b){super(34,b??"The syntax of the DN is incorrect."),this.name="InvalidDNSyntaxError",Object.setPrototypeOf(this,a.prototype)}},H=class a extends s{constructor(b){super(21,b??"The attribute value specified in an Add Request, Compare Request, or Modify Request operation is an unrecognized or invalid syntax for the attribute."),this.name="InvalidSyntaxError",Object.setPrototypeOf(this,a.prototype)}},I=class a extends s{constructor(b){super(35,b??"The specified operation cannot be performed on a leaf entry."),this.name="IsLeafError",Object.setPrototypeOf(this,a.prototype)}},J=class a extends s{constructor(b){super(54,b??"The client discovered an alias or LDAP Referral loop, and is thus unable to complete this request."),this.name="LoopDetectError",Object.setPrototypeOf(this,a.prototype)}},K=class a extends s{constructor(b){super(95,b),this.name="MoreResultsToReturnError",Object.setPrototypeOf(this,a.prototype)}},L=class a extends s{constructor(b){super(64,b??"The Add Request or Modify DN Request operation violates the schema's structure rules."),this.name="NamingViolationError",Object.setPrototypeOf(this,a.prototype)}},M=class a extends s{constructor(b){super(69,b??"The modify operation attempted to modify the structure rules of an object class."),this.name="NoObjectClassModsError",Object.setPrototypeOf(this,a.prototype)}},N=class a extends s{constructor(b){super(16,b??"The attribute specified in the Modify Request or Compare Request operation does not exist in the entry."),this.name="NoSuchAttributeError",Object.setPrototypeOf(this,a.prototype)}},O=class a extends s{constructor(b){super(32,b??"The target object cannot be found."),this.name="NoSuchObjectError",Object.setPrototypeOf(this,a.prototype)}},P=class a extends s{constructor(b){super(66,b??"The requested operation is permitted only on leaf entries."),this.name="NotAllowedOnNonLeafError",Object.setPrototypeOf(this,a.prototype)}},Q=class a extends s{constructor(b){super(67,b??"The modify operation attempted to remove an attribute value that forms the entry's relative distinguished name."),this.name="NotAllowedOnRDNError",Object.setPrototypeOf(this,a.prototype)}},R=class a extends s{constructor(b){super(248,b??"No result message for the request."),this.name="NoResultError",Object.setPrototypeOf(this,a.prototype)}},S=class a extends s{constructor(b){super(65,b??"The Add Request, Modify Request, or modify DN operation violates the object class rules for the entry."),this.name="ObjectClassViolationError",Object.setPrototypeOf(this,a.prototype)}},T=class a extends s{constructor(b){super(1,b??"Request was out of sequence with another operation in progress."),this.name="OperationsError",Object.setPrototypeOf(this,a.prototype)}},U=class a extends s{constructor(b){super(2,b??"Client sent data to the server that did not comprise a valid LDAP request."),this.name="ProtocolError",Object.setPrototypeOf(this,a.prototype)}},V=class a extends s{constructor(b){super(70,b??"Results are too large."),this.name="ResultsTooLargeError",Object.setPrototypeOf(this,a.prototype)}},W=class a extends s{response;constructor(b){super(14,b.errorMessage||"The server is ready for the next step in the SASL authentication process. The client must send the server the same SASL Mechanism to continue the process."),this.response=b,this.name="SaslBindInProgressError",Object.setPrototypeOf(this,a.prototype)}},X=class a extends s{constructor(b){super(4,b??"There were more entries matching the criteria contained in a SearchRequest operation than were allowed to be returned by the size limit configuration."),this.name="SizeLimitExceededError",Object.setPrototypeOf(this,a.prototype)}},Y=class a extends s{constructor(b){super(8,b??"Client requested an operation that requires strong authentication."),this.name="StrongAuthRequiredError",Object.setPrototypeOf(this,a.prototype)}},Z=class a extends s{constructor(b){super(3,b??"Processing on the associated request Timeout limit specified by either the client request or the server administration limits has been exceeded and has been terminated because it took too long to complete."),this.name="TimeLimitExceededError",Object.setPrototypeOf(this,a.prototype)}},$=class a extends s{constructor(b){super(112,b??"TLS is not supported on the server."),this.name="TLSNotSupportedError",Object.setPrototypeOf(this,a.prototype)}},_=class a extends s{constructor(b){super(20,b??"The attribute value specified in a Add Request or Modify Request operation already exists as a value for that attribute."),this.name="TypeOrValueExistsError",Object.setPrototypeOf(this,a.prototype)}},aa=class a extends s{constructor(b){super(12,b??"One or more critical extensions were not available by the LDAP server. Either the server does not support the control or the control is not appropriate for the operation type."),this.name="UnavailableCriticalExtensionError",Object.setPrototypeOf(this,a.prototype)}},ab=class a extends s{constructor(b){super(52,b??"The LDAP server cannot process the client's bind request."),this.name="UnavailableError",Object.setPrototypeOf(this,a.prototype)}},ac=class a extends s{constructor(b){super(17,b??"The attribute specified in the modify or add operation does not exist in the LDAP server's schema."),this.name="UndefinedTypeError",Object.setPrototypeOf(this,a.prototype)}},ad=class a extends s{constructor(b,c){super(b,c??"Unknown error."),this.name="UnknownStatusCodeError",Object.setPrototypeOf(this,a.prototype)}},ae=class a extends s{constructor(b){super(53,b??"The LDAP server cannot process the request because of server-defined restrictions."),this.name="UnwillingToPerformError",Object.setPrototypeOf(this,a.prototype)}},af=class a{write(a){a.startSequence(this.type),this.writeFilter(a),a.endSequence()}parse(a){this.parseFilter(a)}matches(a={},b){return!0}static escape(a){let b="";if(Buffer.isBuffer(a))for(let c of a)c<16?b+=`\\0${c.toString(16)}`:b+=`\\${c.toString(16)}`;else for(let c of a)switch(c){case"*":b+="\\2a";break;case"(":b+="\\28";break;case")":b+="\\29";break;case"\\":b+="\\5c";break;case"\0":b+="\\00";break;default:b+=c}return b}escape(b){return a.escape(b)}parseFilter(a){}writeFilter(a){}getObjectValue(a,b,c){let d;if(void 0!==a[b])d=b;else if(!c&&"objectclass"===b.toLowerCase()){for(let c of Object.keys(a))if(c.toLowerCase()===b.toLowerCase()){d=c;break}}if(d)return a[d]}},ag=class extends af{type=160;filters;constructor(a){super(),this.filters=a.filters}writeFilter(a){for(let b of this.filters)b.write(a)}matches(a={},b){if(!this.filters.length)return!0;for(let c of this.filters)if(!c.matches(a,b))return!1;return!0}toString(){let a="(&";for(let b of this.filters)a+=b.toString();return a+")"}},ah=class extends af{type=168;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=(a.readString()??"").toLowerCase(),this.value=a.readString()??""}writeFilter(a){a.writeString(this.attribute),a.writeString(this.value)}matches(a={},b){throw Error("Approximate match implementation unknown")}toString(){return`(${af.escape(this.attribute)}~=${af.escape(this.value)})`}},ai=class extends af{type=163;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=(a.readString()??"").toLowerCase(),this.value=a.readString()??"","objectclass"===this.attribute&&(this.value=this.value.toLowerCase())}writeFilter(a){a.writeString(this.attribute),Buffer.isBuffer(this.value)?a.writeBuffer(this.value,4):a.writeString(this.value)}matches(a={},b){let c=this.getObjectValue(a,this.attribute,b);if(void 0!==c){if(Buffer.isBuffer(this.value)&&Buffer.isBuffer(c))return this.value===c;let a=Buffer.isBuffer(this.value)?this.value.toString("utf8"):this.value;return b?a===c:a.toLowerCase()===c.toLowerCase()}return!1}toString(){return`(${af.escape(this.attribute)}=${af.escape(this.value)})`}},aj=class extends af{type=169;value;rule;matchType;dnAttributes;constructor(a={}){super(),this.matchType=a.matchType??"",this.rule=a.rule??"",this.dnAttributes=!0===a.dnAttributes,this.value=a.value??""}parseFilter(a){let b=a.offset+a.length;for(;a.offset<b;){let b=a.peek();switch(b){case 129:this.rule=a.readString(b)??"";break;case 130:this.matchType=a.readString(b)??"";break;case 131:this.value=a.readString(b)??"";break;case 132:this.dnAttributes=a.readBoolean()??!1;break;default:{let a="<null>";throw b&&(a=`0x${b.toString(16)}`),Error(`Invalid ext_match filter type: ${a}`)}}}}writeFilter(a){this.rule&&a.writeString(this.rule,129),this.matchType&&a.writeString(this.matchType,130),a.writeString(this.value,131),this.dnAttributes&&a.writeBoolean(this.dnAttributes,132)}matches(a={},b){throw Error("Approximate match implementation unknown")}toString(){let a=`(${af.escape(this.matchType)}:`;return this.dnAttributes&&(a+="dn:"),this.rule&&(a+=`${af.escape(this.rule)}:`),a+=`=${af.escape(this.value)})`}},ak=class extends af{type=165;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=a.readString()?.toLowerCase()??"",this.value=a.readString()??""}writeFilter(a){a.writeString(this.attribute),a.writeString(this.value)}matches(a={},b){let c=this.getObjectValue(a,this.attribute,b);return void 0!==c&&(b?c>=this.value:c.toLowerCase()>=this.value.toLowerCase())}toString(){return`(${af.escape(this.attribute)}>=${af.escape(this.value)})`}},al=class extends af{type=166;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=a.readString()?.toLowerCase()??"",this.value=a.readString()??""}writeFilter(a){a.writeString(this.attribute),a.writeString(this.value)}matches(a={},b){let c=this.getObjectValue(a,this.attribute,b);return void 0!==c&&(b?c<=this.value:c.toLowerCase()<=this.value.toLowerCase())}toString(){return`(${af.escape(this.attribute)}<=${af.escape(this.value)})`}},am=class extends af{type=162;filter;constructor(a){super(),this.filter=a.filter}writeFilter(a){this.filter.write(a)}matches(a={},b){return!this.filter.matches(a,b)}toString(){return`(!${this.filter.toString()})`}},an=class extends af{type=161;filters;constructor(a){super(),this.filters=a.filters}writeFilter(a){for(let b of this.filters)b.write(a)}matches(a={},b){if(!this.filters.length)return!0;for(let c of this.filters)if(c.matches(a,b))return!0;return!1}toString(){let a="(|";for(let b of this.filters)a+=b.toString();return a+")"}},ao=class extends af{type=135;attribute;constructor(a={}){super(),this.attribute=a.attribute??""}parseFilter(a){this.attribute=a.buffer.subarray(0,a.length).toString("utf8").toLowerCase(),a.offset+=a.length}writeFilter(a){for(let b=0;b<this.attribute.length;b+=1)a.writeByte(this.attribute.charCodeAt(b))}matches(a={},b){return void 0!==this.getObjectValue(a,this.attribute,b)}toString(){return`(${af.escape(this.attribute)}=*)`}},ap=class a extends af{type=164;attribute;initial;any;final;constructor(a={}){super(),this.attribute=a.attribute??"",this.initial=a.initial??"",this.any=a.any??[],this.final=a.final??""}parseFilter(a){this.attribute=a.readString()?.toLowerCase()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=a.peek();switch(b){case 128:this.initial=a.readString(b)??"","objectclass"===this.attribute&&(this.initial=this.initial.toLowerCase());break;case 129:{let c=a.readString(b)??"";"objectclass"===this.attribute&&(c=c.toLowerCase()),this.any.push(c);break}case 130:this.final=a.readString(b)??"","objectclass"===this.attribute&&(this.final=this.final.toLowerCase());break;default:{let a="<null>";throw b&&(a=`0x${b.toString(16)}`),Error(`Invalid substring filter type: ${a}`)}}}}writeFilter(a){for(let b of(a.writeString(this.attribute),a.startSequence(),this.initial&&a.writeString(this.initial,128),this.any))a.writeString(b,129);this.final&&a.writeString(this.final,130),a.endSequence()}matches(b={},c){let d=this.getObjectValue(b,this.attribute,c);if(void 0!==d){let b="";for(let c of(this.initial&&(b+=`^${a._escapeRegExp(this.initial)}.*`),this.any))b+=`${a._escapeRegExp(c)}.*`;return this.final&&(b+=`${a._escapeRegExp(this.final)}$`),new RegExp(b,c?"gmu":"igmu").test(d)}return!1}toString(){let a=`(${af.escape(this.attribute)}=${af.escape(this.initial)}*`;for(let b of this.any)a+=`${af.escape(b)}*`;return a+`${af.escape(this.final)})`}static _escapeRegExp(a){return a.replace(/[$()*+./?[\\\]^{|}-]/g,"\\$&")}},aq=class{static parse(a,b){let c;if(null===a.readSequence())return null;let d="",e=!1,f=Buffer.alloc(0);if(a.length){let b=a.offset+a.length;d=a.readString()??"",a.offset<b&&1===a.peek()&&(e=a.readBoolean()??!1),a.offset<b&&(f=a.readString(4,!0)??Buffer.alloc(0))}switch(d){case n.type:c=new n({critical:e});break;case o.type:c=new o({critical:e});break;case p.type:c=new p({critical:e});break;case q.type:c=new q({critical:e});break;default:c=b.find(a=>a.type===d)}if(!c)return null;let g=new k(f);return c.parse(g),c}},ar=class{version=3;messageId=0;controls;constructor(a){this.messageId=a.messageId,this.controls=a.controls}write(){let a=new l;if(a.startSequence(),a.writeInt(this.messageId),a.startSequence(this.protocolOperation),this.writeMessage(a),a.endSequence(),this.controls?.length){for(let b of(a.startSequence(160),this.controls))b.write(a);a.endSequence()}return a.endSequence(),a.buffer}parse(a,b){if(this.controls=[],this.parseMessage(a),160===a.peek()){a.readSequence();let c=a.offset+a.length;for(;a.offset<c;){let c=aq.parse(a,b);c&&this.controls.push(c)}}}toString(){return JSON.stringify({messageId:this.messageId,messageType:this.constructor.name},null,2)}parseMessage(a){}writeMessage(a){}},as=class extends ar{protocolOperation;abandonId;constructor(a){super(a),this.protocolOperation=80,this.abandonId=a.abandonId??0}writeMessage(a){let b=this.abandonId,c=4;for(;((0xff800000&b)==0||(0xff800000&b)==0xff800000)&&c>1;)c-=1,b<<=8;for(d.ok(c<=4);c-- >0;)a.writeByte((0xff000000&b)>>24),b<<=8}parseMessage(a){let{length:b}=a;if(b){let c,d=1,e=a.buffer[d]??0;c=127&e;for(let e=1;e<b;e+=1)c<<=8,d+=1,c|=255&(a.buffer[d]??0);(128&e)==128&&(c=-c),a.offset+=b,this.abandonId=c}else this.abandonId=0}};let at=new e.TextDecoder("utf8",{fatal:!0});var au=class{buffers=[];type;values;constructor(a={}){this.type=a.type??"",this.values=a.values??[]}get parsedBuffers(){return this.buffers}write(a){a.startSequence();let{type:b}=this;if(a.writeString(b),a.startSequence(49),this.values.length)for(let b of this.values)Buffer.isBuffer(b)?a.writeBuffer(b,4):a.writeString(b);else a.writeStringArray([]);a.endSequence(),a.endSequence()}parse(a){a.readSequence(),this.type=a.readString()??"";let b=this._isBinaryType();if(49===a.peek()&&a.readSequence(49)){let c=a.offset+a.length;for(;a.offset<c;){let c=a.readString(4,!0)??Buffer.alloc(0);if(this.buffers.push(c),b)this.values.push(c);else try{let a=at.decode(c);this.values.push(a)}catch{this.values.push(c)}}}}_isBinaryType(){return/;binary$/i.test(this.type||"")}},av=class extends ar{protocolOperation;dn;attributes;constructor(a){super(a),this.protocolOperation=104,this.dn=a.dn,this.attributes=a.attributes??[]}writeMessage(a){for(let b of(a.writeString(this.dn),a.startSequence(),this.attributes))b.write(a);a.endSequence()}parseMessage(a){this.dn=a.readString()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=new au;b.parse(a),this.attributes.push(b)}}},aw=class extends ar{status;matchedDN;errorMessage;constructor(a){super(a),this.status=a.status??0,this.matchedDN=a.matchedDN??"",this.errorMessage=a.errorMessage??""}parseMessage(a){this.status=a.readEnumeration()??0,this.matchedDN=a.readString()??"",this.errorMessage=a.readString()??""}},ax=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=105}};let ay=["EXTERNAL","PLAIN","DIGEST-MD5","SCRAM-SHA-1"];var az=class extends ar{protocolOperation;dn;password;mechanism;constructor(a){super(a),this.protocolOperation=96,this.dn=a.dn??"",this.password=a.password??"",this.mechanism=a.mechanism}writeMessage(a){a.writeInt(this.version),a.writeString(this.dn),this.mechanism?(a.startSequence(163),a.writeString(this.mechanism),a.writeString(this.password),a.endSequence()):a.writeString(this.password,128)}parseMessage(a){this.version=a.readInt()??3,this.dn=a.readString()??"";let b=a.peek();if(128!==b){let a="<null>";throw b&&(a=`0x${b.toString(16)}`),Error(`Authentication type not supported: ${a}`)}this.password=a.readString(128)??""}},aA=class extends aw{protocolOperation;data=[];constructor(a){super(a),this.protocolOperation=97}parseMessage(a){for(super.parseMessage(a);a.remain>0;){let b=a.peek();if(160===b)break;this.data.push(a.readString("number"==typeof b?b:void 0)??"")}}},aB=class extends ar{protocolOperation;dn;attribute;value;constructor(a){super(a),this.protocolOperation=110,this.attribute=a.attribute??"",this.value=a.value??"",this.dn=a.dn??""}writeMessage(a){a.writeString(this.dn),a.startSequence(),a.writeString(this.attribute),a.writeString(this.value),a.endSequence()}parseMessage(a){this.dn=a.readString()??"",a.readSequence(),this.attribute=(a.readString()??"").toLowerCase(),this.value=a.readString()??""}},aC=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=111}},aD=class extends ar{protocolOperation;dn;constructor(a){super(a),this.protocolOperation=74,this.dn=a.dn??""}writeMessage(a){for(let b of Buffer.from(this.dn))a.writeByte(b)}parseMessage(a){let{length:b}=a;this.dn=a.buffer.subarray(0,b).toString("utf8"),a.offset+=a.length}},aE=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=107}},aF=class extends ar{protocolOperation;oid;value;constructor(a){super(a),this.protocolOperation=119,this.oid=a.oid??"",this.value=a.value??""}writeMessage(a){a.writeString(this.oid,128),Buffer.isBuffer(this.value)?a.writeBuffer(this.value,129):this.value&&a.writeString(this.value,129)}parseMessage(a){if(this.oid=a.readString(128)??"",129===a.peek())try{this.value=a.readString(129)??""}catch{this.value=a.readString(129,!0)??Buffer.alloc(0)}}},aG=class extends aw{protocolOperation;oid;value;constructor(a){super(a),this.protocolOperation=120,this.oid=a.oid,this.value=a.value}parseMessage(a){super.parseMessage(a),138===a.peek()&&(this.oid=a.readString(138)??""),139===a.peek()&&(this.value=a.readString(139)??void 0)}},aH=class extends ar{protocolOperation;deleteOldRdn;dn;newRdn;newSuperior;constructor(a){super(a),this.protocolOperation=108,this.deleteOldRdn=!1!==a.deleteOldRdn,this.dn=a.dn??"",this.newRdn=a.newRdn??"",this.newSuperior=a.newSuperior??""}writeMessage(a){a.writeString(this.dn),a.writeString(this.newRdn),a.writeBoolean(this.deleteOldRdn),this.newSuperior&&a.writeString(this.newSuperior,128)}parseMessage(a){this.dn=a.readString()??"",this.newRdn=a.readString()??"",this.deleteOldRdn=a.readBoolean()??!1,128===a.peek()&&(this.newSuperior=a.readString(128)??"")}},aI=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=109}},aJ=class{operation;modification;constructor(a={modification:new au}){this.operation=a.operation??"add",this.modification=a.modification}write(a){switch(a.startSequence(),this.operation){case"add":a.writeEnumeration(0);break;case"delete":a.writeEnumeration(1);break;case"replace":a.writeEnumeration(2);break;default:throw Error(`Unknown change operation: ${this.operation}`)}this.modification.write(a),a.endSequence()}parse(a){a.readSequence();let b=a.readEnumeration();switch(b){case 0:this.operation="add";break;case 1:this.operation="delete";break;case 2:this.operation="replace";break;case null:throw Error("Unknown change operation - <null> operation value");default:throw Error(`Unknown change operation: 0x${b.toString(16)}`)}this.modification=new au,this.modification.parse(a)}},aK=class extends ar{protocolOperation;dn;changes;constructor(a){super(a),this.protocolOperation=102,this.dn=a.dn??"",this.changes=a.changes??[]}writeMessage(a){for(let b of(a.writeString(this.dn),a.startSequence(),this.changes))b.write(a);a.endSequence()}parseMessage(a){this.dn=a.readString()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=new aJ;b.parse(a),this.changes.push(b)}}},aL=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=103}},aM=class extends aw{protocolOperation;name;attributes;constructor(a){super(a),this.protocolOperation=100,this.name=a.name??"",this.attributes=a.attributes??[]}parseMessage(a){this.name=a.readString()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=new au;b.parse(a),this.attributes.push(b)}}toObject(a,b){let c={dn:this.name},d=new Set;for(let a of this.attributes){d.add(a.type.toLocaleLowerCase());let{values:e}=a;(b.includes(a.type)||e.some(a=>Buffer.isBuffer(a)))&&(e=a.parsedBuffers),e.length?1===e.length?c[a.type]=e[0]??[]:c[a.type]=e:c[a.type]=[]}for(let b of a)void 0!==c[b]||d.has(b.toLocaleLowerCase())||(c[b]=[]);return c}},aN=class extends aw{protocolOperation;uris;constructor(a){super(a),this.protocolOperation=115,this.uris=a.uris??[]}parseMessage(a){let b=a.offset+a.length;for(;a.offset<b;){let b=a.readString()??"";this.uris.push(b)}}},aO=class a{static parseString(b){if(!b)throw Error("Filter cannot be empty");b.startsWith("(")||(b=`(${b})`);let c=a._parseString(b,0,b),d=b.length-1;if(c.end<d)throw Error(`Unbalanced parens in filter string: ${b}`);return c.filter}static parse(b){let c,d=b.readSequence();switch(d){case 160:c=new ag({filters:a._parseSet(b)});break;case 168:(c=new ah).parse(b);break;case 163:(c=new ai).parse(b);break;case 169:(c=new aj).parse(b);break;case 165:(c=new ak).parse(b);break;case 166:(c=new al).parse(b);break;case 162:c=new am({filter:a.parse(b)});break;case 161:c=new an({filters:a._parseSet(b)});break;case 135:(c=new ao).parse(b);break;case 164:(c=new ap).parse(b);break;default:throw Error(`Invalid search filter type: 0x${d??"<null>"}`)}return c}static _parseString(b,c,d){let e,f=c,{length:g}=b;if("("!==b[f])throw Error(`Missing paren: ${b}. Full string: ${d}`);switch(b[f+=1]){case"&":{f+=1;let c=[];do{let e=a._parseString(b,f,d);c.push(e.filter),f=e.end+1}while(f<g&&")"!==b[f]);e=new ag({filters:c});break}case"|":{f+=1;let c=[];do{let e=a._parseString(b,f,d);c.push(e.filter),f=e.end+1}while(f<g&&")"!==b[f]);e=new an({filters:c});break}case"!":{let c=a._parseString(b,f+1,d);e=new am({filter:c.filter}),f=c.end+1;break}default:{let c=b.indexOf(")",f);if(-1===c)throw Error(`Unbalanced parens: ${b}. Full string: ${d}`);e=a._parseExpressionFilterFromString(b.substring(f,c)),f=c}}return{end:f,filter:e}}static _parseExpressionFilterFromString(b){let c,d;if(b.startsWith(":"))c="",d=b;else{let a=/^[\w-]+/.exec(b);if(a?.length)[c]=a,d=b.slice(c.length);else throw Error(`Invalid attribute name: ${b}`)}if("=*"===d)return new ao({attribute:c});if(d.startsWith("=")){if((d=d.slice(1)).includes("*")){let b=a._unescapeSubstring(d);return new ap({attribute:c,initial:b.initial,any:b.any,final:b.final})}return new ai({attribute:c,value:a._unescapeHexValues(d)})}if(d.startsWith(">")&&"="===d[1])return new ak({attribute:c,value:a._unescapeHexValues(d.slice(2))});if(d.startsWith("<")&&"="===d[1])return new al({attribute:c,value:a._unescapeHexValues(d.slice(2))});if(d.startsWith("~")&&"="===d[1])return new ah({attribute:c,value:a._unescapeHexValues(d.slice(2))});if(d.startsWith(":"))return a._parseExtensibleFilterFromString(c,d);throw Error(`Invalid expression: ${b}`)}static _parseExtensibleFilterFromString(b,c){let d,e=!1,f=c.split(":");if(f.length<=1)throw Error(`Invalid extensible filter: ${c}`);if(f.shift(),f[0]?.toLowerCase()==="dn"&&(e=!0,f.shift()),f.length&&!f[0]?.startsWith("=")&&(d=f.shift()),f.length&&!f[0]?.startsWith("="))throw Error(`Missing := in extensible filter: ${c}`);let g=f.join(":").slice(1);return new aj({matchType:b,dnAttributes:e,rule:d,value:a._unescapeHexValues(g)})}static _unescapeHexValues(a){let b=0,c=a.length,d="";for(;b<c;){let c=a[b];switch(c){case"(":throw Error(`Illegal unescaped character: ${c} in value: ${a}`);case"\\":{let c=a.slice(b+1,b+3);if(null===/^[\dA-Fa-f]{2}$/.exec(c))throw Error(`Invalid escaped hex character: ${c} in value: ${a}`);d+=String.fromCharCode(Number.parseInt(c,16)),b+=3;break}default:c&&(d+=c),b+=1}}return d}static _unescapeSubstring(b){let c=b.split("*");if(c.length<2)throw Error(`Wildcard missing: ${b}`);return{initial:a._unescapeHexValues(c.shift()??""),final:a._unescapeHexValues(c.pop()??""),any:c.map(b=>a._unescapeHexValues(b))}}static _parseSet(b){let c=[],d=b.offset+b.length;for(;b.offset<d;)c.push(a.parse(b));return c}},aP=class extends ar{protocolOperation;baseDN;scope;derefAliases;sizeLimit;timeLimit;returnAttributeValues;filter;attributes;explicitBufferAttributes;constructor(a){super(a),this.protocolOperation=99,this.baseDN=a.baseDN??"",this.scope=a.scope??"sub",this.derefAliases=a.derefAliases??"never",this.sizeLimit=a.sizeLimit??0,this.timeLimit=a.timeLimit??10,this.returnAttributeValues=!1!==a.returnAttributeValues,this.filter=a.filter,this.attributes=a.attributes??[],this.explicitBufferAttributes=a.explicitBufferAttributes??[]}writeMessage(a){switch(a.writeString(this.baseDN),this.scope){case"base":a.writeEnumeration(0);break;case"one":a.writeEnumeration(1);break;case"sub":a.writeEnumeration(2);break;case"children":case"subordinates":a.writeEnumeration(3);break;default:throw Error(`Invalid search scope: ${this.scope}`)}switch(this.derefAliases){case"never":a.writeEnumeration(0);break;case"search":a.writeEnumeration(1);break;case"find":a.writeEnumeration(2);break;case"always":a.writeEnumeration(3);break;default:throw Error(`Invalid deref alias: ${this.derefAliases}`)}for(let b of(a.writeInt(this.sizeLimit),a.writeInt(this.timeLimit),a.writeBoolean(!this.returnAttributeValues),this.filter.write(a),a.startSequence(),this.attributes))a.writeString(b);a.endSequence()}parseMessage(a){this.baseDN=a.readString()??"";let b=a.readEnumeration();switch(b){case 0:this.scope="base";break;case 1:this.scope="one";break;case 2:this.scope="sub";break;case 3:this.scope="children";break;default:throw Error(`Invalid search scope: ${b??"<null>"}`)}let c=a.readEnumeration();switch(b){case 0:this.derefAliases="never";break;case 1:this.derefAliases="search";break;case 2:this.derefAliases="find";break;case 3:this.derefAliases="always";break;default:throw Error(`Invalid deref alias: ${c??"<null>"}`)}if(this.sizeLimit=a.readInt()??0,this.timeLimit=a.readInt()??0,this.returnAttributeValues=!a.readBoolean(),this.filter=aO.parse(a),48===a.peek()){a.readSequence();let b=a.offset+a.length;for(;a.offset<b;)this.attributes.push((a.readString()??"").toLowerCase())}}},aQ=class extends aw{protocolOperation;searchEntries;searchReferences;constructor(a){super(a),this.protocolOperation=101,this.searchEntries=a.searchEntries??[],this.searchReferences=a.searchReferences??[]}},aR=class extends ar{protocolOperation;constructor(a){super(a),this.protocolOperation=66}};let aS=i.EventEmitter;var aT=class extends aS{buffer;read(a,b){let c,d,e;this.buffer?this.buffer=Buffer.concat([this.buffer,a]):this.buffer=a;let f=new k(this.buffer),g=null;try{g=f.readSequence()}catch(a){this.emit("error",a)}if(g&&!(f.remain<f.length)){f.remain>f.length&&(c=this.buffer.subarray(f.offset+f.length),f.setBufferSize(f.offset+f.length)),delete this.buffer;try{if(d=f.readInt(),null==d)throw Error("Unable to read message id");if(e=f.readSequence(),null==e)throw Error(`Unable to read protocol operation sequence for message: ${d}`);let a=b.get(`${d}`),c=this._getMessageFromProtocolOperation(d,e,f,a?.message);this.emit("message",c)}catch(a){if(d){a.messageDetails={messageId:d},e&&(a.messageDetails.protocolOperation=e),this.emit("error",a);return}this.emit("error",a);return}c&&this.read(c,b)}}_getMessageFromProtocolOperation(a,b,c,d){let e;switch(b){case 97:e=new aA({messageId:a});break;case 105:e=new ax({messageId:a});break;case 111:e=new aC({messageId:a});break;case 107:e=new aE({messageId:a});break;case 120:e=new aG({messageId:a});break;case 109:e=new aI({messageId:a});break;case 103:e=new aL({messageId:a});break;case 101:e=new aQ({messageId:a});break;case 100:e=new aM({messageId:a});break;case 115:e=new aN({messageId:a});break;default:{let c=new r(`Protocol Operation not supported: 0x${b.toString(16)}`);throw c.messageDetails={messageId:a,protocolOperation:b},c}}return e.parse(c,d?.controls??[]),e}},aU=class{static parse(a){if(!a)return new R;switch(a.status){case 1:return new T(a.errorMessage);case 2:return new U(a.errorMessage);case 3:return new Z(a.errorMessage);case 4:return new X(a.errorMessage);case 7:return new y(a.errorMessage);case 8:return new Y(a.errorMessage);case 11:return new t(a.errorMessage);case 12:return new aa(a.errorMessage);case 13:return new A(a.errorMessage);case 14:return new W(a);case 16:return new N(a.errorMessage);case 17:return new ac(a.errorMessage);case 18:return new D(a.errorMessage);case 19:return new B(a.errorMessage);case 20:return new _(a.errorMessage);case 21:return new H(a.errorMessage);case 32:return new O(a.errorMessage);case 33:return new w(a.errorMessage);case 34:return new G(a.errorMessage);case 35:return new I(a.errorMessage);case 36:return new v(a.errorMessage);case 48:return new C(a.errorMessage);case 49:return new F(a.errorMessage);case 50:return new E(a.errorMessage);case 51:return new z(a.errorMessage);case 52:return new ab(a.errorMessage);case 53:return new ae(a.errorMessage);case 54:return new J(a.errorMessage);case 64:return new L(a.errorMessage);case 65:return new S(a.errorMessage);case 66:return new P(a.errorMessage);case 67:return new Q(a.errorMessage);case 68:return new x(a.errorMessage);case 69:return new M(a.errorMessage);case 70:return new V(a.errorMessage);case 71:return new u(a.errorMessage);case 95:return new K(a.errorMessage);case 112:return new $(a.errorMessage);case 248:return new R(a.errorMessage);default:return new ad(a.status,a.errorMessage)}}};let aV=0x80000000-1,aW=(0,e.debuglog)("ldapts");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var aX=class{clientOptions;messageId=1;host;port;secure;connected=!1;bound=!1;startTLSUpgraded=!1;rebind;socket;connectTimer;messageParser=new aT;messageDetailsByMessageId=new Map;constructor(a){let b;this.clientOptions=a,this.clientOptions.timeout??=0,this.clientOptions.connectTimeout??=0,this.clientOptions.strictDN=!1!==this.clientOptions.strictDN;try{b=new URL(a.url)}catch{throw Error(`${a.url} is an invalid LDAP URL (protocol)`)}const c=b.protocol.replace(/:$/,"");if("ldap"!==c&&"ldaps"!==c)throw Error(`${a.url} is an invalid LDAP URL (protocol)`);const d="ldaps"===c,e=!!this.clientOptions.tlsOptions&&Object.values(this.clientOptions.tlsOptions).some(a=>void 0!==a);this.secure=d||e;let f=b.hostname;f.startsWith("[")&&f.endsWith("]")&&(f=f.slice(1,-1)),this.host=f||"localhost",b.port?this.port=Number(b.port):d?this.port=636:this.port=389,this.messageParser.on("error",a=>{if(a.messageDetails?.messageId){let b=this.messageDetailsByMessageId.get(a.messageDetails.messageId.toString());if(b){this.messageDetailsByMessageId.delete(a.messageDetails.messageId.toString()),b.reject(a);return}}a.stack&&aW(a.stack)}),this.messageParser.on("message",this._handleSendResponse.bind(this))}get isConnected(){return!!this.socket&&this.connected}get isBound(){return this.isConnected&&this.bound}async startTLS(a={},b){this.isConnected||await this._connect(),await this.exop("1.3.6.1.4.1.1466.20037",void 0,b);let c=this.socket;c&&(c.removeListener("data",this.socketDataHandler),a.socket=c),this.socket=await new Promise((b,d)=>{let e=(this.clientOptions.createSecureConnection??h.connect)(a);e.once("secureConnect",()=>{e.removeAllListeners("error"),e.on("data",this.socketDataHandler),e.on("error",()=>{c&&c.destroy()}),b(e)}),e.once("error",a=>{e.removeAllListeners(),d(a)})}),c&&(this.socket.id=c.id),this.startTLSUpgraded=!0}async bind(a,b,c){if(c&&!Array.isArray(c)&&(c=[c]),"string"==typeof a&&ay.includes(a))return void await this.bindSASL(a,b,c);let d=new az({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),password:b,controls:c});await this._sendBind(d),this._onBindSuccess(()=>this.bind(a,b,c))}async bindSASL(a,b,c){c&&!Array.isArray(c)&&(c=[c]);let d=new az({messageId:this._nextMessageId(),mechanism:a,password:b,controls:c});await this._sendBind(d),this._onBindSuccess(()=>this.bindSASL(a,b,c))}async add(a,b,c){let d;if(await this._ensureConnected(),c&&!Array.isArray(c)&&(c=[c]),Array.isArray(b))d=b;else for(let[a,c]of(d=[],Object.entries(b))){let b;b=Array.isArray(c)?c:null==c?[]:[c],d.push(new au({type:a,values:b}))}let e=new av({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),attributes:d,controls:c}),f=await this._send(e);if(f?.status!==0)throw aU.parse(f)}async compare(a,b,c,d){await this._ensureConnected(),d&&!Array.isArray(d)&&(d=[d]);let e=new aB({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),attribute:b,value:c,controls:d}),f=await this._send(e);switch(f?.status){case 6:return!0;case 5:return!1;default:throw aU.parse(f)}}async del(a,b){await this._ensureConnected(),b&&!Array.isArray(b)&&(b=[b]);let c=new aD({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),controls:b}),d=await this._send(c);if(d?.status!==0)throw aU.parse(d)}async exop(a,b,c){await this._ensureConnected(),c&&!Array.isArray(c)&&(c=[c]);let d=new aF({messageId:this._nextMessageId(),oid:a,value:b,controls:c}),e=await this._send(d);if(e?.status!==0)throw aU.parse(e);return{oid:e.oid,value:e.value}}async modify(a,b,c){await this._ensureConnected(),Array.isArray(b)||(b=[b]),c&&!Array.isArray(c)&&(c=[c]);let d=new aK({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),changes:b,controls:c}),e=await this._send(d);if(e?.status!==0)throw aU.parse(e)}async modifyDN(a,b,c){let d;if(await this._ensureConnected(),c&&!Array.isArray(c)&&(c=[c]),"string"==typeof b&&/[^\\],/.test(b)){let a=b.search(/[^\\],/);d=b.slice(a+2),b=b.slice(0,a+1)}let e=new aH({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),deleteOldRdn:!0,newRdn:"string"==typeof b?b:b.toString(),newSuperior:d,controls:c}),f=await this._send(e);if(f?.status!==0)throw aU.parse(f)}async search(a,b={},c){let d,e;if(await this._ensureConnected(),c){for(let a of c=Array.isArray(c)?c.slice(0):[c])if(a instanceof o)throw Error("Should not specify PagedResultsControl")}else c=[];let f=100;"object"==typeof b.paged&&b.paged.pageSize?f=b.paged.pageSize:b.sizeLimit&&b.sizeLimit>1&&(f=b.sizeLimit-1);let g=!!b.paged;g&&(d=new o({value:{size:f}}),c.push(d)),e=b.filter?"string"==typeof b.filter?aO.parseString(b.filter):b.filter:new ao({attribute:"objectclass"});let h=new aP({messageId:-1,baseDN:"string"==typeof a?a:a.toString(),scope:b.scope,filter:e,attributes:b.attributes,explicitBufferAttributes:b.explicitBufferAttributes,returnAttributeValues:b.returnAttributeValues,sizeLimit:b.sizeLimit,timeLimit:b.timeLimit,controls:c}),i={searchEntries:[],searchReferences:[]};return await this._sendSearch(h,i,g,f,d),i}async *searchPaginated(a,b={},c){let d,e;if(await this._ensureConnected(),c){for(let a of c=Array.isArray(c)?c.slice(0):[c])if(a instanceof o)throw Error("Should not specify PagedResultsControl")}else c=[];let f=100;"object"==typeof b.paged&&b.paged.pageSize?f=b.paged.pageSize:b.sizeLimit&&b.sizeLimit>1&&(f=b.sizeLimit-1),d=new o({value:{size:f}}),c.push(d),e=b.filter?"string"==typeof b.filter?aO.parseString(b.filter):b.filter:new ao({attribute:"objectclass"});let g=new aP({messageId:-1,baseDN:"string"==typeof a?a:a.toString(),scope:b.scope,filter:e,attributes:b.attributes,explicitBufferAttributes:b.explicitBufferAttributes,returnAttributeValues:b.returnAttributeValues,sizeLimit:b.sizeLimit,timeLimit:b.timeLimit,controls:c});do{let a={searchEntries:[],searchReferences:[]};d=await this._sendSearch(g,a,!0,f,d,!1),yield a}while(d)}async unbind(){try{if(this.rebind=void 0,!this.connected||!this.socket)return;let a=new aR({messageId:this._nextMessageId()});await this._send(a)}finally{this._destroySocket(this.socket)}}[Symbol.asyncDispose](){return this.unbind()}async _sendBind(a){this.isConnected||await this._connect();let b=await this._send(a);if(b?.status!==0)throw aU.parse(b)}async _sendSearch(a,b,c,d,e,f=!0){a.messageId=this._nextMessageId();let g=await this._send(a);if(g?.status!==0&&!(g?.status===4&&a.sizeLimit))throw aU.parse(g);for(let c of g.searchEntries)b.searchEntries.push(c.toObject(a.attributes,a.explicitBufferAttributes));for(let a of g.searchReferences)b.searchReferences.push(...a.uris);if(c&&(g.searchEntries.length||g.searchReferences.length)&&e){let h;for(let a of g.controls??[])if(a instanceof o){h=a;break}if(h?.value?.cookie?.length){if(e.value=e.value??{size:d},e.value.cookie=h.value.cookie,!f)return e;await this._sendSearch(a,b,c,d,e,!0)}}}socketDataHandler=a=>{this.messageParser&&this.messageParser.read(a,this.messageDetailsByMessageId)};_nextMessageId(){return this.messageId+=1,this.messageId>=aV&&(this.messageId=1),this.messageId}_onBindSuccess(a){this.bound=!0,this.clientOptions.autoRebind&&!this.startTLSUpgraded&&(this.rebind=a)}async _ensureConnected(){this.isConnected||(await this._connect(),this.rebind&&!this.bound&&await this.rebind())}_connect(){if(!this.isConnected)return new Promise((a,b)=>{if(this.secure){let b=this.clientOptions.createSecureConnection??h.connect;this.socket=b(this.port,this.host,this.clientOptions.tlsOptions),this.socket.id=f.randomUUID(),this.socket.once("secureConnect",()=>{this._onConnect(a)})}else{let b=this.clientOptions.createConnection??g.connect;this.socket=b(this.port,this.host),this.socket.id=f.randomUUID(),this.socket.once("connect",()=>{this._onConnect(a)})}(this.socket.once("error",a=>{this._destroySocket(this.socket),b(a)}),this.socket.connecting||"open"!==this.socket.readyState)?this.clientOptions.connectTimeout&&(this.connectTimer=setTimeout(()=>{this._destroySocket(this.socket),b(Error("Connection timeout"))},this.clientOptions.connectTimeout)):this._onConnect(a)})}_onConnect(a){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=void 0),this.socket&&(this.socket.removeAllListeners("error"),this.socket.removeAllListeners("connect"),this.socket.removeAllListeners("secureConnect")),this.connected=!0;let b=a=>{for(let[b,c]of this.messageDetailsByMessageId.entries())c.message instanceof aR?c.resolve():c.reject(Error(`Socket error. Message type: ${c.message.constructor.name} (0x${c.message.protocolOperation.toString(16)})
1
+ "use strict";exports.id=6053,exports.ids=[6053],exports.modules={19225:(a,b,c)=>{a.exports=c(44870)},25060:(a,b,c)=>{c.d(b,{Kj:()=>aX});var d=c(34589),e=c(57975),f=c(77598),g=c(77030),h=c(41692),i=c(78474),j=class extends Error{constructor(a){super(a),this.name="InvalidAsn1Error"}},k=class{size;currentLength=0;currentOffset=0;buffer;constructor(a){if(!Buffer.isBuffer(a))throw TypeError("data must be a Buffer");this.buffer=a,this.size=a.length}get length(){return this.currentLength}get offset(){return this.currentOffset}set offset(a){this.currentOffset=a}get remain(){return this.size-this.currentOffset}get remainingBuffer(){return this.buffer.subarray(this.currentOffset)}setBufferSize(a){this.size=a}readByte(a=!1){if(this.size-this.currentOffset<1)return null;let b=this.buffer.readUInt8(this.currentOffset);return a||(this.currentOffset+=1),b}peek(){return this.readByte(!0)}readLength(a){let b=a??this.currentOffset;if(b>=this.size)return null;let c=this.buffer.readUInt8(b);if(b+=1,(128&c)==128){let a=127&c;if(0===a)throw new j("Indefinite length not supported");if(a>4)throw new j("Encoding too long");if(this.size-b<a)return null;this.currentLength=0;for(let c=0;c<a;c++)this.currentLength=(this.currentLength<<8)+this.buffer.readUInt8(b),b+=1}else this.currentLength=c;return b}readSequence(a){let b=this.peek();if(null===b)return null;if(void 0!==a&&a!==b)throw new j(`Expected 0x${a.toString(16)}: got 0x${b.toString(16)}`);let c=this.readLength(this.currentOffset+1);return null===c?null:(this.currentOffset=c,b)}readInt(){return this.readTag(2)}readBoolean(){let a=this.readTag(1);return null===a?null:0!==a}readEnumeration(){return this.readTag(10)}readString(a=4,b=!1){let c=this.peek();if(null===c)return null;if(c!==a)throw new j(`Expected 0x${a.toString(16)}: got 0x${c.toString(16)}`);let d=this.readLength(this.currentOffset+1);if(null===d||this.currentLength>this.size-d)return null;if(this.currentOffset=d,0===this.currentLength)return b?Buffer.alloc(0):"";let e=this.buffer.subarray(this.currentOffset,this.currentOffset+this.currentLength);return this.currentOffset+=this.currentLength,b?e:e.toString("utf8")}readOID(a=6){let b=this.readString(a,!0);if(null===b)return null;let c=[],d=0;for(let a of b)d=(d<<7)+(127&a),(128&a)==0&&(c.push(d),d=0);let e=c[0]??0;return[Math.trunc(e/40),e%40,...c.slice(1)].join(".")}readTag(a){let b=this.peek();if(null===b)return null;if(b!==a)throw new j(`Expected 0x${a.toString(16)}: got 0x${b.toString(16)}`);let c=this.readLength(this.currentOffset+1);if(null===c)return null;if(this.currentLength>4)throw new j(`Integer too long: ${this.currentLength}`);if(this.currentLength>this.size-c)return null;this.currentOffset=c;let d=this.buffer.readUInt8(this.currentOffset),e=0;for(let a=0;a<this.currentLength;a++)e=e<<8|this.buffer.readUInt8(this.currentOffset),this.currentOffset+=1;return(128&d)==128&&this.currentLength<4&&(e-=1<<8*this.currentLength),0|e}},l=class{data;size;currentOffset=0;growthFactor;sequenceOffsets=[];constructor(a={}){const b=a.size??1024;this.growthFactor=a.growthFactor??8,this.data=Buffer.alloc(b),this.size=b}get buffer(){if(this.sequenceOffsets.length>0)throw new j(`${this.sequenceOffsets.length} unended sequence(s)`);return this.data.subarray(0,this.currentOffset)}writeByte(a){this.ensureCapacity(1),this.data[this.currentOffset++]=a}writeInt(a,b=2){let c=a,d=4;for(;((0xff800000&c)==0||(0xff800000&c)==-8388608)&&d>1;)d--,c<<=8;if(d>4)throw new j("BER integers cannot be > 0xffffffff");for(this.ensureCapacity(2+d),this.data[this.currentOffset++]=b,this.data[this.currentOffset++]=d;d>0;)d--,this.data[this.currentOffset++]=(0xff000000&c)>>>24,c<<=8}writeNull(){this.writeByte(5),this.writeByte(0)}writeEnumeration(a,b=10){this.writeInt(a,b)}writeBoolean(a,b=1){this.ensureCapacity(3),this.data[this.currentOffset++]=b,this.data[this.currentOffset++]=1,this.data[this.currentOffset++]=255*!!a}writeString(a,b=4){let c=Buffer.byteLength(a);this.writeByte(b),this.writeLength(c),c>0&&(this.ensureCapacity(c),this.data.write(a,this.currentOffset),this.currentOffset+=c)}writeBuffer(a,b){this.writeByte(b),this.writeLength(a.length),this.ensureCapacity(a.length),a.copy(this.data,this.currentOffset,0,a.length),this.currentOffset+=a.length}writeStringArray(a){for(let b of a)this.writeString(b)}writeOID(a,b=6){if(!/^(\d+\.){3,}\d+$/.test(a))throw Error("Argument is not a valid OID string");let c=a.split("."),d=[],e=c[0]??"0",f=c[1]??"0";for(let a of(d.push(40*Number(e)+Number(f)),c.slice(2)))this.encodeOidOctet(d,Number(a));for(let a of(this.ensureCapacity(2+d.length),this.writeByte(b),this.writeLength(d.length),d))this.writeByte(a)}writeLength(a){if(this.ensureCapacity(4),a<=127)this.data[this.currentOffset++]=a;else if(a<=255)this.data[this.currentOffset++]=129,this.data[this.currentOffset++]=a;else if(a<=65535)this.data[this.currentOffset++]=130,this.data[this.currentOffset++]=a>>8,this.data[this.currentOffset++]=a;else if(a<=0xffffff)this.data[this.currentOffset++]=131,this.data[this.currentOffset++]=a>>16,this.data[this.currentOffset++]=a>>8,this.data[this.currentOffset++]=a;else throw new j("Length too long (> 4 bytes)")}startSequence(a=48){this.writeByte(a),this.sequenceOffsets.push(this.currentOffset),this.ensureCapacity(3),this.currentOffset+=3}endSequence(){let a=this.sequenceOffsets.pop();if(void 0===a)throw new j("No sequence to end");let b=a+3,c=this.currentOffset-b;if(c<=127)this.shiftContent(b,c,-2),this.data[a]=c;else if(c<=255)this.shiftContent(b,c,-1),this.data[a]=129,this.data[a+1]=c;else if(c<=65535)this.data[a]=130,this.data[a+1]=c>>8,this.data[a+2]=c;else if(c<=0xffffff)this.shiftContent(b,c,1),this.data[a]=131,this.data[a+1]=c>>16,this.data[a+2]=c>>8,this.data[a+3]=c;else throw new j("Sequence too long")}encodeOidOctet(a,b){b<128?a.push(b):(b<16384?a.push(b>>>7|128):(b<2097152?a.push(b>>>14|128):(b<0x10000000?a.push(b>>>21|128):(a.push((b>>>28|128)&255),a.push((b>>>21|128)&255)),a.push((b>>>14|128)&255)),a.push((b>>>7|128)&255)),a.push(127&b))}shiftContent(a,b,c){this.data.copy(this.data,a+c,a,a+b),this.currentOffset+=c}ensureCapacity(a){if(this.size-this.currentOffset<a){let b=this.size*this.growthFactor;b-this.currentOffset<a&&(b+=a);let c=Buffer.alloc(b);this.data.copy(c,0,0,this.currentOffset),this.data=c,this.size=b}}},m=class{type;critical;constructor(a,b={}){this.type=a,this.critical=!0===b.critical}write(a){a.startSequence(),a.writeString(this.type),a.writeBoolean(this.critical),this.writeControl(a),a.endSequence()}parse(a){this.parseControl(a)}writeControl(a){}parseControl(a){}},n=class a extends m{static type="2.16.840.1.113730.3.4.7";value;constructor(b={}){super(a.type,b),this.value=b.value}parseControl(a){if(a.readSequence()){let b,c=a.readInt()??0;8===c&&(b=a.readString());let d=a.readInt()??0;this.value={changeType:c,previousDN:b,changeNumber:d}}}writeControl(a){if(!this.value)return;let b=new l;b.startSequence(),b.writeInt(this.value.changeType),this.value.previousDN&&b.writeString(this.value.previousDN),b.writeInt(this.value.changeNumber),b.endSequence(),a.writeBuffer(b.buffer,4)}},o=class a extends m{static type="1.2.840.113556.1.4.319";value;constructor(b={}){super(a.type,b),this.value=b.value}parseControl(a){if(a.readSequence()){let b=a.readInt()??0,c=a.readString(4,!0)??Buffer.alloc(0);this.value={size:b,cookie:c}}}writeControl(a){if(!this.value)return;let b=new l;b.startSequence(),b.writeInt(this.value.size),this.value.cookie?.length?b.writeBuffer(this.value.cookie,4):b.writeString(""),b.endSequence(),a.writeBuffer(b.buffer,4)}},p=class a extends m{static type="2.16.840.1.113730.3.4.3";value;constructor(b={}){super(a.type,b),this.value=b.value}parseControl(a){if(a.readSequence()){let b=a.readInt()??0,c=a.readBoolean()??!1,d=a.readBoolean()??!1;this.value={changeTypes:b,changesOnly:c,returnECs:d}}}writeControl(a){if(!this.value)return;let b=new l;b.startSequence(),b.writeInt(this.value.changeTypes),b.writeBoolean(this.value.changesOnly),b.writeBoolean(this.value.returnECs),b.endSequence(),a.writeBuffer(b.buffer,4)}},q=class a extends m{static type="1.2.840.113556.1.4.473";values;constructor(b={}){super(a.type,b),Array.isArray(b.value)?this.values=b.value:"object"==typeof b.value?this.values=[b.value]:this.values=[]}parseControl(a){if(a.readSequence(48))for(;a.readSequence(48);){let b=a.readString()??"",c="",d=!1;128===a.peek()&&(c=a.readString(128)??""),129===a.peek()&&(d=0!==a.readTag(129)),this.values.push({attributeType:b,orderingRule:c,reverseOrder:d})}}writeControl(a){if(!this.values.length)return;let b=new l;for(let a of(b.startSequence(48),this.values))b.startSequence(48),b.writeString(a.attributeType,4),a.orderingRule&&b.writeString(a.orderingRule,128),void 0!==a.reverseOrder&&b.writeBoolean(a.reverseOrder,129),b.endSequence();b.endSequence(),a.writeBuffer(b.buffer,4)}},r=class a extends Error{messageDetails;constructor(b){super(b),this.name="MessageParserError",Object.setPrototypeOf(this,a.prototype)}},s=class a extends Error{code;constructor(b,c){super(`${c} Code: 0x${b.toString(16)}`),this.name="ResultCodeError",this.code=b,Object.setPrototypeOf(this,a.prototype)}},t=class a extends s{constructor(b){super(11,b??"An LDAP server limit set by an administrative authority has been exceeded."),this.name="AdminLimitExceededError",Object.setPrototypeOf(this,a.prototype)}},u=class a extends s{constructor(b){super(71,b??"The modify DN operation moves the entry from one LDAP server to another and thus requires more than one LDAP server."),this.name="AffectsMultipleDSAsError",Object.setPrototypeOf(this,a.prototype)}},v=class a extends s{constructor(b){super(36,b??"Either the client does not have access rights to read the aliased object's name or dereferencing is not allowed."),this.name="AliasDerefProblemError",Object.setPrototypeOf(this,a.prototype)}},w=class a extends s{constructor(b){super(33,b??"An error occurred when an alias was dereferenced."),this.name="AliasProblemError",Object.setPrototypeOf(this,a.prototype)}},x=class a extends s{constructor(b){super(68,b??"The add operation attempted to add an entry that already exists, or that the modify operation attempted to rename an entry to the name of an entry that already exists."),this.name="AlreadyExistsError",Object.setPrototypeOf(this,a.prototype)}},y=class a extends s{constructor(b){super(7,b??"The Directory Server does not support the requested Authentication Method."),this.name="AuthMethodNotSupportedError",Object.setPrototypeOf(this,a.prototype)}},z=class a extends s{constructor(b){super(51,b??"The LDAP server is too busy to process the client request at this time."),this.name="BusyError",Object.setPrototypeOf(this,a.prototype)}},A=class a extends s{constructor(b){super(13,b??"The session is not protected by a protocol such as Transport Layer Security (TLS), which provides session confidentiality and the request will not be handled without confidentiality enabled."),this.name="ConfidentialityRequiredError",Object.setPrototypeOf(this,a.prototype)}},B=class a extends s{constructor(b){super(19,b??"The attribute value specified in a Add Request, Modify Request or ModifyDNRequest operation violates constraints placed on the attribute. The constraint can be one of size or content (string only, no binary)."),this.name="ConstraintViolationError",Object.setPrototypeOf(this,a.prototype)}},C=class a extends s{constructor(b){super(48,b??"The client is attempting to use an authentication method incorrectly."),this.name="InappropriateAuthError",Object.setPrototypeOf(this,a.prototype)}},D=class a extends s{constructor(b){super(18,b??"The matching rule specified in the search filter does not match a rule defined for the attribute's syntax."),this.name="InappropriateMatchingError",Object.setPrototypeOf(this,a.prototype)}},E=class a extends s{constructor(b){super(50,b??"The caller does not have sufficient rights to perform the requested operation."),this.name="InsufficientAccessError",Object.setPrototypeOf(this,a.prototype)}},F=class a extends s{constructor(b){super(49,b??"Invalid credentials during a bind operation."),this.name="InvalidCredentialsError",Object.setPrototypeOf(this,a.prototype)}},G=class a extends s{constructor(b){super(34,b??"The syntax of the DN is incorrect."),this.name="InvalidDNSyntaxError",Object.setPrototypeOf(this,a.prototype)}},H=class a extends s{constructor(b){super(21,b??"The attribute value specified in an Add Request, Compare Request, or Modify Request operation is an unrecognized or invalid syntax for the attribute."),this.name="InvalidSyntaxError",Object.setPrototypeOf(this,a.prototype)}},I=class a extends s{constructor(b){super(35,b??"The specified operation cannot be performed on a leaf entry."),this.name="IsLeafError",Object.setPrototypeOf(this,a.prototype)}},J=class a extends s{constructor(b){super(54,b??"The client discovered an alias or LDAP Referral loop, and is thus unable to complete this request."),this.name="LoopDetectError",Object.setPrototypeOf(this,a.prototype)}},K=class a extends s{constructor(b){super(95,b),this.name="MoreResultsToReturnError",Object.setPrototypeOf(this,a.prototype)}},L=class a extends s{constructor(b){super(64,b??"The Add Request or Modify DN Request operation violates the schema's structure rules."),this.name="NamingViolationError",Object.setPrototypeOf(this,a.prototype)}},M=class a extends s{constructor(b){super(69,b??"The modify operation attempted to modify the structure rules of an object class."),this.name="NoObjectClassModsError",Object.setPrototypeOf(this,a.prototype)}},N=class a extends s{constructor(b){super(16,b??"The attribute specified in the Modify Request or Compare Request operation does not exist in the entry."),this.name="NoSuchAttributeError",Object.setPrototypeOf(this,a.prototype)}},O=class a extends s{constructor(b){super(32,b??"The target object cannot be found."),this.name="NoSuchObjectError",Object.setPrototypeOf(this,a.prototype)}},P=class a extends s{constructor(b){super(66,b??"The requested operation is permitted only on leaf entries."),this.name="NotAllowedOnNonLeafError",Object.setPrototypeOf(this,a.prototype)}},Q=class a extends s{constructor(b){super(67,b??"The modify operation attempted to remove an attribute value that forms the entry's relative distinguished name."),this.name="NotAllowedOnRDNError",Object.setPrototypeOf(this,a.prototype)}},R=class a extends s{constructor(b){super(248,b??"No result message for the request."),this.name="NoResultError",Object.setPrototypeOf(this,a.prototype)}},S=class a extends s{constructor(b){super(65,b??"The Add Request, Modify Request, or modify DN operation violates the object class rules for the entry."),this.name="ObjectClassViolationError",Object.setPrototypeOf(this,a.prototype)}},T=class a extends s{constructor(b){super(1,b??"Request was out of sequence with another operation in progress."),this.name="OperationsError",Object.setPrototypeOf(this,a.prototype)}},U=class a extends s{constructor(b){super(2,b??"Client sent data to the server that did not comprise a valid LDAP request."),this.name="ProtocolError",Object.setPrototypeOf(this,a.prototype)}},V=class a extends s{constructor(b){super(70,b??"Results are too large."),this.name="ResultsTooLargeError",Object.setPrototypeOf(this,a.prototype)}},W=class a extends s{response;constructor(b){super(14,b.errorMessage||"The server is ready for the next step in the SASL authentication process. The client must send the server the same SASL Mechanism to continue the process."),this.response=b,this.name="SaslBindInProgressError",Object.setPrototypeOf(this,a.prototype)}},X=class a extends s{constructor(b){super(4,b??"There were more entries matching the criteria contained in a SearchRequest operation than were allowed to be returned by the size limit configuration."),this.name="SizeLimitExceededError",Object.setPrototypeOf(this,a.prototype)}},Y=class a extends s{constructor(b){super(8,b??"Client requested an operation that requires strong authentication."),this.name="StrongAuthRequiredError",Object.setPrototypeOf(this,a.prototype)}},Z=class a extends s{constructor(b){super(3,b??"Processing on the associated request Timeout limit specified by either the client request or the server administration limits has been exceeded and has been terminated because it took too long to complete."),this.name="TimeLimitExceededError",Object.setPrototypeOf(this,a.prototype)}},$=class a extends s{constructor(b){super(112,b??"TLS is not supported on the server."),this.name="TLSNotSupportedError",Object.setPrototypeOf(this,a.prototype)}},_=class a extends s{constructor(b){super(20,b??"The attribute value specified in a Add Request or Modify Request operation already exists as a value for that attribute."),this.name="TypeOrValueExistsError",Object.setPrototypeOf(this,a.prototype)}},aa=class a extends s{constructor(b){super(12,b??"One or more critical extensions were not available by the LDAP server. Either the server does not support the control or the control is not appropriate for the operation type."),this.name="UnavailableCriticalExtensionError",Object.setPrototypeOf(this,a.prototype)}},ab=class a extends s{constructor(b){super(52,b??"The LDAP server cannot process the client's bind request."),this.name="UnavailableError",Object.setPrototypeOf(this,a.prototype)}},ac=class a extends s{constructor(b){super(17,b??"The attribute specified in the modify or add operation does not exist in the LDAP server's schema."),this.name="UndefinedTypeError",Object.setPrototypeOf(this,a.prototype)}},ad=class a extends s{constructor(b,c){super(b,c??"Unknown error."),this.name="UnknownStatusCodeError",Object.setPrototypeOf(this,a.prototype)}},ae=class a extends s{constructor(b){super(53,b??"The LDAP server cannot process the request because of server-defined restrictions."),this.name="UnwillingToPerformError",Object.setPrototypeOf(this,a.prototype)}},af=class a{write(a){a.startSequence(this.type),this.writeFilter(a),a.endSequence()}parse(a){this.parseFilter(a)}matches(a={},b){return!0}static escape(a){let b="";if(Buffer.isBuffer(a))for(let c of a)c<16?b+=`\\0${c.toString(16)}`:b+=`\\${c.toString(16)}`;else for(let c of a)switch(c){case"*":b+="\\2a";break;case"(":b+="\\28";break;case")":b+="\\29";break;case"\\":b+="\\5c";break;case"\0":b+="\\00";break;default:b+=c}return b}escape(b){return a.escape(b)}parseFilter(a){}writeFilter(a){}getObjectValue(a,b,c){let d;if(void 0!==a[b])d=b;else if(!c&&"objectclass"===b.toLowerCase()){for(let c of Object.keys(a))if(c.toLowerCase()===b.toLowerCase()){d=c;break}}if(d)return a[d]}},ag=class extends af{type=160;filters;constructor(a){super(),this.filters=a.filters}writeFilter(a){for(let b of this.filters)b.write(a)}matches(a={},b){if(!this.filters.length)return!0;for(let c of this.filters)if(!c.matches(a,b))return!1;return!0}toString(){let a="(&";for(let b of this.filters)a+=b.toString();return a+")"}},ah=class extends af{type=168;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=(a.readString()??"").toLowerCase(),this.value=a.readString()??""}writeFilter(a){a.writeString(this.attribute),a.writeString(this.value)}matches(a={},b){throw Error("Approximate match implementation unknown")}toString(){return`(${af.escape(this.attribute)}~=${af.escape(this.value)})`}},ai=class extends af{type=163;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=(a.readString()??"").toLowerCase(),this.value=a.readString()??"","objectclass"===this.attribute&&(this.value=this.value.toLowerCase())}writeFilter(a){a.writeString(this.attribute),Buffer.isBuffer(this.value)?a.writeBuffer(this.value,4):a.writeString(this.value)}matches(a={},b){let c=this.getObjectValue(a,this.attribute,b);if(void 0!==c){if(Buffer.isBuffer(this.value)&&Buffer.isBuffer(c))return this.value===c;let a=Buffer.isBuffer(this.value)?this.value.toString("utf8"):this.value;return b?a===c:a.toLowerCase()===c.toLowerCase()}return!1}toString(){return`(${af.escape(this.attribute)}=${af.escape(this.value)})`}},aj=class extends af{type=169;value;rule;matchType;dnAttributes;constructor(a={}){super(),this.matchType=a.matchType??"",this.rule=a.rule??"",this.dnAttributes=!0===a.dnAttributes,this.value=a.value??""}parseFilter(a){let b=a.offset+a.length;for(;a.offset<b;){let b=a.peek();switch(b){case 129:this.rule=a.readString(b)??"";break;case 130:this.matchType=a.readString(b)??"";break;case 131:this.value=a.readString(b)??"";break;case 132:this.dnAttributes=a.readBoolean()??!1;break;default:{let a="<null>";throw b&&(a=`0x${b.toString(16)}`),Error(`Invalid ext_match filter type: ${a}`)}}}}writeFilter(a){this.rule&&a.writeString(this.rule,129),this.matchType&&a.writeString(this.matchType,130),a.writeString(this.value,131),this.dnAttributes&&a.writeBoolean(this.dnAttributes,132)}matches(a={},b){throw Error("Approximate match implementation unknown")}toString(){let a=`(${af.escape(this.matchType)}:`;return this.dnAttributes&&(a+="dn:"),this.rule&&(a+=`${af.escape(this.rule)}:`),a+=`=${af.escape(this.value)})`}},ak=class extends af{type=165;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=a.readString()?.toLowerCase()??"",this.value=a.readString()??""}writeFilter(a){a.writeString(this.attribute),a.writeString(this.value)}matches(a={},b){let c=this.getObjectValue(a,this.attribute,b);return void 0!==c&&(b?c>=this.value:c.toLowerCase()>=this.value.toLowerCase())}toString(){return`(${af.escape(this.attribute)}>=${af.escape(this.value)})`}},al=class extends af{type=166;attribute;value;constructor(a={}){super(),this.attribute=a.attribute??"",this.value=a.value??""}parseFilter(a){this.attribute=a.readString()?.toLowerCase()??"",this.value=a.readString()??""}writeFilter(a){a.writeString(this.attribute),a.writeString(this.value)}matches(a={},b){let c=this.getObjectValue(a,this.attribute,b);return void 0!==c&&(b?c<=this.value:c.toLowerCase()<=this.value.toLowerCase())}toString(){return`(${af.escape(this.attribute)}<=${af.escape(this.value)})`}},am=class extends af{type=162;filter;constructor(a){super(),this.filter=a.filter}writeFilter(a){this.filter.write(a)}matches(a={},b){return!this.filter.matches(a,b)}toString(){return`(!${this.filter.toString()})`}},an=class extends af{type=161;filters;constructor(a){super(),this.filters=a.filters}writeFilter(a){for(let b of this.filters)b.write(a)}matches(a={},b){if(!this.filters.length)return!0;for(let c of this.filters)if(c.matches(a,b))return!0;return!1}toString(){let a="(|";for(let b of this.filters)a+=b.toString();return a+")"}},ao=class extends af{type=135;attribute;constructor(a={}){super(),this.attribute=a.attribute??""}parseFilter(a){this.attribute=a.buffer.subarray(0,a.length).toString("utf8").toLowerCase(),a.offset+=a.length}writeFilter(a){for(let b=0;b<this.attribute.length;b+=1)a.writeByte(this.attribute.charCodeAt(b))}matches(a={},b){return void 0!==this.getObjectValue(a,this.attribute,b)}toString(){return`(${af.escape(this.attribute)}=*)`}},ap=class a extends af{type=164;attribute;initial;any;final;constructor(a={}){super(),this.attribute=a.attribute??"",this.initial=a.initial??"",this.any=a.any??[],this.final=a.final??""}parseFilter(a){this.attribute=a.readString()?.toLowerCase()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=a.peek();switch(b){case 128:this.initial=a.readString(b)??"","objectclass"===this.attribute&&(this.initial=this.initial.toLowerCase());break;case 129:{let c=a.readString(b)??"";"objectclass"===this.attribute&&(c=c.toLowerCase()),this.any.push(c);break}case 130:this.final=a.readString(b)??"","objectclass"===this.attribute&&(this.final=this.final.toLowerCase());break;default:{let a="<null>";throw b&&(a=`0x${b.toString(16)}`),Error(`Invalid substring filter type: ${a}`)}}}}writeFilter(a){for(let b of(a.writeString(this.attribute),a.startSequence(),this.initial&&a.writeString(this.initial,128),this.any))a.writeString(b,129);this.final&&a.writeString(this.final,130),a.endSequence()}matches(b={},c){let d=this.getObjectValue(b,this.attribute,c);if(void 0!==d){let b="";for(let c of(this.initial&&(b+=`^${a._escapeRegExp(this.initial)}.*`),this.any))b+=`${a._escapeRegExp(c)}.*`;return this.final&&(b+=`${a._escapeRegExp(this.final)}$`),new RegExp(b,c?"gmu":"igmu").test(d)}return!1}toString(){let a=`(${af.escape(this.attribute)}=${af.escape(this.initial)}*`;for(let b of this.any)a+=`${af.escape(b)}*`;return a+`${af.escape(this.final)})`}static _escapeRegExp(a){return a.replace(/[$()*+./?[\\\]^{|}-]/g,"\\$&")}},aq=class{static parse(a,b){let c;if(null===a.readSequence())return null;let d="",e=!1,f=Buffer.alloc(0);if(a.length){let b=a.offset+a.length;d=a.readString()??"",a.offset<b&&1===a.peek()&&(e=a.readBoolean()??!1),a.offset<b&&(f=a.readString(4,!0)??Buffer.alloc(0))}switch(d){case n.type:c=new n({critical:e});break;case o.type:c=new o({critical:e});break;case p.type:c=new p({critical:e});break;case q.type:c=new q({critical:e});break;default:c=b.find(a=>a.type===d)}if(!c)return null;let g=new k(f);return c.parse(g),c}},ar=class{version=3;messageId=0;controls;constructor(a){this.messageId=a.messageId,this.controls=a.controls}write(){let a=new l;if(a.startSequence(),a.writeInt(this.messageId),a.startSequence(this.protocolOperation),this.writeMessage(a),a.endSequence(),this.controls?.length){for(let b of(a.startSequence(160),this.controls))b.write(a);a.endSequence()}return a.endSequence(),a.buffer}parse(a,b){if(this.controls=[],this.parseMessage(a),160===a.peek()){a.readSequence();let c=a.offset+a.length;for(;a.offset<c;){let c=aq.parse(a,b);c&&this.controls.push(c)}}}toString(){return JSON.stringify({messageId:this.messageId,messageType:this.constructor.name},null,2)}parseMessage(a){}writeMessage(a){}},as=class extends ar{protocolOperation;abandonId;constructor(a){super(a),this.protocolOperation=80,this.abandonId=a.abandonId??0}writeMessage(a){let b=this.abandonId,c=4;for(;((0xff800000&b)==0||(0xff800000&b)==0xff800000)&&c>1;)c-=1,b<<=8;for(d.ok(c<=4);c-- >0;)a.writeByte((0xff000000&b)>>24),b<<=8}parseMessage(a){let{length:b}=a;if(b){let c,d=1,e=a.buffer[d]??0;c=127&e;for(let e=1;e<b;e+=1)c<<=8,d+=1,c|=255&(a.buffer[d]??0);(128&e)==128&&(c=-c),a.offset+=b,this.abandonId=c}else this.abandonId=0}};let at=new e.TextDecoder("utf8",{fatal:!0});var au=class{buffers=[];type;values;constructor(a={}){this.type=a.type??"",this.values=a.values??[]}get parsedBuffers(){return this.buffers}write(a){a.startSequence();let{type:b}=this;if(a.writeString(b),a.startSequence(49),this.values.length)for(let b of this.values)Buffer.isBuffer(b)?a.writeBuffer(b,4):a.writeString(b);else a.writeStringArray([]);a.endSequence(),a.endSequence()}parse(a){a.readSequence(),this.type=a.readString()??"";let b=this._isBinaryType();if(49===a.peek()&&a.readSequence(49)){let c=a.offset+a.length;for(;a.offset<c;){let c=a.readString(4,!0)??Buffer.alloc(0);if(this.buffers.push(c),b)this.values.push(c);else try{let a=at.decode(c);this.values.push(a)}catch{this.values.push(c)}}}}_isBinaryType(){return/;binary$/i.test(this.type||"")}},av=class extends ar{protocolOperation;dn;attributes;constructor(a){super(a),this.protocolOperation=104,this.dn=a.dn,this.attributes=a.attributes??[]}writeMessage(a){for(let b of(a.writeString(this.dn),a.startSequence(),this.attributes))b.write(a);a.endSequence()}parseMessage(a){this.dn=a.readString()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=new au;b.parse(a),this.attributes.push(b)}}},aw=class extends ar{status;matchedDN;errorMessage;constructor(a){super(a),this.status=a.status??0,this.matchedDN=a.matchedDN??"",this.errorMessage=a.errorMessage??""}parseMessage(a){this.status=a.readEnumeration()??0,this.matchedDN=a.readString()??"",this.errorMessage=a.readString()??""}},ax=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=105}};let ay=["EXTERNAL","PLAIN","DIGEST-MD5","SCRAM-SHA-1"];var az=class extends ar{protocolOperation;dn;password;mechanism;constructor(a){super(a),this.protocolOperation=96,this.dn=a.dn??"",this.password=a.password??"",this.mechanism=a.mechanism}writeMessage(a){a.writeInt(this.version),a.writeString(this.dn),this.mechanism?(a.startSequence(163),a.writeString(this.mechanism),a.writeString(this.password),a.endSequence()):a.writeString(this.password,128)}parseMessage(a){this.version=a.readInt()??3,this.dn=a.readString()??"";let b=a.peek();if(128!==b){let a="<null>";throw b&&(a=`0x${b.toString(16)}`),Error(`Authentication type not supported: ${a}`)}this.password=a.readString(128)??""}},aA=class extends aw{protocolOperation;data=[];constructor(a){super(a),this.protocolOperation=97}parseMessage(a){for(super.parseMessage(a);a.remain>0;){let b=a.peek();if(160===b)break;this.data.push(a.readString("number"==typeof b?b:void 0)??"")}}},aB=class extends ar{protocolOperation;dn;attribute;value;constructor(a){super(a),this.protocolOperation=110,this.attribute=a.attribute??"",this.value=a.value??"",this.dn=a.dn??""}writeMessage(a){a.writeString(this.dn),a.startSequence(),a.writeString(this.attribute),a.writeString(this.value),a.endSequence()}parseMessage(a){this.dn=a.readString()??"",a.readSequence(),this.attribute=(a.readString()??"").toLowerCase(),this.value=a.readString()??""}},aC=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=111}},aD=class extends ar{protocolOperation;dn;constructor(a){super(a),this.protocolOperation=74,this.dn=a.dn??""}writeMessage(a){for(let b of Buffer.from(this.dn))a.writeByte(b)}parseMessage(a){let{length:b}=a;this.dn=a.buffer.subarray(0,b).toString("utf8"),a.offset+=a.length}},aE=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=107}},aF=class extends ar{protocolOperation;oid;value;constructor(a){super(a),this.protocolOperation=119,this.oid=a.oid??"",this.value=a.value??""}writeMessage(a){a.writeString(this.oid,128),Buffer.isBuffer(this.value)?a.writeBuffer(this.value,129):this.value&&a.writeString(this.value,129)}parseMessage(a){if(this.oid=a.readString(128)??"",129===a.peek())try{this.value=a.readString(129)??""}catch{this.value=a.readString(129,!0)??Buffer.alloc(0)}}},aG=class extends aw{protocolOperation;oid;value;constructor(a){super(a),this.protocolOperation=120,this.oid=a.oid,this.value=a.value}parseMessage(a){super.parseMessage(a),138===a.peek()&&(this.oid=a.readString(138)??""),139===a.peek()&&(this.value=a.readString(139)??void 0)}},aH=class extends ar{protocolOperation;deleteOldRdn;dn;newRdn;newSuperior;constructor(a){super(a),this.protocolOperation=108,this.deleteOldRdn=!1!==a.deleteOldRdn,this.dn=a.dn??"",this.newRdn=a.newRdn??"",this.newSuperior=a.newSuperior??""}writeMessage(a){a.writeString(this.dn),a.writeString(this.newRdn),a.writeBoolean(this.deleteOldRdn),this.newSuperior&&a.writeString(this.newSuperior,128)}parseMessage(a){this.dn=a.readString()??"",this.newRdn=a.readString()??"",this.deleteOldRdn=a.readBoolean()??!1,128===a.peek()&&(this.newSuperior=a.readString(128)??"")}},aI=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=109}},aJ=class{operation;modification;constructor(a={modification:new au}){this.operation=a.operation??"add",this.modification=a.modification}write(a){switch(a.startSequence(),this.operation){case"add":a.writeEnumeration(0);break;case"delete":a.writeEnumeration(1);break;case"replace":a.writeEnumeration(2);break;default:throw Error(`Unknown change operation: ${this.operation}`)}this.modification.write(a),a.endSequence()}parse(a){a.readSequence();let b=a.readEnumeration();switch(b){case 0:this.operation="add";break;case 1:this.operation="delete";break;case 2:this.operation="replace";break;case null:throw Error("Unknown change operation - <null> operation value");default:throw Error(`Unknown change operation: 0x${b.toString(16)}`)}this.modification=new au,this.modification.parse(a)}},aK=class extends ar{protocolOperation;dn;changes;constructor(a){super(a),this.protocolOperation=102,this.dn=a.dn??"",this.changes=a.changes??[]}writeMessage(a){for(let b of(a.writeString(this.dn),a.startSequence(),this.changes))b.write(a);a.endSequence()}parseMessage(a){this.dn=a.readString()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=new aJ;b.parse(a),this.changes.push(b)}}},aL=class extends aw{protocolOperation;constructor(a){super(a),this.protocolOperation=103}},aM=class extends aw{protocolOperation;name;attributes;constructor(a){super(a),this.protocolOperation=100,this.name=a.name??"",this.attributes=a.attributes??[]}parseMessage(a){this.name=a.readString()??"",a.readSequence();let b=a.offset+a.length;for(;a.offset<b;){let b=new au;b.parse(a),this.attributes.push(b)}}toObject(a,b){let c={dn:this.name},d=new Set;for(let a of this.attributes){d.add(a.type.toLocaleLowerCase());let{values:e}=a;(b.includes(a.type)||e.some(a=>Buffer.isBuffer(a)))&&(e=a.parsedBuffers),e.length?1===e.length?c[a.type]=e[0]??[]:c[a.type]=e:c[a.type]=[]}for(let b of a)void 0!==c[b]||d.has(b.toLocaleLowerCase())||(c[b]=[]);return c}},aN=class extends aw{protocolOperation;uris;constructor(a){super(a),this.protocolOperation=115,this.uris=a.uris??[]}parseMessage(a){let b=a.offset+a.length;for(;a.offset<b;){let b=a.readString()??"";this.uris.push(b)}}},aO=class a{static parseString(b){if(!b)throw Error("Filter cannot be empty");b.startsWith("(")||(b=`(${b})`);let c=a._parseString(b,0,b),d=b.length-1;if(c.end<d)throw Error(`Unbalanced parens in filter string: ${b}`);return c.filter}static parse(b){let c,d=b.readSequence();switch(d){case 160:c=new ag({filters:a._parseSet(b)});break;case 168:(c=new ah).parse(b);break;case 163:(c=new ai).parse(b);break;case 169:(c=new aj).parse(b);break;case 165:(c=new ak).parse(b);break;case 166:(c=new al).parse(b);break;case 162:c=new am({filter:a.parse(b)});break;case 161:c=new an({filters:a._parseSet(b)});break;case 135:(c=new ao).parse(b);break;case 164:(c=new ap).parse(b);break;default:throw Error(`Invalid search filter type: 0x${d??"<null>"}`)}return c}static _parseString(b,c,d){let e,f=c,{length:g}=b;if("("!==b[f])throw Error(`Missing paren: ${b}. Full string: ${d}`);switch(b[f+=1]){case"&":{f+=1;let c=[];do{let e=a._parseString(b,f,d);c.push(e.filter),f=e.end+1}while(f<g&&")"!==b[f]);e=new ag({filters:c});break}case"|":{f+=1;let c=[];do{let e=a._parseString(b,f,d);c.push(e.filter),f=e.end+1}while(f<g&&")"!==b[f]);e=new an({filters:c});break}case"!":{let c=a._parseString(b,f+1,d);e=new am({filter:c.filter}),f=c.end+1;break}default:{let c=b.indexOf(")",f);if(-1===c)throw Error(`Unbalanced parens: ${b}. Full string: ${d}`);e=a._parseExpressionFilterFromString(b.substring(f,c)),f=c}}return{end:f,filter:e}}static _parseExpressionFilterFromString(b){let c,d;if(b.startsWith(":"))c="",d=b;else{let a=/^[\w-]+/.exec(b);if(a?.length)[c]=a,d=b.slice(c.length);else throw Error(`Invalid attribute name: ${b}`)}if("=*"===d)return new ao({attribute:c});if(d.startsWith("=")){if((d=d.slice(1)).includes("*")){let b=a._unescapeSubstring(d);return new ap({attribute:c,initial:b.initial,any:b.any,final:b.final})}return new ai({attribute:c,value:a._unescapeHexValues(d)})}if(d.startsWith(">")&&"="===d[1])return new ak({attribute:c,value:a._unescapeHexValues(d.slice(2))});if(d.startsWith("<")&&"="===d[1])return new al({attribute:c,value:a._unescapeHexValues(d.slice(2))});if(d.startsWith("~")&&"="===d[1])return new ah({attribute:c,value:a._unescapeHexValues(d.slice(2))});if(d.startsWith(":"))return a._parseExtensibleFilterFromString(c,d);throw Error(`Invalid expression: ${b}`)}static _parseExtensibleFilterFromString(b,c){let d,e=!1,f=c.split(":");if(f.length<=1)throw Error(`Invalid extensible filter: ${c}`);if(f.shift(),f[0]?.toLowerCase()==="dn"&&(e=!0,f.shift()),f.length&&!f[0]?.startsWith("=")&&(d=f.shift()),f.length&&!f[0]?.startsWith("="))throw Error(`Missing := in extensible filter: ${c}`);let g=f.join(":").slice(1);return new aj({matchType:b,dnAttributes:e,rule:d,value:a._unescapeHexValues(g)})}static _unescapeHexValues(a){let b=0,c=a.length,d="";for(;b<c;){let c=a[b];switch(c){case"(":throw Error(`Illegal unescaped character: ${c} in value: ${a}`);case"\\":{let c=a.slice(b+1,b+3);if(null===/^[\dA-Fa-f]{2}$/.exec(c))throw Error(`Invalid escaped hex character: ${c} in value: ${a}`);d+=String.fromCharCode(Number.parseInt(c,16)),b+=3;break}default:c&&(d+=c),b+=1}}return d}static _unescapeSubstring(b){let c=b.split("*");if(c.length<2)throw Error(`Wildcard missing: ${b}`);return{initial:a._unescapeHexValues(c.shift()??""),final:a._unescapeHexValues(c.pop()??""),any:c.map(b=>a._unescapeHexValues(b))}}static _parseSet(b){let c=[],d=b.offset+b.length;for(;b.offset<d;)c.push(a.parse(b));return c}},aP=class extends ar{protocolOperation;baseDN;scope;derefAliases;sizeLimit;timeLimit;returnAttributeValues;filter;attributes;explicitBufferAttributes;constructor(a){super(a),this.protocolOperation=99,this.baseDN=a.baseDN??"",this.scope=a.scope??"sub",this.derefAliases=a.derefAliases??"never",this.sizeLimit=a.sizeLimit??0,this.timeLimit=a.timeLimit??10,this.returnAttributeValues=!1!==a.returnAttributeValues,this.filter=a.filter,this.attributes=a.attributes??[],this.explicitBufferAttributes=a.explicitBufferAttributes??[]}writeMessage(a){switch(a.writeString(this.baseDN),this.scope){case"base":a.writeEnumeration(0);break;case"one":a.writeEnumeration(1);break;case"sub":a.writeEnumeration(2);break;case"children":case"subordinates":a.writeEnumeration(3);break;default:throw Error(`Invalid search scope: ${this.scope}`)}switch(this.derefAliases){case"never":a.writeEnumeration(0);break;case"search":a.writeEnumeration(1);break;case"find":a.writeEnumeration(2);break;case"always":a.writeEnumeration(3);break;default:throw Error(`Invalid deref alias: ${this.derefAliases}`)}for(let b of(a.writeInt(this.sizeLimit),a.writeInt(this.timeLimit),a.writeBoolean(!this.returnAttributeValues),this.filter.write(a),a.startSequence(),this.attributes))a.writeString(b);a.endSequence()}parseMessage(a){this.baseDN=a.readString()??"";let b=a.readEnumeration();switch(b){case 0:this.scope="base";break;case 1:this.scope="one";break;case 2:this.scope="sub";break;case 3:this.scope="children";break;default:throw Error(`Invalid search scope: ${b??"<null>"}`)}let c=a.readEnumeration();switch(b){case 0:this.derefAliases="never";break;case 1:this.derefAliases="search";break;case 2:this.derefAliases="find";break;case 3:this.derefAliases="always";break;default:throw Error(`Invalid deref alias: ${c??"<null>"}`)}if(this.sizeLimit=a.readInt()??0,this.timeLimit=a.readInt()??0,this.returnAttributeValues=!a.readBoolean(),this.filter=aO.parse(a),48===a.peek()){a.readSequence();let b=a.offset+a.length;for(;a.offset<b;)this.attributes.push((a.readString()??"").toLowerCase())}}},aQ=class extends aw{protocolOperation;searchEntries;searchReferences;constructor(a){super(a),this.protocolOperation=101,this.searchEntries=a.searchEntries??[],this.searchReferences=a.searchReferences??[]}},aR=class extends ar{protocolOperation;constructor(a){super(a),this.protocolOperation=66}};let aS=i.EventEmitter;var aT=class extends aS{buffer;read(a,b){let c,d,e;this.buffer?this.buffer=Buffer.concat([this.buffer,a]):this.buffer=a;let f=new k(this.buffer),g=null;try{g=f.readSequence()}catch(a){this.emit("error",a)}if(g&&!(f.remain<f.length)){f.remain>f.length&&(c=this.buffer.subarray(f.offset+f.length),f.setBufferSize(f.offset+f.length)),delete this.buffer;try{if(d=f.readInt(),null==d)throw Error("Unable to read message id");if(e=f.readSequence(),null==e)throw Error(`Unable to read protocol operation sequence for message: ${d}`);let a=b.get(`${d}`),c=this._getMessageFromProtocolOperation(d,e,f,a?.message);this.emit("message",c)}catch(a){if(d){a.messageDetails={messageId:d},e&&(a.messageDetails.protocolOperation=e),this.emit("error",a);return}this.emit("error",a);return}c&&this.read(c,b)}}_getMessageFromProtocolOperation(a,b,c,d){let e;switch(b){case 97:e=new aA({messageId:a});break;case 105:e=new ax({messageId:a});break;case 111:e=new aC({messageId:a});break;case 107:e=new aE({messageId:a});break;case 120:e=new aG({messageId:a});break;case 109:e=new aI({messageId:a});break;case 103:e=new aL({messageId:a});break;case 101:e=new aQ({messageId:a});break;case 100:e=new aM({messageId:a});break;case 115:e=new aN({messageId:a});break;default:{let c=new r(`Protocol Operation not supported: 0x${b.toString(16)}`);throw c.messageDetails={messageId:a,protocolOperation:b},c}}return e.parse(c,d?.controls??[]),e}},aU=class{static parse(a){if(!a)return new R;switch(a.status){case 1:return new T(a.errorMessage);case 2:return new U(a.errorMessage);case 3:return new Z(a.errorMessage);case 4:return new X(a.errorMessage);case 7:return new y(a.errorMessage);case 8:return new Y(a.errorMessage);case 11:return new t(a.errorMessage);case 12:return new aa(a.errorMessage);case 13:return new A(a.errorMessage);case 14:return new W(a);case 16:return new N(a.errorMessage);case 17:return new ac(a.errorMessage);case 18:return new D(a.errorMessage);case 19:return new B(a.errorMessage);case 20:return new _(a.errorMessage);case 21:return new H(a.errorMessage);case 32:return new O(a.errorMessage);case 33:return new w(a.errorMessage);case 34:return new G(a.errorMessage);case 35:return new I(a.errorMessage);case 36:return new v(a.errorMessage);case 48:return new C(a.errorMessage);case 49:return new F(a.errorMessage);case 50:return new E(a.errorMessage);case 51:return new z(a.errorMessage);case 52:return new ab(a.errorMessage);case 53:return new ae(a.errorMessage);case 54:return new J(a.errorMessage);case 64:return new L(a.errorMessage);case 65:return new S(a.errorMessage);case 66:return new P(a.errorMessage);case 67:return new Q(a.errorMessage);case 68:return new x(a.errorMessage);case 69:return new M(a.errorMessage);case 70:return new V(a.errorMessage);case 71:return new u(a.errorMessage);case 95:return new K(a.errorMessage);case 112:return new $(a.errorMessage);case 248:return new R(a.errorMessage);default:return new ad(a.status,a.errorMessage)}}};let aV=0x80000000-1,aW=(0,e.debuglog)("ldapts");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var aX=class{clientOptions;messageId=1;host;port;secure;connected=!1;bound=!1;startTLSUpgraded=!1;rebind;socket;connectTimer;messageParser=new aT;messageDetailsByMessageId=new Map;constructor(a){let b;this.clientOptions=a,this.clientOptions.timeout??=0,this.clientOptions.connectTimeout??=0,this.clientOptions.strictDN=!1!==this.clientOptions.strictDN;try{b=new URL(a.url)}catch{throw Error(`${a.url} is an invalid LDAP URL (protocol)`)}const c=b.protocol.replace(/:$/,"");if("ldap"!==c&&"ldaps"!==c)throw Error(`${a.url} is an invalid LDAP URL (protocol)`);const d="ldaps"===c,e=!!this.clientOptions.tlsOptions&&Object.values(this.clientOptions.tlsOptions).some(a=>void 0!==a);this.secure=d||e;let f=b.hostname;f.startsWith("[")&&f.endsWith("]")&&(f=f.slice(1,-1)),this.host=f||"localhost",b.port?this.port=Number(b.port):d?this.port=636:this.port=389,this.messageParser.on("error",a=>{if(a.messageDetails?.messageId){let b=this.messageDetailsByMessageId.get(a.messageDetails.messageId.toString());if(b){this.messageDetailsByMessageId.delete(a.messageDetails.messageId.toString()),b.reject(a);return}}a.stack&&aW(a.stack)}),this.messageParser.on("message",this._handleSendResponse.bind(this))}get isConnected(){return!!this.socket&&this.connected}get isBound(){return this.isConnected&&this.bound}async startTLS(a={},b){this.isConnected||await this._connect(),await this.exop("1.3.6.1.4.1.1466.20037",void 0,b);let c=this.socket;c&&(c.removeListener("data",this.socketDataHandler),a.socket=c),this.socket=await new Promise((b,d)=>{let e=(this.clientOptions.createSecureConnection??h.connect)(a);e.once("secureConnect",()=>{e.removeAllListeners("error"),e.on("data",this.socketDataHandler),e.on("error",()=>{c&&c.destroy()}),b(e)}),e.once("error",a=>{e.removeAllListeners(),d(a)})}),c&&(this.socket.id=c.id),this.startTLSUpgraded=!0}async bind(a,b,c){if(c&&!Array.isArray(c)&&(c=[c]),"string"==typeof a&&ay.includes(a))return void await this.bindSASL(a,b,c);let d=new az({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),password:b,controls:c});await this._sendBind(d),this._onBindSuccess(()=>this.bind(a,b,c))}async bindSASL(a,b,c){c&&!Array.isArray(c)&&(c=[c]);let d=new az({messageId:this._nextMessageId(),mechanism:a,password:b,controls:c});await this._sendBind(d),this._onBindSuccess(()=>this.bindSASL(a,b,c))}async add(a,b,c){let d;if(await this._ensureConnected(),c&&!Array.isArray(c)&&(c=[c]),Array.isArray(b))d=b;else for(let[a,c]of(d=[],Object.entries(b))){let b;b=Array.isArray(c)?c:null==c?[]:[c],d.push(new au({type:a,values:b}))}let e=new av({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),attributes:d,controls:c}),f=await this._send(e);if(f?.status!==0)throw aU.parse(f)}async compare(a,b,c,d){await this._ensureConnected(),d&&!Array.isArray(d)&&(d=[d]);let e=new aB({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),attribute:b,value:c,controls:d}),f=await this._send(e);switch(f?.status){case 6:return!0;case 5:return!1;default:throw aU.parse(f)}}async del(a,b){await this._ensureConnected(),b&&!Array.isArray(b)&&(b=[b]);let c=new aD({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),controls:b}),d=await this._send(c);if(d?.status!==0)throw aU.parse(d)}async exop(a,b,c){await this._ensureConnected(),c&&!Array.isArray(c)&&(c=[c]);let d=new aF({messageId:this._nextMessageId(),oid:a,value:b,controls:c}),e=await this._send(d);if(e?.status!==0)throw aU.parse(e);return{oid:e.oid,value:e.value}}async modify(a,b,c){await this._ensureConnected(),Array.isArray(b)||(b=[b]),c&&!Array.isArray(c)&&(c=[c]);let d=new aK({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),changes:b,controls:c}),e=await this._send(d);if(e?.status!==0)throw aU.parse(e)}async modifyDN(a,b,c){let d;if(await this._ensureConnected(),c&&!Array.isArray(c)&&(c=[c]),"string"==typeof b&&/[^\\],/.test(b)){let a=b.search(/[^\\],/);d=b.slice(a+2),b=b.slice(0,a+1)}let e=new aH({messageId:this._nextMessageId(),dn:"string"==typeof a?a:a.toString(),deleteOldRdn:!0,newRdn:"string"==typeof b?b:b.toString(),newSuperior:d,controls:c}),f=await this._send(e);if(f?.status!==0)throw aU.parse(f)}async search(a,b={},c){let d,e;if(await this._ensureConnected(),c){for(let a of c=Array.isArray(c)?c.slice(0):[c])if(a instanceof o)throw Error("Should not specify PagedResultsControl")}else c=[];let f=100;"object"==typeof b.paged&&b.paged.pageSize?f=b.paged.pageSize:b.sizeLimit&&b.sizeLimit>1&&(f=b.sizeLimit-1);let g=!!b.paged;g&&(d=new o({value:{size:f}}),c.push(d)),e=b.filter?"string"==typeof b.filter?aO.parseString(b.filter):b.filter:new ao({attribute:"objectclass"});let h=new aP({messageId:-1,baseDN:"string"==typeof a?a:a.toString(),scope:b.scope,filter:e,attributes:b.attributes,explicitBufferAttributes:b.explicitBufferAttributes,returnAttributeValues:b.returnAttributeValues,sizeLimit:b.sizeLimit,timeLimit:b.timeLimit,controls:c}),i={searchEntries:[],searchReferences:[]};return await this._sendSearch(h,i,g,f,d),i}async *searchPaginated(a,b={},c){let d,e;if(await this._ensureConnected(),c){for(let a of c=Array.isArray(c)?c.slice(0):[c])if(a instanceof o)throw Error("Should not specify PagedResultsControl")}else c=[];let f=100;"object"==typeof b.paged&&b.paged.pageSize?f=b.paged.pageSize:b.sizeLimit&&b.sizeLimit>1&&(f=b.sizeLimit-1),d=new o({value:{size:f}}),c.push(d),e=b.filter?"string"==typeof b.filter?aO.parseString(b.filter):b.filter:new ao({attribute:"objectclass"});let g=new aP({messageId:-1,baseDN:"string"==typeof a?a:a.toString(),scope:b.scope,filter:e,attributes:b.attributes,explicitBufferAttributes:b.explicitBufferAttributes,returnAttributeValues:b.returnAttributeValues,sizeLimit:b.sizeLimit,timeLimit:b.timeLimit,controls:c});do{let a={searchEntries:[],searchReferences:[]};d=await this._sendSearch(g,a,!0,f,d,!1),yield a}while(d)}async unbind(){try{if(this.rebind=void 0,!this.connected||!this.socket)return;let a=new aR({messageId:this._nextMessageId()});await this._send(a)}finally{this._destroySocket(this.socket)}}[Symbol.asyncDispose](){return this.unbind()}async _sendBind(a){this.isConnected||await this._connect();let b=await this._send(a);if(b?.status!==0)throw aU.parse(b)}async _sendSearch(a,b,c,d,e,f=!0){a.messageId=this._nextMessageId();let g=await this._send(a);if(g?.status!==0&&!(g?.status===4&&a.sizeLimit))throw aU.parse(g);for(let c of g.searchEntries)b.searchEntries.push(c.toObject(a.attributes,a.explicitBufferAttributes));for(let a of g.searchReferences)b.searchReferences.push(...a.uris);if(c&&(g.searchEntries.length||g.searchReferences.length)&&e){let h;for(let a of g.controls??[])if(a instanceof o){h=a;break}if(h?.value?.cookie?.length){if(e.value=e.value??{size:d},e.value.cookie=h.value.cookie,!f)return e;await this._sendSearch(a,b,c,d,e,!0)}}}socketDataHandler=a=>{this.messageParser&&this.messageParser.read(a,this.messageDetailsByMessageId)};_nextMessageId(){return this.messageId+=1,this.messageId>=aV&&(this.messageId=1),this.messageId}_onBindSuccess(a){this.bound=!0,this.clientOptions.autoRebind&&!this.startTLSUpgraded&&(this.rebind=a)}async _ensureConnected(){this.isConnected||(await this._connect(),this.rebind&&!this.bound&&await this.rebind())}_connect(){if(!this.isConnected)return new Promise((a,b)=>{if(this.secure){let b=this.clientOptions.createSecureConnection??h.connect;this.socket=b(this.port,this.host,this.clientOptions.tlsOptions),this.socket.id=f.randomUUID(),this.socket.once("secureConnect",()=>{this._onConnect(a)})}else{let b=this.clientOptions.createConnection??g.connect;this.socket=b(this.port,this.host),this.socket.id=f.randomUUID(),this.socket.once("connect",()=>{this._onConnect(a)})}(this.socket.once("error",a=>{this._destroySocket(this.socket),b(a)}),this.socket.connecting||"open"!==this.socket.readyState)?this.clientOptions.connectTimeout&&(this.connectTimer=setTimeout(()=>{this._destroySocket(this.socket),b(Error("Connection timeout"))},this.clientOptions.connectTimeout)):this._onConnect(a)})}_onConnect(a){this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=void 0),this.socket&&(this.socket.removeAllListeners("error"),this.socket.removeAllListeners("connect"),this.socket.removeAllListeners("secureConnect")),this.connected=!0;let b=a=>{for(let[b,c]of this.messageDetailsByMessageId.entries())c.message instanceof aR?c.resolve():c.reject(Error(`Socket error. Message type: ${c.message.constructor.name} (0x${c.message.protocolOperation.toString(16)})
2
2
  ${a.message||(a.stack??"Unknown socket error")}`)),this.messageDetailsByMessageId.delete(b);this.socket&&this.socket.destroy()};function c(){this&&this.end()}function d(){this&&this.end()}let e=this;this.socket&&(this.socket.on("error",b),this.socket.on("close",function a(){for(let[f,g]of(this&&(this.removeListener("error",b),this.removeListener("close",a),this.removeListener("data",e.socketDataHandler),this.removeListener("end",c),this.removeListener("timeout",d)),this===e.socket&&(e.connected=!1,e.bound=!1,e.startTLSUpgraded=!1,delete e.socket,e.connectTimer&&(clearTimeout(e.connectTimer),e.connectTimer=void 0)),e.messageDetailsByMessageId.entries()))g.socket.id===this.id&&(g.message instanceof aR?g.resolve():g.reject(Error(`Connection closed before message response was received. Message type: ${g.message.constructor.name} (0x${g.message.protocolOperation.toString(16)})`)),e.messageDetailsByMessageId.delete(f))}),this.socket.on("data",this.socketDataHandler),this.socket.on("end",c),this.socket.on("timeout",d)),a()}_destroySocket(a){a&&(this.connectTimer&&(clearTimeout(this.connectTimer),this.connectTimer=void 0),a.removeAllListeners("error"),a.on("error",()=>{}),a.end(),a.destroy(),a===this.socket&&(this.connected=!1,this.bound=!1,this.startTLSUpgraded=!1,this.socket=void 0))}_send(a){if(!this.connected||!this.socket)throw Error("Socket connection not established");let b=a.write(),c=()=>{},d=()=>{},e=this.clientOptions.timeout?setTimeout(()=>{let b=this.messageDetailsByMessageId.get(a.messageId.toString());b&&(this._destroySocket(b.socket),d(Error(`${a.constructor.name}: Operation timed out`)))},this.clientOptions.timeout):null,f=new Promise((a,b)=>{c=a,d=b}).finally(()=>{e&&clearTimeout(e)});return this.messageDetailsByMessageId.set(a.messageId.toString(),{message:a,resolve:c,reject:d,timeoutTimer:e,socket:this.socket}),a.password?aW(`Sending message: ${JSON.stringify({...a,password:"__redacted__"})}`):aW(`Sending message: ${JSON.stringify(a)}`),this.socket.write(b,()=>{a instanceof as?(aW(`Abandoned message: ${a.messageId}`),this.messageDetailsByMessageId.delete(a.messageId.toString()),c()):a instanceof aR?(aW("Unbind success. Ending socket"),this.socket&&this._destroySocket(this.socket)):aW("Message sent successfully.")}),f}_handleSendResponse(a){let b=this.messageDetailsByMessageId.get(a.messageId.toString());b?a instanceof aM?(b.searchEntries=b.searchEntries??[],b.searchEntries.push(a)):a instanceof aN?(b.searchReferences=b.searchReferences??[],b.searchReferences.push(a)):(a instanceof aQ&&(b.searchEntries&&a.searchEntries.push(...b.searchEntries),b.searchReferences&&a.searchReferences.push(...b.searchReferences)),this.messageDetailsByMessageId.delete(a.messageId.toString()),b.resolve(a)):aW(`Unable to find details related to message response: ${JSON.stringify(a)}`)}}},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};
@@ -1 +1 @@
1
- exports.id=1900,exports.ids=[1900],exports.modules={35024:(a,b,c)=>{"use strict";c.d(b,{Ak:()=>i,Yg:()=>k,xq:()=>h});var d=c(21820);let e={"Anthropic-Version":"2023-06-01","Anthropic-Beta":"claude-code-20250219,interleaved-thinking-2025-05-14"},f={"Anthropic-Version":"2023-06-01","Anthropic-Beta":"claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,advanced-tool-use-2025-11-20,effort-2025-11-24,structured-outputs-2025-12-15,fast-mode-2026-02-01,redact-thinking-2026-02-12,token-efficient-tools-2026-03-28","Anthropic-Dangerous-Direct-Browser-Access":"true","User-Agent":"claude-cli/2.1.92 (external, sdk-cli)","X-App":"cli","X-Stainless-Helper-Method":"stream","X-Stainless-Retry-Count":"0","X-Stainless-Runtime-Version":"v24.14.0","X-Stainless-Package-Version":"0.80.0","X-Stainless-Runtime":"node","X-Stainless-Lang":"js","X-Stainless-Arch":function(){switch((0,d.arch)()){case"x64":return"x64";case"arm64":return"arm64";case"ia32":return"x86";default:return`other::${(0,d.arch)()}`}}(),"X-Stainless-Os":function(){switch((0,d.platform)()){case"darwin":return"MacOS";case"win32":return"Windows";case"linux":return"Linux";case"freebsd":return"FreeBSD";default:return`Other::${(0,d.platform)()}`}}(),"X-Stainless-Timeout":"600"},g="https://api.kimi.com/coding/v1/messages",h={claude:{baseUrl:"https://api.anthropic.com/v1/messages",format:"claude",headers:{...f},clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",tokenUrl:"https://api.anthropic.com/v1/oauth/token"},gemini:{baseUrl:"https://generativelanguage.googleapis.com/v1beta/models",format:"gemini",clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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"},"gemini-cli":{baseUrl:"https://cloudcode-pa.googleapis.com/v1internal",format:"gemini-cli",clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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"},codex:{baseUrl:"https://chatgpt.com/backend-api/codex/responses",format:"openai-responses",headers:{originator:"codex_cli_rs","User-Agent":"codex-cli/1.0.18 (macOS; arm64)"},clientId:"app_EMoamEEZ73f0CkXaXp7hrann",tokenUrl:"https://auth.openai.com/oauth/token"},qwen:{baseUrl:"https://portal.qwen.ai/v1/chat/completions",format:"openai",clientId:"f0304373b74a44d2b584a3fb70ca9e56",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",authUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code"},iflow:{baseUrl:"https://apis.iflow.cn/v1/chat/completions",format:"openai",headers:{"User-Agent":"iFlow-Cli"},clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",tokenUrl:"https://iflow.cn/oauth/token",authUrl:"https://iflow.cn/oauth"},qoder:{baseUrl:"https://api.qoder.com/v1/chat/completions",format:"openai",headers:{"User-Agent":"Qoder-Cli"},clientId:process.env.QODER_OAUTH_CLIENT_ID||"10009311001",clientSecret:process.env.QODER_OAUTH_CLIENT_SECRET||"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",tokenUrl:"https://api.qoder.com/oauth/token",authUrl:"https://qoder.com/oauth/authorize"},antigravity:{baseUrls:["https://daily-cloudcode-pa.googleapis.com","https://daily-cloudcode-pa.sandbox.googleapis.com"],format:"antigravity",headers:{"User-Agent":`antigravity/1.107.0 ${(0,d.platform)()}/${(0,d.arch)()}`},clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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"},openrouter:{baseUrl:"https://openrouter.ai/api/v1/chat/completions",format:"openai",headers:{"HTTP-Referer":"https://endpoint-proxy.local","X-Title":"Endpoint Proxy"}},openai:{baseUrl:"https://api.openai.com/v1/chat/completions",format:"openai"},"vercel-ai-gateway":{baseUrl:"https://ai-gateway.vercel.sh/v1/chat/completions",format:"openai"},glm:{baseUrl:"https://api.z.ai/api/anthropic/v1/messages",format:"claude",headers:{...e}},"glm-cn":{baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",format:"openai",headers:{}},kimi:{baseUrl:g,format:"claude",headers:{...e}},minimax:{baseUrl:"https://api.minimax.io/anthropic/v1/messages",format:"claude",headers:{...e}},"minimax-cn":{baseUrl:"https://api.minimaxi.com/anthropic/v1/messages",format:"claude",headers:{...e}},alicode:{baseUrl:"https://coding.dashscope.aliyuncs.com/v1/chat/completions",format:"openai",headers:{}},"alicode-intl":{baseUrl:"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions",format:"openai",headers:{}},"alims-intl":{baseUrl:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",format:"openai",headers:{}},"volcengine-ark":{baseUrl:"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",format:"openai",headers:{}},byteplus:{baseUrl:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",format:"openai",headers:{}},github:{baseUrl:"https://api.githubcopilot.com/chat/completions",responsesUrl:"https://api.githubcopilot.com/responses",format:"openai",headers:{"copilot-integration-id":"vscode-chat","editor-version":"vscode/1.110.0","editor-plugin-version":"copilot-chat/0.38.0","user-agent":"GitHubCopilotChat/0.38.0","openai-intent":"conversation-panel","x-github-api-version":"2025-04-01","x-vscode-user-agent-library-version":"electron-fetch","X-Initiator":"user",Accept:"application/json","Content-Type":"application/json"},clientId:"Iv1.b507a08c87ecfe98"},kiro:{baseUrl:"https://codewhisperer.us-east-1.amazonaws.com/generateAssistantResponse",format:"kiro",retry:{429:2},headers:{"Content-Type":"application/json",Accept:"application/vnd.amazon.eventstream","X-Amz-Target":"AmazonCodeWhispererStreamingService.GenerateAssistantResponse","User-Agent":"AWS-SDK-JS/3.0.0 kiro-ide/1.0.0","X-Amz-User-Agent":"aws-sdk-js/3.0.0 kiro-ide/1.0.0"},tokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",authUrl:"https://prod.us-east-1.auth.desktop.kiro.dev"},cursor:{baseUrl:"https://api2.cursor.sh",chatPath:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",format:"cursor",headers:{"connect-accept-encoding":"gzip","connect-protocol-version":"1","Content-Type":"application/connect+proto","User-Agent":"connect-es/1.6.1"},clientVersion:"3.1.0"},"kimi-coding":{baseUrl:g,format:"claude",headers:{...e},clientId:"17e5f671-d194-4dfb-9706-5516cb48c098",tokenUrl:"https://auth.kimi.com/api/oauth/token",refreshUrl:"https://auth.kimi.com/api/oauth/token"},kilocode:{baseUrl:"https://api.kilo.ai/api/openrouter/chat/completions",format:"openai",headers:{}},opencode:{baseUrl:"http://localhost:4096/v1/chat/completions",format:"openai",headers:{}},cline:{baseUrl:"https://api.cline.bot/api/v1/chat/completions",format:"openai",headers:{"HTTP-Referer":"https://cline.bot","X-Title":"Cline"},tokenUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},nvidia:{baseUrl:"https://integrate.api.nvidia.com/v1/chat/completions",format:"openai"},anthropic:{baseUrl:"https://api.anthropic.com/v1/messages",format:"claude",headers:{...e}},deepseek:{baseUrl:"https://api.deepseek.com/chat/completions",format:"openai"},commandcode:{baseUrl:"https://api.commandcode.ai/alpha/generate",format:"commandcode",headers:{"x-command-code-version":"0.25.7","x-cli-environment":"cli"}},groq:{baseUrl:"https://api.groq.com/openai/v1/chat/completions",format:"openai"},xai:{baseUrl:"https://api.x.ai/v1/chat/completions",responsesUrl:"https://api.x.ai/v1/responses",format:"openai",clientId:"b1a00492-073a-47ea-816f-4c329264a828",tokenUrl:"https://auth.x.ai/oauth2/token",refreshUrl:"https://auth.x.ai/oauth2/token"},mistral:{baseUrl:"https://api.mistral.ai/v1/chat/completions",format:"openai"},perplexity:{baseUrl:"https://api.perplexity.ai/chat/completions",format:"openai"},together:{baseUrl:"https://api.together.xyz/v1/chat/completions",format:"openai"},fireworks:{baseUrl:"https://api.fireworks.ai/inference/v1/chat/completions",format:"openai"},cerebras:{baseUrl:"https://api.cerebras.ai/v1/chat/completions",format:"openai"},cohere:{baseUrl:"https://api.cohere.ai/v1/chat/completions",format:"openai"},nebius:{baseUrl:"https://api.studio.nebius.ai/v1/chat/completions",format:"openai"},siliconflow:{baseUrl:"https://api.siliconflow.cn/v1/chat/completions",format:"openai"},hyperbolic:{baseUrl:"https://api.hyperbolic.xyz/v1/chat/completions",format:"openai"},deepgram:{baseUrl:"https://api.deepgram.com/v1/listen",format:"openai"},assemblyai:{baseUrl:"https://api.assemblyai.com/v1/audio/transcriptions",format:"openai"},nanobanana:{baseUrl:"https://api.nanobananaapi.ai/v1/chat/completions",format:"openai"},chutes:{baseUrl:"https://llm.chutes.ai/v1/chat/completions",format:"openai"},ollama:{baseUrl:"https://ollama.com/api/chat",format:"ollama"},"ollama-local":{baseUrl:"http://localhost:11434/api/chat",format:"ollama"},vertex:{baseUrl:"https://aiplatform.googleapis.com",format:"vertex"},"vertex-partner":{baseUrl:"https://aiplatform.googleapis.com",format:"openai"},gitlab:{baseUrl:"https://gitlab.com/api/v4/chat/completions",format:"openai"},codebuddy:{baseUrl:"https://copilot.tencent.com/v1/chat/completions",format:"openai"},opencode:{baseUrl:"https://opencode.ai",format:"openai",headers:{"x-opencode-client":"desktop"},noAuth:!0},"opencode-go":{baseUrl:"https://opencode.ai/zen/go/v1/chat/completions",format:"openai",headers:{}},"grok-web":{baseUrl:"https://grok.com/rest/app-chat/conversations/new",format:"grok-web",authType:"cookie"},"perplexity-web":{baseUrl:"https://www.perplexity.ai/rest/sse/perplexity_ask",format:"perplexity-web",authType:"cookie"},azure:{baseUrl:"",format:"openai",headers:{}},"cloudflare-ai":{baseUrl:"https://api.cloudflare.com/client/v4/accounts/{accountId}/ai/v1/chat/completions",format:"openai"},"xiaomi-mimo":{baseUrl:"https://api.xiaomimimo.com/v1/chat/completions",format:"openai"},"xiaomi-tokenplan":{baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1/chat/completions",format:"openai"},agentrouter:{baseUrl:"https://agentrouter.org/v1/messages",format:"claude",headers:{...f}},aimlapi:{baseUrl:"https://api.aimlapi.com/v1/chat/completions",format:"openai"},novita:{baseUrl:"https://api.novita.ai/v3/openai/chat/completions",format:"openai"},modal:{baseUrl:"https://api.modal.com/v1/chat/completions",format:"openai"},reka:{baseUrl:"https://api.reka.ai/v1/chat/completions",format:"openai"},nlpcloud:{baseUrl:"https://api.nlpcloud.io/v1/gpu/chatbot",format:"openai"},bazaarlink:{baseUrl:"https://bazaarlink.ai/api/v1/chat/completions",format:"openai"},completions:{baseUrl:"https://completions.me/api/v1/chat/completions",format:"openai"},enally:{baseUrl:"https://ai.enally.in/v1/chat/completions",format:"openai",authHeader:"x-api-key"},freetheai:{baseUrl:"https://api.freetheai.xyz/v1/chat/completions",format:"openai"},llm7:{baseUrl:"https://api.llm7.io/v1/chat/completions",format:"openai"},lepton:{baseUrl:"https://api.lepton.ai/api/v1/chat/completions",format:"openai"},kluster:{baseUrl:"https://api.kluster.ai/v1/chat/completions",format:"openai"},ai21:{baseUrl:"https://api.ai21.com/studio/v1/chat/completions",format:"openai"},"inference-net":{baseUrl:"https://api.inference.net/v1/chat/completions",format:"openai"},predibase:{baseUrl:"https://serving.app.predibase.com/v1/chat/completions",format:"openai"},bytez:{baseUrl:"https://api.bytez.com/models/v2",format:"openai"},morph:{baseUrl:"https://api.morphllm.com/v1/chat/completions",format:"openai"},longcat:{baseUrl:"https://api.longcat.chat/openai/v1/chat/completions",format:"openai"},puter:{baseUrl:"https://api.puter.com/puterai/openai/v1/chat/completions",format:"openai"},uncloseai:{baseUrl:"https://hermes.ai.unturf.com/v1/chat/completions",format:"openai",noAuth:!0},scaleway:{baseUrl:"https://api.scaleway.ai/v1/chat/completions",format:"openai"},deepinfra:{baseUrl:"https://api.deepinfra.com/v1/openai/chat/completions",format:"openai"},sambanova:{baseUrl:"https://api.sambanova.ai/v1/chat/completions",format:"openai"},nscale:{baseUrl:"https://inference.api.nscale.com/v1/chat/completions",format:"openai"},baseten:{baseUrl:"https://inference.baseten.co/v1/chat/completions",format:"openai"},publicai:{baseUrl:"https://api.publicai.co/v1/chat/completions",format:"openai"},"nous-research":{baseUrl:"https://inference-api.nousresearch.com/v1/chat/completions",format:"openai"},glhf:{baseUrl:"https://glhf.chat/api/openai/v1/chat/completions",format:"openai"},blackbox:{baseUrl:"https://api.blackbox.ai/chat/completions",format:"openai"}};function i(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let j={sgp:"https://token-plan-sgp.xiaomimimo.com/v1",cn:"https://token-plan-cn.xiaomimimo.com/v1",ams:"https://token-plan-ams.xiaomimimo.com/v1"};function k(a){return j[a?.providerSpecificData?.region]||j.sgp}},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(44404);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},96487:()=>{}};
1
+ "use strict";exports.id=6064,exports.ids=[6064],exports.modules={35024:(a,b,c)=>{c.d(b,{Ak:()=>i,Yg:()=>k,xq:()=>h});var d=c(21820);let e={"Anthropic-Version":"2023-06-01","Anthropic-Beta":"claude-code-20250219,interleaved-thinking-2025-05-14"},f={"Anthropic-Version":"2023-06-01","Anthropic-Beta":"claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,context-management-2025-06-27,prompt-caching-scope-2026-01-05,advanced-tool-use-2025-11-20,effort-2025-11-24,structured-outputs-2025-12-15,fast-mode-2026-02-01,redact-thinking-2026-02-12,token-efficient-tools-2026-03-28","Anthropic-Dangerous-Direct-Browser-Access":"true","User-Agent":"claude-cli/2.1.92 (external, sdk-cli)","X-App":"cli","X-Stainless-Helper-Method":"stream","X-Stainless-Retry-Count":"0","X-Stainless-Runtime-Version":"v24.14.0","X-Stainless-Package-Version":"0.80.0","X-Stainless-Runtime":"node","X-Stainless-Lang":"js","X-Stainless-Arch":function(){switch((0,d.arch)()){case"x64":return"x64";case"arm64":return"arm64";case"ia32":return"x86";default:return`other::${(0,d.arch)()}`}}(),"X-Stainless-Os":function(){switch((0,d.platform)()){case"darwin":return"MacOS";case"win32":return"Windows";case"linux":return"Linux";case"freebsd":return"FreeBSD";default:return`Other::${(0,d.platform)()}`}}(),"X-Stainless-Timeout":"600"},g="https://api.kimi.com/coding/v1/messages",h={claude:{baseUrl:"https://api.anthropic.com/v1/messages",format:"claude",headers:{...f},clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",tokenUrl:"https://api.anthropic.com/v1/oauth/token"},gemini:{baseUrl:"https://generativelanguage.googleapis.com/v1beta/models",format:"gemini",clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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"},"gemini-cli":{baseUrl:"https://cloudcode-pa.googleapis.com/v1internal",format:"gemini-cli",clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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"},codex:{baseUrl:"https://chatgpt.com/backend-api/codex/responses",format:"openai-responses",headers:{originator:"codex_cli_rs","User-Agent":"codex-cli/1.0.18 (macOS; arm64)"},clientId:"app_EMoamEEZ73f0CkXaXp7hrann",tokenUrl:"https://auth.openai.com/oauth/token"},qwen:{baseUrl:"https://portal.qwen.ai/v1/chat/completions",format:"openai",clientId:"f0304373b74a44d2b584a3fb70ca9e56",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",authUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code"},iflow:{baseUrl:"https://apis.iflow.cn/v1/chat/completions",format:"openai",headers:{"User-Agent":"iFlow-Cli"},clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",tokenUrl:"https://iflow.cn/oauth/token",authUrl:"https://iflow.cn/oauth"},qoder:{baseUrl:"https://api.qoder.com/v1/chat/completions",format:"openai",headers:{"User-Agent":"Qoder-Cli"},clientId:process.env.QODER_OAUTH_CLIENT_ID||"10009311001",clientSecret:process.env.QODER_OAUTH_CLIENT_SECRET||"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",tokenUrl:"https://api.qoder.com/oauth/token",authUrl:"https://qoder.com/oauth/authorize"},antigravity:{baseUrls:["https://daily-cloudcode-pa.googleapis.com","https://daily-cloudcode-pa.sandbox.googleapis.com"],format:"antigravity",headers:{"User-Agent":`antigravity/1.107.0 ${(0,d.platform)()}/${(0,d.arch)()}`},clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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"},openrouter:{baseUrl:"https://openrouter.ai/api/v1/chat/completions",format:"openai",headers:{"HTTP-Referer":"https://endpoint-proxy.local","X-Title":"Endpoint Proxy"}},openai:{baseUrl:"https://api.openai.com/v1/chat/completions",format:"openai"},"vercel-ai-gateway":{baseUrl:"https://ai-gateway.vercel.sh/v1/chat/completions",format:"openai"},glm:{baseUrl:"https://api.z.ai/api/anthropic/v1/messages",format:"claude",headers:{...e}},"glm-cn":{baseUrl:"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",format:"openai",headers:{}},kimi:{baseUrl:g,format:"claude",headers:{...e}},minimax:{baseUrl:"https://api.minimax.io/anthropic/v1/messages",format:"claude",headers:{...e}},"minimax-cn":{baseUrl:"https://api.minimaxi.com/anthropic/v1/messages",format:"claude",headers:{...e}},alicode:{baseUrl:"https://coding.dashscope.aliyuncs.com/v1/chat/completions",format:"openai",headers:{}},"alicode-intl":{baseUrl:"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions",format:"openai",headers:{}},"alims-intl":{baseUrl:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",format:"openai",headers:{}},"volcengine-ark":{baseUrl:"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",format:"openai",headers:{}},byteplus:{baseUrl:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",format:"openai",headers:{}},github:{baseUrl:"https://api.githubcopilot.com/chat/completions",responsesUrl:"https://api.githubcopilot.com/responses",format:"openai",headers:{"copilot-integration-id":"vscode-chat","editor-version":"vscode/1.110.0","editor-plugin-version":"copilot-chat/0.38.0","user-agent":"GitHubCopilotChat/0.38.0","openai-intent":"conversation-panel","x-github-api-version":"2025-04-01","x-vscode-user-agent-library-version":"electron-fetch","X-Initiator":"user",Accept:"application/json","Content-Type":"application/json"},clientId:"Iv1.b507a08c87ecfe98"},kiro:{baseUrl:"https://codewhisperer.us-east-1.amazonaws.com/generateAssistantResponse",format:"kiro",retry:{429:2},headers:{"Content-Type":"application/json",Accept:"application/vnd.amazon.eventstream","X-Amz-Target":"AmazonCodeWhispererStreamingService.GenerateAssistantResponse","User-Agent":"AWS-SDK-JS/3.0.0 kiro-ide/1.0.0","X-Amz-User-Agent":"aws-sdk-js/3.0.0 kiro-ide/1.0.0"},tokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",authUrl:"https://prod.us-east-1.auth.desktop.kiro.dev"},cursor:{baseUrl:"https://api2.cursor.sh",chatPath:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",format:"cursor",headers:{"connect-accept-encoding":"gzip","connect-protocol-version":"1","Content-Type":"application/connect+proto","User-Agent":"connect-es/1.6.1"},clientVersion:"3.1.0"},"kimi-coding":{baseUrl:g,format:"claude",headers:{...e},clientId:"17e5f671-d194-4dfb-9706-5516cb48c098",tokenUrl:"https://auth.kimi.com/api/oauth/token",refreshUrl:"https://auth.kimi.com/api/oauth/token"},kilocode:{baseUrl:"https://api.kilo.ai/api/openrouter/chat/completions",format:"openai",headers:{}},opencode:{baseUrl:"http://localhost:4096/v1/chat/completions",format:"openai",headers:{}},cline:{baseUrl:"https://api.cline.bot/api/v1/chat/completions",format:"openai",headers:{"HTTP-Referer":"https://cline.bot","X-Title":"Cline"},tokenUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},nvidia:{baseUrl:"https://integrate.api.nvidia.com/v1/chat/completions",format:"openai"},anthropic:{baseUrl:"https://api.anthropic.com/v1/messages",format:"claude",headers:{...e}},deepseek:{baseUrl:"https://api.deepseek.com/chat/completions",format:"openai"},commandcode:{baseUrl:"https://api.commandcode.ai/alpha/generate",format:"commandcode",headers:{"x-command-code-version":"0.25.7","x-cli-environment":"cli"}},groq:{baseUrl:"https://api.groq.com/openai/v1/chat/completions",format:"openai"},xai:{baseUrl:"https://api.x.ai/v1/chat/completions",responsesUrl:"https://api.x.ai/v1/responses",format:"openai",clientId:"b1a00492-073a-47ea-816f-4c329264a828",tokenUrl:"https://auth.x.ai/oauth2/token",refreshUrl:"https://auth.x.ai/oauth2/token"},mistral:{baseUrl:"https://api.mistral.ai/v1/chat/completions",format:"openai"},perplexity:{baseUrl:"https://api.perplexity.ai/chat/completions",format:"openai"},together:{baseUrl:"https://api.together.xyz/v1/chat/completions",format:"openai"},fireworks:{baseUrl:"https://api.fireworks.ai/inference/v1/chat/completions",format:"openai"},cerebras:{baseUrl:"https://api.cerebras.ai/v1/chat/completions",format:"openai"},cohere:{baseUrl:"https://api.cohere.ai/v1/chat/completions",format:"openai"},nebius:{baseUrl:"https://api.studio.nebius.ai/v1/chat/completions",format:"openai"},siliconflow:{baseUrl:"https://api.siliconflow.cn/v1/chat/completions",format:"openai"},hyperbolic:{baseUrl:"https://api.hyperbolic.xyz/v1/chat/completions",format:"openai"},deepgram:{baseUrl:"https://api.deepgram.com/v1/listen",format:"openai"},assemblyai:{baseUrl:"https://api.assemblyai.com/v1/audio/transcriptions",format:"openai"},nanobanana:{baseUrl:"https://api.nanobananaapi.ai/v1/chat/completions",format:"openai"},chutes:{baseUrl:"https://llm.chutes.ai/v1/chat/completions",format:"openai"},ollama:{baseUrl:"https://ollama.com/api/chat",format:"ollama"},"ollama-local":{baseUrl:"http://localhost:11434/api/chat",format:"ollama"},vertex:{baseUrl:"https://aiplatform.googleapis.com",format:"vertex"},"vertex-partner":{baseUrl:"https://aiplatform.googleapis.com",format:"openai"},gitlab:{baseUrl:"https://gitlab.com/api/v4/chat/completions",format:"openai"},codebuddy:{baseUrl:"https://copilot.tencent.com/v1/chat/completions",format:"openai"},opencode:{baseUrl:"https://opencode.ai",format:"openai",headers:{"x-opencode-client":"desktop"},noAuth:!0},"opencode-go":{baseUrl:"https://opencode.ai/zen/go/v1/chat/completions",format:"openai",headers:{}},"grok-web":{baseUrl:"https://grok.com/rest/app-chat/conversations/new",format:"grok-web",authType:"cookie"},"perplexity-web":{baseUrl:"https://www.perplexity.ai/rest/sse/perplexity_ask",format:"perplexity-web",authType:"cookie"},azure:{baseUrl:"",format:"openai",headers:{}},"cloudflare-ai":{baseUrl:"https://api.cloudflare.com/client/v4/accounts/{accountId}/ai/v1/chat/completions",format:"openai"},"xiaomi-mimo":{baseUrl:"https://api.xiaomimimo.com/v1/chat/completions",format:"openai"},"xiaomi-tokenplan":{baseUrl:"https://token-plan-sgp.xiaomimimo.com/v1/chat/completions",format:"openai"},agentrouter:{baseUrl:"https://agentrouter.org/v1/messages",format:"claude",headers:{...f}},aimlapi:{baseUrl:"https://api.aimlapi.com/v1/chat/completions",format:"openai"},novita:{baseUrl:"https://api.novita.ai/v3/openai/chat/completions",format:"openai"},modal:{baseUrl:"https://api.modal.com/v1/chat/completions",format:"openai"},reka:{baseUrl:"https://api.reka.ai/v1/chat/completions",format:"openai"},nlpcloud:{baseUrl:"https://api.nlpcloud.io/v1/gpu/chatbot",format:"openai"},bazaarlink:{baseUrl:"https://bazaarlink.ai/api/v1/chat/completions",format:"openai"},completions:{baseUrl:"https://completions.me/api/v1/chat/completions",format:"openai"},enally:{baseUrl:"https://ai.enally.in/v1/chat/completions",format:"openai",authHeader:"x-api-key"},freetheai:{baseUrl:"https://api.freetheai.xyz/v1/chat/completions",format:"openai"},llm7:{baseUrl:"https://api.llm7.io/v1/chat/completions",format:"openai"},lepton:{baseUrl:"https://api.lepton.ai/api/v1/chat/completions",format:"openai"},kluster:{baseUrl:"https://api.kluster.ai/v1/chat/completions",format:"openai"},ai21:{baseUrl:"https://api.ai21.com/studio/v1/chat/completions",format:"openai"},"inference-net":{baseUrl:"https://api.inference.net/v1/chat/completions",format:"openai"},predibase:{baseUrl:"https://serving.app.predibase.com/v1/chat/completions",format:"openai"},bytez:{baseUrl:"https://api.bytez.com/models/v2",format:"openai"},morph:{baseUrl:"https://api.morphllm.com/v1/chat/completions",format:"openai"},longcat:{baseUrl:"https://api.longcat.chat/openai/v1/chat/completions",format:"openai"},puter:{baseUrl:"https://api.puter.com/puterai/openai/v1/chat/completions",format:"openai"},uncloseai:{baseUrl:"https://hermes.ai.unturf.com/v1/chat/completions",format:"openai",noAuth:!0},scaleway:{baseUrl:"https://api.scaleway.ai/v1/chat/completions",format:"openai"},deepinfra:{baseUrl:"https://api.deepinfra.com/v1/openai/chat/completions",format:"openai"},sambanova:{baseUrl:"https://api.sambanova.ai/v1/chat/completions",format:"openai"},nscale:{baseUrl:"https://inference.api.nscale.com/v1/chat/completions",format:"openai"},baseten:{baseUrl:"https://inference.baseten.co/v1/chat/completions",format:"openai"},publicai:{baseUrl:"https://api.publicai.co/v1/chat/completions",format:"openai"},"nous-research":{baseUrl:"https://inference-api.nousresearch.com/v1/chat/completions",format:"openai"},glhf:{baseUrl:"https://glhf.chat/api/openai/v1/chat/completions",format:"openai"},blackbox:{baseUrl:"https://api.blackbox.ai/chat/completions",format:"openai"}};function i(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let j={sgp:"https://token-plan-sgp.xiaomimimo.com/v1",cn:"https://token-plan-cn.xiaomimimo.com/v1",ams:"https://token-plan-ams.xiaomimimo.com/v1"};function k(a){return j[a?.providerSpecificData?.region]||j.sgp}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(44404);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))}};
@@ -0,0 +1,9 @@
1
+ "use strict";exports.id=607,exports.ids=[607],exports.modules={9588:(a,b,c)=>{c.d(b,{Cy:()=>i,I8:()=>k,Tv:()=>v,UX:()=>p,aV:()=>o,bz:()=>r,hH:()=>u,ny:()=>s,oW:()=>t,s0:()=>m,ub:()=>n,vZ:()=>q});var d=c(65573),e=c(23211),f=c(89718),g=c(33792),h=c(90389);let i="dashboard_view_mode";function j(a){return String(a||"").trim().toLowerCase()}function k(a){return j(a)}function l(a={}){return[a.ldapUsername,a.ldapEmail,a.ldapName,a.oidcEmail,a.oidcName,a.localUsername,a.username,a.email].map(j).filter(Boolean)}function m(a={}){let b=l(a),c=b[0]||"local",d=a.ldapName||a.ldapEmail||a.oidcName||a.oidcEmail||a.localUsername||c;return{userId:c,displayName:d,loginMethod:a.oidc?"OIDC":a.ldap?"LDAP":"Local",candidates:b}}function n(a={},b={}){var c;if(!b?.authenticated)return!1;if(b.local||!b.ldap&&!b.oidc||b.role===h.hS.ADMIN||!0===b.ldapIsAdmin)return!0;let d=Array.isArray(c=a.ldapAllowedUsers)?c.map(j).filter(Boolean):String(c||"").split(/[,\n]/).map(j).filter(Boolean);return 0!==d.length&&l(b).some(a=>d.includes(a))}function o(a={},b={}){return!(!b?.authenticated||n(a,b))&&(b.role===h.hS.MONITOR_ADMIN||!0===b.ldapIsMonitorAdmin)}function p(a={},b={}){return!(!b?.authenticated||n(a,b)||o(a,b))&&(b.role===h.hS.AI_GATEWAYS_MONITOR||!0===b.ldapIsAiGatewaysMonitor)}function q(a={},b={}){return b?.authenticated?n(a,b)?h.hS.ADMIN:o(a,b)?h.hS.MONITOR_ADMIN:p(a,b)?h.hS.AI_GATEWAYS_MONITOR:h.hS.USER:h.hS.GUEST}function r(a={}){return!0===a.isAdmin||!0===a.isMonitorAdmin}async function s(){let a=await (0,f.mt)(),b=await (0,d.UL)(),c=await (0,g.dY)(b.get("auth_token")?.value);if(!c?.authenticated)return{authenticated:!1,isAdmin:!1,actualIsAdmin:!1,showAsUser:!1,canToggleUserMode:!1,isMonitorAdmin:!1,isAiGatewaysMonitor:!1,role:h.hS.GUEST,actualRole:h.hS.GUEST,userId:"",displayName:"Guest",loginMethod:"None",settings:{...a,requireLogin:!0},session:null};let e=m(c||{}),j=q(a,c||{}),k=j===h.hS.ADMIN,l=k&&b.get(i)?.value==="user",n=l?h.hS.USER:j,o=n===h.hS.ADMIN,p=n===h.hS.MONITOR_ADMIN,r=n===h.hS.AI_GATEWAYS_MONITOR;return{authenticated:!0,isAdmin:o,actualIsAdmin:k,showAsUser:l,canToggleUserMode:k,isMonitorAdmin:p,isAiGatewaysMonitor:r,role:n,actualRole:j,canManageApiKeys:o||p,canUseMonitorAdminTabs:o||p,canViewAllAnalytics:o||p||r,...e,settings:{...a,requireLogin:!0},session:c}}async function t(){let a=await s();return a.authenticated?{access:a,response:null}:{access:a,response:e.NextResponse.json({error:"Authentication required"},{status:401})}}async function u(a={}){let{allowMonitorAdmin:b=!1}=a||{},{access:c,response:d}=await t();return d?{access:c,response:d}:c.isAdmin||b&&c.isMonitorAdmin?{access:c,response:null}:{access:c,response:e.NextResponse.json({error:"Admin access required"},{status:403})}}function v(a,b){if(!a?.authenticated||!b)return!1;if(r(a))return!0;let c=j(a.userId),d=j(b.ownerUser),e=j(b.createdByUser);return!!c&&(d===c||e===c)}},17509:(a,b,c)=>{c.d(b,{V:()=>o});var d=c(91356),e=c(80700),f=c(99129),g=c(73575),h=c(41570),i=c(19035),j=c(44893),k=c(69052);async function l(a,b,c){let l,{protected:m,header:n,payload:o}=a,p={};if(m&&(p=(0,h.OX)(m,f.Ye,"JWS Protected Header is invalid")),void 0!==n){if(!(0,i.fz)(p,n))throw new f.Ye("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");l={...p,...n}}else l=p;let q=(0,j.nI)(f.Ye,j.qc,b[1],p,l),r=!0;if(q.includes("b64")&&"boolean"!=typeof(r=p.b64))throw new f.Ye('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:s}=l;if("string"!=typeof s||!s)throw new f.Ye('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(b[0]&&!b[0].has(s))throw new f.Rb('"alg" (Algorithm) Header Parameter value not allowed');if(r){if("string"!=typeof o)throw new f.Ye("JWS Payload must be a string")}else if("string"!=typeof o&&!(o instanceof Uint8Array))throw new f.Ye("JWS Payload must be a string or an Uint8Array instance");let t=!1;"function"==typeof c&&(c=await c(p,a),t=!0);let u=(0,e.q)(s),v=(0,g.xW)(void 0!==m?(0,g.lF)(m):new Uint8Array,(0,g.lF)("."),"string"==typeof o?r?b[2]??=(0,h.Fo)(o,"payload",f.Ye):g.Rd.encode(o):o),w=(0,h.h2)(a.signature,"signature",f.Ye),x=await (0,k.d)(u,c,"verify");if(!await (0,d.M)(u,x,w,v))throw new f.h2;return[r?(0,h.h2)(o,"payload",f.Ye):"string"==typeof o?g.Rd.encode(o):o,p,r,x,t]}async function m(a,b,c){if(a instanceof Uint8Array&&(a=g.D0.decode(a)),"string"!=typeof a)throw new f.Ye("Compact JWS must be a string or Uint8Array");let{0:d,1:e,2:h,length:i}=a.split(".");if(3!==i)throw new f.Ye("Invalid Compact JWS");return l({payload:e,protected:d,signature:h},b,c)}var n=c(17347);async function o(a,b,c){let d=await m(a,[c&&(0,j.Fw)("algorithms",c.algorithms),c?.crit],b);if(!d[2])throw new f.Dp("JWTs MUST NOT use unencoded payload");let e={payload:(0,n.k6)(d[1],d[0],c),protectedHeader:d[1]};return"function"==typeof b?{...e,key:d[3]}:e}},19225:(a,b,c)=>{a.exports=c(44870)},21978:(a,b,c)=>{c.d(b,{I:()=>j,s:()=>i});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f);let h=null;function i(){if(h)return h;try{let a=g().join(process.cwd(),"package.json");h=JSON.parse(e().readFileSync(a,"utf-8")).version||"0.0.0"}catch{h="0.0.0"}return h}function j(a=new Date){let b=a=>String(a).padStart(2,"0");return`${a.getFullYear()}${b(a.getMonth()+1)}${b(a.getDate())}-${b(a.getHours())}${b(a.getMinutes())}${b(a.getSeconds())}`}},25334:(a,b,c)=>{function d(a){return null==a?"":String(a).trim()}function e({outboundProxyEnabled:a,outboundProxyUrl:b,outboundNoProxy:c}={}){if("u"<typeof process||!process.env)return;let f=d(b),g=d(c);if(!a){"1"===process.env.NINE_ROUTER_PROXY_MANAGED&&(delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.ALL_PROXY,delete process.env.NO_PROXY,delete process.env.NINE_ROUTER_PROXY_MANAGED,delete process.env.NINE_ROUTER_PROXY_URL,delete process.env.NINE_ROUTER_NO_PROXY);return}let h="1"===process.env.NINE_ROUTER_PROXY_MANAGED,i=!1;h&&(f||(delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.ALL_PROXY,delete process.env.NINE_ROUTER_PROXY_URL),g||(delete process.env.NO_PROXY,delete process.env.NINE_ROUTER_NO_PROXY)),f&&(process.env.HTTP_PROXY=f,process.env.HTTPS_PROXY=f,process.env.ALL_PROXY=f,process.env.NINE_ROUTER_PROXY_URL=f,i=!0),g&&(process.env.NO_PROXY=g,process.env.NINE_ROUTER_NO_PROXY=g,i=!0),i?process.env.NINE_ROUTER_PROXY_MANAGED="1":h&&delete process.env.NINE_ROUTER_PROXY_MANAGED}c.d(b,{k:()=>e})},33792:(a,b,c)=>{c.d(b,{Dc:()=>p,OZ:()=>s,YK:()=>n,dY:()=>q,tm:()=>r});var d=c(84433),e=c(17509),f=c(73024),g=c.n(f),h=c(76760),i=c.n(h),j=c(77598),k=c.n(j),l=c(49120);let m=new TextEncoder().encode(function(){if(process.env.JWT_SECRET)return process.env.JWT_SECRET;let a=i().join(l.DATA_DIR,"jwt-secret");try{return g().readFileSync(a,"utf8").trim()}catch{}g().mkdirSync(l.DATA_DIR,{recursive:!0});let b=k().randomBytes(32).toString("hex");return g().writeFileSync(a,b,{mode:384}),b}());function n(a){let b="true"===process.env.AUTH_COOKIE_SECURE,c=a?.headers?.get?.("x-forwarded-proto");return b||"https"===c}async function o(a={}){return new d.P({authenticated:!0,...a}).setProtectedHeader({alg:"HS256"}).setIssuedAt().setExpirationTime("86400s").sign(m)}async function p(a){if(!a)return!1;try{return await (0,e.V)(a,m),!0}catch{return!1}}async function q(a){if(!a)return null;try{let{payload:b}=await (0,e.V)(a,m);return b}catch{return null}}async function r(a,b,c={}){let d=await o(c);a.set("auth_token",d,{httpOnly:!0,secure:n(b),sameSite:"lax",path:"/",maxAge:86400})}function s(a){a.delete("auth_token")}},34231:(a,b,c)=>{c.d(b,{VE:()=>l,qs:()=>m});var d=c(77598),e=c.n(d);c(48161);var f=c(89718),g=c(25334),h=c(92225);c(21978);var i=c(62763);let j="__blueRouterClusterSync";async function k(a=null){var b,c;let d=a||await (0,i.Jc)({includeSecrets:!0});if("slave"!==d.role)throw Error("Node is not in Standby mode");if(!d.masterUrl)throw Error("Master URL is not configured");if(!d.syncToken)throw Error("Sync token is not configured");let f=await fetch((b=d.masterUrl,`${String(b||"").replace(/\/+$/,"")}/api/cluster/snapshot`),{headers:{Authorization:`Bearer ${d.syncToken}`,"X-BlueRouter-Node-Id":d.nodeId},cache:"no-store",signal:AbortSignal.timeout(12e4)});if(!f.ok)throw Error((await f.json().catch(()=>({}))).error||`Master returned HTTP ${f.status}`);if((Number(f.headers.get("content-length"))||0)>0x10000000)throw Error("Cluster snapshot exceeds the 256 MB limit");let g=await f.text();if(Buffer.byteLength(g,"utf8")>0x10000000)throw Error("Cluster snapshot exceeds the 256 MB limit");let j=JSON.parse(g);if(!j||"object"!=typeof j||!j.manifest||!j.payload)throw Error("Invalid cluster snapshot response");if(c=j.payload,e().createHash("sha256").update(JSON.stringify(c)).digest("hex")!==j.manifest.sha256)throw Error("Cluster snapshot checksum mismatch");if(2!==Number(j.payload?.backup?.formatVersion))throw Error("Unsupported cluster backup format");if(Number(j.manifest.schemaVersion)!==(0,h.q)())throw Error(`Schema version mismatch: Master=${j.manifest.schemaVersion}, Standby=${(0,h.q)()}`);return j}async function l(a=null){let b=await k(a);return{ok:!0,manifest:b.manifest,serverCount:b.payload.resourceMonitor?.servers?.length||0,historyCount:b.payload.resourceMonitor?.history?.length||0}}async function m({force:a=!1,allowDisabled:b=!1}={}){let c=(globalThis[j]||(globalThis[j]={timer:null,running:null,started:!1,heartbeatSucceeded:!1}),globalThis[j]);return c.running||(c.running=(async()=>{let c=await (0,i.Jc)({includeSecrets:!0});if("slave"!==c.role||!c.enabled&&!b)throw Error("Standby sync is not enabled");let d=new Date().toISOString();await (0,i.X_)({lastAttemptAt:d});try{let b=await k(c);if(!a&&b.manifest.sha256===c.lastSnapshotHash){let a={status:"unchanged",snapshotHash:b.manifest.sha256,masterCreatedAt:b.manifest.createdAt};return await (0,i.X_)({lastSyncAt:new Date().toISOString(),lastError:"",lastResult:a}),a}let d=await (0,f.K1)(b.payload,{returnExport:!1});try{(0,g.k)(await (0,f.mt)())}catch(a){console.warn("[cluster] failed to apply restored outbound proxy settings:",a?.message||a)}let e={status:"synced",snapshotHash:b.manifest.sha256,masterCreatedAt:b.manifest.createdAt,serverCount:d.resourceMonitorServerCount||0,historyCount:d.resourceMonitorHistoryCount||0,brandingAssetCount:d.brandingAssetCount||0};return await (0,i.X_)({lastSyncAt:new Date().toISOString(),lastSnapshotHash:b.manifest.sha256,lastError:"",lastResult:e}),e}catch(a){throw await (0,i.X_)({lastError:a?.message||"Cluster sync failed",lastResult:{status:"error"}}),a}})().finally(()=>{c.running=null})),c.running}},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},62763:(a,b,c)=>{c.d(b,{Jc:()=>r,NY:()=>w,Q1:()=>s,WR:()=>v,X_:()=>u,gX:()=>t});var d=c(77598),e=c.n(d),f=c(51455),g=c.n(f),h=c(76760),i=c.n(h),j=c(49120);let k=i().join(j.DATA_DIR,"cluster-config.json"),l=new Set(["standalone","master","slave"]),m="__blueRouterClusterConfigMutation",n={version:1,nodeId:"",role:"standalone",enabled:!1,masterUrl:"",syncToken:"",intervalMinutes:5,lastAttemptAt:null,lastSyncAt:null,lastSnapshotHash:"",lastError:"",lastResult:null,commandAck:null};function o(a={}){let b=l.has(a.role)?a.role:"standalone";return{...n,...a,version:1,nodeId:String(a.nodeId||"").trim()||e().randomUUID(),role:b,enabled:!0===a.enabled,masterUrl:function(a){let b=String(a||"").trim().replace(/\/+$/,"");if(!b)return"";let c=new URL(b);if(!["http:","https:"].includes(c.protocol))throw Error("Master URL must use http:// or https://");if(c.username||c.password)throw Error("Master URL must not contain credentials");return c.toString().replace(/\/+$/,"")}(a.masterUrl),syncToken:String(a.syncToken||"").trim(),intervalMinutes:Math.min(1440,Math.max(1,Number(a.intervalMinutes)||5))}}async function p(a){await g().mkdir(j.DATA_DIR,{recursive:!0});let b=`${k}.${process.pid}.${e().randomUUID()}.tmp`;try{await g().writeFile(b,JSON.stringify(a,null,2),{mode:384}),await g().rename(b,k)}catch(a){throw await g().unlink(b).catch(()=>{}),a}}function q(a){let b=(globalThis[m]||Promise.resolve()).then(a,a);return globalThis[m]=b.catch(()=>{}),b}async function r({includeSecrets:a=!1}={}){let b={};try{b=JSON.parse(await g().readFile(k,"utf8"))}catch(a){a?.code!=="ENOENT"&&console.warn("[cluster] failed to read config:",a?.message||a)}let c=o(b);if(b.nodeId||await p(c),a)return c;let{syncToken:d,...e}=c;return{...e,hasSyncToken:!!c.syncToken}}async function s(a={}){if(!a||"object"!=typeof a||Array.isArray(a))throw Error("Invalid cluster config payload");return q(async()=>{let b=await r({includeSecrets:!0}),c={};for(let b of["role","enabled","masterUrl","syncToken","intervalMinutes"])Object.prototype.hasOwnProperty.call(a,b)&&(c[b]=a[b]);let d=o({...b,...c});if("master"!==d.role||d.syncToken||(d.syncToken=e().randomBytes(32).toString("base64url")),d.enabled&&"slave"===d.role){if(!d.masterUrl)throw Error("Master URL is required for Standby mode");if(!d.syncToken)throw Error("Sync token is required for Standby mode")}return await p(d),d})}async function t(){return q(async()=>{let a={...await r({includeSecrets:!0}),syncToken:e().randomBytes(32).toString("base64url")};return await p(a),a})}async function u(a={}){return q(async()=>{let b=await r({includeSecrets:!0}),c=o({...b,...a,nodeId:b.nodeId,role:b.role,enabled:b.enabled,masterUrl:b.masterUrl,syncToken:b.syncToken,intervalMinutes:b.intervalMinutes});return await p(c),c})}async function v(){return"slave"===(await r({includeSecrets:!0})).role}function w(a,b){let c=Buffer.from(String(a||"")),d=Buffer.from(String(b||""));return c.length>0&&c.length===d.length&&e().timingSafeEqual(c,d)}},63775:(a,b,c)=>{c.d(b,{CG:()=>e,oG:()=>d,zE:()=>f});let d=`
2
+ PRAGMA journal_mode = WAL;
3
+ PRAGMA synchronous = NORMAL;
4
+ PRAGMA temp_store = MEMORY;
5
+ PRAGMA mmap_size = 30000000;
6
+ PRAGMA cache_size = -64000;
7
+ PRAGMA foreign_keys = ON;
8
+ PRAGMA busy_timeout = 5000;
9
+ `,e={_meta:{columns:{key:"TEXT PRIMARY KEY",value:"TEXT NOT NULL"}},settings:{columns:{id:"INTEGER PRIMARY KEY CHECK (id = 1)",data:"TEXT NOT NULL"}},providerConnections:{columns:{id:"TEXT PRIMARY KEY",provider:"TEXT NOT NULL",authType:"TEXT NOT NULL",name:"TEXT",email:"TEXT",priority:"INTEGER",isActive:"INTEGER DEFAULT 1",scope:"TEXT DEFAULT 'system'",ownerUser:"TEXT DEFAULT ''",createdByUser:"TEXT DEFAULT ''",visibility:"TEXT DEFAULT 'system'",data:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_pc_provider ON providerConnections(provider)","CREATE INDEX IF NOT EXISTS idx_pc_provider_active ON providerConnections(provider, isActive)","CREATE INDEX IF NOT EXISTS idx_pc_priority ON providerConnections(provider, priority)","CREATE INDEX IF NOT EXISTS idx_pc_scope_owner ON providerConnections(scope, ownerUser)","CREATE INDEX IF NOT EXISTS idx_pc_provider_scope ON providerConnections(provider, scope)"]},providerNodes:{columns:{id:"TEXT PRIMARY KEY",type:"TEXT",name:"TEXT",data:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_pn_type ON providerNodes(type)"]},proxyPools:{columns:{id:"TEXT PRIMARY KEY",isActive:"INTEGER DEFAULT 1",testStatus:"TEXT",data:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_pp_active ON proxyPools(isActive)","CREATE INDEX IF NOT EXISTS idx_pp_status ON proxyPools(testStatus)"]},apiKeys:{columns:{id:"TEXT PRIMARY KEY",key:"TEXT UNIQUE NOT NULL",name:"TEXT",machineId:"TEXT",isActive:"INTEGER DEFAULT 1",adminDisabled:"INTEGER DEFAULT 0",allowedModels:"TEXT DEFAULT '[]'",ownerUser:"TEXT DEFAULT ''",createdByUser:"TEXT DEFAULT ''",cavemanMode:"TEXT DEFAULT 'inherit'",cavemanLevel:"TEXT DEFAULT 'lite'",createdAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_ak_key ON apiKeys(key)","CREATE INDEX IF NOT EXISTS idx_ak_owner ON apiKeys(ownerUser)","CREATE INDEX IF NOT EXISTS idx_ak_created_by ON apiKeys(createdByUser)","CREATE INDEX IF NOT EXISTS idx_ak_admin_disabled ON apiKeys(adminDisabled)"]},combos:{columns:{id:"TEXT PRIMARY KEY",name:"TEXT UNIQUE NOT NULL",kind:"TEXT",models:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_combo_name ON combos(name)"]},kv:{columns:{scope:"TEXT NOT NULL",key:"TEXT NOT NULL",value:"TEXT NOT NULL"},primaryKey:"PRIMARY KEY (scope, key)",indexes:["CREATE INDEX IF NOT EXISTS idx_kv_scope ON kv(scope)"]},resourceMonitorHistory:{columns:{serverId:"TEXT NOT NULL",sampledAt:"INTEGER NOT NULL",cpuUsage:"REAL DEFAULT 0",memoryUsage:"REAL DEFAULT 0",diskUsage:"REAL DEFAULT 0",diskUsedBytes:"INTEGER DEFAULT 0",networkRxBps:"REAL DEFAULT 0",networkTxBps:"REAL DEFAULT 0",gpus:"TEXT NOT NULL DEFAULT '[]'"},primaryKey:"PRIMARY KEY (serverId, sampledAt)",indexes:["CREATE INDEX IF NOT EXISTS idx_rmh_server_time ON resourceMonitorHistory(serverId, sampledAt)","CREATE INDEX IF NOT EXISTS idx_rmh_sampled_at ON resourceMonitorHistory(sampledAt)"]}};function f(a,b){let c=Object.entries(b.columns).map(([a,b])=>`${a} ${b}`);return b.primaryKey&&c.push(b.primaryKey),`CREATE TABLE IF NOT EXISTS ${a} (${c.join(", ")})`}},90389:(a,b,c)=>{c.d(b,{hS:()=>d});let d=Object.freeze({ADMIN:"admin",MONITOR_ADMIN:"monitor_admin",AI_GATEWAYS_MONITOR:"ai_gateways_monitor",USER:"user",GUEST:"guest"});Object.freeze([{href:"/dashboard/endpoint",label:"Endpoint",icon:"api"},{href:"/dashboard/api-keys",label:"API Keys",icon:"vpn_key"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/analytics",label:"Analytics",icon:"monitoring"},{href:"/dashboard/ai-power-index",label:"AI Power Index",icon:"electric_bolt"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"},{href:"/dashboard/prompt-logs",label:"Prompt Logs",icon:"manage_search"}]),Object.freeze(["/dashboard","/dashboard/endpoint","/dashboard/api-keys","/dashboard/usage","/dashboard/analytics","/dashboard/ai-power-index","/dashboard/quota","/dashboard/prompt-logs"])},92225:(a,b,c)=>{c.d(b,{o:()=>e,q:()=>f});var d=c(63775);let e=[{version:1,name:"initial",up(a){for(let[b,c]of Object.entries(d.CG))for(let e of(a.exec((0,d.zE)(b,c)),c.indexes||[]))a.exec(e)}},{version:2,name:"usage-history-analytics-indexes",up(){}},{version:3,name:"request-observability-rollups",up(a){var b="apiKeys";let c=function(a,b){try{return new Set((a.all(`PRAGMA table_info(${b})`)||[]).map(a=>a.name))}catch{return new Set}}(a,b);for(let[d,e]of Object.entries({ownerUser:"TEXT DEFAULT ''",createdByUser:"TEXT DEFAULT ''",allowedModels:"TEXT DEFAULT '[]'"}))c.has(d)||a.exec(`ALTER TABLE ${b} ADD COLUMN ${d} ${e}`);a.exec("CREATE INDEX IF NOT EXISTS idx_ak_owner ON apiKeys(ownerUser)"),a.exec("CREATE INDEX IF NOT EXISTS idx_ak_created_by ON apiKeys(createdByUser)")}},{version:4,name:"api-key-admin-disabled",up(a){(function(a,b){try{return new Set((a.all(`PRAGMA table_info(${b})`)||[]).map(a=>a.name))}catch{return new Set}})(a,"apiKeys").has("adminDisabled")||a.exec("ALTER TABLE apiKeys ADD COLUMN adminDisabled INTEGER DEFAULT 0"),a.exec("CREATE INDEX IF NOT EXISTS idx_ak_admin_disabled ON apiKeys(adminDisabled)")}},{version:5,name:"api-key-caveman-override",up(a){let b=new Set(a.all("PRAGMA table_info(apiKeys)").map(a=>a.name));b.has("cavemanMode")||a.exec("ALTER TABLE apiKeys ADD COLUMN cavemanMode TEXT DEFAULT 'inherit'"),b.has("cavemanLevel")||a.exec("ALTER TABLE apiKeys ADD COLUMN cavemanLevel TEXT DEFAULT 'lite'")}}].sort((a,b)=>a.version-b.version);function f(){return e.length?e[e.length-1].version:0}},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};