@kaitranntt/ccs 7.74.0 → 7.75.0-dev.10

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 (850) hide show
  1. package/dist/api/services/cliproxy-profile-bridge.js +4 -4
  2. package/dist/api/services/cliproxy-profile-bridge.js.map +1 -1
  3. package/dist/api/services/profile-lifecycle-validation.js +1 -1
  4. package/dist/api/services/profile-lifecycle-validation.js.map +1 -1
  5. package/dist/api/services/profile-writer.d.ts +1 -1
  6. package/dist/api/services/profile-writer.d.ts.map +1 -1
  7. package/dist/api/services/profile-writer.js +12 -6
  8. package/dist/api/services/profile-writer.js.map +1 -1
  9. package/dist/auth/profile-registry.d.ts.map +1 -1
  10. package/dist/auth/profile-registry.js +9 -0
  11. package/dist/auth/profile-registry.js.map +1 -1
  12. package/dist/bin/ccsxp-runtime.d.ts +8 -0
  13. package/dist/bin/ccsxp-runtime.d.ts.map +1 -1
  14. package/dist/bin/ccsxp-runtime.js +60 -3
  15. package/dist/bin/ccsxp-runtime.js.map +1 -1
  16. package/dist/ccs.js +29 -4
  17. package/dist/ccs.js.map +1 -1
  18. package/dist/cliproxy/{account-manager.d.ts → accounts/account-manager.d.ts} +2 -2
  19. package/dist/cliproxy/accounts/account-manager.d.ts.map +1 -0
  20. package/dist/cliproxy/{account-manager.js → accounts/account-manager.js} +34 -34
  21. package/dist/cliproxy/accounts/account-manager.js.map +1 -0
  22. package/dist/cliproxy/{account-safety.d.ts → accounts/account-safety.d.ts} +1 -1
  23. package/dist/cliproxy/accounts/account-safety.d.ts.map +1 -0
  24. package/dist/cliproxy/{account-safety.js → accounts/account-safety.js} +10 -5
  25. package/dist/cliproxy/accounts/account-safety.js.map +1 -0
  26. package/dist/cliproxy/accounts/account-stats-key.d.ts.map +1 -0
  27. package/dist/cliproxy/accounts/account-stats-key.js.map +1 -0
  28. package/dist/cliproxy/accounts/registry.js +1 -1
  29. package/dist/cliproxy/accounts/registry.js.map +1 -1
  30. package/dist/cliproxy/accounts/token-file-ops.js +1 -1
  31. package/dist/cliproxy/accounts/token-file-ops.js.map +1 -1
  32. package/dist/cliproxy/{codex-plan-compatibility.d.ts → ai-providers/codex-plan-compatibility.d.ts} +4 -4
  33. package/dist/cliproxy/ai-providers/codex-plan-compatibility.d.ts.map +1 -0
  34. package/dist/cliproxy/{codex-plan-compatibility.js → ai-providers/codex-plan-compatibility.js} +6 -5
  35. package/dist/cliproxy/ai-providers/codex-plan-compatibility.js.map +1 -0
  36. package/dist/cliproxy/ai-providers/codex-reasoning-proxy.d.ts.map +1 -0
  37. package/dist/cliproxy/{codex-reasoning-proxy.js → ai-providers/codex-reasoning-proxy.js} +1 -1
  38. package/dist/cliproxy/ai-providers/codex-reasoning-proxy.js.map +1 -0
  39. package/dist/cliproxy/ai-providers/config-store.js +3 -3
  40. package/dist/cliproxy/ai-providers/config-store.js.map +1 -1
  41. package/dist/cliproxy/{managed-model-prefixes.d.ts → ai-providers/managed-model-prefixes.d.ts} +1 -1
  42. package/dist/cliproxy/ai-providers/managed-model-prefixes.d.ts.map +1 -0
  43. package/dist/cliproxy/{managed-model-prefixes.js → ai-providers/managed-model-prefixes.js} +3 -3
  44. package/dist/cliproxy/ai-providers/managed-model-prefixes.js.map +1 -0
  45. package/dist/cliproxy/{model-id-normalizer.d.ts → ai-providers/model-id-normalizer.d.ts} +1 -1
  46. package/dist/cliproxy/ai-providers/model-id-normalizer.d.ts.map +1 -0
  47. package/dist/cliproxy/{model-id-normalizer.js → ai-providers/model-id-normalizer.js} +1 -1
  48. package/dist/cliproxy/ai-providers/model-id-normalizer.js.map +1 -0
  49. package/dist/cliproxy/ai-providers/openai-compat-manager.d.ts.map +1 -0
  50. package/dist/cliproxy/{openai-compat-manager.js → ai-providers/openai-compat-manager.js} +7 -6
  51. package/dist/cliproxy/ai-providers/openai-compat-manager.js.map +1 -0
  52. package/dist/cliproxy/ai-providers/schema-sanitizer.d.ts.map +1 -0
  53. package/dist/cliproxy/ai-providers/schema-sanitizer.js.map +1 -0
  54. package/dist/cliproxy/ai-providers/service.d.ts.map +1 -1
  55. package/dist/cliproxy/ai-providers/service.js +10 -3
  56. package/dist/cliproxy/ai-providers/service.js.map +1 -1
  57. package/dist/cliproxy/{tool-name-mapper.d.ts → ai-providers/tool-name-mapper.d.ts} +7 -2
  58. package/dist/cliproxy/ai-providers/tool-name-mapper.d.ts.map +1 -0
  59. package/dist/cliproxy/{tool-name-mapper.js → ai-providers/tool-name-mapper.js} +35 -21
  60. package/dist/cliproxy/ai-providers/tool-name-mapper.js.map +1 -0
  61. package/dist/cliproxy/{tool-name-sanitizer.d.ts → ai-providers/tool-name-sanitizer.d.ts} +2 -1
  62. package/dist/cliproxy/ai-providers/tool-name-sanitizer.d.ts.map +1 -0
  63. package/dist/cliproxy/{tool-name-sanitizer.js → ai-providers/tool-name-sanitizer.js} +23 -3
  64. package/dist/cliproxy/ai-providers/tool-name-sanitizer.js.map +1 -0
  65. package/dist/cliproxy/auth/antigravity-responsibility.d.ts.map +1 -0
  66. package/dist/cliproxy/{antigravity-responsibility.js → auth/antigravity-responsibility.js} +2 -2
  67. package/dist/cliproxy/auth/antigravity-responsibility.js.map +1 -0
  68. package/dist/cliproxy/{auth-handler.d.ts → auth/auth-handler.d.ts} +5 -5
  69. package/dist/cliproxy/auth/auth-handler.d.ts.map +1 -0
  70. package/dist/cliproxy/{auth-handler.js → auth/auth-handler.js} +23 -23
  71. package/dist/cliproxy/auth/auth-handler.js.map +1 -0
  72. package/dist/cliproxy/{auth-session-manager.d.ts → auth/auth-session-manager.d.ts} +1 -1
  73. package/dist/cliproxy/auth/auth-session-manager.d.ts.map +1 -0
  74. package/dist/cliproxy/{auth-session-manager.js → auth/auth-session-manager.js} +16 -9
  75. package/dist/cliproxy/auth/auth-session-manager.js.map +1 -0
  76. package/dist/cliproxy/auth/auth-token-manager.d.ts.map +1 -0
  77. package/dist/cliproxy/{auth-token-manager.js → auth/auth-token-manager.js} +6 -6
  78. package/dist/cliproxy/auth/auth-token-manager.js.map +1 -0
  79. package/dist/cliproxy/auth/auth-types.d.ts +1 -1
  80. package/dist/cliproxy/auth/auth-types.d.ts.map +1 -1
  81. package/dist/cliproxy/auth/auth-utils.d.ts.map +1 -0
  82. package/dist/cliproxy/auth/auth-utils.js.map +1 -0
  83. package/dist/cliproxy/auth/device-code-handler.d.ts.map +1 -0
  84. package/dist/cliproxy/auth/device-code-handler.js.map +1 -0
  85. package/dist/cliproxy/auth/kiro-import.js +1 -1
  86. package/dist/cliproxy/auth/kiro-import.js.map +1 -1
  87. package/dist/cliproxy/auth/oauth-handler.d.ts +2 -2
  88. package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -1
  89. package/dist/cliproxy/auth/oauth-handler.js +25 -5
  90. package/dist/cliproxy/auth/oauth-handler.js.map +1 -1
  91. package/dist/cliproxy/auth/oauth-process.d.ts +1 -1
  92. package/dist/cliproxy/auth/oauth-process.d.ts.map +1 -1
  93. package/dist/cliproxy/auth/oauth-process.js +3 -3
  94. package/dist/cliproxy/auth/oauth-process.js.map +1 -1
  95. package/dist/cliproxy/auth/project-selection-handler.d.ts.map +1 -0
  96. package/dist/cliproxy/auth/project-selection-handler.js.map +1 -0
  97. package/dist/cliproxy/{provider-entitlement-evidence.d.ts → auth/provider-entitlement-evidence.d.ts} +1 -1
  98. package/dist/cliproxy/auth/provider-entitlement-evidence.d.ts.map +1 -0
  99. package/dist/cliproxy/auth/provider-entitlement-evidence.js.map +1 -0
  100. package/dist/cliproxy/{provider-entitlement-types.d.ts → auth/provider-entitlement-types.d.ts} +1 -1
  101. package/dist/cliproxy/auth/provider-entitlement-types.d.ts.map +1 -0
  102. package/dist/cliproxy/auth/provider-entitlement-types.js.map +1 -0
  103. package/dist/cliproxy/auth/provider-refreshers/index.js +1 -1
  104. package/dist/cliproxy/auth/provider-refreshers/index.js.map +1 -1
  105. package/dist/cliproxy/auth/token-expiry-checker.js +1 -1
  106. package/dist/cliproxy/auth/token-expiry-checker.js.map +1 -1
  107. package/dist/cliproxy/auth/token-manager.d.ts +1 -1
  108. package/dist/cliproxy/auth/token-manager.d.ts.map +1 -1
  109. package/dist/cliproxy/auth/token-manager.js +4 -4
  110. package/dist/cliproxy/auth/token-manager.js.map +1 -1
  111. package/dist/cliproxy/binary/extractor.js +1 -1
  112. package/dist/cliproxy/binary/extractor.js.map +1 -1
  113. package/dist/cliproxy/binary/installer.d.ts +1 -1
  114. package/dist/cliproxy/binary/installer.d.ts.map +1 -1
  115. package/dist/cliproxy/binary/installer.js +1 -1
  116. package/dist/cliproxy/binary/installer.js.map +1 -1
  117. package/dist/cliproxy/binary/lifecycle.d.ts.map +1 -1
  118. package/dist/cliproxy/binary/lifecycle.js +5 -4
  119. package/dist/cliproxy/binary/lifecycle.js.map +1 -1
  120. package/dist/cliproxy/{platform-detector.d.ts → binary/platform-detector.d.ts} +1 -1
  121. package/dist/cliproxy/binary/platform-detector.d.ts.map +1 -0
  122. package/dist/cliproxy/binary/platform-detector.js.map +1 -0
  123. package/dist/cliproxy/binary/tar-extractor.d.ts.map +1 -1
  124. package/dist/cliproxy/binary/tar-extractor.js +1 -1
  125. package/dist/cliproxy/binary/tar-extractor.js.map +1 -1
  126. package/dist/cliproxy/binary/version-cache.js +2 -2
  127. package/dist/cliproxy/binary/version-cache.js.map +1 -1
  128. package/dist/cliproxy/binary/version-checker.js +1 -1
  129. package/dist/cliproxy/binary/version-checker.js.map +1 -1
  130. package/dist/cliproxy/binary/zip-extractor.d.ts.map +1 -1
  131. package/dist/cliproxy/binary/zip-extractor.js +1 -1
  132. package/dist/cliproxy/binary/zip-extractor.js.map +1 -1
  133. package/dist/cliproxy/binary-manager.js +2 -2
  134. package/dist/cliproxy/binary-manager.js.map +1 -1
  135. package/dist/cliproxy/{base-config-loader.d.ts → config/base-config-loader.d.ts} +1 -1
  136. package/dist/cliproxy/config/base-config-loader.d.ts.map +1 -0
  137. package/dist/cliproxy/{base-config-loader.js → config/base-config-loader.js} +1 -1
  138. package/dist/cliproxy/config/base-config-loader.js.map +1 -0
  139. package/dist/cliproxy/config/composite-validator.d.ts.map +1 -0
  140. package/dist/cliproxy/{composite-validator.js → config/composite-validator.js} +2 -2
  141. package/dist/cliproxy/config/composite-validator.js.map +1 -0
  142. package/dist/cliproxy/{config-generator.d.ts → config/config-generator.d.ts} +1 -1
  143. package/dist/cliproxy/config/config-generator.d.ts.map +1 -0
  144. package/dist/cliproxy/{config-generator.js → config/config-generator.js} +1 -1
  145. package/dist/cliproxy/config/config-generator.js.map +1 -0
  146. package/dist/cliproxy/config/env-builder.js +3 -3
  147. package/dist/cliproxy/config/env-builder.js.map +1 -1
  148. package/dist/cliproxy/config/generator.d.ts +2 -1
  149. package/dist/cliproxy/config/generator.d.ts.map +1 -1
  150. package/dist/cliproxy/config/generator.js +28 -4
  151. package/dist/cliproxy/config/generator.js.map +1 -1
  152. package/dist/cliproxy/{model-config.d.ts → config/model-config.d.ts} +1 -1
  153. package/dist/cliproxy/config/model-config.d.ts.map +1 -0
  154. package/dist/cliproxy/{model-config.js → config/model-config.js} +5 -5
  155. package/dist/cliproxy/config/model-config.js.map +1 -0
  156. package/dist/cliproxy/config/thinking-config.js +1 -1
  157. package/dist/cliproxy/config/thinking-config.js.map +1 -1
  158. package/dist/cliproxy/{cliproxy-executor.d.ts → executor/cliproxy-executor.d.ts} +2 -2
  159. package/dist/cliproxy/executor/cliproxy-executor.d.ts.map +1 -0
  160. package/dist/cliproxy/{cliproxy-executor.js → executor/cliproxy-executor.js} +6 -6
  161. package/dist/cliproxy/executor/cliproxy-executor.js.map +1 -0
  162. package/dist/cliproxy/executor/env-resolver.d.ts +5 -5
  163. package/dist/cliproxy/executor/env-resolver.d.ts.map +1 -1
  164. package/dist/cliproxy/executor/env-resolver.js +3 -3
  165. package/dist/cliproxy/executor/env-resolver.js.map +1 -1
  166. package/dist/cliproxy/executor/index.d.ts +5 -0
  167. package/dist/cliproxy/executor/index.d.ts.map +1 -1
  168. package/dist/cliproxy/executor/index.js +39 -23
  169. package/dist/cliproxy/executor/index.js.map +1 -1
  170. package/dist/cliproxy/executor/lifecycle-manager.js +1 -1
  171. package/dist/cliproxy/executor/lifecycle-manager.js.map +1 -1
  172. package/dist/cliproxy/executor/retry-handler.js +4 -4
  173. package/dist/cliproxy/executor/retry-handler.js.map +1 -1
  174. package/dist/cliproxy/executor/session-bridge.d.ts.map +1 -1
  175. package/dist/cliproxy/executor/session-bridge.js +3 -3
  176. package/dist/cliproxy/executor/session-bridge.js.map +1 -1
  177. package/dist/cliproxy/index.d.ts +31 -31
  178. package/dist/cliproxy/index.d.ts.map +1 -1
  179. package/dist/cliproxy/index.js +20 -20
  180. package/dist/cliproxy/index.js.map +1 -1
  181. package/dist/cliproxy/{management-api-client.d.ts → management/management-api-client.d.ts} +1 -1
  182. package/dist/cliproxy/management/management-api-client.d.ts.map +1 -0
  183. package/dist/cliproxy/{management-api-client.js → management/management-api-client.js} +4 -3
  184. package/dist/cliproxy/management/management-api-client.js.map +1 -0
  185. package/dist/cliproxy/management/management-api-types.d.ts.map +1 -0
  186. package/dist/cliproxy/management/management-api-types.js.map +1 -0
  187. package/dist/cliproxy/management/remote-token-uploader.d.ts.map +1 -0
  188. package/dist/cliproxy/{remote-token-uploader.js → management/remote-token-uploader.js} +2 -2
  189. package/dist/cliproxy/management/remote-token-uploader.js.map +1 -0
  190. package/dist/cliproxy/model-catalog.d.ts.map +1 -1
  191. package/dist/cliproxy/model-catalog.js +13 -1
  192. package/dist/cliproxy/model-catalog.js.map +1 -1
  193. package/dist/cliproxy/proxy/https-tunnel-proxy.d.ts.map +1 -0
  194. package/dist/cliproxy/{https-tunnel-proxy.js → proxy/https-tunnel-proxy.js} +7 -2
  195. package/dist/cliproxy/proxy/https-tunnel-proxy.js.map +1 -0
  196. package/dist/cliproxy/{proxy-config-resolver.d.ts → proxy/proxy-config-resolver.d.ts} +1 -1
  197. package/dist/cliproxy/proxy/proxy-config-resolver.d.ts.map +1 -0
  198. package/dist/cliproxy/{proxy-config-resolver.js → proxy/proxy-config-resolver.js} +3 -3
  199. package/dist/cliproxy/proxy/proxy-config-resolver.js.map +1 -0
  200. package/dist/cliproxy/{proxy-detector.d.ts → proxy/proxy-detector.d.ts} +1 -1
  201. package/dist/cliproxy/proxy/proxy-detector.d.ts.map +1 -0
  202. package/dist/cliproxy/{proxy-detector.js → proxy/proxy-detector.js} +7 -7
  203. package/dist/cliproxy/proxy/proxy-detector.js.map +1 -0
  204. package/dist/cliproxy/proxy/proxy-target-resolver.d.ts.map +1 -0
  205. package/dist/cliproxy/{proxy-target-resolver.js → proxy/proxy-target-resolver.js} +7 -7
  206. package/dist/cliproxy/proxy/proxy-target-resolver.js.map +1 -0
  207. package/dist/cliproxy/proxy/tool-sanitization-proxy.d.ts.map +1 -0
  208. package/dist/cliproxy/{tool-sanitization-proxy.js → proxy/tool-sanitization-proxy.js} +6 -6
  209. package/dist/cliproxy/proxy/tool-sanitization-proxy.js.map +1 -0
  210. package/dist/cliproxy/quota/gemini-cli-quota-normalizer.d.ts.map +1 -0
  211. package/dist/cliproxy/quota/gemini-cli-quota-normalizer.js.map +1 -0
  212. package/dist/cliproxy/quota/quota-fetcher-claude-normalizer.d.ts.map +1 -0
  213. package/dist/cliproxy/{quota-fetcher-claude-normalizer.js → quota/quota-fetcher-claude-normalizer.js} +17 -13
  214. package/dist/cliproxy/quota/quota-fetcher-claude-normalizer.js.map +1 -0
  215. package/dist/cliproxy/quota/quota-fetcher-claude.d.ts.map +1 -0
  216. package/dist/cliproxy/{quota-fetcher-claude.js → quota/quota-fetcher-claude.js} +3 -3
  217. package/dist/cliproxy/quota/quota-fetcher-claude.js.map +1 -0
  218. package/dist/cliproxy/{quota-fetcher-codex.d.ts → quota/quota-fetcher-codex.d.ts} +18 -3
  219. package/dist/cliproxy/quota/quota-fetcher-codex.d.ts.map +1 -0
  220. package/dist/cliproxy/{quota-fetcher-codex.js → quota/quota-fetcher-codex.js} +78 -28
  221. package/dist/cliproxy/quota/quota-fetcher-codex.js.map +1 -0
  222. package/dist/cliproxy/quota/quota-fetcher-gemini-cli.d.ts.map +1 -0
  223. package/dist/cliproxy/{quota-fetcher-gemini-cli.js → quota/quota-fetcher-gemini-cli.js} +6 -6
  224. package/dist/cliproxy/quota/quota-fetcher-gemini-cli.js.map +1 -0
  225. package/dist/cliproxy/quota/quota-fetcher-ghcp.d.ts.map +1 -0
  226. package/dist/cliproxy/{quota-fetcher-ghcp.js → quota/quota-fetcher-ghcp.js} +21 -10
  227. package/dist/cliproxy/quota/quota-fetcher-ghcp.js.map +1 -0
  228. package/dist/cliproxy/{quota-fetcher.d.ts → quota/quota-fetcher.d.ts} +3 -3
  229. package/dist/cliproxy/quota/quota-fetcher.d.ts.map +1 -0
  230. package/dist/cliproxy/{quota-fetcher.js → quota/quota-fetcher.js} +5 -5
  231. package/dist/cliproxy/quota/quota-fetcher.js.map +1 -0
  232. package/dist/cliproxy/{quota-manager.d.ts → quota/quota-manager.d.ts} +7 -4
  233. package/dist/cliproxy/quota/quota-manager.d.ts.map +1 -0
  234. package/dist/cliproxy/{quota-manager.js → quota/quota-manager.js} +184 -70
  235. package/dist/cliproxy/quota/quota-manager.js.map +1 -0
  236. package/dist/cliproxy/quota/quota-response-cache.d.ts.map +1 -0
  237. package/dist/cliproxy/quota/quota-response-cache.js.map +1 -0
  238. package/dist/cliproxy/{quota-types.d.ts → quota/quota-types.d.ts} +17 -3
  239. package/dist/cliproxy/quota/quota-types.d.ts.map +1 -0
  240. package/dist/cliproxy/quota/quota-types.js.map +1 -0
  241. package/dist/cliproxy/{routing-strategy-http.d.ts → routing/routing-strategy-http.d.ts} +2 -1
  242. package/dist/cliproxy/routing/routing-strategy-http.d.ts.map +1 -0
  243. package/dist/cliproxy/{routing-strategy-http.js → routing/routing-strategy-http.js} +8 -3
  244. package/dist/cliproxy/routing/routing-strategy-http.js.map +1 -0
  245. package/dist/cliproxy/routing/routing-strategy.d.ts +41 -0
  246. package/dist/cliproxy/routing/routing-strategy.d.ts.map +1 -0
  247. package/dist/cliproxy/routing/routing-strategy.js +272 -0
  248. package/dist/cliproxy/routing/routing-strategy.js.map +1 -0
  249. package/dist/cliproxy/service-manager.d.ts +17 -1
  250. package/dist/cliproxy/service-manager.d.ts.map +1 -1
  251. package/dist/cliproxy/service-manager.js +15 -10
  252. package/dist/cliproxy/service-manager.js.map +1 -1
  253. package/dist/cliproxy/services/binary-service.js +1 -1
  254. package/dist/cliproxy/services/binary-service.js.map +1 -1
  255. package/dist/cliproxy/{catalog-cache.d.ts → services/catalog-cache.d.ts} +3 -3
  256. package/dist/cliproxy/services/catalog-cache.d.ts.map +1 -0
  257. package/dist/cliproxy/{catalog-cache.js → services/catalog-cache.js} +4 -4
  258. package/dist/cliproxy/services/catalog-cache.js.map +1 -0
  259. package/dist/cliproxy/{catalog-routing.d.ts → services/catalog-routing.d.ts} +3 -3
  260. package/dist/cliproxy/services/catalog-routing.d.ts.map +1 -0
  261. package/dist/cliproxy/{catalog-routing.js → services/catalog-routing.js} +1 -1
  262. package/dist/cliproxy/services/catalog-routing.js.map +1 -0
  263. package/dist/cliproxy/services/proxy-lifecycle-service.js +1 -1
  264. package/dist/cliproxy/services/proxy-lifecycle-service.js.map +1 -1
  265. package/dist/cliproxy/{remote-auth-fetcher.d.ts → services/remote-auth-fetcher.d.ts} +2 -2
  266. package/dist/cliproxy/services/remote-auth-fetcher.d.ts.map +1 -0
  267. package/dist/cliproxy/{remote-auth-fetcher.js → services/remote-auth-fetcher.js} +2 -2
  268. package/dist/cliproxy/services/remote-auth-fetcher.js.map +1 -0
  269. package/dist/cliproxy/services/remote-proxy-client.d.ts.map +1 -0
  270. package/dist/cliproxy/{remote-proxy-client.js → services/remote-proxy-client.js} +1 -1
  271. package/dist/cliproxy/services/remote-proxy-client.js.map +1 -0
  272. package/dist/cliproxy/services/startup-lock.d.ts.map +1 -0
  273. package/dist/cliproxy/{startup-lock.js → services/startup-lock.js} +2 -2
  274. package/dist/cliproxy/services/startup-lock.js.map +1 -0
  275. package/dist/cliproxy/services/stats-fetcher.d.ts.map +1 -0
  276. package/dist/cliproxy/{stats-fetcher.js → services/stats-fetcher.js} +2 -2
  277. package/dist/cliproxy/services/stats-fetcher.js.map +1 -0
  278. package/dist/cliproxy/services/stats-transformer.d.ts.map +1 -0
  279. package/dist/cliproxy/{stats-transformer.js → services/stats-transformer.js} +3 -3
  280. package/dist/cliproxy/services/stats-transformer.js.map +1 -0
  281. package/dist/cliproxy/services/variant-config-adapter.js +1 -1
  282. package/dist/cliproxy/services/variant-config-adapter.js.map +1 -1
  283. package/dist/cliproxy/services/variant-service.js +3 -3
  284. package/dist/cliproxy/services/variant-service.js.map +1 -1
  285. package/dist/cliproxy/services/variant-settings.js +3 -3
  286. package/dist/cliproxy/services/variant-settings.js.map +1 -1
  287. package/dist/cliproxy/session-tracker.js +2 -2
  288. package/dist/cliproxy/session-tracker.js.map +1 -1
  289. package/dist/cliproxy/sync/local-config-sync.js +1 -1
  290. package/dist/cliproxy/sync/local-config-sync.js.map +1 -1
  291. package/dist/cliproxy/sync/profile-mapper.d.ts +1 -1
  292. package/dist/cliproxy/sync/profile-mapper.d.ts.map +1 -1
  293. package/dist/cliproxy/sync/profile-mapper.js +21 -0
  294. package/dist/cliproxy/sync/profile-mapper.js.map +1 -1
  295. package/dist/cliproxy/types/binary-types.d.ts +48 -0
  296. package/dist/cliproxy/types/binary-types.d.ts.map +1 -0
  297. package/dist/cliproxy/types/binary-types.js +6 -0
  298. package/dist/cliproxy/types/binary-types.js.map +1 -0
  299. package/dist/cliproxy/types/config-types.d.ts +89 -0
  300. package/dist/cliproxy/types/config-types.d.ts.map +1 -0
  301. package/dist/cliproxy/types/config-types.js +6 -0
  302. package/dist/cliproxy/types/config-types.js.map +1 -0
  303. package/dist/cliproxy/types/index.d.ts +5 -0
  304. package/dist/cliproxy/types/index.d.ts.map +1 -0
  305. package/dist/cliproxy/types/index.js +21 -0
  306. package/dist/cliproxy/types/index.js.map +1 -0
  307. package/dist/cliproxy/types/platform-types.d.ts +17 -0
  308. package/dist/cliproxy/types/platform-types.d.ts.map +1 -0
  309. package/dist/cliproxy/types/platform-types.js +6 -0
  310. package/dist/cliproxy/types/platform-types.js.map +1 -0
  311. package/dist/cliproxy/types/provider-types.d.ts +27 -0
  312. package/dist/cliproxy/types/provider-types.d.ts.map +1 -0
  313. package/dist/cliproxy/types/provider-types.js +16 -0
  314. package/dist/cliproxy/types/provider-types.js.map +1 -0
  315. package/dist/cliproxy/types.d.ts +4 -273
  316. package/dist/cliproxy/types.d.ts.map +1 -1
  317. package/dist/cliproxy/types.js +18 -14
  318. package/dist/cliproxy/types.js.map +1 -1
  319. package/dist/commands/api-command/create-command.d.ts.map +1 -1
  320. package/dist/commands/api-command/create-command.js +4 -1
  321. package/dist/commands/api-command/create-command.js.map +1 -1
  322. package/dist/commands/api-command/help.d.ts.map +1 -1
  323. package/dist/commands/api-command/help.js +4 -0
  324. package/dist/commands/api-command/help.js.map +1 -1
  325. package/dist/commands/api-command/shared.d.ts +2 -1
  326. package/dist/commands/api-command/shared.d.ts.map +1 -1
  327. package/dist/commands/api-command/shared.js +9 -0
  328. package/dist/commands/api-command/shared.js.map +1 -1
  329. package/dist/commands/cleanup-command.js +1 -1
  330. package/dist/commands/cleanup-command.js.map +1 -1
  331. package/dist/commands/cliproxy/auth-subcommand.js +1 -1
  332. package/dist/commands/cliproxy/auth-subcommand.js.map +1 -1
  333. package/dist/commands/cliproxy/catalog-subcommand.js +4 -4
  334. package/dist/commands/cliproxy/catalog-subcommand.js.map +1 -1
  335. package/dist/commands/cliproxy/help-subcommand.d.ts.map +1 -1
  336. package/dist/commands/cliproxy/help-subcommand.js +4 -2
  337. package/dist/commands/cliproxy/help-subcommand.js.map +1 -1
  338. package/dist/commands/cliproxy/index.d.ts.map +1 -1
  339. package/dist/commands/cliproxy/index.js +12 -0
  340. package/dist/commands/cliproxy/index.js.map +1 -1
  341. package/dist/commands/cliproxy/install-subcommand.js +1 -1
  342. package/dist/commands/cliproxy/install-subcommand.js.map +1 -1
  343. package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js +1 -1
  344. package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js.map +1 -1
  345. package/dist/commands/cliproxy/quota-subcommand.d.ts +1 -1
  346. package/dist/commands/cliproxy/quota-subcommand.d.ts.map +1 -1
  347. package/dist/commands/cliproxy/quota-subcommand.js +87 -31
  348. package/dist/commands/cliproxy/quota-subcommand.js.map +1 -1
  349. package/dist/commands/cliproxy/routing-subcommand.d.ts +3 -0
  350. package/dist/commands/cliproxy/routing-subcommand.d.ts.map +1 -1
  351. package/dist/commands/cliproxy/routing-subcommand.js +128 -3
  352. package/dist/commands/cliproxy/routing-subcommand.js.map +1 -1
  353. package/dist/commands/cliproxy/variant-subcommand.js +4 -4
  354. package/dist/commands/cliproxy/variant-subcommand.js.map +1 -1
  355. package/dist/commands/command-catalog.d.ts.map +1 -1
  356. package/dist/commands/command-catalog.js +4 -1
  357. package/dist/commands/command-catalog.js.map +1 -1
  358. package/dist/commands/completion-backend.d.ts.map +1 -1
  359. package/dist/commands/completion-backend.js +16 -1
  360. package/dist/commands/completion-backend.js.map +1 -1
  361. package/dist/commands/config-command.js +1 -1
  362. package/dist/commands/config-command.js.map +1 -1
  363. package/dist/commands/config-dashboard-host.d.ts.map +1 -1
  364. package/dist/commands/config-dashboard-host.js +14 -2
  365. package/dist/commands/config-dashboard-host.js.map +1 -1
  366. package/dist/commands/doctor-command.d.ts.map +1 -1
  367. package/dist/commands/doctor-command.js +9 -0
  368. package/dist/commands/doctor-command.js.map +1 -1
  369. package/dist/commands/tokens-command.js +1 -1
  370. package/dist/commands/tokens-command.js.map +1 -1
  371. package/dist/config/config-loader-facade.d.ts +57 -0
  372. package/dist/config/config-loader-facade.d.ts.map +1 -0
  373. package/dist/config/config-loader-facade.js +131 -0
  374. package/dist/config/config-loader-facade.js.map +1 -0
  375. package/dist/config/schemas/auth.d.ts +97 -0
  376. package/dist/config/schemas/auth.d.ts.map +1 -0
  377. package/dist/config/schemas/auth.js +25 -0
  378. package/dist/config/schemas/auth.js.map +1 -0
  379. package/dist/config/schemas/browser.d.ts +53 -0
  380. package/dist/config/schemas/browser.d.ts.map +1 -0
  381. package/dist/config/schemas/browser.js +27 -0
  382. package/dist/config/schemas/browser.js.map +1 -0
  383. package/dist/config/schemas/channels.d.ts +27 -0
  384. package/dist/config/schemas/channels.d.ts.map +1 -0
  385. package/dist/config/schemas/channels.js +19 -0
  386. package/dist/config/schemas/channels.js.map +1 -0
  387. package/dist/config/schemas/cliproxy.d.ts +140 -0
  388. package/dist/config/schemas/cliproxy.d.ts.map +1 -0
  389. package/dist/config/schemas/cliproxy.js +18 -0
  390. package/dist/config/schemas/cliproxy.js.map +1 -0
  391. package/dist/config/schemas/copilot-cursor.d.ts +75 -0
  392. package/dist/config/schemas/copilot-cursor.d.ts.map +1 -0
  393. package/dist/config/schemas/copilot-cursor.js +36 -0
  394. package/dist/config/schemas/copilot-cursor.js.map +1 -0
  395. package/dist/config/schemas/index.d.ts +28 -0
  396. package/dist/config/schemas/index.d.ts.map +1 -0
  397. package/dist/config/schemas/index.js +51 -0
  398. package/dist/config/schemas/index.js.map +1 -0
  399. package/dist/config/schemas/logging.d.ts +43 -0
  400. package/dist/config/schemas/logging.d.ts.map +1 -0
  401. package/dist/config/schemas/logging.js +23 -0
  402. package/dist/config/schemas/logging.js.map +1 -0
  403. package/dist/config/schemas/providers.d.ts +14 -0
  404. package/dist/config/schemas/providers.d.ts.map +1 -0
  405. package/dist/config/schemas/providers.js +21 -0
  406. package/dist/config/schemas/providers.js.map +1 -0
  407. package/dist/config/schemas/proxy-server.d.ts +141 -0
  408. package/dist/config/schemas/proxy-server.d.ts.map +1 -0
  409. package/dist/config/schemas/proxy-server.js +71 -0
  410. package/dist/config/schemas/proxy-server.js.map +1 -0
  411. package/dist/config/schemas/quota.d.ts +88 -0
  412. package/dist/config/schemas/quota.d.ts.map +1 -0
  413. package/dist/config/schemas/quota.js +47 -0
  414. package/dist/config/schemas/quota.js.map +1 -0
  415. package/dist/config/schemas/thinking.d.ts +50 -0
  416. package/dist/config/schemas/thinking.d.ts.map +1 -0
  417. package/dist/config/schemas/thinking.js +26 -0
  418. package/dist/config/schemas/thinking.js.map +1 -0
  419. package/dist/config/schemas/unified-config.d.ts +74 -0
  420. package/dist/config/schemas/unified-config.d.ts.map +1 -0
  421. package/dist/config/schemas/unified-config.js +131 -0
  422. package/dist/config/schemas/unified-config.js.map +1 -0
  423. package/dist/config/schemas/version.d.ts +23 -0
  424. package/dist/config/schemas/version.d.ts.map +1 -0
  425. package/dist/config/schemas/version.js +26 -0
  426. package/dist/config/schemas/version.js.map +1 -0
  427. package/dist/config/schemas/websearch.d.ts +138 -0
  428. package/dist/config/schemas/websearch.d.ts.map +1 -0
  429. package/dist/config/schemas/websearch.js +12 -0
  430. package/dist/config/schemas/websearch.js.map +1 -0
  431. package/dist/config/unified-config-loader.d.ts.map +1 -1
  432. package/dist/config/unified-config-loader.js +27 -1
  433. package/dist/config/unified-config-loader.js.map +1 -1
  434. package/dist/config/unified-config-types.d.ts +3 -814
  435. package/dist/config/unified-config-types.d.ts.map +1 -1
  436. package/dist/config/unified-config-types.js +19 -317
  437. package/dist/config/unified-config-types.js.map +1 -1
  438. package/dist/copilot/copilot-auth.d.ts.map +1 -1
  439. package/dist/copilot/copilot-auth.js +22 -0
  440. package/dist/copilot/copilot-auth.js.map +1 -1
  441. package/dist/copilot/copilot-daemon.d.ts.map +1 -1
  442. package/dist/copilot/copilot-daemon.js +26 -0
  443. package/dist/copilot/copilot-daemon.js.map +1 -1
  444. package/dist/copilot/copilot-executor.d.ts +1 -1
  445. package/dist/copilot/copilot-executor.d.ts.map +1 -1
  446. package/dist/copilot/copilot-executor.js +23 -1
  447. package/dist/copilot/copilot-executor.js.map +1 -1
  448. package/dist/cursor/cursor-daemon.d.ts.map +1 -1
  449. package/dist/cursor/cursor-daemon.js +28 -1
  450. package/dist/cursor/cursor-daemon.js.map +1 -1
  451. package/dist/cursor/cursor-executor.d.ts.map +1 -1
  452. package/dist/cursor/cursor-executor.js +17 -1
  453. package/dist/cursor/cursor-executor.js.map +1 -1
  454. package/dist/delegation/headless-executor.d.ts.map +1 -1
  455. package/dist/delegation/headless-executor.js +17 -2
  456. package/dist/delegation/headless-executor.js.map +1 -1
  457. package/dist/docker/docker-bootstrap.js +1 -1
  458. package/dist/docker/docker-bootstrap.js.map +1 -1
  459. package/dist/errors/error-types.d.ts +9 -0
  460. package/dist/errors/error-types.d.ts.map +1 -1
  461. package/dist/errors/error-types.js +15 -1
  462. package/dist/errors/error-types.js.map +1 -1
  463. package/dist/errors/index.d.ts +1 -1
  464. package/dist/errors/index.d.ts.map +1 -1
  465. package/dist/errors/index.js +3 -1
  466. package/dist/errors/index.js.map +1 -1
  467. package/dist/glmt/glmt-proxy.d.ts.map +1 -1
  468. package/dist/glmt/glmt-proxy.js +7 -0
  469. package/dist/glmt/glmt-proxy.js.map +1 -1
  470. package/dist/glmt/glmt-transformer.d.ts.map +1 -1
  471. package/dist/glmt/glmt-transformer.js +1 -3
  472. package/dist/glmt/glmt-transformer.js.map +1 -1
  473. package/dist/management/checks/image-analysis-check.js +2 -2
  474. package/dist/management/checks/image-analysis-check.js.map +1 -1
  475. package/dist/management/instance-manager.d.ts.map +1 -1
  476. package/dist/management/instance-manager.js +9 -0
  477. package/dist/management/instance-manager.js.map +1 -1
  478. package/dist/management/plugin-path-normalizer.d.ts +7 -0
  479. package/dist/management/plugin-path-normalizer.d.ts.map +1 -0
  480. package/dist/management/plugin-path-normalizer.js +82 -0
  481. package/dist/management/plugin-path-normalizer.js.map +1 -0
  482. package/dist/management/shared-manager.d.ts +1 -2
  483. package/dist/management/shared-manager.d.ts.map +1 -1
  484. package/dist/management/shared-manager.js +8 -56
  485. package/dist/management/shared-manager.js.map +1 -1
  486. package/dist/proxy/server/messages-route.d.ts.map +1 -1
  487. package/dist/proxy/server/messages-route.js +50 -9
  488. package/dist/proxy/server/messages-route.js.map +1 -1
  489. package/dist/proxy/server/proxy-server.d.ts.map +1 -1
  490. package/dist/proxy/server/proxy-server.js +24 -6
  491. package/dist/proxy/server/proxy-server.js.map +1 -1
  492. package/dist/proxy/transformers/request-transformer.d.ts +1 -0
  493. package/dist/proxy/transformers/request-transformer.d.ts.map +1 -1
  494. package/dist/proxy/transformers/request-transformer.js +10 -9
  495. package/dist/proxy/transformers/request-transformer.js.map +1 -1
  496. package/dist/services/logging/index.d.ts +6 -1
  497. package/dist/services/logging/index.d.ts.map +1 -1
  498. package/dist/services/logging/index.js +16 -1
  499. package/dist/services/logging/index.js.map +1 -1
  500. package/dist/services/logging/log-context.d.ts +41 -0
  501. package/dist/services/logging/log-context.d.ts.map +1 -0
  502. package/dist/services/logging/log-context.js +51 -0
  503. package/dist/services/logging/log-context.js.map +1 -0
  504. package/dist/services/logging/log-redaction.d.ts +8 -0
  505. package/dist/services/logging/log-redaction.d.ts.map +1 -1
  506. package/dist/services/logging/log-redaction.js +40 -3
  507. package/dist/services/logging/log-redaction.js.map +1 -1
  508. package/dist/services/logging/log-types.d.ts +30 -0
  509. package/dist/services/logging/log-types.d.ts.map +1 -1
  510. package/dist/services/logging/log-types.js +15 -1
  511. package/dist/services/logging/log-types.js.map +1 -1
  512. package/dist/services/logging/logger.d.ts +17 -0
  513. package/dist/services/logging/logger.d.ts.map +1 -1
  514. package/dist/services/logging/logger.js +23 -4
  515. package/dist/services/logging/logger.js.map +1 -1
  516. package/dist/shared/claude-extension-setup.js +1 -1
  517. package/dist/shared/claude-extension-setup.js.map +1 -1
  518. package/dist/targets/claude-adapter.d.ts.map +1 -1
  519. package/dist/targets/claude-adapter.js +11 -0
  520. package/dist/targets/claude-adapter.js.map +1 -1
  521. package/dist/targets/codex-adapter.d.ts.map +1 -1
  522. package/dist/targets/codex-adapter.js +11 -0
  523. package/dist/targets/codex-adapter.js.map +1 -1
  524. package/dist/targets/droid-adapter.d.ts.map +1 -1
  525. package/dist/targets/droid-adapter.js +11 -0
  526. package/dist/targets/droid-adapter.js.map +1 -1
  527. package/dist/targets/target-metadata.js +1 -1
  528. package/dist/targets/target-metadata.js.map +1 -1
  529. package/dist/ui/assets/{accounts-D0Z5AVKW.js → accounts-CDgKt-GZ.js} +1 -1
  530. package/dist/ui/assets/{alert-dialog-CzJucE0e.js → alert-dialog-CRqbTpjm.js} +1 -1
  531. package/dist/ui/assets/{api-DXAf4i-v.js → api-C7W2ibtd.js} +1 -1
  532. package/dist/ui/assets/{auth-section-BrnnHBi-.js → auth-section-RBgQQrdk.js} +1 -1
  533. package/dist/ui/assets/{backups-section-DCBcfZ-C.js → backups-section-DptarTls.js} +1 -1
  534. package/dist/ui/assets/{channels-BSapONLx.js → channels-BMQs4wmY.js} +1 -1
  535. package/dist/ui/assets/{charts-BBPXh0Ar.js → charts-CeK2xCSo.js} +1 -1
  536. package/dist/ui/assets/{checkbox-Bd7X5Xud.js → checkbox-BrRyK0T3.js} +1 -1
  537. package/dist/ui/assets/{claude-extension-BYJxm4B5.js → claude-extension-DrSuOyf4.js} +1 -1
  538. package/dist/ui/assets/cliproxy-CdqYwRJH.js +3 -0
  539. package/dist/ui/assets/{cliproxy-ai-providers-D7r2Us_Y.js → cliproxy-ai-providers-B8aZTWIe.js} +1 -1
  540. package/dist/ui/assets/{cliproxy-control-panel-Cmo3ArVL.js → cliproxy-control-panel-BpXgvmht.js} +1 -1
  541. package/dist/ui/assets/{code-highlight-BRUf_pqB.js → code-highlight-D4E79GKQ.js} +1 -1
  542. package/dist/ui/assets/codex-CYoq5g4z.js +27 -0
  543. package/dist/ui/assets/{confirm-dialog--zJgz4y0.js → confirm-dialog-CP-4T1Wp.js} +1 -1
  544. package/dist/ui/assets/{copilot-2ARJ9YVb.js → copilot-aEdlrY3S.js} +1 -1
  545. package/dist/ui/assets/{cursor-CQNCrVt0.js → cursor-CSJ0aqxS.js} +1 -1
  546. package/dist/ui/assets/{droid-Dl5wRjDv.js → droid-DTdvqOvV.js} +1 -1
  547. package/dist/ui/assets/{form-utils-Bcoyqxpq.js → form-utils-CuHzLhJZ.js} +1 -1
  548. package/dist/ui/assets/{globalenv-section-T1imQsSA.js → globalenv-section-DXbRVgOM.js} +1 -1
  549. package/dist/ui/assets/health-CDce37cB.js +1 -0
  550. package/dist/ui/assets/icons-DQFHtVq5.js +1 -0
  551. package/dist/ui/assets/index-6xrth3Oz.css +1 -0
  552. package/dist/ui/assets/index-Bm9k7s_T.js +1 -0
  553. package/dist/ui/assets/{index-DFgCoUVv.js → index-D_FmvtnX.js} +1 -1
  554. package/dist/ui/assets/{index-CqJFugM4.js → index-DjxqZO4B.js} +1 -1
  555. package/dist/ui/assets/index-Fd17BSGq.js +72 -0
  556. package/dist/ui/assets/index-KK76yIJk.js +1 -0
  557. package/dist/ui/assets/{index-fV5BBuAO.js → index-dnIWLkjb.js} +1 -1
  558. package/dist/ui/assets/{index-DH916Tyi.js → index-vN-yw8kw.js} +1 -1
  559. package/dist/ui/assets/logs-C_MtpQIE.js +1 -0
  560. package/dist/ui/assets/masked-input-BAWBYIqo.js +1 -0
  561. package/dist/ui/assets/{notifications-B2HqRBj7.js → notifications-B4_o8bcr.js} +1 -1
  562. package/dist/ui/assets/proxy-C4-M_9kB.js +9 -0
  563. package/dist/ui/assets/proxy-status-widget-DUqasX3c.js +1 -0
  564. package/dist/ui/assets/{radix-ui-Zb8sVEtn.js → radix-ui-nu4wz29m.js} +1 -1
  565. package/dist/ui/assets/{raw-json-settings-editor-panel-DNmb_vR-.js → raw-json-settings-editor-panel-DuVlOXFi.js} +1 -1
  566. package/dist/ui/assets/{react-vendor-CNOkPC89.js → react-vendor-Bjx91N7w.js} +1 -1
  567. package/dist/ui/assets/{searchable-select--iFe00dY.js → searchable-select-BCxZHr8N.js} +1 -1
  568. package/dist/ui/assets/{separator-CaGbNw8E.js → separator-BV4BKMsB.js} +1 -1
  569. package/dist/ui/assets/{shared-Cgk48Wu3.js → shared-D-Cu_o1h.js} +1 -1
  570. package/dist/ui/assets/{table-CKuoPAz4.js → table-DW66THR9.js} +1 -1
  571. package/dist/ui/assets/{tanstack-CrmUhA7Z.js → tanstack-bhJxV1h8.js} +1 -1
  572. package/dist/ui/assets/updates-V0D_Q8n4.js +1 -0
  573. package/dist/ui/index.html +9 -9
  574. package/dist/utils/hooks/get-image-analysis-hook-env.d.ts +1 -1
  575. package/dist/utils/hooks/get-image-analysis-hook-env.d.ts.map +1 -1
  576. package/dist/utils/hooks/get-image-analysis-hook-env.js +2 -2
  577. package/dist/utils/hooks/get-image-analysis-hook-env.js.map +1 -1
  578. package/dist/utils/hooks/image-analysis-backend-resolver.js +1 -1
  579. package/dist/utils/hooks/image-analysis-backend-resolver.js.map +1 -1
  580. package/dist/utils/hooks/image-analysis-runtime-status.d.ts +4 -4
  581. package/dist/utils/hooks/image-analysis-runtime-status.d.ts.map +1 -1
  582. package/dist/utils/hooks/image-analysis-runtime-status.js +5 -5
  583. package/dist/utils/hooks/image-analysis-runtime-status.js.map +1 -1
  584. package/dist/utils/openai-compat-launch-settings.d.ts +7 -0
  585. package/dist/utils/openai-compat-launch-settings.d.ts.map +1 -0
  586. package/dist/utils/openai-compat-launch-settings.js +61 -0
  587. package/dist/utils/openai-compat-launch-settings.js.map +1 -0
  588. package/dist/utils/retry-strategy.d.ts +37 -0
  589. package/dist/utils/retry-strategy.d.ts.map +1 -0
  590. package/dist/utils/retry-strategy.js +99 -0
  591. package/dist/utils/retry-strategy.js.map +1 -0
  592. package/dist/utils/shell-executor.d.ts +1 -1
  593. package/dist/utils/shell-executor.d.ts.map +1 -1
  594. package/dist/utils/shell-executor.js +11 -1
  595. package/dist/utils/shell-executor.js.map +1 -1
  596. package/dist/web-server/health/cliproxy-checks.js +2 -2
  597. package/dist/web-server/health/cliproxy-checks.js.map +1 -1
  598. package/dist/web-server/index.js +2 -2
  599. package/dist/web-server/index.js.map +1 -1
  600. package/dist/web-server/jsonl-parser.d.ts.map +1 -1
  601. package/dist/web-server/jsonl-parser.js +22 -4
  602. package/dist/web-server/jsonl-parser.js.map +1 -1
  603. package/dist/web-server/model-pricing.d.ts +8 -6
  604. package/dist/web-server/model-pricing.d.ts.map +1 -1
  605. package/dist/web-server/model-pricing.js +80 -29
  606. package/dist/web-server/model-pricing.js.map +1 -1
  607. package/dist/web-server/models-dev/pricing-resolver.d.ts +18 -0
  608. package/dist/web-server/models-dev/pricing-resolver.d.ts.map +1 -0
  609. package/dist/web-server/models-dev/pricing-resolver.js +153 -0
  610. package/dist/web-server/models-dev/pricing-resolver.js.map +1 -0
  611. package/dist/web-server/models-dev/registry-cache.d.ts +19 -0
  612. package/dist/web-server/models-dev/registry-cache.d.ts.map +1 -0
  613. package/dist/web-server/models-dev/registry-cache.js +155 -0
  614. package/dist/web-server/models-dev/registry-cache.js.map +1 -0
  615. package/dist/web-server/models-dev/types.d.ts +39 -0
  616. package/dist/web-server/models-dev/types.d.ts.map +1 -0
  617. package/dist/web-server/models-dev/types.js +3 -0
  618. package/dist/web-server/models-dev/types.js.map +1 -0
  619. package/dist/web-server/overview-routes.js +1 -1
  620. package/dist/web-server/overview-routes.js.map +1 -1
  621. package/dist/web-server/routes/account-routes.js +1 -1
  622. package/dist/web-server/routes/account-routes.js.map +1 -1
  623. package/dist/web-server/routes/catalog-routes.js +1 -1
  624. package/dist/web-server/routes/catalog-routes.js.map +1 -1
  625. package/dist/web-server/routes/cliproxy-auth-routes.js +10 -10
  626. package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -1
  627. package/dist/web-server/routes/cliproxy-routing-routes.d.ts.map +1 -1
  628. package/dist/web-server/routes/cliproxy-routing-routes.js +36 -1
  629. package/dist/web-server/routes/cliproxy-routing-routes.js.map +1 -1
  630. package/dist/web-server/routes/cliproxy-stats-routes.js +10 -10
  631. package/dist/web-server/routes/cliproxy-stats-routes.js.map +1 -1
  632. package/dist/web-server/routes/image-analysis-routes.js +1 -1
  633. package/dist/web-server/routes/image-analysis-routes.js.map +1 -1
  634. package/dist/web-server/routes/profile-routes.d.ts.map +1 -1
  635. package/dist/web-server/routes/profile-routes.js +13 -3
  636. package/dist/web-server/routes/profile-routes.js.map +1 -1
  637. package/dist/web-server/routes/provider-routes.js +1 -1
  638. package/dist/web-server/routes/provider-routes.js.map +1 -1
  639. package/dist/web-server/routes/proxy-routes.js +2 -2
  640. package/dist/web-server/routes/proxy-routes.js.map +1 -1
  641. package/dist/web-server/routes/route-helpers.d.ts +1 -0
  642. package/dist/web-server/routes/route-helpers.d.ts.map +1 -1
  643. package/dist/web-server/routes/route-helpers.js +12 -1
  644. package/dist/web-server/routes/route-helpers.js.map +1 -1
  645. package/dist/web-server/routes/settings-routes.js +2 -2
  646. package/dist/web-server/routes/settings-routes.js.map +1 -1
  647. package/dist/web-server/routes/variant-routes.js +1 -1
  648. package/dist/web-server/routes/variant-routes.js.map +1 -1
  649. package/dist/web-server/services/cliproxy-dashboard-install-service.js +1 -1
  650. package/dist/web-server/services/cliproxy-dashboard-install-service.js.map +1 -1
  651. package/dist/web-server/usage/aggregator.d.ts +1 -0
  652. package/dist/web-server/usage/aggregator.d.ts.map +1 -1
  653. package/dist/web-server/usage/aggregator.js +121 -20
  654. package/dist/web-server/usage/aggregator.js.map +1 -1
  655. package/dist/web-server/usage/cliproxy-usage-syncer.d.ts +1 -16
  656. package/dist/web-server/usage/cliproxy-usage-syncer.d.ts.map +1 -1
  657. package/dist/web-server/usage/cliproxy-usage-syncer.js +160 -56
  658. package/dist/web-server/usage/cliproxy-usage-syncer.js.map +1 -1
  659. package/dist/web-server/usage/cliproxy-usage-transformer.d.ts +23 -7
  660. package/dist/web-server/usage/cliproxy-usage-transformer.d.ts.map +1 -1
  661. package/dist/web-server/usage/cliproxy-usage-transformer.js +191 -28
  662. package/dist/web-server/usage/cliproxy-usage-transformer.js.map +1 -1
  663. package/dist/web-server/usage/codex-native-usage-collector.d.ts +11 -0
  664. package/dist/web-server/usage/codex-native-usage-collector.d.ts.map +1 -0
  665. package/dist/web-server/usage/codex-native-usage-collector.js +177 -0
  666. package/dist/web-server/usage/codex-native-usage-collector.js.map +1 -0
  667. package/dist/web-server/usage/data-aggregator.d.ts.map +1 -1
  668. package/dist/web-server/usage/data-aggregator.js +45 -46
  669. package/dist/web-server/usage/data-aggregator.js.map +1 -1
  670. package/dist/web-server/usage/droid-native-usage-collector.d.ts +14 -0
  671. package/dist/web-server/usage/droid-native-usage-collector.d.ts.map +1 -0
  672. package/dist/web-server/usage/droid-native-usage-collector.js +201 -0
  673. package/dist/web-server/usage/droid-native-usage-collector.js.map +1 -0
  674. package/dist/web-server/usage/handlers.d.ts +1 -0
  675. package/dist/web-server/usage/handlers.d.ts.map +1 -1
  676. package/dist/web-server/usage/handlers.js +155 -45
  677. package/dist/web-server/usage/handlers.js.map +1 -1
  678. package/dist/web-server/usage/model-identity.d.ts +16 -0
  679. package/dist/web-server/usage/model-identity.d.ts.map +1 -0
  680. package/dist/web-server/usage/model-identity.js +70 -0
  681. package/dist/web-server/usage/model-identity.js.map +1 -0
  682. package/dist/web-server/usage/sqlite-cli.d.ts +3 -0
  683. package/dist/web-server/usage/sqlite-cli.d.ts.map +1 -0
  684. package/dist/web-server/usage/sqlite-cli.js +62 -0
  685. package/dist/web-server/usage/sqlite-cli.js.map +1 -0
  686. package/dist/web-server/usage/types.d.ts +6 -0
  687. package/dist/web-server/usage/types.d.ts.map +1 -1
  688. package/dist/web-server/websocket.js +2 -2
  689. package/dist/web-server/websocket.js.map +1 -1
  690. package/lib/mcp/ccs-browser-server.cjs +309 -121
  691. package/package.json +1 -1
  692. package/scripts/dev-release.sh +4 -2
  693. package/scripts/run-test-bucket.js +2 -1
  694. package/dist/cliproxy/account-manager.d.ts.map +0 -1
  695. package/dist/cliproxy/account-manager.js.map +0 -1
  696. package/dist/cliproxy/account-safety.d.ts.map +0 -1
  697. package/dist/cliproxy/account-safety.js.map +0 -1
  698. package/dist/cliproxy/account-stats-key.d.ts.map +0 -1
  699. package/dist/cliproxy/account-stats-key.js.map +0 -1
  700. package/dist/cliproxy/antigravity-responsibility.d.ts.map +0 -1
  701. package/dist/cliproxy/antigravity-responsibility.js.map +0 -1
  702. package/dist/cliproxy/auth-handler.d.ts.map +0 -1
  703. package/dist/cliproxy/auth-handler.js.map +0 -1
  704. package/dist/cliproxy/auth-session-manager.d.ts.map +0 -1
  705. package/dist/cliproxy/auth-session-manager.js.map +0 -1
  706. package/dist/cliproxy/auth-token-manager.d.ts.map +0 -1
  707. package/dist/cliproxy/auth-token-manager.js.map +0 -1
  708. package/dist/cliproxy/auth-utils.d.ts.map +0 -1
  709. package/dist/cliproxy/auth-utils.js.map +0 -1
  710. package/dist/cliproxy/base-config-loader.d.ts.map +0 -1
  711. package/dist/cliproxy/base-config-loader.js.map +0 -1
  712. package/dist/cliproxy/catalog-cache.d.ts.map +0 -1
  713. package/dist/cliproxy/catalog-cache.js.map +0 -1
  714. package/dist/cliproxy/catalog-routing.d.ts.map +0 -1
  715. package/dist/cliproxy/catalog-routing.js.map +0 -1
  716. package/dist/cliproxy/cliproxy-executor.d.ts.map +0 -1
  717. package/dist/cliproxy/cliproxy-executor.js.map +0 -1
  718. package/dist/cliproxy/codex-plan-compatibility.d.ts.map +0 -1
  719. package/dist/cliproxy/codex-plan-compatibility.js.map +0 -1
  720. package/dist/cliproxy/codex-reasoning-proxy.d.ts.map +0 -1
  721. package/dist/cliproxy/codex-reasoning-proxy.js.map +0 -1
  722. package/dist/cliproxy/composite-validator.d.ts.map +0 -1
  723. package/dist/cliproxy/composite-validator.js.map +0 -1
  724. package/dist/cliproxy/config-generator.d.ts.map +0 -1
  725. package/dist/cliproxy/config-generator.js.map +0 -1
  726. package/dist/cliproxy/device-code-handler.d.ts.map +0 -1
  727. package/dist/cliproxy/device-code-handler.js.map +0 -1
  728. package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts.map +0 -1
  729. package/dist/cliproxy/gemini-cli-quota-normalizer.js.map +0 -1
  730. package/dist/cliproxy/https-tunnel-proxy.d.ts.map +0 -1
  731. package/dist/cliproxy/https-tunnel-proxy.js.map +0 -1
  732. package/dist/cliproxy/managed-model-prefixes.d.ts.map +0 -1
  733. package/dist/cliproxy/managed-model-prefixes.js.map +0 -1
  734. package/dist/cliproxy/management-api-client.d.ts.map +0 -1
  735. package/dist/cliproxy/management-api-client.js.map +0 -1
  736. package/dist/cliproxy/management-api-types.d.ts.map +0 -1
  737. package/dist/cliproxy/management-api-types.js.map +0 -1
  738. package/dist/cliproxy/model-config.d.ts.map +0 -1
  739. package/dist/cliproxy/model-config.js.map +0 -1
  740. package/dist/cliproxy/model-id-normalizer.d.ts.map +0 -1
  741. package/dist/cliproxy/model-id-normalizer.js.map +0 -1
  742. package/dist/cliproxy/openai-compat-manager.d.ts.map +0 -1
  743. package/dist/cliproxy/openai-compat-manager.js.map +0 -1
  744. package/dist/cliproxy/platform-detector.d.ts.map +0 -1
  745. package/dist/cliproxy/platform-detector.js.map +0 -1
  746. package/dist/cliproxy/project-selection-handler.d.ts.map +0 -1
  747. package/dist/cliproxy/project-selection-handler.js.map +0 -1
  748. package/dist/cliproxy/provider-entitlement-evidence.d.ts.map +0 -1
  749. package/dist/cliproxy/provider-entitlement-evidence.js.map +0 -1
  750. package/dist/cliproxy/provider-entitlement-types.d.ts.map +0 -1
  751. package/dist/cliproxy/provider-entitlement-types.js.map +0 -1
  752. package/dist/cliproxy/proxy-config-resolver.d.ts.map +0 -1
  753. package/dist/cliproxy/proxy-config-resolver.js.map +0 -1
  754. package/dist/cliproxy/proxy-detector.d.ts.map +0 -1
  755. package/dist/cliproxy/proxy-detector.js.map +0 -1
  756. package/dist/cliproxy/proxy-target-resolver.d.ts.map +0 -1
  757. package/dist/cliproxy/proxy-target-resolver.js.map +0 -1
  758. package/dist/cliproxy/quota-fetcher-claude-normalizer.d.ts.map +0 -1
  759. package/dist/cliproxy/quota-fetcher-claude-normalizer.js.map +0 -1
  760. package/dist/cliproxy/quota-fetcher-claude.d.ts.map +0 -1
  761. package/dist/cliproxy/quota-fetcher-claude.js.map +0 -1
  762. package/dist/cliproxy/quota-fetcher-codex.d.ts.map +0 -1
  763. package/dist/cliproxy/quota-fetcher-codex.js.map +0 -1
  764. package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts.map +0 -1
  765. package/dist/cliproxy/quota-fetcher-gemini-cli.js.map +0 -1
  766. package/dist/cliproxy/quota-fetcher-ghcp.d.ts.map +0 -1
  767. package/dist/cliproxy/quota-fetcher-ghcp.js.map +0 -1
  768. package/dist/cliproxy/quota-fetcher.d.ts.map +0 -1
  769. package/dist/cliproxy/quota-fetcher.js.map +0 -1
  770. package/dist/cliproxy/quota-manager.d.ts.map +0 -1
  771. package/dist/cliproxy/quota-manager.js.map +0 -1
  772. package/dist/cliproxy/quota-response-cache.d.ts.map +0 -1
  773. package/dist/cliproxy/quota-response-cache.js.map +0 -1
  774. package/dist/cliproxy/quota-types.d.ts.map +0 -1
  775. package/dist/cliproxy/quota-types.js.map +0 -1
  776. package/dist/cliproxy/remote-auth-fetcher.d.ts.map +0 -1
  777. package/dist/cliproxy/remote-auth-fetcher.js.map +0 -1
  778. package/dist/cliproxy/remote-proxy-client.d.ts.map +0 -1
  779. package/dist/cliproxy/remote-proxy-client.js.map +0 -1
  780. package/dist/cliproxy/remote-token-uploader.d.ts.map +0 -1
  781. package/dist/cliproxy/remote-token-uploader.js.map +0 -1
  782. package/dist/cliproxy/routing-strategy-http.d.ts.map +0 -1
  783. package/dist/cliproxy/routing-strategy-http.js.map +0 -1
  784. package/dist/cliproxy/routing-strategy.d.ts +0 -18
  785. package/dist/cliproxy/routing-strategy.d.ts.map +0 -1
  786. package/dist/cliproxy/routing-strategy.js +0 -126
  787. package/dist/cliproxy/routing-strategy.js.map +0 -1
  788. package/dist/cliproxy/schema-sanitizer.d.ts.map +0 -1
  789. package/dist/cliproxy/schema-sanitizer.js.map +0 -1
  790. package/dist/cliproxy/startup-lock.d.ts.map +0 -1
  791. package/dist/cliproxy/startup-lock.js.map +0 -1
  792. package/dist/cliproxy/stats-fetcher.d.ts.map +0 -1
  793. package/dist/cliproxy/stats-fetcher.js.map +0 -1
  794. package/dist/cliproxy/stats-transformer.d.ts.map +0 -1
  795. package/dist/cliproxy/stats-transformer.js.map +0 -1
  796. package/dist/cliproxy/tool-name-mapper.d.ts.map +0 -1
  797. package/dist/cliproxy/tool-name-mapper.js.map +0 -1
  798. package/dist/cliproxy/tool-name-sanitizer.d.ts.map +0 -1
  799. package/dist/cliproxy/tool-name-sanitizer.js.map +0 -1
  800. package/dist/cliproxy/tool-sanitization-proxy.d.ts.map +0 -1
  801. package/dist/cliproxy/tool-sanitization-proxy.js.map +0 -1
  802. package/dist/ui/assets/cliproxy-G5JuFm2j.js +0 -3
  803. package/dist/ui/assets/codex-4VNBJ4Nb.js +0 -27
  804. package/dist/ui/assets/health-CNous3WN.js +0 -1
  805. package/dist/ui/assets/icons-DyorC3Xk.js +0 -1
  806. package/dist/ui/assets/index-2X8-14xr.js +0 -72
  807. package/dist/ui/assets/index-BcLnqcxD.js +0 -1
  808. package/dist/ui/assets/index-Be3dhMW3.js +0 -9
  809. package/dist/ui/assets/index-DuTB1_9r.css +0 -1
  810. package/dist/ui/assets/logs-CZsWbq7X.js +0 -1
  811. package/dist/ui/assets/masked-input-_EkW1Pzo.js +0 -1
  812. package/dist/ui/assets/proxy-status-widget-D82T2X4F.js +0 -1
  813. package/dist/ui/assets/updates-Dr8Yq-Pm.js +0 -1
  814. /package/dist/cliproxy/{account-stats-key.d.ts → accounts/account-stats-key.d.ts} +0 -0
  815. /package/dist/cliproxy/{account-stats-key.js → accounts/account-stats-key.js} +0 -0
  816. /package/dist/cliproxy/{codex-reasoning-proxy.d.ts → ai-providers/codex-reasoning-proxy.d.ts} +0 -0
  817. /package/dist/cliproxy/{openai-compat-manager.d.ts → ai-providers/openai-compat-manager.d.ts} +0 -0
  818. /package/dist/cliproxy/{schema-sanitizer.d.ts → ai-providers/schema-sanitizer.d.ts} +0 -0
  819. /package/dist/cliproxy/{schema-sanitizer.js → ai-providers/schema-sanitizer.js} +0 -0
  820. /package/dist/cliproxy/{antigravity-responsibility.d.ts → auth/antigravity-responsibility.d.ts} +0 -0
  821. /package/dist/cliproxy/{auth-token-manager.d.ts → auth/auth-token-manager.d.ts} +0 -0
  822. /package/dist/cliproxy/{auth-utils.d.ts → auth/auth-utils.d.ts} +0 -0
  823. /package/dist/cliproxy/{auth-utils.js → auth/auth-utils.js} +0 -0
  824. /package/dist/cliproxy/{device-code-handler.d.ts → auth/device-code-handler.d.ts} +0 -0
  825. /package/dist/cliproxy/{device-code-handler.js → auth/device-code-handler.js} +0 -0
  826. /package/dist/cliproxy/{project-selection-handler.d.ts → auth/project-selection-handler.d.ts} +0 -0
  827. /package/dist/cliproxy/{project-selection-handler.js → auth/project-selection-handler.js} +0 -0
  828. /package/dist/cliproxy/{provider-entitlement-evidence.js → auth/provider-entitlement-evidence.js} +0 -0
  829. /package/dist/cliproxy/{provider-entitlement-types.js → auth/provider-entitlement-types.js} +0 -0
  830. /package/dist/cliproxy/{platform-detector.js → binary/platform-detector.js} +0 -0
  831. /package/dist/cliproxy/{composite-validator.d.ts → config/composite-validator.d.ts} +0 -0
  832. /package/dist/cliproxy/{management-api-types.d.ts → management/management-api-types.d.ts} +0 -0
  833. /package/dist/cliproxy/{management-api-types.js → management/management-api-types.js} +0 -0
  834. /package/dist/cliproxy/{remote-token-uploader.d.ts → management/remote-token-uploader.d.ts} +0 -0
  835. /package/dist/cliproxy/{https-tunnel-proxy.d.ts → proxy/https-tunnel-proxy.d.ts} +0 -0
  836. /package/dist/cliproxy/{proxy-target-resolver.d.ts → proxy/proxy-target-resolver.d.ts} +0 -0
  837. /package/dist/cliproxy/{tool-sanitization-proxy.d.ts → proxy/tool-sanitization-proxy.d.ts} +0 -0
  838. /package/dist/cliproxy/{gemini-cli-quota-normalizer.d.ts → quota/gemini-cli-quota-normalizer.d.ts} +0 -0
  839. /package/dist/cliproxy/{gemini-cli-quota-normalizer.js → quota/gemini-cli-quota-normalizer.js} +0 -0
  840. /package/dist/cliproxy/{quota-fetcher-claude-normalizer.d.ts → quota/quota-fetcher-claude-normalizer.d.ts} +0 -0
  841. /package/dist/cliproxy/{quota-fetcher-claude.d.ts → quota/quota-fetcher-claude.d.ts} +0 -0
  842. /package/dist/cliproxy/{quota-fetcher-gemini-cli.d.ts → quota/quota-fetcher-gemini-cli.d.ts} +0 -0
  843. /package/dist/cliproxy/{quota-fetcher-ghcp.d.ts → quota/quota-fetcher-ghcp.d.ts} +0 -0
  844. /package/dist/cliproxy/{quota-response-cache.d.ts → quota/quota-response-cache.d.ts} +0 -0
  845. /package/dist/cliproxy/{quota-response-cache.js → quota/quota-response-cache.js} +0 -0
  846. /package/dist/cliproxy/{quota-types.js → quota/quota-types.js} +0 -0
  847. /package/dist/cliproxy/{remote-proxy-client.d.ts → services/remote-proxy-client.d.ts} +0 -0
  848. /package/dist/cliproxy/{startup-lock.d.ts → services/startup-lock.d.ts} +0 -0
  849. /package/dist/cliproxy/{stats-fetcher.d.ts → services/stats-fetcher.d.ts} +0 -0
  850. /package/dist/cliproxy/{stats-transformer.d.ts → services/stats-transformer.d.ts} +0 -0
