@georgedong32/ccs 7.66.0

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 (2083) hide show
  1. package/.claude/commands/ccs/continue.md +15 -0
  2. package/.claude/commands/ccs.md +17 -0
  3. package/.claude/commands/speckit.analyze.md +184 -0
  4. package/.claude/commands/speckit.checklist.md +295 -0
  5. package/.claude/commands/speckit.clarify.md +181 -0
  6. package/.claude/commands/speckit.constitution.md +84 -0
  7. package/.claude/commands/speckit.implement.md +198 -0
  8. package/.claude/commands/speckit.plan.md +153 -0
  9. package/.claude/commands/speckit.specify.md +306 -0
  10. package/.claude/commands/speckit.tasks.md +200 -0
  11. package/.claude/commands/speckit.taskstoissues.md +30 -0
  12. package/.claude/settings.local.json +9 -0
  13. package/.claude/skills/ccs-delegation/CLAUDE.md.template +17 -0
  14. package/.claude/skills/ccs-delegation/SKILL.md +195 -0
  15. package/.claude/skills/ccs-delegation/references/troubleshooting.md +201 -0
  16. package/LICENSE +21 -0
  17. package/README.md +150 -0
  18. package/config/base-agy.settings.json +10 -0
  19. package/config/base-claude.settings.json +10 -0
  20. package/config/base-codex.settings.json +10 -0
  21. package/config/base-gemini.settings.json +10 -0
  22. package/config/base-ghcp.settings.json +10 -0
  23. package/config/base-glm.settings.json +10 -0
  24. package/config/base-glmt.settings.json +17 -0
  25. package/config/base-iflow.settings.json +10 -0
  26. package/config/base-kimi.settings.json +10 -0
  27. package/config/base-kiro.settings.json +10 -0
  28. package/config/base-km.settings.json +10 -0
  29. package/config/base-llamacpp.settings.json +10 -0
  30. package/config/base-mm.settings.json +10 -0
  31. package/config/base-ollama-cloud.settings.json +10 -0
  32. package/config/base-ollama.settings.json +10 -0
  33. package/config/base-qwen.settings.json +10 -0
  34. package/config/config.example.json +6 -0
  35. package/dist/api/index.d.ts +7 -0
  36. package/dist/api/index.d.ts.map +1 -0
  37. package/dist/api/index.js +24 -0
  38. package/dist/api/index.js.map +1 -0
  39. package/dist/api/services/cliproxy-profile-bridge.d.ts +13 -0
  40. package/dist/api/services/cliproxy-profile-bridge.d.ts.map +1 -0
  41. package/dist/api/services/cliproxy-profile-bridge.js +147 -0
  42. package/dist/api/services/cliproxy-profile-bridge.js.map +1 -0
  43. package/dist/api/services/index.d.ts +17 -0
  44. package/dist/api/services/index.d.ts.map +1 -0
  45. package/dist/api/services/index.js +59 -0
  46. package/dist/api/services/index.js.map +1 -0
  47. package/dist/api/services/openrouter-catalog.d.ts +30 -0
  48. package/dist/api/services/openrouter-catalog.d.ts.map +1 -0
  49. package/dist/api/services/openrouter-catalog.js +134 -0
  50. package/dist/api/services/openrouter-catalog.js.map +1 -0
  51. package/dist/api/services/openrouter-picker.d.ts +15 -0
  52. package/dist/api/services/openrouter-picker.d.ts.map +1 -0
  53. package/dist/api/services/openrouter-picker.js +113 -0
  54. package/dist/api/services/openrouter-picker.js.map +1 -0
  55. package/dist/api/services/profile-lifecycle-service.d.ts +24 -0
  56. package/dist/api/services/profile-lifecycle-service.d.ts.map +1 -0
  57. package/dist/api/services/profile-lifecycle-service.js +383 -0
  58. package/dist/api/services/profile-lifecycle-service.js.map +1 -0
  59. package/dist/api/services/profile-lifecycle-validation.d.ts +11 -0
  60. package/dist/api/services/profile-lifecycle-validation.d.ts.map +1 -0
  61. package/dist/api/services/profile-lifecycle-validation.js +87 -0
  62. package/dist/api/services/profile-lifecycle-validation.js.map +1 -0
  63. package/dist/api/services/profile-reader.d.ts +31 -0
  64. package/dist/api/services/profile-reader.d.ts.map +1 -0
  65. package/dist/api/services/profile-reader.js +192 -0
  66. package/dist/api/services/profile-reader.js.map +1 -0
  67. package/dist/api/services/profile-types.d.ts +169 -0
  68. package/dist/api/services/profile-types.d.ts.map +1 -0
  69. package/dist/api/services/profile-types.js +8 -0
  70. package/dist/api/services/profile-types.js.map +1 -0
  71. package/dist/api/services/profile-writer.d.ts +18 -0
  72. package/dist/api/services/profile-writer.d.ts.map +1 -0
  73. package/dist/api/services/profile-writer.js +376 -0
  74. package/dist/api/services/profile-writer.js.map +1 -0
  75. package/dist/api/services/provider-presets.d.ts +24 -0
  76. package/dist/api/services/provider-presets.d.ts.map +1 -0
  77. package/dist/api/services/provider-presets.js +38 -0
  78. package/dist/api/services/provider-presets.js.map +1 -0
  79. package/dist/api/services/validation-service.d.ts +26 -0
  80. package/dist/api/services/validation-service.d.ts.map +1 -0
  81. package/dist/api/services/validation-service.js +80 -0
  82. package/dist/api/services/validation-service.js.map +1 -0
  83. package/dist/auth/account-context.d.ts +65 -0
  84. package/dist/auth/account-context.d.ts.map +1 -0
  85. package/dist/auth/account-context.js +158 -0
  86. package/dist/auth/account-context.js.map +1 -0
  87. package/dist/auth/auth-commands.d.ts +63 -0
  88. package/dist/auth/auth-commands.d.ts.map +1 -0
  89. package/dist/auth/auth-commands.js +224 -0
  90. package/dist/auth/auth-commands.js.map +1 -0
  91. package/dist/auth/commands/backup-command.d.ts +3 -0
  92. package/dist/auth/commands/backup-command.d.ts.map +1 -0
  93. package/dist/auth/commands/backup-command.js +126 -0
  94. package/dist/auth/commands/backup-command.js.map +1 -0
  95. package/dist/auth/commands/create-command-env.d.ts +3 -0
  96. package/dist/auth/commands/create-command-env.d.ts.map +1 -0
  97. package/dist/auth/commands/create-command-env.js +55 -0
  98. package/dist/auth/commands/create-command-env.js.map +1 -0
  99. package/dist/auth/commands/create-command.d.ts +11 -0
  100. package/dist/auth/commands/create-command.d.ts.map +1 -0
  101. package/dist/auth/commands/create-command.js +280 -0
  102. package/dist/auth/commands/create-command.js.map +1 -0
  103. package/dist/auth/commands/default-command.d.ts +15 -0
  104. package/dist/auth/commands/default-command.d.ts.map +1 -0
  105. package/dist/auth/commands/default-command.js +71 -0
  106. package/dist/auth/commands/default-command.js.map +1 -0
  107. package/dist/auth/commands/index.d.ts +13 -0
  108. package/dist/auth/commands/index.d.ts.map +1 -0
  109. package/dist/auth/commands/index.js +27 -0
  110. package/dist/auth/commands/index.js.map +1 -0
  111. package/dist/auth/commands/list-command.d.ts +11 -0
  112. package/dist/auth/commands/list-command.d.ts.map +1 -0
  113. package/dist/auth/commands/list-command.js +134 -0
  114. package/dist/auth/commands/list-command.js.map +1 -0
  115. package/dist/auth/commands/remove-command.d.ts +11 -0
  116. package/dist/auth/commands/remove-command.d.ts.map +1 -0
  117. package/dist/auth/commands/remove-command.js +102 -0
  118. package/dist/auth/commands/remove-command.js.map +1 -0
  119. package/dist/auth/commands/show-command.d.ts +11 -0
  120. package/dist/auth/commands/show-command.d.ts.map +1 -0
  121. package/dist/auth/commands/show-command.js +116 -0
  122. package/dist/auth/commands/show-command.js.map +1 -0
  123. package/dist/auth/commands/types.d.ts +59 -0
  124. package/dist/auth/commands/types.d.ts.map +1 -0
  125. package/dist/auth/commands/types.js +78 -0
  126. package/dist/auth/commands/types.js.map +1 -0
  127. package/dist/auth/index.d.ts +8 -0
  128. package/dist/auth/index.d.ts.map +1 -0
  129. package/dist/auth/index.js +16 -0
  130. package/dist/auth/index.js.map +1 -0
  131. package/dist/auth/profile-continuity-inheritance.d.ts +21 -0
  132. package/dist/auth/profile-continuity-inheritance.d.ts.map +1 -0
  133. package/dist/auth/profile-continuity-inheritance.js +143 -0
  134. package/dist/auth/profile-continuity-inheritance.js.map +1 -0
  135. package/dist/auth/profile-detector.d.ts +128 -0
  136. package/dist/auth/profile-detector.d.ts.map +1 -0
  137. package/dist/auth/profile-detector.js +520 -0
  138. package/dist/auth/profile-detector.js.map +1 -0
  139. package/dist/auth/profile-registry.d.ts +119 -0
  140. package/dist/auth/profile-registry.d.ts.map +1 -0
  141. package/dist/auth/profile-registry.js +398 -0
  142. package/dist/auth/profile-registry.js.map +1 -0
  143. package/dist/auth/resume-lane-diagnostics.d.ts +21 -0
  144. package/dist/auth/resume-lane-diagnostics.d.ts.map +1 -0
  145. package/dist/auth/resume-lane-diagnostics.js +146 -0
  146. package/dist/auth/resume-lane-diagnostics.js.map +1 -0
  147. package/dist/auth/resume-lane-warning.d.ts +9 -0
  148. package/dist/auth/resume-lane-warning.d.ts.map +1 -0
  149. package/dist/auth/resume-lane-warning.js +60 -0
  150. package/dist/auth/resume-lane-warning.js.map +1 -0
  151. package/dist/bin/ccsxp-runtime.d.ts +4 -0
  152. package/dist/bin/ccsxp-runtime.d.ts.map +1 -0
  153. package/dist/bin/ccsxp-runtime.js +20 -0
  154. package/dist/bin/ccsxp-runtime.js.map +1 -0
  155. package/dist/bin/codex-runtime.d.ts +1 -0
  156. package/dist/bin/codex-runtime.d.ts.map +1 -0
  157. package/dist/bin/codex-runtime.js +5 -0
  158. package/dist/bin/codex-runtime.js.map +1 -0
  159. package/dist/bin/droid-runtime.d.ts +1 -0
  160. package/dist/bin/droid-runtime.d.ts.map +1 -0
  161. package/dist/bin/droid-runtime.js +5 -0
  162. package/dist/bin/droid-runtime.js.map +1 -0
  163. package/dist/ccs.d.ts +2 -0
  164. package/dist/ccs.d.ts.map +1 -0
  165. package/dist/ccs.js +1133 -0
  166. package/dist/ccs.js.map +1 -0
  167. package/dist/channels/official-channels-runtime.d.ts +156 -0
  168. package/dist/channels/official-channels-runtime.d.ts.map +1 -0
  169. package/dist/channels/official-channels-runtime.js +658 -0
  170. package/dist/channels/official-channels-runtime.js.map +1 -0
  171. package/dist/channels/official-channels-store.d.ts +23 -0
  172. package/dist/channels/official-channels-store.d.ts.map +1 -0
  173. package/dist/channels/official-channels-store.js +274 -0
  174. package/dist/channels/official-channels-store.js.map +1 -0
  175. package/dist/cliproxy/account-manager.d.ts +16 -0
  176. package/dist/cliproxy/account-manager.d.ts.map +1 -0
  177. package/dist/cliproxy/account-manager.js +51 -0
  178. package/dist/cliproxy/account-manager.js.map +1 -0
  179. package/dist/cliproxy/account-safety.d.ts +92 -0
  180. package/dist/cliproxy/account-safety.d.ts.map +1 -0
  181. package/dist/cliproxy/account-safety.js +496 -0
  182. package/dist/cliproxy/account-safety.js.map +1 -0
  183. package/dist/cliproxy/account-stats-key.d.ts +2 -0
  184. package/dist/cliproxy/account-stats-key.d.ts.map +1 -0
  185. package/dist/cliproxy/account-stats-key.js +8 -0
  186. package/dist/cliproxy/account-stats-key.js.map +1 -0
  187. package/dist/cliproxy/accounts/bulk-ops.d.ts +22 -0
  188. package/dist/cliproxy/accounts/bulk-ops.d.ts.map +1 -0
  189. package/dist/cliproxy/accounts/bulk-ops.js +88 -0
  190. package/dist/cliproxy/accounts/bulk-ops.js.map +1 -0
  191. package/dist/cliproxy/accounts/email-account-identity.d.ts +12 -0
  192. package/dist/cliproxy/accounts/email-account-identity.d.ts.map +1 -0
  193. package/dist/cliproxy/accounts/email-account-identity.js +124 -0
  194. package/dist/cliproxy/accounts/email-account-identity.js.map +1 -0
  195. package/dist/cliproxy/accounts/index.d.ts +19 -0
  196. package/dist/cliproxy/accounts/index.d.ts.map +1 -0
  197. package/dist/cliproxy/accounts/index.js +57 -0
  198. package/dist/cliproxy/accounts/index.js.map +1 -0
  199. package/dist/cliproxy/accounts/query.d.ts +36 -0
  200. package/dist/cliproxy/accounts/query.d.ts.map +1 -0
  201. package/dist/cliproxy/accounts/query.js +99 -0
  202. package/dist/cliproxy/accounts/query.js.map +1 -0
  203. package/dist/cliproxy/accounts/registry.d.ts +80 -0
  204. package/dist/cliproxy/accounts/registry.d.ts.map +1 -0
  205. package/dist/cliproxy/accounts/registry.js +649 -0
  206. package/dist/cliproxy/accounts/registry.js.map +1 -0
  207. package/dist/cliproxy/accounts/token-file-ops.d.ts +93 -0
  208. package/dist/cliproxy/accounts/token-file-ops.d.ts.map +1 -0
  209. package/dist/cliproxy/accounts/token-file-ops.js +288 -0
  210. package/dist/cliproxy/accounts/token-file-ops.js.map +1 -0
  211. package/dist/cliproxy/accounts/types.d.ts +66 -0
  212. package/dist/cliproxy/accounts/types.d.ts.map +1 -0
  213. package/dist/cliproxy/accounts/types.js +12 -0
  214. package/dist/cliproxy/accounts/types.js.map +1 -0
  215. package/dist/cliproxy/ai-providers/config-store.d.ts +19 -0
  216. package/dist/cliproxy/ai-providers/config-store.d.ts.map +1 -0
  217. package/dist/cliproxy/ai-providers/config-store.js +150 -0
  218. package/dist/cliproxy/ai-providers/config-store.js.map +1 -0
  219. package/dist/cliproxy/ai-providers/config-yaml-sections.d.ts +2 -0
  220. package/dist/cliproxy/ai-providers/config-yaml-sections.d.ts.map +1 -0
  221. package/dist/cliproxy/ai-providers/config-yaml-sections.js +43 -0
  222. package/dist/cliproxy/ai-providers/config-yaml-sections.js.map +1 -0
  223. package/dist/cliproxy/ai-providers/index.d.ts +4 -0
  224. package/dist/cliproxy/ai-providers/index.d.ts.map +1 -0
  225. package/dist/cliproxy/ai-providers/index.js +12 -0
  226. package/dist/cliproxy/ai-providers/index.js.map +1 -0
  227. package/dist/cliproxy/ai-providers/service.d.ts +6 -0
  228. package/dist/cliproxy/ai-providers/service.d.ts.map +1 -0
  229. package/dist/cliproxy/ai-providers/service.js +220 -0
  230. package/dist/cliproxy/ai-providers/service.js.map +1 -0
  231. package/dist/cliproxy/ai-providers/types.d.ts +99 -0
  232. package/dist/cliproxy/ai-providers/types.d.ts.map +1 -0
  233. package/dist/cliproxy/ai-providers/types.js +53 -0
  234. package/dist/cliproxy/ai-providers/types.js.map +1 -0
  235. package/dist/cliproxy/antigravity-responsibility.d.ts +36 -0
  236. package/dist/cliproxy/antigravity-responsibility.d.ts.map +1 -0
  237. package/dist/cliproxy/antigravity-responsibility.js +171 -0
  238. package/dist/cliproxy/antigravity-responsibility.js.map +1 -0
  239. package/dist/cliproxy/auth/auth-types.d.ts +141 -0
  240. package/dist/cliproxy/auth/auth-types.d.ts.map +1 -0
  241. package/dist/cliproxy/auth/auth-types.js +217 -0
  242. package/dist/cliproxy/auth/auth-types.js.map +1 -0
  243. package/dist/cliproxy/auth/environment-detector.d.ts +30 -0
  244. package/dist/cliproxy/auth/environment-detector.d.ts.map +1 -0
  245. package/dist/cliproxy/auth/environment-detector.js +129 -0
  246. package/dist/cliproxy/auth/environment-detector.js.map +1 -0
  247. package/dist/cliproxy/auth/gemini-token-refresh.d.ts +40 -0
  248. package/dist/cliproxy/auth/gemini-token-refresh.d.ts.map +1 -0
  249. package/dist/cliproxy/auth/gemini-token-refresh.js +371 -0
  250. package/dist/cliproxy/auth/gemini-token-refresh.js.map +1 -0
  251. package/dist/cliproxy/auth/index.d.ts +11 -0
  252. package/dist/cliproxy/auth/index.d.ts.map +1 -0
  253. package/dist/cliproxy/auth/index.js +35 -0
  254. package/dist/cliproxy/auth/index.js.map +1 -0
  255. package/dist/cliproxy/auth/kiro-import.d.ts +23 -0
  256. package/dist/cliproxy/auth/kiro-import.d.ts.map +1 -0
  257. package/dist/cliproxy/auth/kiro-import.js +140 -0
  258. package/dist/cliproxy/auth/kiro-import.js.map +1 -0
  259. package/dist/cliproxy/auth/oauth-handler.d.ts +42 -0
  260. package/dist/cliproxy/auth/oauth-handler.d.ts.map +1 -0
  261. package/dist/cliproxy/auth/oauth-handler.js +543 -0
  262. package/dist/cliproxy/auth/oauth-handler.js.map +1 -0
  263. package/dist/cliproxy/auth/oauth-process.d.ts +29 -0
  264. package/dist/cliproxy/auth/oauth-process.d.ts.map +1 -0
  265. package/dist/cliproxy/auth/oauth-process.js +447 -0
  266. package/dist/cliproxy/auth/oauth-process.js.map +1 -0
  267. package/dist/cliproxy/auth/provider-refreshers/index.d.ts +32 -0
  268. package/dist/cliproxy/auth/provider-refreshers/index.d.ts.map +1 -0
  269. package/dist/cliproxy/auth/provider-refreshers/index.js +87 -0
  270. package/dist/cliproxy/auth/provider-refreshers/index.js.map +1 -0
  271. package/dist/cliproxy/auth/token-expiry-checker.d.ts +37 -0
  272. package/dist/cliproxy/auth/token-expiry-checker.d.ts.map +1 -0
  273. package/dist/cliproxy/auth/token-expiry-checker.js +124 -0
  274. package/dist/cliproxy/auth/token-expiry-checker.js.map +1 -0
  275. package/dist/cliproxy/auth/token-manager.d.ts +73 -0
  276. package/dist/cliproxy/auth/token-manager.d.ts.map +1 -0
  277. package/dist/cliproxy/auth/token-manager.js +381 -0
  278. package/dist/cliproxy/auth/token-manager.js.map +1 -0
  279. package/dist/cliproxy/auth/token-refresh-config.d.ts +13 -0
  280. package/dist/cliproxy/auth/token-refresh-config.d.ts.map +1 -0
  281. package/dist/cliproxy/auth/token-refresh-config.js +31 -0
  282. package/dist/cliproxy/auth/token-refresh-config.js.map +1 -0
  283. package/dist/cliproxy/auth/token-refresh-worker.d.ts +83 -0
  284. package/dist/cliproxy/auth/token-refresh-worker.d.ts.map +1 -0
  285. package/dist/cliproxy/auth/token-refresh-worker.js +215 -0
  286. package/dist/cliproxy/auth/token-refresh-worker.js.map +1 -0
  287. package/dist/cliproxy/auth-handler.d.ts +31 -0
  288. package/dist/cliproxy/auth-handler.d.ts.map +1 -0
  289. package/dist/cliproxy/auth-handler.js +60 -0
  290. package/dist/cliproxy/auth-handler.js.map +1 -0
  291. package/dist/cliproxy/auth-session-manager.d.ts +51 -0
  292. package/dist/cliproxy/auth-session-manager.d.ts.map +1 -0
  293. package/dist/cliproxy/auth-session-manager.js +134 -0
  294. package/dist/cliproxy/auth-session-manager.js.map +1 -0
  295. package/dist/cliproxy/auth-token-manager.d.ts +82 -0
  296. package/dist/cliproxy/auth-token-manager.d.ts.map +1 -0
  297. package/dist/cliproxy/auth-token-manager.js +184 -0
  298. package/dist/cliproxy/auth-token-manager.js.map +1 -0
  299. package/dist/cliproxy/auth-utils.d.ts +16 -0
  300. package/dist/cliproxy/auth-utils.d.ts.map +1 -0
  301. package/dist/cliproxy/auth-utils.js +33 -0
  302. package/dist/cliproxy/auth-utils.js.map +1 -0
  303. package/dist/cliproxy/base-config-loader.d.ts +42 -0
  304. package/dist/cliproxy/base-config-loader.d.ts.map +1 -0
  305. package/dist/cliproxy/base-config-loader.js +123 -0
  306. package/dist/cliproxy/base-config-loader.js.map +1 -0
  307. package/dist/cliproxy/binary/downloader.d.ts +69 -0
  308. package/dist/cliproxy/binary/downloader.d.ts.map +1 -0
  309. package/dist/cliproxy/binary/downloader.js +478 -0
  310. package/dist/cliproxy/binary/downloader.js.map +1 -0
  311. package/dist/cliproxy/binary/extractor.d.ts +12 -0
  312. package/dist/cliproxy/binary/extractor.d.ts.map +1 -0
  313. package/dist/cliproxy/binary/extractor.js +28 -0
  314. package/dist/cliproxy/binary/extractor.js.map +1 -0
  315. package/dist/cliproxy/binary/index.d.ts +13 -0
  316. package/dist/cliproxy/binary/index.d.ts.map +1 -0
  317. package/dist/cliproxy/binary/index.js +54 -0
  318. package/dist/cliproxy/binary/index.js.map +1 -0
  319. package/dist/cliproxy/binary/installer.d.ts +25 -0
  320. package/dist/cliproxy/binary/installer.d.ts.map +1 -0
  321. package/dist/cliproxy/binary/installer.js +154 -0
  322. package/dist/cliproxy/binary/installer.js.map +1 -0
  323. package/dist/cliproxy/binary/lifecycle.d.ts +11 -0
  324. package/dist/cliproxy/binary/lifecycle.d.ts.map +1 -0
  325. package/dist/cliproxy/binary/lifecycle.js +150 -0
  326. package/dist/cliproxy/binary/lifecycle.js.map +1 -0
  327. package/dist/cliproxy/binary/tar-extractor.d.ts +10 -0
  328. package/dist/cliproxy/binary/tar-extractor.d.ts.map +1 -0
  329. package/dist/cliproxy/binary/tar-extractor.js +118 -0
  330. package/dist/cliproxy/binary/tar-extractor.js.map +1 -0
  331. package/dist/cliproxy/binary/types.d.ts +49 -0
  332. package/dist/cliproxy/binary/types.d.ts.map +1 -0
  333. package/dist/cliproxy/binary/types.js +32 -0
  334. package/dist/cliproxy/binary/types.js.map +1 -0
  335. package/dist/cliproxy/binary/updater.d.ts +7 -0
  336. package/dist/cliproxy/binary/updater.d.ts.map +1 -0
  337. package/dist/cliproxy/binary/updater.js +18 -0
  338. package/dist/cliproxy/binary/updater.js.map +1 -0
  339. package/dist/cliproxy/binary/verifier.d.ts +18 -0
  340. package/dist/cliproxy/binary/verifier.d.ts.map +1 -0
  341. package/dist/cliproxy/binary/verifier.js +82 -0
  342. package/dist/cliproxy/binary/verifier.js.map +1 -0
  343. package/dist/cliproxy/binary/version-cache.d.ts +64 -0
  344. package/dist/cliproxy/binary/version-cache.d.ts.map +1 -0
  345. package/dist/cliproxy/binary/version-cache.js +239 -0
  346. package/dist/cliproxy/binary/version-cache.js.map +1 -0
  347. package/dist/cliproxy/binary/version-checker.d.ts +36 -0
  348. package/dist/cliproxy/binary/version-checker.d.ts.map +1 -0
  349. package/dist/cliproxy/binary/version-checker.js +135 -0
  350. package/dist/cliproxy/binary/version-checker.js.map +1 -0
  351. package/dist/cliproxy/binary/zip-extractor.d.ts +10 -0
  352. package/dist/cliproxy/binary/zip-extractor.d.ts.map +1 -0
  353. package/dist/cliproxy/binary/zip-extractor.js +110 -0
  354. package/dist/cliproxy/binary/zip-extractor.js.map +1 -0
  355. package/dist/cliproxy/binary-manager.d.ts +70 -0
  356. package/dist/cliproxy/binary-manager.d.ts.map +1 -0
  357. package/dist/cliproxy/binary-manager.js +216 -0
  358. package/dist/cliproxy/binary-manager.js.map +1 -0
  359. package/dist/cliproxy/catalog-cache.d.ts +39 -0
  360. package/dist/cliproxy/catalog-cache.d.ts.map +1 -0
  361. package/dist/cliproxy/catalog-cache.js +254 -0
  362. package/dist/cliproxy/catalog-cache.js.map +1 -0
  363. package/dist/cliproxy/cliproxy-executor.d.ts +16 -0
  364. package/dist/cliproxy/cliproxy-executor.d.ts.map +1 -0
  365. package/dist/cliproxy/cliproxy-executor.js +27 -0
  366. package/dist/cliproxy/cliproxy-executor.js.map +1 -0
  367. package/dist/cliproxy/codex-plan-compatibility.d.ts +39 -0
  368. package/dist/cliproxy/codex-plan-compatibility.d.ts.map +1 -0
  369. package/dist/cliproxy/codex-plan-compatibility.js +134 -0
  370. package/dist/cliproxy/codex-plan-compatibility.js.map +1 -0
  371. package/dist/cliproxy/codex-reasoning-proxy.d.ts +61 -0
  372. package/dist/cliproxy/codex-reasoning-proxy.d.ts.map +1 -0
  373. package/dist/cliproxy/codex-reasoning-proxy.js +495 -0
  374. package/dist/cliproxy/codex-reasoning-proxy.js.map +1 -0
  375. package/dist/cliproxy/composite-validator.d.ts +20 -0
  376. package/dist/cliproxy/composite-validator.d.ts.map +1 -0
  377. package/dist/cliproxy/composite-validator.js +94 -0
  378. package/dist/cliproxy/composite-validator.js.map +1 -0
  379. package/dist/cliproxy/config/env-builder.d.ts +84 -0
  380. package/dist/cliproxy/config/env-builder.d.ts.map +1 -0
  381. package/dist/cliproxy/config/env-builder.js +700 -0
  382. package/dist/cliproxy/config/env-builder.js.map +1 -0
  383. package/dist/cliproxy/config/extended-context-config.d.ts +32 -0
  384. package/dist/cliproxy/config/extended-context-config.d.ts.map +1 -0
  385. package/dist/cliproxy/config/extended-context-config.js +70 -0
  386. package/dist/cliproxy/config/extended-context-config.js.map +1 -0
  387. package/dist/cliproxy/config/generator.d.ts +74 -0
  388. package/dist/cliproxy/config/generator.d.ts.map +1 -0
  389. package/dist/cliproxy/config/generator.js +728 -0
  390. package/dist/cliproxy/config/generator.js.map +1 -0
  391. package/dist/cliproxy/config/index.d.ts +11 -0
  392. package/dist/cliproxy/config/index.d.ts.map +1 -0
  393. package/dist/cliproxy/config/index.js +27 -0
  394. package/dist/cliproxy/config/index.js.map +1 -0
  395. package/dist/cliproxy/config/path-resolver.d.ts +47 -0
  396. package/dist/cliproxy/config/path-resolver.d.ts.map +1 -0
  397. package/dist/cliproxy/config/path-resolver.js +104 -0
  398. package/dist/cliproxy/config/path-resolver.js.map +1 -0
  399. package/dist/cliproxy/config/port-manager.d.ts +33 -0
  400. package/dist/cliproxy/config/port-manager.d.ts.map +1 -0
  401. package/dist/cliproxy/config/port-manager.js +68 -0
  402. package/dist/cliproxy/config/port-manager.js.map +1 -0
  403. package/dist/cliproxy/config/thinking-config.d.ts +56 -0
  404. package/dist/cliproxy/config/thinking-config.d.ts.map +1 -0
  405. package/dist/cliproxy/config/thinking-config.js +263 -0
  406. package/dist/cliproxy/config/thinking-config.js.map +1 -0
  407. package/dist/cliproxy/config-generator.d.ts +15 -0
  408. package/dist/cliproxy/config-generator.d.ts.map +1 -0
  409. package/dist/cliproxy/config-generator.js +32 -0
  410. package/dist/cliproxy/config-generator.js.map +1 -0
  411. package/dist/cliproxy/device-code-handler.d.ts +28 -0
  412. package/dist/cliproxy/device-code-handler.d.ts.map +1 -0
  413. package/dist/cliproxy/device-code-handler.js +22 -0
  414. package/dist/cliproxy/device-code-handler.js.map +1 -0
  415. package/dist/cliproxy/executor/env-resolver.d.ts +95 -0
  416. package/dist/cliproxy/executor/env-resolver.d.ts.map +1 -0
  417. package/dist/cliproxy/executor/env-resolver.js +307 -0
  418. package/dist/cliproxy/executor/env-resolver.js.map +1 -0
  419. package/dist/cliproxy/executor/index.d.ts +24 -0
  420. package/dist/cliproxy/executor/index.d.ts.map +1 -0
  421. package/dist/cliproxy/executor/index.js +989 -0
  422. package/dist/cliproxy/executor/index.js.map +1 -0
  423. package/dist/cliproxy/executor/lifecycle-manager.d.ts +33 -0
  424. package/dist/cliproxy/executor/lifecycle-manager.d.ts.map +1 -0
  425. package/dist/cliproxy/executor/lifecycle-manager.js +161 -0
  426. package/dist/cliproxy/executor/lifecycle-manager.js.map +1 -0
  427. package/dist/cliproxy/executor/retry-handler.d.ts +38 -0
  428. package/dist/cliproxy/executor/retry-handler.d.ts.map +1 -0
  429. package/dist/cliproxy/executor/retry-handler.js +148 -0
  430. package/dist/cliproxy/executor/retry-handler.js.map +1 -0
  431. package/dist/cliproxy/executor/session-bridge.d.ts +30 -0
  432. package/dist/cliproxy/executor/session-bridge.d.ts.map +1 -0
  433. package/dist/cliproxy/executor/session-bridge.js +236 -0
  434. package/dist/cliproxy/executor/session-bridge.js.map +1 -0
  435. package/dist/cliproxy/executor/thinking-arg-parser.d.ts +27 -0
  436. package/dist/cliproxy/executor/thinking-arg-parser.d.ts.map +1 -0
  437. package/dist/cliproxy/executor/thinking-arg-parser.js +80 -0
  438. package/dist/cliproxy/executor/thinking-arg-parser.js.map +1 -0
  439. package/dist/cliproxy/executor/thinking-override-resolver.d.ts +28 -0
  440. package/dist/cliproxy/executor/thinking-override-resolver.d.ts.map +1 -0
  441. package/dist/cliproxy/executor/thinking-override-resolver.js +109 -0
  442. package/dist/cliproxy/executor/thinking-override-resolver.js.map +1 -0
  443. package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts +10 -0
  444. package/dist/cliproxy/gemini-cli-quota-normalizer.d.ts.map +1 -0
  445. package/dist/cliproxy/gemini-cli-quota-normalizer.js +122 -0
  446. package/dist/cliproxy/gemini-cli-quota-normalizer.js.map +1 -0
  447. package/dist/cliproxy/https-tunnel-proxy.d.ts +44 -0
  448. package/dist/cliproxy/https-tunnel-proxy.d.ts.map +1 -0
  449. package/dist/cliproxy/https-tunnel-proxy.js +224 -0
  450. package/dist/cliproxy/https-tunnel-proxy.js.map +1 -0
  451. package/dist/cliproxy/index.d.ts +48 -0
  452. package/dist/cliproxy/index.d.ts.map +1 -0
  453. package/dist/cliproxy/index.js +183 -0
  454. package/dist/cliproxy/index.js.map +1 -0
  455. package/dist/cliproxy/management-api-client.d.ts +81 -0
  456. package/dist/cliproxy/management-api-client.d.ts.map +1 -0
  457. package/dist/cliproxy/management-api-client.js +381 -0
  458. package/dist/cliproxy/management-api-client.js.map +1 -0
  459. package/dist/cliproxy/management-api-types.d.ts +137 -0
  460. package/dist/cliproxy/management-api-types.d.ts.map +1 -0
  461. package/dist/cliproxy/management-api-types.js +9 -0
  462. package/dist/cliproxy/management-api-types.js.map +1 -0
  463. package/dist/cliproxy/model-catalog.d.ts +131 -0
  464. package/dist/cliproxy/model-catalog.d.ts.map +1 -0
  465. package/dist/cliproxy/model-catalog.js +484 -0
  466. package/dist/cliproxy/model-catalog.js.map +1 -0
  467. package/dist/cliproxy/model-config.d.ts +31 -0
  468. package/dist/cliproxy/model-config.d.ts.map +1 -0
  469. package/dist/cliproxy/model-config.js +271 -0
  470. package/dist/cliproxy/model-config.js.map +1 -0
  471. package/dist/cliproxy/model-id-normalizer.d.ts +105 -0
  472. package/dist/cliproxy/model-id-normalizer.d.ts.map +1 -0
  473. package/dist/cliproxy/model-id-normalizer.js +241 -0
  474. package/dist/cliproxy/model-id-normalizer.js.map +1 -0
  475. package/dist/cliproxy/openai-compat-manager.d.ts +46 -0
  476. package/dist/cliproxy/openai-compat-manager.d.ts.map +1 -0
  477. package/dist/cliproxy/openai-compat-manager.js +191 -0
  478. package/dist/cliproxy/openai-compat-manager.js.map +1 -0
  479. package/dist/cliproxy/platform-detector.d.ts +99 -0
  480. package/dist/cliproxy/platform-detector.d.ts.map +1 -0
  481. package/dist/cliproxy/platform-detector.js +174 -0
  482. package/dist/cliproxy/platform-detector.js.map +1 -0
  483. package/dist/cliproxy/project-selection-handler.d.ts +105 -0
  484. package/dist/cliproxy/project-selection-handler.d.ts.map +1 -0
  485. package/dist/cliproxy/project-selection-handler.js +167 -0
  486. package/dist/cliproxy/project-selection-handler.js.map +1 -0
  487. package/dist/cliproxy/provider-capabilities.d.ts +49 -0
  488. package/dist/cliproxy/provider-capabilities.d.ts.map +1 -0
  489. package/dist/cliproxy/provider-capabilities.js +226 -0
  490. package/dist/cliproxy/provider-capabilities.js.map +1 -0
  491. package/dist/cliproxy/proxy-config-resolver.d.ts +87 -0
  492. package/dist/cliproxy/proxy-config-resolver.d.ts.map +1 -0
  493. package/dist/cliproxy/proxy-config-resolver.js +254 -0
  494. package/dist/cliproxy/proxy-config-resolver.js.map +1 -0
  495. package/dist/cliproxy/proxy-detector.d.ts +72 -0
  496. package/dist/cliproxy/proxy-detector.d.ts.map +1 -0
  497. package/dist/cliproxy/proxy-detector.js +196 -0
  498. package/dist/cliproxy/proxy-detector.js.map +1 -0
  499. package/dist/cliproxy/proxy-target-resolver.d.ts +52 -0
  500. package/dist/cliproxy/proxy-target-resolver.d.ts.map +1 -0
  501. package/dist/cliproxy/proxy-target-resolver.js +108 -0
  502. package/dist/cliproxy/proxy-target-resolver.js.map +1 -0
  503. package/dist/cliproxy/quota-fetcher-claude-normalizer.d.ts +18 -0
  504. package/dist/cliproxy/quota-fetcher-claude-normalizer.d.ts.map +1 -0
  505. package/dist/cliproxy/quota-fetcher-claude-normalizer.js +291 -0
  506. package/dist/cliproxy/quota-fetcher-claude-normalizer.js.map +1 -0
  507. package/dist/cliproxy/quota-fetcher-claude.d.ts +21 -0
  508. package/dist/cliproxy/quota-fetcher-claude.d.ts.map +1 -0
  509. package/dist/cliproxy/quota-fetcher-claude.js +306 -0
  510. package/dist/cliproxy/quota-fetcher-claude.js.map +1 -0
  511. package/dist/cliproxy/quota-fetcher-codex.d.ts +69 -0
  512. package/dist/cliproxy/quota-fetcher-codex.d.ts.map +1 -0
  513. package/dist/cliproxy/quota-fetcher-codex.js +599 -0
  514. package/dist/cliproxy/quota-fetcher-codex.js.map +1 -0
  515. package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts +66 -0
  516. package/dist/cliproxy/quota-fetcher-gemini-cli.d.ts.map +1 -0
  517. package/dist/cliproxy/quota-fetcher-gemini-cli.js +661 -0
  518. package/dist/cliproxy/quota-fetcher-gemini-cli.js.map +1 -0
  519. package/dist/cliproxy/quota-fetcher-ghcp.d.ts +38 -0
  520. package/dist/cliproxy/quota-fetcher-ghcp.d.ts.map +1 -0
  521. package/dist/cliproxy/quota-fetcher-ghcp.js +207 -0
  522. package/dist/cliproxy/quota-fetcher-ghcp.js.map +1 -0
  523. package/dist/cliproxy/quota-fetcher.d.ts +107 -0
  524. package/dist/cliproxy/quota-fetcher.d.ts.map +1 -0
  525. package/dist/cliproxy/quota-fetcher.js +657 -0
  526. package/dist/cliproxy/quota-fetcher.js.map +1 -0
  527. package/dist/cliproxy/quota-manager.d.ts +105 -0
  528. package/dist/cliproxy/quota-manager.d.ts.map +1 -0
  529. package/dist/cliproxy/quota-manager.js +485 -0
  530. package/dist/cliproxy/quota-manager.js.map +1 -0
  531. package/dist/cliproxy/quota-response-cache.d.ts +46 -0
  532. package/dist/cliproxy/quota-response-cache.d.ts.map +1 -0
  533. package/dist/cliproxy/quota-response-cache.js +98 -0
  534. package/dist/cliproxy/quota-response-cache.js.map +1 -0
  535. package/dist/cliproxy/quota-types.d.ts +245 -0
  536. package/dist/cliproxy/quota-types.d.ts.map +1 -0
  537. package/dist/cliproxy/quota-types.js +9 -0
  538. package/dist/cliproxy/quota-types.js.map +1 -0
  539. package/dist/cliproxy/remote-auth-fetcher.d.ts +30 -0
  540. package/dist/cliproxy/remote-auth-fetcher.d.ts.map +1 -0
  541. package/dist/cliproxy/remote-auth-fetcher.js +177 -0
  542. package/dist/cliproxy/remote-auth-fetcher.js.map +1 -0
  543. package/dist/cliproxy/remote-proxy-client.d.ts +52 -0
  544. package/dist/cliproxy/remote-proxy-client.d.ts.map +1 -0
  545. package/dist/cliproxy/remote-proxy-client.js +281 -0
  546. package/dist/cliproxy/remote-proxy-client.js.map +1 -0
  547. package/dist/cliproxy/remote-token-uploader.d.ts +28 -0
  548. package/dist/cliproxy/remote-token-uploader.d.ts.map +1 -0
  549. package/dist/cliproxy/remote-token-uploader.js +178 -0
  550. package/dist/cliproxy/remote-token-uploader.js.map +1 -0
  551. package/dist/cliproxy/schema-sanitizer.d.ts +48 -0
  552. package/dist/cliproxy/schema-sanitizer.d.ts.map +1 -0
  553. package/dist/cliproxy/schema-sanitizer.js +203 -0
  554. package/dist/cliproxy/schema-sanitizer.js.map +1 -0
  555. package/dist/cliproxy/service-manager.d.ts +55 -0
  556. package/dist/cliproxy/service-manager.d.ts.map +1 -0
  557. package/dist/cliproxy/service-manager.js +324 -0
  558. package/dist/cliproxy/service-manager.js.map +1 -0
  559. package/dist/cliproxy/services/binary-service.d.ts +67 -0
  560. package/dist/cliproxy/services/binary-service.d.ts.map +1 -0
  561. package/dist/cliproxy/services/binary-service.js +176 -0
  562. package/dist/cliproxy/services/binary-service.js.map +1 -0
  563. package/dist/cliproxy/services/index.d.ts +8 -0
  564. package/dist/cliproxy/services/index.d.ts.map +1 -0
  565. package/dist/cliproxy/services/index.js +34 -0
  566. package/dist/cliproxy/services/index.js.map +1 -0
  567. package/dist/cliproxy/services/proxy-lifecycle-service.d.ts +50 -0
  568. package/dist/cliproxy/services/proxy-lifecycle-service.d.ts.map +1 -0
  569. package/dist/cliproxy/services/proxy-lifecycle-service.js +50 -0
  570. package/dist/cliproxy/services/proxy-lifecycle-service.js.map +1 -0
  571. package/dist/cliproxy/services/variant-config-adapter.d.ts +32 -0
  572. package/dist/cliproxy/services/variant-config-adapter.d.ts.map +1 -0
  573. package/dist/cliproxy/services/variant-config-adapter.js +269 -0
  574. package/dist/cliproxy/services/variant-config-adapter.js.map +1 -0
  575. package/dist/cliproxy/services/variant-service.d.ts +82 -0
  576. package/dist/cliproxy/services/variant-service.d.ts.map +1 -0
  577. package/dist/cliproxy/services/variant-service.js +399 -0
  578. package/dist/cliproxy/services/variant-service.js.map +1 -0
  579. package/dist/cliproxy/services/variant-settings.d.ts +57 -0
  580. package/dist/cliproxy/services/variant-settings.d.ts.map +1 -0
  581. package/dist/cliproxy/services/variant-settings.js +367 -0
  582. package/dist/cliproxy/services/variant-settings.js.map +1 -0
  583. package/dist/cliproxy/session-tracker.d.ts +105 -0
  584. package/dist/cliproxy/session-tracker.d.ts.map +1 -0
  585. package/dist/cliproxy/session-tracker.js +481 -0
  586. package/dist/cliproxy/session-tracker.js.map +1 -0
  587. package/dist/cliproxy/startup-lock.d.ts +57 -0
  588. package/dist/cliproxy/startup-lock.d.ts.map +1 -0
  589. package/dist/cliproxy/startup-lock.js +216 -0
  590. package/dist/cliproxy/startup-lock.js.map +1 -0
  591. package/dist/cliproxy/stats-fetcher.d.ts +158 -0
  592. package/dist/cliproxy/stats-fetcher.d.ts.map +1 -0
  593. package/dist/cliproxy/stats-fetcher.js +246 -0
  594. package/dist/cliproxy/stats-fetcher.js.map +1 -0
  595. package/dist/cliproxy/stats-transformer.d.ts +7 -0
  596. package/dist/cliproxy/stats-transformer.d.ts.map +1 -0
  597. package/dist/cliproxy/stats-transformer.js +152 -0
  598. package/dist/cliproxy/stats-transformer.js.map +1 -0
  599. package/dist/cliproxy/sync/auto-sync-watcher.d.ts +37 -0
  600. package/dist/cliproxy/sync/auto-sync-watcher.d.ts.map +1 -0
  601. package/dist/cliproxy/sync/auto-sync-watcher.js +211 -0
  602. package/dist/cliproxy/sync/auto-sync-watcher.js.map +1 -0
  603. package/dist/cliproxy/sync/index.d.ts +10 -0
  604. package/dist/cliproxy/sync/index.d.ts.map +1 -0
  605. package/dist/cliproxy/sync/index.js +27 -0
  606. package/dist/cliproxy/sync/index.js.map +1 -0
  607. package/dist/cliproxy/sync/local-config-sync.d.ts +28 -0
  608. package/dist/cliproxy/sync/local-config-sync.d.ts.map +1 -0
  609. package/dist/cliproxy/sync/local-config-sync.js +223 -0
  610. package/dist/cliproxy/sync/local-config-sync.js.map +1 -0
  611. package/dist/cliproxy/sync/profile-mapper.d.ts +55 -0
  612. package/dist/cliproxy/sync/profile-mapper.d.ts.map +1 -0
  613. package/dist/cliproxy/sync/profile-mapper.js +185 -0
  614. package/dist/cliproxy/sync/profile-mapper.js.map +1 -0
  615. package/dist/cliproxy/thinking-validator.d.ts +72 -0
  616. package/dist/cliproxy/thinking-validator.d.ts.map +1 -0
  617. package/dist/cliproxy/thinking-validator.js +359 -0
  618. package/dist/cliproxy/thinking-validator.js.map +1 -0
  619. package/dist/cliproxy/tool-name-mapper.d.ts +103 -0
  620. package/dist/cliproxy/tool-name-mapper.d.ts.map +1 -0
  621. package/dist/cliproxy/tool-name-mapper.js +149 -0
  622. package/dist/cliproxy/tool-name-mapper.js.map +1 -0
  623. package/dist/cliproxy/tool-name-sanitizer.d.ts +65 -0
  624. package/dist/cliproxy/tool-name-sanitizer.d.ts.map +1 -0
  625. package/dist/cliproxy/tool-name-sanitizer.js +118 -0
  626. package/dist/cliproxy/tool-name-sanitizer.js.map +1 -0
  627. package/dist/cliproxy/tool-sanitization-proxy.d.ts +77 -0
  628. package/dist/cliproxy/tool-sanitization-proxy.d.ts.map +1 -0
  629. package/dist/cliproxy/tool-sanitization-proxy.js +643 -0
  630. package/dist/cliproxy/tool-sanitization-proxy.js.map +1 -0
  631. package/dist/cliproxy/types.d.ts +258 -0
  632. package/dist/cliproxy/types.d.ts.map +1 -0
  633. package/dist/cliproxy/types.js +12 -0
  634. package/dist/cliproxy/types.js.map +1 -0
  635. package/dist/commands/api-command/copy-command.d.ts +2 -0
  636. package/dist/commands/api-command/copy-command.d.ts.map +1 -0
  637. package/dist/commands/api-command/copy-command.js +41 -0
  638. package/dist/commands/api-command/copy-command.js.map +1 -0
  639. package/dist/commands/api-command/create-command.d.ts +2 -0
  640. package/dist/commands/api-command/create-command.d.ts.map +1 -0
  641. package/dist/commands/api-command/create-command.js +391 -0
  642. package/dist/commands/api-command/create-command.js.map +1 -0
  643. package/dist/commands/api-command/discover-command.d.ts +2 -0
  644. package/dist/commands/api-command/discover-command.d.ts.map +1 -0
  645. package/dist/commands/api-command/discover-command.js +69 -0
  646. package/dist/commands/api-command/discover-command.js.map +1 -0
  647. package/dist/commands/api-command/export-command.d.ts +13 -0
  648. package/dist/commands/api-command/export-command.d.ts.map +1 -0
  649. package/dist/commands/api-command/export-command.js +81 -0
  650. package/dist/commands/api-command/export-command.js.map +1 -0
  651. package/dist/commands/api-command/handler.d.ts +21 -0
  652. package/dist/commands/api-command/handler.d.ts.map +1 -0
  653. package/dist/commands/api-command/handler.js +33 -0
  654. package/dist/commands/api-command/handler.js.map +1 -0
  655. package/dist/commands/api-command/help.d.ts +5 -0
  656. package/dist/commands/api-command/help.d.ts.map +1 -0
  657. package/dist/commands/api-command/help.js +115 -0
  658. package/dist/commands/api-command/help.js.map +1 -0
  659. package/dist/commands/api-command/import-command.d.ts +2 -0
  660. package/dist/commands/api-command/import-command.d.ts.map +1 -0
  661. package/dist/commands/api-command/import-command.js +111 -0
  662. package/dist/commands/api-command/import-command.js.map +1 -0
  663. package/dist/commands/api-command/index.d.ts +4 -0
  664. package/dist/commands/api-command/index.d.ts.map +1 -0
  665. package/dist/commands/api-command/index.js +32 -0
  666. package/dist/commands/api-command/index.js.map +1 -0
  667. package/dist/commands/api-command/list-command.d.ts +2 -0
  668. package/dist/commands/api-command/list-command.d.ts.map +1 -0
  669. package/dist/commands/api-command/list-command.js +53 -0
  670. package/dist/commands/api-command/list-command.js.map +1 -0
  671. package/dist/commands/api-command/remove-command.d.ts +2 -0
  672. package/dist/commands/api-command/remove-command.d.ts.map +1 -0
  673. package/dist/commands/api-command/remove-command.js +63 -0
  674. package/dist/commands/api-command/remove-command.js.map +1 -0
  675. package/dist/commands/api-command/shared.d.ts +42 -0
  676. package/dist/commands/api-command/shared.d.ts.map +1 -0
  677. package/dist/commands/api-command/shared.js +207 -0
  678. package/dist/commands/api-command/shared.js.map +1 -0
  679. package/dist/commands/arg-extractor.d.ts +44 -0
  680. package/dist/commands/arg-extractor.d.ts.map +1 -0
  681. package/dist/commands/arg-extractor.js +127 -0
  682. package/dist/commands/arg-extractor.js.map +1 -0
  683. package/dist/commands/cleanup-command.d.ts +12 -0
  684. package/dist/commands/cleanup-command.d.ts.map +1 -0
  685. package/dist/commands/cleanup-command.js +350 -0
  686. package/dist/commands/cleanup-command.js.map +1 -0
  687. package/dist/commands/cliproxy/auth-subcommand.d.ts +10 -0
  688. package/dist/commands/cliproxy/auth-subcommand.d.ts.map +1 -0
  689. package/dist/commands/cliproxy/auth-subcommand.js +59 -0
  690. package/dist/commands/cliproxy/auth-subcommand.js.map +1 -0
  691. package/dist/commands/cliproxy/catalog-subcommand.d.ts +7 -0
  692. package/dist/commands/cliproxy/catalog-subcommand.d.ts.map +1 -0
  693. package/dist/commands/cliproxy/catalog-subcommand.js +123 -0
  694. package/dist/commands/cliproxy/catalog-subcommand.js.map +1 -0
  695. package/dist/commands/cliproxy/help-subcommand.d.ts +8 -0
  696. package/dist/commands/cliproxy/help-subcommand.d.ts.map +1 -0
  697. package/dist/commands/cliproxy/help-subcommand.js +101 -0
  698. package/dist/commands/cliproxy/help-subcommand.js.map +1 -0
  699. package/dist/commands/cliproxy/index.d.ts +24 -0
  700. package/dist/commands/cliproxy/index.d.ts.map +1 -0
  701. package/dist/commands/cliproxy/index.js +171 -0
  702. package/dist/commands/cliproxy/index.js.map +1 -0
  703. package/dist/commands/cliproxy/install-subcommand.d.ts +14 -0
  704. package/dist/commands/cliproxy/install-subcommand.d.ts.map +1 -0
  705. package/dist/commands/cliproxy/install-subcommand.js +112 -0
  706. package/dist/commands/cliproxy/install-subcommand.js.map +1 -0
  707. package/dist/commands/cliproxy/proxy-lifecycle-subcommand.d.ts +14 -0
  708. package/dist/commands/cliproxy/proxy-lifecycle-subcommand.d.ts.map +1 -0
  709. package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js +130 -0
  710. package/dist/commands/cliproxy/proxy-lifecycle-subcommand.js.map +1 -0
  711. package/dist/commands/cliproxy/quota-subcommand.d.ts +29 -0
  712. package/dist/commands/cliproxy/quota-subcommand.d.ts.map +1 -0
  713. package/dist/commands/cliproxy/quota-subcommand.js +799 -0
  714. package/dist/commands/cliproxy/quota-subcommand.js.map +1 -0
  715. package/dist/commands/cliproxy/resolve-lifecycle-port.d.ts +9 -0
  716. package/dist/commands/cliproxy/resolve-lifecycle-port.d.ts.map +1 -0
  717. package/dist/commands/cliproxy/resolve-lifecycle-port.js +14 -0
  718. package/dist/commands/cliproxy/resolve-lifecycle-port.js.map +1 -0
  719. package/dist/commands/cliproxy/variant-subcommand.d.ts +27 -0
  720. package/dist/commands/cliproxy/variant-subcommand.d.ts.map +1 -0
  721. package/dist/commands/cliproxy/variant-subcommand.js +740 -0
  722. package/dist/commands/cliproxy/variant-subcommand.js.map +1 -0
  723. package/dist/commands/cliproxy-command.d.ts +10 -0
  724. package/dist/commands/cliproxy-command.d.ts.map +1 -0
  725. package/dist/commands/cliproxy-command.js +14 -0
  726. package/dist/commands/cliproxy-command.js.map +1 -0
  727. package/dist/commands/cliproxy-sync-handler.d.ts +19 -0
  728. package/dist/commands/cliproxy-sync-handler.d.ts.map +1 -0
  729. package/dist/commands/cliproxy-sync-handler.js +99 -0
  730. package/dist/commands/cliproxy-sync-handler.js.map +1 -0
  731. package/dist/commands/command-catalog.d.ts +39 -0
  732. package/dist/commands/command-catalog.d.ts.map +1 -0
  733. package/dist/commands/command-catalog.js +298 -0
  734. package/dist/commands/command-catalog.js.map +1 -0
  735. package/dist/commands/command-execution-contract.d.ts +23 -0
  736. package/dist/commands/command-execution-contract.d.ts.map +1 -0
  737. package/dist/commands/command-execution-contract.js +21 -0
  738. package/dist/commands/command-execution-contract.js.map +1 -0
  739. package/dist/commands/completion-backend.d.ts +14 -0
  740. package/dist/commands/completion-backend.d.ts.map +1 -0
  741. package/dist/commands/completion-backend.js +208 -0
  742. package/dist/commands/completion-backend.js.map +1 -0
  743. package/dist/commands/config-auth/disable-command.d.ts +10 -0
  744. package/dist/commands/config-auth/disable-command.d.ts.map +1 -0
  745. package/dist/commands/config-auth/disable-command.js +64 -0
  746. package/dist/commands/config-auth/disable-command.js.map +1 -0
  747. package/dist/commands/config-auth/index.d.ts +14 -0
  748. package/dist/commands/config-auth/index.d.ts.map +1 -0
  749. package/dist/commands/config-auth/index.js +100 -0
  750. package/dist/commands/config-auth/index.js.map +1 -0
  751. package/dist/commands/config-auth/setup-command.d.ts +13 -0
  752. package/dist/commands/config-auth/setup-command.d.ts.map +1 -0
  753. package/dist/commands/config-auth/setup-command.js +119 -0
  754. package/dist/commands/config-auth/setup-command.js.map +1 -0
  755. package/dist/commands/config-auth/show-command.d.ts +10 -0
  756. package/dist/commands/config-auth/show-command.d.ts.map +1 -0
  757. package/dist/commands/config-auth/show-command.js +79 -0
  758. package/dist/commands/config-auth/show-command.js.map +1 -0
  759. package/dist/commands/config-auth/types.d.ts +25 -0
  760. package/dist/commands/config-auth/types.d.ts.map +1 -0
  761. package/dist/commands/config-auth/types.js +8 -0
  762. package/dist/commands/config-auth/types.js.map +1 -0
  763. package/dist/commands/config-channels-command.d.ts +24 -0
  764. package/dist/commands/config-channels-command.d.ts.map +1 -0
  765. package/dist/commands/config-channels-command.js +359 -0
  766. package/dist/commands/config-channels-command.js.map +1 -0
  767. package/dist/commands/config-command-options.d.ts +14 -0
  768. package/dist/commands/config-command-options.d.ts.map +1 -0
  769. package/dist/commands/config-command-options.js +123 -0
  770. package/dist/commands/config-command-options.js.map +1 -0
  771. package/dist/commands/config-command.d.ts +37 -0
  772. package/dist/commands/config-command.d.ts.map +1 -0
  773. package/dist/commands/config-command.js +218 -0
  774. package/dist/commands/config-command.js.map +1 -0
  775. package/dist/commands/config-dashboard-host.d.ts +17 -0
  776. package/dist/commands/config-dashboard-host.d.ts.map +1 -0
  777. package/dist/commands/config-dashboard-host.js +99 -0
  778. package/dist/commands/config-dashboard-host.js.map +1 -0
  779. package/dist/commands/config-image-analysis-command.d.ts +8 -0
  780. package/dist/commands/config-image-analysis-command.d.ts.map +1 -0
  781. package/dist/commands/config-image-analysis-command.js +270 -0
  782. package/dist/commands/config-image-analysis-command.js.map +1 -0
  783. package/dist/commands/config-thinking-command.d.ts +9 -0
  784. package/dist/commands/config-thinking-command.d.ts.map +1 -0
  785. package/dist/commands/config-thinking-command.js +237 -0
  786. package/dist/commands/config-thinking-command.js.map +1 -0
  787. package/dist/commands/config-thinking-parser.d.ts +37 -0
  788. package/dist/commands/config-thinking-parser.d.ts.map +1 -0
  789. package/dist/commands/config-thinking-parser.js +135 -0
  790. package/dist/commands/config-thinking-parser.js.map +1 -0
  791. package/dist/commands/copilot-command.d.ts +10 -0
  792. package/dist/commands/copilot-command.d.ts.map +1 -0
  793. package/dist/commands/copilot-command.js +334 -0
  794. package/dist/commands/copilot-command.js.map +1 -0
  795. package/dist/commands/cursor-command-display.d.ts +6 -0
  796. package/dist/commands/cursor-command-display.d.ts.map +1 -0
  797. package/dist/commands/cursor-command-display.js +120 -0
  798. package/dist/commands/cursor-command-display.js.map +1 -0
  799. package/dist/commands/cursor-command.d.ts +10 -0
  800. package/dist/commands/cursor-command.d.ts.map +1 -0
  801. package/dist/commands/cursor-command.js +210 -0
  802. package/dist/commands/cursor-command.js.map +1 -0
  803. package/dist/commands/docker/config-subcommand.d.ts +2 -0
  804. package/dist/commands/docker/config-subcommand.d.ts.map +1 -0
  805. package/dist/commands/docker/config-subcommand.js +53 -0
  806. package/dist/commands/docker/config-subcommand.js.map +1 -0
  807. package/dist/commands/docker/down-subcommand.d.ts +2 -0
  808. package/dist/commands/docker/down-subcommand.d.ts.map +1 -0
  809. package/dist/commands/docker/down-subcommand.js +37 -0
  810. package/dist/commands/docker/down-subcommand.js.map +1 -0
  811. package/dist/commands/docker/help-subcommand.d.ts +2 -0
  812. package/dist/commands/docker/help-subcommand.d.ts.map +1 -0
  813. package/dist/commands/docker/help-subcommand.js +65 -0
  814. package/dist/commands/docker/help-subcommand.js.map +1 -0
  815. package/dist/commands/docker/index.d.ts +2 -0
  816. package/dist/commands/docker/index.d.ts.map +1 -0
  817. package/dist/commands/docker/index.js +58 -0
  818. package/dist/commands/docker/index.js.map +1 -0
  819. package/dist/commands/docker/logs-subcommand.d.ts +2 -0
  820. package/dist/commands/docker/logs-subcommand.d.ts.map +1 -0
  821. package/dist/commands/docker/logs-subcommand.js +50 -0
  822. package/dist/commands/docker/logs-subcommand.js.map +1 -0
  823. package/dist/commands/docker/options.d.ts +23 -0
  824. package/dist/commands/docker/options.d.ts.map +1 -0
  825. package/dist/commands/docker/options.js +101 -0
  826. package/dist/commands/docker/options.js.map +1 -0
  827. package/dist/commands/docker/status-subcommand.d.ts +2 -0
  828. package/dist/commands/docker/status-subcommand.d.ts.map +1 -0
  829. package/dist/commands/docker/status-subcommand.js +54 -0
  830. package/dist/commands/docker/status-subcommand.js.map +1 -0
  831. package/dist/commands/docker/up-subcommand.d.ts +2 -0
  832. package/dist/commands/docker/up-subcommand.d.ts.map +1 -0
  833. package/dist/commands/docker/up-subcommand.js +45 -0
  834. package/dist/commands/docker/up-subcommand.js.map +1 -0
  835. package/dist/commands/docker/update-subcommand.d.ts +2 -0
  836. package/dist/commands/docker/update-subcommand.d.ts.map +1 -0
  837. package/dist/commands/docker/update-subcommand.js +37 -0
  838. package/dist/commands/docker/update-subcommand.js.map +1 -0
  839. package/dist/commands/docker-command.d.ts +2 -0
  840. package/dist/commands/docker-command.d.ts.map +1 -0
  841. package/dist/commands/docker-command.js +6 -0
  842. package/dist/commands/docker-command.js.map +1 -0
  843. package/dist/commands/doctor-command.d.ts +11 -0
  844. package/dist/commands/doctor-command.d.ts.map +1 -0
  845. package/dist/commands/doctor-command.js +92 -0
  846. package/dist/commands/doctor-command.js.map +1 -0
  847. package/dist/commands/env-command.d.ts +26 -0
  848. package/dist/commands/env-command.d.ts.map +1 -0
  849. package/dist/commands/env-command.js +228 -0
  850. package/dist/commands/env-command.js.map +1 -0
  851. package/dist/commands/help-command.d.ts +8 -0
  852. package/dist/commands/help-command.d.ts.map +1 -0
  853. package/dist/commands/help-command.js +199 -0
  854. package/dist/commands/help-command.js.map +1 -0
  855. package/dist/commands/index.d.ts +19 -0
  856. package/dist/commands/index.d.ts.map +1 -0
  857. package/dist/commands/index.js +37 -0
  858. package/dist/commands/index.js.map +1 -0
  859. package/dist/commands/install-command.d.ts +14 -0
  860. package/dist/commands/install-command.d.ts.map +1 -0
  861. package/dist/commands/install-command.js +81 -0
  862. package/dist/commands/install-command.js.map +1 -0
  863. package/dist/commands/migrate-command.d.ts +17 -0
  864. package/dist/commands/migrate-command.d.ts.map +1 -0
  865. package/dist/commands/migrate-command.js +139 -0
  866. package/dist/commands/migrate-command.js.map +1 -0
  867. package/dist/commands/named-command-router.d.ts +17 -0
  868. package/dist/commands/named-command-router.d.ts.map +1 -0
  869. package/dist/commands/named-command-router.js +39 -0
  870. package/dist/commands/named-command-router.js.map +1 -0
  871. package/dist/commands/persist-command.d.ts +12 -0
  872. package/dist/commands/persist-command.d.ts.map +1 -0
  873. package/dist/commands/persist-command.js +874 -0
  874. package/dist/commands/persist-command.js.map +1 -0
  875. package/dist/commands/root-command-router.d.ts +4 -0
  876. package/dist/commands/root-command-router.d.ts.map +1 -0
  877. package/dist/commands/root-command-router.js +216 -0
  878. package/dist/commands/root-command-router.js.map +1 -0
  879. package/dist/commands/setup-command.d.ts +29 -0
  880. package/dist/commands/setup-command.d.ts.map +1 -0
  881. package/dist/commands/setup-command.js +428 -0
  882. package/dist/commands/setup-command.js.map +1 -0
  883. package/dist/commands/shell-completion-command.d.ts +31 -0
  884. package/dist/commands/shell-completion-command.d.ts.map +1 -0
  885. package/dist/commands/shell-completion-command.js +121 -0
  886. package/dist/commands/shell-completion-command.js.map +1 -0
  887. package/dist/commands/sync-command.d.ts +10 -0
  888. package/dist/commands/sync-command.d.ts.map +1 -0
  889. package/dist/commands/sync-command.js +92 -0
  890. package/dist/commands/sync-command.js.map +1 -0
  891. package/dist/commands/tokens-command.d.ts +19 -0
  892. package/dist/commands/tokens-command.d.ts.map +1 -0
  893. package/dist/commands/tokens-command.js +173 -0
  894. package/dist/commands/tokens-command.js.map +1 -0
  895. package/dist/commands/update-command.d.ts +19 -0
  896. package/dist/commands/update-command.d.ts.map +1 -0
  897. package/dist/commands/update-command.js +290 -0
  898. package/dist/commands/update-command.js.map +1 -0
  899. package/dist/commands/version-command.d.ts +10 -0
  900. package/dist/commands/version-command.d.ts.map +1 -0
  901. package/dist/commands/version-command.js +103 -0
  902. package/dist/commands/version-command.js.map +1 -0
  903. package/dist/config/feature-flags.d.ts +19 -0
  904. package/dist/config/feature-flags.d.ts.map +1 -0
  905. package/dist/config/feature-flags.js +31 -0
  906. package/dist/config/feature-flags.js.map +1 -0
  907. package/dist/config/index.d.ts +11 -0
  908. package/dist/config/index.d.ts.map +1 -0
  909. package/dist/config/index.js +32 -0
  910. package/dist/config/index.js.map +1 -0
  911. package/dist/config/migration-manager.d.ts +76 -0
  912. package/dist/config/migration-manager.d.ts.map +1 -0
  913. package/dist/config/migration-manager.js +549 -0
  914. package/dist/config/migration-manager.js.map +1 -0
  915. package/dist/config/reserved-names.d.ts +31 -0
  916. package/dist/config/reserved-names.d.ts.map +1 -0
  917. package/dist/config/reserved-names.js +82 -0
  918. package/dist/config/reserved-names.js.map +1 -0
  919. package/dist/config/unified-config-loader.d.ts +163 -0
  920. package/dist/config/unified-config-loader.d.ts.map +1 -0
  921. package/dist/config/unified-config-loader.js +1093 -0
  922. package/dist/config/unified-config-loader.js.map +1 -0
  923. package/dist/config/unified-config-types.d.ts +733 -0
  924. package/dist/config/unified-config-types.d.ts.map +1 -0
  925. package/dist/config/unified-config-types.js +280 -0
  926. package/dist/config/unified-config-types.js.map +1 -0
  927. package/dist/copilot/constants.d.ts +11 -0
  928. package/dist/copilot/constants.d.ts.map +1 -0
  929. package/dist/copilot/constants.js +46 -0
  930. package/dist/copilot/constants.js.map +1 -0
  931. package/dist/copilot/copilot-auth.d.ts +52 -0
  932. package/dist/copilot/copilot-auth.d.ts.map +1 -0
  933. package/dist/copilot/copilot-auth.js +201 -0
  934. package/dist/copilot/copilot-auth.js.map +1 -0
  935. package/dist/copilot/copilot-daemon.d.ts +36 -0
  936. package/dist/copilot/copilot-daemon.d.ts.map +1 -0
  937. package/dist/copilot/copilot-daemon.js +355 -0
  938. package/dist/copilot/copilot-daemon.js.map +1 -0
  939. package/dist/copilot/copilot-executor.d.ts +41 -0
  940. package/dist/copilot/copilot-executor.d.ts.map +1 -0
  941. package/dist/copilot/copilot-executor.js +261 -0
  942. package/dist/copilot/copilot-executor.js.map +1 -0
  943. package/dist/copilot/copilot-model-normalizer.d.ts +30 -0
  944. package/dist/copilot/copilot-model-normalizer.d.ts.map +1 -0
  945. package/dist/copilot/copilot-model-normalizer.js +159 -0
  946. package/dist/copilot/copilot-model-normalizer.js.map +1 -0
  947. package/dist/copilot/copilot-models.d.ts +34 -0
  948. package/dist/copilot/copilot-models.d.ts.map +1 -0
  949. package/dist/copilot/copilot-models.js +294 -0
  950. package/dist/copilot/copilot-models.js.map +1 -0
  951. package/dist/copilot/copilot-package-manager.d.ts +93 -0
  952. package/dist/copilot/copilot-package-manager.d.ts.map +1 -0
  953. package/dist/copilot/copilot-package-manager.js +488 -0
  954. package/dist/copilot/copilot-package-manager.js.map +1 -0
  955. package/dist/copilot/copilot-usage.d.ts +16 -0
  956. package/dist/copilot/copilot-usage.d.ts.map +1 -0
  957. package/dist/copilot/copilot-usage.js +117 -0
  958. package/dist/copilot/copilot-usage.js.map +1 -0
  959. package/dist/copilot/index.d.ts +15 -0
  960. package/dist/copilot/index.d.ts.map +1 -0
  961. package/dist/copilot/index.js +76 -0
  962. package/dist/copilot/index.js.map +1 -0
  963. package/dist/copilot/types.d.ts +106 -0
  964. package/dist/copilot/types.d.ts.map +1 -0
  965. package/dist/copilot/types.js +8 -0
  966. package/dist/copilot/types.js.map +1 -0
  967. package/dist/cursor/constants.d.ts +3 -0
  968. package/dist/cursor/constants.d.ts.map +1 -0
  969. package/dist/cursor/constants.js +20 -0
  970. package/dist/cursor/constants.js.map +1 -0
  971. package/dist/cursor/cursor-anthropic-response.d.ts +6 -0
  972. package/dist/cursor/cursor-anthropic-response.d.ts.map +1 -0
  973. package/dist/cursor/cursor-anthropic-response.js +190 -0
  974. package/dist/cursor/cursor-anthropic-response.js.map +1 -0
  975. package/dist/cursor/cursor-anthropic-translator.d.ts +11 -0
  976. package/dist/cursor/cursor-anthropic-translator.d.ts.map +1 -0
  977. package/dist/cursor/cursor-anthropic-translator.js +167 -0
  978. package/dist/cursor/cursor-anthropic-translator.js.map +1 -0
  979. package/dist/cursor/cursor-anthropic-types.d.ts +46 -0
  980. package/dist/cursor/cursor-anthropic-types.d.ts.map +1 -0
  981. package/dist/cursor/cursor-anthropic-types.js +3 -0
  982. package/dist/cursor/cursor-anthropic-types.js.map +1 -0
  983. package/dist/cursor/cursor-auth.d.ts +58 -0
  984. package/dist/cursor/cursor-auth.d.ts.map +1 -0
  985. package/dist/cursor/cursor-auth.js +305 -0
  986. package/dist/cursor/cursor-auth.js.map +1 -0
  987. package/dist/cursor/cursor-client-policy.d.ts +16 -0
  988. package/dist/cursor/cursor-client-policy.d.ts.map +1 -0
  989. package/dist/cursor/cursor-client-policy.js +137 -0
  990. package/dist/cursor/cursor-client-policy.js.map +1 -0
  991. package/dist/cursor/cursor-daemon-entry.d.ts +14 -0
  992. package/dist/cursor/cursor-daemon-entry.d.ts.map +1 -0
  993. package/dist/cursor/cursor-daemon-entry.js +305 -0
  994. package/dist/cursor/cursor-daemon-entry.js.map +1 -0
  995. package/dist/cursor/cursor-daemon-pid.d.ts +4 -0
  996. package/dist/cursor/cursor-daemon-pid.d.ts.map +1 -0
  997. package/dist/cursor/cursor-daemon-pid.js +77 -0
  998. package/dist/cursor/cursor-daemon-pid.js.map +1 -0
  999. package/dist/cursor/cursor-daemon.d.ts +36 -0
  1000. package/dist/cursor/cursor-daemon.d.ts.map +1 -0
  1001. package/dist/cursor/cursor-daemon.js +315 -0
  1002. package/dist/cursor/cursor-daemon.js.map +1 -0
  1003. package/dist/cursor/cursor-default-models.d.ts +21 -0
  1004. package/dist/cursor/cursor-default-models.d.ts.map +1 -0
  1005. package/dist/cursor/cursor-default-models.js +173 -0
  1006. package/dist/cursor/cursor-default-models.js.map +1 -0
  1007. package/dist/cursor/cursor-executor.d.ts +79 -0
  1008. package/dist/cursor/cursor-executor.d.ts.map +1 -0
  1009. package/dist/cursor/cursor-executor.js +802 -0
  1010. package/dist/cursor/cursor-executor.js.map +1 -0
  1011. package/dist/cursor/cursor-models.d.ts +40 -0
  1012. package/dist/cursor/cursor-models.d.ts.map +1 -0
  1013. package/dist/cursor/cursor-models.js +313 -0
  1014. package/dist/cursor/cursor-models.js.map +1 -0
  1015. package/dist/cursor/cursor-profile-executor.d.ts +10 -0
  1016. package/dist/cursor/cursor-profile-executor.d.ts.map +1 -0
  1017. package/dist/cursor/cursor-profile-executor.js +158 -0
  1018. package/dist/cursor/cursor-profile-executor.js.map +1 -0
  1019. package/dist/cursor/cursor-protobuf-decoder.d.ts +52 -0
  1020. package/dist/cursor/cursor-protobuf-decoder.d.ts.map +1 -0
  1021. package/dist/cursor/cursor-protobuf-decoder.js +314 -0
  1022. package/dist/cursor/cursor-protobuf-decoder.js.map +1 -0
  1023. package/dist/cursor/cursor-protobuf-encoder.d.ts +54 -0
  1024. package/dist/cursor/cursor-protobuf-encoder.d.ts.map +1 -0
  1025. package/dist/cursor/cursor-protobuf-encoder.js +173 -0
  1026. package/dist/cursor/cursor-protobuf-encoder.js.map +1 -0
  1027. package/dist/cursor/cursor-protobuf-schema.d.ts +215 -0
  1028. package/dist/cursor/cursor-protobuf-schema.d.ts.map +1 -0
  1029. package/dist/cursor/cursor-protobuf-schema.js +120 -0
  1030. package/dist/cursor/cursor-protobuf-schema.js.map +1 -0
  1031. package/dist/cursor/cursor-protobuf.d.ts +21 -0
  1032. package/dist/cursor/cursor-protobuf.d.ts.map +1 -0
  1033. package/dist/cursor/cursor-protobuf.js +116 -0
  1034. package/dist/cursor/cursor-protobuf.js.map +1 -0
  1035. package/dist/cursor/cursor-stream-parser.d.ts +52 -0
  1036. package/dist/cursor/cursor-stream-parser.d.ts.map +1 -0
  1037. package/dist/cursor/cursor-stream-parser.js +142 -0
  1038. package/dist/cursor/cursor-stream-parser.js.map +1 -0
  1039. package/dist/cursor/cursor-translator.d.ts +50 -0
  1040. package/dist/cursor/cursor-translator.d.ts.map +1 -0
  1041. package/dist/cursor/cursor-translator.js +297 -0
  1042. package/dist/cursor/cursor-translator.js.map +1 -0
  1043. package/dist/cursor/daemon-process-ownership.d.ts +4 -0
  1044. package/dist/cursor/daemon-process-ownership.d.ts.map +1 -0
  1045. package/dist/cursor/daemon-process-ownership.js +112 -0
  1046. package/dist/cursor/daemon-process-ownership.js.map +1 -0
  1047. package/dist/cursor/index.d.ts +12 -0
  1048. package/dist/cursor/index.d.ts.map +1 -0
  1049. package/dist/cursor/index.js +61 -0
  1050. package/dist/cursor/index.js.map +1 -0
  1051. package/dist/cursor/types.d.ts +80 -0
  1052. package/dist/cursor/types.d.ts.map +1 -0
  1053. package/dist/cursor/types.js +8 -0
  1054. package/dist/cursor/types.js.map +1 -0
  1055. package/dist/delegation/delegation-handler.d.ts +65 -0
  1056. package/dist/delegation/delegation-handler.d.ts.map +1 -0
  1057. package/dist/delegation/delegation-handler.js +282 -0
  1058. package/dist/delegation/delegation-handler.js.map +1 -0
  1059. package/dist/delegation/executor/index.d.ts +7 -0
  1060. package/dist/delegation/executor/index.d.ts.map +1 -0
  1061. package/dist/delegation/executor/index.js +28 -0
  1062. package/dist/delegation/executor/index.js.map +1 -0
  1063. package/dist/delegation/executor/result-aggregator.d.ts +31 -0
  1064. package/dist/delegation/executor/result-aggregator.d.ts.map +1 -0
  1065. package/dist/delegation/executor/result-aggregator.js +86 -0
  1066. package/dist/delegation/executor/result-aggregator.js.map +1 -0
  1067. package/dist/delegation/executor/stream-parser.d.ts +28 -0
  1068. package/dist/delegation/executor/stream-parser.d.ts.map +1 -0
  1069. package/dist/delegation/executor/stream-parser.js +140 -0
  1070. package/dist/delegation/executor/stream-parser.js.map +1 -0
  1071. package/dist/delegation/executor/types.d.ts +131 -0
  1072. package/dist/delegation/executor/types.d.ts.map +1 -0
  1073. package/dist/delegation/executor/types.js +6 -0
  1074. package/dist/delegation/executor/types.js.map +1 -0
  1075. package/dist/delegation/headless-executor.d.ts +37 -0
  1076. package/dist/delegation/headless-executor.d.ts.map +1 -0
  1077. package/dist/delegation/headless-executor.js +539 -0
  1078. package/dist/delegation/headless-executor.js.map +1 -0
  1079. package/dist/delegation/index.d.ts +11 -0
  1080. package/dist/delegation/index.d.ts.map +1 -0
  1081. package/dist/delegation/index.js +33 -0
  1082. package/dist/delegation/index.js.map +1 -0
  1083. package/dist/delegation/result-formatter.d.ts +56 -0
  1084. package/dist/delegation/result-formatter.d.ts.map +1 -0
  1085. package/dist/delegation/result-formatter.js +341 -0
  1086. package/dist/delegation/result-formatter.js.map +1 -0
  1087. package/dist/delegation/session-manager.d.ts +58 -0
  1088. package/dist/delegation/session-manager.d.ts.map +1 -0
  1089. package/dist/delegation/session-manager.js +153 -0
  1090. package/dist/delegation/session-manager.js.map +1 -0
  1091. package/dist/delegation/settings-parser.d.ts +31 -0
  1092. package/dist/delegation/settings-parser.d.ts.map +1 -0
  1093. package/dist/delegation/settings-parser.js +107 -0
  1094. package/dist/delegation/settings-parser.js.map +1 -0
  1095. package/dist/docker/docker-assets.d.ts +25 -0
  1096. package/dist/docker/docker-assets.d.ts.map +1 -0
  1097. package/dist/docker/docker-assets.js +106 -0
  1098. package/dist/docker/docker-assets.js.map +1 -0
  1099. package/dist/docker/docker-bootstrap.d.ts +2 -0
  1100. package/dist/docker/docker-bootstrap.d.ts.map +1 -0
  1101. package/dist/docker/docker-bootstrap.js +69 -0
  1102. package/dist/docker/docker-bootstrap.js.map +1 -0
  1103. package/dist/docker/docker-executor.d.ts +42 -0
  1104. package/dist/docker/docker-executor.d.ts.map +1 -0
  1105. package/dist/docker/docker-executor.js +262 -0
  1106. package/dist/docker/docker-executor.js.map +1 -0
  1107. package/dist/docker/docker-types.d.ts +39 -0
  1108. package/dist/docker/docker-types.d.ts.map +1 -0
  1109. package/dist/docker/docker-types.js +3 -0
  1110. package/dist/docker/docker-types.js.map +1 -0
  1111. package/dist/docker/index.d.ts +4 -0
  1112. package/dist/docker/index.d.ts.map +1 -0
  1113. package/dist/docker/index.js +12 -0
  1114. package/dist/docker/index.js.map +1 -0
  1115. package/dist/errors/cleanup-registry.d.ts +64 -0
  1116. package/dist/errors/cleanup-registry.d.ts.map +1 -0
  1117. package/dist/errors/cleanup-registry.js +141 -0
  1118. package/dist/errors/cleanup-registry.js.map +1 -0
  1119. package/dist/errors/error-handler.d.ts +45 -0
  1120. package/dist/errors/error-handler.d.ts.map +1 -0
  1121. package/dist/errors/error-handler.js +150 -0
  1122. package/dist/errors/error-handler.js.map +1 -0
  1123. package/dist/errors/error-types.d.ts +110 -0
  1124. package/dist/errors/error-types.d.ts.map +1 -0
  1125. package/dist/errors/error-types.js +170 -0
  1126. package/dist/errors/error-types.js.map +1 -0
  1127. package/dist/errors/exit-codes.d.ts +49 -0
  1128. package/dist/errors/exit-codes.d.ts.map +1 -0
  1129. package/dist/errors/exit-codes.js +72 -0
  1130. package/dist/errors/exit-codes.js.map +1 -0
  1131. package/dist/errors/index.d.ts +29 -0
  1132. package/dist/errors/index.d.ts.map +1 -0
  1133. package/dist/errors/index.js +62 -0
  1134. package/dist/errors/index.js.map +1 -0
  1135. package/dist/glmt/delta-accumulator.d.ts +210 -0
  1136. package/dist/glmt/delta-accumulator.d.ts.map +1 -0
  1137. package/dist/glmt/delta-accumulator.js +351 -0
  1138. package/dist/glmt/delta-accumulator.js.map +1 -0
  1139. package/dist/glmt/glmt-proxy.d.ts +108 -0
  1140. package/dist/glmt/glmt-proxy.d.ts.map +1 -0
  1141. package/dist/glmt/glmt-proxy.js +666 -0
  1142. package/dist/glmt/glmt-proxy.js.map +1 -0
  1143. package/dist/glmt/glmt-transformer.d.ts +47 -0
  1144. package/dist/glmt/glmt-transformer.d.ts.map +1 -0
  1145. package/dist/glmt/glmt-transformer.js +197 -0
  1146. package/dist/glmt/glmt-transformer.js.map +1 -0
  1147. package/dist/glmt/index.d.ts +14 -0
  1148. package/dist/glmt/index.d.ts.map +1 -0
  1149. package/dist/glmt/index.js +41 -0
  1150. package/dist/glmt/index.js.map +1 -0
  1151. package/dist/glmt/locale-enforcer.d.ts +38 -0
  1152. package/dist/glmt/locale-enforcer.d.ts.map +1 -0
  1153. package/dist/glmt/locale-enforcer.js +69 -0
  1154. package/dist/glmt/locale-enforcer.js.map +1 -0
  1155. package/dist/glmt/pipeline/content-transformer.d.ts +39 -0
  1156. package/dist/glmt/pipeline/content-transformer.d.ts.map +1 -0
  1157. package/dist/glmt/pipeline/content-transformer.js +162 -0
  1158. package/dist/glmt/pipeline/content-transformer.js.map +1 -0
  1159. package/dist/glmt/pipeline/index.d.ts +12 -0
  1160. package/dist/glmt/pipeline/index.d.ts.map +1 -0
  1161. package/dist/glmt/pipeline/index.js +20 -0
  1162. package/dist/glmt/pipeline/index.js.map +1 -0
  1163. package/dist/glmt/pipeline/request-transformer.d.ts +31 -0
  1164. package/dist/glmt/pipeline/request-transformer.d.ts.map +1 -0
  1165. package/dist/glmt/pipeline/request-transformer.js +116 -0
  1166. package/dist/glmt/pipeline/request-transformer.js.map +1 -0
  1167. package/dist/glmt/pipeline/response-builder.d.ts +52 -0
  1168. package/dist/glmt/pipeline/response-builder.d.ts.map +1 -0
  1169. package/dist/glmt/pipeline/response-builder.js +205 -0
  1170. package/dist/glmt/pipeline/response-builder.js.map +1 -0
  1171. package/dist/glmt/pipeline/stream-parser.d.ts +59 -0
  1172. package/dist/glmt/pipeline/stream-parser.d.ts.map +1 -0
  1173. package/dist/glmt/pipeline/stream-parser.js +241 -0
  1174. package/dist/glmt/pipeline/stream-parser.js.map +1 -0
  1175. package/dist/glmt/pipeline/tool-call-handler.d.ts +22 -0
  1176. package/dist/glmt/pipeline/tool-call-handler.d.ts.map +1 -0
  1177. package/dist/glmt/pipeline/tool-call-handler.js +87 -0
  1178. package/dist/glmt/pipeline/tool-call-handler.js.map +1 -0
  1179. package/dist/glmt/pipeline/types.d.ts +159 -0
  1180. package/dist/glmt/pipeline/types.d.ts.map +1 -0
  1181. package/dist/glmt/pipeline/types.js +6 -0
  1182. package/dist/glmt/pipeline/types.js.map +1 -0
  1183. package/dist/glmt/reasoning-enforcer.d.ts +52 -0
  1184. package/dist/glmt/reasoning-enforcer.d.ts.map +1 -0
  1185. package/dist/glmt/reasoning-enforcer.js +151 -0
  1186. package/dist/glmt/reasoning-enforcer.js.map +1 -0
  1187. package/dist/glmt/sse-parser.d.ts +49 -0
  1188. package/dist/glmt/sse-parser.d.ts.map +1 -0
  1189. package/dist/glmt/sse-parser.js +97 -0
  1190. package/dist/glmt/sse-parser.js.map +1 -0
  1191. package/dist/management/checks/cliproxy-check.d.ts +37 -0
  1192. package/dist/management/checks/cliproxy-check.d.ts.map +1 -0
  1193. package/dist/management/checks/cliproxy-check.js +187 -0
  1194. package/dist/management/checks/cliproxy-check.js.map +1 -0
  1195. package/dist/management/checks/config-check.d.ts +38 -0
  1196. package/dist/management/checks/config-check.d.ts.map +1 -0
  1197. package/dist/management/checks/config-check.js +215 -0
  1198. package/dist/management/checks/config-check.js.map +1 -0
  1199. package/dist/management/checks/env-check.d.ts +17 -0
  1200. package/dist/management/checks/env-check.d.ts.map +1 -0
  1201. package/dist/management/checks/env-check.js +77 -0
  1202. package/dist/management/checks/env-check.js.map +1 -0
  1203. package/dist/management/checks/image-analysis-check.d.ts +16 -0
  1204. package/dist/management/checks/image-analysis-check.d.ts.map +1 -0
  1205. package/dist/management/checks/image-analysis-check.js +139 -0
  1206. package/dist/management/checks/image-analysis-check.js.map +1 -0
  1207. package/dist/management/checks/index.d.ts +14 -0
  1208. package/dist/management/checks/index.d.ts.map +1 -0
  1209. package/dist/management/checks/index.js +51 -0
  1210. package/dist/management/checks/index.js.map +1 -0
  1211. package/dist/management/checks/oauth-check.d.ts +16 -0
  1212. package/dist/management/checks/oauth-check.d.ts.map +1 -0
  1213. package/dist/management/checks/oauth-check.js +68 -0
  1214. package/dist/management/checks/oauth-check.js.map +1 -0
  1215. package/dist/management/checks/profile-check.d.ts +40 -0
  1216. package/dist/management/checks/profile-check.d.ts.map +1 -0
  1217. package/dist/management/checks/profile-check.js +190 -0
  1218. package/dist/management/checks/profile-check.js.map +1 -0
  1219. package/dist/management/checks/symlink-check.d.ts +30 -0
  1220. package/dist/management/checks/symlink-check.d.ts.map +1 -0
  1221. package/dist/management/checks/symlink-check.js +214 -0
  1222. package/dist/management/checks/symlink-check.js.map +1 -0
  1223. package/dist/management/checks/system-check.d.ts +25 -0
  1224. package/dist/management/checks/system-check.d.ts.map +1 -0
  1225. package/dist/management/checks/system-check.js +137 -0
  1226. package/dist/management/checks/system-check.js.map +1 -0
  1227. package/dist/management/checks/types.d.ts +64 -0
  1228. package/dist/management/checks/types.d.ts.map +1 -0
  1229. package/dist/management/checks/types.js +64 -0
  1230. package/dist/management/checks/types.js.map +1 -0
  1231. package/dist/management/doctor.d.ts +34 -0
  1232. package/dist/management/doctor.d.ts.map +1 -0
  1233. package/dist/management/doctor.js +154 -0
  1234. package/dist/management/doctor.js.map +1 -0
  1235. package/dist/management/environment-diagnostics.d.ts +69 -0
  1236. package/dist/management/environment-diagnostics.d.ts.map +1 -0
  1237. package/dist/management/environment-diagnostics.js +229 -0
  1238. package/dist/management/environment-diagnostics.js.map +1 -0
  1239. package/dist/management/index.d.ts +15 -0
  1240. package/dist/management/index.d.ts.map +1 -0
  1241. package/dist/management/index.js +56 -0
  1242. package/dist/management/index.js.map +1 -0
  1243. package/dist/management/instance-manager.d.ts +63 -0
  1244. package/dist/management/instance-manager.d.ts.map +1 -0
  1245. package/dist/management/instance-manager.js +249 -0
  1246. package/dist/management/instance-manager.js.map +1 -0
  1247. package/dist/management/oauth-port-diagnostics.d.ts +112 -0
  1248. package/dist/management/oauth-port-diagnostics.d.ts.map +1 -0
  1249. package/dist/management/oauth-port-diagnostics.js +280 -0
  1250. package/dist/management/oauth-port-diagnostics.js.map +1 -0
  1251. package/dist/management/profile-context-sync-lock.d.ts +17 -0
  1252. package/dist/management/profile-context-sync-lock.d.ts.map +1 -0
  1253. package/dist/management/profile-context-sync-lock.js +246 -0
  1254. package/dist/management/profile-context-sync-lock.js.map +1 -0
  1255. package/dist/management/recovery-manager.d.ts +56 -0
  1256. package/dist/management/recovery-manager.d.ts.map +1 -0
  1257. package/dist/management/recovery-manager.js +233 -0
  1258. package/dist/management/recovery-manager.js.map +1 -0
  1259. package/dist/management/repair/auto-repair.d.ts +13 -0
  1260. package/dist/management/repair/auto-repair.d.ts.map +1 -0
  1261. package/dist/management/repair/auto-repair.js +185 -0
  1262. package/dist/management/repair/auto-repair.js.map +1 -0
  1263. package/dist/management/repair/index.d.ts +5 -0
  1264. package/dist/management/repair/index.d.ts.map +1 -0
  1265. package/dist/management/repair/index.js +9 -0
  1266. package/dist/management/repair/index.js.map +1 -0
  1267. package/dist/management/shared-manager.d.ts +164 -0
  1268. package/dist/management/shared-manager.d.ts.map +1 -0
  1269. package/dist/management/shared-manager.js +1338 -0
  1270. package/dist/management/shared-manager.js.map +1 -0
  1271. package/dist/shared/claude-extension-hosts.d.ts +12 -0
  1272. package/dist/shared/claude-extension-hosts.d.ts.map +1 -0
  1273. package/dist/shared/claude-extension-hosts.js +33 -0
  1274. package/dist/shared/claude-extension-hosts.js.map +1 -0
  1275. package/dist/shared/claude-extension-setup.d.ts +30 -0
  1276. package/dist/shared/claude-extension-setup.d.ts.map +1 -0
  1277. package/dist/shared/claude-extension-setup.js +266 -0
  1278. package/dist/shared/claude-extension-setup.js.map +1 -0
  1279. package/dist/shared/compatible-cli-contracts.d.ts +196 -0
  1280. package/dist/shared/compatible-cli-contracts.d.ts.map +1 -0
  1281. package/dist/shared/compatible-cli-contracts.js +3 -0
  1282. package/dist/shared/compatible-cli-contracts.js.map +1 -0
  1283. package/dist/shared/extended-context-utils.d.ts +33 -0
  1284. package/dist/shared/extended-context-utils.d.ts.map +1 -0
  1285. package/dist/shared/extended-context-utils.js +90 -0
  1286. package/dist/shared/extended-context-utils.js.map +1 -0
  1287. package/dist/shared/gemini-minor-version-compatibility.d.ts +11 -0
  1288. package/dist/shared/gemini-minor-version-compatibility.d.ts.map +1 -0
  1289. package/dist/shared/gemini-minor-version-compatibility.js +14 -0
  1290. package/dist/shared/gemini-minor-version-compatibility.js.map +1 -0
  1291. package/dist/shared/provider-preset-catalog.d.ts +39 -0
  1292. package/dist/shared/provider-preset-catalog.d.ts.map +1 -0
  1293. package/dist/shared/provider-preset-catalog.js +283 -0
  1294. package/dist/shared/provider-preset-catalog.js.map +1 -0
  1295. package/dist/shared/toml-object.d.ts +7 -0
  1296. package/dist/shared/toml-object.d.ts.map +1 -0
  1297. package/dist/shared/toml-object.js +34 -0
  1298. package/dist/shared/toml-object.js.map +1 -0
  1299. package/dist/targets/claude-adapter.d.ts +29 -0
  1300. package/dist/targets/claude-adapter.d.ts.map +1 -0
  1301. package/dist/targets/claude-adapter.js +130 -0
  1302. package/dist/targets/claude-adapter.js.map +1 -0
  1303. package/dist/targets/codex-adapter.d.ts +21 -0
  1304. package/dist/targets/codex-adapter.d.ts.map +1 -0
  1305. package/dist/targets/codex-adapter.js +302 -0
  1306. package/dist/targets/codex-adapter.js.map +1 -0
  1307. package/dist/targets/codex-detector.d.ts +9 -0
  1308. package/dist/targets/codex-detector.d.ts.map +1 -0
  1309. package/dist/targets/codex-detector.js +176 -0
  1310. package/dist/targets/codex-detector.js.map +1 -0
  1311. package/dist/targets/droid-adapter.d.ts +32 -0
  1312. package/dist/targets/droid-adapter.d.ts.map +1 -0
  1313. package/dist/targets/droid-adapter.js +184 -0
  1314. package/dist/targets/droid-adapter.js.map +1 -0
  1315. package/dist/targets/droid-command-router.d.ts +26 -0
  1316. package/dist/targets/droid-command-router.d.ts.map +1 -0
  1317. package/dist/targets/droid-command-router.js +240 -0
  1318. package/dist/targets/droid-command-router.js.map +1 -0
  1319. package/dist/targets/droid-config-manager.d.ts +41 -0
  1320. package/dist/targets/droid-config-manager.d.ts.map +1 -0
  1321. package/dist/targets/droid-config-manager.js +515 -0
  1322. package/dist/targets/droid-config-manager.js.map +1 -0
  1323. package/dist/targets/droid-detector.d.ts +25 -0
  1324. package/dist/targets/droid-detector.d.ts.map +1 -0
  1325. package/dist/targets/droid-detector.js +140 -0
  1326. package/dist/targets/droid-detector.js.map +1 -0
  1327. package/dist/targets/droid-provider.d.ts +40 -0
  1328. package/dist/targets/droid-provider.d.ts.map +1 -0
  1329. package/dist/targets/droid-provider.js +140 -0
  1330. package/dist/targets/droid-provider.js.map +1 -0
  1331. package/dist/targets/droid-reasoning-runtime.d.ts +14 -0
  1332. package/dist/targets/droid-reasoning-runtime.d.ts.map +1 -0
  1333. package/dist/targets/droid-reasoning-runtime.js +42 -0
  1334. package/dist/targets/droid-reasoning-runtime.js.map +1 -0
  1335. package/dist/targets/index.d.ts +20 -0
  1336. package/dist/targets/index.d.ts.map +1 -0
  1337. package/dist/targets/index.js +50 -0
  1338. package/dist/targets/index.js.map +1 -0
  1339. package/dist/targets/target-adapter.d.ts +95 -0
  1340. package/dist/targets/target-adapter.d.ts.map +1 -0
  1341. package/dist/targets/target-adapter.js +9 -0
  1342. package/dist/targets/target-adapter.js.map +1 -0
  1343. package/dist/targets/target-metadata.d.ts +18 -0
  1344. package/dist/targets/target-metadata.d.ts.map +1 -0
  1345. package/dist/targets/target-metadata.js +76 -0
  1346. package/dist/targets/target-metadata.js.map +1 -0
  1347. package/dist/targets/target-registry.d.ts +30 -0
  1348. package/dist/targets/target-registry.d.ts.map +1 -0
  1349. package/dist/targets/target-registry.js +53 -0
  1350. package/dist/targets/target-registry.js.map +1 -0
  1351. package/dist/targets/target-resolver.d.ts +26 -0
  1352. package/dist/targets/target-resolver.d.ts.map +1 -0
  1353. package/dist/targets/target-resolver.js +188 -0
  1354. package/dist/targets/target-resolver.js.map +1 -0
  1355. package/dist/targets/target-runtime-compatibility.d.ts +17 -0
  1356. package/dist/targets/target-runtime-compatibility.d.ts.map +1 -0
  1357. package/dist/targets/target-runtime-compatibility.js +56 -0
  1358. package/dist/targets/target-runtime-compatibility.js.map +1 -0
  1359. package/dist/types/cli.d.ts +51 -0
  1360. package/dist/types/cli.d.ts.map +1 -0
  1361. package/dist/types/cli.js +15 -0
  1362. package/dist/types/cli.js.map +1 -0
  1363. package/dist/types/config.d.ts +110 -0
  1364. package/dist/types/config.d.ts.map +1 -0
  1365. package/dist/types/config.js +26 -0
  1366. package/dist/types/config.js.map +1 -0
  1367. package/dist/types/delegation.d.ts +49 -0
  1368. package/dist/types/delegation.d.ts.map +1 -0
  1369. package/dist/types/delegation.js +6 -0
  1370. package/dist/types/delegation.js.map +1 -0
  1371. package/dist/types/glmt.d.ts +95 -0
  1372. package/dist/types/glmt.d.ts.map +1 -0
  1373. package/dist/types/glmt.js +7 -0
  1374. package/dist/types/glmt.js.map +1 -0
  1375. package/dist/types/index.d.ts +14 -0
  1376. package/dist/types/index.d.ts.map +1 -0
  1377. package/dist/types/index.js +16 -0
  1378. package/dist/types/index.js.map +1 -0
  1379. package/dist/types/profile.d.ts +5 -0
  1380. package/dist/types/profile.d.ts.map +1 -0
  1381. package/dist/types/profile.js +3 -0
  1382. package/dist/types/profile.js.map +1 -0
  1383. package/dist/types/utils.d.ts +108 -0
  1384. package/dist/types/utils.d.ts.map +1 -0
  1385. package/dist/types/utils.js +21 -0
  1386. package/dist/types/utils.js.map +1 -0
  1387. package/dist/ui/assets/accounts-BawY2EFo.js +1 -0
  1388. package/dist/ui/assets/alert-dialog-DJToPlWr.js +1 -0
  1389. package/dist/ui/assets/antigravity-responsibility-constants-Bvh4Ybz0.js +1 -0
  1390. package/dist/ui/assets/api-B_Sk3MzB.js +4 -0
  1391. package/dist/ui/assets/auth-section-DtP8Ixck.js +1 -0
  1392. package/dist/ui/assets/backups-section-CxoodKPY.js +1 -0
  1393. package/dist/ui/assets/channels-oUD972yw.js +1 -0
  1394. package/dist/ui/assets/charts-BBPXh0Ar.js +64 -0
  1395. package/dist/ui/assets/checkbox-DldvhZr2.js +1 -0
  1396. package/dist/ui/assets/claude-extension-BQfPcmbe.js +1 -0
  1397. package/dist/ui/assets/cliproxy-MCTZXq_x.js +3 -0
  1398. package/dist/ui/assets/cliproxy-ai-providers-Bx4Gyza9.js +21 -0
  1399. package/dist/ui/assets/cliproxy-control-panel-sPk6MWN7.js +1 -0
  1400. package/dist/ui/assets/code-highlight-BRUf_pqB.js +3 -0
  1401. package/dist/ui/assets/codex-C_o_GPqT.js +27 -0
  1402. package/dist/ui/assets/confirm-dialog-BmHoUnZO.js +1 -0
  1403. package/dist/ui/assets/copilot-BuAdQurr.js +3 -0
  1404. package/dist/ui/assets/cursor-gnSaatOG.js +1 -0
  1405. package/dist/ui/assets/default-ports-1QQSffYX.js +1 -0
  1406. package/dist/ui/assets/droid-AFAxzlIY.js +2 -0
  1407. package/dist/ui/assets/form-utils-Bcoyqxpq.js +20 -0
  1408. package/dist/ui/assets/globalenv-section-DzKqUqtp.js +1 -0
  1409. package/dist/ui/assets/health-DvVHEWDT.js +1 -0
  1410. package/dist/ui/assets/icons-BfVvKgF4.js +1 -0
  1411. package/dist/ui/assets/index-5tRlHaND.js +1 -0
  1412. package/dist/ui/assets/index-C49jYnaE.js +69 -0
  1413. package/dist/ui/assets/index-C5p5ceFZ.js +1 -0
  1414. package/dist/ui/assets/index-Ck54nQUw.js +1 -0
  1415. package/dist/ui/assets/index-CknHGRYp.css +1 -0
  1416. package/dist/ui/assets/index-DO32ZV1u.js +1 -0
  1417. package/dist/ui/assets/index-iMG7ay6w.js +1 -0
  1418. package/dist/ui/assets/masked-input-BdgjVGKH.js +1 -0
  1419. package/dist/ui/assets/notifications-B2HqRBj7.js +1 -0
  1420. package/dist/ui/assets/providers/agy.png +0 -0
  1421. package/dist/ui/assets/providers/alibabacloud-color.svg +1 -0
  1422. package/dist/ui/assets/providers/claude.svg +1 -0
  1423. package/dist/ui/assets/providers/codex-color.svg +24 -0
  1424. package/dist/ui/assets/providers/copilot.svg +1 -0
  1425. package/dist/ui/assets/providers/gemini-color.svg +1 -0
  1426. package/dist/ui/assets/providers/iflow.png +0 -0
  1427. package/dist/ui/assets/providers/kimi.svg +1 -0
  1428. package/dist/ui/assets/providers/kiro.png +0 -0
  1429. package/dist/ui/assets/providers/llama-cpp.svg +5 -0
  1430. package/dist/ui/assets/providers/openai.svg +1 -0
  1431. package/dist/ui/assets/providers/qwen-color.svg +1 -0
  1432. package/dist/ui/assets/providers/vertex.svg +25 -0
  1433. package/dist/ui/assets/proxy-status-widget-CYPtmhP7.js +1 -0
  1434. package/dist/ui/assets/radix-ui-Zb8sVEtn.js +51 -0
  1435. package/dist/ui/assets/raw-json-settings-editor-panel-BkZCtsKd.js +1 -0
  1436. package/dist/ui/assets/react-vendor-CNOkPC89.js +3 -0
  1437. package/dist/ui/assets/searchable-select-CbOXs3LO.js +1 -0
  1438. package/dist/ui/assets/separator-CMvAvZb-.js +1 -0
  1439. package/dist/ui/assets/shared-miNlaAR3.js +8 -0
  1440. package/dist/ui/assets/sidebar/codex.svg +1 -0
  1441. package/dist/ui/assets/sidebar/cursor.svg +1 -0
  1442. package/dist/ui/assets/table-CAFxBhYo.js +1 -0
  1443. package/dist/ui/assets/tanstack-DWm6aJ-G.js +4 -0
  1444. package/dist/ui/assets/updates-BaQgmf4M.js +1 -0
  1445. package/dist/ui/assets/utils-CzKF5WmX.js +1 -0
  1446. package/dist/ui/favicon.ico +0 -0
  1447. package/dist/ui/favicons/android-chrome-192x192.png +0 -0
  1448. package/dist/ui/favicons/android-chrome-512x512.png +0 -0
  1449. package/dist/ui/favicons/android-chrome-512x512.webp +0 -0
  1450. package/dist/ui/favicons/apple-touch-icon.png +0 -0
  1451. package/dist/ui/favicons/favicon-16x16.png +0 -0
  1452. package/dist/ui/favicons/favicon-32x32.png +0 -0
  1453. package/dist/ui/favicons/favicon.ico +0 -0
  1454. package/dist/ui/icons/azure.svg +1 -0
  1455. package/dist/ui/icons/deepseek.svg +1 -0
  1456. package/dist/ui/icons/kimi.svg +1 -0
  1457. package/dist/ui/icons/minimax.svg +1 -0
  1458. package/dist/ui/icons/novita.svg +9 -0
  1459. package/dist/ui/icons/ollama.svg +1 -0
  1460. package/dist/ui/icons/openrouter.svg +1 -0
  1461. package/dist/ui/icons/zai.svg +1 -0
  1462. package/dist/ui/index.html +41 -0
  1463. package/dist/ui/logo/ccs-logo-256.png +0 -0
  1464. package/dist/ui/logo/ccs-logo-zoomed-web.png +0 -0
  1465. package/dist/ui/logo/ccs-social-media.png +0 -0
  1466. package/dist/ui/logo/ccs-social-media.webp +0 -0
  1467. package/dist/ui/logos/claudekit-logo.png +0 -0
  1468. package/dist/utils/api-key-validator.d.ts +16 -0
  1469. package/dist/utils/api-key-validator.d.ts.map +1 -0
  1470. package/dist/utils/api-key-validator.js +206 -0
  1471. package/dist/utils/api-key-validator.js.map +1 -0
  1472. package/dist/utils/claude-config-path.d.ts +19 -0
  1473. package/dist/utils/claude-config-path.d.ts.map +1 -0
  1474. package/dist/utils/claude-config-path.js +62 -0
  1475. package/dist/utils/claude-config-path.js.map +1 -0
  1476. package/dist/utils/claude-detector.d.ts +28 -0
  1477. package/dist/utils/claude-detector.d.ts.map +1 -0
  1478. package/dist/utils/claude-detector.js +251 -0
  1479. package/dist/utils/claude-detector.js.map +1 -0
  1480. package/dist/utils/claude-dir-installer.d.ts +46 -0
  1481. package/dist/utils/claude-dir-installer.d.ts.map +1 -0
  1482. package/dist/utils/claude-dir-installer.js +289 -0
  1483. package/dist/utils/claude-dir-installer.js.map +1 -0
  1484. package/dist/utils/claude-spawner.d.ts +54 -0
  1485. package/dist/utils/claude-spawner.d.ts.map +1 -0
  1486. package/dist/utils/claude-spawner.js +119 -0
  1487. package/dist/utils/claude-spawner.js.map +1 -0
  1488. package/dist/utils/claude-symlink-manager.d.ts +75 -0
  1489. package/dist/utils/claude-symlink-manager.d.ts.map +1 -0
  1490. package/dist/utils/claude-symlink-manager.js +393 -0
  1491. package/dist/utils/claude-symlink-manager.js.map +1 -0
  1492. package/dist/utils/config-manager.d.ts +87 -0
  1493. package/dist/utils/config-manager.d.ts.map +1 -0
  1494. package/dist/utils/config-manager.js +404 -0
  1495. package/dist/utils/config-manager.js.map +1 -0
  1496. package/dist/utils/delegation-validator.d.ts +44 -0
  1497. package/dist/utils/delegation-validator.d.ts.map +1 -0
  1498. package/dist/utils/delegation-validator.js +187 -0
  1499. package/dist/utils/delegation-validator.js.map +1 -0
  1500. package/dist/utils/error-codes.d.ts +36 -0
  1501. package/dist/utils/error-codes.d.ts.map +1 -0
  1502. package/dist/utils/error-codes.js +68 -0
  1503. package/dist/utils/error-codes.js.map +1 -0
  1504. package/dist/utils/error-manager.d.ts +59 -0
  1505. package/dist/utils/error-manager.d.ts.map +1 -0
  1506. package/dist/utils/error-manager.js +250 -0
  1507. package/dist/utils/error-manager.js.map +1 -0
  1508. package/dist/utils/fetch-proxy-setup.d.ts +13 -0
  1509. package/dist/utils/fetch-proxy-setup.d.ts.map +1 -0
  1510. package/dist/utils/fetch-proxy-setup.js +112 -0
  1511. package/dist/utils/fetch-proxy-setup.js.map +1 -0
  1512. package/dist/utils/glmt-deprecation.d.ts +11 -0
  1513. package/dist/utils/glmt-deprecation.d.ts.map +1 -0
  1514. package/dist/utils/glmt-deprecation.js +64 -0
  1515. package/dist/utils/glmt-deprecation.js.map +1 -0
  1516. package/dist/utils/helpers.d.ts +17 -0
  1517. package/dist/utils/helpers.d.ts.map +1 -0
  1518. package/dist/utils/helpers.js +111 -0
  1519. package/dist/utils/helpers.js.map +1 -0
  1520. package/dist/utils/hooks/get-image-analysis-hook-env.d.ts +44 -0
  1521. package/dist/utils/hooks/get-image-analysis-hook-env.d.ts.map +1 -0
  1522. package/dist/utils/hooks/get-image-analysis-hook-env.js +129 -0
  1523. package/dist/utils/hooks/get-image-analysis-hook-env.js.map +1 -0
  1524. package/dist/utils/hooks/image-analysis-backend-resolver.d.ts +53 -0
  1525. package/dist/utils/hooks/image-analysis-backend-resolver.d.ts.map +1 -0
  1526. package/dist/utils/hooks/image-analysis-backend-resolver.js +384 -0
  1527. package/dist/utils/hooks/image-analysis-backend-resolver.js.map +1 -0
  1528. package/dist/utils/hooks/image-analysis-runtime-status.d.ts +19 -0
  1529. package/dist/utils/hooks/image-analysis-runtime-status.d.ts.map +1 -0
  1530. package/dist/utils/hooks/image-analysis-runtime-status.js +136 -0
  1531. package/dist/utils/hooks/image-analysis-runtime-status.js.map +1 -0
  1532. package/dist/utils/hooks/image-analyzer-hook-configuration.d.ts +17 -0
  1533. package/dist/utils/hooks/image-analyzer-hook-configuration.d.ts.map +1 -0
  1534. package/dist/utils/hooks/image-analyzer-hook-configuration.js +71 -0
  1535. package/dist/utils/hooks/image-analyzer-hook-configuration.js.map +1 -0
  1536. package/dist/utils/hooks/image-analyzer-hook-installer.d.ts +31 -0
  1537. package/dist/utils/hooks/image-analyzer-hook-installer.d.ts.map +1 -0
  1538. package/dist/utils/hooks/image-analyzer-hook-installer.js +182 -0
  1539. package/dist/utils/hooks/image-analyzer-hook-installer.js.map +1 -0
  1540. package/dist/utils/hooks/image-analyzer-profile-hook-injector.d.ts +25 -0
  1541. package/dist/utils/hooks/image-analyzer-profile-hook-injector.d.ts.map +1 -0
  1542. package/dist/utils/hooks/image-analyzer-profile-hook-injector.js +275 -0
  1543. package/dist/utils/hooks/image-analyzer-profile-hook-injector.js.map +1 -0
  1544. package/dist/utils/hooks/index.d.ts +14 -0
  1545. package/dist/utils/hooks/index.d.ts.map +1 -0
  1546. package/dist/utils/hooks/index.js +35 -0
  1547. package/dist/utils/hooks/index.js.map +1 -0
  1548. package/dist/utils/image-analysis/claude-tool-args.d.ts +6 -0
  1549. package/dist/utils/image-analysis/claude-tool-args.d.ts.map +1 -0
  1550. package/dist/utils/image-analysis/claude-tool-args.js +65 -0
  1551. package/dist/utils/image-analysis/claude-tool-args.js.map +1 -0
  1552. package/dist/utils/image-analysis/hook-installer.d.ts +19 -0
  1553. package/dist/utils/image-analysis/hook-installer.d.ts.map +1 -0
  1554. package/dist/utils/image-analysis/hook-installer.js +112 -0
  1555. package/dist/utils/image-analysis/hook-installer.js.map +1 -0
  1556. package/dist/utils/image-analysis/index.d.ts +11 -0
  1557. package/dist/utils/image-analysis/index.d.ts.map +1 -0
  1558. package/dist/utils/image-analysis/index.js +31 -0
  1559. package/dist/utils/image-analysis/index.js.map +1 -0
  1560. package/dist/utils/image-analysis/mcp-installer.d.ts +18 -0
  1561. package/dist/utils/image-analysis/mcp-installer.d.ts.map +1 -0
  1562. package/dist/utils/image-analysis/mcp-installer.js +447 -0
  1563. package/dist/utils/image-analysis/mcp-installer.js.map +1 -0
  1564. package/dist/utils/index.d.ts +15 -0
  1565. package/dist/utils/index.d.ts.map +1 -0
  1566. package/dist/utils/index.js +50 -0
  1567. package/dist/utils/index.js.map +1 -0
  1568. package/dist/utils/package-manager-detector.d.ts +11 -0
  1569. package/dist/utils/package-manager-detector.d.ts.map +1 -0
  1570. package/dist/utils/package-manager-detector.js +103 -0
  1571. package/dist/utils/package-manager-detector.js.map +1 -0
  1572. package/dist/utils/percentage.d.ts +5 -0
  1573. package/dist/utils/percentage.d.ts.map +1 -0
  1574. package/dist/utils/percentage.js +13 -0
  1575. package/dist/utils/percentage.js.map +1 -0
  1576. package/dist/utils/platform-commands.d.ts +53 -0
  1577. package/dist/utils/platform-commands.d.ts.map +1 -0
  1578. package/dist/utils/platform-commands.js +189 -0
  1579. package/dist/utils/platform-commands.js.map +1 -0
  1580. package/dist/utils/port-utils.d.ts +55 -0
  1581. package/dist/utils/port-utils.d.ts.map +1 -0
  1582. package/dist/utils/port-utils.js +217 -0
  1583. package/dist/utils/port-utils.js.map +1 -0
  1584. package/dist/utils/process-utils.d.ts +12 -0
  1585. package/dist/utils/process-utils.d.ts.map +1 -0
  1586. package/dist/utils/process-utils.js +23 -0
  1587. package/dist/utils/process-utils.js.map +1 -0
  1588. package/dist/utils/profile-compat.d.ts +22 -0
  1589. package/dist/utils/profile-compat.d.ts.map +1 -0
  1590. package/dist/utils/profile-compat.js +54 -0
  1591. package/dist/utils/profile-compat.js.map +1 -0
  1592. package/dist/utils/progress-indicator.d.ts +53 -0
  1593. package/dist/utils/progress-indicator.d.ts.map +1 -0
  1594. package/dist/utils/progress-indicator.js +104 -0
  1595. package/dist/utils/progress-indicator.js.map +1 -0
  1596. package/dist/utils/prompt.d.ts +55 -0
  1597. package/dist/utils/prompt.d.ts.map +1 -0
  1598. package/dist/utils/prompt.js +270 -0
  1599. package/dist/utils/prompt.js.map +1 -0
  1600. package/dist/utils/proxy-env.d.ts +15 -0
  1601. package/dist/utils/proxy-env.d.ts.map +1 -0
  1602. package/dist/utils/proxy-env.js +126 -0
  1603. package/dist/utils/proxy-env.js.map +1 -0
  1604. package/dist/utils/sensitive-keys.d.ts +35 -0
  1605. package/dist/utils/sensitive-keys.d.ts.map +1 -0
  1606. package/dist/utils/sensitive-keys.js +69 -0
  1607. package/dist/utils/sensitive-keys.js.map +1 -0
  1608. package/dist/utils/shell-completion.d.ts +54 -0
  1609. package/dist/utils/shell-completion.d.ts.map +1 -0
  1610. package/dist/utils/shell-completion.js +261 -0
  1611. package/dist/utils/shell-completion.js.map +1 -0
  1612. package/dist/utils/shell-executor.d.ts +44 -0
  1613. package/dist/utils/shell-executor.d.ts.map +1 -0
  1614. package/dist/utils/shell-executor.js +212 -0
  1615. package/dist/utils/shell-executor.js.map +1 -0
  1616. package/dist/utils/signal-forwarder.d.ts +23 -0
  1617. package/dist/utils/signal-forwarder.d.ts.map +1 -0
  1618. package/dist/utils/signal-forwarder.js +70 -0
  1619. package/dist/utils/signal-forwarder.js.map +1 -0
  1620. package/dist/utils/time.d.ts +10 -0
  1621. package/dist/utils/time.d.ts.map +1 -0
  1622. package/dist/utils/time.js +27 -0
  1623. package/dist/utils/time.js.map +1 -0
  1624. package/dist/utils/ui/boxes.d.ts +24 -0
  1625. package/dist/utils/ui/boxes.d.ts.map +1 -0
  1626. package/dist/utils/ui/boxes.js +108 -0
  1627. package/dist/utils/ui/boxes.js.map +1 -0
  1628. package/dist/utils/ui/colors.d.ts +25 -0
  1629. package/dist/utils/ui/colors.d.ts.map +1 -0
  1630. package/dist/utils/ui/colors.js +70 -0
  1631. package/dist/utils/ui/colors.js.map +1 -0
  1632. package/dist/utils/ui/index.d.ts +51 -0
  1633. package/dist/utils/ui/index.d.ts.map +1 -0
  1634. package/dist/utils/ui/index.js +96 -0
  1635. package/dist/utils/ui/index.js.map +1 -0
  1636. package/dist/utils/ui/indicators.d.ts +23 -0
  1637. package/dist/utils/ui/indicators.d.ts.map +1 -0
  1638. package/dist/utils/ui/indicators.js +39 -0
  1639. package/dist/utils/ui/indicators.js.map +1 -0
  1640. package/dist/utils/ui/init.d.ts +30 -0
  1641. package/dist/utils/ui/init.d.ts.map +1 -0
  1642. package/dist/utils/ui/init.js +91 -0
  1643. package/dist/utils/ui/init.js.map +1 -0
  1644. package/dist/utils/ui/spinner.d.ts +13 -0
  1645. package/dist/utils/ui/spinner.d.ts.map +1 -0
  1646. package/dist/utils/ui/spinner.js +89 -0
  1647. package/dist/utils/ui/spinner.js.map +1 -0
  1648. package/dist/utils/ui/tables.d.ts +12 -0
  1649. package/dist/utils/ui/tables.d.ts.map +1 -0
  1650. package/dist/utils/ui/tables.js +69 -0
  1651. package/dist/utils/ui/tables.js.map +1 -0
  1652. package/dist/utils/ui/tasks.d.ts +26 -0
  1653. package/dist/utils/ui/tasks.d.ts.map +1 -0
  1654. package/dist/utils/ui/tasks.js +102 -0
  1655. package/dist/utils/ui/tasks.js.map +1 -0
  1656. package/dist/utils/ui/text.d.ts +24 -0
  1657. package/dist/utils/ui/text.d.ts.map +1 -0
  1658. package/dist/utils/ui/text.js +60 -0
  1659. package/dist/utils/ui/text.js.map +1 -0
  1660. package/dist/utils/ui/types.d.ts +36 -0
  1661. package/dist/utils/ui/types.d.ts.map +1 -0
  1662. package/dist/utils/ui/types.js +33 -0
  1663. package/dist/utils/ui/types.js.map +1 -0
  1664. package/dist/utils/ui.d.ts +17 -0
  1665. package/dist/utils/ui.d.ts.map +1 -0
  1666. package/dist/utils/ui.js +57 -0
  1667. package/dist/utils/ui.js.map +1 -0
  1668. package/dist/utils/update-checker.d.ts +71 -0
  1669. package/dist/utils/update-checker.d.ts.map +1 -0
  1670. package/dist/utils/update-checker.js +377 -0
  1671. package/dist/utils/update-checker.js.map +1 -0
  1672. package/dist/utils/version.d.ts +8 -0
  1673. package/dist/utils/version.d.ts.map +1 -0
  1674. package/dist/utils/version.js +51 -0
  1675. package/dist/utils/version.js.map +1 -0
  1676. package/dist/utils/websearch/claude-tool-args.d.ts +5 -0
  1677. package/dist/utils/websearch/claude-tool-args.d.ts.map +1 -0
  1678. package/dist/utils/websearch/claude-tool-args.js +125 -0
  1679. package/dist/utils/websearch/claude-tool-args.js.map +1 -0
  1680. package/dist/utils/websearch/gemini-cli.d.ts +36 -0
  1681. package/dist/utils/websearch/gemini-cli.d.ts.map +1 -0
  1682. package/dist/utils/websearch/gemini-cli.js +132 -0
  1683. package/dist/utils/websearch/gemini-cli.js.map +1 -0
  1684. package/dist/utils/websearch/grok-cli.d.ts +26 -0
  1685. package/dist/utils/websearch/grok-cli.d.ts.map +1 -0
  1686. package/dist/utils/websearch/grok-cli.js +81 -0
  1687. package/dist/utils/websearch/grok-cli.js.map +1 -0
  1688. package/dist/utils/websearch/hook-config.d.ts +27 -0
  1689. package/dist/utils/websearch/hook-config.d.ts.map +1 -0
  1690. package/dist/utils/websearch/hook-config.js +266 -0
  1691. package/dist/utils/websearch/hook-config.js.map +1 -0
  1692. package/dist/utils/websearch/hook-env.d.ts +16 -0
  1693. package/dist/utils/websearch/hook-env.d.ts.map +1 -0
  1694. package/dist/utils/websearch/hook-env.js +86 -0
  1695. package/dist/utils/websearch/hook-env.js.map +1 -0
  1696. package/dist/utils/websearch/hook-installer.d.ts +33 -0
  1697. package/dist/utils/websearch/hook-installer.d.ts.map +1 -0
  1698. package/dist/utils/websearch/hook-installer.js +211 -0
  1699. package/dist/utils/websearch/hook-installer.js.map +1 -0
  1700. package/dist/utils/websearch/hook-utils.d.ts +18 -0
  1701. package/dist/utils/websearch/hook-utils.d.ts.map +1 -0
  1702. package/dist/utils/websearch/hook-utils.js +59 -0
  1703. package/dist/utils/websearch/hook-utils.js.map +1 -0
  1704. package/dist/utils/websearch/index.d.ts +22 -0
  1705. package/dist/utils/websearch/index.d.ts.map +1 -0
  1706. package/dist/utils/websearch/index.js +76 -0
  1707. package/dist/utils/websearch/index.js.map +1 -0
  1708. package/dist/utils/websearch/mcp-installer.d.ts +14 -0
  1709. package/dist/utils/websearch/mcp-installer.d.ts.map +1 -0
  1710. package/dist/utils/websearch/mcp-installer.js +351 -0
  1711. package/dist/utils/websearch/mcp-installer.js.map +1 -0
  1712. package/dist/utils/websearch/opencode-cli.d.ts +26 -0
  1713. package/dist/utils/websearch/opencode-cli.d.ts.map +1 -0
  1714. package/dist/utils/websearch/opencode-cli.js +81 -0
  1715. package/dist/utils/websearch/opencode-cli.js.map +1 -0
  1716. package/dist/utils/websearch/profile-hook-injector.d.ts +19 -0
  1717. package/dist/utils/websearch/profile-hook-injector.d.ts.map +1 -0
  1718. package/dist/utils/websearch/profile-hook-injector.js +265 -0
  1719. package/dist/utils/websearch/profile-hook-injector.js.map +1 -0
  1720. package/dist/utils/websearch/provider-secrets.d.ts +18 -0
  1721. package/dist/utils/websearch/provider-secrets.d.ts.map +1 -0
  1722. package/dist/utils/websearch/provider-secrets.js +83 -0
  1723. package/dist/utils/websearch/provider-secrets.js.map +1 -0
  1724. package/dist/utils/websearch/status.d.ts +30 -0
  1725. package/dist/utils/websearch/status.d.ts.map +1 -0
  1726. package/dist/utils/websearch/status.js +305 -0
  1727. package/dist/utils/websearch/status.js.map +1 -0
  1728. package/dist/utils/websearch/trace.d.ts +23 -0
  1729. package/dist/utils/websearch/trace.d.ts.map +1 -0
  1730. package/dist/utils/websearch/trace.js +206 -0
  1731. package/dist/utils/websearch/trace.js.map +1 -0
  1732. package/dist/utils/websearch/types.d.ts +99 -0
  1733. package/dist/utils/websearch/types.d.ts.map +1 -0
  1734. package/dist/utils/websearch/types.js +10 -0
  1735. package/dist/utils/websearch/types.js.map +1 -0
  1736. package/dist/utils/websearch-manager.d.ts +32 -0
  1737. package/dist/utils/websearch-manager.d.ts.map +1 -0
  1738. package/dist/utils/websearch-manager.js +89 -0
  1739. package/dist/utils/websearch-manager.js.map +1 -0
  1740. package/dist/web-server/data-aggregator.d.ts +7 -0
  1741. package/dist/web-server/data-aggregator.d.ts.map +1 -0
  1742. package/dist/web-server/data-aggregator.js +23 -0
  1743. package/dist/web-server/data-aggregator.js.map +1 -0
  1744. package/dist/web-server/file-watcher.d.ts +15 -0
  1745. package/dist/web-server/file-watcher.d.ts.map +1 -0
  1746. package/dist/web-server/file-watcher.js +93 -0
  1747. package/dist/web-server/file-watcher.js.map +1 -0
  1748. package/dist/web-server/health/cliproxy-checks.d.ts +27 -0
  1749. package/dist/web-server/health/cliproxy-checks.d.ts.map +1 -0
  1750. package/dist/web-server/health/cliproxy-checks.js +186 -0
  1751. package/dist/web-server/health/cliproxy-checks.js.map +1 -0
  1752. package/dist/web-server/health/config-checks.d.ts +20 -0
  1753. package/dist/web-server/health/config-checks.d.ts.map +1 -0
  1754. package/dist/web-server/health/config-checks.js +209 -0
  1755. package/dist/web-server/health/config-checks.js.map +1 -0
  1756. package/dist/web-server/health/environment-checks.d.ts +11 -0
  1757. package/dist/web-server/health/environment-checks.d.ts.map +1 -0
  1758. package/dist/web-server/health/environment-checks.js +40 -0
  1759. package/dist/web-server/health/environment-checks.js.map +1 -0
  1760. package/dist/web-server/health/index.d.ts +13 -0
  1761. package/dist/web-server/health/index.d.ts.map +1 -0
  1762. package/dist/web-server/health/index.js +41 -0
  1763. package/dist/web-server/health/index.js.map +1 -0
  1764. package/dist/web-server/health/oauth-checks.d.ts +11 -0
  1765. package/dist/web-server/health/oauth-checks.d.ts.map +1 -0
  1766. package/dist/web-server/health/oauth-checks.js +34 -0
  1767. package/dist/web-server/health/oauth-checks.js.map +1 -0
  1768. package/dist/web-server/health/profile-checks.d.ts +20 -0
  1769. package/dist/web-server/health/profile-checks.d.ts.map +1 -0
  1770. package/dist/web-server/health/profile-checks.js +184 -0
  1771. package/dist/web-server/health/profile-checks.js.map +1 -0
  1772. package/dist/web-server/health/symlink-checks.d.ts +15 -0
  1773. package/dist/web-server/health/symlink-checks.d.ts.map +1 -0
  1774. package/dist/web-server/health/symlink-checks.js +173 -0
  1775. package/dist/web-server/health/symlink-checks.js.map +1 -0
  1776. package/dist/web-server/health/system-checks.d.ts +19 -0
  1777. package/dist/web-server/health/system-checks.d.ts.map +1 -0
  1778. package/dist/web-server/health/system-checks.js +127 -0
  1779. package/dist/web-server/health/system-checks.js.map +1 -0
  1780. package/dist/web-server/health/types.d.ts +34 -0
  1781. package/dist/web-server/health/types.d.ts.map +1 -0
  1782. package/dist/web-server/health/types.js +8 -0
  1783. package/dist/web-server/health/types.js.map +1 -0
  1784. package/dist/web-server/health/websearch-checks.d.ts +11 -0
  1785. package/dist/web-server/health/websearch-checks.d.ts.map +1 -0
  1786. package/dist/web-server/health/websearch-checks.js +51 -0
  1787. package/dist/web-server/health/websearch-checks.js.map +1 -0
  1788. package/dist/web-server/health-service.d.ts +20 -0
  1789. package/dist/web-server/health-service.d.ts.map +1 -0
  1790. package/dist/web-server/health-service.js +161 -0
  1791. package/dist/web-server/health-service.js.map +1 -0
  1792. package/dist/web-server/index.d.ts +26 -0
  1793. package/dist/web-server/index.d.ts.map +1 -0
  1794. package/dist/web-server/index.js +164 -0
  1795. package/dist/web-server/index.js.map +1 -0
  1796. package/dist/web-server/jsonl-parser.d.ts +65 -0
  1797. package/dist/web-server/jsonl-parser.d.ts.map +1 -0
  1798. package/dist/web-server/jsonl-parser.js +240 -0
  1799. package/dist/web-server/jsonl-parser.js.map +1 -0
  1800. package/dist/web-server/middleware/auth-middleware.d.ts +29 -0
  1801. package/dist/web-server/middleware/auth-middleware.d.ts.map +1 -0
  1802. package/dist/web-server/middleware/auth-middleware.js +140 -0
  1803. package/dist/web-server/middleware/auth-middleware.js.map +1 -0
  1804. package/dist/web-server/model-pricing.d.ts +42 -0
  1805. package/dist/web-server/model-pricing.d.ts.map +1 -0
  1806. package/dist/web-server/model-pricing.js +839 -0
  1807. package/dist/web-server/model-pricing.js.map +1 -0
  1808. package/dist/web-server/overview-routes.d.ts +7 -0
  1809. package/dist/web-server/overview-routes.d.ts.map +1 -0
  1810. package/dist/web-server/overview-routes.js +75 -0
  1811. package/dist/web-server/overview-routes.js.map +1 -0
  1812. package/dist/web-server/routes/account-route-helpers.d.ts +20 -0
  1813. package/dist/web-server/routes/account-route-helpers.d.ts.map +1 -0
  1814. package/dist/web-server/routes/account-route-helpers.js +34 -0
  1815. package/dist/web-server/routes/account-route-helpers.js.map +1 -0
  1816. package/dist/web-server/routes/account-routes.d.ts +9 -0
  1817. package/dist/web-server/routes/account-routes.d.ts.map +1 -0
  1818. package/dist/web-server/routes/account-routes.js +451 -0
  1819. package/dist/web-server/routes/account-routes.js.map +1 -0
  1820. package/dist/web-server/routes/ai-provider-routes.d.ts +3 -0
  1821. package/dist/web-server/routes/ai-provider-routes.d.ts.map +1 -0
  1822. package/dist/web-server/routes/ai-provider-routes.js +118 -0
  1823. package/dist/web-server/routes/ai-provider-routes.js.map +1 -0
  1824. package/dist/web-server/routes/auth-routes.d.ts +7 -0
  1825. package/dist/web-server/routes/auth-routes.d.ts.map +1 -0
  1826. package/dist/web-server/routes/auth-routes.js +113 -0
  1827. package/dist/web-server/routes/auth-routes.js.map +1 -0
  1828. package/dist/web-server/routes/catalog-routes.d.ts +3 -0
  1829. package/dist/web-server/routes/catalog-routes.d.ts.map +1 -0
  1830. package/dist/web-server/routes/catalog-routes.js +27 -0
  1831. package/dist/web-server/routes/catalog-routes.js.map +1 -0
  1832. package/dist/web-server/routes/channels-routes.d.ts +3 -0
  1833. package/dist/web-server/routes/channels-routes.d.ts.map +1 -0
  1834. package/dist/web-server/routes/channels-routes.js +164 -0
  1835. package/dist/web-server/routes/channels-routes.js.map +1 -0
  1836. package/dist/web-server/routes/claude-extension-routes.d.ts +3 -0
  1837. package/dist/web-server/routes/claude-extension-routes.d.ts.map +1 -0
  1838. package/dist/web-server/routes/claude-extension-routes.js +161 -0
  1839. package/dist/web-server/routes/claude-extension-routes.js.map +1 -0
  1840. package/dist/web-server/routes/cliproxy-auth-routes.d.ts +16 -0
  1841. package/dist/web-server/routes/cliproxy-auth-routes.d.ts.map +1 -0
  1842. package/dist/web-server/routes/cliproxy-auth-routes.js +962 -0
  1843. package/dist/web-server/routes/cliproxy-auth-routes.js.map +1 -0
  1844. package/dist/web-server/routes/cliproxy-local-proxy.d.ts +20 -0
  1845. package/dist/web-server/routes/cliproxy-local-proxy.d.ts.map +1 -0
  1846. package/dist/web-server/routes/cliproxy-local-proxy.js +117 -0
  1847. package/dist/web-server/routes/cliproxy-local-proxy.js.map +1 -0
  1848. package/dist/web-server/routes/cliproxy-stats-routes.d.ts +18 -0
  1849. package/dist/web-server/routes/cliproxy-stats-routes.d.ts.map +1 -0
  1850. package/dist/web-server/routes/cliproxy-stats-routes.js +901 -0
  1851. package/dist/web-server/routes/cliproxy-stats-routes.js.map +1 -0
  1852. package/dist/web-server/routes/cliproxy-sync-routes.d.ts +6 -0
  1853. package/dist/web-server/routes/cliproxy-sync-routes.d.ts.map +1 -0
  1854. package/dist/web-server/routes/cliproxy-sync-routes.js +152 -0
  1855. package/dist/web-server/routes/cliproxy-sync-routes.js.map +1 -0
  1856. package/dist/web-server/routes/codex-routes.d.ts +3 -0
  1857. package/dist/web-server/routes/codex-routes.d.ts.map +1 -0
  1858. package/dist/web-server/routes/codex-routes.js +75 -0
  1859. package/dist/web-server/routes/codex-routes.js.map +1 -0
  1860. package/dist/web-server/routes/config-routes.d.ts +6 -0
  1861. package/dist/web-server/routes/config-routes.d.ts.map +1 -0
  1862. package/dist/web-server/routes/config-routes.js +611 -0
  1863. package/dist/web-server/routes/config-routes.js.map +1 -0
  1864. package/dist/web-server/routes/copilot-routes.d.ts +6 -0
  1865. package/dist/web-server/routes/copilot-routes.d.ts.map +1 -0
  1866. package/dist/web-server/routes/copilot-routes.js +345 -0
  1867. package/dist/web-server/routes/copilot-routes.js.map +1 -0
  1868. package/dist/web-server/routes/copilot-settings-routes.d.ts +6 -0
  1869. package/dist/web-server/routes/copilot-settings-routes.d.ts.map +1 -0
  1870. package/dist/web-server/routes/copilot-settings-routes.js +163 -0
  1871. package/dist/web-server/routes/copilot-settings-routes.js.map +1 -0
  1872. package/dist/web-server/routes/cursor-routes.d.ts +16 -0
  1873. package/dist/web-server/routes/cursor-routes.d.ts.map +1 -0
  1874. package/dist/web-server/routes/cursor-routes.js +171 -0
  1875. package/dist/web-server/routes/cursor-routes.js.map +1 -0
  1876. package/dist/web-server/routes/cursor-settings-routes.d.ts +6 -0
  1877. package/dist/web-server/routes/cursor-settings-routes.d.ts.map +1 -0
  1878. package/dist/web-server/routes/cursor-settings-routes.js +308 -0
  1879. package/dist/web-server/routes/cursor-settings-routes.js.map +1 -0
  1880. package/dist/web-server/routes/droid-routes.d.ts +3 -0
  1881. package/dist/web-server/routes/droid-routes.d.ts.map +1 -0
  1882. package/dist/web-server/routes/droid-routes.js +61 -0
  1883. package/dist/web-server/routes/droid-routes.js.map +1 -0
  1884. package/dist/web-server/routes/health-routes.d.ts +6 -0
  1885. package/dist/web-server/routes/health-routes.d.ts.map +1 -0
  1886. package/dist/web-server/routes/health-routes.js +40 -0
  1887. package/dist/web-server/routes/health-routes.js.map +1 -0
  1888. package/dist/web-server/routes/image-analysis-routes.d.ts +3 -0
  1889. package/dist/web-server/routes/image-analysis-routes.d.ts.map +1 -0
  1890. package/dist/web-server/routes/image-analysis-routes.js +387 -0
  1891. package/dist/web-server/routes/image-analysis-routes.js.map +1 -0
  1892. package/dist/web-server/routes/index.d.ts +8 -0
  1893. package/dist/web-server/routes/index.d.ts.map +1 -0
  1894. package/dist/web-server/routes/index.js +81 -0
  1895. package/dist/web-server/routes/index.js.map +1 -0
  1896. package/dist/web-server/routes/misc-routes.d.ts +8 -0
  1897. package/dist/web-server/routes/misc-routes.d.ts.map +1 -0
  1898. package/dist/web-server/routes/misc-routes.js +434 -0
  1899. package/dist/web-server/routes/misc-routes.js.map +1 -0
  1900. package/dist/web-server/routes/persist-routes.d.ts +6 -0
  1901. package/dist/web-server/routes/persist-routes.d.ts.map +1 -0
  1902. package/dist/web-server/routes/persist-routes.js +296 -0
  1903. package/dist/web-server/routes/persist-routes.js.map +1 -0
  1904. package/dist/web-server/routes/profile-routes.d.ts +10 -0
  1905. package/dist/web-server/routes/profile-routes.d.ts.map +1 -0
  1906. package/dist/web-server/routes/profile-routes.js +437 -0
  1907. package/dist/web-server/routes/profile-routes.js.map +1 -0
  1908. package/dist/web-server/routes/provider-routes.d.ts +6 -0
  1909. package/dist/web-server/routes/provider-routes.d.ts.map +1 -0
  1910. package/dist/web-server/routes/provider-routes.js +154 -0
  1911. package/dist/web-server/routes/provider-routes.js.map +1 -0
  1912. package/dist/web-server/routes/proxy-routes.d.ts +11 -0
  1913. package/dist/web-server/routes/proxy-routes.d.ts.map +1 -0
  1914. package/dist/web-server/routes/proxy-routes.js +163 -0
  1915. package/dist/web-server/routes/proxy-routes.js.map +1 -0
  1916. package/dist/web-server/routes/route-helpers.d.ts +62 -0
  1917. package/dist/web-server/routes/route-helpers.d.ts.map +1 -0
  1918. package/dist/web-server/routes/route-helpers.js +413 -0
  1919. package/dist/web-server/routes/route-helpers.js.map +1 -0
  1920. package/dist/web-server/routes/settings-routes.d.ts +6 -0
  1921. package/dist/web-server/routes/settings-routes.d.ts.map +1 -0
  1922. package/dist/web-server/routes/settings-routes.js +776 -0
  1923. package/dist/web-server/routes/settings-routes.js.map +1 -0
  1924. package/dist/web-server/routes/variant-routes.d.ts +9 -0
  1925. package/dist/web-server/routes/variant-routes.d.ts.map +1 -0
  1926. package/dist/web-server/routes/variant-routes.js +254 -0
  1927. package/dist/web-server/routes/variant-routes.js.map +1 -0
  1928. package/dist/web-server/routes/websearch-routes.d.ts +6 -0
  1929. package/dist/web-server/routes/websearch-routes.d.ts.map +1 -0
  1930. package/dist/web-server/routes/websearch-routes.js +177 -0
  1931. package/dist/web-server/routes/websearch-routes.js.map +1 -0
  1932. package/dist/web-server/services/claude-extension-binding-service.d.ts +30 -0
  1933. package/dist/web-server/services/claude-extension-binding-service.d.ts.map +1 -0
  1934. package/dist/web-server/services/claude-extension-binding-service.js +240 -0
  1935. package/dist/web-server/services/claude-extension-binding-service.js.map +1 -0
  1936. package/dist/web-server/services/claude-extension-settings-service.d.ts +23 -0
  1937. package/dist/web-server/services/claude-extension-settings-service.d.ts.map +1 -0
  1938. package/dist/web-server/services/claude-extension-settings-service.js +493 -0
  1939. package/dist/web-server/services/claude-extension-settings-service.js.map +1 -0
  1940. package/dist/web-server/services/cliproxy-dashboard-install-service.d.ts +21 -0
  1941. package/dist/web-server/services/cliproxy-dashboard-install-service.d.ts.map +1 -0
  1942. package/dist/web-server/services/cliproxy-dashboard-install-service.js +51 -0
  1943. package/dist/web-server/services/cliproxy-dashboard-install-service.js.map +1 -0
  1944. package/dist/web-server/services/codex-dashboard-service.d.ts +36 -0
  1945. package/dist/web-server/services/codex-dashboard-service.d.ts.map +1 -0
  1946. package/dist/web-server/services/codex-dashboard-service.js +740 -0
  1947. package/dist/web-server/services/codex-dashboard-service.js.map +1 -0
  1948. package/dist/web-server/services/compatible-cli-docs-registry.d.ts +23 -0
  1949. package/dist/web-server/services/compatible-cli-docs-registry.d.ts.map +1 -0
  1950. package/dist/web-server/services/compatible-cli-docs-registry.js +144 -0
  1951. package/dist/web-server/services/compatible-cli-docs-registry.js.map +1 -0
  1952. package/dist/web-server/services/compatible-cli-json-file-service.d.ts +41 -0
  1953. package/dist/web-server/services/compatible-cli-json-file-service.d.ts.map +1 -0
  1954. package/dist/web-server/services/compatible-cli-json-file-service.js +205 -0
  1955. package/dist/web-server/services/compatible-cli-json-file-service.js.map +1 -0
  1956. package/dist/web-server/services/compatible-cli-toml-file-service.d.ts +42 -0
  1957. package/dist/web-server/services/compatible-cli-toml-file-service.d.ts.map +1 -0
  1958. package/dist/web-server/services/compatible-cli-toml-file-service.js +271 -0
  1959. package/dist/web-server/services/compatible-cli-toml-file-service.js.map +1 -0
  1960. package/dist/web-server/services/compatible-cli-types.d.ts +63 -0
  1961. package/dist/web-server/services/compatible-cli-types.d.ts.map +1 -0
  1962. package/dist/web-server/services/compatible-cli-types.js +3 -0
  1963. package/dist/web-server/services/compatible-cli-types.js.map +1 -0
  1964. package/dist/web-server/services/droid-dashboard-service.d.ts +29 -0
  1965. package/dist/web-server/services/droid-dashboard-service.d.ts.map +1 -0
  1966. package/dist/web-server/services/droid-dashboard-service.js +238 -0
  1967. package/dist/web-server/services/droid-dashboard-service.js.map +1 -0
  1968. package/dist/web-server/services/index.d.ts +7 -0
  1969. package/dist/web-server/services/index.d.ts.map +1 -0
  1970. package/dist/web-server/services/index.js +21 -0
  1971. package/dist/web-server/services/index.js.map +1 -0
  1972. package/dist/web-server/services/usage-aggregator.d.ts +7 -0
  1973. package/dist/web-server/services/usage-aggregator.d.ts.map +1 -0
  1974. package/dist/web-server/services/usage-aggregator.js +23 -0
  1975. package/dist/web-server/services/usage-aggregator.js.map +1 -0
  1976. package/dist/web-server/shared-routes.d.ts +7 -0
  1977. package/dist/web-server/shared-routes.d.ts.map +1 -0
  1978. package/dist/web-server/shared-routes.js +547 -0
  1979. package/dist/web-server/shared-routes.js.map +1 -0
  1980. package/dist/web-server/shutdown.d.ts +14 -0
  1981. package/dist/web-server/shutdown.d.ts.map +1 -0
  1982. package/dist/web-server/shutdown.js +29 -0
  1983. package/dist/web-server/shutdown.js.map +1 -0
  1984. package/dist/web-server/usage/aggregator.d.ts +63 -0
  1985. package/dist/web-server/usage/aggregator.d.ts.map +1 -0
  1986. package/dist/web-server/usage/aggregator.js +537 -0
  1987. package/dist/web-server/usage/aggregator.js.map +1 -0
  1988. package/dist/web-server/usage/cliproxy-usage-syncer.d.ts +37 -0
  1989. package/dist/web-server/usage/cliproxy-usage-syncer.d.ts.map +1 -0
  1990. package/dist/web-server/usage/cliproxy-usage-syncer.js +158 -0
  1991. package/dist/web-server/usage/cliproxy-usage-syncer.js.map +1 -0
  1992. package/dist/web-server/usage/cliproxy-usage-transformer.d.ts +26 -0
  1993. package/dist/web-server/usage/cliproxy-usage-transformer.d.ts.map +1 -0
  1994. package/dist/web-server/usage/cliproxy-usage-transformer.js +141 -0
  1995. package/dist/web-server/usage/cliproxy-usage-transformer.js.map +1 -0
  1996. package/dist/web-server/usage/data-aggregator.d.ts +55 -0
  1997. package/dist/web-server/usage/data-aggregator.d.ts.map +1 -0
  1998. package/dist/web-server/usage/data-aggregator.js +397 -0
  1999. package/dist/web-server/usage/data-aggregator.js.map +1 -0
  2000. package/dist/web-server/usage/disk-cache.d.ts +46 -0
  2001. package/dist/web-server/usage/disk-cache.d.ts.map +1 -0
  2002. package/dist/web-server/usage/disk-cache.js +172 -0
  2003. package/dist/web-server/usage/disk-cache.js.map +1 -0
  2004. package/dist/web-server/usage/handlers.d.ts +50 -0
  2005. package/dist/web-server/usage/handlers.d.ts.map +1 -0
  2006. package/dist/web-server/usage/handlers.js +530 -0
  2007. package/dist/web-server/usage/handlers.js.map +1 -0
  2008. package/dist/web-server/usage/index.d.ts +12 -0
  2009. package/dist/web-server/usage/index.d.ts.map +1 -0
  2010. package/dist/web-server/usage/index.js +54 -0
  2011. package/dist/web-server/usage/index.js.map +1 -0
  2012. package/dist/web-server/usage/routes.d.ts +11 -0
  2013. package/dist/web-server/usage/routes.d.ts.map +1 -0
  2014. package/dist/web-server/usage/routes.js +37 -0
  2015. package/dist/web-server/usage/routes.js.map +1 -0
  2016. package/dist/web-server/usage/types.d.ts +121 -0
  2017. package/dist/web-server/usage/types.d.ts.map +1 -0
  2018. package/dist/web-server/usage/types.js +9 -0
  2019. package/dist/web-server/usage/types.js.map +1 -0
  2020. package/dist/web-server/usage-disk-cache.d.ts +7 -0
  2021. package/dist/web-server/usage-disk-cache.d.ts.map +1 -0
  2022. package/dist/web-server/usage-disk-cache.js +23 -0
  2023. package/dist/web-server/usage-disk-cache.js.map +1 -0
  2024. package/dist/web-server/usage-routes.d.ts +7 -0
  2025. package/dist/web-server/usage-routes.d.ts.map +1 -0
  2026. package/dist/web-server/usage-routes.js +14 -0
  2027. package/dist/web-server/usage-routes.js.map +1 -0
  2028. package/dist/web-server/usage-types.d.ts +7 -0
  2029. package/dist/web-server/usage-types.d.ts.map +1 -0
  2030. package/dist/web-server/usage-types.js +23 -0
  2031. package/dist/web-server/usage-types.js.map +1 -0
  2032. package/dist/web-server/websocket.d.ts +15 -0
  2033. package/dist/web-server/websocket.d.ts.map +1 -0
  2034. package/dist/web-server/websocket.js +162 -0
  2035. package/dist/web-server/websocket.js.map +1 -0
  2036. package/lib/ccs +32 -0
  2037. package/lib/ccs.ps1 +39 -0
  2038. package/lib/error-codes.ps1 +66 -0
  2039. package/lib/error-codes.sh +67 -0
  2040. package/lib/hooks/block-websearch.cjs +75 -0
  2041. package/lib/hooks/image-analysis-runtime.cjs +469 -0
  2042. package/lib/hooks/image-analyzer-transformer.cjs +527 -0
  2043. package/lib/hooks/websearch-transformer.cjs +1283 -0
  2044. package/lib/mcp/ccs-image-analysis-server.cjs +440 -0
  2045. package/lib/mcp/ccs-websearch-server.cjs +339 -0
  2046. package/lib/progress-indicator.ps1 +120 -0
  2047. package/lib/progress-indicator.sh +117 -0
  2048. package/lib/prompt.ps1 +109 -0
  2049. package/lib/prompt.sh +99 -0
  2050. package/lib/prompts/image-analysis-default.txt +12 -0
  2051. package/lib/prompts/image-analysis-document.txt +13 -0
  2052. package/lib/prompts/image-analysis-screenshot.txt +13 -0
  2053. package/package.json +149 -0
  2054. package/scripts/add-shebang.js +52 -0
  2055. package/scripts/bump-version.sh +153 -0
  2056. package/scripts/check-executables.js +18 -0
  2057. package/scripts/ci-parity-gate.sh +51 -0
  2058. package/scripts/clean-dist.js +46 -0
  2059. package/scripts/code-reviewer.ts +217 -0
  2060. package/scripts/completion/README.md +232 -0
  2061. package/scripts/completion/ccs.bash +42 -0
  2062. package/scripts/completion/ccs.fish +30 -0
  2063. package/scripts/completion/ccs.ps1 +56 -0
  2064. package/scripts/completion/ccs.zsh +41 -0
  2065. package/scripts/dev-install.sh +108 -0
  2066. package/scripts/dev-release.sh +175 -0
  2067. package/scripts/dev-symlink.sh +115 -0
  2068. package/scripts/get-version.sh +16 -0
  2069. package/scripts/github/build-ai-review-packet.mjs +242 -0
  2070. package/scripts/github/ccs-backlog-sync-lib.mjs +379 -0
  2071. package/scripts/github/ccs-backlog-sync.mjs +6 -0
  2072. package/scripts/github/normalize-ai-review-output.mjs +934 -0
  2073. package/scripts/github/prepare-ai-review-scope.mjs +324 -0
  2074. package/scripts/github/run-ai-review-direct.mjs +349 -0
  2075. package/scripts/hardening-inventory.js +526 -0
  2076. package/scripts/postinstall.js +358 -0
  2077. package/scripts/postuninstall.js +48 -0
  2078. package/scripts/pre-release.sh +39 -0
  2079. package/scripts/preinstall.js +59 -0
  2080. package/scripts/send-discord-release.cjs +249 -0
  2081. package/scripts/verify-bundle.js +56 -0
  2082. package/scripts/worker.js +26 -0
  2083. package/scripts/wrangler.toml +15 -0