@@ -1,3 +1,3 @@
1
1
  function at(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const u=Object.getOwnPropertyDescriptor(n,i);u&&Object.defineProperty(e,i,u.get?u:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ce={exports:{}},R={};var be;function ot(){if(be)return R;be=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),m=Symbol.iterator;function v(o){return o===null||typeof o!="object"?null:(o=m&&o[m]||o["@@iterator"],typeof o=="function"?o:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,y={};function g(o,p,_){this.props=o,this.context=p,this.refs=y,this.updater=_||w}g.prototype.isReactComponent={},g.prototype.setState=function(o,p){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,p,"setState")},g.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function E(){}E.prototype=g.prototype;function P(o,p,_){this.props=o,this.context=p,this.refs=y,this.updater=_||w}var $=P.prototype=new E;$.constructor=P,S($,g.prototype),$.isPureReactComponent=!0;var A=Array.isArray;function U(){}var x={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function F(o,p,_){var C=_.ref;return{$$typeof:e,type:o,key:p,ref:C!==void 0?C:null,props:_}}function I(o,p){return F(o.type,p,o.props)}function z(o){return typeof o=="object"&&o!==null&&o.$$typeof===e}function te(o){var p={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(_){return p[_]})}var Pe=/\/+/g;function se(o,p){return typeof o=="object"&&o!==null&&o.key!=null?te(""+o.key):p.toString(36)}function et(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(U,U):(o.status="pending",o.then(function(p){o.status==="pending"&&(o.status="fulfilled",o.value=p)},function(p){o.status==="pending"&&(o.status="rejected",o.reason=p)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function K(o,p,_,C,b){var T=typeof o;(T==="undefined"||T==="boolean")&&(o=null);var L=!1;if(o===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(o.$$typeof){case e:case t:L=!0;break;case d:return L=o._init,K(L(o._payload),p,_,C,b)}}if(L)return b=b(o),L=C===""?"."+se(o,0):C,A(b)?(_="",L!=null&&(_=L.replace(Pe,"$&/")+"/"),K(b,p,_,"",function(nt){return nt})):b!=null&&(z(b)&&(b=I(b,_+(b.key==null||o&&o.key===b.key?"":(""+b.key).replace(Pe,"$&/")+"/")+L)),p.push(b)),1;L=0;var j=C===""?".":C+":";if(A(o))for(var N=0;N<o.length;N++)C=o[N],T=j+se(C,N),L+=K(C,p,_,T,b);else if(N=v(o),typeof N=="function")for(o=N.call(o),N=0;!(C=o.next()).done;)C=C.value,T=j+se(C,N++),L+=K(C,p,_,T,b);else if(T==="object"){if(typeof o.then=="function")return K(et(o),p,_,C,b);throw p=String(o),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return L}function re(o,p,_){if(o==null)return o;var C=[],b=0;return K(o,C,"","",function(T){return p.call(_,T,b++)}),C}function tt(o){if(o._status===-1){var p=o._result;p=p(),p.then(function(_){(o._status===0||o._status===-1)&&(o._status=1,o._result=_)},function(_){(o._status===0||o._status===-1)&&(o._status=2,o._result=_)}),o._status===-1&&(o._status=0,o._result=p)}if(o._status===1)return o._result.default;throw o._result}var xe=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},rt={map:re,forEach:function(o,p,_){re(o,function(){p.apply(this,arguments)},_)},count:function(o){var p=0;return re(o,function(){p++}),p},toArray:function(o){return re(o,function(p){return p})||[]},only:function(o){if(!z(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};return R.Activity=h,R.Children=rt,R.Component=g,R.Fragment=r,R.Profiler=i,R.PureComponent=P,R.StrictMode=n,R.Suspense=l,R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,R.__COMPILER_RUNTIME={__proto__:null,c:function(o){return x.H.useMemoCache(o)}},R.cache=function(o){return function(){return o.apply(null,arguments)}},R.cacheSignal=function(){return null},R.cloneElement=function(o,p,_){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var C=S({},o.props),b=o.key;if(p!=null)for(T in p.key!==void 0&&(b=""+p.key),p)!q.call(p,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&p.ref===void 0||(C[T]=p[T]);var T=arguments.length-2;if(T===1)C.children=_;else if(1<T){for(var L=Array(T),j=0;j<T;j++)L[j]=arguments[j+2];C.children=L}return F(o.type,b,C)},R.createContext=function(o){return o={$$typeof:s,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:u,_context:o},o},R.createElement=function(o,p,_){var C,b={},T=null;if(p!=null)for(C in p.key!==void 0&&(T=""+p.key),p)q.call(p,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(b[C]=p[C]);var L=arguments.length-2;if(L===1)b.children=_;else if(1<L){for(var j=Array(L),N=0;N<L;N++)j[N]=arguments[N+2];b.children=j}if(o&&o.defaultProps)for(C in L=o.defaultProps,L)b[C]===void 0&&(b[C]=L[C]);return F(o,T,b)},R.createRef=function(){return{current:null}},R.forwardRef=function(o){return{$$typeof:f,render:o}},R.isValidElement=z,R.lazy=function(o){return{$$typeof:d,_payload:{_status:-1,_result:o},_init:tt}},R.memo=function(o,p){return{$$typeof:a,type:o,compare:p===void 0?null:p}},R.startTransition=function(o){var p=x.T,_={};x.T=_;try{var C=o(),b=x.S;b!==null&&b(_,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then(U,xe)}catch(T){xe(T)}finally{p!==null&&_.types!==null&&(p.types=_.types),x.T=p}},R.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},R.use=function(o){return x.H.use(o)},R.useActionState=function(o,p,_){return x.H.useActionState(o,p,_)},R.useCallback=function(o,p){return x.H.useCallback(o,p)},R.useContext=function(o){return x.H.useContext(o)},R.useDebugValue=function(){},R.useDeferredValue=function(o,p){return x.H.useDeferredValue(o,p)},R.useEffect=function(o,p){return x.H.useEffect(o,p)},R.useEffectEvent=function(o){return x.H.useEffectEvent(o)},R.useId=function(){return x.H.useId()},R.useImperativeHandle=function(o,p,_){return x.H.useImperativeHandle(o,p,_)},R.useInsertionEffect=function(o,p){return x.H.useInsertionEffect(o,p)},R.useLayoutEffect=function(o,p){return x.H.useLayoutEffect(o,p)},R.useMemo=function(o,p){return x.H.useMemo(o,p)},R.useOptimistic=function(o,p){return x.H.useOptimistic(o,p)},R.useReducer=function(o,p,_){return x.H.useReducer(o,p,_)},R.useRef=function(o){return x.H.useRef(o)},R.useState=function(o){return x.H.useState(o)},R.useSyncExternalStore=function(o,p,_){return x.H.useSyncExternalStore(o,p,_)},R.useTransition=function(){return x.H.useTransition()},R.version="19.2.1",R}var Te;function He(){return Te||(Te=1,ce.exports=ot()),ce.exports}var c=He();const it=Ie(c),Ir=at({__proto__:null,default:it},[c]);var fe={exports:{}},k={};var Le;function ut(){if(Le)return k;Le=1;var e=He();function t(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function u(l,a,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:h==null?null:""+h,children:l,containerInfo:a,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(l,a){if(l==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}return k.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,k.createPortal=function(l,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(t(299));return u(l,a,null,d)},k.flushSync=function(l){var a=s.T,d=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=a,n.p=d,n.d.f()}},k.preconnect=function(l,a){typeof l=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,n.d.C(l,a))},k.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},k.preinit=function(l,a){if(typeof l=="string"&&a&&typeof a.as=="string"){var d=a.as,h=f(d,a.crossOrigin),m=typeof a.integrity=="string"?a.integrity:void 0,v=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;d==="style"?n.d.S(l,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:h,integrity:m,fetchPriority:v}):d==="script"&&n.d.X(l,{crossOrigin:h,integrity:m,fetchPriority:v,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},k.preinitModule=function(l,a){if(typeof l=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var d=f(a.as,a.crossOrigin);n.d.M(l,{crossOrigin:d,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&n.d.M(l)},k.preload=function(l,a){if(typeof l=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var d=a.as,h=f(d,a.crossOrigin);n.d.L(l,d,{crossOrigin:h,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},k.preloadModule=function(l,a){if(typeof l=="string")if(a){var d=f(a.as,a.crossOrigin);n.d.m(l,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:d,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else n.d.m(l)},k.requestFormReset=function(l){n.d.r(l)},k.unstable_batchedUpdates=function(l,a){return l(a)},k.useFormState=function(l,a,d){return s.H.useFormState(l,a,d)},k.useFormStatus=function(){return s.H.useHostTransitionStatus()},k.version="19.2.1",k}var Oe;function lt(){if(Oe)return fe.exports;Oe=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fe.exports=ut(),fe.exports}var $e="popstate";function st(e={}){function t(n,i){let{pathname:u,search:s,hash:f}=n.location;return pe("",{pathname:u,search:s,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Q(i)}return ft(t,r,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function D(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ct(){return Math.random().toString(36).substring(2,10)}function ke(e,t){return{usr:e.state,key:e.key,idx:t}}function pe(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?V(t):t,state:r,key:t&&t.key||n||ct()}}function Q({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function V(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function ft(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:u=!1}=n,s=i.history,f="POP",l=null,a=d();a==null&&(a=0,s.replaceState({...s.state,idx:a},""));function d(){return(s.state||{idx:null}).idx}function h(){f="POP";let y=d(),g=y==null?null:y-a;a=y,l&&l({action:f,location:S.location,delta:g})}function m(y,g){f="PUSH";let E=pe(S.location,y,g);a=d()+1;let P=ke(E,a),$=S.createHref(E);try{s.pushState(P,"",$)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign($)}u&&l&&l({action:f,location:S.location,delta:1})}function v(y,g){f="REPLACE";let E=pe(S.location,y,g);a=d();let P=ke(E,a),$=S.createHref(E);s.replaceState(P,"",$),u&&l&&l({action:f,location:S.location,delta:0})}function w(y){return dt(y)}let S={get action(){return f},get location(){return e(i,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener($e,h),l=y,()=>{i.removeEventListener($e,h),l=null}},createHref(y){return t(i,y)},createURL:w,encodeLocation(y){let g=w(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:v,go(y){return s.go(y)}};return S}function dt(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),O(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:Q(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function Ue(e,t,r="/"){return ht(e,t,r,!1)}function ht(e,t,r,n){let i=typeof t=="string"?V(t):t,u=W(i.pathname||"/",r);if(u==null)return null;let s=Fe(e);pt(s);let f=null;for(let l=0;f==null&&l<s.length;++l){let a=Pt(u);f=_t(s[l],a,n)}return f}function Fe(e,t=[],r=[],n="",i=!1){let u=(s,f,l=i,a)=>{let d={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:f,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&l)return;O(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let h=B([n,d.relativePath]),m=r.concat(d);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Fe(s.children,t,m,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:wt(h,s.index),routesMeta:m})};return e.forEach((s,f)=>{if(s.path===""||!s.path?.includes("?"))u(s,f);else for(let l of je(s.path))u(s,f,!0,l)}),t}function je(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return i?[u,""]:[u];let s=je(n.join("/")),f=[];return f.push(...s.map(l=>l===""?u:[u,l].join("/"))),i&&f.push(...s),f.map(l=>e.startsWith("/")&&l===""?"/":l)}function pt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ct(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var mt=/^:[\w-]+$/,yt=3,gt=2,vt=1,Et=10,Rt=-2,Ae=e=>e==="*";function wt(e,t){let r=e.split("/"),n=r.length;return r.some(Ae)&&(n+=Rt),t&&(n+=gt),r.filter(i=>!Ae(i)).reduce((i,u)=>i+(mt.test(u)?yt:u===""?vt:Et),n)}function Ct(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function _t(e,t,r=!1){let{routesMeta:n}=e,i={},u="/",s=[];for(let f=0;f<n.length;++f){let l=n[f],a=f===n.length-1,d=u==="/"?t:t.slice(u.length)||"/",h=ie({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},d),m=l.route;if(!h&&a&&r&&!n[n.length-1].route.index&&(h=ie({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!h)return null;Object.assign(i,h.params),s.push({params:i,pathname:B([u,h.pathname]),pathnameBase:Ot(B([u,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(u=B([u,h.pathnameBase]))}return s}function ie(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=St(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let u=i[0],s=u.replace(/(.)\/+$/,"$1"),f=i.slice(1);return{params:n.reduce((a,{paramName:d,isOptional:h},m)=>{if(d==="*"){let w=f[m]||"";s=u.slice(0,u.length-w.length).replace(/(.)\/+$/,"$1")}const v=f[m];return h&&!v?a[d]=void 0:a[d]=(v||"").replace(/%2F/g,"/"),a},{}),pathname:u,pathnameBase:s,pattern:e}}function St(e,t=!1,r=!0){D(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,f,l)=>(n.push({paramName:f,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Pt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return D(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function W(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var xt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bt=e=>xt.test(e);function Tt(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?V(e):e,u;if(r)if(bt(r))u=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),D(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${r}`)}r.startsWith("/")?u=Ne(r.substring(1),"/"):u=Ne(r,t)}else u=t;return{pathname:u,search:$t(n),hash:kt(i)}}function Ne(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function de(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Lt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ge(e){let t=Lt(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ve(e,t,r,n=!1){let i;typeof e=="string"?i=V(e):(i={...e},O(!i.pathname||!i.pathname.includes("?"),de("?","pathname","search",i)),O(!i.pathname||!i.pathname.includes("#"),de("#","pathname","hash",i)),O(!i.search||!i.search.includes("#"),de("#","search","hash",i)));let u=e===""||i.pathname==="",s=u?"/":i.pathname,f;if(s==null)f=r;else{let h=t.length-1;if(!n&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}f=h>=0?t[h]:"/"}let l=Tt(i,f),a=s&&s!=="/"&&s.endsWith("/"),d=(u||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(a||d)&&(l.pathname+="/"),l}var B=e=>e.join("/").replace(/\/\/+/g,"/"),Ot=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$t=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function At(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Nt(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Be=["POST","PUT","PATCH","DELETE"];new Set(Be);var Dt=["GET",...Be];new Set(Dt);var G=c.createContext(null);G.displayName="DataRouter";var ue=c.createContext(null);ue.displayName="DataRouterState";c.createContext(!1);var We=c.createContext({isTransitioning:!1});We.displayName="ViewTransition";var Mt=c.createContext(new Map);Mt.displayName="Fetchers";var It=c.createContext(null);It.displayName="Await";var M=c.createContext(null);M.displayName="Navigation";var Z=c.createContext(null);Z.displayName="Location";var H=c.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var Ee=c.createContext(null);Ee.displayName="RouteError";function Ht(e,{relative:t}={}){O(J(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=c.useContext(M),{hash:i,pathname:u,search:s}=ee(e,{relative:t}),f=u;return r!=="/"&&(f=u==="/"?r:B([r,u])),n.createHref({pathname:f,search:s,hash:i})}function J(){return c.useContext(Z)!=null}function Y(){return O(J(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(Z).location}var Ye="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ze(e){c.useContext(M).static||c.useLayoutEffect(e)}function Re(){let{isDataRoute:e}=c.useContext(H);return e?Zt():Ut()}function Ut(){O(J(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(G),{basename:t,navigator:r}=c.useContext(M),{matches:n}=c.useContext(H),{pathname:i}=Y(),u=JSON.stringify(ge(n)),s=c.useRef(!1);return ze(()=>{s.current=!0}),c.useCallback((l,a={})=>{if(D(s.current,Ye),!s.current)return;if(typeof l=="number"){r.go(l);return}let d=ve(l,JSON.parse(u),i,a.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:B([t,d.pathname])),(a.replace?r.replace:r.push)(d,a.state,a)},[t,r,u,i,e])}var Ft=c.createContext(null);function jt(e){let t=c.useContext(H).outlet;return c.useMemo(()=>t&&c.createElement(Ft.Provider,{value:e},t),[t,e])}function ee(e,{relative:t}={}){let{matches:r}=c.useContext(H),{pathname:n}=Y(),i=JSON.stringify(ge(r));return c.useMemo(()=>ve(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function Bt(e,t){return qe(e,t)}function qe(e,t,r,n,i){O(J(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=c.useContext(M),{matches:s}=c.useContext(H),f=s[s.length-1],l=f?f.params:{},a=f?f.pathname:"/",d=f?f.pathnameBase:"/",h=f&&f.route;{let E=h&&h.path||"";Ke(a,!h||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
2
 
3
- Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=Y(),v;if(t){let E=typeof t=="string"?V(t):t;O(d==="/"||E.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=m;let w=v.pathname||"/",S=w;if(d!=="/"){let E=d.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=Ue(e,{pathname:S});D(h||y!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),D(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Kt(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:B([d,u.encodeLocation?u.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:B([d,u.encodeLocation?u.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,r,n,i);return t&&g?c.createElement(Z.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},g):g}function Wt(){let e=Qt(),t=At(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},u={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:u},"ErrorBoundary")," or"," ",c.createElement("code",{style:u},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:i},r):null,s)}var Yt=c.createElement(Wt,null),zt=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(Ee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qt({routeContext:e,match:t,children:r}){let n=c.useContext(G);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(H.Provider,{value:e},r)}function Kt(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r?.errors;if(s!=null){let d=u.findIndex(h=>h.route.id&&s?.[h.route.id]!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,d+1))}let f=!1,l=-1;if(r)for(let d=0;d<u.length;d++){let h=u[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=d),h.route.id){let{loaderData:m,errors:v}=r,w=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||w){f=!0,l>=0?u=u.slice(0,l+1):u=[u[0]];break}}}let a=r&&n?(d,h)=>{n(d,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Nt(r.matches),errorInfo:h})}:void 0;return u.reduceRight((d,h,m)=>{let v,w=!1,S=null,y=null;r&&(v=s&&h.route.id?s[h.route.id]:void 0,S=h.route.errorElement||Yt,f&&(l<0&&m===0?(Ke("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):l===m&&(w=!0,y=h.route.hydrateFallbackElement||null)));let g=t.concat(u.slice(0,m+1)),E=()=>{let P;return v?P=S:w?P=y:h.route.Component?P=c.createElement(h.route.Component,null):h.route.element?P=h.route.element:P=d,c.createElement(qt,{match:h,routeContext:{outlet:d,matches:g,isDataRoute:r!=null},children:P})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?c.createElement(zt,{location:r.location,revalidation:r.revalidation,component:S,error:v,children:E(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:a}):E()},null)}function we(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vt(e){let t=c.useContext(G);return O(t,we(e)),t}function Gt(e){let t=c.useContext(ue);return O(t,we(e)),t}function Jt(e){let t=c.useContext(H);return O(t,we(e)),t}function Ce(e){let t=Jt(e),r=t.matches[t.matches.length-1];return O(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Xt(){return Ce("useRouteId")}function Qt(){let e=c.useContext(Ee),t=Gt("useRouteError"),r=Ce("useRouteError");return e!==void 0?e:t.errors?.[r]}function Zt(){let{router:e}=Vt("useNavigate"),t=Ce("useNavigate"),r=c.useRef(!1);return ze(()=>{r.current=!0}),c.useCallback(async(i,u={})=>{D(r.current,Ye),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...u}))},[e,t])}var De={};function Ke(e,t,r){!t&&!De[e]&&(De[e]=!0,D(!1,r))}c.memo(er);function er({routes:e,future:t,state:r,unstable_onError:n}){return qe(e,void 0,r,n,t)}function Hr({to:e,replace:t,state:r,relative:n}){O(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=c.useContext(M);D(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=c.useContext(H),{pathname:s}=Y(),f=Re(),l=ve(e,ge(u),s,n==="path"),a=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(a),{replace:t,state:r,relative:n})},[f,a,n,t,r]),null}function Ur(e){return jt(e.context)}function tr(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:u=!1,unstable_useTransitions:s}){O(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:i,static:u,unstable_useTransitions:s,future:{}}),[f,i,u,s]);typeof r=="string"&&(r=V(r));let{pathname:a="/",search:d="",hash:h="",state:m=null,key:v="default"}=r,w=c.useMemo(()=>{let S=W(a,f);return S==null?null:{location:{pathname:S,search:d,hash:h,state:m,key:v},navigationType:n}},[f,a,d,h,m,v,n]);return D(w!=null,`<Router basename="${f}"> is not able to match the URL "${a}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:c.createElement(M.Provider,{value:l},c.createElement(Z.Provider,{children:t,value:w}))}function Fr({children:e,location:t}){return Bt(me(e),t)}function me(e,t=[]){let r=[];return c.Children.forEach(e,(n,i)=>{if(!c.isValidElement(n))return;let u=[...t,i];if(n.type===c.Fragment){r.push.apply(r,me(n.props.children,u));return}O(n.type===tr,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=me(n.props.children,u)),r.push(s)}),r}var ae="get",oe="application/x-www-form-urlencoded";function le(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function nr(e){return le(e)&&e.tagName.toLowerCase()==="button"}function ar(e){return le(e)&&e.tagName.toLowerCase()==="form"}function or(e){return le(e)&&e.tagName.toLowerCase()==="input"}function ir(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ur(e,t){return e.button===0&&(!t||t==="_self")&&!ir(e)}function ye(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function lr(e,t){let r=ye(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(u=>{r.append(i,u)})}),r}var ne=null;function sr(){if(ne===null)try{new FormData(document.createElement("form"),0),ne=!1}catch{ne=!0}return ne}var cr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function he(e){return e!=null&&!cr.has(e)?(D(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oe}"`),null):e}function fr(e,t){let r,n,i,u,s;if(ar(e)){let f=e.getAttribute("action");n=f?W(f,t):null,r=e.getAttribute("method")||ae,i=he(e.getAttribute("enctype"))||oe,u=new FormData(e)}else if(nr(e)||or(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||f.getAttribute("action");if(n=l?W(l,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||ae,i=he(e.getAttribute("formenctype"))||he(f.getAttribute("enctype"))||oe,u=new FormData(f,e),!sr()){let{name:a,type:d,value:h}=e;if(d==="image"){let m=a?`${a}.`:"";u.append(`${m}x`,"0"),u.append(`${m}y`,"0")}else a&&u.append(a,h)}}else{if(le(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ae,n=null,i=oe,s=e}return u&&i==="text/plain"&&(s=u,u=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:u,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dr(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&W(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function hr(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mr(e,t,r){let n=await Promise.all(e.map(async i=>{let u=t.routes[i.route.id];if(u){let s=await hr(u,r);return s.links?s.links():[]}return[]}));return Er(n.flat(1).filter(pr).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Me(e,t,r,n,i,u){let s=(l,a)=>r[a]?l.route.id!==r[a].route.id:!0,f=(l,a)=>r[a].pathname!==l.pathname||r[a].route.path?.endsWith("*")&&r[a].params["*"]!==l.params["*"];return u==="assets"?t.filter((l,a)=>s(l,a)||f(l,a)):u==="data"?t.filter((l,a)=>{let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,a)||f(l,a))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function yr(e,t,{includeHydrateFallback:r}={}){return gr(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let u=[i.module];return i.clientActionModule&&(u=u.concat(i.clientActionModule)),i.clientLoaderModule&&(u=u.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(u=u.concat(i.hydrateFallbackModule)),i.imports&&(u=u.concat(i.imports)),u}).flat(1))}function gr(e){return[...new Set(e)]}function vr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Er(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let u=JSON.stringify(vr(i));return r.has(u)||(r.add(u),n.push({key:u,link:i})),n},[])}function Ve(){let e=c.useContext(G);return _e(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Rr(){let e=c.useContext(ue);return _e(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Se=c.createContext(void 0);Se.displayName="FrameworkContext";function Ge(){let e=c.useContext(Se);return _e(e,"You must render this element inside a <HydratedRouter> element"),e}function wr(e,t){let r=c.useContext(Se),[n,i]=c.useState(!1),[u,s]=c.useState(!1),{onFocus:f,onBlur:l,onMouseEnter:a,onMouseLeave:d,onTouchStart:h}=t,m=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let S=g=>{g.forEach(E=>{s(E.isIntersecting)})},y=new IntersectionObserver(S,{threshold:.5});return m.current&&y.observe(m.current),()=>{y.disconnect()}}},[e]),c.useEffect(()=>{if(n){let S=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(S)}}},[n]);let v=()=>{i(!0)},w=()=>{i(!1),s(!1)};return r?e!=="intent"?[u,m,{}]:[u,m,{onFocus:X(f,v),onBlur:X(l,w),onMouseEnter:X(a,v),onMouseLeave:X(d,w),onTouchStart:X(h,v)}]:[!1,m,{}]}function X(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Cr({page:e,...t}){let{router:r}=Ve(),n=c.useMemo(()=>Ue(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?c.createElement(Sr,{page:e,matches:n,...t}):null}function _r(e){let{manifest:t,routeModules:r}=Ge(),[n,i]=c.useState([]);return c.useEffect(()=>{let u=!1;return mr(e,t,r).then(s=>{u||i(s)}),()=>{u=!0}},[e,t,r]),n}function Sr({page:e,matches:t,...r}){let n=Y(),{manifest:i,routeModules:u}=Ge(),{basename:s}=Ve(),{loaderData:f,matches:l}=Rr(),a=c.useMemo(()=>Me(e,t,l,i,n,"data"),[e,t,l,i,n]),d=c.useMemo(()=>Me(e,t,l,i,n,"assets"),[e,t,l,i,n]),h=c.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let w=new Set,S=!1;if(t.forEach(g=>{let E=i.routes[g.route.id];!E||!E.hasLoader||(!a.some(P=>P.route.id===g.route.id)&&g.route.id in f&&u[g.route.id]?.shouldRevalidate||E.hasClientLoader?S=!0:w.add(g.route.id))}),w.size===0)return[];let y=dr(e,s,"data");return S&&w.size>0&&y.searchParams.set("_routes",t.filter(g=>w.has(g.route.id)).map(g=>g.route.id).join(",")),[y.pathname+y.search]},[s,f,n,i,a,t,e,u]),m=c.useMemo(()=>yr(d,i),[d,i]),v=_r(d);return c.createElement(c.Fragment,null,h.map(w=>c.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),m.map(w=>c.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),v.map(({key:w,link:S})=>c.createElement("link",{key:w,nonce:r.nonce,...S})))}function Pr(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Je=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Je&&(window.__reactRouterVersion="7.10.1")}catch{}function jr({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=c.useRef();i.current==null&&(i.current=st({window:n,v5Compat:!0}));let u=i.current,[s,f]=c.useState({action:u.action,location:u.location}),l=c.useCallback(a=>{r===!1?f(a):c.startTransition(()=>f(a))},[r]);return c.useLayoutEffect(()=>u.listen(l),[u,l]),c.createElement(rr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:u,unstable_useTransitions:r===!0})}var Xe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qe=c.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:u,replace:s,state:f,target:l,to:a,preventScrollReset:d,viewTransition:h,...m},v){let{basename:w,unstable_useTransitions:S}=c.useContext(M),y=typeof a=="string"&&Xe.test(a),g,E=!1;if(typeof a=="string"&&y&&(g=a,Je))try{let I=new URL(window.location.href),z=a.startsWith("//")?new URL(I.protocol+a):new URL(a),te=W(z.pathname,w);z.origin===I.origin&&te!=null?a=te+z.search+z.hash:E=!0}catch{D(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=Ht(a,{relative:i}),[$,A,U]=wr(n,m),x=Lr(a,{replace:s,state:f,target:l,preventScrollReset:d,relative:i,viewTransition:h,unstable_useTransitions:S});function q(I){t&&t(I),I.defaultPrevented||x(I)}let F=c.createElement("a",{...m,...U,href:g||P,onClick:E||u?t:q,ref:Pr(v,A),target:l,"data-discover":!y&&r==="render"?"true":void 0});return $&&!y?c.createElement(c.Fragment,null,F,c.createElement(Cr,{page:P})):F});Qe.displayName="Link";var xr=c.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:u,to:s,viewTransition:f,children:l,...a},d){let h=ee(s,{relative:a.relative}),m=Y(),v=c.useContext(ue),{navigator:w,basename:S}=c.useContext(M),y=v!=null&&Nr(h)&&f===!0,g=w.encodeLocation?w.encodeLocation(h).pathname:h.pathname,E=m.pathname,P=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(E=E.toLowerCase(),P=P?P.toLowerCase():null,g=g.toLowerCase()),P&&S&&(P=W(P,S)||P);const $=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let A=E===g||!i&&E.startsWith(g)&&E.charAt($)==="/",U=P!=null&&(P===g||!i&&P.startsWith(g)&&P.charAt(g.length)==="/"),x={isActive:A,isPending:U,isTransitioning:y},q=A?t:void 0,F;typeof n=="function"?F=n(x):F=[n,A?"active":null,U?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let I=typeof u=="function"?u(x):u;return c.createElement(Qe,{...a,"aria-current":q,className:F,ref:d,style:I,to:s,viewTransition:f},typeof l=="function"?l(x):l)});xr.displayName="NavLink";var br=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:u,method:s=ae,action:f,onSubmit:l,relative:a,preventScrollReset:d,viewTransition:h,...m},v)=>{let{unstable_useTransitions:w}=c.useContext(M),S=kr(),y=Ar(f,{relative:a}),g=s.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&Xe.test(f),P=$=>{if(l&&l($),$.defaultPrevented)return;$.preventDefault();let A=$.nativeEvent.submitter,U=A?.getAttribute("formmethod")||s,x=()=>S(A||$.currentTarget,{fetcherKey:t,method:U,navigate:r,replace:i,state:u,relative:a,preventScrollReset:d,viewTransition:h});w&&r!==!1?c.startTransition(()=>x()):x()};return c.createElement("form",{ref:v,method:g,action:y,onSubmit:n?l:P,...m,"data-discover":!E&&e==="render"?"true":void 0})});br.displayName="Form";function Tr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ze(e){let t=c.useContext(G);return O(t,Tr(e)),t}function Lr(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:u,viewTransition:s,unstable_useTransitions:f}={}){let l=Re(),a=Y(),d=ee(e,{relative:u});return c.useCallback(h=>{if(ur(h,t)){h.preventDefault();let m=r!==void 0?r:Q(a)===Q(d),v=()=>l(e,{replace:m,state:n,preventScrollReset:i,relative:u,viewTransition:s});f?c.startTransition(()=>v()):v()}},[a,l,d,r,n,t,e,i,u,s,f])}function Br(e){D(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=c.useRef(ye(e)),r=c.useRef(!1),n=Y(),i=c.useMemo(()=>lr(n.search,r.current?null:t.current),[n.search]),u=Re(),s=c.useCallback((f,l)=>{const a=ye(typeof f=="function"?f(new URLSearchParams(i)):f);r.current=!0,u("?"+a,l)},[u,i]);return[i,s]}var Or=0,$r=()=>`__${String(++Or)}__`;function kr(){let{router:e}=Ze("useSubmit"),{basename:t}=c.useContext(M),r=Xt(),n=e.fetch,i=e.navigate;return c.useCallback(async(u,s={})=>{let{action:f,method:l,encType:a,formData:d,body:h}=fr(u,t);if(s.navigate===!1){let m=s.fetcherKey||$r();await n(m,r,s.action||f,{preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||a,flushSync:s.flushSync})}else await i(s.action||f,{preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||a,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,i,t,r])}function Ar(e,{relative:t}={}){let{basename:r}=c.useContext(M),n=c.useContext(H);O(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),u={...ee(e||".",{relative:t})},s=Y();if(e==null){u.search=s.search;let f=new URLSearchParams(u.search),l=f.getAll("index");if(l.some(d=>d==="")){f.delete("index"),l.filter(h=>h).forEach(h=>f.append("index",h));let d=f.toString();u.search=d?`?${d}`:""}}return(!e||e===".")&&i.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:B([r,u.pathname])),Q(u)}function Nr(e,{relative:t}={}){let r=c.useContext(We);O(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ze("useViewTransitionState"),i=ee(e,{relative:t});if(!r.isTransitioning)return!1;let u=W(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=W(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ie(i.pathname,s)!=null||ie(i.pathname,u)!=null}var Dr=lt();const Wr=Ie(Dr);export{jr as B,Qe as L,Hr as N,Ur as O,Ir as R,Dr as a,Wr as b,it as c,Mr as d,He as e,lt as f,Ie as g,Re as h,Br as i,Fr as j,tr as k,c as r,Y as u};
3
+ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=Y(),v;if(t){let E=typeof t=="string"?V(t):t;O(d==="/"||E.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=m;let w=v.pathname||"/",S=w;if(d!=="/"){let E=d.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=Ue(e,{pathname:S});D(h||y!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),D(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Kt(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:B([d,u.encodeLocation?u.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:B([d,u.encodeLocation?u.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,r,n,i);return t&&g?c.createElement(Z.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},g):g}function Wt(){let e=Qt(),t=At(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},u={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:u},"ErrorBoundary")," or"," ",c.createElement("code",{style:u},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:i},r):null,s)}var Yt=c.createElement(Wt,null),zt=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?c.createElement(H.Provider,{value:this.props.routeContext},c.createElement(Ee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qt({routeContext:e,match:t,children:r}){let n=c.useContext(G);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(H.Provider,{value:e},r)}function Kt(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r?.errors;if(s!=null){let d=u.findIndex(h=>h.route.id&&s?.[h.route.id]!==void 0);O(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,d+1))}let f=!1,l=-1;if(r)for(let d=0;d<u.length;d++){let h=u[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(l=d),h.route.id){let{loaderData:m,errors:v}=r,w=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||w){f=!0,l>=0?u=u.slice(0,l+1):u=[u[0]];break}}}let a=r&&n?(d,h)=>{n(d,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Nt(r.matches),errorInfo:h})}:void 0;return u.reduceRight((d,h,m)=>{let v,w=!1,S=null,y=null;r&&(v=s&&h.route.id?s[h.route.id]:void 0,S=h.route.errorElement||Yt,f&&(l<0&&m===0?(Ke("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):l===m&&(w=!0,y=h.route.hydrateFallbackElement||null)));let g=t.concat(u.slice(0,m+1)),E=()=>{let P;return v?P=S:w?P=y:h.route.Component?P=c.createElement(h.route.Component,null):h.route.element?P=h.route.element:P=d,c.createElement(qt,{match:h,routeContext:{outlet:d,matches:g,isDataRoute:r!=null},children:P})};return r&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?c.createElement(zt,{location:r.location,revalidation:r.revalidation,component:S,error:v,children:E(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:a}):E()},null)}function we(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vt(e){let t=c.useContext(G);return O(t,we(e)),t}function Gt(e){let t=c.useContext(ue);return O(t,we(e)),t}function Jt(e){let t=c.useContext(H);return O(t,we(e)),t}function Ce(e){let t=Jt(e),r=t.matches[t.matches.length-1];return O(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Xt(){return Ce("useRouteId")}function Qt(){let e=c.useContext(Ee),t=Gt("useRouteError"),r=Ce("useRouteError");return e!==void 0?e:t.errors?.[r]}function Zt(){let{router:e}=Vt("useNavigate"),t=Ce("useNavigate"),r=c.useRef(!1);return ze(()=>{r.current=!0}),c.useCallback(async(i,u={})=>{D(r.current,Ye),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...u}))},[e,t])}var De={};function Ke(e,t,r){!t&&!De[e]&&(De[e]=!0,D(!1,r))}c.memo(er);function er({routes:e,future:t,state:r,unstable_onError:n}){return qe(e,void 0,r,n,t)}function Hr({to:e,replace:t,state:r,relative:n}){O(J(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=c.useContext(M);D(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=c.useContext(H),{pathname:s}=Y(),f=Re(),l=ve(e,ge(u),s,n==="path"),a=JSON.stringify(l);return c.useEffect(()=>{f(JSON.parse(a),{replace:t,state:r,relative:n})},[f,a,n,t,r]),null}function Ur(e){return jt(e.context)}function tr(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:u=!1,unstable_useTransitions:s}){O(!J(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:f,navigator:i,static:u,unstable_useTransitions:s,future:{}}),[f,i,u,s]);typeof r=="string"&&(r=V(r));let{pathname:a="/",search:d="",hash:h="",state:m=null,key:v="default"}=r,w=c.useMemo(()=>{let S=W(a,f);return S==null?null:{location:{pathname:S,search:d,hash:h,state:m,key:v},navigationType:n}},[f,a,d,h,m,v,n]);return D(w!=null,`<Router basename="${f}"> is not able to match the URL "${a}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:c.createElement(M.Provider,{value:l},c.createElement(Z.Provider,{children:t,value:w}))}function Fr({children:e,location:t}){return Bt(me(e),t)}function me(e,t=[]){let r=[];return c.Children.forEach(e,(n,i)=>{if(!c.isValidElement(n))return;let u=[...t,i];if(n.type===c.Fragment){r.push.apply(r,me(n.props.children,u));return}O(n.type===tr,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=me(n.props.children,u)),r.push(s)}),r}var ae="get",oe="application/x-www-form-urlencoded";function le(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function nr(e){return le(e)&&e.tagName.toLowerCase()==="button"}function ar(e){return le(e)&&e.tagName.toLowerCase()==="form"}function or(e){return le(e)&&e.tagName.toLowerCase()==="input"}function ir(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ur(e,t){return e.button===0&&(!t||t==="_self")&&!ir(e)}function ye(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function lr(e,t){let r=ye(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(u=>{r.append(i,u)})}),r}var ne=null;function sr(){if(ne===null)try{new FormData(document.createElement("form"),0),ne=!1}catch{ne=!0}return ne}var cr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function he(e){return e!=null&&!cr.has(e)?(D(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oe}"`),null):e}function fr(e,t){let r,n,i,u,s;if(ar(e)){let f=e.getAttribute("action");n=f?W(f,t):null,r=e.getAttribute("method")||ae,i=he(e.getAttribute("enctype"))||oe,u=new FormData(e)}else if(nr(e)||or(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||f.getAttribute("action");if(n=l?W(l,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||ae,i=he(e.getAttribute("formenctype"))||he(f.getAttribute("enctype"))||oe,u=new FormData(f,e),!sr()){let{name:a,type:d,value:h}=e;if(d==="image"){let m=a?`${a}.`:"";u.append(`${m}x`,"0"),u.append(`${m}y`,"0")}else a&&u.append(a,h)}}else{if(le(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ae,n=null,i=oe,s=e}return u&&i==="text/plain"&&(s=u,u=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:u,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dr(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&W(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function hr(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mr(e,t,r){let n=await Promise.all(e.map(async i=>{let u=t.routes[i.route.id];if(u){let s=await hr(u,r);return s.links?s.links():[]}return[]}));return Er(n.flat(1).filter(pr).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Me(e,t,r,n,i,u){let s=(l,a)=>r[a]?l.route.id!==r[a].route.id:!0,f=(l,a)=>r[a].pathname!==l.pathname||r[a].route.path?.endsWith("*")&&r[a].params["*"]!==l.params["*"];return u==="assets"?t.filter((l,a)=>s(l,a)||f(l,a)):u==="data"?t.filter((l,a)=>{let d=n.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,a)||f(l,a))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function yr(e,t,{includeHydrateFallback:r}={}){return gr(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let u=[i.module];return i.clientActionModule&&(u=u.concat(i.clientActionModule)),i.clientLoaderModule&&(u=u.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(u=u.concat(i.hydrateFallbackModule)),i.imports&&(u=u.concat(i.imports)),u}).flat(1))}function gr(e){return[...new Set(e)]}function vr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Er(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let u=JSON.stringify(vr(i));return r.has(u)||(r.add(u),n.push({key:u,link:i})),n},[])}function Ve(){let e=c.useContext(G);return _e(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Rr(){let e=c.useContext(ue);return _e(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Se=c.createContext(void 0);Se.displayName="FrameworkContext";function Ge(){let e=c.useContext(Se);return _e(e,"You must render this element inside a <HydratedRouter> element"),e}function wr(e,t){let r=c.useContext(Se),[n,i]=c.useState(!1),[u,s]=c.useState(!1),{onFocus:f,onBlur:l,onMouseEnter:a,onMouseLeave:d,onTouchStart:h}=t,m=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let S=g=>{g.forEach(E=>{s(E.isIntersecting)})},y=new IntersectionObserver(S,{threshold:.5});return m.current&&y.observe(m.current),()=>{y.disconnect()}}},[e]),c.useEffect(()=>{if(n){let S=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(S)}}},[n]);let v=()=>{i(!0)},w=()=>{i(!1),s(!1)};return r?e!=="intent"?[u,m,{}]:[u,m,{onFocus:X(f,v),onBlur:X(l,w),onMouseEnter:X(a,v),onMouseLeave:X(d,w),onTouchStart:X(h,v)}]:[!1,m,{}]}function X(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Cr({page:e,...t}){let{router:r}=Ve(),n=c.useMemo(()=>Ue(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?c.createElement(Sr,{page:e,matches:n,...t}):null}function _r(e){let{manifest:t,routeModules:r}=Ge(),[n,i]=c.useState([]);return c.useEffect(()=>{let u=!1;return mr(e,t,r).then(s=>{u||i(s)}),()=>{u=!0}},[e,t,r]),n}function Sr({page:e,matches:t,...r}){let n=Y(),{manifest:i,routeModules:u}=Ge(),{basename:s}=Ve(),{loaderData:f,matches:l}=Rr(),a=c.useMemo(()=>Me(e,t,l,i,n,"data"),[e,t,l,i,n]),d=c.useMemo(()=>Me(e,t,l,i,n,"assets"),[e,t,l,i,n]),h=c.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let w=new Set,S=!1;if(t.forEach(g=>{let E=i.routes[g.route.id];!E||!E.hasLoader||(!a.some(P=>P.route.id===g.route.id)&&g.route.id in f&&u[g.route.id]?.shouldRevalidate||E.hasClientLoader?S=!0:w.add(g.route.id))}),w.size===0)return[];let y=dr(e,s,"data");return S&&w.size>0&&y.searchParams.set("_routes",t.filter(g=>w.has(g.route.id)).map(g=>g.route.id).join(",")),[y.pathname+y.search]},[s,f,n,i,a,t,e,u]),m=c.useMemo(()=>yr(d,i),[d,i]),v=_r(d);return c.createElement(c.Fragment,null,h.map(w=>c.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),m.map(w=>c.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),v.map(({key:w,link:S})=>c.createElement("link",{key:w,nonce:r.nonce,...S})))}function Pr(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Je=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Je&&(window.__reactRouterVersion="7.10.1")}catch{}function jr({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=c.useRef();i.current==null&&(i.current=st({window:n,v5Compat:!0}));let u=i.current,[s,f]=c.useState({action:u.action,location:u.location}),l=c.useCallback(a=>{r===!1?f(a):c.startTransition(()=>f(a))},[r]);return c.useLayoutEffect(()=>u.listen(l),[u,l]),c.createElement(rr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:u,unstable_useTransitions:r===!0})}var Xe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qe=c.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:u,replace:s,state:f,target:l,to:a,preventScrollReset:d,viewTransition:h,...m},v){let{basename:w,unstable_useTransitions:S}=c.useContext(M),y=typeof a=="string"&&Xe.test(a),g,E=!1;if(typeof a=="string"&&y&&(g=a,Je))try{let I=new URL(window.location.href),z=a.startsWith("//")?new URL(I.protocol+a):new URL(a),te=W(z.pathname,w);z.origin===I.origin&&te!=null?a=te+z.search+z.hash:E=!0}catch{D(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=Ht(a,{relative:i}),[$,A,U]=wr(n,m),x=Lr(a,{replace:s,state:f,target:l,preventScrollReset:d,relative:i,viewTransition:h,unstable_useTransitions:S});function q(I){t&&t(I),I.defaultPrevented||x(I)}let F=c.createElement("a",{...m,...U,href:g||P,onClick:E||u?t:q,ref:Pr(v,A),target:l,"data-discover":!y&&r==="render"?"true":void 0});return $&&!y?c.createElement(c.Fragment,null,F,c.createElement(Cr,{page:P})):F});Qe.displayName="Link";var xr=c.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:u,to:s,viewTransition:f,children:l,...a},d){let h=ee(s,{relative:a.relative}),m=Y(),v=c.useContext(ue),{navigator:w,basename:S}=c.useContext(M),y=v!=null&&Nr(h)&&f===!0,g=w.encodeLocation?w.encodeLocation(h).pathname:h.pathname,E=m.pathname,P=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(E=E.toLowerCase(),P=P?P.toLowerCase():null,g=g.toLowerCase()),P&&S&&(P=W(P,S)||P);const $=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let A=E===g||!i&&E.startsWith(g)&&E.charAt($)==="/",U=P!=null&&(P===g||!i&&P.startsWith(g)&&P.charAt(g.length)==="/"),x={isActive:A,isPending:U,isTransitioning:y},q=A?t:void 0,F;typeof n=="function"?F=n(x):F=[n,A?"active":null,U?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let I=typeof u=="function"?u(x):u;return c.createElement(Qe,{...a,"aria-current":q,className:F,ref:d,style:I,to:s,viewTransition:f},typeof l=="function"?l(x):l)});xr.displayName="NavLink";var br=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:u,method:s=ae,action:f,onSubmit:l,relative:a,preventScrollReset:d,viewTransition:h,...m},v)=>{let{unstable_useTransitions:w}=c.useContext(M),S=kr(),y=Ar(f,{relative:a}),g=s.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&Xe.test(f),P=$=>{if(l&&l($),$.defaultPrevented)return;$.preventDefault();let A=$.nativeEvent.submitter,U=A?.getAttribute("formmethod")||s,x=()=>S(A||$.currentTarget,{fetcherKey:t,method:U,navigate:r,replace:i,state:u,relative:a,preventScrollReset:d,viewTransition:h});w&&r!==!1?c.startTransition(()=>x()):x()};return c.createElement("form",{ref:v,method:g,action:y,onSubmit:n?l:P,...m,"data-discover":!E&&e==="render"?"true":void 0})});br.displayName="Form";function Tr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ze(e){let t=c.useContext(G);return O(t,Tr(e)),t}function Lr(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:u,viewTransition:s,unstable_useTransitions:f}={}){let l=Re(),a=Y(),d=ee(e,{relative:u});return c.useCallback(h=>{if(ur(h,t)){h.preventDefault();let m=r!==void 0?r:Q(a)===Q(d),v=()=>l(e,{replace:m,state:n,preventScrollReset:i,relative:u,viewTransition:s});f?c.startTransition(()=>v()):v()}},[a,l,d,r,n,t,e,i,u,s,f])}function Br(e){D(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=c.useRef(ye(e)),r=c.useRef(!1),n=Y(),i=c.useMemo(()=>lr(n.search,r.current?null:t.current),[n.search]),u=Re(),s=c.useCallback((f,l)=>{const a=ye(typeof f=="function"?f(new URLSearchParams(i)):f);r.current=!0,u("?"+a,l)},[u,i]);return[i,s]}var Or=0,$r=()=>`__${String(++Or)}__`;function kr(){let{router:e}=Ze("useSubmit"),{basename:t}=c.useContext(M),r=Xt(),n=e.fetch,i=e.navigate;return c.useCallback(async(u,s={})=>{let{action:f,method:l,encType:a,formData:d,body:h}=fr(u,t);if(s.navigate===!1){let m=s.fetcherKey||$r();await n(m,r,s.action||f,{preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||a,flushSync:s.flushSync})}else await i(s.action||f,{preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||l,formEncType:s.encType||a,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,i,t,r])}function Ar(e,{relative:t}={}){let{basename:r}=c.useContext(M),n=c.useContext(H);O(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),u={...ee(e||".",{relative:t})},s=Y();if(e==null){u.search=s.search;let f=new URLSearchParams(u.search),l=f.getAll("index");if(l.some(d=>d==="")){f.delete("index"),l.filter(h=>h).forEach(h=>f.append("index",h));let d=f.toString();u.search=d?`?${d}`:""}}return(!e||e===".")&&i.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:B([r,u.pathname])),Q(u)}function Nr(e,{relative:t}={}){let r=c.useContext(We);O(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Ze("useViewTransitionState"),i=ee(e,{relative:t});if(!r.isTransitioning)return!1;let u=W(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=W(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ie(i.pathname,s)!=null||ie(i.pathname,u)!=null}var Dr=lt();const Wr=Ie(Dr);export{jr as B,it as E,Qe as L,Hr as N,Ur as O,Ir as R,Dr as a,He as b,Mr as c,lt as d,Re as e,Wr as f,Ie as g,Br as h,Fr as i,tr as j,c as r,Y as u};
@@ -1 +1 @@
1
- import{j as n}from"./radix-ui-Zb8sVEtn.js";import{r as a}from"./react-vendor-CNOkPC89.js";import{e as P,f as Q,d as $,c as w,g as B,I as G}from"./index-2X8-14xr.js";import{aR as H,av as L,m as V}from"./icons-DyorC3Xk.js";function S(o){return o.trim().toLowerCase()}function M(o,h){return`${o}-option-${h.replace(/[^a-z0-9_-]+/gi,"-")}`}function Z({value:o,onChange:h,options:f,groups:g,placeholder:j,searchPlaceholder:k,emptyText:E,disabled:F,className:R,triggerClassName:q,contentClassName:K}){const[l,T]=a.useState(!1),[y,A]=a.useState(""),[i,c]=a.useState(),m=a.useId(),I=a.useRef(null),N=a.useRef({}),O=a.useMemo(()=>f.find(e=>e.value===o),[f,o]),d=a.useMemo(()=>{const e=S(y);return e?f.filter(t=>[t.searchText,...t.keywords??[]].some(u=>S(u).includes(e))):f},[f,y]),z=a.useMemo(()=>{const e=new Map((g??[]).map(r=>[r.key,r])),t=d.filter(r=>!r.groupKey||!e.has(r.groupKey)),u=(g??[]).map(r=>({...r,options:d.filter(x=>x.groupKey===r.key)})).filter(r=>r.options.length>0);return t.length===0?u:[{key:"__default",options:t},...u]},[d,g]),s=a.useMemo(()=>d.filter(e=>!e.disabled),[d]),D=O?.triggerContent??O?.itemContent,v=e=>{T(e),e||(A(""),c(void 0))},b=()=>I.current?.focus();a.useEffect(()=>{if(l){if(s.length===0){c(void 0);return}c(e=>e&&s.some(t=>t.value===e)?e:s.find(t=>t.value===o)?.value??s[0]?.value)}},[s,l,o]),a.useEffect(()=>{!l||!i||N.current[i]?.scrollIntoView({block:"nearest"})},[i,l]);const p=e=>{if(s.length===0)return;if(e==="first"){c(s[0]?.value);return}if(e==="last"){c(s.at(-1)?.value);return}const t=s.findIndex(_=>_.value===i),u=e==="next"?-1:s.length,r=t>=0?t:u,x=e==="next"?Math.min(r+1,s.length-1):Math.max(r-1,0);c(s[x]?.value)},C=e=>{h(e),v(!1)},U=()=>{if(!i)return;const e=s.find(t=>t.value===i);e&&C(e.value)};return n.jsxs(P,{open:l,onOpenChange:v,children:[n.jsx(Q,{asChild:!0,children:n.jsxs($,{type:"button",variant:"outline","aria-expanded":l,"aria-controls":l?m:void 0,"aria-haspopup":"dialog",disabled:F,onKeyDown:e=>{if(e.key!=="ArrowDown"&&e.key!=="ArrowUp")return;e.preventDefault(),v(!0);const t=()=>{b(),p(e.key==="ArrowDown"?"first":"last")};if(typeof requestAnimationFrame=="function"){requestAnimationFrame(t);return}setTimeout(t,0)},className:w("w-full justify-between font-normal",R,q,!D&&"text-muted-foreground"),children:[n.jsx("div",{className:"min-w-0 flex-1 text-left",children:D??n.jsx("span",{children:j})}),n.jsx(H,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsxs(B,{align:"start",className:w("w-[var(--radix-popover-trigger-width)] p-0",K),onOpenAutoFocus:e=>{if(e.preventDefault(),typeof requestAnimationFrame=="function"){requestAnimationFrame(b);return}setTimeout(b,0)},children:[n.jsx("div",{className:"border-b p-2",children:n.jsxs("div",{className:"relative",children:[n.jsx(L,{className:"text-muted-foreground absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2"}),n.jsx(G,{ref:I,value:y,onChange:e=>A(e.target.value),role:"combobox","aria-label":k,"aria-autocomplete":"list","aria-expanded":l,"aria-controls":m,"aria-activedescendant":i?M(m,i):void 0,onKeyDown:e=>{if(e.key==="ArrowDown"){e.preventDefault(),p("next");return}if(e.key==="ArrowUp"){e.preventDefault(),p("previous");return}if(e.key==="Home"){e.preventDefault(),p("first");return}if(e.key==="End"){e.preventDefault(),p("last");return}if(e.key==="Enter"){e.preventDefault(),U();return}e.key==="Escape"&&(e.preventDefault(),v(!1))},placeholder:k,className:"pl-8"})]})}),n.jsx("div",{"data-slot":"searchable-select-scroll-container","data-testid":"searchable-select-scroll-container",className:"max-h-72 overflow-y-auto overscroll-contain",children:d.length===0?n.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:E}):n.jsx("div",{id:m,role:"listbox","aria-label":j,className:"p-1",children:z.map(e=>n.jsxs("div",{children:[e.label&&n.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:e.label}),e.options.map(t=>{const u=t.value===i,r=t.value===o;return n.jsxs("button",{id:M(m,t.value),type:"button",role:"option","aria-selected":r,disabled:t.disabled,tabIndex:-1,ref:x=>{N.current[t.value]=x},onMouseMove:()=>{t.disabled||c(t.value)},onFocus:()=>{t.disabled||c(t.value)},onClick:()=>C(t.value),className:w("hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none","focus-visible:ring-ring focus-visible:ring-1",u&&"bg-accent text-accent-foreground",r&&"bg-accent text-accent-foreground",t.disabled&&"pointer-events-none opacity-50"),children:[n.jsx("div",{className:"min-w-0 flex-1",children:t.itemContent}),r&&n.jsx(V,{className:"h-4 w-4 shrink-0"})]},t.value)})]},e.key))})})]})]})}export{Z as S};
1
+ import{j as n}from"./radix-ui-nu4wz29m.js";import{r as a}from"./react-vendor-Bjx91N7w.js";import{e as P,f as Q,d as $,c as w,g as B,I as G}from"./index-Fd17BSGq.js";import{aR as H,av as L,m as V}from"./icons-DQFHtVq5.js";function S(o){return o.trim().toLowerCase()}function M(o,h){return`${o}-option-${h.replace(/[^a-z0-9_-]+/gi,"-")}`}function Z({value:o,onChange:h,options:f,groups:g,placeholder:j,searchPlaceholder:k,emptyText:E,disabled:F,className:R,triggerClassName:q,contentClassName:K}){const[l,T]=a.useState(!1),[y,A]=a.useState(""),[i,c]=a.useState(),m=a.useId(),I=a.useRef(null),N=a.useRef({}),O=a.useMemo(()=>f.find(e=>e.value===o),[f,o]),d=a.useMemo(()=>{const e=S(y);return e?f.filter(t=>[t.searchText,...t.keywords??[]].some(u=>S(u).includes(e))):f},[f,y]),z=a.useMemo(()=>{const e=new Map((g??[]).map(r=>[r.key,r])),t=d.filter(r=>!r.groupKey||!e.has(r.groupKey)),u=(g??[]).map(r=>({...r,options:d.filter(x=>x.groupKey===r.key)})).filter(r=>r.options.length>0);return t.length===0?u:[{key:"__default",options:t},...u]},[d,g]),s=a.useMemo(()=>d.filter(e=>!e.disabled),[d]),D=O?.triggerContent??O?.itemContent,v=e=>{T(e),e||(A(""),c(void 0))},b=()=>I.current?.focus();a.useEffect(()=>{if(l){if(s.length===0){c(void 0);return}c(e=>e&&s.some(t=>t.value===e)?e:s.find(t=>t.value===o)?.value??s[0]?.value)}},[s,l,o]),a.useEffect(()=>{!l||!i||N.current[i]?.scrollIntoView({block:"nearest"})},[i,l]);const p=e=>{if(s.length===0)return;if(e==="first"){c(s[0]?.value);return}if(e==="last"){c(s.at(-1)?.value);return}const t=s.findIndex(_=>_.value===i),u=e==="next"?-1:s.length,r=t>=0?t:u,x=e==="next"?Math.min(r+1,s.length-1):Math.max(r-1,0);c(s[x]?.value)},C=e=>{h(e),v(!1)},U=()=>{if(!i)return;const e=s.find(t=>t.value===i);e&&C(e.value)};return n.jsxs(P,{open:l,onOpenChange:v,children:[n.jsx(Q,{asChild:!0,children:n.jsxs($,{type:"button",variant:"outline","aria-expanded":l,"aria-controls":l?m:void 0,"aria-haspopup":"dialog",disabled:F,onKeyDown:e=>{if(e.key!=="ArrowDown"&&e.key!=="ArrowUp")return;e.preventDefault(),v(!0);const t=()=>{b(),p(e.key==="ArrowDown"?"first":"last")};if(typeof requestAnimationFrame=="function"){requestAnimationFrame(t);return}setTimeout(t,0)},className:w("w-full justify-between font-normal",R,q,!D&&"text-muted-foreground"),children:[n.jsx("div",{className:"min-w-0 flex-1 text-left",children:D??n.jsx("span",{children:j})}),n.jsx(H,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),n.jsxs(B,{align:"start",className:w("w-[var(--radix-popover-trigger-width)] p-0",K),onOpenAutoFocus:e=>{if(e.preventDefault(),typeof requestAnimationFrame=="function"){requestAnimationFrame(b);return}setTimeout(b,0)},children:[n.jsx("div",{className:"border-b p-2",children:n.jsxs("div",{className:"relative",children:[n.jsx(L,{className:"text-muted-foreground absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2"}),n.jsx(G,{ref:I,value:y,onChange:e=>A(e.target.value),role:"combobox","aria-label":k,"aria-autocomplete":"list","aria-expanded":l,"aria-controls":m,"aria-activedescendant":i?M(m,i):void 0,onKeyDown:e=>{if(e.key==="ArrowDown"){e.preventDefault(),p("next");return}if(e.key==="ArrowUp"){e.preventDefault(),p("previous");return}if(e.key==="Home"){e.preventDefault(),p("first");return}if(e.key==="End"){e.preventDefault(),p("last");return}if(e.key==="Enter"){e.preventDefault(),U();return}e.key==="Escape"&&(e.preventDefault(),v(!1))},placeholder:k,className:"pl-8"})]})}),n.jsx("div",{"data-slot":"searchable-select-scroll-container","data-testid":"searchable-select-scroll-container",className:"max-h-72 overflow-y-auto overscroll-contain",children:d.length===0?n.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:E}):n.jsx("div",{id:m,role:"listbox","aria-label":j,className:"p-1",children:z.map(e=>n.jsxs("div",{children:[e.label&&n.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:e.label}),e.options.map(t=>{const u=t.value===i,r=t.value===o;return n.jsxs("button",{id:M(m,t.value),type:"button",role:"option","aria-selected":r,disabled:t.disabled,tabIndex:-1,ref:x=>{N.current[t.value]=x},onMouseMove:()=>{t.disabled||c(t.value)},onFocus:()=>{t.disabled||c(t.value)},onClick:()=>C(t.value),className:w("hover:bg-accent hover:text-accent-foreground flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none","focus-visible:ring-ring focus-visible:ring-1",u&&"bg-accent text-accent-foreground",r&&"bg-accent text-accent-foreground",t.disabled&&"pointer-events-none opacity-50"),children:[n.jsx("div",{className:"min-w-0 flex-1",children:t.itemContent}),r&&n.jsx(V,{className:"h-4 w-4 shrink-0"})]},t.value)})]},e.key))})})]})]})}export{Z as S};
@@ -1 +1 @@
1
- import{j as i,a0 as n}from"./radix-ui-Zb8sVEtn.js";import"./react-vendor-CNOkPC89.js";import{c as e}from"./index-2X8-14xr.js";function m({className:t,orientation:a="horizontal",decorative:o=!0,...r}){return i.jsx(n,{"data-slot":"separator",decorative:o,orientation:a,className:e("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...r})}export{m as S};
1
+ import{j as i,a0 as n}from"./radix-ui-nu4wz29m.js";import"./react-vendor-Bjx91N7w.js";import{c as e}from"./index-Fd17BSGq.js";function m({className:t,orientation:a="horizontal",decorative:o=!0,...r}){return i.jsx(n,{"data-slot":"separator",decorative:o,orientation:a,className:e("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...r})}export{m as S};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./radix-ui-Zb8sVEtn.js";import{r as j}from"./react-vendor-CNOkPC89.js";import{a as q,bq as ee,br as se,bs as te,Q as ae,R as re,U as ne,B as $,bi as S,bj as M,bk as L,d as I,I as le,n as B,c as Q,C as ie,b as de}from"./index-2X8-14xr.js";import{a3 as ce,aa as oe,b7 as me,T as E,R as T,F as he,av as ue,w as xe}from"./icons-DyorC3Xk.js";import"./tanstack-CrmUhA7Z.js";import"./notifications-B2HqRBj7.js";import"./utils-CzKF5WmX.js";import"./form-utils-Bcoyqxpq.js";import"./code-highlight-BRUf_pqB.js";function Se(){const{t:s}=q(),[a,l]=j.useState("commands"),t={commands:s("sharedPage.commands"),skills:s("sharedPage.skills"),agents:s("sharedPage.agents")},[r,d]=j.useState(""),[n,o]=j.useState(null),{data:c,isError:h,error:p,refetch:w}=ee(),{data:m,isLoading:x,isFetching:y,isError:g,error:U,refetch:D}=se(a),N=m?.items??[],C=r.trim().toLowerCase(),b=r.trim(),u=j.useMemo(()=>{const i=m?.items??[];return C?i.filter(v=>[v.name,v.description,v.path].some(Y=>Y.toLowerCase().includes(C))):i},[m,C]),f=j.useMemo(()=>u.length===0?null:n?u.find(i=>i.path===n)??u[0]:u[0],[u,n]),{data:P,isLoading:O,isError:_,error:W,refetch:V}=te(a,f?.path??null),z=[{id:"commands",label:t.commands,icon:ce,count:c?.commands??0},{id:"skills",label:t.skills,icon:oe,count:c?.skills??0},{id:"agents",label:t.agents,icon:me,count:c?.agents??0}],H=z.reduce((i,v)=>i+v.count,0),K=!x&&!g&&N.length===0,Z=!x&&!g&&N.length>0&&u.length===0,G=A(p,"Shared item totals could not be loaded. Listing still works."),J=A(U,`Unable to fetch shared ${a}. Please try again.`),X=A(W,`Unable to load content for ${f?.name??"selected item"}.`);return e.jsxs("div",{className:"h-full overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"p-6 pb-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:s("sharedPage.title")}),e.jsx("p",{className:"text-muted-foreground",children:s("sharedPage.subtitle")})]}),e.jsx(ae,{value:a,onValueChange:i=>{l(i),d(""),o(null)},children:e.jsx(re,{className:"h-auto flex-wrap justify-start",children:z.map(i=>e.jsxs(ne,{value:i.id,className:"flex items-center gap-2",children:[e.jsx(i.icon,{className:"w-4 h-4"}),e.jsx("span",{children:i.label}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",i.count,")"]})]},i.id))})})]}),e.jsxs("div",{className:"flex flex-col gap-2 lg:items-end",children:[e.jsxs("div",{className:"grid w-full gap-2 sm:w-auto sm:min-w-[340px] sm:grid-cols-3",children:[e.jsx(F,{label:s("sharedPage.totalShared"),value:H}),e.jsx(F,{label:t[a],value:N.length}),e.jsx(F,{label:s("sharedPage.visible"),value:u.length})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx($,{variant:"secondary",children:s("sharedPage.markdownDetail")}),b?e.jsxs($,{variant:"outline",children:[s("sharedPage.filterPrefix")," ",b]}):null]})]})]}),c&&!c.symlinkStatus.valid&&e.jsxs(S,{variant:"warning",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsx(M,{children:s("sharedPage.configurationRequired")}),e.jsxs(L,{children:[c.symlinkStatus.message,". Run `ccs sync` to configure."]})]}),h&&e.jsxs(S,{variant:"info",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsx(M,{children:s("sharedPage.countsUnavailable")}),e.jsxs(L,{children:[e.jsx("p",{children:G}),e.jsx("div",{className:"mt-3",children:e.jsxs(I,{size:"sm",variant:"outline",onClick:()=>{w()},children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),s("sharedPage.retryCounts")]})})]})]})]}),e.jsx("div",{className:"flex-1 min-h-0 px-6 pb-6",children:e.jsx("div",{className:"h-full rounded-lg border overflow-hidden bg-background",children:e.jsxs("div",{className:"grid h-full min-h-0 lg:grid-cols-[320px_minmax(0,1fr)]",children:[e.jsxs("div",{className:"min-h-0 border-b lg:border-b-0 lg:border-r flex flex-col bg-muted/30",children:[e.jsxs("div",{className:"p-4 border-b bg-background space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(he,{className:"w-4 h-4 text-primary shrink-0"}),e.jsx("h2",{className:"font-semibold truncate",children:t[a]})]}),!x&&!g&&e.jsxs($,{variant:"outline",className:"text-[10px] h-5",children:[u.length,"/",N.length]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(ue,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(le,{value:r,onChange:i=>d(i.target.value),placeholder:s("sharedPage.filterPlaceholder",{tab:a}),"aria-label":s("sharedPage.filterPlaceholder",{tab:a}),className:"pl-8 h-9"})]}),!x&&!g&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:[s("sharedPage.showing",{visible:u.length,total:N.length,tab:a}),b?s("sharedPage.showingQuery",{query:b}):"",y?s("sharedPage.refreshing"):""]})]}),e.jsx(B,{className:"flex-1 min-h-0",children:x?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.loadingShared",{tab:a})}):g?e.jsx("div",{className:"p-4 text-center",children:e.jsxs("div",{className:"space-y-3 py-8",children:[e.jsx(xe,{className:"w-10 h-10 mx-auto text-destructive/50"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:s("sharedPage.failedLoadShared",{tab:a})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:J})]}),e.jsxs(I,{size:"sm",variant:"outline",onClick:()=>{D()},children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),s("sharedPage.retry")]})]})}):K?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.noSharedFound",{tab:a})}):Z?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.noMatch",{tab:a,query:b})}):e.jsx("div",{className:"p-2 space-y-1",children:u.map(i=>e.jsxs("button",{type:"button",onClick:()=>o(i.path),className:Q("w-full text-left p-3 rounded-md border transition-colors",f?.path===i.path?"bg-primary/10 border-primary/30":"bg-background hover:bg-muted border-transparent"),children:[e.jsx("p",{className:"text-sm font-medium truncate",children:i.name}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:i.description}),e.jsx("p",{className:"text-[11px] text-muted-foreground/90 mt-2 font-mono truncate",children:i.path})]},`${i.type}:${i.path}`))})})]}),e.jsx("div",{className:"min-w-0 min-h-0 flex flex-col bg-muted/20",children:f?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-4 py-3 border-b bg-background",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-base font-semibold truncate",children:f.name}),e.jsx($,{variant:"outline",className:"uppercase text-[10px]",children:f.type})]})}),e.jsxs("div",{className:"p-4 space-y-4 min-h-0 flex-1 flex flex-col",children:[e.jsx("div",{className:"rounded-md border bg-muted/35 p-3",children:e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:[e.jsx(R,{label:s("sharedPage.pathLabel"),value:f.path,mono:!0}),P?.contentPath&&P.contentPath!==f.path&&e.jsx(R,{label:s("sharedPage.resolvedSource"),value:P.contentPath,mono:!0})]})}),e.jsx(ie,{className:"min-h-0 flex-1",children:e.jsx(de,{className:"p-0 h-full",children:e.jsx(B,{className:"h-full px-5 py-4",children:O?e.jsx("p",{className:"text-sm text-muted-foreground",children:s("sharedPage.loadingMarkdown")}):_?e.jsxs(S,{variant:"destructive",className:"max-w-2xl",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsx(M,{children:s("sharedPage.failedLoadContent")}),e.jsxs(L,{children:[e.jsx("p",{children:X}),e.jsx("div",{className:"mt-3",children:e.jsxs(I,{size:"sm",variant:"outline",onClick:()=>{V()},children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),s("sharedPage.retryContent")]})})]})]}):e.jsx(pe,{content:P?.content??""})})})})]})]}):e.jsx("div",{className:"min-h-[320px] flex items-center justify-center p-6 text-center text-muted-foreground",children:s("sharedPage.selectOne",{tab:a.slice(0,-1)})})})]})})})]})}function F({label:s,value:a}){return e.jsxs("div",{className:"rounded-md border bg-muted/30 px-3 py-2",children:[e.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:s}),e.jsx("p",{className:"text-lg font-semibold leading-tight mt-1",children:a})]})}function R({label:s,value:a,mono:l=!1}){return e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:s}),e.jsx("p",{className:Q("text-xs mt-1 break-words",l?"font-mono":"text-sm"),children:a})]})}function A(s,a){if(!(s instanceof Error))return a;const l=s.message.toLowerCase();return l.includes("failed to fetch")||l.includes("network")?"Connection to dashboard server lost or restarting. Keep `ccs config` running, then retry.":s.message||a}function pe({content:s}){const{t:a}=q(),l=j.useMemo(()=>fe(s),[s]);return l.blocks.length===0&&l.frontmatter.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:a("sharedPage.noMarkdown")}):e.jsxs("div",{className:"space-y-5",children:[l.frontmatter.length>0?e.jsx("div",{className:"rounded-md border bg-muted/35 p-3",children:e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:l.frontmatter.map(t=>e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:ge(t.key)}),e.jsx("p",{className:"text-xs mt-1 break-words",children:t.value})]},`${t.key}:${t.value}`))})}):null,l.blocks.map((t,r)=>{if(t.type==="heading"){const d=t.level<=1?"text-xl font-semibold":t.level===2?"text-lg font-semibold":"text-base font-semibold";return e.jsx("h3",{className:d,children:k(t.text,`heading-${r}`)},`heading-${r}`)}return t.type==="paragraph"?e.jsx("p",{className:"text-sm leading-6 whitespace-pre-wrap",children:k(t.text,`paragraph-${r}`)},`paragraph-${r}`):t.type==="unordered-list"?e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm leading-6",children:t.items.map((d,n)=>e.jsx("li",{children:k(d,`ul-item-${r}-${n}`)},`ul-item-${r}-${n}`))},`ul-${r}`):t.type==="ordered-list"?e.jsx("ol",{className:"list-decimal pl-5 space-y-1 text-sm leading-6",children:t.items.map((d,n)=>e.jsx("li",{children:k(d,`ol-item-${r}-${n}`)},`ol-item-${r}-${n}`))},`ol-${r}`):e.jsxs("div",{className:"rounded-md border bg-muted/60 p-3 font-mono text-xs leading-5 overflow-x-auto",children:[t.language&&e.jsx("div",{className:"text-[10px] uppercase tracking-wide text-muted-foreground mb-2",children:t.language}),e.jsx("pre",{className:"whitespace-pre-wrap break-words m-0",children:t.content})]},`code-${r}`)})]})}function ge(s){return s.replace(/[-_]/g," ")}function k(s,a){const l=/(\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*|\[([^\]]+)\]\(([^)]+)\))/g,t=[];let r=0,d=0;for(const n of s.matchAll(l)){const o=n[0],c=n.index??0;if(c>r&&t.push(s.slice(r,c)),n[2])t.push(e.jsx("strong",{className:"font-semibold",children:n[2]},`${a}-strong-${d}`));else if(n[3])t.push(e.jsx("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[0.82em]",children:n[3]},`${a}-code-${d}`));else if(n[4])t.push(e.jsx("em",{className:"italic",children:n[4]},`${a}-em-${d}`));else if(n[5]&&n[6]){const h=n[6].trim();/^(https?:\/\/|mailto:)/i.test(h)?t.push(e.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"text-primary underline underline-offset-2 hover:opacity-90",children:n[5]},`${a}-link-${d}`)):t.push(n[5])}else t.push(o);r=c+o.length,d+=1}return r<s.length&&t.push(s.slice(r)),t.length===0?[s]:t}function fe(s){const a=s.replace(/\r\n/g,`
1
+ import{j as e}from"./radix-ui-nu4wz29m.js";import{r as j}from"./react-vendor-Bjx91N7w.js";import{a as Q,bv as ee,bw as se,bx as te,Q as ae,R as re,U as ne,B as $,bi as S,bj as M,bk as L,d as I,I as le,n as B,c as U,C as ie,b as de}from"./index-Fd17BSGq.js";import{a3 as ce,aa as oe,b7 as me,T as E,R as T,F as he,av as ue,w as xe}from"./icons-DQFHtVq5.js";import"./tanstack-bhJxV1h8.js";import"./notifications-B4_o8bcr.js";import"./utils-CzKF5WmX.js";import"./form-utils-CuHzLhJZ.js";import"./code-highlight-D4E79GKQ.js";function Se(){const{t:s}=Q(),[a,l]=j.useState("commands"),t={commands:s("sharedPage.commands"),skills:s("sharedPage.skills"),agents:s("sharedPage.agents")},[r,d]=j.useState(""),[n,o]=j.useState(null),{data:c,isError:h,error:p,refetch:w}=ee(),{data:m,isLoading:x,isFetching:y,isError:g,error:q,refetch:D}=se(a),N=m?.items??[],C=r.trim().toLowerCase(),b=r.trim(),u=j.useMemo(()=>{const i=m?.items??[];return C?i.filter(v=>[v.name,v.description,v.path].some(Y=>Y.toLowerCase().includes(C))):i},[m,C]),f=j.useMemo(()=>u.length===0?null:n?u.find(i=>i.path===n)??u[0]:u[0],[u,n]),{data:P,isLoading:O,isError:_,error:W,refetch:V}=te(a,f?.path??null),z=[{id:"commands",label:t.commands,icon:ce,count:c?.commands??0},{id:"skills",label:t.skills,icon:oe,count:c?.skills??0},{id:"agents",label:t.agents,icon:me,count:c?.agents??0}],H=z.reduce((i,v)=>i+v.count,0),K=!x&&!g&&N.length===0,Z=!x&&!g&&N.length>0&&u.length===0,G=A(p,"Shared item totals could not be loaded. Listing still works."),J=A(q,`Unable to fetch shared ${a}. Please try again.`),X=A(W,`Unable to load content for ${f?.name??"selected item"}.`);return e.jsxs("div",{className:"h-full overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"p-6 pb-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-end lg:justify-between",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:s("sharedPage.title")}),e.jsx("p",{className:"text-muted-foreground",children:s("sharedPage.subtitle")})]}),e.jsx(ae,{value:a,onValueChange:i=>{l(i),d(""),o(null)},children:e.jsx(re,{className:"h-auto flex-wrap justify-start",children:z.map(i=>e.jsxs(ne,{value:i.id,className:"flex items-center gap-2",children:[e.jsx(i.icon,{className:"w-4 h-4"}),e.jsx("span",{children:i.label}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",i.count,")"]})]},i.id))})})]}),e.jsxs("div",{className:"flex flex-col gap-2 lg:items-end",children:[e.jsxs("div",{className:"grid w-full gap-2 sm:w-auto sm:min-w-[340px] sm:grid-cols-3",children:[e.jsx(F,{label:s("sharedPage.totalShared"),value:H}),e.jsx(F,{label:t[a],value:N.length}),e.jsx(F,{label:s("sharedPage.visible"),value:u.length})]}),e.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[e.jsx($,{variant:"secondary",children:s("sharedPage.markdownDetail")}),b?e.jsxs($,{variant:"outline",children:[s("sharedPage.filterPrefix")," ",b]}):null]})]})]}),c&&!c.symlinkStatus.valid&&e.jsxs(S,{variant:"warning",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsx(M,{children:s("sharedPage.configurationRequired")}),e.jsxs(L,{children:[c.symlinkStatus.message,". Run `ccs sync` to configure."]})]}),h&&e.jsxs(S,{variant:"info",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsx(M,{children:s("sharedPage.countsUnavailable")}),e.jsxs(L,{children:[e.jsx("p",{children:G}),e.jsx("div",{className:"mt-3",children:e.jsxs(I,{size:"sm",variant:"outline",onClick:()=>{w()},children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),s("sharedPage.retryCounts")]})})]})]})]}),e.jsx("div",{className:"flex-1 min-h-0 px-6 pb-6",children:e.jsx("div",{className:"h-full rounded-lg border overflow-hidden bg-background",children:e.jsxs("div",{className:"grid h-full min-h-0 lg:grid-cols-[320px_minmax(0,1fr)]",children:[e.jsxs("div",{className:"min-h-0 border-b lg:border-b-0 lg:border-r flex flex-col bg-muted/30",children:[e.jsxs("div",{className:"p-4 border-b bg-background space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(he,{className:"w-4 h-4 text-primary shrink-0"}),e.jsx("h2",{className:"font-semibold truncate",children:t[a]})]}),!x&&!g&&e.jsxs($,{variant:"outline",className:"text-[10px] h-5",children:[u.length,"/",N.length]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(ue,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(le,{value:r,onChange:i=>d(i.target.value),placeholder:s("sharedPage.filterPlaceholder",{tab:a}),"aria-label":s("sharedPage.filterPlaceholder",{tab:a}),className:"pl-8 h-9"})]}),!x&&!g&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:[s("sharedPage.showing",{visible:u.length,total:N.length,tab:a}),b?s("sharedPage.showingQuery",{query:b}):"",y?s("sharedPage.refreshing"):""]})]}),e.jsx(B,{className:"flex-1 min-h-0",children:x?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.loadingShared",{tab:a})}):g?e.jsx("div",{className:"p-4 text-center",children:e.jsxs("div",{className:"space-y-3 py-8",children:[e.jsx(xe,{className:"w-10 h-10 mx-auto text-destructive/50"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:s("sharedPage.failedLoadShared",{tab:a})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:J})]}),e.jsxs(I,{size:"sm",variant:"outline",onClick:()=>{D()},children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),s("sharedPage.retry")]})]})}):K?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.noSharedFound",{tab:a})}):Z?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.noMatch",{tab:a,query:b})}):e.jsx("div",{className:"p-2 space-y-1",children:u.map(i=>e.jsxs("button",{type:"button",onClick:()=>o(i.path),className:U("w-full text-left p-3 rounded-md border transition-colors",f?.path===i.path?"bg-primary/10 border-primary/30":"bg-background hover:bg-muted border-transparent"),children:[e.jsx("p",{className:"text-sm font-medium truncate",children:i.name}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:i.description}),e.jsx("p",{className:"text-[11px] text-muted-foreground/90 mt-2 font-mono truncate",children:i.path})]},`${i.type}:${i.path}`))})})]}),e.jsx("div",{className:"min-w-0 min-h-0 flex flex-col bg-muted/20",children:f?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"px-4 py-3 border-b bg-background",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"text-base font-semibold truncate",children:f.name}),e.jsx($,{variant:"outline",className:"uppercase text-[10px]",children:f.type})]})}),e.jsxs("div",{className:"p-4 space-y-4 min-h-0 flex-1 flex flex-col",children:[e.jsx("div",{className:"rounded-md border bg-muted/35 p-3",children:e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:[e.jsx(R,{label:s("sharedPage.pathLabel"),value:f.path,mono:!0}),P?.contentPath&&P.contentPath!==f.path&&e.jsx(R,{label:s("sharedPage.resolvedSource"),value:P.contentPath,mono:!0})]})}),e.jsx(ie,{className:"min-h-0 flex-1",children:e.jsx(de,{className:"p-0 h-full",children:e.jsx(B,{className:"h-full px-5 py-4",children:O?e.jsx("p",{className:"text-sm text-muted-foreground",children:s("sharedPage.loadingMarkdown")}):_?e.jsxs(S,{variant:"destructive",className:"max-w-2xl",children:[e.jsx(E,{className:"h-4 w-4"}),e.jsx(M,{children:s("sharedPage.failedLoadContent")}),e.jsxs(L,{children:[e.jsx("p",{children:X}),e.jsx("div",{className:"mt-3",children:e.jsxs(I,{size:"sm",variant:"outline",onClick:()=>{V()},children:[e.jsx(T,{className:"w-4 h-4 mr-2"}),s("sharedPage.retryContent")]})})]})]}):e.jsx(pe,{content:P?.content??""})})})})]})]}):e.jsx("div",{className:"min-h-[320px] flex items-center justify-center p-6 text-center text-muted-foreground",children:s("sharedPage.selectOne",{tab:a.slice(0,-1)})})})]})})})]})}function F({label:s,value:a}){return e.jsxs("div",{className:"rounded-md border bg-muted/30 px-3 py-2",children:[e.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:s}),e.jsx("p",{className:"text-lg font-semibold leading-tight mt-1",children:a})]})}function R({label:s,value:a,mono:l=!1}){return e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:s}),e.jsx("p",{className:U("text-xs mt-1 break-words",l?"font-mono":"text-sm"),children:a})]})}function A(s,a){if(!(s instanceof Error))return a;const l=s.message.toLowerCase();return l.includes("failed to fetch")||l.includes("network")?"Connection to dashboard server lost or restarting. Keep `ccs config` running, then retry.":s.message||a}function pe({content:s}){const{t:a}=Q(),l=j.useMemo(()=>fe(s),[s]);return l.blocks.length===0&&l.frontmatter.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:a("sharedPage.noMarkdown")}):e.jsxs("div",{className:"space-y-5",children:[l.frontmatter.length>0?e.jsx("div",{className:"rounded-md border bg-muted/35 p-3",children:e.jsx("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:l.frontmatter.map(t=>e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:ge(t.key)}),e.jsx("p",{className:"text-xs mt-1 break-words",children:t.value})]},`${t.key}:${t.value}`))})}):null,l.blocks.map((t,r)=>{if(t.type==="heading"){const d=t.level<=1?"text-xl font-semibold":t.level===2?"text-lg font-semibold":"text-base font-semibold";return e.jsx("h3",{className:d,children:k(t.text,`heading-${r}`)},`heading-${r}`)}return t.type==="paragraph"?e.jsx("p",{className:"text-sm leading-6 whitespace-pre-wrap",children:k(t.text,`paragraph-${r}`)},`paragraph-${r}`):t.type==="unordered-list"?e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm leading-6",children:t.items.map((d,n)=>e.jsx("li",{children:k(d,`ul-item-${r}-${n}`)},`ul-item-${r}-${n}`))},`ul-${r}`):t.type==="ordered-list"?e.jsx("ol",{className:"list-decimal pl-5 space-y-1 text-sm leading-6",children:t.items.map((d,n)=>e.jsx("li",{children:k(d,`ol-item-${r}-${n}`)},`ol-item-${r}-${n}`))},`ol-${r}`):e.jsxs("div",{className:"rounded-md border bg-muted/60 p-3 font-mono text-xs leading-5 overflow-x-auto",children:[t.language&&e.jsx("div",{className:"text-[10px] uppercase tracking-wide text-muted-foreground mb-2",children:t.language}),e.jsx("pre",{className:"whitespace-pre-wrap break-words m-0",children:t.content})]},`code-${r}`)})]})}function ge(s){return s.replace(/[-_]/g," ")}function k(s,a){const l=/(\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*|\[([^\]]+)\]\(([^)]+)\))/g,t=[];let r=0,d=0;for(const n of s.matchAll(l)){const o=n[0],c=n.index??0;if(c>r&&t.push(s.slice(r,c)),n[2])t.push(e.jsx("strong",{className:"font-semibold",children:n[2]},`${a}-strong-${d}`));else if(n[3])t.push(e.jsx("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[0.82em]",children:n[3]},`${a}-code-${d}`));else if(n[4])t.push(e.jsx("em",{className:"italic",children:n[4]},`${a}-em-${d}`));else if(n[5]&&n[6]){const h=n[6].trim();/^(https?:\/\/|mailto:)/i.test(h)?t.push(e.jsx("a",{href:h,target:"_blank",rel:"noreferrer",className:"text-primary underline underline-offset-2 hover:opacity-90",children:n[5]},`${a}-link-${d}`)):t.push(n[5])}else t.push(o);r=c+o.length,d+=1}return r<s.length&&t.push(s.slice(r)),t.length===0?[s]:t}function fe(s){const a=s.replace(/\r\n/g,`
2
2
  `).trim();if(!a)return{blocks:[],frontmatter:[]};let l=a;const t=[];if(l.startsWith(`---
3
3
  `)){const r=l.indexOf(`
4
4
  ---
@@ -1 +1 @@
1
- import{j as t}from"./radix-ui-Zb8sVEtn.js";import"./react-vendor-CNOkPC89.js";import{c as l}from"./index-2X8-14xr.js";function n({className:a,...e}){return t.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:t.jsx("table",{"data-slot":"table",className:l("w-full caption-bottom text-sm",a),...e})})}function c({className:a,...e}){return t.jsx("thead",{"data-slot":"table-header",className:l("[&_tr]:border-b",a),...e})}function d({className:a,...e}){return t.jsx("tbody",{"data-slot":"table-body",className:l("[&_tr:last-child]:border-0",a),...e})}function b({className:a,...e}){return t.jsx("tr",{"data-slot":"table-row",className:l("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...e})}function i({className:a,...e}){return t.jsx("th",{"data-slot":"table-head",className:l("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e})}function m({className:a,...e}){return t.jsx("td",{"data-slot":"table-cell",className:l("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e})}export{n as T,c as a,b,i as c,d,m as e};
1
+ import{j as t}from"./radix-ui-nu4wz29m.js";import"./react-vendor-Bjx91N7w.js";import{c as l}from"./index-Fd17BSGq.js";function n({className:a,...e}){return t.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:t.jsx("table",{"data-slot":"table",className:l("w-full caption-bottom text-sm",a),...e})})}function c({className:a,...e}){return t.jsx("thead",{"data-slot":"table-header",className:l("[&_tr]:border-b",a),...e})}function d({className:a,...e}){return t.jsx("tbody",{"data-slot":"table-body",className:l("[&_tr:last-child]:border-0",a),...e})}function b({className:a,...e}){return t.jsx("tr",{"data-slot":"table-row",className:l("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...e})}function i({className:a,...e}){return t.jsx("th",{"data-slot":"table-head",className:l("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e})}function m({className:a,...e}){return t.jsx("td",{"data-slot":"table-cell",className:l("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e})}export{n as T,c as a,b,i as c,d,m as e};