@@ -0,0 +1,8 @@
1
+ import{j as e}from"./radix-ui-Zb8sVEtn.js";import{r as j}from"./react-vendor-CNOkPC89.js";import{a as Q,bc as ee,bd as se,be as te,Q as ae,R as re,U as ne,B as $,b5 as S,b6 as M,b7 as L,d as I,I as le,n as B,c as U,C as ie,b as de}from"./index-C49jYnaE.js";import{a0 as ce,a6 as oe,aZ as me,T as E,R as T,F as he,an as ue,u as xe}from"./icons-BfVvKgF4.js";import"./tanstack-DWm6aJ-G.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: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}],Z=z.reduce((i,v)=>i+v.count,0),H=!x&&!g&&N.length===0,K=!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:Z}),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")]})]})}):H?e.jsx("div",{className:"p-4 text-sm text-muted-foreground",children:s("sharedPage.noSharedFound",{tab:a})}):K?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
+ `).trim();if(!a)return{blocks:[],frontmatter:[]};let l=a;const t=[];if(l.startsWith(`---
3
+ `)){const r=l.indexOf(`
4
+ ---
5
+ `,4);if(r!==-1){const d=l.slice(4,r).trim();for(const n of d.split(`
6
+ `)){const o=n.match(/^([A-Za-z0-9_-]+)\s*:\s*(.+)$/);o&&t.push({key:o[1],value:o[2].trim().replace(/^['"]|['"]$/g,"")})}l=l.slice(r+5).trim()}}return{blocks:je(l),frontmatter:t}}function je(s){if(!s.trim())return[];const a=s.split(`
7
+ `),l=[];let t=[],r=[],d=[],n="",o=null;const c=()=>{t.length!==0&&(l.push({type:"paragraph",text:t.join(" ")}),t=[])},h=()=>{r.length!==0&&(l.push({type:"unordered-list",items:r}),r=[])},p=()=>{d.length!==0&&(l.push({type:"ordered-list",items:d}),d=[])},w=()=>{o&&(l.push({type:"code",language:n,content:o.join(`
8
+ `)}),n="",o=null)};for(const m of a){if(o){m.trim().startsWith("```")?w():o.push(m);continue}if(m.trim().startsWith("```")){c(),h(),p(),n=m.trim().replace(/^```/,"").trim(),o=[];continue}if(m.trim().length===0){c(),h(),p();continue}const x=m.match(/^(#{1,6})\s+(.*)$/);if(x){c(),h(),p(),l.push({type:"heading",level:x[1].length,text:x[2].trim()});continue}const y=m.match(/^\s*[-*]\s+(.*)$/);if(y){c(),p(),r.push(y[1].trim());continue}const g=m.match(/^\s*\d+\.\s+(.*)$/);if(g){c(),h(),d.push(g[1].trim());continue}h(),p(),t.push(m.trim())}return c(),h(),p(),w(),l}export{Se as SharedPage};
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path clip-rule="evenodd" d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Cursor</title><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"></path></svg>
@@ -0,0 +1 @@
1
+ import{j as t}from"./radix-ui-Zb8sVEtn.js";import"./react-vendor-CNOkPC89.js";import{c as l}from"./index-C49jYnaE.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};
@@ -0,0 +1,4 @@
1
+ import{r as w}from"./react-vendor-CNOkPC89.js";import{j as vt}from"./radix-ui-Zb8sVEtn.js";var k=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},St={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ct=class{#t=St;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},z=new Ct;function yt(e){setTimeout(e,0)}var Q=typeof window>"u"||"Deno"in globalThis;function M(){}function Rt(e,t){return typeof e=="function"?e(t):e}function de(e){return typeof e=="number"&&e>=0&&e!==1/0}function je(e,t){return Math.max(e+(t||0)-Date.now(),0)}function H(e,t){return typeof e=="function"?e(t):e}function E(e,t){return typeof e=="function"?e(t):e}function Ee(e,t){const{type:n="all",exact:s,fetchStatus:i,predicate:r,queryKey:o,stale:u}=e;if(o){if(s){if(t.queryHash!==Fe(o,t.options))return!1}else if(!N(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||r&&!r(t))}function Ve(e,t){const{exact:n,status:s,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(n){if(q(t.options.mutationKey)!==q(r))return!1}else if(!N(t.options.mutationKey,r))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function Fe(e,t){return(t?.queryKeyHashFn||q)(e)}function q(e){return JSON.stringify(e,(t,n)=>ge(n)?Object.keys(n).sort().reduce((s,i)=>(s[i]=n[i],s),{}):n)}function N(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>N(e[n],t[n])):!1}var wt=Object.prototype.hasOwnProperty;function ne(e,t){if(e===t)return e;const n=De(e)&&De(t);if(!n&&!(ge(e)&&ge(t)))return t;const i=(n?e:Object.keys(e)).length,r=n?t:Object.keys(t),o=r.length,u=n?new Array(o):{};let l=0;for(let c=0;c<o;c++){const a=n?c:r[c],p=e[a],g=t[a];if(p===g){u[a]=p,(n?c<i:wt.call(e,a))&&l++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){u[a]=g;continue}const d=ne(p,g);u[a]=d,d===p&&l++}return i===o&&l===i?e:u}function K(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function De(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ge(e){if(!Ae(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ae(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ae(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ft(e){return new Promise(t=>{z.setTimeout(t,e)})}function fe(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ne(e,t):t}function _t(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function Pt(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var _e=Symbol();function Be(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_e?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ne(e,t){return typeof e=="function"?e(...t):!!e}var Mt=class extends k{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Q&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Pe=new Mt;function he(){let e,t;const n=new Promise((i,r)=>{e=i,t=r});n.status="pending",n.catch(()=>{});function s(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},n.reject=i=>{s({status:"rejected",reason:i}),t(i)},n}var Ot=yt;function xt(){let e=[],t=0,n=u=>{u()},s=u=>{u()},i=Ot;const r=u=>{t?e.push(u):i(()=>{n(u)})},o=()=>{const u=e;e=[],u.length&&i(()=>{s(()=>{u.forEach(l=>{n(l)})})})};return{batch:u=>{let l;t++;try{l=u()}finally{t--,t||o()}return l},batchCalls:u=>(...l)=>{r(()=>{u(...l)})},schedule:r,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{s=u},setScheduler:u=>{i=u}}}var F=xt(),It=class extends k{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Q&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},ee=new It;function $t(e){return Math.min(1e3*2**e,3e4)}function Ke(e){return(e??"online")==="online"?ee.isOnline():!0}var pe=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Xe(e){let t=!1,n=0,s;const i=he(),r=()=>i.status!=="pending",o=f=>{if(!r()){const v=new pe(f);g(v),e.onCancel?.(v)}},u=()=>{t=!0},l=()=>{t=!1},c=()=>Pe.isFocused()&&(e.networkMode==="always"||ee.isOnline())&&e.canRun(),a=()=>Ke(e.networkMode)&&e.canRun(),p=f=>{r()||(s?.(),i.resolve(f))},g=f=>{r()||(s?.(),i.reject(f))},d=()=>new Promise(f=>{s=v=>{(r()||c())&&f(v)},e.onPause?.()}).then(()=>{s=void 0,r()||e.onContinue?.()}),h=()=>{if(r())return;let f;const v=n===0?e.initialPromise:void 0;try{f=v??e.fn()}catch(m){f=Promise.reject(m)}Promise.resolve(f).then(p).catch(m=>{if(r())return;const y=e.retry??(Q?0:3),R=e.retryDelay??$t,_=typeof R=="function"?R(n,m):R,O=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,m);if(t||!O){g(m);return}n++,e.onFail?.(n,m),Ft(_).then(()=>c()?void 0:d()).then(()=>{t?g(m):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(s?.(),i),cancelRetry:u,continueRetry:l,canStart:a,start:()=>(a()?h():d().then(h),i)}}var We=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),de(this.gcTime)&&(this.#t=z.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Q?1/0:300*1e3))}clearGcTimeout(){this.#t&&(z.clearTimeout(this.#t),this.#t=void 0)}},Et=class extends We{#t;#e;#n;#i;#s;#r;#u;constructor(e){super(),this.#u=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=He(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=He(this.options);t.data!==void 0&&(this.setState(be(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=fe(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(M).catch(M):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>E(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_e||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>H(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!je(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#u?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(l=>l.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,s=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},i=()=>{const u=Be(this.options,t),c=(()=>{const a={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(a),a})();return this.#u=!1,this.options.persister?this.options.persister(u,c,this):u(c)},o=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return s(u),u})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#o({type:"fetch",meta:o.fetchOptions?.meta}),this.#s=Xe({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:u=>{u instanceof pe&&u.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(u,l)=>{this.#o({type:"failed",failureCount:u,error:l})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const u=await this.#s.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof pe){if(u.silent)return this.#s.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#o({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Je(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...be(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?s:void 0,s;case"error":const i=e.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),F.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Je(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ke(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function be(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function He(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Me=class extends k{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#u=he(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#i=void 0;#s;#r;#u;#o;#f;#d;#g;#a;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Le(this.#e,this.options)?this.#h():this.updateResult(),this.#C())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return me(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return me(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#R(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof E(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!K(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&Ge(this.#e,n,this.options,t)&&this.#h(),this.updateResult(),s&&(this.#e!==n||E(this.options.enabled,this.#e)!==E(t.enabled,this.#e)||H(this.options.staleTime,this.#e)!==H(t.staleTime,this.#e))&&this.#m();const i=this.#v();s&&(this.#e!==n||E(this.options.enabled,this.#e)!==E(t.enabled,this.#e)||i!==this.#l)&&this.#S(i)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return Dt(this,n)&&(this.#i=n,this.#r=this.options,this.#s=this.#e.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,s)=>(this.trackProp(s),t?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#h(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(M)),t}#m(){this.#y();const e=H(this.options.staleTime,this.#e);if(Q||this.#i.isStale||!de(e))return;const n=je(this.#i.dataUpdatedAt,e)+1;this.#a=z.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#S(e){this.#R(),this.#l=e,!(Q||E(this.options.enabled,this.#e)===!1||!de(this.#l)||this.#l===0)&&(this.#c=z.setInterval(()=>{(this.options.refetchIntervalInBackground||Pe.isFocused())&&this.#h()},this.#l))}#C(){this.#m(),this.#S(this.#v())}#y(){this.#a&&(z.clearTimeout(this.#a),this.#a=void 0)}#R(){this.#c&&(z.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,s=this.options,i=this.#i,r=this.#s,o=this.#r,l=e!==n?e.state:this.#n,{state:c}=e;let a={...c},p=!1,g;if(t._optimisticResults){const x=this.hasListeners(),U=!x&&Le(e,t),A=x&&Ge(e,n,t,s);(U||A)&&(a={...a,...Je(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(a.fetchStatus="idle")}let{error:d,errorUpdatedAt:h,status:f}=a;g=a.data;let v=!1;if(t.placeholderData!==void 0&&g===void 0&&f==="pending"){let x;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(x=i.data,v=!0):x=typeof t.placeholderData=="function"?t.placeholderData(this.#g?.state.data,this.#g):t.placeholderData,x!==void 0&&(f="success",g=fe(i?.data,x,t),p=!0)}if(t.select&&g!==void 0&&!v)if(i&&g===r?.data&&t.select===this.#f)g=this.#d;else try{this.#f=t.select,g=t.select(g),g=fe(i?.data,g,t),this.#d=g,this.#o=null}catch(x){this.#o=x}this.#o&&(d=this.#o,g=this.#d,h=Date.now(),f="error");const m=a.fetchStatus==="fetching",y=f==="pending",R=f==="error",_=y&&m,O=g!==void 0,I={status:f,fetchStatus:a.fetchStatus,isPending:y,isSuccess:f==="success",isError:R,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:a.dataUpdatedAt,error:d,errorUpdatedAt:h,failureCount:a.fetchFailureCount,failureReason:a.fetchFailureReason,errorUpdateCount:a.errorUpdateCount,isFetched:a.dataUpdateCount>0||a.errorUpdateCount>0,isFetchedAfterMount:a.dataUpdateCount>l.dataUpdateCount||a.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!y,isLoadingError:R&&!O,isPaused:a.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:R&&O,isStale:Oe(e,t),refetch:this.refetch,promise:this.#u,isEnabled:E(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const x=T=>{I.status==="error"?T.reject(I.error):I.data!==void 0&&T.resolve(I.data)},U=()=>{const T=this.#u=I.promise=he();x(T)},A=this.#u;switch(A.status){case"pending":e.queryHash===n.queryHash&&x(A);break;case"fulfilled":(I.status==="error"||I.data!==A.value)&&U();break;case"rejected":(I.status!=="error"||I.error!==A.reason)&&U();break}}return I}updateResult(){const e=this.#i,t=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#r=this.options,this.#s.data!==void 0&&(this.#g=this.#e),K(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!this.#p.size)return!0;const r=new Set(i??this.#p);return this.options.throwOnError&&r.add("error"),Object.keys(this.#i).some(o=>{const u=o;return this.#i[u]!==e[u]&&r.has(u)})};this.#F({listeners:n()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#C()}#F(e){F.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Vt(e,t){return E(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Le(e,t){return Vt(e,t)||e.state.data!==void 0&&me(e,t,t.refetchOnMount)}function me(e,t,n){if(E(t.enabled,e)!==!1&&H(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&Oe(e,t)}return!1}function Ge(e,t,n,s){return(e!==t||E(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Oe(e,n)}function Oe(e,t){return E(t.enabled,e)!==!1&&e.isStaleByTime(H(t.staleTime,e))}function Dt(e,t){return!K(e.getCurrentResult(),t)}function Te(e){return{onFetch:(t,n)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,r=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},l=0;const c=async()=>{let a=!1;const p=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(t.signal.aborted?a=!0:t.signal.addEventListener("abort",()=>{a=!0}),t.signal)})},g=Be(t.options,t.fetchOptions),d=async(h,f,v)=>{if(a)return Promise.reject();if(f==null&&h.pages.length)return Promise.resolve(h);const y=(()=>{const G={client:t.client,queryKey:t.queryKey,pageParam:f,direction:v?"backward":"forward",meta:t.options.meta};return p(G),G})(),R=await g(y),{maxPages:_}=t.options,O=v?Pt:_t;return{pages:O(h.pages,R,_),pageParams:O(h.pageParams,f,_)}};if(i&&r.length){const h=i==="backward",f=h?At:ze,v={pages:r,pageParams:o},m=f(s,v);u=await d(v,m,h)}else{const h=e??r.length;do{const f=l===0?o[0]??s.initialPageParam:ze(s,u);if(l>0&&f==null)break;u=await d(u,f),l++}while(l<h)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function ze(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function At(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var bt=class extends We{#t;#e;#n;#i;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Ze(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Xe({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(r,o)=>{this.#s({type:"failed",failureCount:r,error:o})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",i=!this.#i.canStart();try{if(s)t();else{this.#s({type:"pending",variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);const o=await this.options.onMutate?.(e,n);o!==this.state.context&&this.#s({type:"pending",context:o,variables:e,isPaused:i})}const r=await this.#i.start();return await this.#n.config.onSuccess?.(r,e,this.state.context,this,n),await this.options.onSuccess?.(r,e,this.state.context,n),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(r,null,e,this.state.context,n),this.#s({type:"success",data:r}),r}catch(r){try{throw await this.#n.config.onError?.(r,e,this.state.context,this,n),await this.options.onError?.(r,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,r,e,this.state.context,n),r}finally{this.#s({type:"error",error:r})}}finally{this.#n.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),F.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Ze(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ht=class extends k{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const s=new bt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(s),s}add(e){this.#t.add(e);const t=W(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=W(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const s=n.indexOf(e);s!==-1&&n.splice(s,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=W(e);if(typeof t=="string"){const s=this.#e.get(t)?.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){const t=W(e);return typeof t=="string"?this.#e.get(t)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){F.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Ve(t,n))}findAll(e={}){return this.getAll().filter(t=>Ve(e,t))}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return F.batch(()=>Promise.all(e.map(t=>t.continue().catch(M))))}};function W(e){return e.options.scope?.id}var Lt=class extends k{#t;#e=void 0;#n;#i;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),K(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&q(t.mutationKey)!==q(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#r(e)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(e,t){return this.#i=t,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(e)}#s(){const e=this.#n?.state??Ze();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){F.batch(()=>{if(this.#i&&this.hasListeners()){const t=this.#e.variables,n=this.#e.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#i.onSuccess?.(e.data,t,n,s),this.#i.onSettled?.(e.data,null,t,n,s)):e?.type==="error"&&(this.#i.onError?.(e.error,t,n,s),this.#i.onSettled?.(void 0,e.error,t,n,s))}this.listeners.forEach(t=>{t(this.#e)})})}};function Qe(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function Gt(e,t,n){const s=e.slice(0);return s[t]=n,s}var Tt=class extends k{#t;#e;#n;#i;#s;#r;#u;#o;#f=[];constructor(e,t,n){super(),this.#t=e,this.#i=n,this.#n=[],this.#s=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#i=t,F.batch(()=>{const n=this.#s,s=this.#a(this.#n);this.#f=s,s.forEach(a=>a.observer.setOptions(a.defaultedQueryOptions));const i=s.map(a=>a.observer),r=i.map(a=>a.getCurrentResult()),o=n.length!==i.length,u=i.some((a,p)=>a!==n[p]),l=o||u,c=l?!0:r.some((a,p)=>{const g=this.#e[p];return!g||!K(a,g)});!l&&!c||(l&&(this.#s=i),this.#e=r,this.hasListeners()&&(l&&(Qe(n,i).forEach(a=>{a.destroy()}),Qe(i,n).forEach(a=>{a.subscribe(p=>{this.#c(a,p)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){const n=this.#a(e),s=n.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[s,i=>this.#g(i??s,t),()=>this.#d(s,n)]}#d(e,t){return t.map((n,s)=>{const i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,r=>{t.forEach(o=>{o.observer.trackProp(r)})})})}#g(e,t){return t?((!this.#r||this.#e!==this.#o||t!==this.#u)&&(this.#u=t,this.#o=this.#e,this.#r=ne(this.#r,t(e))),this.#r):e}#a(e){const t=new Map;this.#s.forEach(s=>{const i=s.options.queryHash;if(!i)return;const r=t.get(i);r?r.push(s):t.set(i,[s])});const n=[];return e.forEach(s=>{const i=this.#t.defaultQueryOptions(s),o=t.get(i.queryHash)?.shift()??new Me(this.#t,i);n.push({defaultedQueryOptions:i,observer:o})}),n}#c(e,t){const n=this.#s.indexOf(e);n!==-1&&(this.#e=Gt(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#r,t=this.#d(this.#e,this.#f),n=this.#g(t,this.#i?.combine);e!==n&&F.batch(()=>{this.listeners.forEach(s=>{s(this.#e)})})}}},zt=class extends k{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const s=t.queryKey,i=t.queryHash??Fe(s,t);let r=this.get(i);return r||(r=new Et({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(r)),r}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){F.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Ee(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Ee(e,n)):t}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){F.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){F.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ln=class{#t;#e;#n;#i;#s;#r;#u;#o;constructor(e={}){this.#t=e.queryCache||new zt,this.#e=e.mutationCache||new Ht,this.#n=e.defaultOptions||{},this.#i=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#u=Pe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#u?.(),this.#u=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(H(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=this.#t.get(s.queryHash)?.state.data,o=Rt(t,r);if(o!==void 0)return this.#t.build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return F.batch(()=>this.#t.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;F.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return F.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=F.batch(()=>this.#t.findAll(e).map(i=>i.cancel(n)));return Promise.all(s).then(M).catch(M)}invalidateQueries(e,t={}){return F.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=F.batch(()=>this.#t.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let r=i.fetch(void 0,n);return n.throwOnError||(r=r.catch(M)),i.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(s).then(M)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(H(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(M).catch(M)}fetchInfiniteQuery(e){return e.behavior=Te(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(M).catch(M)}ensureInfiniteQueryData(e){return e.behavior=Te(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ee.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#i.set(q(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(s=>{N(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(q(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(s=>{N(e,s.mutationKey)&&Object.assign(n,s.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Fe(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===_e&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Ye=w.createContext(void 0),X=e=>{const t=w.useContext(Ye);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gn=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),vt.jsx(Ye.Provider,{value:e,children:t})),et=w.createContext(!1),tt=()=>w.useContext(et);et.Provider;function Qt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var qt=w.createContext(Qt()),nt=()=>w.useContext(qt),st=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},it=e=>{w.useEffect(()=>{e.clearReset()},[e])},rt=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||Ne(n,[e.error,s])),ot=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...i)=>n(s(...i)):n(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},ut=(e,t)=>e.isLoading&&e.isFetching&&!t,ve=(e,t)=>e?.suspense&&t.isPending,te=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Tn({queries:e,...t},n){const s=X(n),i=tt(),r=nt(),o=w.useMemo(()=>e.map(f=>{const v=s.defaultQueryOptions(f);return v._optimisticResults=i?"isRestoring":"optimistic",v}),[e,s,i]);o.forEach(f=>{ot(f),st(f,r)}),it(r);const[u]=w.useState(()=>new Tt(s,o,t)),[l,c,a]=u.getOptimisticResult(o,t.combine),p=!i&&t.subscribed!==!1;w.useSyncExternalStore(w.useCallback(f=>p?u.subscribe(F.batchCalls(f)):M,[u,p]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),w.useEffect(()=>{u.setQueries(o,t)},[o,t,u]);const d=l.some((f,v)=>ve(o[v],f))?l.flatMap((f,v)=>{const m=o[v];if(m){const y=new Me(s,m);if(ve(m,f))return te(m,y,r);ut(f,i)&&te(m,y,r)}return[]}):[];if(d.length>0)throw Promise.all(d);const h=l.find((f,v)=>{const m=o[v];return m&&rt({result:f,errorResetBoundary:r,throwOnError:m.throwOnError,query:s.getQueryCache().get(m.queryHash),suspense:m.suspense})});if(h?.error)throw h.error;return c(a())}function kt(e,t,n){const s=tt(),i=nt(),r=X(n),o=r.defaultQueryOptions(e);r.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=s?"isRestoring":"optimistic",ot(o),st(o,i),it(i);const u=!r.getQueryCache().get(o.queryHash),[l]=w.useState(()=>new t(r,o)),c=l.getOptimisticResult(o),a=!s&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(p=>{const g=a?l.subscribe(F.batchCalls(p)):M;return l.updateResult(),g},[l,a]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),w.useEffect(()=>{l.setOptions(o)},[o,l]),ve(o,c))throw te(o,l,i);if(rt({result:c,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!Q&&ut(c,s)&&(u?te(o,l,i):r.getQueryCache().get(o.queryHash)?.promise)?.catch(M).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?c:l.trackResult(c)}function zn(e,t){return kt(e,Me,t)}function Qn(e,t){const n=X(t);return Ut({filters:{...e,status:"pending"}},n).length}function qe(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function Ut(e={},t){const n=X(t).getMutationCache(),s=w.useRef(e),i=w.useRef(null);return i.current===null&&(i.current=qe(n,e)),w.useEffect(()=>{s.current=e}),w.useSyncExternalStore(w.useCallback(r=>n.subscribe(()=>{const o=ne(i.current,qe(n,s.current));i.current!==o&&(i.current=o,F.schedule(r))}),[n]),()=>i.current,()=>i.current)}function qn(e,t){const n=X(t),[s]=w.useState(()=>new Lt(n,e));w.useEffect(()=>{s.setOptions(e)},[s,e]);const i=w.useSyncExternalStore(w.useCallback(o=>s.subscribe(F.batchCalls(o)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),r=w.useCallback((o,u)=>{s.mutate(o,u).catch(M)},[s]);if(i.error&&Ne(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:r,mutateAsync:i.mutate}}function b(e,t){return typeof e=="function"?e(t):e}function $(e,t){return n=>{t.setState(s=>({...s,[e]:b(n,s[e])}))}}function se(e){return e instanceof Function}function jt(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Bt(e,t){const n=[],s=i=>{i.forEach(r=>{n.push(r);const o=t(r);o!=null&&o.length&&s(o)})};return s(e),n}function S(e,t,n){let s=[],i;return r=>{let o;n.key&&n.debug&&(o=Date.now());const u=e(r);if(!(u.length!==s.length||u.some((a,p)=>s[p]!==a)))return i;s=u;let c;if(n.key&&n.debug&&(c=Date.now()),i=t(...u),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const a=Math.round((Date.now()-o)*100)/100,p=Math.round((Date.now()-c)*100)/100,g=p/16,d=(h,f)=>{for(h=String(h);h.length<f;)h=" "+h;return h};console.info(`%c⏱ ${d(p,5)} /${d(a,5)} ms`,`
2
+ font-size: .6rem;
3
+ font-weight: bold;
4
+ color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n?.key)}return i}}function C(e,t,n,s){return{debug:()=>{var i;return(i=e?.debugAll)!=null?i:e[t]},key:!1,onChange:s}}function Nt(e,t,n,s){const i=()=>{var o;return(o=r.getValue())!=null?o:e.options.renderFallbackValue},r={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(s),renderValue:i,getContext:S(()=>[e,n,t,r],(o,u,l,c)=>({table:o,column:u,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),C(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(r,n,t,e)},{}),r}function Kt(e,t,n,s){var i,r;const u={...e._getDefaultColumnDef(),...t},l=u.accessorKey;let c=(i=(r=u.id)!=null?r:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof u.header=="string"?u.header:void 0,a;if(u.accessorFn?a=u.accessorFn:l&&(l.includes(".")?a=g=>{let d=g;for(const f of l.split(".")){var h;d=(h=d)==null?void 0:h[f]}return d}:a=g=>g[u.accessorKey]),!c)throw new Error;let p={id:`${String(c)}`,accessorFn:a,parent:s,depth:n,columnDef:u,columns:[],getFlatColumns:S(()=>[!0],()=>{var g;return[p,...(g=p.columns)==null?void 0:g.flatMap(d=>d.getFlatColumns())]},C(e.options,"debugColumns")),getLeafColumns:S(()=>[e._getOrderColumnsFn()],g=>{var d;if((d=p.columns)!=null&&d.length){let h=p.columns.flatMap(f=>f.getLeafColumns());return g(h)}return[p]},C(e.options,"debugColumns"))};for(const g of e._features)g.createColumn==null||g.createColumn(p,e);return p}const P="debugHeaders";function ke(e,t,n){var s;let r={id:(s=n.id)!=null?s:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],u=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(u),o.push(l)};return u(r),o},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(r,e)}),r}const Xt={createTable:e=>{e.getHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,s,i)=>{var r,o;const u=(r=s?.map(p=>n.find(g=>g.id===p)).filter(Boolean))!=null?r:[],l=(o=i?.map(p=>n.find(g=>g.id===p)).filter(Boolean))!=null?o:[],c=n.filter(p=>!(s!=null&&s.includes(p.id))&&!(i!=null&&i.includes(p.id)));return J(t,[...u,...c,...l],e)},C(e.options,P)),e.getCenterHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,s,i)=>(n=n.filter(r=>!(s!=null&&s.includes(r.id))&&!(i!=null&&i.includes(r.id))),J(t,n,e,"center")),C(e.options,P)),e.getLeftHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,s)=>{var i;const r=(i=s?.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?i:[];return J(t,r,e,"left")},C(e.options,P)),e.getRightHeaderGroups=S(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,s)=>{var i;const r=(i=s?.map(o=>n.find(u=>u.id===o)).filter(Boolean))!=null?i:[];return J(t,r,e,"right")},C(e.options,P)),e.getFooterGroups=S(()=>[e.getHeaderGroups()],t=>[...t].reverse(),C(e.options,P)),e.getLeftFooterGroups=S(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),C(e.options,P)),e.getCenterFooterGroups=S(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),C(e.options,P)),e.getRightFooterGroups=S(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),C(e.options,P)),e.getFlatHeaders=S(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),C(e.options,P)),e.getLeftFlatHeaders=S(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),C(e.options,P)),e.getCenterFlatHeaders=S(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),C(e.options,P)),e.getRightFlatHeaders=S(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),C(e.options,P)),e.getCenterLeafHeaders=S(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var s;return!((s=n.subHeaders)!=null&&s.length)}),C(e.options,P)),e.getLeftLeafHeaders=S(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var s;return!((s=n.subHeaders)!=null&&s.length)}),C(e.options,P)),e.getRightLeafHeaders=S(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var s;return!((s=n.subHeaders)!=null&&s.length)}),C(e.options,P)),e.getLeafHeaders=S(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,s)=>{var i,r,o,u,l,c;return[...(i=(r=t[0])==null?void 0:r.headers)!=null?i:[],...(o=(u=n[0])==null?void 0:u.headers)!=null?o:[],...(l=(c=s[0])==null?void 0:c.headers)!=null?l:[]].map(a=>a.getLeafHeaders()).flat()},C(e.options,P))}};function J(e,t,n,s){var i,r;let o=0;const u=function(g,d){d===void 0&&(d=1),o=Math.max(o,d),g.filter(h=>h.getIsVisible()).forEach(h=>{var f;(f=h.columns)!=null&&f.length&&u(h.columns,d+1)},0)};u(e);let l=[];const c=(g,d)=>{const h={depth:d,id:[s,`${d}`].filter(Boolean).join("_"),headers:[]},f=[];g.forEach(v=>{const m=[...f].reverse()[0],y=v.column.depth===h.depth;let R,_=!1;if(y&&v.column.parent?R=v.column.parent:(R=v.column,_=!0),m&&m?.column===R)m.subHeaders.push(v);else{const O=ke(n,R,{id:[s,d,R.id,v?.id].filter(Boolean).join("_"),isPlaceholder:_,placeholderId:_?`${f.filter(G=>G.column===R).length}`:void 0,depth:d,index:f.length});O.subHeaders.push(v),f.push(O)}h.headers.push(v),v.headerGroup=h}),l.push(h),d>0&&c(f,d-1)},a=t.map((g,d)=>ke(n,g,{depth:o,index:d}));c(a,o-1),l.reverse();const p=g=>g.filter(h=>h.column.getIsVisible()).map(h=>{let f=0,v=0,m=[0];h.subHeaders&&h.subHeaders.length?(m=[],p(h.subHeaders).forEach(R=>{let{colSpan:_,rowSpan:O}=R;f+=_,m.push(O)})):f=1;const y=Math.min(...m);return v=v+y,h.colSpan=f,h.rowSpan=v,{colSpan:f,rowSpan:v}});return p((i=(r=l[0])==null?void 0:r.headers)!=null?i:[]),l}const Wt=(e,t,n,s,i,r,o)=>{let u={id:t,index:s,original:n,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(u._valuesCache.hasOwnProperty(l))return u._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return u._valuesCache[l]=c.accessorFn(u.original,s),u._valuesCache[l]},getUniqueValues:l=>{if(u._uniqueValuesCache.hasOwnProperty(l))return u._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(u._uniqueValuesCache[l]=c.columnDef.getUniqueValues(u.original,s),u._uniqueValuesCache[l]):(u._uniqueValuesCache[l]=[u.getValue(l)],u._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=u.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Bt(u.subRows,l=>l.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let l=[],c=u;for(;;){const a=c.getParentRow();if(!a)break;l.push(a),c=a}return l.reverse()},getAllCells:S(()=>[e.getAllLeafColumns()],l=>l.map(c=>Nt(e,u,c,c.id)),C(e.options,"debugRows")),_getAllCellsByColumnId:S(()=>[u.getAllCells()],l=>l.reduce((c,a)=>(c[a.column.id]=a,c),{}),C(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(u,e)}return u},Jt={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},lt=(e,t,n)=>{var s,i;const r=n==null||(s=n.toString())==null?void 0:s.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(r))};lt.autoRemove=e=>V(e);const at=(e,t,n)=>{var s;return!!(!((s=e.getValue(t))==null||(s=s.toString())==null)&&s.includes(n))};at.autoRemove=e=>V(e);const ct=(e,t,n)=>{var s;return((s=e.getValue(t))==null||(s=s.toString())==null?void 0:s.toLowerCase())===n?.toLowerCase()};ct.autoRemove=e=>V(e);const dt=(e,t,n)=>{var s;return(s=e.getValue(t))==null?void 0:s.includes(n)};dt.autoRemove=e=>V(e);const gt=(e,t,n)=>!n.some(s=>{var i;return!((i=e.getValue(t))!=null&&i.includes(s))});gt.autoRemove=e=>V(e)||!(e!=null&&e.length);const ft=(e,t,n)=>n.some(s=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(s)});ft.autoRemove=e=>V(e)||!(e!=null&&e.length);const ht=(e,t,n)=>e.getValue(t)===n;ht.autoRemove=e=>V(e);const pt=(e,t,n)=>e.getValue(t)==n;pt.autoRemove=e=>V(e);const xe=(e,t,n)=>{let[s,i]=n;const r=e.getValue(t);return r>=s&&r<=i};xe.resolveFilterValue=e=>{let[t,n]=e,s=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,r=t===null||Number.isNaN(s)?-1/0:s,o=n===null||Number.isNaN(i)?1/0:i;if(r>o){const u=r;r=o,o=u}return[r,o]};xe.autoRemove=e=>V(e)||V(e[0])&&V(e[1]);const D={includesString:lt,includesStringSensitive:at,equalsString:ct,arrIncludes:dt,arrIncludesAll:gt,arrIncludesSome:ft,equals:ht,weakEquals:pt,inNumberRange:xe};function V(e){return e==null||e===""}const Zt={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:$("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],s=n?.getValue(e.id);return typeof s=="string"?D.includesString:typeof s=="number"?D.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?D.equals:Array.isArray(s)?D.arrIncludes:D.weakEquals},e.getFilterFn=()=>{var n,s;return se(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(s=t.options.filterFns)==null?void 0:s[e.columnDef.filterFn])!=null?n:D[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,s,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((s=t.options.enableColumnFilters)!=null?s:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(s=>s.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,s;return(n=(s=t.getState().columnFilters)==null?void 0:s.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(s=>{const i=e.getFilterFn(),r=s?.find(a=>a.id===e.id),o=b(n,r?r.value:void 0);if(Ue(i,o,e)){var u;return(u=s?.filter(a=>a.id!==e.id))!=null?u:[]}const l={id:e.id,value:o};if(r){var c;return(c=s?.map(a=>a.id===e.id?l:a))!=null?c:[]}return s!=null&&s.length?[...s,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),s=i=>{var r;return(r=b(t,i))==null?void 0:r.filter(o=>{const u=n.find(l=>l.id===o.id);if(u){const l=u.getFilterFn();if(Ue(l,o.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(s)},e.resetColumnFilters=t=>{var n,s;e.setColumnFilters(t?[]:(n=(s=e.initialState)==null?void 0:s.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Ue(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Yt=(e,t,n)=>n.reduce((s,i)=>{const r=i.getValue(e);return s+(typeof r=="number"?r:0)},0),en=(e,t,n)=>{let s;return n.forEach(i=>{const r=i.getValue(e);r!=null&&(s>r||s===void 0&&r>=r)&&(s=r)}),s},tn=(e,t,n)=>{let s;return n.forEach(i=>{const r=i.getValue(e);r!=null&&(s<r||s===void 0&&r>=r)&&(s=r)}),s},nn=(e,t,n)=>{let s,i;return n.forEach(r=>{const o=r.getValue(e);o!=null&&(s===void 0?o>=o&&(s=i=o):(s>o&&(s=o),i<o&&(i=o)))}),[s,i]},sn=(e,t)=>{let n=0,s=0;if(t.forEach(i=>{let r=i.getValue(e);r!=null&&(r=+r)>=r&&(++n,s+=r)}),n)return s/n},rn=(e,t)=>{if(!t.length)return;const n=t.map(r=>r.getValue(e));if(!jt(n))return;if(n.length===1)return n[0];const s=Math.floor(n.length/2),i=n.sort((r,o)=>r-o);return n.length%2!==0?i[s]:(i[s-1]+i[s])/2},on=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),un=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,ln=(e,t)=>t.length,ie={sum:Yt,min:en,max:tn,extent:nn,mean:sn,median:rn,unique:on,uniqueCount:un,count:ln},an={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:$("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(s=>s!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,s;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((s=t.options.enableGrouping)!=null?s:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],s=n?.getValue(e.id);if(typeof s=="number")return ie.sum;if(Object.prototype.toString.call(s)==="[object Date]")return ie.extent},e.getAggregationFn=()=>{var n,s;if(!e)throw new Error;return se(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(s=t.options.aggregationFns)==null?void 0:s[e.columnDef.aggregationFn])!=null?n:ie[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,s;e.setGrouping(t?[]:(n=(s=e.initialState)==null?void 0:s.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const s=t.getColumn(n);return s!=null&&s.columnDef.getGroupingValue?(e._groupingValuesCache[n]=s.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,s)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function cn(e,t,n){if(!(t!=null&&t.length)||!n)return e;const s=e.filter(r=>!t.includes(r.id));return n==="remove"?s:[...t.map(r=>e.find(o=>o.id===r)).filter(Boolean),...s]}const dn={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:$("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=S(n=>[B(t,n)],n=>n.findIndex(s=>s.id===e.id),C(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var s;return((s=B(t,n)[0])==null?void 0:s.id)===e.id},e.getIsLastColumn=n=>{var s;const i=B(t,n);return((s=i[i.length-1])==null?void 0:s.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=S(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,s)=>i=>{let r=[];if(!(t!=null&&t.length))r=i;else{const o=[...t],u=[...i];for(;u.length&&o.length;){const l=o.shift(),c=u.findIndex(a=>a.id===l);c>-1&&r.push(u.splice(c,1)[0])}r=[...r,...u]}return cn(r,n,s)},C(e.options,"debugTable"))}},re=()=>({left:[],right:[]}),gn={getInitialState:e=>({columnPinning:re(),...e}),getDefaultOptions:e=>({onColumnPinningChange:$("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const s=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var r,o;if(n==="right"){var u,l;return{left:((u=i?.left)!=null?u:[]).filter(p=>!(s!=null&&s.includes(p))),right:[...((l=i?.right)!=null?l:[]).filter(p=>!(s!=null&&s.includes(p))),...s]}}if(n==="left"){var c,a;return{left:[...((c=i?.left)!=null?c:[]).filter(p=>!(s!=null&&s.includes(p))),...s],right:((a=i?.right)!=null?a:[]).filter(p=>!(s!=null&&s.includes(p)))}}return{left:((r=i?.left)!=null?r:[]).filter(p=>!(s!=null&&s.includes(p))),right:((o=i?.right)!=null?o:[]).filter(p=>!(s!=null&&s.includes(p)))}})},e.getCanPin=()=>e.getLeafColumns().some(s=>{var i,r,o;return((i=s.columnDef.enablePinning)!=null?i:!0)&&((r=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?r:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(u=>u.id),{left:s,right:i}=t.getState().columnPinning,r=n.some(u=>s?.includes(u)),o=n.some(u=>i?.includes(u));return r?"left":o?"right":!1},e.getPinnedIndex=()=>{var n,s;const i=e.getIsPinned();return i?(n=(s=t.getState().columnPinning)==null||(s=s[i])==null?void 0:s.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=S(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,s,i)=>{const r=[...s??[],...i??[]];return n.filter(o=>!r.includes(o.column.id))},C(t.options,"debugRows")),e.getLeftVisibleCells=S(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,s)=>(s??[]).map(r=>n.find(o=>o.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),C(t.options,"debugRows")),e.getRightVisibleCells=S(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,s)=>(s??[]).map(r=>n.find(o=>o.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),C(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,s;return e.setColumnPinning(t?re():(n=(s=e.initialState)==null?void 0:s.columnPinning)!=null?n:re())},e.getIsSomeColumnsPinned=t=>{var n;const s=e.getState().columnPinning;if(!t){var i,r;return!!((i=s.left)!=null&&i.length||(r=s.right)!=null&&r.length)}return!!((n=s[t])!=null&&n.length)},e.getLeftLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(s=>t.find(i=>i.id===s)).filter(Boolean),C(e.options,"debugColumns")),e.getRightLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(s=>t.find(i=>i.id===s)).filter(Boolean),C(e.options,"debugColumns")),e.getCenterLeafColumns=S(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,s)=>{const i=[...n??[],...s??[]];return t.filter(r=>!i.includes(r.id))},C(e.options,"debugColumns"))}};function fn(e){return e||(typeof document<"u"?document:null)}const Z={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},oe=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),hn={getDefaultColumnDef:()=>Z,getInitialState:e=>({columnSizing:{},columnSizingInfo:oe(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:$("columnSizing",e),onColumnSizingInfoChange:$("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,s,i;const r=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Z.minSize,(s=r??e.columnDef.size)!=null?s:Z.size),(i=e.columnDef.maxSize)!=null?i:Z.maxSize)},e.getStart=S(n=>[n,B(t,n),t.getState().columnSizing],(n,s)=>s.slice(0,e.getIndex(n)).reduce((i,r)=>i+r.getSize(),0),C(t.options,"debugColumns")),e.getAfter=S(n=>[n,B(t,n),t.getState().columnSizing],(n,s)=>s.slice(e.getIndex(n)+1).reduce((i,r)=>i+r.getSize(),0),C(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:s,...i}=n;return i})},e.getCanResize=()=>{var n,s;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((s=t.options.enableColumnResizing)!=null?s:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const s=i=>{if(i.subHeaders.length)i.subHeaders.forEach(s);else{var r;n+=(r=i.column.getSize())!=null?r:0}};return s(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const s=t.getColumn(e.column.id),i=s?.getCanResize();return r=>{if(!s||!i||(r.persist==null||r.persist(),ue(r)&&r.touches&&r.touches.length>1))return;const o=e.getSize(),u=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[s.id,s.getSize()]],l=ue(r)?Math.round(r.touches[0].clientX):r.clientX,c={},a=(m,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(R=>{var _,O;const G=t.options.columnResizeDirection==="rtl"?-1:1,I=(y-((_=R?.startOffset)!=null?_:0))*G,x=Math.max(I/((O=R?.startSize)!=null?O:0),-.999999);return R.columnSizingStart.forEach(U=>{let[A,T]=U;c[A]=Math.round(Math.max(T+T*x,0)*100)/100}),{...R,deltaOffset:I,deltaPercentage:x}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(R=>({...R,...c})))},p=m=>a("move",m),g=m=>{a("end",m),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=fn(n),h={moveHandler:m=>p(m.clientX),upHandler:m=>{d?.removeEventListener("mousemove",h.moveHandler),d?.removeEventListener("mouseup",h.upHandler),g(m.clientX)}},f={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),p(m.touches[0].clientX),!1),upHandler:m=>{var y;d?.removeEventListener("touchmove",f.moveHandler),d?.removeEventListener("touchend",f.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),g((y=m.touches[0])==null?void 0:y.clientX)}},v=pn()?{passive:!1}:!1;ue(r)?(d?.addEventListener("touchmove",f.moveHandler,v),d?.addEventListener("touchend",f.upHandler,v)):(d?.addEventListener("mousemove",h.moveHandler,v),d?.addEventListener("mouseup",h.upHandler,v)),t.setColumnSizingInfo(m=>({...m,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:u,isResizingColumn:s.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?oe():(n=e.initialState.columnSizingInfo)!=null?n:oe())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((s,i)=>s+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((s,i)=>s+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((s,i)=>s+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((s,i)=>s+i.getSize(),0))!=null?t:0}}};let Y=null;function pn(){if(typeof Y=="boolean")return Y;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Y=e,Y}function ue(e){return e.type==="touchstart"}const mn={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:$("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(s=>({...s,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,s;const i=e.columns;return(n=i.length?i.some(r=>r.getIsVisible()):(s=t.getState().columnVisibility)==null?void 0:s[e.id])!=null?n:!0},e.getCanHide=()=>{var n,s;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((s=t.options.enableHiding)!=null?s:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=S(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(s=>s.column.getIsVisible()),C(t.options,"debugRows")),e.getVisibleCells=S(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,s,i)=>[...n,...s,...i],C(t.options,"debugRows"))},createTable:e=>{const t=(n,s)=>S(()=>[s(),s().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(r=>r.getIsVisible==null?void 0:r.getIsVisible()),C(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var s;e.setColumnVisibility(n?{}:(s=e.initialState.columnVisibility)!=null?s:{})},e.toggleAllColumnsVisible=n=>{var s;n=(s=n)!=null?s:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,r)=>({...i,[r.id]:n||!(r.getCanHide!=null&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var s;e.toggleAllColumnsVisible((s=n.target)==null?void 0:s.checked)}}};function B(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const vn={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Sn={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:$("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const s=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,s,i,r;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((s=t.options.enableGlobalFilter)!=null?s:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((r=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?r:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>D.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:s}=e.options;return se(s)?s:s==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[s])!=null?t:D[s]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Cn={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:$("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var s,i;if(!t){e._queue(()=>{t=!0});return}if((s=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?s:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=s=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(s),e.toggleAllRowsExpanded=s=>{s??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=s=>{var i,r;e.setExpanded(s?{}:(i=(r=e.initialState)==null?void 0:r.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const s=e.getState().expanded;return s===!0||Object.values(s).some(Boolean)},e.getIsAllRowsExpanded=()=>{const s=e.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let s=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(r=>{const o=r.split(".");s=Math.max(s,o.length)}),s},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(s=>{var i;const r=s===!0?!0:!!(s!=null&&s[e.id]);let o={};if(s===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{o[u]=!0}):o=s,n=(i=n)!=null?i:!r,!r&&n)return{...o,[e.id]:!0};if(r&&!n){const{[e.id]:u,...l}=o;return l}return s})},e.getIsExpanded=()=>{var n;const s=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:s===!0||s?.[e.id])},e.getCanExpand=()=>{var n,s,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((s=t.options.enableExpanding)!=null?s:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,s=e;for(;n&&s.parentId;)s=t.getRow(s.parentId,!0),n=s.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Se=0,Ce=10,le=()=>({pageIndex:Se,pageSize:Ce}),yn={getInitialState:e=>({...e,pagination:{...le(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:$("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var s,i;if(!t){e._queue(()=>{t=!0});return}if((s=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?s:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=s=>{const i=r=>b(s,r);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=s=>{var i;e.setPagination(s?le():(i=e.initialState.pagination)!=null?i:le())},e.setPageIndex=s=>{e.setPagination(i=>{let r=b(s,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...i,pageIndex:r}})},e.resetPageIndex=s=>{var i,r;e.setPageIndex(s?Se:(i=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageIndex)!=null?i:Se)},e.resetPageSize=s=>{var i,r;e.setPageSize(s?Ce:(i=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageSize)!=null?i:Ce)},e.setPageSize=s=>{e.setPagination(i=>{const r=Math.max(1,b(s,i.pageSize)),o=i.pageSize*i.pageIndex,u=Math.floor(o/r);return{...i,pageIndex:u,pageSize:r}})},e.setPageCount=s=>e.setPagination(i=>{var r;let o=b(s,(r=e.options.pageCount)!=null?r:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=S(()=>[e.getPageCount()],s=>{let i=[];return s&&s>0&&(i=[...new Array(s)].fill(null).map((r,o)=>o)),i},C(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:s}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:s<i-1},e.previousPage=()=>e.setPageIndex(s=>s-1),e.nextPage=()=>e.setPageIndex(s=>s+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var s;return(s=e.options.pageCount)!=null?s:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var s;return(s=e.options.rowCount)!=null?s:e.getPrePaginationRowModel().rows.length}}},ae=()=>({top:[],bottom:[]}),Rn={getInitialState:e=>({rowPinning:ae(),...e}),getDefaultOptions:e=>({onRowPinningChange:$("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,s,i)=>{const r=s?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],o=i?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],u=new Set([...o,e.id,...r]);t.setRowPinning(l=>{var c,a;if(n==="bottom"){var p,g;return{top:((p=l?.top)!=null?p:[]).filter(f=>!(u!=null&&u.has(f))),bottom:[...((g=l?.bottom)!=null?g:[]).filter(f=>!(u!=null&&u.has(f))),...Array.from(u)]}}if(n==="top"){var d,h;return{top:[...((d=l?.top)!=null?d:[]).filter(f=>!(u!=null&&u.has(f))),...Array.from(u)],bottom:((h=l?.bottom)!=null?h:[]).filter(f=>!(u!=null&&u.has(f)))}}return{top:((c=l?.top)!=null?c:[]).filter(f=>!(u!=null&&u.has(f))),bottom:((a=l?.bottom)!=null?a:[]).filter(f=>!(u!=null&&u.has(f)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:s,enablePinning:i}=t.options;return typeof s=="function"?s(e):(n=s??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:s,bottom:i}=t.getState().rowPinning,r=n.some(u=>s?.includes(u)),o=n.some(u=>i?.includes(u));return r?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var n,s;const i=e.getIsPinned();if(!i)return-1;const r=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(o=>{let{id:u}=o;return u});return(s=r?.indexOf(e.id))!=null?s:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,s;return e.setRowPinning(t?ae():(n=(s=e.initialState)==null?void 0:s.rowPinning)!=null?n:ae())},e.getIsSomeRowsPinned=t=>{var n;const s=e.getState().rowPinning;if(!t){var i,r;return!!((i=s.top)!=null&&i.length||(r=s.bottom)!=null&&r.length)}return!!((n=s[t])!=null&&n.length)},e._getPinnedRows=(t,n,s)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(o=>{const u=e.getRow(o,!0);return u.getIsAllParentsExpanded()?u:null}):(n??[]).map(o=>t.find(u=>u.id===o))).filter(Boolean).map(o=>({...o,position:s}))},e.getTopRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),C(e.options,"debugRows")),e.getBottomRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),C(e.options,"debugRows")),e.getCenterRows=S(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,s)=>{const i=new Set([...n??[],...s??[]]);return t.filter(r=>!i.has(r.id))},C(e.options,"debugRows"))}},wn={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:$("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const s={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(r=>{r.getCanSelect()&&(s[r.id]=!0)}):i.forEach(r=>{delete s[r.id]}),s})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const s=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(r=>{ye(i,r.id,s,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=S(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ce(e,n):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getFilteredSelectedRowModel=S(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ce(e,n):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getGroupedSelectedRowModel=S(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ce(e,n):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let s=!!(t.length&&Object.keys(n).length);return s&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(s=!1),s},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let s=!!t.length;return s&&t.some(i=>!n[i.id])&&(s=!1),s},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,s)=>{const i=e.getIsSelected();t.setRowSelection(r=>{var o;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return r;const u={...r};return ye(u,e.id,n,(o=s?.selectChildren)!=null?o:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ie(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Re(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Re(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return s=>{var i;n&&e.toggleSelected((i=s.target)==null?void 0:i.checked)}}}},ye=(e,t,n,s,i)=>{var r;const o=i.getRow(t,!0);n?(o.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),o.getCanSelect()&&(e[t]=!0)):delete e[t],s&&(r=o.subRows)!=null&&r.length&&o.getCanSelectSubRows()&&o.subRows.forEach(u=>ye(e,u.id,n,s,i))};function ce(e,t){const n=e.getState().rowSelection,s=[],i={},r=function(o,u){return o.map(l=>{var c;const a=Ie(l,n);if(a&&(s.push(l),i[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:r(l.subRows)}),a)return l}).filter(Boolean)};return{rows:r(t.rows),flatRows:s,rowsById:i}}function Ie(e,t){var n;return(n=t[e.id])!=null?n:!1}function Re(e,t,n){var s;if(!((s=e.subRows)!=null&&s.length))return!1;let i=!0,r=!1;return e.subRows.forEach(o=>{if(!(r&&!i)&&(o.getCanSelect()&&(Ie(o,t)?r=!0:i=!1),o.subRows&&o.subRows.length)){const u=Re(o,t);u==="all"?r=!0:(u==="some"&&(r=!0),i=!1)}}),i?"all":r?"some":!1}const we=/([0-9]+)/gm,Fn=(e,t,n)=>mt(L(e.getValue(n)).toLowerCase(),L(t.getValue(n)).toLowerCase()),_n=(e,t,n)=>mt(L(e.getValue(n)),L(t.getValue(n))),Pn=(e,t,n)=>$e(L(e.getValue(n)).toLowerCase(),L(t.getValue(n)).toLowerCase()),Mn=(e,t,n)=>$e(L(e.getValue(n)),L(t.getValue(n))),On=(e,t,n)=>{const s=e.getValue(n),i=t.getValue(n);return s>i?1:s<i?-1:0},xn=(e,t,n)=>$e(e.getValue(n),t.getValue(n));function $e(e,t){return e===t?0:e>t?1:-1}function L(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function mt(e,t){const n=e.split(we).filter(Boolean),s=t.split(we).filter(Boolean);for(;n.length&&s.length;){const i=n.shift(),r=s.shift(),o=parseInt(i,10),u=parseInt(r,10),l=[o,u].sort();if(isNaN(l[0])){if(i>r)return 1;if(r>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>u)return 1;if(u>o)return-1}return n.length-s.length}const j={alphanumeric:Fn,alphanumericCaseSensitive:_n,text:Pn,textCaseSensitive:Mn,datetime:On,basic:xn},In={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:$("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const i of n){const r=i?.getValue(e.id);if(Object.prototype.toString.call(r)==="[object Date]")return j.datetime;if(typeof r=="string"&&(s=!0,r.split(we).length>1))return j.alphanumeric}return s?j.text:j.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,s;if(!e)throw new Error;return se(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(s=t.options.sortingFns)==null?void 0:s[e.columnDef.sortingFn])!=null?n:j[e.columnDef.sortingFn]},e.toggleSorting=(n,s)=>{const i=e.getNextSortingOrder(),r=typeof n<"u"&&n!==null;t.setSorting(o=>{const u=o?.find(d=>d.id===e.id),l=o?.findIndex(d=>d.id===e.id);let c=[],a,p=r?n:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&s?u?a="toggle":a="add":o!=null&&o.length&&l!==o.length-1?a="replace":u?a="toggle":a="replace",a==="toggle"&&(r||i||(a="remove")),a==="add"){var g;c=[...o,{id:e.id,desc:p}],c.splice(0,c.length-((g=t.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else a==="toggle"?c=o.map(d=>d.id===e.id?{...d,desc:p}:d):a==="remove"?c=o.filter(d=>d.id!==e.id):c=[{id:e.id,desc:p}];return c})},e.getFirstSortDir=()=>{var n,s;return((n=(s=e.columnDef.sortDescFirst)!=null?s:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var s,i;const r=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==r&&((s=t.options.enableSortingRemoval)==null||s)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":r},e.getCanSort=()=>{var n,s;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((s=t.options.enableSorting)!=null?s:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,s;return(n=(s=e.columnDef.enableMultiSort)!=null?s:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const s=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return s?s.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,s;return(n=(s=t.getState().sorting)==null?void 0:s.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(s=>s.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return s=>{n&&(s.persist==null||s.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(s):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,s;e.setSorting(t?[]:(n=(s=e.initialState)==null?void 0:s.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},$n=[Xt,mn,dn,gn,Jt,Zt,vn,Sn,In,an,Cn,yn,Rn,wn,hn];function En(e){var t,n;const s=[...$n,...(t=e._features)!=null?t:[]];let i={_features:s};const r=i._features.reduce((g,d)=>Object.assign(g,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),o=g=>i.options.mergeOptions?i.options.mergeOptions(r,g):{...r,...g};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(g=>{var d;l=(d=g.getInitialState==null?void 0:g.getInitialState(l))!=null?d:l});const c=[];let a=!1;const p={_features:s,options:{...r,...e},initialState:l,_queue:g=>{c.push(g),a||(a=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();a=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:g=>{const d=b(g,i.options);i.options=o(d)},getState:()=>i.options.state,setState:g=>{i.options.onStateChange==null||i.options.onStateChange(g)},_getRowId:(g,d,h)=>{var f;return(f=i.options.getRowId==null?void 0:i.options.getRowId(g,d,h))!=null?f:`${h?[h.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(g,d)=>{let h=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[g];if(!h&&(h=i.getCoreRowModel().rowsById[g],!h))throw new Error;return h},_getDefaultColumnDef:S(()=>[i.options.defaultColumn],g=>{var d;return g=(d=g)!=null?d:{},{header:h=>{const f=h.header.column.columnDef;return f.accessorKey?f.accessorKey:f.accessorFn?f.id:null},cell:h=>{var f,v;return(f=(v=h.renderValue())==null||v.toString==null?void 0:v.toString())!=null?f:null},...i._features.reduce((h,f)=>Object.assign(h,f.getDefaultColumnDef==null?void 0:f.getDefaultColumnDef()),{}),...g}},C(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:S(()=>[i._getColumnDefs()],g=>{const d=function(h,f,v){return v===void 0&&(v=0),h.map(m=>{const y=Kt(i,m,v,f),R=m;return y.columns=R.columns?d(R.columns,y,v+1):[],y})};return d(g)},C(e,"debugColumns")),getAllFlatColumns:S(()=>[i.getAllColumns()],g=>g.flatMap(d=>d.getFlatColumns()),C(e,"debugColumns")),_getAllFlatColumnsById:S(()=>[i.getAllFlatColumns()],g=>g.reduce((d,h)=>(d[h.id]=h,d),{}),C(e,"debugColumns")),getAllLeafColumns:S(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(g,d)=>{let h=g.flatMap(f=>f.getLeafColumns());return d(h)},C(e,"debugColumns")),getColumn:g=>i._getAllFlatColumnsById()[g]};Object.assign(i,p);for(let g=0;g<i._features.length;g++){const d=i._features[g];d==null||d.createTable==null||d.createTable(i)}return i}function kn(){return e=>S(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},s=function(i,r,o){r===void 0&&(r=0);const u=[];for(let c=0;c<i.length;c++){const a=Wt(e,e._getRowId(i[c],c,o),i[c],c,r,void 0,o?.id);if(n.flatRows.push(a),n.rowsById[a.id]=a,u.push(a),e.options.getSubRows){var l;a.originalSubRows=e.options.getSubRows(i[c],c),(l=a.originalSubRows)!=null&&l.length&&(a.subRows=s(a.originalSubRows,r+1,a))}}return u};return n.rows=s(t),n},C(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Un(e,t){return e?Vn(e)?w.createElement(e,t):e:null}function Vn(e){return Dn(e)||typeof e=="function"||An(e)}function Dn(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function An(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function jn(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:En(t)})),[s,i]=w.useState(()=>n.current.initialState);return n.current.setOptions(r=>({...r,...e,state:{...s,...e.state},onStateChange:o=>{i(o),e.onStateChange==null||e.onStateChange(o)}})),n.current}export{Ln as Q,X as a,qn as b,Tn as c,Gn as d,jn as e,Un as f,kn as g,Qn as h,zn as u};
@@ -0,0 +1 @@
1
+ import{j as e}from"./radix-ui-Zb8sVEtn.js";import{L as P,r as o}from"./react-vendor-CNOkPC89.js";import{a as p,B as y,c as k,d as x,x as E,bf as M,C as g,j,k as N,_ as w,b as v,n as b,bg as U,bh as $,I as z,bi as B}from"./index-C49jYnaE.js";import{_ as L,V as Q,a_ as J,v as V,E as q,J as G,a6 as Y,C as F,a$ as H,an as K}from"./icons-BfVvKgF4.js";import"./tanstack-DWm6aJ-G.js";import"./notifications-B2HqRBj7.js";import"./utils-CzKF5WmX.js";import"./form-utils-Bcoyqxpq.js";import"./code-highlight-BRUf_pqB.js";const W={new:"border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-900/50 dark:bg-blue-900/20 dark:text-blue-300",stable:"border-green-200 bg-green-50 text-green-700 dark:border-green-900/50 dark:bg-green-900/20 dark:text-green-300",planned:"border-amber-200 bg-amber-50 text-amber-700 dark:border-amber-900/50 dark:bg-amber-900/20 dark:text-amber-300"};function X({status:s,className:a}){const{t}=p(),d={new:t("updates.statusNew"),stable:t("updates.statusStable"),planned:t("updates.statusPlanned")};return e.jsx(y,{variant:"outline",className:k("font-medium",W[s],a),children:d[s]})}const _="ccs:updates:notice-progress:v1";function Z(s){return s==="new"?"new":"seen"}function u(s,a){return a[s.id]??Z(s.status)}function A(s){return s!=="done"&&s!=="dismissed"}function ee(){if(typeof window>"u")return{};try{const s=window.localStorage.getItem(_);if(!s)return{};const a=JSON.parse(s);if(!a||typeof a!="object"||Array.isArray(a))return{};const t={};for(const[d,l]of Object.entries(a))typeof d=="string"&&(l==="new"||l==="seen"||l==="done"||l==="dismissed")&&(t[d]=l);return t}catch{return{}}}function se(s){typeof window>"u"||window.localStorage.setItem(_,JSON.stringify(s))}function I({state:s,className:a}){const{t}=p(),d={new:{label:t("updates.progressNeedsAction"),className:"border-amber-300/70 bg-amber-100/70 text-amber-800 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-300",showDot:!0},seen:{label:t("updates.progressInReview"),className:"border-blue-300/70 bg-blue-100/70 text-blue-800 dark:border-blue-500/40 dark:bg-blue-500/15 dark:text-blue-300"},done:{label:t("updates.progressDone"),className:"border-emerald-300/70 bg-emerald-100/70 text-emerald-800 dark:border-emerald-500/40 dark:bg-emerald-500/15 dark:text-emerald-300"},dismissed:{label:t("updates.progressDismissed"),className:"border-muted-foreground/20 bg-muted text-muted-foreground dark:border-muted-foreground/30"}}[s];return e.jsxs(y,{variant:"outline",className:k("gap-1.5 border text-[10px] font-medium",d.className,a),children:[d.showDot&&e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current"}),d.label]})}function ae({action:s}){const{t:a}=p();return e.jsxs("div",{className:"rounded-md border bg-muted/20 p-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 space-y-0.5",children:[e.jsx("p",{className:"text-sm font-medium",children:s.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.description})]}),s.type==="route"&&s.path&&e.jsx(x,{size:"sm",asChild:!0,children:e.jsxs(P,{to:s.path,children:[a("updates.open"),e.jsx(L,{className:"h-3.5 w-3.5"})]})})]}),s.type==="command"&&s.command&&e.jsxs("div",{className:"mt-2 flex items-center gap-2 rounded-md border bg-background px-2 py-1.5",children:[e.jsx(Q,{className:"h-3.5 w-3.5 text-muted-foreground"}),e.jsx("code",{className:"min-w-0 flex-1 truncate text-[11px]",children:s.command}),e.jsx(E,{value:s.command})]})]})}function re({notice:s,progress:a,relatedEntries:t,onUpdateProgress:d}){const{t:l}=p();return s?e.jsxs("div",{className:"flex-1 min-w-0 bg-background grid grid-rows-[auto_minmax(0,1fr)] overflow-hidden",children:[e.jsxs("div",{className:"border-b bg-background px-4 py-3",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("h2",{className:"text-base font-semibold leading-tight",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.summary})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[a&&e.jsx(I,{state:a}),e.jsx(X,{status:s.status})]})]}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:[e.jsx(J,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:l("updates.published",{date:M(s.publishedAt)})})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[e.jsxs(x,{size:"sm",onClick:()=>d("done"),children:[e.jsx(V,{className:"h-4 w-4"}),l("updates.markDone")]}),e.jsxs(x,{size:"sm",variant:"outline",onClick:()=>d("dismissed"),children:[e.jsx(q,{className:"h-4 w-4"}),l("updates.dismiss")]}),e.jsxs(x,{size:"sm",variant:"ghost",onClick:()=>d("new"),children:[e.jsx(G,{className:"h-4 w-4"}),l("updates.reopen")]})]})]}),e.jsx("div",{className:"min-h-0 p-4",children:e.jsxs("div",{className:"grid h-full gap-4 xl:grid-cols-[minmax(0,1.5fr)_minmax(320px,1fr)] overflow-hidden",children:[e.jsxs(g,{className:"h-full overflow-hidden",children:[e.jsxs(j,{className:"pb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Y,{className:"h-4 w-4 text-primary"}),e.jsx(N,{className:"text-base",children:l("updates.doNext")})]}),e.jsx(w,{children:s.primaryAction})]}),e.jsx(v,{className:"min-h-0",children:e.jsx(b,{className:"h-full pr-2",children:e.jsx("div",{className:"space-y-3",children:s.actions.map(n=>e.jsx(ae,{action:n},`${s.id}-${n.id}`))})})})]}),e.jsxs("div",{className:"grid h-full grid-rows-[minmax(0,1fr)_minmax(0,1fr)] gap-4 overflow-hidden",children:[e.jsxs(g,{className:"overflow-hidden",children:[e.jsxs(j,{className:"pb-3",children:[e.jsx(N,{className:"text-base",children:l("updates.impactedIntegrations")}),e.jsx(w,{children:l("updates.impactedDesc")})]}),e.jsx(v,{className:"min-h-0",children:e.jsx(b,{className:"h-full pr-2",children:e.jsx("div",{className:"space-y-2",children:t.map(n=>e.jsxs("div",{className:"rounded-md border bg-muted/20 p-2.5",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("p",{className:"min-w-0 truncate text-sm font-medium",children:n.name}),e.jsx(y,{variant:"outline",className:"h-5 px-1.5 text-[10px]",children:U[n.scope]})]}),e.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[n.routes[0]&&e.jsx(x,{size:"sm",variant:"outline",asChild:!0,children:e.jsx(P,{to:n.routes[0].path,children:n.routes[0].label})}),n.commands[0]&&e.jsxs("div",{className:"ml-auto flex min-w-0 items-center gap-1.5",children:[e.jsx("code",{className:"truncate rounded bg-background px-1.5 py-0.5 text-[11px]",children:n.commands[0]}),e.jsx(E,{value:n.commands[0]})]})]})]},n.id))})})})]}),e.jsxs(g,{className:"overflow-hidden",children:[e.jsxs(j,{className:"pb-3",children:[e.jsx(N,{className:"text-base",children:l("updates.whyMatters")}),e.jsx(w,{children:l("updates.whyMattersDesc")})]}),e.jsx(v,{className:"min-h-0",children:e.jsx(b,{className:"h-full pr-2",children:e.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:s.highlights.map(n=>e.jsxs("li",{children:["- ",n]},`${s.id}-${n}`))})})})]})]})]})})]}):e.jsx("div",{className:"flex h-full items-center justify-center rounded-lg border border-dashed bg-muted/20 p-6",children:e.jsx("p",{className:"text-sm text-muted-foreground",children:l("updates.noUpdates")})})}function te({notice:s,progress:a,selected:t,onSelect:d}){return e.jsxs("button",{type:"button",onClick:d,className:k("w-full rounded-lg border px-3 py-3 text-left transition-colors",t?"border-primary/30 bg-primary/10":"border-transparent bg-background/40 hover:border-border hover:bg-muted/70"),children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{className:"min-w-0 space-y-1",children:[e.jsx("p",{className:"truncate text-sm font-medium",children:s.title}),e.jsx("p",{className:"line-clamp-2 text-xs text-muted-foreground",children:s.primaryAction})]}),e.jsx(F,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground"})]}),e.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2",children:[e.jsx("span",{className:"text-[11px] text-muted-foreground",children:M(s.publishedAt)}),e.jsx(I,{state:a})]})]})}function de(s,a){return a?[s.title,s.summary,s.primaryAction,...s.highlights,...s.commands,...s.actions.map(d=>`${d.label} ${d.description} ${d.command||""}`),...s.routes.map(d=>d.label)].join(" ").toLowerCase().includes(a):!0}function be(){const{t:s}=p(),a=o.useMemo(()=>[...$].sort((r,i)=>i.publishedAt.localeCompare(r.publishedAt)),[]),[t,d]=o.useState("inbox"),[l,n]=o.useState(""),[c,C]=o.useState(()=>ee()),[S,R]=o.useState(null);o.useEffect(()=>{se(c)},[c]);const h=o.useMemo(()=>{const r=l.trim().toLowerCase();return a.filter(i=>{const f=u(i,c);return de(i,r)?t==="done"?f==="done":t==="inbox"?A(f):!0:!1})},[a,c,l,t]),m=o.useMemo(()=>{const r=t==="all"?a:h;return r.find(i=>i.id===S)??r[0]??null},[a,S,t,h]),T=r=>{R(r.id),C(i=>u(r,i)!=="new"?i:{...i,[r.id]:"seen"})},D=o.useMemo(()=>a.filter(r=>A(u(r,c))).length,[a,c]),O=o.useMemo(()=>a.filter(r=>u(r,c)==="done").length,[a,c]);return e.jsxs("div",{className:"flex h-full min-h-0 overflow-hidden",children:[e.jsxs("div",{className:"w-80 border-r bg-muted/30 flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"p-4 border-b bg-background space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(H,{className:"h-5 w-5 text-primary"}),e.jsx("h1",{className:"font-semibold",children:s("updates.inboxTitle")})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("updates.inboxSubtitle")})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[e.jsxs("div",{className:"rounded-md border bg-background px-2 py-1.5",children:[e.jsx("p",{className:"text-muted-foreground",children:s("updates.needsAction")}),e.jsx("p",{className:"text-base font-semibold",children:D})]}),e.jsxs("div",{className:"rounded-md border bg-background px-2 py-1.5",children:[e.jsx("p",{className:"text-muted-foreground",children:s("updates.doneCount")}),e.jsx("p",{className:"text-base font-semibold",children:O})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx(K,{className:"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"}),e.jsx(z,{value:l,onChange:r=>n(r.target.value),placeholder:s("updates.searchPlaceholder"),className:"h-9 pl-8"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:[{id:"inbox",label:s("updates.actionRequired")},{id:"done",label:s("updates.done")},{id:"all",label:s("updates.all")}].map(r=>e.jsx(x,{size:"sm",variant:t===r.id?"default":"outline",onClick:()=>d(r.id),children:r.label},r.id))})]}),e.jsx(b,{className:"flex-1",children:e.jsx("div",{className:"space-y-2 p-2",children:h.length===0?e.jsx("div",{className:"rounded-md border border-dashed p-3 text-xs text-muted-foreground",children:s("updates.noNotices")}):h.map(r=>e.jsx(te,{notice:r,progress:u(r,c),selected:m?.id===r.id,onSelect:()=>T(r)},r.id))})})]}),e.jsx(re,{notice:m,progress:m?u(m,c):null,relatedEntries:m?B(m):[],onUpdateProgress:r=>{m&&C(i=>({...i,[m.id]:r}))}})]})}export{be as UpdatesPage};
@@ -0,0 +1 @@
1
+ function qe(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=qe(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lt(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=qe(e))&&(r&&(r+=" "),r+=n);return r}const Te=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,We=lt,gr=(e,n)=>t=>{var r;if(n?.variants==null)return We(e,t?.class,t?.className);const{variants:o,defaultVariants:a}=n,s=Object.keys(o).map(u=>{const f=t?.[u],b=a?.[u];if(f===null)return null;const p=Te(f)||Te(b);return o[u][p]}),i=t&&Object.entries(t).reduce((u,f)=>{let[b,p]=f;return p===void 0||(u[b]=p),u},{}),c=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:b,className:p,...S}=f;return Object.entries(S).every(v=>{let[M,D]=v;return Array.isArray(D)?D.includes({...a,...i}[M]):{...a,...i}[M]===D})?[...u,b,p]:u},[]);return We(e,s,c,t?.class,t?.className)},dt=(e,n)=>{const t=new Array(e.length+n.length);for(let r=0;r<e.length;r++)t[r]=e[r];for(let r=0;r<n.length;r++)t[e.length+r]=n[r];return t},ut=(e,n)=>({classGroupId:e,validator:n}),He=(e=new Map,n=null,t)=>({nextPart:e,validators:n,classGroupId:t}),de="-",Ne=[],ft="arbitrary..",mt=e=>{const n=gt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ht(s);const i=s.split(de),c=i[0]===""&&i.length>1?1:0;return Ve(i,c,n)},getConflictingClassGroupIds:(s,i)=>{if(i){const c=r[s],u=t[s];return c?u?dt(u,c):c:u||Ne}return t[s]||Ne}}},Ve=(e,n,t)=>{if(e.length-n===0)return t.classGroupId;const o=e[n],a=t.nextPart.get(o);if(a){const u=Ve(e,n+1,a);if(u)return u}const s=t.validators;if(s===null)return;const i=n===0?e.join(de):e.slice(n).join(de),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(i))return f.classGroupId}},ht=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),t=n.indexOf(":"),r=n.slice(0,t);return r?ft+r:void 0})(),gt=e=>{const{theme:n,classGroups:t}=e;return bt(t,n)},bt=(e,n)=>{const t=He();for(const r in e){const o=e[r];xe(o,t,r,n)}return t},xe=(e,n,t,r)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];pt(s,n,t,r)}},pt=(e,n,t,r)=>{if(typeof e=="string"){wt(e,n,t);return}if(typeof e=="function"){yt(e,n,t,r);return}kt(e,n,t,r)},wt=(e,n,t)=>{const r=e===""?n:Xe(n,e);r.classGroupId=t},yt=(e,n,t,r)=>{if(xt(e)){xe(e(r),n,t,r);return}n.validators===null&&(n.validators=[]),n.validators.push(ut(t,e))},kt=(e,n,t,r)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[i,c]=o[s];xe(c,Xe(n,i),t,r)}},Xe=(e,n)=>{let t=e;const r=n.split(de),o=r.length;for(let a=0;a<o;a++){const s=r[a];let i=t.nextPart.get(s);i||(i=He(),t.nextPart.set(s,i)),t=i}return t},xt=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,vt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=Object.create(null),r=Object.create(null);const o=(a,s)=>{t[a]=s,n++,n>e&&(n=0,r=t,t=Object.create(null))};return{get(a){let s=t[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return o(a,s),s},set(a,s){a in t?t[a]=s:o(a,s)}}},ke="!",Fe=":",Mt=[],Ae=(e,n,t,r,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:t,maybePostfixModifierPosition:r,isExternal:o}),Ot=e=>{const{prefix:n,experimentalParseClassName:t}=e;let r=o=>{const a=[];let s=0,i=0,c=0,u;const f=o.length;for(let M=0;M<f;M++){const D=o[M];if(s===0&&i===0){if(D===Fe){a.push(o.slice(c,M)),c=M+1;continue}if(D==="/"){u=M;continue}}D==="["?s++:D==="]"?s--:D==="("?i++:D===")"&&i--}const b=a.length===0?o:o.slice(c);let p=b,S=!1;b.endsWith(ke)?(p=b.slice(0,-1),S=!0):b.startsWith(ke)&&(p=b.slice(1),S=!0);const v=u&&u>c?u-c:void 0;return Ae(a,S,p,v)};if(n){const o=n+Fe,a=r;r=s=>s.startsWith(o)?a(s.slice(o.length)):Ae(Mt,!1,s,void 0,!0)}if(t){const o=r;r=a=>t({className:a,parseClassName:o})}return r},Dt=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{n.set(t,1e6+r)}),t=>{const r=[];let o=[];for(let a=0;a<t.length;a++){const s=t[a],i=s[0]==="[",c=n.has(s);i||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},St=e=>({cache:vt(e.cacheSize),parseClassName:Ot(e),sortModifiers:Dt(e),...mt(e)}),Pt=/\s+/,Ct=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=n,s=[],i=e.trim().split(Pt);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:b,modifiers:p,hasImportantModifier:S,baseClassName:v,maybePostfixModifierPosition:M}=t(f);if(b){c=f+(c.length>0?" "+c:c);continue}let D=!!M,z=r(D?v.substring(0,M):v);if(!z){if(!D){c=f+(c.length>0?" "+c:c);continue}if(z=r(v),!z){c=f+(c.length>0?" "+c:c);continue}D=!1}const ee=p.length===0?"":p.length===1?p[0]:a(p).join(":"),Q=S?ee+ke:ee,G=Q+z;if(s.indexOf(G)>-1)continue;s.push(G);const j=o(z,D);for(let E=0;E<j.length;++E){const $=j[E];s.push(Q+$)}c=f+(c.length>0?" "+c:c)}return c},Yt=(...e)=>{let n=0,t,r,o="";for(;n<e.length;)(t=e[n++])&&(r=Be(t))&&(o&&(o+=" "),o+=r);return o},Be=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=Be(e[r]))&&(t&&(t+=" "),t+=n);return t},Tt=(e,...n)=>{let t,r,o,a;const s=c=>{const u=n.reduce((f,b)=>b(f),e());return t=St(u),r=t.cache.get,o=t.cache.set,a=i,i(c)},i=c=>{const u=r(c);if(u)return u;const f=Ct(c,t);return o(c,f),f};return a=s,(...c)=>a(Yt(...c))},Wt=[],x=e=>{const n=t=>t[e]||Wt;return n.isThemeGetter=!0,n},Qe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$e=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nt=/^\d+\/\d+$/,Ft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,At=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Et=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,It=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>Nt.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),N=e=>!!e&&Number.isInteger(Number(e)),pe=e=>e.endsWith("%")&&g(e.slice(0,-1)),W=e=>Ft.test(e),_t=()=>!0,Rt=e=>At.test(e)&&!zt.test(e),Je=()=>!1,Gt=e=>Et.test(e),jt=e=>It.test(e),Lt=e=>!l(e)&&!d(e),qt=e=>V(e,Ze,Je),l=e=>Qe.test(e),_=e=>V(e,et,Rt),we=e=>V(e,Qt,g),ze=e=>V(e,Ue,Je),Ht=e=>V(e,Ke,jt),se=e=>V(e,tt,Gt),d=e=>$e.test(e),J=e=>X(e,et),Vt=e=>X(e,$t),Ee=e=>X(e,Ue),Xt=e=>X(e,Ze),Bt=e=>X(e,Ke),ie=e=>X(e,tt,!0),V=(e,n,t)=>{const r=Qe.exec(e);return r?r[1]?n(r[1]):t(r[2]):!1},X=(e,n,t=!1)=>{const r=$e.exec(e);return r?r[1]?n(r[1]):t:!1},Ue=e=>e==="position"||e==="percentage",Ke=e=>e==="image"||e==="url",Ze=e=>e==="length"||e==="size"||e==="bg-size",et=e=>e==="length",Qt=e=>e==="number",$t=e=>e==="family-name",tt=e=>e==="shadow",Jt=()=>{const e=x("color"),n=x("font"),t=x("text"),r=x("font-weight"),o=x("tracking"),a=x("leading"),s=x("breakpoint"),i=x("container"),c=x("spacing"),u=x("radius"),f=x("shadow"),b=x("inset-shadow"),p=x("text-shadow"),S=x("drop-shadow"),v=x("blur"),M=x("perspective"),D=x("aspect"),z=x("ease"),ee=x("animate"),Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...G(),d,l],E=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],h=()=>[d,l,c],Y=()=>[q,"full","auto",...h()],ve=()=>[N,"none","subgrid",d,l],Me=()=>["auto",{span:["full",N,d,l]},N,d,l],te=()=>[N,"auto",d,l],Oe=()=>["auto","min","max","fr",d,l],he=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...h()],I=()=>[q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],m=()=>[e,d,l],De=()=>[...G(),Ee,ze,{position:[d,l]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Pe=()=>["auto","cover","contain",Xt,qt,{size:[d,l]}],ge=()=>[pe,J,_],P=()=>["","none","full",u,d,l],C=()=>["",g,J,_],ne=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[g,pe,Ee,ze],Ye=()=>["","none",v,d,l],re=()=>["none",g,d,l],oe=()=>["none",g,d,l],be=()=>[g,d,l],ae=()=>[q,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[W],breakpoint:[W],color:[_t],container:[W],"drop-shadow":[W],ease:["in","out","in-out"],font:[Lt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[W],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[W],shadow:[W],spacing:["px",g],text:[W],"text-shadow":[W],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",q,l,d,D]}],container:["container"],columns:[{columns:[g,l,d,i]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[N,"auto",d,l]}],basis:[{basis:[q,"full","auto",i,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,q,"auto","initial","none",l]}],grow:[{grow:["",g,d,l]}],shrink:[{shrink:["",g,d,l]}],order:[{order:[N,"first","last","none",d,l]}],"grid-cols":[{"grid-cols":ve()}],"col-start-end":[{col:Me()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ve()}],"row-start-end":[{row:Me()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Oe()}],"auto-rows":[{"auto-rows":Oe()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...he(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...he()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":he()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[i,"screen",...I()]}],"min-w":[{"min-w":[i,"screen","none",...I()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",t,J,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,d,we]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pe,l]}],"font-family":[{font:[Vt,l,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,d,l]}],"line-clamp":[{"line-clamp":[g,"none",d,we]}],leading:[{leading:[a,...h()]}],"list-image":[{"list-image":["none",d,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:m()}],"text-color":[{text:m()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",d,_]}],"text-decoration-color":[{decoration:m()}],"underline-offset":[{"underline-offset":[g,"auto",d,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:De()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:Pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},N,d,l],radial:["",d,l],conic:[N,d,l]},Bt,Ht]}],"bg-color":[{bg:m()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:m()}],"gradient-via":[{via:m()}],"gradient-to":[{to:m()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:C()}],"border-w-x":[{"border-x":C()}],"border-w-y":[{"border-y":C()}],"border-w-s":[{"border-s":C()}],"border-w-e":[{"border-e":C()}],"border-w-t":[{"border-t":C()}],"border-w-r":[{"border-r":C()}],"border-w-b":[{"border-b":C()}],"border-w-l":[{"border-l":C()}],"divide-x":[{"divide-x":C()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":C()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ne(),"hidden","none"]}],"divide-style":[{divide:[...ne(),"hidden","none"]}],"border-color":[{border:m()}],"border-color-x":[{"border-x":m()}],"border-color-y":[{"border-y":m()}],"border-color-s":[{"border-s":m()}],"border-color-e":[{"border-e":m()}],"border-color-t":[{"border-t":m()}],"border-color-r":[{"border-r":m()}],"border-color-b":[{"border-b":m()}],"border-color-l":[{"border-l":m()}],"divide-color":[{divide:m()}],"outline-style":[{outline:[...ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,d,l]}],"outline-w":[{outline:["",g,J,_]}],"outline-color":[{outline:m()}],shadow:[{shadow:["","none",f,ie,se]}],"shadow-color":[{shadow:m()}],"inset-shadow":[{"inset-shadow":["none",b,ie,se]}],"inset-shadow-color":[{"inset-shadow":m()}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:m()}],"ring-offset-w":[{"ring-offset":[g,_]}],"ring-offset-color":[{"ring-offset":m()}],"inset-ring-w":[{"inset-ring":C()}],"inset-ring-color":[{"inset-ring":m()}],"text-shadow":[{"text-shadow":["none",p,ie,se]}],"text-shadow-color":[{"text-shadow":m()}],opacity:[{opacity:[g,d,l]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":m()}],"mask-image-linear-to-color":[{"mask-linear-to":m()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":m()}],"mask-image-t-to-color":[{"mask-t-to":m()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":m()}],"mask-image-r-to-color":[{"mask-r-to":m()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":m()}],"mask-image-b-to-color":[{"mask-b-to":m()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":m()}],"mask-image-l-to-color":[{"mask-l-to":m()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":m()}],"mask-image-x-to-color":[{"mask-x-to":m()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":m()}],"mask-image-y-to-color":[{"mask-y-to":m()}],"mask-image-radial":[{"mask-radial":[d,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":m()}],"mask-image-radial-to-color":[{"mask-radial-to":m()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":m()}],"mask-image-conic-to-color":[{"mask-conic-to":m()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:De()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:Pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,l]}],filter:[{filter:["","none",d,l]}],blur:[{blur:Ye()}],brightness:[{brightness:[g,d,l]}],contrast:[{contrast:[g,d,l]}],"drop-shadow":[{"drop-shadow":["","none",S,ie,se]}],"drop-shadow-color":[{"drop-shadow":m()}],grayscale:[{grayscale:["",g,d,l]}],"hue-rotate":[{"hue-rotate":[g,d,l]}],invert:[{invert:["",g,d,l]}],saturate:[{saturate:[g,d,l]}],sepia:[{sepia:["",g,d,l]}],"backdrop-filter":[{"backdrop-filter":["","none",d,l]}],"backdrop-blur":[{"backdrop-blur":Ye()}],"backdrop-brightness":[{"backdrop-brightness":[g,d,l]}],"backdrop-contrast":[{"backdrop-contrast":[g,d,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,d,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,d,l]}],"backdrop-invert":[{"backdrop-invert":["",g,d,l]}],"backdrop-opacity":[{"backdrop-opacity":[g,d,l]}],"backdrop-saturate":[{"backdrop-saturate":[g,d,l]}],"backdrop-sepia":[{"backdrop-sepia":["",g,d,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",d,l]}],ease:[{ease:["linear","initial",z,d,l]}],delay:[{delay:[g,d,l]}],animate:[{animate:["none",ee,d,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,d,l]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[d,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:m()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:m()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d,l]}],fill:[{fill:["none",...m()]}],"stroke-w":[{stroke:[g,J,_,we]}],stroke:[{stroke:["none",...m()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},br=Tt(Jt),nt=6048e5,Ut=864e5,ce=43200,Ie=1440,_e=Symbol.for("constructDateFrom");function k(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&_e in e?e[_e](n):e instanceof Date?new e.constructor(n):new Date(n)}function w(e,n){return k(n||e,e)}function rt(e,n,t){const r=w(e,t?.in);return isNaN(n)?k(e,NaN):(n&&r.setDate(r.getDate()+n),r)}function Kt(e,n,t){const r=w(e,t?.in);if(isNaN(n))return k(e,NaN);if(!n)return r;const o=r.getDate(),a=k(e,r.getTime());a.setMonth(r.getMonth()+n+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Zt={};function B(){return Zt}function Z(e,n){const t=B(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,o=w(e,n?.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function ue(e,n){return Z(e,{...n,weekStartsOn:1})}function ot(e,n){const t=w(e,n?.in),r=t.getFullYear(),o=k(t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=ue(o),s=k(t,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=ue(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function fe(e){const n=w(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}function A(e,...n){const t=k.bind(null,e||n.find(r=>typeof r=="object"));return n.map(t)}function me(e,n){const t=w(e,n?.in);return t.setHours(0,0,0,0),t}function en(e,n,t){const[r,o]=A(t?.in,e,n),a=me(r),s=me(o),i=+a-fe(a),c=+s-fe(s);return Math.round((i-c)/Ut)}function tn(e,n){const t=ot(e,n),r=k(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),ue(r)}function pr(e,n,t){return rt(e,n*7,t)}function wr(e,n,t){return Kt(e,n*12,t)}function yr(e,n){let t,r=n?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=k.bind(null,o));const a=w(o,r);(!t||t<a||isNaN(+a))&&(t=a)}),k(r,t||NaN)}function kr(e,n){let t,r=n?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=k.bind(null,o));const a=w(o,r);(!t||t>a||isNaN(+a))&&(t=a)}),k(r,t||NaN)}function le(e,n){const t=+w(e)-+w(n);return t<0?-1:t>0?1:t}function nn(e){return k(e,Date.now())}function xr(e,n,t){const[r,o]=A(t?.in,e,n);return+me(r)==+me(o)}function rn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function on(e){return!(!rn(e)&&typeof e!="number"||isNaN(+w(e)))}function an(e,n,t){const[r,o]=A(t?.in,e,n),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function sn(e){return n=>{const r=(e?Math[e]:Math.trunc)(n);return r===0?0:r}}function cn(e,n){return+w(e)-+w(n)}function ln(e,n){const t=w(e,n?.in);return t.setHours(23,59,59,999),t}function dn(e,n){const t=w(e,n?.in),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function un(e,n){const t=w(e,n?.in);return+ln(t,n)==+dn(t,n)}function fn(e,n,t){const[r,o,a]=A(t?.in,e,e,n),s=le(o,a),i=Math.abs(an(o,a));if(i<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*i);let c=le(o,a)===-s;un(r)&&i===1&&le(r,a)===1&&(c=!1);const u=s*(i-+c);return u===0?0:u}function mn(e,n,t){const r=cn(e,n)/1e3;return sn(t?.roundingMethod)(r)}function at(e,n){const[t,r]=A(e,n.start,n.end);return{start:t,end:r}}function vr(e,n){const{start:t,end:r}=at(n?.in,e);let o=+t>+r;const a=o?+t:+r,s=o?r:t;s.setHours(0,0,0,0),s.setDate(1);let i=1;const c=[];for(;+s<=a;)c.push(k(t,s)),s.setMonth(s.getMonth()+i);return o?c.reverse():c}function Mr(e,n){const t=w(e,n?.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Or(e,n){const t=w(e,n?.in),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function hn(e,n){const t=w(e,n?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Dr(e,n){const{start:t,end:r}=at(n?.in,e);let o=+t>+r;const a=o?+t:+r,s=o?r:t;s.setHours(0,0,0,0),s.setMonth(0,1);let i=1;const c=[];for(;+s<=a;)c.push(k(t,s)),s.setFullYear(s.getFullYear()+i);return o?c.reverse():c}function gn(e,n){const t=B(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,o=w(e,n?.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Sr(e,n){return gn(e,{...n,weekStartsOn:1})}const bn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},pn=(e,n,t)=>{let r;const o=bn[e];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function ye(e){return(n={})=>{const t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const wn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xn={date:ye({formats:wn,defaultWidth:"full"}),time:ye({formats:yn,defaultWidth:"full"}),dateTime:ye({formats:kn,defaultWidth:"full"})},vn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mn=(e,n,t,r)=>vn[e];function U(e){return(n,t)=>{const r=t?.context?String(t.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=t?.width?String(t.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=t?.width?String(t.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(n):n;return o[a]}}const On={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Sn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Pn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Cn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Tn=(e,n)=>{const t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Wn={ordinalNumber:Tn,era:U({values:On,defaultWidth:"wide"}),quarter:U({values:Dn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:U({values:Sn,defaultWidth:"wide"}),day:U({values:Pn,defaultWidth:"wide"}),dayPeriod:U({values:Cn,defaultWidth:"wide",formattingValues:Yn,defaultFormattingWidth:"wide"})};function K(e){return(n,t={})=>{const r=t.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=n.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(i)?Fn(i,b=>b.test(s)):Nn(i,b=>b.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=t.valueCallback?t.valueCallback(u):u;const f=n.slice(s.length);return{value:u,rest:f}}}function Nn(e,n){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function Fn(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return t}function An(e){return(n,t={})=>{const r=n.match(e.matchPattern);if(!r)return null;const o=r[0],a=n.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const i=n.slice(o.length);return{value:s,rest:i}}}const zn=/^(\d+)(th|st|nd|rd)?/i,En=/\d+/i,In={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_n={any:[/^b/i,/^(a|c)/i]},Rn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gn={any:[/1/i,/2/i,/3/i,/4/i]},jn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ln={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},qn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Hn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Vn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bn={ordinalNumber:An({matchPattern:zn,parsePattern:En,valueCallback:e=>parseInt(e,10)}),era:K({matchPatterns:In,defaultMatchWidth:"wide",parsePatterns:_n,defaultParseWidth:"any"}),quarter:K({matchPatterns:Rn,defaultMatchWidth:"wide",parsePatterns:Gn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:K({matchPatterns:jn,defaultMatchWidth:"wide",parsePatterns:Ln,defaultParseWidth:"any"}),day:K({matchPatterns:qn,defaultMatchWidth:"wide",parsePatterns:Hn,defaultParseWidth:"any"}),dayPeriod:K({matchPatterns:Vn,defaultMatchWidth:"any",parsePatterns:Xn,defaultParseWidth:"any"})},st={code:"en-US",formatDistance:pn,formatLong:xn,formatRelative:Mn,localize:Wn,match:Bn,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Qn(e,n){const t=w(e,n?.in);return en(t,hn(t))+1}function $n(e,n){const t=w(e,n?.in),r=+ue(t)-+tn(t);return Math.round(r/nt)+1}function it(e,n){const t=w(e,n?.in),r=t.getFullYear(),o=B(),a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=k(n?.in||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=Z(s,n),c=k(n?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const u=Z(c,n);return+t>=+i?r+1:+t>=+u?r:r-1}function Jn(e,n){const t=B(),r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,o=it(e,n),a=k(n?.in||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),Z(a,n)}function Un(e,n){const t=w(e,n?.in),r=+Z(t,n)-+Jn(t,n);return Math.round(r/nt)+1}function y(e,n){const t=e<0?"-":"",r=Math.abs(e).toString().padStart(n,"0");return t+r}const F={y(e,n){const t=e.getFullYear(),r=t>0?t:1-t;return y(n==="yy"?r%100:r,n.length)},M(e,n){const t=e.getMonth();return n==="M"?String(t+1):y(t+1,2)},d(e,n){return y(e.getDate(),n.length)},a(e,n){const t=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,n){return y(e.getHours()%12||12,n.length)},H(e,n){return y(e.getHours(),n.length)},m(e,n){return y(e.getMinutes(),n.length)},s(e,n){return y(e.getSeconds(),n.length)},S(e,n){const t=n.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,t-3));return y(o,n.length)}},H={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Re={G:function(e,n,t){const r=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if(n==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return t.ordinalNumber(o,{unit:"year"})}return F.y(e,n)},Y:function(e,n,t,r){const o=it(e,r),a=o>0?o:1-o;if(n==="YY"){const s=a%100;return y(s,2)}return n==="Yo"?t.ordinalNumber(a,{unit:"year"}):y(a,n.length)},R:function(e,n){const t=ot(e);return y(t,n.length)},u:function(e,n){const t=e.getFullYear();return y(t,n.length)},Q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return y(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return y(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){const r=e.getMonth();switch(n){case"M":case"MM":return F.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){const r=e.getMonth();switch(n){case"L":return String(r+1);case"LL":return y(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){const o=Un(e,r);return n==="wo"?t.ordinalNumber(o,{unit:"week"}):y(o,n.length)},I:function(e,n,t){const r=$n(e);return n==="Io"?t.ordinalNumber(r,{unit:"week"}):y(r,n.length)},d:function(e,n,t){return n==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):F.d(e,n)},D:function(e,n,t){const r=Qn(e);return n==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):y(r,n.length)},E:function(e,n,t){const r=e.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return y(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(o,{width:"short",context:"formatting"});case"eeee":default:return t.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return y(a,n.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(o,{width:"narrow",context:"standalone"});case"cccccc":return t.day(o,{width:"short",context:"standalone"});case"cccc":default:return t.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,t){const r=e.getDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return y(o,n.length);case"io":return t.ordinalNumber(o,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){const o=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,t){const r=e.getHours();let o;switch(r===12?o=H.noon:r===0?o=H.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,t){const r=e.getHours();let o;switch(r>=17?o=H.evening:r>=12?o=H.afternoon:r>=4?o=H.morning:o=H.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,t){if(n==="ho"){let r=e.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return F.h(e,n)},H:function(e,n,t){return n==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):F.H(e,n)},K:function(e,n,t){const r=e.getHours()%12;return n==="Ko"?t.ordinalNumber(r,{unit:"hour"}):y(r,n.length)},k:function(e,n,t){let r=e.getHours();return r===0&&(r=24),n==="ko"?t.ordinalNumber(r,{unit:"hour"}):y(r,n.length)},m:function(e,n,t){return n==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):F.m(e,n)},s:function(e,n,t){return n==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):F.s(e,n)},S:function(e,n){return F.S(e,n)},X:function(e,n,t){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return je(r);case"XXXX":case"XX":return R(r);case"XXXXX":case"XXX":default:return R(r,":")}},x:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"x":return je(r);case"xxxx":case"xx":return R(r);case"xxxxx":case"xxx":default:return R(r,":")}},O:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ge(r,":");case"OOOO":default:return"GMT"+R(r,":")}},z:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ge(r,":");case"zzzz":default:return"GMT"+R(r,":")}},t:function(e,n,t){const r=Math.trunc(+e/1e3);return y(r,n.length)},T:function(e,n,t){return y(+e,n.length)}};function Ge(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?t+String(o):t+String(o)+n+y(a,2)}function je(e,n){return e%60===0?(e>0?"-":"+")+y(Math.abs(e)/60,2):R(e,n)}function R(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),o=y(Math.trunc(r/60),2),a=y(r%60,2);return t+o+n+a}const Le=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},ct=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Kn=(e,n)=>{const t=e.match(/(P+)(p+)?/)||[],r=t[1],o=t[2];if(!o)return Le(e,n);let a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Le(r,n)).replace("{{time}}",ct(o,n))},Zn={p:ct,P:Kn},er=/^D+$/,tr=/^Y+$/,nr=["D","DD","YY","YYYY"];function rr(e){return er.test(e)}function or(e){return tr.test(e)}function ar(e,n,t){const r=sr(e,n,t);if(console.warn(r),nr.includes(e))throw new RangeError(r)}function sr(e,n,t){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ir=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,lr=/^'([^]*?)'?$/,dr=/''/g,ur=/[a-zA-Z]/;function Pr(e,n,t){const r=B(),o=t?.locale??r.locale??st,a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=w(e,t?.in);if(!on(i))throw new RangeError("Invalid time value");let c=n.match(cr).map(f=>{const b=f[0];if(b==="p"||b==="P"){const p=Zn[b];return p(f,o.formatLong)}return f}).join("").match(ir).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const b=f[0];if(b==="'")return{isToken:!1,value:fr(f)};if(Re[b])return{isToken:!0,value:f};if(b.match(ur))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(c=o.localize.preprocessor(i,c));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return c.map(f=>{if(!f.isToken)return f.value;const b=f.value;(!t?.useAdditionalWeekYearTokens&&or(b)||!t?.useAdditionalDayOfYearTokens&&rr(b))&&ar(b,n,String(e));const p=Re[b[0]];return p(i,b,o.localize,u)}).join("")}function fr(e){const n=e.match(lr);return n?n[1].replace(dr,"'"):e}function mr(e,n,t){const r=B(),o=t?.locale??r.locale??st,a=2520,s=le(e,n);if(isNaN(s))throw new RangeError("Invalid time value");const i=Object.assign({},t,{addSuffix:t?.addSuffix,comparison:s}),[c,u]=A(t?.in,...s>0?[n,e]:[e,n]),f=mn(u,c),b=(fe(u)-fe(c))/1e3,p=Math.round((f-b)/60);let S;if(p<2)return t?.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,i):f<10?o.formatDistance("lessThanXSeconds",10,i):f<20?o.formatDistance("lessThanXSeconds",20,i):f<40?o.formatDistance("halfAMinute",0,i):f<60?o.formatDistance("lessThanXMinutes",1,i):o.formatDistance("xMinutes",1,i):p===0?o.formatDistance("lessThanXMinutes",1,i):o.formatDistance("xMinutes",p,i);if(p<45)return o.formatDistance("xMinutes",p,i);if(p<90)return o.formatDistance("aboutXHours",1,i);if(p<Ie){const v=Math.round(p/60);return o.formatDistance("aboutXHours",v,i)}else{if(p<a)return o.formatDistance("xDays",1,i);if(p<ce){const v=Math.round(p/Ie);return o.formatDistance("xDays",v,i)}else if(p<ce*2)return S=Math.round(p/ce),o.formatDistance("aboutXMonths",S,i)}if(S=fn(u,c),S<12){const v=Math.round(p/ce);return o.formatDistance("xMonths",v,i)}else{const v=S%12,M=Math.trunc(S/12);return v<3?o.formatDistance("aboutXYears",M,i):v<9?o.formatDistance("overXYears",M,i):o.formatDistance("almostXYears",M+1,i)}}function Cr(e,n){return mr(e,nn(e),n)}function hr(e,n){const t=w(e,n?.in),r=t.getFullYear(),o=t.getMonth(),a=k(t,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Yr(e,n){return w(e,n?.in).getMonth()}function Tr(e,n){return w(e,n?.in).getFullYear()}function Wr(e,n){return+w(e)>+w(n)}function Nr(e,n){return+w(e)<+w(n)}function Fr(e,n,t){const[r,o]=A(t?.in,e,n);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function Ar(e,n,t){const[r,o]=A(t?.in,e,n);return r.getFullYear()===o.getFullYear()}function zr(e,n,t){return rt(e,-n,t)}function Er(e,n,t){const r=w(e,t?.in),o=r.getFullYear(),a=r.getDate(),s=k(e,0);s.setFullYear(o,n,15),s.setHours(0,0,0,0);const i=hr(s);return r.setMonth(n,Math.min(a,i)),r}function Ir(e,n,t){const r=w(e,t?.in);return isNaN(+r)?k(e,NaN):(r.setFullYear(n),r)}export{Ar as A,yr as B,kr as C,Er as D,Ir as E,me as F,ue as G,Mr as H,Z as I,hn as J,zr as K,Cr as L,gr as a,rt as b,lt as c,Kt as d,st as e,Pr as f,pr as g,wr as h,en as i,an as j,vr as k,Dr as l,Sr as m,dn as n,gn as o,Or as p,$n as q,Yr as r,Tr as s,br as t,Un as u,Wr as v,Nr as w,rn as x,xr as y,Fr as z};
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>AzureAI</title><path clip-rule="evenodd" d="M16.233 0c.713 0 1.345.551 1.572 1.329.227.778 1.555 5.59 1.555 5.59v9.562h-4.813L14.645 0h1.588z" fill="url(#lobe-icons-azure-ai-fill-0)" fill-rule="evenodd"></path><path d="M23.298 7.47c0-.34-.275-.6-.6-.6h-2.835a3.617 3.617 0 00-3.614 3.615v5.996h3.436a3.617 3.617 0 003.613-3.614V7.47z" fill="url(#lobe-icons-azure-ai-fill-1)"></path><path clip-rule="evenodd" d="M16.233 0a.982.982 0 00-.989.989l-.097 18.198A4.814 4.814 0 0110.334 24H1.6a.597.597 0 01-.567-.794l7-19.981A4.819 4.819 0 0112.57 0h3.679-.016z" fill="url(#lobe-icons-azure-ai-fill-2)" fill-rule="evenodd"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azure-ai-fill-0" x1="18.242" x2="14.191" y1="16.837" y2=".616"><stop stop-color="#712575"></stop><stop offset=".09" stop-color="#9A2884"></stop><stop offset=".18" stop-color="#BF2C92"></stop><stop offset=".27" stop-color="#DA2E9C"></stop><stop offset=".34" stop-color="#EB30A2"></stop><stop offset=".4" stop-color="#F131A5"></stop><stop offset=".5" stop-color="#EC30A3"></stop><stop offset=".61" stop-color="#DF2F9E"></stop><stop offset=".72" stop-color="#C92D96"></stop><stop offset=".83" stop-color="#AA2A8A"></stop><stop offset=".95" stop-color="#83267C"></stop><stop offset="1" stop-color="#712575"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azure-ai-fill-1" x1="19.782" x2="19.782" y1=".34" y2="23.222"><stop stop-color="#DA7ED0"></stop><stop offset=".08" stop-color="#B17BD5"></stop><stop offset=".19" stop-color="#8778DB"></stop><stop offset=".3" stop-color="#6276E1"></stop><stop offset=".41" stop-color="#4574E5"></stop><stop offset=".54" stop-color="#2E72E8"></stop><stop offset=".67" stop-color="#1D71EB"></stop><stop offset=".81" stop-color="#1471EC"></stop><stop offset="1" stop-color="#1171ED"></stop></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-azure-ai-fill-2" x1="18.404" x2="3.236" y1=".859" y2="25.183"><stop stop-color="#DA7ED0"></stop><stop offset=".05" stop-color="#B77BD4"></stop><stop offset=".11" stop-color="#9079DA"></stop><stop offset=".18" stop-color="#6E77DF"></stop><stop offset=".25" stop-color="#5175E3"></stop><stop offset=".33" stop-color="#3973E7"></stop><stop offset=".42" stop-color="#2772E9"></stop><stop offset=".54" stop-color="#1A71EB"></stop><stop offset=".68" stop-color="#1371EC"></stop><stop offset="1" stop-color="#1171ED"></stop></linearGradient></defs></svg>
@@ -0,0 +1 @@
1
+ <svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" fill="#4D6BFE"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Kimi</title><path d="M19.738 5.776c.163-.209.306-.4.457-.585.07-.087.064-.153-.004-.244-.655-.861-.717-1.817-.34-2.787.283-.73.909-1.072 1.674-1.145.477-.045.945.004 1.379.236.57.305.902.77 1.01 1.412.086.512.07 1.012-.075 1.508-.257.878-.888 1.333-1.753 1.448-.718.096-1.446.108-2.17.157-.056.004-.113 0-.178 0z" fill="#027AFF"></path><path d="M17.962 1.844h-4.326l-3.425 7.81H5.369V1.878H1.5V22h3.87v-8.477h6.824a3.025 3.025 0 002.743-1.75V22h3.87v-8.477a3.87 3.87 0 00-3.588-3.86v-.01h-2.125a3.94 3.94 0 002.323-2.12l2.545-5.689z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Minimax</title><defs><linearGradient id="lobe-icons-minimax-fill" x1="0%" x2="100.182%" y1="50.057%" y2="50.057%"><stop offset="0%" stop-color="#E2167E"></stop><stop offset="100%" stop-color="#FE603C"></stop></linearGradient></defs><path d="M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z" fill="url(#lobe-icons-minimax-fill)" fill-rule="nonzero"></path></svg>
@@ -0,0 +1,9 @@
1
+ <svg height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg">
2
+ <title>Novita AI</title>
3
+ <path
4
+ clip-rule="evenodd"
5
+ d="M9.167 4.17v5.665L0 19.003h9.167v-5.666l5.666 5.666H24L9.167 4.17z"
6
+ fill="#23D57C"
7
+ fill-rule="evenodd"
8
+ />
9
+ </svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Ollama</title><path d="M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenRouter</title><path d="M16.804 1.957l7.22 4.105v.087L16.73 10.21l.017-2.117-.821-.03c-1.059-.028-1.611.002-2.268.11-1.064.175-2.038.577-3.147 1.352L8.345 11.03c-.284.195-.495.336-.68.455l-.515.322-.397.234.385.23.53.338c.476.314 1.17.796 2.701 1.866 1.11.775 2.083 1.177 3.147 1.352l.3.045c.694.091 1.375.094 2.825.033l.022-2.159 7.22 4.105v.087L16.589 22l.014-1.862-.635.022c-1.386.042-2.137.002-3.138-.162-1.694-.28-3.26-.926-4.881-2.059l-2.158-1.5a21.997 21.997 0 00-.755-.498l-.467-.28a55.927 55.927 0 00-.76-.43C2.908 14.73.563 14.116 0 14.116V9.888l.14.004c.564-.007 2.91-.622 3.809-1.124l1.016-.58.438-.274c.428-.28 1.072-.726 2.686-1.853 1.621-1.133 3.186-1.78 4.881-2.059 1.152-.19 1.974-.213 3.814-.138l.02-1.907z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Z.ai</title><path d="M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"></path></svg>