@xopcai/xopc 0.0.488 → 0.0.489

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 (499) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/dingtalk/src/index.js +54 -10
  3. package/dist/extensions/discord/src/index.js +39 -6
  4. package/dist/extensions/feishu/src/adapters/cli-login.js +1 -1
  5. package/dist/extensions/feishu/src/adapters/gateway-setup.js +1 -1
  6. package/dist/extensions/feishu/src/outbound/media-load.d.ts +1 -0
  7. package/dist/extensions/feishu/src/outbound/media-load.js +2 -2
  8. package/dist/extensions/feishu/src/outbound/outbound-adapter.js +2 -1
  9. package/dist/extensions/feishu/src/pairing/feishu-pairing-prompt.js +1 -1
  10. package/dist/extensions/feishu/src/plugin.js +1 -1
  11. package/dist/extensions/feishu/src/streaming/streaming-adapter.js +1 -1
  12. package/dist/extensions/feishu/src/transport/client/install-sdk.js +2 -2
  13. package/dist/extensions/feishu/src/transport/reliability/message-ingress.js +3 -3
  14. package/dist/extensions/feishu/src/transport/socket-mode/monitor.js +1 -1
  15. package/dist/extensions/slack/src/index.js +51 -1
  16. package/dist/extensions/slack/src/manifest.js +1 -0
  17. package/dist/extensions/telegram/src/adapters/outbound-adapter.js +6 -1
  18. package/dist/extensions/telegram/src/adapters/streaming-adapter.js +3 -3
  19. package/dist/extensions/telegram/src/doctor.js +2 -2
  20. package/dist/extensions/telegram/src/draft-stream.js +1 -1
  21. package/dist/extensions/telegram/src/exec-approval-handler.js +1 -1
  22. package/dist/extensions/telegram/src/focus-handler.js +1 -1
  23. package/dist/extensions/telegram/src/inbound-processor.js +7 -7
  24. package/dist/extensions/telegram/src/outbound-sender.js +6 -5
  25. package/dist/extensions/telegram/src/plugin.js +23 -23
  26. package/dist/extensions/telegram/xopc.extension.json +1 -1
  27. package/dist/extensions/wecom/src/index.js +82 -6
  28. package/dist/extensions/weixin/src/api/api.js +1 -1
  29. package/dist/extensions/weixin/src/auth/accounts.js +2 -2
  30. package/dist/extensions/weixin/src/auth/pairing.js +1 -1
  31. package/dist/extensions/weixin/src/cdn/upload.js +1 -1
  32. package/dist/extensions/weixin/src/cli/gateway-qr-login.js +1 -1
  33. package/dist/extensions/weixin/src/cli/qr-login.js +2 -2
  34. package/dist/extensions/weixin/src/media/data-url.d.ts +1 -0
  35. package/dist/extensions/weixin/src/media/data-url.js +5 -2
  36. package/dist/extensions/weixin/src/messaging/debug-mode.js +1 -1
  37. package/dist/extensions/weixin/src/messaging/inbound.js +2 -2
  38. package/dist/extensions/weixin/src/messaging/process-message.js +5 -5
  39. package/dist/extensions/weixin/src/messaging/quote-cache.js +1 -1
  40. package/dist/extensions/weixin/src/messaging/send.js +1 -1
  41. package/dist/extensions/weixin/src/monitor/monitor.js +2 -2
  42. package/dist/extensions/weixin/src/outbound-send.js +18 -6
  43. package/dist/extensions/weixin/src/plugin.js +3 -3
  44. package/dist/gateway/server/chunks.bin +1560 -1521
  45. package/dist/gateway/server/chunks.json +1 -1
  46. package/dist/gateway/static/root/assets/{automations-page-DelDZorh.js → automations-page-B3i5x1Lc.js} +1 -1
  47. package/dist/gateway/static/root/assets/{automations-workspace-leY4yCvw.js → automations-workspace-D6-Kk33X.js} +2 -2
  48. package/dist/gateway/static/root/assets/{chat-page-XqG9aYBd.js → chat-page-oy4EGdO1.js} +2 -2
  49. package/dist/gateway/static/root/assets/{home-page-Bxr3V5lc.js → home-page-BmoT_EN4.js} +3 -3
  50. package/dist/gateway/static/root/assets/{home-task-actions-GAO06s1_.js → home-task-actions-Ck0AhcYe.js} +1 -1
  51. package/dist/gateway/static/root/assets/{index-BjU5H5hz.js → index-BiQP7-5r.js} +8 -8
  52. package/dist/gateway/static/root/assets/{note-detail-panel-BTNX68oO.js → note-detail-panel-CYNPJVVE.js} +2 -2
  53. package/dist/gateway/static/root/assets/{notes-page-FocipOyc.js → notes-page-Dpd98vQp.js} +1 -1
  54. package/dist/gateway/static/root/assets/{personal-page-CSc2n5UD.js → personal-page-BfljqOp5.js} +1 -1
  55. package/dist/gateway/static/root/assets/{project-detail-page-CK_EN6Jq.js → project-detail-page-CcnOT_aq.js} +1 -1
  56. package/dist/gateway/static/root/assets/right-workspace-store-DsVm6C0V.js +1 -0
  57. package/dist/gateway/static/root/assets/{route-preload-Ab7Zw-df.js → route-preload-CsBdFJHO.js} +2 -2
  58. package/dist/gateway/static/root/assets/{routine-panel-DzdJGicv.js → routine-panel-pVuJtctD.js} +2 -2
  59. package/dist/gateway/static/root/assets/{settings-page-CzW5GM5r.js → settings-page-BRAijVXZ.js} +1 -1
  60. package/dist/gateway/static/root/assets/{space-page-BCzDsNJd.js → space-page-CUwakPrj.js} +2 -2
  61. package/dist/gateway/static/root/assets/{task-detail-page-B_YXsT9W.js → task-detail-page-Cvx-XtFO.js} +1 -1
  62. package/dist/gateway/static/root/assets/{task-header-title-bZVPIbyR.js → task-header-title-DHb7z-hq.js} +1 -1
  63. package/dist/gateway/static/root/assets/{task-run-issue-notice-BXOES2t9.js → task-run-issue-notice-CqjS8_gi.js} +1 -1
  64. package/dist/gateway/static/root/assets/{use-composer-attachments-DWiIdMIi.js → use-composer-attachments-CQwCTKAp.js} +1 -1
  65. package/dist/gateway/static/root/assets/{use-personal-work-D0tMU1bP.js → use-personal-work-fvvZDK_7.js} +1 -1
  66. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-DPHnm_7A.js → workspace-file-preview-dialog-DdVyIRKm.js} +1 -1
  67. package/dist/gateway/static/root/index.html +9 -9
  68. package/dist/package.js +1 -1
  69. package/dist/src/activity/emitter.js +1 -1
  70. package/dist/src/agent/agent-manager.js +8 -8
  71. package/dist/src/agent/background-review/prompts.js +1 -1
  72. package/dist/src/agent/background-review/run-background-review.js +3 -3
  73. package/dist/src/agent/coding/repository-instructions.js +1 -1
  74. package/dist/src/agent/coding/workspace-revision.js +1 -1
  75. package/dist/src/agent/commands/command-isolation.js +1 -1
  76. package/dist/src/agent/commands/command-registry.js +1 -1
  77. package/dist/src/agent/context/execution-context.js +2 -2
  78. package/dist/src/agent/context/workspace-seed.js +1 -1
  79. package/dist/src/agent/data-acquisition/git.js +1 -1
  80. package/dist/src/agent/data-acquisition/service.js +1 -1
  81. package/dist/src/agent/embedded/codemode-output.js +2 -2
  82. package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
  83. package/dist/src/agent/embedded/model-runtime.js +1 -1
  84. package/dist/src/agent/embedded/run-for-session.js +6 -6
  85. package/dist/src/agent/embedded/run-turn.js +76 -17
  86. package/dist/src/agent/embedded/runs.js +1 -1
  87. package/dist/src/agent/embedded/session-runner.js +2 -1
  88. package/dist/src/agent/embedded/types.d.ts +1 -1
  89. package/dist/src/agent/embedded/xopc-stream-bridge.js +3 -3
  90. package/dist/src/agent/external-tools/endpoint-provider.js +1 -1
  91. package/dist/src/agent/external-tools/index.js +1 -1
  92. package/dist/src/agent/image/generation/providers/xopc-cloud.js +2 -2
  93. package/dist/src/agent/image/load-image-media.js +2 -2
  94. package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
  95. package/dist/src/agent/inbound/inbound-loop.js +6 -1
  96. package/dist/src/agent/independent-execution.js +2 -2
  97. package/dist/src/agent/mcp/connection-drafts.js +2 -2
  98. package/dist/src/agent/mcp/connection-setup.js +1 -1
  99. package/dist/src/agent/mcp/conversation-setup.js +1 -1
  100. package/dist/src/agent/mcp/discovery.js +1 -1
  101. package/dist/src/agent/mcp/transport.js +1 -1
  102. package/dist/src/agent/mcp/weixin-setup-scope.js +2 -2
  103. package/dist/src/agent/messaging/command-handler.js +1 -1
  104. package/dist/src/agent/prompt/response-language.js +1 -1
  105. package/dist/src/agent/prompt/sections/tooling.d.ts +1 -0
  106. package/dist/src/agent/prompt/sections/tooling.js +7 -2
  107. package/dist/src/agent/prompt/service-prompt-builder.js +1 -1
  108. package/dist/src/agent/prompt/system-prompt-params.js +1 -1
  109. package/dist/src/agent/prompt/system-prompt.js +1 -0
  110. package/dist/src/agent/sandbox/exec-policy.js +1 -1
  111. package/dist/src/agent/sandbox/native-command.js +1 -1
  112. package/dist/src/agent/sandbox/path-policy.js +1 -1
  113. package/dist/src/agent/service/direct-turn-helpers.js +3 -3
  114. package/dist/src/agent/service/process-direct-streaming.js +2 -2
  115. package/dist/src/agent/service.js +7 -5
  116. package/dist/src/agent/session/session-config-service.js +1 -1
  117. package/dist/src/agent/skills/hub-hash.js +1 -1
  118. package/dist/src/agent/skills/hub-lock.js +1 -1
  119. package/dist/src/agent/skills/hub-pull.js +3 -3
  120. package/dist/src/agent/skills/index.js +1 -1
  121. package/dist/src/agent/skills/managed-store.js +1 -1
  122. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  123. package/dist/src/agent/skills/skill-sources.js +1 -1
  124. package/dist/src/agent/tools/browser/tool/browser-use-tool.js +48 -2
  125. package/dist/src/agent/tools/browser/tool/schemas.d.ts +2 -1
  126. package/dist/src/agent/tools/browser/tool/schemas.js +6 -0
  127. package/dist/src/agent/tools/communication.d.ts +1 -0
  128. package/dist/src/agent/tools/communication.js +10 -3
  129. package/dist/src/agent/tools/delegate-tool.js +1 -1
  130. package/dist/src/agent/tools/exec-command.js +1 -1
  131. package/dist/src/agent/tools/executor.js +1 -1
  132. package/dist/src/agent/tools/factory.js +13 -4
  133. package/dist/src/agent/tools/fetch-text.js +1 -1
  134. package/dist/src/agent/tools/image-generate-tool.d.ts +7 -0
  135. package/dist/src/agent/tools/image-generate-tool.js +21 -1
  136. package/dist/src/agent/tools/managed-job-tool.js +1 -1
  137. package/dist/src/agent/tools/personal-attention-tool.js +1 -1
  138. package/dist/src/agent/tools/personal-memory-tool.js +3 -3
  139. package/dist/src/agent/tools/publish-artifacts.js +1 -1
  140. package/dist/src/agent/tools/read.js +1 -1
  141. package/dist/src/agent/tools/review-workspace.js +2 -2
  142. package/dist/src/agent/tools/scoped-workspace-tools.js +1 -1
  143. package/dist/src/agent/tools/send-media.d.ts +1 -0
  144. package/dist/src/agent/tools/send-media.js +7 -4
  145. package/dist/src/agent/tools/task-collaboration-tool.js +2 -2
  146. package/dist/src/agent/tools/tool-media.d.ts +1 -0
  147. package/dist/src/agent/tools/tool-media.js +14 -1
  148. package/dist/src/agent/tools/user-context-tool.js +2 -2
  149. package/dist/src/agent/tools/web-extract.js +1 -1
  150. package/dist/src/agent/tools/write.js +1 -1
  151. package/dist/src/agent/tools/xopc-use-tool.js +6 -6
  152. package/dist/src/agent-catalog/repository.js +1 -1
  153. package/dist/src/auth/credentials.js +1 -1
  154. package/dist/src/auth/oauth/openai.js +1 -1
  155. package/dist/src/auth/oauth/xopc-cloud.js +2 -2
  156. package/dist/src/auth/oauth-provider-lock.js +1 -1
  157. package/dist/src/auth/profiles/store.js +1 -1
  158. package/dist/src/automations/delivery/delivery-router.js +1 -1
  159. package/dist/src/automations/service/action-executor.js +1 -1
  160. package/dist/src/automations/service/automation-service.js +1 -1
  161. package/dist/src/backup/archive.js +4 -4
  162. package/dist/src/browser/assistance.d.ts +34 -0
  163. package/dist/src/browser/assistance.js +243 -0
  164. package/dist/src/browser/cache-dir-policy.js +1 -1
  165. package/dist/src/browser/drivers/browser-driver.d.ts +44 -0
  166. package/dist/src/browser/drivers/playwright-driver.d.ts +2 -1
  167. package/dist/src/browser/drivers/playwright-driver.js +161 -0
  168. package/dist/src/browser/managed-live-runtime.d.ts +79 -0
  169. package/dist/src/browser/managed-live-runtime.js +313 -0
  170. package/dist/src/browser/native-messaging-host.js +1 -1
  171. package/dist/src/browser/providers/browser-ext-install.js +4 -4
  172. package/dist/src/browser/runtime/browser-runtime.d.ts +18 -1
  173. package/dist/src/browser/runtime/browser-runtime.js +55 -4
  174. package/dist/src/capabilities/capability-catalog.js +2 -2
  175. package/dist/src/capabilities/readiness/from-config.js +2 -2
  176. package/dist/src/capabilities/store-connector.js +1 -1
  177. package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
  178. package/dist/src/channels/channel-domain.d.ts +1 -0
  179. package/dist/src/channels/enterprise/media.d.ts +14 -0
  180. package/dist/src/channels/enterprise/media.js +208 -0
  181. package/dist/src/channels/enterprise/plugin.d.ts +4 -0
  182. package/dist/src/channels/enterprise/plugin.js +40 -12
  183. package/dist/src/channels/format.js +1 -1
  184. package/dist/src/channels/index.js +2 -2
  185. package/dist/src/channels/internal-outbound.d.ts +2 -0
  186. package/dist/src/channels/internal-outbound.js +17 -1
  187. package/dist/src/channels/lifecycle-supervisor.js +1 -1
  188. package/dist/src/channels/outbound-sender.js +2 -2
  189. package/dist/src/channels/pairing/pairing-service.js +1 -1
  190. package/dist/src/channels/pairing/pairing-store.js +1 -1
  191. package/dist/src/chat-commands/builtins/config.js +2 -2
  192. package/dist/src/chat-commands/builtins/review.js +1 -1
  193. package/dist/src/chat-commands/builtins/session.js +1 -1
  194. package/dist/src/chat-commands/builtins/thinking.js +1 -1
  195. package/dist/src/chat-commands/builtins/tts.js +1 -1
  196. package/dist/src/chat-commands/builtins/understanding.js +1 -1
  197. package/dist/src/chat-commands/context.js +2 -2
  198. package/dist/src/chat-commands/index.js +1 -1
  199. package/dist/src/cli/commands/agent.js +2 -2
  200. package/dist/src/cli/commands/browser-cli-helpers.js +1 -1
  201. package/dist/src/cli/commands/connectors.js +1 -1
  202. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  203. package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
  204. package/dist/src/cli/commands/doctor/checks/image-providers.js +1 -1
  205. package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
  206. package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
  207. package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
  208. package/dist/src/cli/commands/extension-marketplace.js +3 -3
  209. package/dist/src/cli/commands/extension-pack.js +1 -1
  210. package/dist/src/cli/commands/extension.js +1 -1
  211. package/dist/src/cli/commands/mcp.js +1 -1
  212. package/dist/src/cli/commands/models.js +3 -3
  213. package/dist/src/cli/commands/onboard/model.js +2 -2
  214. package/dist/src/cli/commands/onboard.js +1 -1
  215. package/dist/src/cli/commands/project.js +1 -1
  216. package/dist/src/cli/commands/runtime.js +1 -1
  217. package/dist/src/cli/commands/skills.js +1 -1
  218. package/dist/src/cli/commands/tunnel.js +1 -1
  219. package/dist/src/cli/utils/gateway-client.js +1 -1
  220. package/dist/src/cli/utils/init-workspace-core.js +2 -2
  221. package/dist/src/computer/broker.js +1 -1
  222. package/dist/src/computer/runtime.js +2 -2
  223. package/dist/src/config/index.js +3 -3
  224. package/dist/src/config/loader.js +2 -2
  225. package/dist/src/config/models-json.js +1 -1
  226. package/dist/src/config/paths-state.js +1 -1
  227. package/dist/src/config/schema.js +2 -2
  228. package/dist/src/config/workspace-path.js +1 -1
  229. package/dist/src/connectors/cli/installer.js +1 -1
  230. package/dist/src/connectors/connected-source-ingestion.js +1 -1
  231. package/dist/src/connectors/connected-source-understanding.js +1 -1
  232. package/dist/src/connectors/content-enrichment.js +1 -1
  233. package/dist/src/connectors/health.js +1 -1
  234. package/dist/src/daemon/constants.js +1 -1
  235. package/dist/src/daemon/install-plan.js +1 -1
  236. package/dist/src/daemon/launchd.js +1 -1
  237. package/dist/src/daemon/schtasks.js +1 -1
  238. package/dist/src/daemon/systemd.js +1 -1
  239. package/dist/src/discussions/action-tasks.js +1 -1
  240. package/dist/src/discussions/live-worker.js +2 -2
  241. package/dist/src/discussions/recording.js +2 -2
  242. package/dist/src/discussions/repository.js +1 -1
  243. package/dist/src/discussions/sealer.js +3 -3
  244. package/dist/src/discussions/service.js +1 -1
  245. package/dist/src/endpoint-tools/delegation.js +1 -1
  246. package/dist/src/endpoint-tools/upload-service.js +1 -1
  247. package/dist/src/execution-environments/local-worktree-manager.js +1 -1
  248. package/dist/src/execution-environments/worktree-safety.js +1 -1
  249. package/dist/src/extensions/activation-context.js +2 -2
  250. package/dist/src/extensions/agent-plugins/auth.js +3 -3
  251. package/dist/src/extensions/agent-plugins/branding.js +1 -1
  252. package/dist/src/extensions/agent-plugins/cli-authorization.js +3 -3
  253. package/dist/src/extensions/agent-plugins/credentials.js +1 -1
  254. package/dist/src/extensions/agent-plugins/mcp-adapter.js +2 -2
  255. package/dist/src/extensions/agent-plugins/resources.js +1 -1
  256. package/dist/src/extensions/agent-plugins/setup.js +1 -1
  257. package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
  258. package/dist/src/extensions/agent-plugins/source-catalog.js +2 -2
  259. package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
  260. package/dist/src/extensions/agent-plugins/sources.js +1 -1
  261. package/dist/src/extensions/agent-plugins/store.js +2 -2
  262. package/dist/src/extensions/agent-plugins/user-config.js +2 -2
  263. package/dist/src/extensions/agent-plugins/validation.js +3 -3
  264. package/dist/src/extensions/api.js +2 -2
  265. package/dist/src/extensions/install.js +1 -1
  266. package/dist/src/extensions/loader.js +2 -2
  267. package/dist/src/extensions/lockfile.js +1 -1
  268. package/dist/src/extensions/sdk/index.js +1 -1
  269. package/dist/src/extensions/update.js +2 -2
  270. package/dist/src/files/file-service.js +1 -1
  271. package/dist/src/gateway/agent-reactions/reaction.js +1 -1
  272. package/dist/src/gateway/file-path-classifier.js +1 -1
  273. package/dist/src/gateway/hono/lib/config-payload.js +3 -3
  274. package/dist/src/gateway/hono/lib/static-ui.js +1 -1
  275. package/dist/src/gateway/hono/routes/agent-plugins.js +1 -1
  276. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  277. package/dist/src/gateway/hono/routes/browser.js +261 -3
  278. package/dist/src/gateway/hono/routes/channels.js +1 -1
  279. package/dist/src/gateway/hono/routes/commands-skills.js +1 -1
  280. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  281. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  282. package/dist/src/gateway/hono/routes/device-connections.js +1 -1
  283. package/dist/src/gateway/hono/routes/files.js +1 -1
  284. package/dist/src/gateway/hono/routes/host-fs.js +1 -1
  285. package/dist/src/gateway/hono/routes/local-apps.js +1 -1
  286. package/dist/src/gateway/hono/routes/memory-learning.js +1 -1
  287. package/dist/src/gateway/hono/routes/mobile-capability-actions.js +3 -3
  288. package/dist/src/gateway/hono/routes/mobile-capability-panels.js +4 -4
  289. package/dist/src/gateway/hono/routes/mobile-model-settings.js +13 -5
  290. package/dist/src/gateway/hono/routes/models.js +6 -6
  291. package/dist/src/gateway/hono/routes/notes.js +1 -1
  292. package/dist/src/gateway/hono/routes/observability.js +1 -1
  293. package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
  294. package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
  295. package/dist/src/gateway/hono/routes/phone.js +1 -1
  296. package/dist/src/gateway/hono/routes/session-command-handler.js +1 -1
  297. package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
  298. package/dist/src/gateway/hono/routes/sessions.js +2 -2
  299. package/dist/src/gateway/hono/routes/shares.js +1 -1
  300. package/dist/src/gateway/hono/routes/status.js +1 -1
  301. package/dist/src/gateway/hono/routes/tasks.js +1 -1
  302. package/dist/src/gateway/hono/routes/user-model.js +3 -3
  303. package/dist/src/gateway/hono/routes/video-generation.js +1 -1
  304. package/dist/src/gateway/hono/routes/voice.js +4 -4
  305. package/dist/src/gateway/image-generation-setup.js +2 -2
  306. package/dist/src/gateway/lock.js +2 -2
  307. package/dist/src/gateway/mobile-privacy.js +1 -1
  308. package/dist/src/gateway/next-turn-suggestions/snapshot.js +1 -1
  309. package/dist/src/gateway/ports.js +1 -1
  310. package/dist/src/gateway/provider-model-setup.js +1 -1
  311. package/dist/src/gateway/security/device-request-proof.js +1 -1
  312. package/dist/src/gateway/security/gateway-scopes.js +2 -0
  313. package/dist/src/gateway/service/agent-runner.js +2 -2
  314. package/dist/src/gateway/service/config-coordinator.js +2 -2
  315. package/dist/src/gateway/service/run-gateway-agent.js +5 -3
  316. package/dist/src/gateway/service/session-command-service.js +1 -1
  317. package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -0
  318. package/dist/src/gateway/service/session-input-coordinator.js +13 -3
  319. package/dist/src/gateway/service.d.ts +4 -0
  320. package/dist/src/gateway/service.js +42 -17
  321. package/dist/src/gateway/xopc-cloud-capability-setup.js +2 -2
  322. package/dist/src/home-intelligence/follow-ups.js +1 -1
  323. package/dist/src/home-intelligence/host.js +1 -1
  324. package/dist/src/home-intelligence/repository.js +1 -1
  325. package/dist/src/home-intelligence/routines.js +1 -1
  326. package/dist/src/imports/files.js +1 -1
  327. package/dist/src/imports/importService.js +2 -2
  328. package/dist/src/imports/inventory.js +1 -1
  329. package/dist/src/imports/planner.js +1 -1
  330. package/dist/src/imports/productImport.js +1 -1
  331. package/dist/src/imports/scanner.js +1 -1
  332. package/dist/src/imports/sources.js +1 -1
  333. package/dist/src/infra/brew.js +1 -1
  334. package/dist/src/infra/bus/queue.js +1 -1
  335. package/dist/src/infra/package-runtime-check.js +1 -1
  336. package/dist/src/infra/path-env.js +1 -1
  337. package/dist/src/infra/ports.js +1 -1
  338. package/dist/src/infra/process-diagnostics.js +1 -1
  339. package/dist/src/infra/ssh-tunnel.js +1 -1
  340. package/dist/src/infra/update-startup.js +1 -1
  341. package/dist/src/infra/write-file-atomic.js +1 -1
  342. package/dist/src/knowledge-memory/repository.js +1 -1
  343. package/dist/src/knowledge-memory/usage-policy.js +1 -1
  344. package/dist/src/local-apps/artifact-files.js +1 -1
  345. package/dist/src/local-apps/execution-authority.js +1 -1
  346. package/dist/src/local-apps/p1-services.js +1 -1
  347. package/dist/src/local-apps/preview-sessions.js +1 -1
  348. package/dist/src/local-apps/preview-worker.js +1 -1
  349. package/dist/src/local-apps/public-assets.js +1 -1
  350. package/dist/src/local-apps/service.js +3 -3
  351. package/dist/src/local-apps/store.js +1 -1
  352. package/dist/src/markdown/index.js +1 -1
  353. package/dist/src/mcp/connection-grants.js +1 -1
  354. package/dist/src/mcp/delegation.js +3 -3
  355. package/dist/src/mcp/gateway-http-client.js +1 -1
  356. package/dist/src/media/session-references.js +1 -1
  357. package/dist/src/media-shared/http/provider-http.js +1 -1
  358. package/dist/src/media-understanding/runner.js +1 -1
  359. package/dist/src/memory-learning/choice-observations.js +1 -1
  360. package/dist/src/memory-learning/source-learning.js +2 -2
  361. package/dist/src/music-generation/artifact.js +2 -2
  362. package/dist/src/notes/agent-context.js +1 -1
  363. package/dist/src/notes/service.js +1 -1
  364. package/dist/src/notes/store.js +1 -1
  365. package/dist/src/notifications/store.js +1 -1
  366. package/dist/src/observability/runtime.js +1 -1
  367. package/dist/src/personal-agent/proactivity/repository.js +1 -1
  368. package/dist/src/personal-agent/proactivity/routes.js +1 -1
  369. package/dist/src/personal-agent/proactivity/service.js +3 -3
  370. package/dist/src/personal-agent/prompt-context.js +2 -2
  371. package/dist/src/personal-agent/reply-composer.js +4 -4
  372. package/dist/src/personal-agent/reply-style.d.ts +2 -2
  373. package/dist/src/personal-agent/reply-style.js +8 -7
  374. package/dist/src/personal-agent/request-delivery.js +1 -1
  375. package/dist/src/personal-agent/request-service.js +1 -1
  376. package/dist/src/personal-agent/result-reader.js +3 -3
  377. package/dist/src/personal-agent/service.js +1 -1
  378. package/dist/src/personal-agent/unread.js +1 -1
  379. package/dist/src/phone/adb-driver.js +2 -2
  380. package/dist/src/phone/cloud-adb-connection.js +1 -1
  381. package/dist/src/phone/execution-trace.js +1 -1
  382. package/dist/src/phone/hdc-driver.js +2 -2
  383. package/dist/src/phone/hdc-video-tools.js +1 -1
  384. package/dist/src/phone/model-adapter.js +1 -1
  385. package/dist/src/phone/ui-session.js +1 -1
  386. package/dist/src/platform/index.js +1 -1
  387. package/dist/src/project-trust/trust-store.js +1 -1
  388. package/dist/src/projects/workspace-project.js +1 -1
  389. package/dist/src/providers/extension-stream-bridge.js +2 -2
  390. package/dist/src/providers/index.js +4 -4
  391. package/dist/src/providers/model-call.js +3 -3
  392. package/dist/src/providers/model-catalog-persistence.js +2 -2
  393. package/dist/src/providers/model-registry.js +3 -3
  394. package/dist/src/providers/provider-disconnect-core.js +1 -1
  395. package/dist/src/providers/register-runtime-providers.js +1 -1
  396. package/dist/src/providers/setup/voice.js +1 -1
  397. package/dist/src/providers/xopc-cloud-catalog-coordinator.js +1 -1
  398. package/dist/src/providers/xopc-cloud-credit-budget.js +1 -1
  399. package/dist/src/providers/xopc-cloud-model-source.js +1 -1
  400. package/dist/src/review/review-git.js +1 -1
  401. package/dist/src/runtime-tools/downloader.js +1 -1
  402. package/dist/src/runtime-tools/harmony-dependencies.js +1 -1
  403. package/dist/src/runtime-tools/manager.js +2 -2
  404. package/dist/src/runtime-tools/phone-dependencies.js +1 -1
  405. package/dist/src/session/history-recall-policy.js +1 -1
  406. package/dist/src/session/init-session-turn.js +1 -1
  407. package/dist/src/session/resolve-session.js +1 -1
  408. package/dist/src/share/hosted-note-publication.js +1 -1
  409. package/dist/src/share/hosted-session-share.js +1 -1
  410. package/dist/src/share/hosted-static-site-publication.js +1 -1
  411. package/dist/src/share/session-share-service.js +1 -1
  412. package/dist/src/share/share-auto.js +1 -1
  413. package/dist/src/share/share-zip.js +1 -1
  414. package/dist/src/share/site-proxy.js +1 -1
  415. package/dist/src/space/budget-workbook.js +1 -1
  416. package/dist/src/space/ingest.js +1 -1
  417. package/dist/src/space/repository.js +2 -2
  418. package/dist/src/space/workbook-turn.js +1 -1
  419. package/dist/src/space/worker.js +1 -1
  420. package/dist/src/storage/sqlite/ai-usage-repository.js +1 -1
  421. package/dist/src/storage/sqlite/clarification-wait-repository.js +2 -2
  422. package/dist/src/storage/sqlite/connection.js +2 -2
  423. package/dist/src/storage/sqlite/conversation-repository.js +2 -2
  424. package/dist/src/storage/sqlite/desktop-execution-repository.js +1 -1
  425. package/dist/src/storage/sqlite/desktop-execution-stop-repository.js +1 -1
  426. package/dist/src/storage/sqlite/device-access-repository.js +1 -1
  427. package/dist/src/storage/sqlite/device-pairing-approval.js +1 -1
  428. package/dist/src/storage/sqlite/index.js +1 -1
  429. package/dist/src/storage/sqlite/schema-upgrade.js +3 -3
  430. package/dist/src/storage/sqlite/session-creation-repository.js +1 -1
  431. package/dist/src/storage/sqlite/session-input-control-repository.js +1 -1
  432. package/dist/src/storage/sqlite/session-repository.js +1 -1
  433. package/dist/src/support/collect-support-report.js +1 -1
  434. package/dist/src/tasks/capabilities/management.js +1 -1
  435. package/dist/src/tasks/capabilities/relations.js +1 -1
  436. package/dist/src/tasks/delegated-run-result.js +1 -1
  437. package/dist/src/tasks/task-allocation-service.js +2 -2
  438. package/dist/src/tasks/task-application-service.js +1 -1
  439. package/dist/src/tasks/task-context-assembler.js +2 -2
  440. package/dist/src/tasks/task-criterion-review-repository.js +1 -1
  441. package/dist/src/tasks/task-deliverables.js +1 -1
  442. package/dist/src/tasks/task-delivery-checks.js +1 -1
  443. package/dist/src/tasks/task-handoff-service.js +1 -1
  444. package/dist/src/tasks/task-handoff.js +4 -4
  445. package/dist/src/tasks/task-json-acceptance.js +1 -1
  446. package/dist/src/tasks/task-main-update-decision-service.js +1 -1
  447. package/dist/src/tasks/task-origin-repository.js +1 -1
  448. package/dist/src/tasks/task-read-model-projector.js +1 -1
  449. package/dist/src/tasks/task-research-repair.js +2 -2
  450. package/dist/src/tasks/task-research-result.js +3 -3
  451. package/dist/src/tasks/task-result-delivery-repository.js +1 -1
  452. package/dist/src/tasks/task-result-delivery-service.js +2 -2
  453. package/dist/src/tasks/task-run-coordinator.js +3 -3
  454. package/dist/src/tasks/task-run-repository.js +1 -1
  455. package/dist/src/tasks/task-signal-service.js +1 -1
  456. package/dist/src/tasks/task-workspace-verification.js +2 -2
  457. package/dist/src/tui/backends/embedded-backend.js +5 -5
  458. package/dist/src/tui/backends/embedded-drafts.js +1 -1
  459. package/dist/src/tui/clipboard-image.js +2 -2
  460. package/dist/src/tui/extension-host/load-extensions.js +1 -1
  461. package/dist/src/tui/tui-capabilities.js +1 -1
  462. package/dist/src/tui/tui-commands.js +1 -1
  463. package/dist/src/tui/tui-skills-autocomplete.js +2 -2
  464. package/dist/src/tui/tui-startup-resources.js +1 -1
  465. package/dist/src/tui/tui.js +4 -4
  466. package/dist/src/tunnel/frpc-binary.js +2 -2
  467. package/dist/src/usage/cloud-capability.js +1 -1
  468. package/dist/src/usage/recorder.js +2 -2
  469. package/dist/src/user-context/access-policy.js +2 -2
  470. package/dist/src/user-model/bootstrap.js +1 -1
  471. package/dist/src/user-model/capture/executor.js +1 -1
  472. package/dist/src/user-model/index.js +2 -2
  473. package/dist/src/user-model/usage-policy.js +1 -1
  474. package/dist/src/utils/index.js +1 -1
  475. package/dist/src/utils/logger/index.js +2 -2
  476. package/dist/src/utils/logger.js +1 -1
  477. package/dist/src/video-generation/artifact.js +2 -2
  478. package/dist/src/video-generation/repository.js +1 -1
  479. package/dist/src/voice/audio/normalize.js +1 -1
  480. package/dist/src/voice/platform-settings.js +1 -1
  481. package/dist/src/voice/realtime/conversation-context.js +1 -1
  482. package/dist/src/voice/realtime/memory-context.js +2 -2
  483. package/dist/src/voice/realtime/runtime.js +2 -2
  484. package/dist/src/voice/realtime/user-context.js +1 -1
  485. package/dist/src/voice/stt/factory.js +1 -1
  486. package/dist/src/voice/stt/index.js +2 -2
  487. package/dist/src/voice/stt/preflight.js +2 -2
  488. package/dist/src/voice/stt/providers/bailian-plan-transcription.js +3 -3
  489. package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +3 -3
  490. package/dist/src/voice/stt/transcribe-core.js +1 -1
  491. package/dist/src/voice/tts/factory.js +1 -1
  492. package/dist/src/voice/tts/providers/bailian-plan-speech.js +2 -2
  493. package/dist/src/voice/tts/providers/edge-speech.js +1 -1
  494. package/dist/src/voice/tts/providers/xopc-cloud-speech.js +2 -2
  495. package/dist/src/work-discovery/candidate-discovery.js +2 -2
  496. package/dist/src/work-discovery/probe.js +2 -2
  497. package/dist/src/work-discovery/service.js +4 -4
  498. package/package.json +1 -1
  499. package/dist/gateway/static/root/assets/right-workspace-store-CcRApllu.js +0 -1
@@ -1 +1 @@
1
- {"chunk-2RNTKTEA.js":[0,4275],"chunk-FYEXQNMH.js":[4275,12526],"chunk-KRQ7FXBC.js":[16801,27906],"chunk-IWGEJYFL.js":[44707,27249],"chunk-3SANQHGK.js":[71956,87644],"chunk-XMBL6Y5G.js":[159600,1648],"chunk-GAIR6C2G.js":[161248,23104],"chunk-TUE5E2BH.js":[184352,9402],"chunk-M3SGJB26.js":[193754,1028320],"chunk-3PDD2LWT.js":[1222074,1312827],"chunk-G53SEIQO.js":[2534901,84764],"chunk-E7AJLX2L.js":[2619665,26539],"chunk-37SFZC7D.js":[2646204,33163],"chunk-U5HILG4E.js":[2679367,9930],"chunk-VUVJNUED.js":[2689297,843],"chunk-JQT35Q3E.js":[2690140,5711],"chunk-QYT2TD4H.js":[2695851,3323],"chunk-I6VA7Z6T.js":[2699174,2924],"chunk-GPXETA7N.js":[2702098,59325],"chunk-PEDFCHUA.js":[2761423,10044],"chunk-RZCTGYQ4.js":[2771467,5755],"chunk-AX2WFLZ3.js":[2777222,8650],"chunk-XMUDXPLZ.js":[2785872,2178],"chunk-IEDNAGPJ.js":[2788050,1239],"chunk-NIDQJZIV.js":[2789289,859],"chunk-H7CUOYRS.js":[2790148,4014],"chunk-B5ZN4LAU.js":[2794162,719],"chunk-T5PRIP2P.js":[2794881,5487],"chunk-Z3ELMAKD.js":[2800368,6380],"chunk-TKAG55UW.js":[2806748,8679],"chunk-52NNRPQA.js":[2815427,22999],"chunk-T3HFVZEB.js":[2838426,518],"chunk-VAFWNGRW.js":[2838944,9513],"chunk-QHR5EKGR.js":[2848457,13001],"chunk-WSUXVRKH.js":[2861458,49496],"chunk-C7MLLX5Z.js":[2910954,5014],"chunk-RQUVCPQE.js":[2915968,1894],"chunk-R3MFOOL2.js":[2917862,2728],"chunk-PI4KZYI3.js":[2920590,15800],"chunk-WWVCSFDC.js":[2936390,18396],"chunk-TJCW2A4Q.js":[2954786,97072],"chunk-KT3QNBHU.js":[3051858,23204],"chunk-R3HZDMUL.js":[3075062,6382],"chunk-HID3R6E7.js":[3081444,12244],"chunk-YJJMH5OZ.js":[3093688,864],"chunk-A65UE56D.js":[3094552,39537],"chunk-DC43CM7J.js":[3134089,3148],"chunk-JVZXZYHQ.js":[3137237,4541],"chunk-C77QHLCL.js":[3141778,1597],"chunk-QTVPBXMD.js":[3143375,600],"chunk-PDZHB5BV.js":[3143975,14153],"chunk-BQSKHFYI.js":[3158128,4607],"chunk-OFAIC36B.js":[3162735,31399],"chunk-7IESWJB5.js":[3194134,4402],"chunk-KTV7AGZ5.js":[3198536,13277],"chunk-HBAOUN57.js":[3211813,5623],"chunk-FSCL66BJ.js":[3217436,32048],"chunk-6NQN26U3.js":[3249484,728],"chunk-2M65XUAP.js":[3250212,5725],"chunk-WAANGRWF.js":[3255937,6604],"chunk-OJ5FAFZS.js":[3262541,11760],"chunk-JF7Y5AQI.js":[3274301,11275],"chunk-JBMIJJTK.js":[3285576,26896],"chunk-AJIX3ZUC.js":[3312472,3718],"chunk-5OCLP7HW.js":[3316190,1180],"chunk-FR27KQ7Q.js":[3317370,1910],"chunk-KWMHR3LS.js":[3319280,19392],"chunk-DMQ5EJQ3.js":[3338672,7691],"chunk-MQUSXPIJ.js":[3346363,4281],"chunk-W6BWBOSG.js":[3350644,6514],"chunk-OF4EGFUK.js":[3357158,4506],"chunk-N5K6XCYU.js":[3361664,1029],"chunk-ZGAITFXP.js":[3362693,3411],"chunk-X2G6GRYJ.js":[3366104,1846],"chunk-U5NZGHHT.js":[3367950,9159],"chunk-ENWJCB4Q.js":[3377109,595],"chunk-U576C2FO.js":[3377704,33719],"chunk-RAH7LCAE.js":[3411423,1962],"chunk-VCMQIBYG.js":[3413385,1251],"chunk-EOWR2ZCK.js":[3414636,522],"chunk-TJ6LAFA4.js":[3415158,3114],"chunk-IVPZKGAA.js":[3418272,27957],"chunk-TUNB4MYM.js":[3446229,12118],"chunk-BZ7FEIP7.js":[3458347,1827],"chunk-2HK2VRWI.js":[3460174,4792],"chunk-UJSR4QX6.js":[3464966,4152],"chunk-RBAI4BFS.js":[3469118,2285],"chunk-Q7KE2WYF.js":[3471403,1015],"chunk-U6EDQDWL.js":[3472418,2006],"chunk-6L5VFLZX.js":[3474424,3829],"chunk-VN6KPD6Y.js":[3478253,10480],"chunk-YI47YFOZ.js":[3488733,5236],"chunk-BTHJG772.js":[3493969,3063],"chunk-VHLD4PSQ.js":[3497032,10222],"chunk-OT3CMOEK.js":[3507254,2041],"chunk-ZCYMAZG5.js":[3509295,5827],"chunk-WB3VR5NT.js":[3515122,6042],"chunk-2VPIBQGR.js":[3521164,1654],"chunk-RRVSRVKP.js":[3522818,972],"chunk-3JDAOJXE.js":[3523790,3632],"chunk-X752SWBT.js":[3527422,5728],"chunk-7T7CK5YE.js":[3533150,7358],"chunk-27MXK72M.js":[3540508,1971],"chunk-PSZ6N3PX.js":[3542479,23448],"chunk-N2EAKUMF.js":[3565927,1571],"chunk-TUV3UAMB.js":[3567498,11818],"chunk-V46LD6DI.js":[3579316,1107],"chunk-FUB6Y4EH.js":[3580423,2534],"chunk-GBIIXGP3.js":[3582957,2683],"chunk-KAVXCGWJ.js":[3585640,8125],"chunk-WNGCFNC7.js":[3593765,4330],"chunk-L7JZ4WR2.js":[3598095,8513],"chunk-C7CQETBV.js":[3606608,27355],"chunk-LLHYDEUZ.js":[3633963,20790],"chunk-DJM4N7EZ.js":[3654753,14246],"chunk-C7EELX5Y.js":[3668999,1309],"chunk-2UJF7RAG.js":[3670308,2012],"chunk-HNL6YG4P.js":[3672320,2009],"chunk-JPAIPFVK.js":[3674329,654],"chunk-3EMDEZRL.js":[3674983,22975],"chunk-MS4FU4S2.js":[3697958,6283],"chunk-VQIBBUF5.js":[3704241,8053],"chunk-3IBLL6PN.js":[3712294,8196],"chunk-SS3LY6PA.js":[3720490,11133],"chunk-ZLQ4E4MA.js":[3731623,1521],"chunk-M4ACAQJN.js":[3733144,3191],"chunk-KOVFZQCF.js":[3736335,1057],"chunk-YWCV6WWC.js":[3737392,9228],"chunk-X3J2RQTG.js":[3746620,968],"chunk-YSHVFSAF.js":[3747588,2113],"chunk-ZQDFKZ6Q.js":[3749701,2856],"chunk-B57NTEB7.js":[3752557,3188],"chunk-GR5R6SDM.js":[3755745,1348],"chunk-XRAMFV3E.js":[3757093,563],"chunk-UKFXW4MQ.js":[3757656,7738],"chunk-GLSVKA7F.js":[3765394,1205],"chunk-32T3N7AP.js":[3766599,2354],"chunk-TXFSEAA3.js":[3768953,29474],"chunk-7RI4WKQD.js":[3798427,1830],"chunk-GBRAZEIG.js":[3800257,7826],"chunk-UUZQK5KB.js":[3808083,1501],"chunk-5MAT4TPW.js":[3809584,17386],"chunk-5ZEFTENT.js":[3826970,1894],"chunk-SEAWVCUW.js":[3828864,4687],"chunk-V5DYEUZR.js":[3833551,3856],"chunk-RGHORDWM.js":[3837407,8421],"chunk-YS3LHP6B.js":[3845828,1249],"chunk-2SSSF3VJ.js":[3847077,6013],"chunk-VJWQASN5.js":[3853090,12851],"chunk-VXC7COFG.js":[3865941,1322],"chunk-WAVXLHXZ.js":[3867263,6110],"chunk-B7JFILND.js":[3873373,6062],"chunk-SPWEO2IW.js":[3879435,35982],"chunk-6ELDAD63.js":[3915417,2873],"chunk-L2J4EFSL.js":[3918290,3756],"chunk-TIWRLLRG.js":[3922046,1064],"chunk-XFPH4PWB.js":[3923110,770],"chunk-ZV5A5A7P.js":[3923880,1039],"chunk-5N7W4ZQK.js":[3924919,636],"chunk-HT76IVRI.js":[3925555,7343],"chunk-LZCDZM63.js":[3932898,1838],"chunk-XBOZWKKZ.js":[3934736,34547],"chunk-LKNE2MCG.js":[3969283,2331],"chunk-7ESN2FVM.js":[3971614,805],"chunk-V6PF4KHW.js":[3972419,2523],"chunk-QITWYC22.js":[3974942,21628],"chunk-SGXGF7V4.js":[3996570,28098],"chunk-3BDADUWM.js":[4024668,6695],"chunk-MNEOA2MI.js":[4031363,3264],"chunk-DJP7WZ5L.js":[4034627,33851],"chunk-6OTWLAP5.js":[4068478,2290],"chunk-CN4SQ7CE.js":[4070768,3716],"chunk-5WNG45GZ.js":[4074484,9212],"chunk-5PRTRE2Y.js":[4083696,9489],"chunk-PG3HIJ2L.js":[4093185,2072],"chunk-SV3GVXL5.js":[4095257,12785],"chunk-UJDVOED2.js":[4108042,12062],"chunk-J7NEO3YK.js":[4120104,1618],"chunk-ZAEX35YF.js":[4121722,13635],"chunk-6QLAWUYL.js":[4135357,896],"chunk-7PBCE36D.js":[4136253,3268],"chunk-UDBCNPHC.js":[4139521,568],"chunk-VU3PUPZF.js":[4140089,17665],"chunk-QTYKIA4Z.js":[4157754,33259],"chunk-ILGCY5RI.js":[4191013,721],"chunk-WXVXVVZ4.js":[4191734,35770],"chunk-KDR4PMT3.js":[4227504,8171],"chunk-ODJ4DJX3.js":[4235675,724200],"chunk-D5OFZQJD.js":[4959875,14446],"chunk-JOFYDVK3.js":[4974321,9524],"chunk-PDD4UPCU.js":[4983845,1236],"chunk-6NOC6BQI.js":[4985081,14612],"chunk-OV3Q7GCO.js":[4999693,51069],"chunk-QPWXZAKM.js":[5050762,470],"chunk-QF22T4GS.js":[5051232,2422],"chunk-R2PXWALU.js":[5053654,1047],"chunk-FIRTJGV3.js":[5054701,2388],"chunk-DIQRW5GF.js":[5057089,16201],"chunk-BVHFYYNL.js":[5073290,4428],"chunk-73XHLA25.js":[5077718,478],"chunk-E2XQ4HGJ.js":[5078196,22268],"chunk-QV4M7N2E.js":[5100464,4619],"chunk-MOAASB3D.js":[5105083,3179],"chunk-6YGD5SDG.js":[5108262,5567],"chunk-XFAF5ZAE.js":[5113829,9551],"chunk-S4TMLI47.js":[5123380,8208],"chunk-7OWC5Q3V.js":[5131588,1275],"chunk-SD4TYGWX.js":[5132863,824],"chunk-2D7TVORT.js":[5133687,1985],"chunk-CA74PFFD.js":[5135672,27373],"chunk-ZAPES3CF.js":[5163045,17582],"chunk-5EL577BX.js":[5180627,82794],"chunk-KHFT5TVX.js":[5263421,14053],"chunk-6RHTRIFI.js":[5277474,7026],"chunk-TXYURT2A.js":[5284500,3531],"chunk-LRNZ3CJF.js":[5288031,10436],"chunk-NR7GW5QV.js":[5298467,2393],"chunk-PWDMGJYQ.js":[5300860,1594],"chunk-GZOBDS2D.js":[5302454,18679],"chunk-SYZKMUDB.js":[5321133,3373],"chunk-OCFMEA4N.js":[5324506,36549],"chunk-DOQUXB6S.js":[5361055,9328],"chunk-O73IOI2E.js":[5370383,890],"chunk-J6FQ74XV.js":[5371273,3319],"chunk-D7UD47JP.js":[5374592,2353],"chunk-OKAAJDD4.js":[5376945,18210],"chunk-RTGD5PHP.js":[5395155,904],"chunk-XQ2Z7RQT.js":[5396059,2410],"chunk-SR7MCCGN.js":[5398469,4242],"chunk-N26BK7NX.js":[5402711,1113],"chunk-N5QU6D4C.js":[5403824,1027],"chunk-4DU4RCSQ.js":[5404851,2061],"chunk-MTOP3C43.js":[5406912,14299],"chunk-XCBVJKFU.js":[5421211,2329],"chunk-JCSEXHA3.js":[5423540,6179],"chunk-IQR3NGDP.js":[5429719,5407],"chunk-EIBFCCBN.js":[5435126,5774],"chunk-C4XH7QZU.js":[5440900,66403],"chunk-BCRVVXXL.js":[5507303,11108],"chunk-BA7KV7K2.js":[5518411,1402],"chunk-CZIGLS5C.js":[5519813,3001],"chunk-XO73CXA6.js":[5522814,5582],"chunk-WGJD55RG.js":[5528396,8926],"chunk-QI2JL2EW.js":[5537322,1846],"chunk-47BYL6ME.js":[5539168,5079],"chunk-ZEVTLOHI.js":[5544247,3806],"chunk-5KC4AQ5E.js":[5548053,5601],"chunk-C4YKF3GP.js":[5553654,155424],"chunk-7FKQAO3N.js":[5709078,644],"chunk-GAQNULH7.js":[5709722,37280],"chunk-23W2WD7C.js":[5747002,420],"chunk-ALACNWCZ.js":[5747422,54736],"chunk-YJRRQDZT.js":[5802158,800],"chunk-J76KMXOL.js":[5802958,456],"chunk-NAGCHADB.js":[5803414,48075],"chunk-W4XDL2S6.js":[5851489,3490],"chunk-P346NNBT.js":[5854979,14130],"chunk-T27REB5B.js":[5869109,5120],"chunk-X7MA2AHR.js":[5874229,4019],"chunk-7GI42LIB.js":[5878248,12209],"chunk-F27ZOYUX.js":[5890457,849],"chunk-AEMLMQ7F.js":[5891306,1790],"chunk-QJCEUIWT.js":[5893096,927],"chunk-R5GFACCI.js":[5894023,775],"chunk-3M4XCRWI.js":[5894798,7727],"chunk-PLTR4THA.js":[5902525,794],"chunk-BBBUHEBY.js":[5903319,1138],"chunk-755ZJN5P.js":[5904457,4741],"chunk-KHIIETRE.js":[5909198,17051],"chunk-3YICI2HQ.js":[5926249,1029],"chunk-LX24SRWW.js":[5927278,546],"chunk-M5IUOYUH.js":[5927824,1797],"chunk-BMSYLKNE.js":[5929621,4959],"chunk-YXFOURWG.js":[5934580,7086],"chunk-IKC5HWDQ.js":[5941666,798],"chunk-SKFAZ3GM.js":[5942464,1446],"chunk-5XIOTS6U.js":[5943910,1499],"chunk-DZZCPA3N.js":[5945409,2580],"chunk-52J4VRLS.js":[5947989,50916],"chunk-2JIM5Z3G.js":[5998905,2828],"chunk-HE7HP4PU.js":[6001733,7815],"chunk-XA5MZLIK.js":[6009548,3885],"chunk-NI6QLUOU.js":[6013433,13052],"chunk-HZFK4JDS.js":[6026485,428],"chunk-4URFROZU.js":[6026913,2820],"chunk-UEYTHU4C.js":[6029733,13281],"chunk-KKCWMMQS.js":[6043014,1669],"chunk-HIB57P3I.js":[6044683,2716],"chunk-OXQ7NYYP.js":[6047399,32790],"chunk-ZSSKN3NJ.js":[6080189,3339],"chunk-XG25HSEM.js":[6083528,5961],"chunk-FJNJYFPX.js":[6089489,24727],"chunk-SLLV6BAK.js":[6114216,894],"chunk-NZSHMTUU.js":[6115110,2437],"chunk-D7SAU37V.js":[6117547,1595],"chunk-KNJQT4D4.js":[6119142,5011],"chunk-2YXGEE63.js":[6124153,6441],"chunk-DBYARDVL.js":[6130594,30200],"chunk-MO4XMLGM.js":[6160794,7327],"chunk-DOOJN3W3.js":[6168121,3996],"chunk-6FJKODD6.js":[6172117,3859],"chunk-42K5RLAQ.js":[6175976,10723],"chunk-WYVIY5VB.js":[6186699,645],"chunk-ZJNROYFE.js":[6187344,2476],"chunk-T7L56EUJ.js":[6189820,6964],"chunk-DTAIHUQP.js":[6196784,12643],"chunk-Y2D5ILIR.js":[6209427,3633],"chunk-DBC6JRSO.js":[6213060,998006],"chunk-DZHFPAPT.js":[7211066,652],"chunk-EJW5JMKC.js":[7211718,487],"chunk-ZPOHGJJY.js":[7212205,3373],"chunk-JNAEIDFD.js":[7215578,1589],"chunk-QEHE5XIN.js":[7217167,1017],"chunk-EKD2GW3Z.js":[7218184,1106],"chunk-QM5WBYNM.js":[7219290,3073],"chunk-SY24OFXM.js":[7222363,515],"chunk-Y7MJ437Q.js":[7222878,15841],"chunk-5B7UGGUA.js":[7238719,9077],"chunk-5LY4R7RQ.js":[7247796,7152],"chunk-O5PZDOZK.js":[7254948,2069],"chunk-Y7QBAQ5L.js":[7257017,951],"chunk-QKV4JNOO.js":[7257968,48128],"chunk-FJTNCF6F.js":[7306096,2187],"chunk-7EVCIH4X.js":[7308283,785],"chunk-EY4QOB3N.js":[7309068,1833],"chunk-2INLK7KD.js":[7310901,1954],"chunk-NWJFBZ7M.js":[7312855,6988],"chunk-WHX44223.js":[7319843,5467],"chunk-KWE47EGL.js":[7325310,8122],"chunk-QFKUAFAQ.js":[7333432,2406],"chunk-3SEXEJWA.js":[7335838,1094],"chunk-WFMWQGSA.js":[7336932,30788],"chunk-NT2G6NZP.js":[7367720,3096],"chunk-3OZYMO72.js":[7370816,1980],"chunk-2ZDPP7FB.js":[7372796,8701],"chunk-QOSZM46V.js":[7381497,2177],"chunk-VDFXDD6U.js":[7383674,2347],"chunk-MNODGCG5.js":[7386021,2615],"chunk-362XUVO2.js":[7388636,6170],"chunk-AGBZ7BYG.js":[7394806,3580],"chunk-YH6HIG7I.js":[7398386,4606],"chunk-4BZRYL3F.js":[7402992,25514],"chunk-7VLP7OZG.js":[7428506,1117],"chunk-MBJMZ25A.js":[7429623,67734],"chunk-4MSHZBX6.js":[7497357,1023],"chunk-TAUG3X7L.js":[7498380,21838],"chunk-TV3U5LUN.js":[7520218,2017],"chunk-AIV6EOJ2.js":[7522235,6301],"chunk-NTUOIRVC.js":[7528536,6972],"chunk-HEPILI6R.js":[7535508,5591],"chunk-QPFBM2JI.js":[7541099,40253],"chunk-T4PLXM3V.js":[7581352,6913],"chunk-BVPJUYBB.js":[7588265,2235],"chunk-6OCSGUVJ.js":[7590500,16699],"chunk-V4A7CXJI.js":[7607199,5436],"chunk-R63C65SI.js":[7612635,8543],"chunk-ZE5IUDQD.js":[7621178,606],"chunk-EEWZZJS6.js":[7621784,10693],"chunk-PTZM5MDS.js":[7632477,3429],"chunk-27YOGVZJ.js":[7635906,2580],"chunk-XURJ7DZJ.js":[7638486,55570],"chunk-VHYKYRPU.js":[7694056,11019],"chunk-AHWWD6DR.js":[7705075,11582],"chunk-TUZPMQNK.js":[7716657,11045],"chunk-QMAROVQN.js":[7727702,48087],"chunk-OAKS2NGB.js":[7775789,732],"chunk-WUPQ7KCM.js":[7776521,4057],"chunk-LXMEVVEF.js":[7780578,10749],"chunk-4ZDQ2OUN.js":[7791327,20937],"chunk-OK6VYB5D.js":[7812264,19081],"chunk-6DK4MMRE.js":[7831345,22833],"chunk-O3TBC7AG.js":[7854178,3256],"chunk-AWZ7QZ2F.js":[7857434,1024],"chunk-INMPIKV3.js":[7858458,1131],"chunk-MSDKXB5G.js":[7859589,740],"chunk-WKGKEXBQ.js":[7860329,59063],"chunk-4AFW4SUV.js":[7919392,4890],"chunk-EAPUJSB2.js":[7924282,106855],"chunk-QJOW5M74.js":[8031137,7487],"chunk-IOIBFNN7.js":[8038624,5009],"chunk-676WSHLS.js":[8043633,7638],"chunk-SS4TF2IG.js":[8051271,1158],"chunk-C7K426KZ.js":[8052429,11733],"chunk-6V3HMRLM.js":[8064162,849],"chunk-NYX7TIWA.js":[8065011,2181],"chunk-TTXG5DBR.js":[8067192,630],"chunk-ZTXJKCK7.js":[8067822,7472],"chunk-3HG6J3YG.js":[8075294,2458],"chunk-SGCFODXM.js":[8077752,27243],"chunk-DQQVU4BD.js":[8104995,5045],"chunk-5IZLAOJV.js":[8110040,626],"chunk-4KZQAX6G.js":[8110666,667],"chunk-2XOHP2NE.js":[8111333,5817],"chunk-IUQJ5FPZ.js":[8117150,12769],"chunk-KSSMC4QJ.js":[8129919,970],"chunk-C7NBAJOU.js":[8130889,181592],"chunk-3NT3ETW3.js":[8312481,653],"chunk-ZAG2G6G6.js":[8313134,4266],"chunk-FN2WW42E.js":[8317400,645],"chunk-2W3E3BLO.js":[8318045,517],"chunk-6CLOUCTL.js":[8318562,20228],"chunk-D2CN4TKA.js":[8338790,984],"chunk-QNJQNMHM.js":[8339774,3598],"chunk-QTJWUSIJ.js":[8343372,8965],"chunk-VGONHBUL.js":[8352337,3953],"chunk-LXYQ45YQ.js":[8356290,581],"chunk-U2LO66LM.js":[8356871,1459],"chunk-DGJWLGLU.js":[8358330,781],"chunk-MNVVDTPG.js":[8359111,1460],"chunk-LUF2W3TV.js":[8360571,9715],"chunk-M32YDCO7.js":[8370286,73157],"chunk-5VWXFIHH.js":[8443443,1622],"chunk-QXBLMETA.js":[8445065,208817],"chunk-ZLCY2RP4.js":[8653882,508],"chunk-54ZADWYC.js":[8654390,1119],"chunk-KWKQLY6R.js":[8655509,895],"chunk-3HMJ4S26.js":[8656404,798],"chunk-6ASH6ONX.js":[8657202,926],"chunk-K4HNIBI5.js":[8658128,1031],"chunk-N4XPYVHZ.js":[8659159,570],"chunk-P7Y5RLBQ.js":[8659729,659],"chunk-U46I2RNP.js":[8660388,14991],"chunk-3ASVWPV4.js":[8675379,1323],"chunk-PFF37TVE.js":[8676702,28011],"chunk-WEFATG3K.js":[8704713,3561],"chunk-JLNYYUWV.js":[8708274,1386],"chunk-NHSOVHPH.js":[8709660,5329],"chunk-5S4ZYF65.js":[8714989,2572],"chunk-3WQ7MA5Z.js":[8717561,119274],"chunk-ZMQQRVLQ.js":[8836835,62367],"chunk-7ZBCSIZT.js":[8899202,1526],"chunk-D5RKOUVX.js":[8900728,1814],"chunk-QWKJJJZ6.js":[8902542,2510],"chunk-LDE5V6OE.js":[8905052,689],"chunk-OKTKUEGC.js":[8905741,437],"chunk-NM2JQYSC.js":[8906178,152079],"chunk-6WDVUB27.js":[9058257,4270],"chunk-7XACLM7P.js":[9062527,2865],"chunk-JN5KANGV.js":[9065392,13229],"chunk-OXTLIBBX.js":[9078621,3215],"chunk-U5ZJ7R6P.js":[9081836,582],"chunk-SY5DNGXY.js":[9082418,17831],"chunk-PUNIUMYN.js":[9100249,3326],"chunk-S4M75BW3.js":[9103575,5912],"chunk-QPL2MP7H.js":[9109487,26754],"chunk-OXSIP42W.js":[9136241,4978],"chunk-IYJO5VG3.js":[9141219,34519],"chunk-XXBEESFO.js":[9175738,1290],"chunk-EOFNXEKV.js":[9177028,4228],"chunk-6RTIHMUK.js":[9181256,9934],"chunk-VJID4XLS.js":[9191190,116596],"chunk-7JL3UY7T.js":[9307786,2359],"chunk-VAWZAMUC.js":[9310145,2527],"chunk-K2VO7RXW.js":[9312672,1705],"chunk-6YRR6CTM.js":[9314377,1927],"chunk-CG63YK5F.js":[9316304,9828],"chunk-NRMYXWEJ.js":[9326132,16029],"chunk-XY77VVNE.js":[9342161,1624],"chunk-JJG336TN.js":[9343785,1463],"chunk-75OSDJV6.js":[9345248,227316],"chunk-CYFE45UX.js":[9572564,1578],"chunk-K273PPD3.js":[9574142,6887],"chunk-TIKZLMUH.js":[9581029,6268],"chunk-JHAJ2EQZ.js":[9587297,374],"chunk-7IMJQKLR.js":[9587671,37572],"chunk-T6MYMX53.js":[9625243,1181],"chunk-KYKA6DUK.js":[9626424,6570],"chunk-GWKBOFHT.js":[9632994,454],"chunk-YGRFJO2L.js":[9633448,229360],"chunk-ASHYIKP2.js":[9862808,84523],"chunk-2NBKY5OR.js":[9947331,1163],"chunk-N7WEX3TW.js":[9948494,782],"chunk-PIDGJ3PS.js":[9949276,48682],"chunk-7NXOFE3Y.js":[9997958,627],"chunk-IGZNA6IH.js":[9998585,4194],"chunk-42BQOHCI.js":[10002779,27065],"chunk-R53MR5FL.js":[10029844,1472],"chunk-WI53BNCJ.js":[10031316,9467],"chunk-G2BAEM2W.js":[10040783,7502],"chunk-ZX4JFCBX.js":[10048285,17614],"chunk-REHPYY6W.js":[10065899,8847],"chunk-WXZVQDZI.js":[10074746,15137],"chunk-ISDJHEV6.js":[10089883,5429],"chunk-GIYDZSWK.js":[10095312,1501],"chunk-HBLXR5QX.js":[10096813,14497],"chunk-T3VU5KKH.js":[10111310,28236],"chunk-DOJOZMUN.js":[10139546,1328],"chunk-FBB6EXGL.js":[10140874,929],"chunk-XIPXMUB4.js":[10141803,7629],"chunk-PYL4IDMD.js":[10149432,13189],"chunk-FVHQJ2XB.js":[10162621,8490],"chunk-W4YHG3HT.js":[10171111,3345],"chunk-J25WQIO7.js":[10174456,28643],"chunk-UJLK73XC.js":[10203099,16839],"chunk-EJFUQGLJ.js":[10219938,6736],"chunk-6RJKQBAA.js":[10226674,2895],"chunk-Y6VAB3LU.js":[10229569,19418],"chunk-HTDYTOUU.js":[10248987,2312],"chunk-3SB2VOIE.js":[10251299,2057],"chunk-VAVO6AWA.js":[10253356,3458],"chunk-NEPFYCKK.js":[10256814,1567],"chunk-OF5CZ7H2.js":[10258381,3187],"chunk-UOT5FNDQ.js":[10261568,10882],"chunk-6KVY4KJN.js":[10272450,624],"chunk-K3OOX3FQ.js":[10273074,13443],"chunk-TVAHDSQK.js":[10286517,5561],"chunk-TO2VOXTJ.js":[10292078,41924],"chunk-5PP4N4YQ.js":[10334002,1074],"chunk-UT7EZBVS.js":[10335076,686],"chunk-NFT6QYEM.js":[10335762,47981],"chunk-ORE2TIFG.js":[10383743,24900],"chunk-VB7LSMI7.js":[10408643,1103],"chunk-THGMTWF4.js":[10409746,61301],"chunk-IU3SM6D6.js":[10471047,5664],"chunk-7QANFSAB.js":[10476711,1299],"chunk-XWL2HO2N.js":[10478010,43591],"chunk-MPEJ5RSG.js":[10521601,1821],"chunk-2N3HZ2AA.js":[10523422,350953],"chunk-UEAIUC56.js":[10874375,10156],"chunk-EMJFYSOZ.js":[10884531,13663],"chunk-2CQDQRRY.js":[10898194,8271],"chunk-UY3B2Y3A.js":[10906465,6116],"chunk-YGIDO4BV.js":[10912581,283690],"chunk-YAZTC7UE.js":[11196271,531],"chunk-KVPM3YZL.js":[11196802,1653],"chunk-DAPLZJEI.js":[11198455,23789],"chunk-CVQFIAYE.js":[11222244,185742],"chunk-DLEPEZYT.js":[11407986,7790],"chunk-WU6FFQQA.js":[11415776,1187853],"chunk-O5XBBJIG.js":[12603629,21524],"chunk-KMOIE6QH.js":[12625153,7443],"chunk-TLJ52LYJ.js":[12632596,169178],"chunk-R5OULVRL.js":[12801774,107597],"chunk-B6LQRXY5.js":[12909371,13298],"chunk-3A7MM66Q.js":[12922669,21863],"chunk-UDCN3GDD.js":[12944532,29022],"chunk-FUZS7BHK.js":[12973554,2983],"chunk-6ENJPFNE.js":[12976537,3519],"chunk-5V4QCYX5.js":[12980056,1822],"chunk-RH35ZOZ4.js":[12981878,5732],"chunk-E2K5V7IX.js":[12987610,403326],"chunk-VVBEDMEH.js":[13390936,8493],"chunk-WWLJ2Y62.js":[13399429,11645],"chunk-B2MDZWCY.js":[13411074,6670],"chunk-Y2YVBRH7.js":[13417744,37692],"chunk-22SFDDPO.js":[13455436,71697],"chunk-LT4VNHKF.js":[13527133,3277],"chunk-36YI5FA2.js":[13530410,629],"chunk-HAVW4VAH.js":[13531039,11196],"chunk-4ZZOH2PJ.js":[13542235,706],"chunk-ZAFH24X7.js":[13542941,5141],"chunk-EHKXNXAC.js":[13548082,1178],"chunk-OKNI3MX4.js":[13549260,3408],"chunk-XKEY2ZJY.js":[13552668,766],"chunk-IFRG5QFF.js":[13553434,1620],"chunk-J67HNBT2.js":[13555054,529],"chunk-BOJVZQKS.js":[13555583,679],"chunk-5WN4QURS.js":[13556262,1178],"chunk-474JNYHQ.js":[13557440,529],"chunk-5AGA3WHS.js":[13557969,3778],"chunk-JLS6MFZF.js":[13561747,2317],"chunk-LJ44MR6C.js":[13564064,1867],"chunk-PYZQFS3I.js":[13565931,2228],"chunk-LBMU5PK3.js":[13568159,692],"chunk-VBWOB2EP.js":[13568851,675],"chunk-O6ZSVPQY.js":[13569526,1403],"chunk-D5ZQ2V77.js":[13570929,527],"chunk-GOBBENRZ.js":[13571456,1098],"chunk-GUMK3KV5.js":[13572554,29046],"chunk-JGYXVZRK.js":[13601600,2498],"chunk-UOTMDZRQ.js":[13604098,3173],"chunk-YYJ6YAEV.js":[13607271,1066],"chunk-ZR6OAOAM.js":[13608337,116389],"chunk-D3BCFTFP.js":[13724726,37126],"chunk-H7WI2XQX.js":[13761852,554],"chunk-EXF4DEBL.js":[13762406,583],"chunk-O2623Z65.js":[13762989,529],"chunk-RUY664CA.js":[13763518,554],"chunk-U2DQFIPH.js":[13764072,492],"chunk-LW4OWS6S.js":[13764564,463],"chunk-MFUYESC7.js":[13765027,640],"chunk-6F2TZSVU.js":[13765667,1407],"chunk-7D5JZYFE.js":[13767074,1243],"chunk-52DRUIWH.js":[13768317,5153],"chunk-GBJM5CZ7.js":[13773470,6919],"chunk-QDTW7PGT.js":[13780389,5944],"chunk-HHDYDNZZ.js":[13786333,3421],"chunk-3XJ3MRXL.js":[13789754,3948],"chunk-22CW5FEI.js":[13793702,3996],"chunk-KWKG432R.js":[13797698,4996],"chunk-JHLJQACP.js":[13802694,1730],"chunk-YHC3LX4V.js":[13804424,976],"chunk-GI4O5N4R.js":[13805400,7086],"chunk-P5MW35NM.js":[13812486,1499],"chunk-PLGO4XG6.js":[13813985,3051],"chunk-HJR57H5U.js":[13817036,476],"chunk-L3MNWZSW.js":[13817512,2189],"chunk-OA4QACOK.js":[13819701,653],"chunk-QCVX5GQL.js":[13820354,3885],"chunk-YUX22SYK.js":[13824239,915],"chunk-VWZRUZS4.js":[13825154,745],"chunk-BIVSV5WA.js":[13825899,535],"chunk-BYXZB3F3.js":[13826434,2936],"chunk-RQPD4QCG.js":[13829370,839],"chunk-PJQ5IIRT.js":[13830209,2863],"chunk-RBKDTPA4.js":[13833072,505],"chunk-IMJNAIC7.js":[13833577,3247],"chunk-RBU6S5O5.js":[13836824,9400],"chunk-URXRPQ5T.js":[13846224,643],"chunk-OJ7HYH2S.js":[13846867,2436],"chunk-WT55OKYD.js":[13849303,1891],"chunk-REME6WPG.js":[13851194,1194],"chunk-A6QKASN5.js":[13852388,5157],"chunk-IRXRJKWP.js":[13857545,698],"chunk-XFTWFG6X.js":[13858243,3367],"chunk-DBH6X7SK.js":[13861610,553],"chunk-YV7U5UHL.js":[13862163,5192],"chunk-622PM7BB.js":[13867355,831],"chunk-VDCNTLYX.js":[13868186,2790],"chunk-XKVXCF6J.js":[13870976,763],"chunk-DB4IKYK5.js":[13871739,3042],"chunk-RCUOOC6I.js":[13874781,585],"chunk-NMPNDMWQ.js":[13875366,7095],"chunk-WNZIESWT.js":[13882461,660],"chunk-5DL354QD.js":[13883121,676],"chunk-7JWEWMSN.js":[13883797,625],"chunk-RJIFUWGV.js":[13884422,568],"chunk-ATSGHEAN.js":[13884990,1598],"gateway.js":[13886588,45514],"chunk-BYB4456Q.js":[13932102,575],"chunk-HILTG43D.js":[13932677,1644],"chunk-7H3GABGS.js":[13934321,1231],"chunk-OPAYQAI2.js":[13935552,2339],"chunk-VJ3FF4IJ.js":[13937891,819],"chunk-CFTZ33W2.js":[13938710,1156],"chunk-RYMWGR77.js":[13939866,2958],"chunk-WXAVUBTT.js":[13942824,22728],"chunk-GCOALNRO.js":[13965552,6572],"chunk-DIFJULKQ.js":[13972124,683],"chunk-V3MGUBPL.js":[13972807,679],"chunk-D4RFND2P.js":[13973486,43925],"chunk-CCKPZVS3.js":[14017411,2132],"chunk-KOL56MZS.js":[14019543,6048],"chunk-QGTZLE36.js":[14025591,33441],"chunk-O57S5IDR.js":[14059032,7383],"chunk-GXOOASN7.js":[14066415,1972],"chunk-YFKFN5RN.js":[14068387,26552],"chunk-VCQAMIXI.js":[14094939,3559],"chunk-CZJHJ5MD.js":[14098498,1279],"chunk-EJ2XPKOG.js":[14099777,5463],"chunk-HF67SVD3.js":[14105240,510],"chunk-CRKL76ET.js":[14105750,1977],"chunk-TYEXZIO4.js":[14107727,6376],"chunk-WIABKD3P.js":[14114103,1208],"chunk-ISSXTYFD.js":[14115311,21175],"chunk-LX5HTJ5O.js":[14136486,123503],"chunk-UDH7QQLD.js":[14259989,4232],"chunk-I3SUIG5P.js":[14264221,36684],"chunk-VHVTX2N3.js":[14300905,139390],"chunk-HH4GSKB3.js":[14440295,19818],"chunk-7HSZWQMD.js":[14460113,1995],"chunk-YIV5TOCA.js":[14462108,1266],"chunk-4YEVU5CK.js":[14463374,89868],"chunk-PKYWH4XV.js":[14553242,2318],"chunk-EEXXXCOR.js":[14555560,2590],"chunk-4C2KWT6H.js":[14558150,2109],"chunk-UENH6JHC.js":[14560259,1379]}
1
+ {"chunk-UT6LYJOB.js":[0,1314388],"chunk-PQPJHNPH.js":[1314388,4275],"chunk-4Y55VW3A.js":[1318663,22999],"chunk-T3HFVZEB.js":[1341662,518],"chunk-GIYRJJCM.js":[1342180,12526],"chunk-BUACW3SE.js":[1354706,84764],"chunk-EJLGGHLD.js":[1439470,27906],"chunk-SOWXBNAM.js":[1467376,26539],"chunk-KCWC47OD.js":[1493915,27249],"chunk-4MZUVHLA.js":[1521164,33163],"chunk-6MG4TONY.js":[1554327,9930],"chunk-CLQAKKUE.js":[1564257,87705],"chunk-LZC67H73.js":[1651962,1648],"chunk-VUVJNUED.js":[1653610,843],"chunk-7KDYRZEB.js":[1654453,23160],"chunk-UKGOM3IA.js":[1677613,5711],"chunk-AIQ4TMHV.js":[1683324,9430],"chunk-CSHLVU5J.js":[1692754,1028376],"chunk-MS7WH3QX.js":[2721130,3323],"chunk-75YD2GHR.js":[2724453,4541],"chunk-M3743MAB.js":[2728994,2924],"chunk-V7YHJ7PK.js":[2731918,59325],"chunk-PEDFCHUA.js":[2791243,10044],"chunk-SHZGKBGN.js":[2801287,5755],"chunk-WD4L4IXW.js":[2807042,8650],"chunk-NLU4CZLA.js":[2815692,2178],"chunk-N7F2O55G.js":[2817870,1239],"chunk-2IB4NVRD.js":[2819109,859],"chunk-RZLBEIBF.js":[2819968,4014],"chunk-B5ZN4LAU.js":[2823982,719],"chunk-IOX7AL5I.js":[2824701,5487],"chunk-H7PC6ACW.js":[2830188,6380],"chunk-ICJU23UY.js":[2836568,8679],"chunk-QBUIH2JQ.js":[2845247,11487],"chunk-AYHXXXKN.js":[2856734,9513],"chunk-7BI6OU25.js":[2866247,13001],"chunk-3II2NLU2.js":[2879248,49496],"chunk-VUCNBBGQ.js":[2928744,2728],"chunk-C7MLLX5Z.js":[2931472,5014],"chunk-RQUVCPQE.js":[2936486,1894],"chunk-GCZVMBZO.js":[2938380,15828],"chunk-Z6UPEAVN.js":[2954208,18396],"chunk-ZWT45FAW.js":[2972604,97072],"chunk-O2DL3XV3.js":[3069676,23260],"chunk-DZ7WM5T7.js":[3092936,6382],"chunk-W2BYXYZU.js":[3099318,12272],"chunk-77FKRB5B.js":[3111590,39537],"chunk-AHF2VHOG.js":[3151127,864],"chunk-X3WQTDLC.js":[3151991,3148],"chunk-P7TVQUXA.js":[3155139,3114],"chunk-DBFKMORD.js":[3158253,1597],"chunk-QTVPBXMD.js":[3159850,600],"chunk-Z5WQD5WG.js":[3160450,14153],"chunk-6IQI75DP.js":[3174603,27957],"chunk-QT3BGU7O.js":[3202560,12118],"chunk-BQSKHFYI.js":[3214678,4607],"chunk-5UD3KBBL.js":[3219285,31455],"chunk-FSGVUD5C.js":[3250740,4402],"chunk-D77RJOYB.js":[3255142,26896],"chunk-GCRTXDEB.js":[3282038,3718],"chunk-CL5ALGK4.js":[3285756,13305],"chunk-GHGZVLVP.js":[3299061,5651],"chunk-XUZ2QQDG.js":[3304712,32104],"chunk-6NQN26U3.js":[3336816,728],"chunk-WY4T6WGM.js":[3337544,5725],"chunk-O4TDPORJ.js":[3343269,6604],"chunk-NV5GDGJE.js":[3349873,11760],"chunk-ESXPQ43A.js":[3361633,1180],"chunk-YD4FUROF.js":[3362813,1910],"chunk-G2UKVN5M.js":[3364723,6042],"chunk-2GTVLWOK.js":[3370765,1654],"chunk-MNF22GE7.js":[3372419,19392],"chunk-IWRSW6QS.js":[3391811,7691],"chunk-KFGFW6MP.js":[3399502,4281],"chunk-HAYOICKB.js":[3403783,6514],"chunk-RMLIPUJ4.js":[3410297,4506],"chunk-NJEAJQET.js":[3414803,1253],"chunk-RXPKTI6Y.js":[3416056,3607],"chunk-YIZ2WEEP.js":[3419663,1846],"chunk-UHXLJILE.js":[3421509,14629],"chunk-W3OBRYEO.js":[3436138,8328],"chunk-ENWJCB4Q.js":[3444466,595],"chunk-L6THGCI4.js":[3445061,33719],"chunk-HAWVROS4.js":[3478780,1962],"chunk-VCMQIBYG.js":[3480742,1251],"chunk-EOWR2ZCK.js":[3481993,522],"chunk-HNCZKDCV.js":[3482515,8513],"chunk-LHMOV7PL.js":[3491028,1827],"chunk-2HK2VRWI.js":[3492855,4792],"chunk-QQASZMFE.js":[3497647,4152],"chunk-SFJF7FXJ.js":[3501799,2285],"chunk-SK4OFKQC.js":[3504084,1015],"chunk-PHAOV72F.js":[3505099,2006],"chunk-6L5VFLZX.js":[3507105,3829],"chunk-4RT3BKP2.js":[3510934,10480],"chunk-ER3ZL7QY.js":[3521414,5236],"chunk-IN5T4ANG.js":[3526650,3063],"chunk-RBZ6FX74.js":[3529713,10222],"chunk-SINO2R7D.js":[3539935,2041],"chunk-IL3FRUK7.js":[3541976,5827],"chunk-IECOJPZL.js":[3547803,972],"chunk-P4EMOCIV.js":[3548775,3632],"chunk-5QUI4WKM.js":[3552407,7794],"chunk-FMYROTTR.js":[3560201,5784],"chunk-X7RARH67.js":[3565985,7414],"chunk-EP3IR7YT.js":[3573399,1971],"chunk-N5DUGURD.js":[3575370,23448],"chunk-SPIYSS3H.js":[3598818,1571],"chunk-73MLF2VX.js":[3600389,11818],"chunk-IQT5OACG.js":[3612207,1107],"chunk-BM4PIU6U.js":[3613314,2534],"chunk-54QHDAJE.js":[3615848,2683],"chunk-5VCZ5K4B.js":[3618531,8125],"chunk-SYX4CTCB.js":[3626656,4330],"chunk-NK7AQZ6X.js":[3630986,2873],"chunk-L2J4EFSL.js":[3633859,3756],"chunk-HWUXYM6U.js":[3637615,27355],"chunk-XKJ4RO63.js":[3664970,20790],"chunk-2XJWNWBT.js":[3685760,14246],"chunk-CDFRPG2B.js":[3700006,1309],"chunk-7DB4LA5W.js":[3701315,2012],"chunk-YAZRP56K.js":[3703327,2009],"chunk-I4W6KBWD.js":[3705336,654],"chunk-XZJHLSRQ.js":[3705990,23003],"chunk-T4V6BR2L.js":[3728993,6283],"chunk-MZG4OVH2.js":[3735276,8053],"chunk-YN2ZQKB2.js":[3743329,8196],"chunk-ZADVNG65.js":[3751525,11189],"chunk-YMZURIJA.js":[3762714,1521],"chunk-UONAZVHF.js":[3764235,3191],"chunk-2EU3VLVO.js":[3767426,1057],"chunk-BAW7BQZT.js":[3768483,9284],"chunk-F4VWRWXK.js":[3777767,968],"chunk-AOTG2VEK.js":[3778735,2113],"chunk-ZQDFKZ6Q.js":[3780848,2856],"chunk-B57NTEB7.js":[3783704,3188],"chunk-GR5R6SDM.js":[3786892,1348],"chunk-22VIGMMT.js":[3788240,563],"chunk-SVF25ELE.js":[3788803,1205],"chunk-RK2VQGAX.js":[3790008,2072],"chunk-EX6TEXVW.js":[3792080,12785],"chunk-K3YT6KEL.js":[3804865,2354],"chunk-3KNMAANH.js":[3807219,29474],"chunk-FFSLJKRK.js":[3836693,1830],"chunk-5FYGJHWU.js":[3838523,12062],"chunk-WU4GSVVN.js":[3850585,1618],"chunk-GBRAZEIG.js":[3852203,7826],"chunk-UL3GSYKB.js":[3860029,1501],"chunk-472CIOF6.js":[3861530,17386],"chunk-5ZEFTENT.js":[3878916,1894],"chunk-DUES3JKN.js":[3880810,4687],"chunk-I73OYS4V.js":[3885497,3856],"chunk-RJJLR7TI.js":[3889353,8421],"chunk-SJRSDAEP.js":[3897774,1249],"chunk-2NQMAM3Z.js":[3899023,6013],"chunk-DCLY3QEY.js":[3905036,12851],"chunk-VXC7COFG.js":[3917887,1322],"chunk-46VUHMWN.js":[3919209,6110],"chunk-B7JFILND.js":[3925319,6062],"chunk-J2FVMG53.js":[3931381,1064],"chunk-SPWEO2IW.js":[3932445,35982],"chunk-JDGOVIA4.js":[3968427,770],"chunk-ZV5A5A7P.js":[3969197,1039],"chunk-5N7W4ZQK.js":[3970236,636],"chunk-LJGAGQUC.js":[3970872,5407],"chunk-BRJDKD36.js":[3976279,7343],"chunk-VISANTET.js":[3983622,1838],"chunk-NZHYC3JK.js":[3985460,34547],"chunk-LKNE2MCG.js":[4020007,2331],"chunk-DETE4NMM.js":[4022338,805],"chunk-UL6PZOLY.js":[4023143,2523],"chunk-4M7CLITA.js":[4025666,21628],"chunk-RABGHMRI.js":[4047294,28098],"chunk-3BDADUWM.js":[4075392,6695],"chunk-A7QTAIHJ.js":[4082087,3264],"chunk-UE3Z4NJR.js":[4085351,33851],"chunk-NYS6BVS2.js":[4119202,2290],"chunk-JQHKMBAZ.js":[4121492,3716],"chunk-SHK5GGN6.js":[4125208,9212],"chunk-3ZYWU4RE.js":[4134420,9489],"chunk-LX24SRWW.js":[4143909,546],"chunk-5PVCPXMR.js":[4144455,13635],"chunk-6QLAWUYL.js":[4158090,896],"chunk-FIVIXWXV.js":[4158986,3268],"chunk-UDBCNPHC.js":[4162254,568],"chunk-4Q6P4LLA.js":[4162822,17749],"chunk-2Q3O4YR7.js":[4180571,34025],"chunk-ILGCY5RI.js":[4214596,721],"chunk-I4ZFJIPP.js":[4215317,37911],"chunk-2MSYBBJR.js":[4253228,8255],"chunk-WC5M76IR.js":[4261483,728422],"chunk-ZH6IE5MB.js":[4989905,14446],"chunk-SCH22BJI.js":[5004351,9524],"chunk-PDD4UPCU.js":[5013875,1236],"chunk-Z4GNA4WU.js":[5015111,14612],"chunk-57OD4XHR.js":[5029723,51069],"chunk-QPWXZAKM.js":[5080792,470],"chunk-U56A226S.js":[5081262,2422],"chunk-R2PXWALU.js":[5083684,1047],"chunk-OB4F5ZLM.js":[5084731,2388],"chunk-36QRB5LR.js":[5087119,16201],"chunk-V3LJV2VD.js":[5103320,4428],"chunk-73XHLA25.js":[5107748,478],"chunk-WQWYKK5M.js":[5108226,25544],"chunk-QV4M7N2E.js":[5133770,4619],"chunk-MOAASB3D.js":[5138389,3179],"chunk-7XAQAULV.js":[5141568,5567],"chunk-R23K7Z2V.js":[5147135,9551],"chunk-MKNCH65Q.js":[5156686,8208],"chunk-FZWR5SGL.js":[5164894,1275],"chunk-TBYVNDWQ.js":[5166169,824],"chunk-V2ACE4QP.js":[5166993,1985],"chunk-VLVQQE77.js":[5168978,27373],"chunk-PREZBW2J.js":[5196351,17582],"chunk-OWMQGAMS.js":[5213933,82794],"chunk-6S74XQG3.js":[5296727,14053],"chunk-525U2ILI.js":[5310780,7026],"chunk-TXYURT2A.js":[5317806,3531],"chunk-7UTI7IXK.js":[5321337,10436],"chunk-RNEQILKL.js":[5331773,2393],"chunk-ELJR56M6.js":[5334166,1594],"chunk-KQDFWE2W.js":[5335760,18679],"chunk-5BYGXP2O.js":[5354439,18210],"chunk-RTGD5PHP.js":[5372649,904],"chunk-I77AOSDV.js":[5373553,3373],"chunk-TJOYFYQL.js":[5376926,36549],"chunk-4TKON33A.js":[5413475,9328],"chunk-LNBK2CZH.js":[5422803,890],"chunk-VKLD5T5T.js":[5423693,3319],"chunk-376XFG7F.js":[5427012,2353],"chunk-M5IUOYUH.js":[5429365,1797],"chunk-XQ2Z7RQT.js":[5431162,2410],"chunk-3PWRXTTY.js":[5433572,4436],"chunk-I543ZRUB.js":[5438008,1113],"chunk-UYZ6DUGZ.js":[5439121,1027],"chunk-QUOFCPC3.js":[5440148,2061],"chunk-SRDIXESC.js":[5442209,14299],"chunk-XCBVJKFU.js":[5456508,2329],"chunk-MV2ORZYP.js":[5458837,6179],"chunk-BRNCMTWY.js":[5465016,3339],"chunk-CKS7U722.js":[5468355,5858],"chunk-BH4LH4FQ.js":[5474213,67703],"chunk-BZJVB6HL.js":[5541916,11108],"chunk-BA7KV7K2.js":[5553024,1402],"chunk-I7MUFMAW.js":[5554426,3001],"chunk-XO73CXA6.js":[5557427,5582],"chunk-WGJD55RG.js":[5563009,8926],"chunk-QI2JL2EW.js":[5571935,1846],"chunk-6M33DC5Q.js":[5573781,5961],"chunk-DMNZQOIZ.js":[5579742,24727],"chunk-47BYL6ME.js":[5604469,5079],"chunk-T3JZHJGK.js":[5609548,3806],"chunk-DPNBYZ3E.js":[5613354,5657],"chunk-7VG3GI2I.js":[5619011,155424],"chunk-MCYE6AVQ.js":[5774435,644],"chunk-ATXD5WAD.js":[5775079,37280],"chunk-6PLKFJUV.js":[5812359,420],"chunk-7PC3ARID.js":[5812779,54736],"chunk-STI5KTGS.js":[5867515,800],"chunk-J76KMXOL.js":[5868315,456],"chunk-LPWA2DGD.js":[5868771,48075],"chunk-STU3JOL5.js":[5916846,3490],"chunk-YDXHMVRX.js":[5920336,14130],"chunk-O3VUZGGV.js":[5934466,5120],"chunk-D4HSG2DP.js":[5939586,4019],"chunk-3ZML5YF5.js":[5943605,12209],"chunk-F27ZOYUX.js":[5955814,849],"chunk-GOSCCSYY.js":[5956663,1790],"chunk-CVFODZCI.js":[5958453,927],"chunk-V5ENL4MX.js":[5959380,775],"chunk-HEWN4ZGC.js":[5960155,7727],"chunk-PLTR4THA.js":[5967882,794],"chunk-2O4QVWLE.js":[5968676,1138],"chunk-XEVGFUKU.js":[5969814,4741],"chunk-FJNINHJM.js":[5974555,17051],"chunk-3YICI2HQ.js":[5991606,1029],"chunk-4AOONZN7.js":[5992635,7268],"chunk-HMJXIYLR.js":[5999903,8770],"chunk-SEIWRIPD.js":[6008673,798],"chunk-CKN3E6XY.js":[6009471,1446],"chunk-UQTMVWLY.js":[6010917,1499],"chunk-L7HSV2LZ.js":[6012416,2580],"chunk-5DKUA5DG.js":[6014996,51419],"chunk-LZMICGSU.js":[6066415,2828],"chunk-GGM74EFE.js":[6069243,7815],"chunk-VQLMJSLQ.js":[6077058,3885],"chunk-TG7KLONH.js":[6080943,13052],"chunk-J4VBVPPR.js":[6093995,428],"chunk-H3NEJMCP.js":[6094423,2820],"chunk-JL7P3Z6B.js":[6097243,13281],"chunk-URJCINBJ.js":[6110524,1669],"chunk-TW4FJH74.js":[6112193,2716],"chunk-TCF6DZ27.js":[6114909,32790],"chunk-K2DQUZY6.js":[6147699,1086],"chunk-F24NNHUP.js":[6148785,5957],"chunk-2HFJXL7Z.js":[6154742,894],"chunk-XPLCMWDY.js":[6155636,2437],"chunk-ZJH73USW.js":[6158073,1595],"chunk-BU4WOKZI.js":[6159668,5011],"chunk-BUZJ4TOI.js":[6164679,6441],"chunk-33B2AXZ7.js":[6171120,30348],"chunk-OPO2EVHX.js":[6201468,7327],"chunk-GBWP4XTD.js":[6208795,6149],"chunk-6PIXHS5I.js":[6214944,6590],"chunk-AVTYS6UX.js":[6221534,17097],"chunk-WYVIY5VB.js":[6238631,645],"chunk-4YRUDJWC.js":[6239276,2476],"chunk-YIIEHJ27.js":[6241752,6964],"chunk-DTAIHUQP.js":[6248716,12643],"chunk-SVKNNQG7.js":[6261359,3633],"chunk-UIBSMP5E.js":[6264992,998316],"chunk-EFMPBAEK.js":[7263308,652],"chunk-ZBFHU6CQ.js":[7263960,487],"chunk-NG2KHDJL.js":[7264447,3373],"chunk-JNAEIDFD.js":[7267820,1589],"chunk-LDLKHR54.js":[7269409,1106],"chunk-VYAZU6O7.js":[7270515,3073],"chunk-SY24OFXM.js":[7273588,515],"chunk-QEHE5XIN.js":[7274103,1017],"chunk-NHWTQGWU.js":[7275120,15841],"chunk-H2QEJRD7.js":[7290961,9077],"chunk-5LY4R7RQ.js":[7300038,7152],"chunk-O5PZDOZK.js":[7307190,2069],"chunk-6NOWPUC7.js":[7309259,951],"chunk-QKV4JNOO.js":[7310210,48128],"chunk-2SQEV7MV.js":[7358338,2187],"chunk-L35DAYBG.js":[7360525,785],"chunk-EY4QOB3N.js":[7361310,1833],"chunk-2INLK7KD.js":[7363143,1954],"chunk-QRWEVX26.js":[7365097,6988],"chunk-6CVMAUXN.js":[7372085,5467],"chunk-SPCBMOLF.js":[7377552,8122],"chunk-QFKUAFAQ.js":[7385674,2406],"chunk-5QG2PSET.js":[7388080,1094],"chunk-WFMWQGSA.js":[7389174,30788],"chunk-NT2G6NZP.js":[7419962,3096],"chunk-3OZYMO72.js":[7423058,1980],"chunk-2ZDPP7FB.js":[7425038,8701],"chunk-QOSZM46V.js":[7433739,2177],"chunk-VDFXDD6U.js":[7435916,2347],"chunk-AZORXY5Y.js":[7438263,2615],"chunk-VXMW4HDM.js":[7440878,6170],"chunk-LPUQWRKD.js":[7447048,3580],"chunk-QIGDUH7N.js":[7450628,4606],"chunk-MYWBXDEY.js":[7455234,25514],"chunk-7YJDLTTW.js":[7480748,1117],"chunk-4OEUWZPN.js":[7481865,67734],"chunk-SQDQ7QER.js":[7549599,1023],"chunk-TAUG3X7L.js":[7550622,21838],"chunk-J6GWMMIR.js":[7572460,2045],"chunk-TKLG2WFL.js":[7574505,6301],"chunk-J3F2IMSC.js":[7580806,7000],"chunk-CJRYRJD3.js":[7587806,5647],"chunk-JFJDIQE7.js":[7593453,40283],"chunk-NB4CMSDU.js":[7633736,6913],"chunk-BVPJUYBB.js":[7640649,2235],"chunk-XULUZPTT.js":[7642884,16699],"chunk-2R3RFFAC.js":[7659583,5436],"chunk-FQMDCRZN.js":[7665019,8543],"chunk-ZE5IUDQD.js":[7673562,606],"chunk-J5FUPYZP.js":[7674168,10693],"chunk-5G4BBTGV.js":[7684861,3429],"chunk-27YOGVZJ.js":[7688290,2580],"chunk-OYVCN43O.js":[7690870,55570],"chunk-EY3UGHFO.js":[7746440,11019],"chunk-WD5ZKR6U.js":[7757459,11582],"chunk-DQUHJJ7V.js":[7769041,11045],"chunk-S3DZ7QJV.js":[7780086,48087],"chunk-6FH2EQOS.js":[7828173,732],"chunk-VL46UHOA.js":[7828905,4057],"chunk-XKEJQ3VB.js":[7832962,10749],"chunk-GMIRBIRH.js":[7843711,20937],"chunk-CEIS5DUV.js":[7864648,19081],"chunk-622KVESO.js":[7883729,22833],"chunk-O3TBC7AG.js":[7906562,3256],"chunk-G7KBNZ4P.js":[7909818,59063],"chunk-VLIO4EOH.js":[7968881,106855],"chunk-AFHXF7ZB.js":[8075736,4890],"chunk-AWZ7QZ2F.js":[8080626,1024],"chunk-INMPIKV3.js":[8081650,1131],"chunk-MSDKXB5G.js":[8082781,740],"chunk-QJOW5M74.js":[8083521,7487],"chunk-BIVQX4FU.js":[8091008,5009],"chunk-RCDKV74L.js":[8096017,7638],"chunk-SS4TF2IG.js":[8103655,1158],"chunk-AI45GTKO.js":[8104813,11733],"chunk-6V3HMRLM.js":[8116546,849],"chunk-Z3UMHGFC.js":[8117395,2181],"chunk-TTXG5DBR.js":[8119576,630],"chunk-Z77DVBNA.js":[8120206,7472],"chunk-4ZYNVV5A.js":[8127678,2458],"chunk-GCHSDDRQ.js":[8130136,27243],"chunk-DVSPI5Q2.js":[8157379,5045],"chunk-5IZLAOJV.js":[8162424,626],"chunk-4KZQAX6G.js":[8163050,667],"chunk-HDV2DFPA.js":[8163717,5817],"chunk-ZPXWJOQ5.js":[8169534,181592],"chunk-NRIZ2REB.js":[8351126,12769],"chunk-KSSMC4QJ.js":[8363895,970],"chunk-3NT3ETW3.js":[8364865,653],"chunk-2C5DKXKW.js":[8365518,4266],"chunk-7M32BVB4.js":[8369784,645],"chunk-2W3E3BLO.js":[8370429,517],"chunk-XF2OZOQ3.js":[8370946,20261],"chunk-ZQOJH7BK.js":[8391207,984],"chunk-SSEB43Y5.js":[8392191,3598],"chunk-CZAQ7QOS.js":[8395789,3251],"chunk-CUWYO6DZ.js":[8399040,6086],"chunk-VGONHBUL.js":[8405126,3953],"chunk-LXYQ45YQ.js":[8409079,581],"chunk-U2LO66LM.js":[8409660,1459],"chunk-DGJWLGLU.js":[8411119,781],"chunk-MNVVDTPG.js":[8411900,1460],"chunk-LUF2W3TV.js":[8413360,9715],"chunk-M32YDCO7.js":[8423075,73157],"chunk-5VWXFIHH.js":[8496232,1622],"chunk-QXBLMETA.js":[8497854,208817],"chunk-ZLCY2RP4.js":[8706671,508],"chunk-54ZADWYC.js":[8707179,1119],"chunk-KWKQLY6R.js":[8708298,895],"chunk-3HMJ4S26.js":[8709193,798],"chunk-6ASH6ONX.js":[8709991,926],"chunk-K4HNIBI5.js":[8710917,1031],"chunk-N4XPYVHZ.js":[8711948,570],"chunk-P7Y5RLBQ.js":[8712518,659],"chunk-U46I2RNP.js":[8713177,14991],"chunk-I6DYFOYB.js":[8728168,1323],"chunk-IPFYT3HU.js":[8729491,28011],"chunk-WEFATG3K.js":[8757502,3561],"chunk-PL3ZGNTA.js":[8761063,1386],"chunk-DHS5P5WD.js":[8762449,5329],"chunk-YD4YQXGE.js":[8767778,2572],"chunk-6FTGJCMV.js":[8770350,119274],"chunk-QWH3UP67.js":[8889624,62367],"chunk-D6O4EVPR.js":[8951991,1526],"chunk-DZEHIASI.js":[8953517,1814],"chunk-6HTT3VTP.js":[8955331,2510],"chunk-K54TIOGN.js":[8957841,689],"chunk-BQMEJRIQ.js":[8958530,437],"chunk-H5LKT5J6.js":[8958967,152107],"chunk-3CJR5VMT.js":[9111074,1482],"chunk-3NRPQKVC.js":[9112556,3180],"chunk-FODSCZWC.js":[9115736,2865],"chunk-3CGOXUD4.js":[9118601,13229],"chunk-SOES5TOY.js":[9131830,3215],"chunk-U5ZJ7R6P.js":[9135045,582],"chunk-VYYEMZ6C.js":[9135627,17831],"chunk-OIOBWCR7.js":[9153458,3326],"chunk-2OAZA6I3.js":[9156784,5912],"chunk-QDHPXWGC.js":[9162696,26754],"chunk-OXSIP42W.js":[9189450,4978],"chunk-IYJO5VG3.js":[9194428,34519],"chunk-H6VCTTHA.js":[9228947,1290],"chunk-J6IIKB6U.js":[9230237,4228],"chunk-WN4CMY7B.js":[9234465,9934],"chunk-PNVQV7Q7.js":[9244399,116596],"chunk-SJGBDJFJ.js":[9360995,2359],"chunk-VAWZAMUC.js":[9363354,2527],"chunk-U3X5GSAO.js":[9365881,1705],"chunk-MHAPGM2M.js":[9367586,1927],"chunk-CG63YK5F.js":[9369513,9828],"chunk-LXB5NPNQ.js":[9379341,16215],"chunk-D64VC7SM.js":[9395556,1624],"chunk-KJJZNREM.js":[9397180,1463],"chunk-75OSDJV6.js":[9398643,227316],"chunk-2Y2A5PBR.js":[9625959,1578],"chunk-6L5XBYED.js":[9627537,6887],"chunk-T56IA5AS.js":[9634424,6268],"chunk-JHAJ2EQZ.js":[9640692,374],"chunk-7IMJQKLR.js":[9641066,37572],"chunk-E2GFNQWT.js":[9678638,1181],"chunk-D4EEX5HJ.js":[9679819,6570],"chunk-GWKBOFHT.js":[9686389,454],"chunk-YGRFJO2L.js":[9686843,229360],"chunk-ASHYIKP2.js":[9916203,84523],"chunk-2NBKY5OR.js":[10000726,1163],"chunk-N7WEX3TW.js":[10001889,782],"chunk-PIDGJ3PS.js":[10002671,48682],"chunk-7NXOFE3Y.js":[10051353,627],"chunk-BGIA4XEQ.js":[10051980,4194],"chunk-OCN64SMZ.js":[10056174,27065],"chunk-R53MR5FL.js":[10083239,1472],"chunk-WI53BNCJ.js":[10084711,9467],"chunk-G2BAEM2W.js":[10094178,7502],"chunk-ZX4JFCBX.js":[10101680,17614],"chunk-REHPYY6W.js":[10119294,8847],"chunk-WXZVQDZI.js":[10128141,15137],"chunk-ISDJHEV6.js":[10143278,5429],"chunk-GIYDZSWK.js":[10148707,1501],"chunk-HBLXR5QX.js":[10150208,14497],"chunk-T3VU5KKH.js":[10164705,28236],"chunk-DOJOZMUN.js":[10192941,1328],"chunk-FBB6EXGL.js":[10194269,929],"chunk-XIPXMUB4.js":[10195198,7629],"chunk-PYL4IDMD.js":[10202827,13189],"chunk-FVHQJ2XB.js":[10216016,8490],"chunk-W4YHG3HT.js":[10224506,3345],"chunk-J25WQIO7.js":[10227851,28643],"chunk-UJLK73XC.js":[10256494,16839],"chunk-EJFUQGLJ.js":[10273333,6736],"chunk-VDQQ72R4.js":[10280069,2895],"chunk-RUOYLZ3X.js":[10282964,19418],"chunk-HTDYTOUU.js":[10302382,2312],"chunk-TSVRHP7X.js":[10304694,2057],"chunk-JTQ3LQRR.js":[10306751,3458],"chunk-YKA5F6WR.js":[10310209,1567],"chunk-RGPIJISL.js":[10311776,3187],"chunk-NIJPXVOX.js":[10314963,10882],"chunk-6KVY4KJN.js":[10325845,624],"chunk-AB6MBRDC.js":[10326469,13443],"chunk-TVAHDSQK.js":[10339912,5561],"chunk-MKRPC7PY.js":[10345473,41924],"chunk-5PP4N4YQ.js":[10387397,1074],"chunk-UT7EZBVS.js":[10388471,686],"chunk-TT6RVGUR.js":[10389157,47981],"chunk-WRGOD447.js":[10437138,24900],"chunk-VB7LSMI7.js":[10462038,1103],"chunk-ZPLTQDH4.js":[10463141,61301],"chunk-XWL2HO2N.js":[10524442,43591],"chunk-SVGHRBX4.js":[10568033,5664],"chunk-7QANFSAB.js":[10573697,1299],"chunk-TQGFLAGD.js":[10574996,1821],"chunk-2N3HZ2AA.js":[10576817,350953],"chunk-UEAIUC56.js":[10927770,10156],"chunk-EMJFYSOZ.js":[10937926,13663],"chunk-2CQDQRRY.js":[10951589,8271],"chunk-UY3B2Y3A.js":[10959860,6116],"chunk-YGIDO4BV.js":[10965976,283690],"chunk-YAZTC7UE.js":[11249666,531],"chunk-KVPM3YZL.js":[11250197,1653],"chunk-DAPLZJEI.js":[11251850,23789],"chunk-CVQFIAYE.js":[11275639,185742],"chunk-DLEPEZYT.js":[11461381,7790],"chunk-WU6FFQQA.js":[11469171,1187853],"chunk-O5XBBJIG.js":[12657024,21524],"chunk-KMOIE6QH.js":[12678548,7443],"chunk-TLJ52LYJ.js":[12685991,169178],"chunk-R5OULVRL.js":[12855169,107597],"chunk-B6LQRXY5.js":[12962766,13298],"chunk-3A7MM66Q.js":[12976064,21863],"chunk-UDCN3GDD.js":[12997927,29022],"chunk-FUZS7BHK.js":[13026949,2983],"chunk-6ENJPFNE.js":[13029932,3519],"chunk-5V4QCYX5.js":[13033451,1822],"chunk-RH35ZOZ4.js":[13035273,5732],"chunk-E2K5V7IX.js":[13041005,403326],"chunk-VVBEDMEH.js":[13444331,8493],"chunk-WWLJ2Y62.js":[13452824,11645],"chunk-B2MDZWCY.js":[13464469,6670],"chunk-Y2YVBRH7.js":[13471139,37692],"chunk-22SFDDPO.js":[13508831,71697],"chunk-LT4VNHKF.js":[13580528,3277],"chunk-36YI5FA2.js":[13583805,629],"chunk-HAVW4VAH.js":[13584434,11196],"chunk-4ZZOH2PJ.js":[13595630,706],"chunk-ZAFH24X7.js":[13596336,5141],"chunk-EHKXNXAC.js":[13601477,1178],"chunk-OKNI3MX4.js":[13602655,3408],"chunk-XKEY2ZJY.js":[13606063,766],"chunk-IFRG5QFF.js":[13606829,1620],"chunk-J67HNBT2.js":[13608449,529],"chunk-BOJVZQKS.js":[13608978,679],"chunk-5WN4QURS.js":[13609657,1178],"chunk-474JNYHQ.js":[13610835,529],"chunk-5AGA3WHS.js":[13611364,3778],"chunk-JLS6MFZF.js":[13615142,2317],"chunk-LJ44MR6C.js":[13617459,1867],"chunk-PYZQFS3I.js":[13619326,2228],"chunk-LBMU5PK3.js":[13621554,692],"chunk-VBWOB2EP.js":[13622246,675],"chunk-O6ZSVPQY.js":[13622921,1403],"chunk-D5ZQ2V77.js":[13624324,527],"chunk-GOBBENRZ.js":[13624851,1098],"chunk-GUMK3KV5.js":[13625949,29046],"chunk-JGYXVZRK.js":[13654995,2498],"chunk-UOTMDZRQ.js":[13657493,3173],"chunk-YYJ6YAEV.js":[13660666,1066],"chunk-ZR6OAOAM.js":[13661732,116389],"chunk-D3BCFTFP.js":[13778121,37126],"chunk-H7WI2XQX.js":[13815247,554],"chunk-EXF4DEBL.js":[13815801,583],"chunk-O2623Z65.js":[13816384,529],"chunk-RUY664CA.js":[13816913,554],"chunk-U2DQFIPH.js":[13817467,492],"chunk-LW4OWS6S.js":[13817959,463],"chunk-MFUYESC7.js":[13818422,640],"chunk-6F2TZSVU.js":[13819062,1407],"chunk-7D5JZYFE.js":[13820469,1243],"chunk-52DRUIWH.js":[13821712,5153],"chunk-GBJM5CZ7.js":[13826865,6919],"chunk-QDTW7PGT.js":[13833784,5944],"chunk-HHDYDNZZ.js":[13839728,3421],"chunk-3XJ3MRXL.js":[13843149,3948],"chunk-22CW5FEI.js":[13847097,3996],"chunk-KWKG432R.js":[13851093,4996],"chunk-JHLJQACP.js":[13856089,1730],"chunk-YHC3LX4V.js":[13857819,976],"chunk-FKFV3ROO.js":[13858795,7086],"chunk-7YKWBY2N.js":[13865881,1499],"chunk-CEMZV3QX.js":[13867380,3051],"chunk-HJR57H5U.js":[13870431,476],"chunk-S4OMG32W.js":[13870907,2189],"chunk-RR2INBGC.js":[13873096,653],"chunk-3PD2D5AM.js":[13873749,3885],"chunk-YUX22SYK.js":[13877634,915],"chunk-VWZRUZS4.js":[13878549,745],"chunk-BIVSV5WA.js":[13879294,535],"chunk-BYXZB3F3.js":[13879829,2936],"chunk-NBRIJ3XV.js":[13882765,839],"chunk-3KNRWVXB.js":[13883604,2863],"chunk-RBKDTPA4.js":[13886467,505],"chunk-QJDN7AJC.js":[13886972,3247],"chunk-RBU6S5O5.js":[13890219,9400],"chunk-URXRPQ5T.js":[13899619,643],"chunk-OJ7HYH2S.js":[13900262,2436],"chunk-WT55OKYD.js":[13902698,1891],"chunk-REME6WPG.js":[13904589,1194],"chunk-A6QKASN5.js":[13905783,5157],"chunk-IRXRJKWP.js":[13910940,698],"chunk-XFTWFG6X.js":[13911638,3367],"chunk-DBH6X7SK.js":[13915005,553],"chunk-YV7U5UHL.js":[13915558,5192],"chunk-622PM7BB.js":[13920750,831],"chunk-VDCNTLYX.js":[13921581,2790],"chunk-XKVXCF6J.js":[13924371,763],"chunk-DB4IKYK5.js":[13925134,3042],"chunk-RCUOOC6I.js":[13928176,585],"chunk-NMPNDMWQ.js":[13928761,7095],"chunk-WNZIESWT.js":[13935856,660],"chunk-5DL354QD.js":[13936516,676],"chunk-7JWEWMSN.js":[13937192,625],"chunk-RJIFUWGV.js":[13937817,568],"chunk-ATSGHEAN.js":[13938385,1598],"gateway.js":[13939983,45514],"chunk-BYB4456Q.js":[13985497,575],"chunk-2SQVLDTY.js":[13986072,1644],"chunk-66SURIPR.js":[13987716,1231],"chunk-LCNJRETO.js":[13988947,2339],"chunk-BJ7KCAFP.js":[13991286,819],"chunk-UUZZ2W2E.js":[13992105,1156],"chunk-VBPCRIMK.js":[13993261,2958],"chunk-OOIE4PUZ.js":[13996219,22728],"chunk-WUMQP6CH.js":[14018947,6572],"chunk-4GM2Z3FA.js":[14025519,683],"chunk-V3MGUBPL.js":[14026202,679],"chunk-D4RFND2P.js":[14026881,43925],"chunk-AJWPGTXS.js":[14070806,2132],"chunk-KOL56MZS.js":[14072938,6048],"chunk-LV5Q2K5W.js":[14078986,33441],"chunk-O57S5IDR.js":[14112427,7383],"chunk-GXOOASN7.js":[14119810,1972],"chunk-YFKFN5RN.js":[14121782,26552],"chunk-VCQAMIXI.js":[14148334,3559],"chunk-CZJHJ5MD.js":[14151893,1279],"chunk-EJ2XPKOG.js":[14153172,5463],"chunk-HF67SVD3.js":[14158635,510],"chunk-CRKL76ET.js":[14159145,1977],"chunk-TYEXZIO4.js":[14161122,6376],"chunk-OGQZ4WDE.js":[14167498,1208],"chunk-PKPH3FGP.js":[14168706,21175],"chunk-LX5HTJ5O.js":[14189881,123503],"chunk-JEBYLF4Q.js":[14313384,4232],"chunk-NB3K3JYF.js":[14317616,36684],"chunk-VHVTX2N3.js":[14354300,139390],"chunk-7HCSGM62.js":[14493690,19818],"chunk-7HSZWQMD.js":[14513508,1995],"chunk-YIV5TOCA.js":[14515503,1266],"chunk-JGEM3Q7A.js":[14516769,89868],"chunk-PKYWH4XV.js":[14606637,2318],"chunk-EEXXXCOR.js":[14608955,2590],"chunk-4C2KWT6H.js":[14611545,2109],"chunk-UENH6JHC.js":[14613654,1379]}
@@ -1 +1 @@
1
- import{n as e,t}from"./vendor-react-BOUWij0V.js";import{t as n}from"./automations-workspace-leY4yCvw.js";var r=e(),i=t();function a(){let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t}export{a as AutomationsPage};
1
+ import{n as e,t}from"./vendor-react-BOUWij0V.js";import{t as n}from"./automations-workspace-D6-Kk33X.js";var r=e(),i=t();function a(){let e=(0,r.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,i.jsx)(n,{}),e[0]=t):t=e[0],t}export{a as AutomationsPage};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-page-XqG9aYBd.js","assets/rolldown-runtime-aKtaBQYM.js","assets/marked.esm-8VXEA2AD.js","assets/vendor-react-BOUWij0V.js","assets/preload-helper-Czpn1I53.js","assets/chunk-KS7C4IRE-DIIvxCDx.js","assets/locale-store-Dy0B0XDJ.js","assets/messages-Bj6DCoic.js","assets/dist-DlirbHVs.js","assets/es2015-CFqg57eW.js","assets/dist-CDSvxjOh.js","assets/createLucideIcon-DPHK1VkS.js","assets/app-window-DXFNqt_0.js","assets/archive-Dz0hferG.js","assets/arrow-left-D880xG-P.js","assets/video-generation-Cec49Jwg.js","assets/arrow-up-D5ZtR1QT.js","assets/product-automation-feedback-BDFpFrSs.js","assets/activity-YogQEteU.js","assets/bot-DjLkhyZL.js","assets/circle-check-C23XjkUj.js","assets/circle-pause-CN9jYH2s.js","assets/clock-3-DnrAnuyZ.js","assets/external-link-DjqjBmc3.js","assets/loader-circle-CifKLtgG.js","assets/message-square-fVE7Ghj1.js","assets/pause-DuPxgSxk.js","assets/play-kxZvpBg8.js","assets/rotate-ccw-JM1TBLpp.js","assets/rotate-cw-LIg3Am9S.js","assets/sparkles-DHlfQFAF.js","assets/triangle-alert-2JXFNNKU.js","assets/volume-2-BSJhAY97.js","assets/zap-dximCGjy.js","assets/cn-0WouolD0.js","assets/bundle-mjs-rHxsej31.js","assets/session-manager-7nbjJYyy.js","assets/schemas-CCWMleym.js","assets/turn-outcome-Bf3N3Bmj.js","assets/product-delivery-4gEqUIsK.js","assets/session-api-vEn4BzjV.js","assets/gateway-startup-retry-Dm0dK8BT.js","assets/local-session-drafts-KkAOxXk5.js","assets/tool-activity-BtJkgjFf.js","assets/attachment-utils-core-BPYdUI6y.js","assets/agent-run-error-parser-DsXmcKt-.js","assets/gateway-realtime-D2B_nv2b.js","assets/gateway-realtime-store-DrVbjYfI.js","assets/playback-coordinator-CWHIf0wr.js","assets/registry-api-CaBz9f4g.js","assets/agents-admin-api-BW3Mzst8.js","assets/gateway-config-swr-DxelrRtx.js","assets/vendor-swr-CdRzEUwF.js","assets/button-C5tRaJxt.js","assets/automation-api-B6YcuEsE.js","assets/earth-C9Z4bTTG.js","assets/check-DUBLcKHA.js","assets/chevron-down-ccbiQQz_.js","assets/chevron-right-BweFrslA.js","assets/working-directory-picker-modal-DX6bRmkQ.js","assets/file-archive-DanfQJNe.js","assets/interaction-BdhHBbYa.js","assets/form-field-width-DJw_jULe.js","assets/settings-form-draft-Dy10ldo8.js","assets/popover-select-hRG1EzAY.js","assets/skeleton-DzdOeGYz.js","assets/dist-BSVQC3i_.js","assets/dist-DSRLZhL9.js","assets/floating-ui.dom-CiMnRY5O.js","assets/floating-ui.react-dom-Gx6CM22l.js","assets/settings-shell-dialog-layer-BU3UuiJr.js","assets/circle-alert-BEjgurr2.js","assets/send-1f1Ntw6E.js","assets/circle-x-DFsCKeya.js","assets/circle-BoO4YvTx.js","assets/file-tree-utils-DJs1faGv.js","assets/copy-Dv6d4Dvw.js","assets/database-CjjeZfRG.js","assets/download-Dk-ZjtO6.js","assets/ellipsis-0k4rZLoy.js","assets/file-code-corner-byQA1VfD.js","assets/file-image-CDUPkZvG.js","assets/file-text-D12HbeVy.js","assets/file-CStvVK2S.js","assets/folder-kanban-CpLlFI1o.js","assets/folder-open-CyzJ19I9.js","assets/folder-CN-pC3XL.js","assets/git-branch-Dh9uxTot.js","assets/globe-DSSGFWFn.js","assets/history-DXH_9jsE.js","assets/notes-api-M1FuRZbW.js","assets/markdown-view-ByuzuGRb.js","assets/plus-Q2yW6OE7.js","assets/x-B_N4OPjy.js","assets/app-link-Ji4uewEG.js","assets/copy-to-clipboard-HOJ79TWv.js","assets/xml-_d7dTN2Q.js","assets/mermaid-render-oOellPHt.js","assets/markdown-view-Czi3_WHu.css","assets/chat-chart-block-DxTCx__V.js","assets/key-round-DWbpyU2U.js","assets/laptop-CI3hBVrl.js","assets/link-2-D_ZKYUW7.js","assets/list-checks-BbsExAoq.js","assets/list-todo-CTVRto8O.js","assets/messages-square-BckAJrEW.js","assets/mic-CuUb7zc-.js","assets/monitor-Af5eAvF7.js","assets/use-generated-media-DX4_ne7C.js","assets/install-connector-dialog-st2O1bez.js","assets/secret-input-DsjfQmDn.js","assets/eye-CABVeTq0.js","assets/is-masked-secret-DOkL5b_X.js","assets/connectors-api-B27sJ651.js","assets/electron-env-DHOGevH3.js","assets/oauth-provider-connect-BPNIEiMv.js","assets/cloud-C4-yfnnk.js","assets/models-hub-cache-DMBOw544.js","assets/oauth-api-Dza1tHcr.js","assets/connection-usage-guide-DNNFESD9.js","assets/connection-usage-BhdQRWgQ.js","assets/paperclip-f1HujQY1.js","assets/pencil-DmIY3Oa-.js","assets/pin-off-BMRv-Kxr.js","assets/refresh-cw-BRlGaq2w.js","assets/save-DRDABU--.js","assets/search-DA7gz22f.js","assets/settings-2-D-csvaET.js","assets/settings-uiTATseT.js","assets/share-2-CnIB9PsV.js","assets/shield-check-BU58siTV.js","assets/smartphone-DSSsQFqA.js","assets/square-DMK_fB-3.js","assets/preview-runtime-DUJ7XhMP.js","assets/use-async-resource-BHFGZCY2.js","assets/workspace-api-CD_6YyPI.js","assets/files-GdwDamkp.js","assets/index.module-Cd9ENXfk.js","assets/trash-2-DusmjVPV.js","assets/user-round-C9jxPhMR.js","assets/wifi-off-C35sMFUl.js","assets/share-link-dialog-WR7Op1vL.js","assets/copy-text-row-gqdh0Bg1.js","assets/wrench-DFb4r8bH.js","assets/tasks-D8bnpu0N.js","assets/specialists-xbB3xL9e.js","assets/api-Cd5TqEwc.js","assets/session-identity-DRFdxntH.js","assets/new-session-preferences-CxCn2Jxk.js","assets/composer-model-config-control-Bas1wFVW.js","assets/model-selector-8FTrQQ2N.js","assets/open-capability-settings-DQsmJxI7.js","assets/model-sort-_Tz8s_4N.js","assets/cloud-credits-B-nbtkqv.js","assets/space-api-E8VbAaEl.js","assets/home-task-actions-GAO06s1_.js","assets/capabilities-G2ZaAAs2.js","assets/capabilities-B5gHYD8r.js","assets/right-workspace-store-CcRApllu.js","assets/phone-workspace-store-CcA_vo-t.js","assets/workspace-editor-agent-store-BuYdf4CO.js","assets/chat-agents-api-DRKlkcuv.js","assets/middleware-Pd0e8Igk.js","assets/task-copy-CtcqCQ78.js","assets/chunk-D32TOXHM-DQIy-Baq.js","assets/linkify-it-BkqEorO0.js","assets/tool-friendly-title-CJVFJ2Ud.js","assets/use-realtime-voice-D9k997EW.js","assets/voice-CUfqdnlR.js","assets/composer-notifications-CpBgWAE4.js","assets/activity-store-DyHjQrpP.js","assets/voice-call-context-BM2A4bLz.js","assets/app-chrome-BeB4KgOf.js","assets/page-header-store-BXED3zhV.js","assets/new-chat-navigation-spnin196.js","assets/loopi-CNtmi9FU.js","assets/loopi-C09I2mNj.css","assets/extension-provider-CFPicsnW.js","assets/theme-store-XNsFzxSj.js","assets/extension-message-router-QjbtEYyu.js","assets/agent-avatar-display-Dyyk4GdM.js","assets/skill-wire-pattern-BPpeIcCi.js","assets/composer-handoff-params-DBpzHuNo.js","assets/agent-display-names-Bje7vfSn.js","assets/use-directory-picker-C4p7AgWY.js","assets/confirm-dialog-yhRKgG72.js","assets/shares-api-CoRLwDnw.js","assets/dist-DaFr5KMw.js","assets/use-composer-attachments-DWiIdMIi.js","assets/chevron-left-DqFhpbvK.js","assets/use-file-preview-expanded-CA9vFUTT.js","assets/message-square-plus-XP0tGdlV.js","assets/minimize-2-DtOGrlpo.js","assets/constants-D5Z-mUto.js","assets/sliding-tab-list-CmcrqRzN.js","assets/sliding-indicator-hwz0sx3h.js","assets/use-share-link-CqV3o-VZ.js","assets/file-preview-surface-Da1xZiG6.js","assets/command-palette-api-CAKoTF_-.js","assets/skill-list-api-Dsfjdtuu.js","assets/skill-api-utils-C7V4JVXM.js","assets/composer-payload-handoff-uT_hvvap.js","assets/voice-input-shortcut-events-CwKpIInD.js","assets/automation-task-card-BBEA23Zb.js","assets/automation-display-DaVDNZz8.js","assets/message-circle-Badhj-4D.js","assets/date-picker-D3N2BGVY.js","assets/calendar-days-hw_Y-g-s.js","assets/time-picker-otHjbob1.js","assets/dev-view-store-D4EyUkRI.js","assets/extension-iframe-host-DpgIPfJe.js","assets/extension-authoritative-grants-qpYvHriJ.js","assets/runtime-health-zDkHcOZO.js","assets/api-DVQaJzrB.js","assets/terminal-panel-store-BOHv5O2x.js","assets/agents-app-path-ciChvpCS.js","assets/use-media-query-ady-FgjK.js","assets/oauth-authorization-window-o6URRos4.js","assets/page-context-draft-CHAS3BY3.js","assets/management-api-BtTRehT0.js","assets/side-chat-shortcut-BIw-1TTD.js","assets/chat-page-zQeUaawJ.css"])))=>i.map(i=>d[i]);
2
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./preload-helper-Czpn1I53.js";import{_ as a,f as o,t as s}from"./chunk-KS7C4IRE-DIIvxCDx.js";import{a as c,i as l,l as u,n as d}from"./locale-store-Dy0B0XDJ.js";import{t as f}from"./messages-Bj6DCoic.js";import{a as p,n as m,o as h,r as g,s as _,t as v}from"./dist-DlirbHVs.js";import{t as y}from"./activity-YogQEteU.js";import{t as b}from"./arrow-left-D880xG-P.js";import{a as x,c as S,f as C,i as ee,l as w,n as T,o as E,r as D,s as O,t as k,u as A}from"./automation-display-DaVDNZz8.js";import{i as j,n as M,r as N,t as P}from"./automation-run-list-DDDHtKq0.js";import{t as F}from"./check-DUBLcKHA.js";import{t as te}from"./chevron-down-ccbiQQz_.js";import{t as ne}from"./chevron-right-BweFrslA.js";import{n as I,r as L}from"./popover-select-hRG1EzAY.js";import{t as re}from"./circle-alert-BEjgurr2.js";import{t as ie}from"./circle-check-C23XjkUj.js";import{t as R}from"./copy-Dv6d4Dvw.js";import{t as z}from"./ellipsis-0k4rZLoy.js";import{t as ae}from"./eye-CABVeTq0.js";import{t as B}from"./git-branch-Dh9uxTot.js";import{t as V}from"./list-filter-CIPvpfLA.js";import{t as H}from"./loader-circle-CifKLtgG.js";import{t as oe}from"./markdown-view-ByuzuGRb.js";import{t as se}from"./message-circle-Badhj-4D.js";import{t as ce}from"./pause-DuPxgSxk.js";import{t as U}from"./pencil-DmIY3Oa-.js";import{t as le}from"./play-kxZvpBg8.js";import{t as W}from"./plus-Q2yW6OE7.js";import{t as G}from"./refresh-cw-BRlGaq2w.js";import{t as K}from"./search-DA7gz22f.js";import{t as ue}from"./shield-check-BU58siTV.js";import{t as de}from"./sparkles-DHlfQFAF.js";import{t as fe}from"./square-pen-B8FsvqNu.js";import{t as pe}from"./trash-2-DusmjVPV.js";import{t as me}from"./x-B_N4OPjy.js";import{t as he}from"./zap-dximCGjy.js";import{t as q}from"./cn-0WouolD0.js";import{t as J}from"./skeleton-DzdOeGYz.js";import{d as ge}from"./api-Cd5TqEwc.js";import{a as _e}from"./session-api-vEn4BzjV.js";import{k as ve}from"./session-manager-7nbjJYyy.js";import{a as ye,i as be,o as xe}from"./vendor-swr-CdRzEUwF.js";import{t as Se}from"./chat-agents-api-DRKlkcuv.js";import{t as Ce}from"./button-C5tRaJxt.js";import{t as we}from"./page-header-store-BXED3zhV.js";import{t as Y}from"./automation-api-B6YcuEsE.js";import{n as Te}from"./agent-display-names-Bje7vfSn.js";import{t as X}from"./sliding-tab-list-CmcrqRzN.js";import{t as Ee}from"./refresh-button-DX7bULU5.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,l as Me,m as Ne,o as Pe,p as Fe,r as Ie,s as Le,t as Re,u as ze}from"./dist-DaFr5KMw.js";import{n as Be}from"./model-selector-8FTrQQ2N.js";import{a as Ve,c as He,d as Ue,f as We,h as Z,l as Ge,m as Ke,n as qe,o as Je,p as Ye,r as Xe,s as Ze,u as Qe}from"./automation-task-card-BBEA23Zb.js";import{t as $e}from"./time-picker-otHjbob1.js";import{t as et}from"./date-time-picker-BNw099Is.js";import{i as tt,n as nt,r as rt,t as it}from"./automation-result-state-BycWqFXM.js";import{n as at}from"./routine-panel-DzdJGicv.js";var ot=n(),Q=e(t(),1),$=r(),st=(0,Q.lazy)(()=>i(()=>import(`./chat-page-XqG9aYBd.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])));function ct(e){let t=(0,ot.c)(110),{runId:n,automationId:r,projectId:i,language:a,onConfigure:o,onDetails:s,onBack:c}=e,l=a===`zh`,[u,d]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(!1),[h,g]=(0,Q.useState)(null),_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>g(e),t[0]=_):_=t[0];let v=_,y;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>m(!0),t[1]=y):y=t[1];let x=y,{mutate:S}=ye(),C=(0,Q.useRef)(!1),ee=i??``,w;t[2]!==r||t[3]!==n||t[4]!==ee?(w=[`automation-execution`,r,n,ee],t[2]=r,t[3]=n,t[4]=ee,t[5]=w):w=t[5];let T;t[6]!==r||t[7]!==i||t[8]!==n||t[9]!==l?(T=async()=>{let{run:e}=await Y.getRun(n);if(e.automationId!==r)throw Error(l?`执行记录不属于此自动化`:`Execution does not belong to this automation`);let{automation:t}=await Y.get(r);if(i&&t.projectId!==i)throw Error(l?`执行记录不属于此项目`:`Execution does not belong to this project`);return{run:e,automation:t}},t[6]=r,t[7]=i,t[8]=n,t[9]=l,t[10]=T):T=t[10];let E;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(E={refreshInterval:dt,shouldRetryOnError:!1},t[11]=E):E=t[11];let{data:D,error:O,mutate:k}=be(w,T,E),A=D?.run,j=A?.conversationId,N;t[12]===j?N=t[13]:(N=e=>!!(j&&(e.sessions[j]?.streaming||e.sessions[j]?.sending)),t[12]=j,t[13]=N);let P=ve(N),F;t[14]===j?F=t[15]:(F=j?[`automation-execution-session`,j]:null,t[14]=j,t[15]=F);let te;t[16]===j?te=t[17]:(te=()=>_e(j),t[16]=j,t[17]=te);let ne;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(ne={shouldRetryOnError:!1},t[18]=ne):ne=t[18];let{data:I,error:L,mutate:re}=be(F,te,ne),ie=A?.conversationShared||D?.automation.conversationMode===`continuous`||I?.customData?.latestAutomationRunId!==void 0&&I.customData.latestAutomationRunId!==n,R=!!(I&&(!ie||u)),z=!O&&!!(A&&(!j||ie&&!u&&I&&!L&&(A?.summary||A?.error)||I&&!L&&p)),ae,B;if(t[19]!==z||t[20]!==k||t[21]!==S||t[22]!==A?(ae=()=>{!A||!z||M(A)||A.readAtMs!=null||C.current||(C.current=!0,Y.markRunRead(A.id).then(async()=>{await Promise.all([k(),S(ut)])}).catch(lt).finally(()=>{C.current=!1}))},B=[A,z,k,S],t[19]=z,t[20]=k,t[21]=S,t[22]=A,t[23]=ae,t[24]=B):(ae=t[23],B=t[24]),(0,Q.useEffect)(ae,B),O){let e=O instanceof Error?O.message:l?`执行记录加载失败`:`Could not load execution`,n;t[25]===e?n=t[26]:(n=(0,$.jsx)(`p`,{children:e}),t[25]=e,t[26]=n);let r;t[27]===k?r=t[28]:(r=()=>void k(),t[27]=k,t[28]=r);let i=l?`重试`:`Retry`,a;t[29]!==r||t[30]!==i?(a=(0,$.jsx)(Ce,{onClick:r,children:i}),t[29]=r,t[30]=i,t[31]=a):a=t[31];let o=l?`返回自动化`:`Back to automation`,s;t[32]!==c||t[33]!==o?(s=(0,$.jsx)(Ce,{onClick:c,children:o}),t[32]=c,t[33]=o,t[34]=s):s=t[34];let u;return t[35]!==n||t[36]!==a||t[37]!==s?(u=(0,$.jsxs)(`section`,{role:`alert`,className:`space-y-3 p-5`,children:[n,a,s]}),t[35]=n,t[36]=a,t[37]=s,t[38]=u):u=t[38],u}if(!A){let e;return t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(`div`,{className:`space-y-4 p-5`,"aria-busy":`true`,children:[(0,$.jsx)(J,{className:`h-6 w-2/3`}),(0,$.jsx)(J,{className:`h-20`})]}),t[39]=e):e=t[39],e}let V;t[40]===A?V=t[41]:(V=M(A),t[40]=A,t[41]=V);let H=V,se=l?`执行会话`:`Execution conversation`,ce=l?`返回自动化`:`Back to automation`,U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(b,{className:`size-4`}),t[42]=U):U=t[42];let le;t[43]!==c||t[44]!==ce?(le=(0,$.jsx)(Ce,{variant:`ghost`,className:`shrink-0`,onClick:c,"aria-label":ce,children:U}),t[43]=c,t[44]=ce,t[45]=le):le=t[45];let W;t[46]===A.automationName?W=t[47]:(W=(0,$.jsx)(`h2`,{className:`truncate text-sm font-medium text-fg`,children:A.automationName}),t[46]=A.automationName,t[47]=W);let G;t[48]!==le||t[49]!==W?(G=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[le,W]}),t[48]=le,t[49]=W,t[50]=G):G=t[50];let K;t[51]!==A.createdAtMs||t[52]!==l?(K=new Date(A.createdAtMs).toLocaleString(l?`zh-CN`:`en-US`),t[51]=A.createdAtMs,t[52]=l,t[53]=K):K=t[53];let ue;t[54]===a?ue=t[55]:(ue=f(a),t[54]=a,t[55]=ue);let de=ue.automations.status[A.status],fe;t[56]!==K||t[57]!==de?(fe=(0,$.jsxs)(`span`,{children:[K,` · `,de]}),t[56]=K,t[57]=de,t[58]=fe):fe=t[58];let pe;t[59]!==s||t[60]!==A.id?(pe=()=>s(A.id),t[59]=s,t[60]=A.id,t[61]=pe):pe=t[61];let me=l?`运行详情`:`Run details`,he;t[62]!==pe||t[63]!==me?(he=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:pe,children:me}),t[62]=pe,t[63]=me,t[64]=he):he=t[64];let q;t[65]!==o||t[66]!==A?(q=()=>o(A),t[65]=o,t[66]=A,t[67]=q):q=t[67];let ge=l?`调整自动化`:`Adjust automation`,xe;t[68]!==q||t[69]!==ge?(xe=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:q,children:ge}),t[68]=q,t[69]=ge,t[70]=xe):xe=t[70];let Se;t[71]!==fe||t[72]!==he||t[73]!==xe?(Se=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-fg-muted`,children:[fe,he,xe]}),t[71]=fe,t[72]=he,t[73]=xe,t[74]=Se):Se=t[74];let we;t[75]!==D?.automation||t[76]!==ie||t[77]!==l?(we=ie?(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[l?`多次执行可能共用此会话;下方摘要对应所选执行。`:`Executions may share this conversation. The summary belongs to the selected execution.`,D?.automation.conversationMode===`continuous`?l?`追问会进入后续运行上下文。`:` Follow-ups become context for future runs.`:null]}):null,t[75]=D?.automation,t[76]=ie,t[77]=l,t[78]=we):we=t[78];let Te;t[79]!==h||t[80]!==u||t[81]!==l?(Te=u?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:h===!0?l?`已定位到所选执行的会话起点。`:`Located the selected execution in this conversation.`:h===!1?l?`旧记录缺少可用的执行定位信息,当前显示完整会话。`:`No matching turn was found in the available history. Showing the full conversation.`:l?`正在定位所选执行…`:`Locating the selected execution…`}):null,t[79]=h,t[80]=u,t[81]=l,t[82]=Te):Te=t[82];let X;t[83]!==H||t[84]!==l?(X=H?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:l?`执行中,完成后可继续追问。`:`Execution in progress. Follow up after it finishes.`}):null,t[83]=H,t[84]=l,t[85]=X):X=t[85];let Ee;t[86]!==G||t[87]!==Se||t[88]!==we||t[89]!==Te||t[90]!==X?(Ee=(0,$.jsxs)(`header`,{className:`shrink-0 space-y-2 border-b border-edge px-4 py-3`,children:[G,Se,we,Te,X]}),t[86]=G,t[87]=Se,t[88]=we,t[89]=Te,t[90]=X,t[91]=Ee):Ee=t[91];let De;t[92]!==H||t[93]!==j||t[94]!==P||t[95]!==I||t[96]!==a||t[97]!==re||t[98]!==A.error||t[99]!==A.id||t[100]!==A.summary||t[101]!==L||t[102]!==ie||t[103]!==R||t[104]!==l?(De=R?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(st,{embedded:!0,automationExecution:!0,conversationId:j,readOnly:H||P,onHistoryReady:x,initialTurnId:ie?A.id:void 0,onInitialTurnLocated:v},j)}):(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-5`,children:[A.summary?(0,$.jsx)(oe,{content:A.summary}):null,A.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm text-danger`,children:A.error}):null,j?null:(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:H?l?`等待执行会话,开始后会自动更新。`:`Waiting for the execution conversation. This view updates automatically.`:l?`本次执行没有关联会话,可查看运行结果和详情。`:`No conversation is associated with this execution. Results and diagnostics remain available.`}),j&&!I&&!L?(0,$.jsx)(J,{className:`h-24`}):null,L?(0,$.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`p`,{children:L.status===404?l?`执行会话已删除,运行结果仍保留。`:`The execution conversation was deleted. Results are still available.`:l?`执行会话暂时无法读取,运行结果仍保留。`:`The conversation is unavailable. Results are still available.`}),(0,$.jsx)(Ce,{onClick:()=>void re(),children:l?`重试`:`Retry`})]}):null,ie&&I?(0,$.jsx)(Ce,{variant:`secondary`,onClick:()=>d(!0),children:l?`打开共享会话`:`Open shared conversation`}):null,H?null:(0,$.jsx)(tt,{runId:A.id,language:a})]}),t[92]=H,t[93]=j,t[94]=P,t[95]=I,t[96]=a,t[97]=re,t[98]=A.error,t[99]=A.id,t[100]=A.summary,t[101]=L,t[102]=ie,t[103]=R,t[104]=l,t[105]=De):De=t[105];let Oe;return t[106]!==se||t[107]!==Ee||t[108]!==De?(Oe=(0,$.jsxs)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":se,children:[Ee,De]}),t[106]=se,t[107]=Ee,t[108]=De,t[109]=Oe):Oe=t[109],Oe}function lt(){}function ut(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-navigation-runs`].includes(String(e[0]))||e===`automations-global-system-source`}function dt(e){return e&&M(e.run)?3e3:15e3}function ft(e){let t=(0,ot.c)(44),{automation:n,language:r,busy:i,onEdit:a,onAction:o}=e,s=r===`zh`,c=n.management,l=s?`${n.name}的更多操作`:`More actions for ${n.name}`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(z,{className:`size-4`}),t[0]=u):u=t[0];let d;t[1]===l?d=t[2]:(d=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,className:`size-8 p-0`,"aria-label":l,children:u})}),t[1]=l,t[2]=d);let f;t[3]!==n||t[4]!==i||t[5]!==c||t[6]!==o||t[7]!==s?(f=(!c||c.editable.includes(`enabled`))&&!A(n)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:toggle`,()=>n.enabled?Y.pause(n.id):Y.resume(n.id)),children:[n.enabled?(0,$.jsx)(ce,{className:`size-4`}):(0,$.jsx)(le,{className:`size-4`}),n.enabled?s?`暂停`:`Pause`:s?`恢复`:`Resume`]}):null,t[3]=n,t[4]=i,t[5]=c,t[6]=o,t[7]=s,t[8]=f):f=t[8];let p;t[9]!==n.id||t[10]!==i||t[11]!==c||t[12]!==o||t[13]!==s?(p=!c||c.runnable?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:run`,()=>Y.runNow(n.id)),children:[(0,$.jsx)(le,{className:`size-4`}),s?`立即运行`:`Run now`]}):null,t[9]=n.id,t[10]=i,t[11]=c,t[12]=o,t[13]=s,t[14]=p):p=t[14];let m;t[15]!==n||t[16]!==i||t[17]!==c||t[18]!==a||t[19]!==s?(m=!c||c.editable.includes(`trigger`)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>a(n),children:[(0,$.jsx)(U,{className:`size-4`}),s?`编辑`:`Edit`]}):null,t[15]=n,t[16]=i,t[17]=c,t[18]=a,t[19]=s,t[20]=m):m=t[20];let h;t[21]!==n.id||t[22]!==o||t[23]!==s?(h=()=>void o(`automation:${n.id}:copy-link`,()=>navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}#/automations?automation=${encodeURIComponent(n.id)}`),s?`任务链接已复制`:`Task link copied`),t[21]=n.id,t[22]=o,t[23]=s,t[24]=h):h=t[24];let g;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(R,{className:`size-4`}),t[25]=g):g=t[25];let _=s?`复制任务链接`:`Copy task link`,v;t[26]!==h||t[27]!==_?(v=(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,onSelect:h,children:[g,_]}),t[26]=h,t[27]=_,t[28]=v):v=t[28];let y;t[29]!==n.id||t[30]!==i||t[31]!==c||t[32]!==o||t[33]!==s?(y=!c||c.deletable?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 h-px bg-edge-subtle`}),(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50 text-danger`,disabled:i,onSelect:()=>{window.confirm(s?`删除这个定时任务?已保存的对话仍可查看。`:`Delete this scheduled task? Saved conversations will remain available.`)&&o(`automation:${n.id}:delete`,()=>Y.remove(n.id))},children:[(0,$.jsx)(pe,{className:`size-4`}),s?`删除`:`Delete`]})]}):null,t[29]=n.id,t[30]=i,t[31]=c,t[32]=o,t[33]=s,t[34]=y):y=t[34];let b;t[35]!==v||t[36]!==y||t[37]!==f||t[38]!==p||t[39]!==m?(b=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:4,className:`z-70 min-w-44 rounded-xl border border-edge bg-surface-overlay p-1 shadow-popover`,children:[f,p,m,v,y]})}),t[35]=v,t[36]=y,t[37]=f,t[38]=p,t[39]=m,t[40]=b):b=t[40];let x;return t[41]!==b||t[42]!==d?(x=(0,$.jsxs)(Me,{children:[d,b]}),t[41]=b,t[42]=d,t[43]=x):x=t[43],x}function pt({automations:e,runs:t,labels:n,cronLabels:r,language:i,selectedAutomationId:a,selectedRunId:o,selectedRun:s,projectId:c,executionSummaries:l,onSelectRun:d,onOpenDetails:f,busy:p,onEdit:m,onAction:h}){let g=`xopc.automation-navigation:${u(e=>e.baseUrl)}:${u(e=>e.conversationId)??`local`}`,[_,v]=(0,Q.useState)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}catch{return{}}});(0,Q.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);v(e&&typeof e==`object`&&!Array.isArray(e)?e:{})}catch{v({})}},[g]);let y=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{!a||y.current===a||(y.current=a,v(e=>({...e,[a]:!0})))},[a]);let b=e=>v(t=>{let n={...t,[e]:!t[e]};try{localStorage.setItem(g,JSON.stringify(n))}catch{}return n});return e.length===0?(0,$.jsx)(`p`,{className:`p-4 text-sm text-fg-muted`,children:n.empty.filtered}):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto divide-y divide-edge-subtle`,children:e.map(e=>{let u=t.filter(t=>t.automationId===e.id).sort((e,t)=>t.createdAtMs-e.createdAtMs),g=u.find(M);return(0,$.jsxs)(`div`,{className:`group relative`,children:[(0,$.jsx)(`button`,{type:`button`,"aria-expanded":!!_[e.id],"aria-controls":`automation-runs-${e.id}`,"aria-label":i===`zh`?`${_[e.id]?`收起`:`展开`} ${e.name} 的执行记录`:`${_[e.id]?`Collapse`:`Expand`} executions for ${e.name}`,className:`absolute left-1 top-2 z-10 rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>b(e.id),children:_[e.id]?(0,$.jsx)(te,{className:`size-4`}):(0,$.jsx)(ne,{className:`size-4`})}),(0,$.jsxs)(`button`,{type:`button`,className:q(`block w-full p-3 pl-9 pr-10 text-left outline-none hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,a===e.id&&!o&&`bg-surface-hover`),style:{contentVisibility:`auto`,containIntrinsicSize:`auto 76px`},"aria-current":a===e.id&&!o?`true`:void 0,onClick:()=>f(e.id),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:q(`size-2 shrink-0 rounded-full`,g?`bg-blue-500`:nt(e,u)?`bg-red-500`:e.enabled?`bg-emerald-500`:`bg-fg-subtle`)}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:A(e)?i===`zh`?`已完成`:`Completed`:e.enabled?n.enabled:n.paused}),(l?.[e.id]?.unreadCount??0)>0?(0,$.jsx)(`span`,{className:`ml-auto size-2 shrink-0 rounded-full bg-blue-500`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:n.filters.unread})}):null]}),(0,$.jsxs)(`p`,{className:`mt-1 truncate pl-4 text-xs leading-5 text-fg-muted`,children:[e.enabled?(0,$.jsxs)($.Fragment,{children:[D(e,n,i),(0,$.jsx)(`span`,{className:`mx-1.5`,children:`·`})]}):null,ee(e.trigger,n,r,i)]}),nt(e,u)?(0,$.jsx)(`p`,{className:`mt-1 pl-4 text-xs text-red-700 dark:text-red-300`,children:n.dashboard.needsAttention}):null]}),(0,$.jsx)(`div`,{id:`automation-runs-${e.id}`,hidden:!_[e.id],children:(0,$.jsx)(P,{automationId:e.id,projectId:c,language:i,selectedRunId:o,selectedRun:s,enabled:!!_[e.id],onSelectRun:d})}),(0,$.jsx)(`div`,{className:`absolute right-1 top-2 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100`,children:(0,$.jsx)(ft,{automation:e,language:i,busy:p,onEdit:m,onAction:h})})]},e.id)})})}var mt=`xopc.automations.listWidth`,ht=272,gt=200,_t=560;function vt({children:e,language:t,busy:n}){let r=(0,Q.useRef)(null),i=(0,Q.useRef)(null),[a,o]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(()=>{try{let e=Number(window.localStorage.getItem(mt));if(Number.isFinite(e)&&e>=gt&&e<=_t)return e}catch{}return ht});(0,Q.useEffect)(()=>{try{window.localStorage.setItem(mt,String(s))}catch{}},[s]),(0,Q.useEffect)(()=>{if(!a)return;let{cursor:e,userSelect:t}=document.body.style;return document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,()=>{document.body.style.cursor=e,document.body.style.userSelect=t}},[a]);let l=e=>{let t=r.current?.getBoundingClientRect().width??1e3,n=Math.max(gt,Math.min(_t,t*.6,t-292));return Math.round(Math.max(gt,Math.min(n,e)))},u=t===`zh`?`调整任务列表宽度`:`Resize task list`;return(0,$.jsxs)(`section`,{ref:r,"aria-busy":n,className:`grid min-h-0 min-w-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-y-3 md:grid-cols-[minmax(0,min(var(--automation-list-width),60%))_0.75rem_minmax(0,1fr)] md:grid-rows-1 md:gap-y-0`,style:{"--automation-list-width":`${s}px`},children:[e[0],(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":u,"aria-valuemin":gt,"aria-valuemax":_t,"aria-valuenow":s,tabIndex:0,title:t===`zh`?`左右拖动调整宽度,双击恢复默认`:`Drag to resize, double-click to reset`,className:`relative hidden touch-none select-none cursor-col-resize focus-visible:outline-accent md:block`,onPointerDown:e=>{if(e.button!==0)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.previousElementSibling?.getBoundingClientRect().width??s;i.current={pointerId:e.pointerId,startX:e.clientX,startWidth:t},o(!0)},onPointerMove:e=>{let t=i.current;t?.pointerId===e.pointerId&&c(l(t.startWidth+e.clientX-t.startX))},onPointerUp:e=>{i.current?.pointerId===e.pointerId&&(i.current=null,o(!1),e.currentTarget.releasePointerCapture(e.pointerId))},onPointerCancel:()=>{i.current=null,o(!1)},onLostPointerCapture:()=>{i.current=null,o(!1)},onDoubleClick:()=>c(ht),onKeyDown:e=>{[`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),c(l(e.key===`Home`?gt:e.key===`End`?_t:s+(e.key===`ArrowLeft`?-16:16))))}}),e[1]]})}var yt=(0,Q.lazy)(()=>i(()=>import(`./chat-page-XqG9aYBd.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])));function bt(e){let t=(0,ot.c)(51),{automation:n,conversationId:r,runs:i,language:a,onSelectRun:o,onConfigured:s}=e,c=n?.id,l;t[0]!==c||t[1]!==r?(l=c&&!r?[`automation-workspace-chat`,c]:null,t[0]=c,t[1]=r,t[2]=l):l=t[2];let u;t[3]===c?u=t[4]:(u=()=>Y.openConfiguration({automationId:c}),t[3]=c,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1},t[5]=d):d=t[5];let{data:p,error:m,mutate:h}=be(l,u,d),g;t[6]===r?g=t[7]:(g=r?[`automation-configuration`,r]:null,t[6]=r,t[7]=g);let _;t[8]===r?_=t[9]:(_=()=>Y.configuration(r),t[8]=r,t[9]=_);let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={refreshInterval:3e3},t[10]=v):v=t[10];let{data:y}=be(g,_,v),b,x;t[11]!==n||t[12]!==s||t[13]!==y?(b=()=>{!n&&y?.automation&&s?.(y.automation.id)},x=[n,y,s],t[11]=n,t[12]=s,t[13]=y,t[14]=b,t[15]=x):(b=t[14],x=t[15]),(0,Q.useEffect)(b,x);let S=r??p?.conversationId,{mutate:C}=ye(),ee;t[16]===S?ee=t[17]:(ee=e=>!!(S&&(e.sessions[S]?.streaming||e.sessions[S]?.sending)),t[16]=S,t[17]=ee);let w=ve(ee),T=(0,Q.useRef)(!1),E,D;t[18]!==C||t[19]!==w?(E=()=>{T.current&&!w&&C(xt),T.current=w},D=[w,C],t[18]=C,t[19]=w,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,Q.useEffect)(E,D);let O=a===`zh`,k;t[22]===a?k=t[23]:(k=f(a),t[22]=a,t[23]=k);let A=k,j;if(t[24]!==a||t[25]!==A.automations.status||t[26]!==o||t[27]!==i||t[28]!==O){let e;t[30]!==a||t[31]!==A.automations.status||t[32]!==o||t[33]!==O?(e=e=>({id:`automation-run:${e.id}`,timestamp:e.createdAtMs,content:(0,$.jsxs)(`article`,{className:`mx-auto w-full max-w-[var(--max-width-chat-frame)] space-y-3 py-3`,"aria-label":O?`任务运行结果`:`Task run result`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-muted`,children:[(0,$.jsxs)(`span`,{children:[new Date(e.createdAtMs).toLocaleString(O?`zh-CN`:`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),` · `,A.automations.status[e.status]]}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>o(e.id),children:O?`查看详情`:`View details`})]}),e.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-danger`,children:rt(e,a)}):e.summary?(0,$.jsx)(oe,{content:e.summary}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:O?`正在执行,结果会显示在这里。`:`Running. The result will appear here.`}),e.status===`failed`||e.status===`timeout`?(0,$.jsx)(qe,{automationId:e.automationId,runId:e.id,language:a,variant:`secondary`}):null,[`queued`,`running`,`cancelling`].includes(e.status)?null:(0,$.jsx)(tt,{runId:e.id,language:a})]})}),t[30]=a,t[31]=A.automations.status,t[32]=o,t[33]=O,t[34]=e):e=t[34],j=i.map(e),t[24]=a,t[25]=A.automations.status,t[26]=o,t[27]=i,t[28]=O,t[29]=j}else j=t[29];let M=j;if(m){let e=O?`暂时无法打开任务对话。`:`Could not open the task conversation.`,n;t[35]===e?n=t[36]:(n=(0,$.jsx)(`p`,{children:e}),t[35]=e,t[36]=n);let r;t[37]===h?r=t[38]:(r=()=>void h(),t[37]=h,t[38]=r);let i=O?`重试`:`Retry`,a;t[39]!==r||t[40]!==i?(a=(0,$.jsx)(Ce,{variant:`secondary`,onClick:r,children:i}),t[39]=r,t[40]=i,t[41]=a):a=t[41];let o;return t[42]!==n||t[43]!==a?(o=(0,$.jsxs)(`div`,{role:`alert`,className:`p-6 text-sm text-fg-muted`,children:[n,a]}),t[42]=n,t[43]=a,t[44]=o):o=t[44],o}let N=O?`任务对话`:`Task conversation`,P;t[45]!==M||t[46]!==S?(P=S?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(yt,{embedded:!0,conversationId:S,automationWorkspace:!0,automationTimelineEntries:M},S)}):(0,$.jsxs)(`div`,{className:`space-y-4 p-6`,children:[(0,$.jsx)(J,{className:`h-20 w-2/3`}),(0,$.jsx)(J,{className:`h-28`})]}),t[45]=M,t[46]=S,t[47]=P):P=t[47];let F;return t[48]!==N||t[49]!==P?(F=(0,$.jsx)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":N,children:P}),t[48]=N,t[49]=P,t[50]=F):F=t[50],F}function xt(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-configuration`].includes(String(e[0]))}var St=`relative flex min-h-9 cursor-pointer items-center rounded-md py-2 pl-3 pr-8 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,Ct=`z-70 max-h-[min(32rem,calc(100dvh-2rem))] min-w-52 overflow-y-auto rounded-xl border border-edge bg-surface-overlay p-1.5 shadow-popover`;function wt(e){let t=(0,ot.c)(4),{value:n,children:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(je,{className:`absolute right-2.5`,children:(0,$.jsx)(F,{className:`size-3.5`,"aria-hidden":!0})}),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,$.jsxs)(Oe,{value:n,className:St,children:[i,r]}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function Tt(e){let t=(0,ot.c)(131),{language:n,labels:r,filter:i,ownership:a,source:o,projectId:s,projects:c,projectLocked:l,query:u,unreadCount:d,markReadBusy:f,onFilter:p,onOwnership:m,onSource:h,onProject:g,onQuery:_,onClear:v,onMarkAllRead:y}=e,b=n===`zh`,[x,S]=(0,Q.useState)(!1),C=(0,Q.useRef)(null),ee=(0,Q.useRef)(null),w=x||!!u,T=i!==`all`||o!==`all`||a!==`user`||!l&&!!s,E;t[0]===_?E=t[1]:(E=()=>{_(``),S(!1),ee.current?.focus()},t[0]=_,t[1]=E);let D=E,O=b?`定时任务`:`Scheduled tasks`,k;t[2]===O?k=t[3]:(k=(0,$.jsx)(`h2`,{className:`min-w-0 truncate text-sm font-semibold text-fg`,children:O}),t[2]=O,t[3]=k);let A=b?`筛选任务`:`Filter tasks`,M=b?`筛选任务`:`Filter tasks`,N=T&&`text-accent-fg`,P;t[4]===N?P=t[5]:(P=q(`relative rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent data-[state=open]:bg-surface-hover`,N),t[4]=N,t[5]=P);let F;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(V,{className:`size-4`,"aria-hidden":!0}),t[6]=F):F=t[6];let te;t[7]!==T||t[8]!==b?(te=T?(0,$.jsx)(`span`,{className:`absolute right-1.5 top-1.5 size-1 rounded-full bg-accent`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:b?`已应用筛选`:`Filters applied`})}):null,t[7]=T,t[8]=b,t[9]=te):te=t[9];let I;t[10]!==A||t[11]!==M||t[12]!==P||t[13]!==te?(I=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":A,title:M,className:P,children:[F,te]})}),t[10]=A,t[11]=M,t[12]=P,t[13]=te,t[14]=I):I=t[14];let L=b?`状态`:`Status`,re;t[15]===L?re=t[16]:(re=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:L}),t[15]=L,t[16]=re);let ie;t[17]===p?ie=t[18]:(ie=e=>p(e),t[17]=p,t[18]=ie);let R=b?`全部状态`:`All statuses`,z;t[19]===R?z=t[20]:(z=(0,$.jsx)(wt,{value:`all`,children:R}),t[19]=R,t[20]=z);let ae;t[21]===r.filters.active?ae=t[22]:(ae=(0,$.jsx)(wt,{value:`active`,children:r.filters.active}),t[21]=r.filters.active,t[22]=ae);let B;t[23]===r.paused?B=t[24]:(B=(0,$.jsx)(wt,{value:`paused`,children:r.paused}),t[23]=r.paused,t[24]=B);let oe=b?`已完成`:`Completed`,se;t[25]===oe?se=t[26]:(se=(0,$.jsx)(wt,{value:`completed`,children:oe}),t[25]=oe,t[26]=se);let ce;t[27]===r.metrics.running?ce=t[28]:(ce=(0,$.jsx)(wt,{value:`running`,children:r.metrics.running}),t[27]=r.metrics.running,t[28]=ce);let U;t[29]===r.dashboard.needsAttention?U=t[30]:(U=(0,$.jsx)(wt,{value:`attention`,children:r.dashboard.needsAttention}),t[29]=r.dashboard.needsAttention,t[30]=U);let le;t[31]!==i||t[32]!==ie||t[33]!==z||t[34]!==ae||t[35]!==B||t[36]!==se||t[37]!==ce||t[38]!==U?(le=(0,$.jsxs)(Le,{value:i,onValueChange:ie,children:[z,ae,B,se,ce,U]}),t[31]=i,t[32]=ie,t[33]=z,t[34]=ae,t[35]=B,t[36]=se,t[37]=ce,t[38]=U,t[39]=le):le=t[39];let W;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[40]=W):W=t[40];let G=b?`归属`:`Owner`,ue;t[41]===G?ue=t[42]:(ue=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:G}),t[41]=G,t[42]=ue);let de;t[43]===m?de=t[44]:(de=e=>m(e),t[43]=m,t[44]=de);let fe=b?`我的任务`:`My tasks`,pe;t[45]===fe?pe=t[46]:(pe=(0,$.jsx)(wt,{value:`user`,children:fe}),t[45]=fe,t[46]=pe);let he=b?`系统任务`:`System tasks`,J;t[47]===he?J=t[48]:(J=(0,$.jsx)(wt,{value:`system`,children:he}),t[47]=he,t[48]=J);let ge;t[49]!==a||t[50]!==de||t[51]!==pe||t[52]!==J?(ge=(0,$.jsxs)(Le,{value:a,onValueChange:de,children:[pe,J]}),t[49]=a,t[50]=de,t[51]=pe,t[52]=J,t[53]=ge):ge=t[53];let _e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[54]=_e):_e=t[54];let ve;t[55]!==r.filters.allProjects||t[56]!==g||t[57]!==s||t[58]!==l||t[59]!==c||t[60]!==b?(ve=l?null:(0,$.jsxs)(ke,{children:[(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[b?`项目`:`Project`,(0,$.jsx)(`span`,{className:`ml-auto max-w-28 truncate text-xs text-fg-muted`,children:c.find(e=>e.id===s)?.name??r.filters.allProjects}),(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0})]}),(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:s,onValueChange:g,children:[(0,$.jsx)(wt,{value:``,children:r.filters.allProjects}),c.map(Et)]})})})]}),t[55]=r.filters.allProjects,t[56]=g,t[57]=s,t[58]=l,t[59]=c,t[60]=b,t[61]=ve):ve=t[61];let ye=b?`任务类型`:`Task type`,be;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0}),t[62]=be):be=t[62];let xe;t[63]===ye?xe=t[64]:(xe=(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[ye,be]}),t[63]=ye,t[64]=xe);let Se;t[65]===h?Se=t[66]:(Se=e=>h(e),t[65]=h,t[66]=Se);let Ce=b?`全部类型`:`All types`,we;t[67]===Ce?we=t[68]:(we=(0,$.jsx)(wt,{value:`all`,children:Ce}),t[67]=Ce,t[68]=we);let Y;t[69]===r.sources.agent?Y=t[70]:(Y=(0,$.jsx)(wt,{value:`agent`,children:r.sources.agent}),t[69]=r.sources.agent,t[70]=Y);let Te;t[71]===r.sources.task?Te=t[72]:(Te=(0,$.jsx)(wt,{value:`task_command`,children:r.sources.task}),t[71]=r.sources.task,t[72]=Te);let X;t[73]!==o||t[74]!==Se||t[75]!==we||t[76]!==Y||t[77]!==Te?(X=(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:o,onValueChange:Se,children:[we,Y,Te]})})}),t[73]=o,t[74]=Se,t[75]=we,t[76]=Y,t[77]=Te,t[78]=X):X=t[78];let Ee;t[79]!==xe||t[80]!==X?(Ee=(0,$.jsxs)(ke,{children:[xe,X]}),t[79]=xe,t[80]=X,t[81]=Ee):Ee=t[81];let Oe;t[82]!==T||t[83]!==v||t[84]!==u||t[85]!==b?(Oe=T||u?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),(0,$.jsx)(Ie,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg-muted outline-none data-[highlighted]:bg-surface-hover`,onSelect:v,children:b?`重置筛选`:`Reset filters`})]}):null,t[82]=T,t[83]=v,t[84]=u,t[85]=b,t[86]=Oe):Oe=t[86];let je;t[87]!==re||t[88]!==le||t[89]!==ue||t[90]!==ge||t[91]!==ve||t[92]!==Ee||t[93]!==Oe?(je=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:6,className:Ct,children:[re,le,W,ue,ge,_e,ve,Ee,Oe]})}),t[87]=re,t[88]=le,t[89]=ue,t[90]=ge,t[91]=ve,t[92]=Ee,t[93]=Oe,t[94]=je):je=t[94];let Be;t[95]!==I||t[96]!==je?(Be=(0,$.jsxs)(Me,{children:[I,je]}),t[95]=I,t[96]=je,t[97]=Be):Be=t[97];let Ve=b?`搜索任务`:`Search tasks`,He=b?`搜索任务`:`Search tasks`,Ue;t[98]!==D||t[99]!==w?(Ue=()=>{w?D():(S(!0),requestAnimationFrame(()=>C.current?.focus()))},t[98]=D,t[99]=w,t[100]=Ue):Ue=t[100];let We=w&&`bg-surface-hover text-fg`,Z;t[101]===We?Z=t[102]:(Z=q(`rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,We),t[101]=We,t[102]=Z);let Ge;t[103]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,$.jsx)(K,{className:`size-4`,"aria-hidden":!0}),t[103]=Ge):Ge=t[103];let Ke;t[104]!==w||t[105]!==Ve||t[106]!==He||t[107]!==Ue||t[108]!==Z?(Ke=(0,$.jsx)(`button`,{ref:ee,type:`button`,"aria-label":Ve,title:He,"aria-expanded":w,onClick:Ue,className:Z,children:Ge}),t[104]=w,t[105]=Ve,t[106]=He,t[107]=Ue,t[108]=Z,t[109]=Ke):Ke=t[109];let qe;t[110]!==Be||t[111]!==Ke?(qe=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[Be,Ke]}),t[110]=Be,t[111]=Ke,t[112]=qe):qe=t[112];let Je;t[113]!==k||t[114]!==qe?(Je=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-1`,children:[k,qe]}),t[113]=k,t[114]=qe,t[115]=Je):Je=t[115];let Ye;t[116]!==r.filters.markAllRead||t[117]!==f||t[118]!==y||t[119]!==d?(Ye=d>0?(0,$.jsxs)(`button`,{type:`button`,disabled:f,onClick:y,className:`flex min-h-9 w-full items-center gap-2 rounded-md px-2 text-xs text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,"aria-busy":f,children:[f?(0,$.jsx)(H,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(j,{className:`size-4 shrink-0`,"aria-hidden":!0}),r.filters.markAllRead]}):null,t[116]=r.filters.markAllRead,t[117]=f,t[118]=y,t[119]=d,t[120]=Ye):Ye=t[120];let Xe;t[121]!==D||t[122]!==_||t[123]!==u||t[124]!==w||t[125]!==b?(Xe=w?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-2.5 focus-within:border-accent`,children:[(0,$.jsx)(K,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsx)(`input`,{ref:C,value:u,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),D())},"aria-label":b?`搜索任务名称或内容`:`Search task names or content`,placeholder:b?`搜索任务…`:`Search tasks…`,className:`min-h-10 min-w-0 flex-1 bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsx)(`button`,{type:`button`,"aria-label":b?`关闭搜索`:`Close search`,onClick:D,className:`rounded-md p-1 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:(0,$.jsx)(me,{className:`size-3.5`,"aria-hidden":!0})})]}):null,t[121]=D,t[122]=_,t[123]=u,t[124]=w,t[125]=b,t[126]=Xe):Xe=t[126];let Ze;return t[127]!==Je||t[128]!==Ye||t[129]!==Xe?(Ze=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[Je,Ye,Xe]}),t[127]=Je,t[128]=Ye,t[129]=Xe,t[130]=Ze):Ze=t[130],Ze}function Et(e){return(0,$.jsx)(wt,{value:e.id,children:(0,$.jsx)(`span`,{className:`max-w-56 truncate`,children:e.name})},e.id)}var Dt=[[`☀️`,`晨间简报`,`每天开始工作前,整理今天值得关注的任务与进展。`,`Morning briefing`,`Start each day with your tasks and project updates.`,`每天早上帮我整理当天到期、逾期的任务和项目进展,给出今天的重点。`,`Each morning, summarize my due and overdue tasks and project progress, and suggest priorities.`],[`📝`,`每周工作回顾`,`回顾一周的成果和问题,为下周留出清晰的方向。`,`Weekly review`,`Review the week and find a clear direction for the next.`,`每周五帮我回顾本周完成的任务和项目进展,整理未解决的问题,建议下周的重点。`,`Every Friday, review completed tasks and project progress, unresolved issues, and priorities for next week.`],[`🌱`,`项目进展跟进`,`定期看看项目进度,找出需要你关注的事情。`,`Project check-in`,`Keep an eye on project progress and what needs attention.`,`定期帮我检查项目进度,整理延期、阻塞和需要我决策的事项。先和我确认关注哪个项目以及运行时间。`,`Regularly review a project for delays, blockers, and decisions I need to make. Ask which project and when to run.`],[`🔔`,`重要事项提醒`,`把容易忘记的事情交给提醒,安心专注眼前。`,`A timely reminder`,`Make room to focus by setting a reminder for later.`,`我想安排一个重要事项提醒。请先问我需要提醒什么、什么时候提醒,以及是否重复。`,`Help me schedule a reminder. Ask what to remember, when, and whether it should repeat.`],[`📚`,`笔记整理`,`回看新收集的想法,整理出值得继续推进的线索。`,`Notes roundup`,`Revisit recent ideas and surface useful next steps.`,`每周帮我回顾最近新增的笔记,按主题整理,找出值得继续推进的想法。请先确认时间和范围。`,`Each week, group my recent notes by topic and suggest ideas worth pursuing. Confirm the schedule and scope.`],[`🧭`,`明日工作计划`,`下班前梳理未完成的事,安排明天最重要的三件事。`,`Plan tomorrow`,`Wrap up loose ends and choose tomorrow’s top three priorities.`,`每个工作日下班前,帮我梳理未完成的任务,建议明天最重要的三件事。请先确认具体时间。`,`Before the end of each workday, review unfinished tasks and suggest tomorrow’s top three priorities. Confirm the time.`],[`🗓️`,`月度复盘`,`拉远一点看进展,发现反复出现的问题和新的机会。`,`Monthly reflection`,`Step back to spot progress, recurring problems, and opportunities.`,`每月月底帮我回顾项目和任务的进展,总结成果、反复出现的问题和下个月的重点。请确认运行时间。`,`At the end of each month, review project and task progress, achievements, recurring problems, and priorities. Confirm the schedule.`],[`🎯`,`逾期任务检查`,`定期发现被搁置的事项,让重要的事重新向前。`,`Overdue task check`,`Find neglected tasks and get important work moving again.`,`定期帮我检查逾期任务,按紧迫程度整理,并建议下一步。请先确认运行频率和时间。`,`Regularly review overdue tasks, prioritize them by urgency, and suggest next steps. Confirm the frequency and time.`]];function Ot(e=Math.random){let t=[...Dt];for(let n=t.length-1;n>0;n--){let r=Math.min(n,Math.max(0,Math.floor(e()*(n+1))));[t[n],t[r]]=[t[r],t[n]]}return t.slice(0,6)}function kt({language:e,projectId:t,onOpenConversation:n}){let r=o(),[i,a]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(``),l=async e=>{a(!0),c(``);try{let i=await Ke({projectId:t,prompt:e});n?n(i):r(i)}catch(e){c(e instanceof Error?e.message:String(e))}finally{a(!1)}},u=e===`zh`,[d,f]=(0,Q.useState)(Ot),p=(0,$.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl px-2 py-10 sm:px-6 md:py-20`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(C,{className:`mx-auto size-10 text-fg-muted`,strokeWidth:1.3,"aria-hidden":!0}),(0,$.jsx)(`h2`,{className:`mt-4 text-xl font-semibold tracking-tight text-fg`,children:u?`安排任务`:`Schedule a task`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:u?`说说你希望定期完成什么,我们一起安排好。`:`Tell us what you’d like done regularly. We’ll work out the details together.`})]}),(0,$.jsxs)(`div`,{className:`mb-3 mt-10 flex items-center justify-between text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:u?`也可以从这些想法开始`:`Or start with an idea`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>f(Ot()),className:`flex items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(G,{className:`size-3.5`,"aria-hidden":!0}),u?`换一组`:`More ideas`]})]}),(0,$.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:d.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:i,onClick:()=>void l(u?e[5]:e[6]),className:`flex min-h-28 items-center gap-4 rounded-xl border border-dashed border-edge bg-surface-panel px-5 py-4 transition-colors hover:border-edge-strong hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(`span`,{className:`shrink-0 text-2xl`,"aria-hidden":!0,children:e[0]}),(0,$.jsxs)(`span`,{className:`min-w-0`,children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:u?e[1]:e[3]}),(0,$.jsx)(`span`,{className:`mt-1 block text-sm leading-5 text-fg-muted`,children:u?e[2]:e[4]})]})]},e[1]))}),(0,$.jsx)(`div`,{className:`mt-6 text-center`,children:(0,$.jsx)(`button`,{type:`button`,disabled:i,onClick:()=>void l(),className:`rounded-md px-3 py-2 text-sm text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent`,children:u?`说说你想安排的其他任务`:`Describe another task`})}),s?(0,$.jsx)(`p`,{role:`alert`,className:`mt-3 text-center text-sm text-danger`,children:s}):null]});return(0,$.jsx)(`section`,{"aria-label":u?`安排任务`:`Schedule a task`,children:p})}function At(e){if(!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function jt(e){return typeof e.message==`string`&&e.message.trim()?e.message:typeof e.error==`string`&&e.error.trim()?e.error:e.error&&typeof e.error==`object`&&typeof e.error.message==`string`?e.error.message:`AI suggestion failed`}function Mt(e,t={}){let n=At(e.split(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-page-oy4EGdO1.js","assets/rolldown-runtime-aKtaBQYM.js","assets/marked.esm-8VXEA2AD.js","assets/vendor-react-BOUWij0V.js","assets/preload-helper-Czpn1I53.js","assets/chunk-KS7C4IRE-DIIvxCDx.js","assets/locale-store-Dy0B0XDJ.js","assets/messages-Bj6DCoic.js","assets/dist-DlirbHVs.js","assets/es2015-CFqg57eW.js","assets/dist-CDSvxjOh.js","assets/createLucideIcon-DPHK1VkS.js","assets/app-window-DXFNqt_0.js","assets/archive-Dz0hferG.js","assets/arrow-left-D880xG-P.js","assets/video-generation-Cec49Jwg.js","assets/arrow-up-D5ZtR1QT.js","assets/product-automation-feedback-BDFpFrSs.js","assets/activity-YogQEteU.js","assets/bot-DjLkhyZL.js","assets/circle-check-C23XjkUj.js","assets/circle-pause-CN9jYH2s.js","assets/clock-3-DnrAnuyZ.js","assets/external-link-DjqjBmc3.js","assets/loader-circle-CifKLtgG.js","assets/message-square-fVE7Ghj1.js","assets/pause-DuPxgSxk.js","assets/play-kxZvpBg8.js","assets/rotate-ccw-JM1TBLpp.js","assets/rotate-cw-LIg3Am9S.js","assets/sparkles-DHlfQFAF.js","assets/triangle-alert-2JXFNNKU.js","assets/volume-2-BSJhAY97.js","assets/zap-dximCGjy.js","assets/cn-0WouolD0.js","assets/bundle-mjs-rHxsej31.js","assets/session-manager-7nbjJYyy.js","assets/schemas-CCWMleym.js","assets/turn-outcome-Bf3N3Bmj.js","assets/product-delivery-4gEqUIsK.js","assets/session-api-vEn4BzjV.js","assets/gateway-startup-retry-Dm0dK8BT.js","assets/local-session-drafts-KkAOxXk5.js","assets/tool-activity-BtJkgjFf.js","assets/attachment-utils-core-BPYdUI6y.js","assets/agent-run-error-parser-DsXmcKt-.js","assets/gateway-realtime-D2B_nv2b.js","assets/gateway-realtime-store-DrVbjYfI.js","assets/playback-coordinator-CWHIf0wr.js","assets/registry-api-CaBz9f4g.js","assets/agents-admin-api-BW3Mzst8.js","assets/gateway-config-swr-DxelrRtx.js","assets/vendor-swr-CdRzEUwF.js","assets/button-C5tRaJxt.js","assets/automation-api-B6YcuEsE.js","assets/earth-C9Z4bTTG.js","assets/check-DUBLcKHA.js","assets/chevron-down-ccbiQQz_.js","assets/chevron-right-BweFrslA.js","assets/working-directory-picker-modal-DX6bRmkQ.js","assets/file-archive-DanfQJNe.js","assets/interaction-BdhHBbYa.js","assets/form-field-width-DJw_jULe.js","assets/settings-form-draft-Dy10ldo8.js","assets/popover-select-hRG1EzAY.js","assets/skeleton-DzdOeGYz.js","assets/dist-BSVQC3i_.js","assets/dist-DSRLZhL9.js","assets/floating-ui.dom-CiMnRY5O.js","assets/floating-ui.react-dom-Gx6CM22l.js","assets/settings-shell-dialog-layer-BU3UuiJr.js","assets/circle-alert-BEjgurr2.js","assets/send-1f1Ntw6E.js","assets/circle-x-DFsCKeya.js","assets/circle-BoO4YvTx.js","assets/file-tree-utils-DJs1faGv.js","assets/copy-Dv6d4Dvw.js","assets/database-CjjeZfRG.js","assets/download-Dk-ZjtO6.js","assets/ellipsis-0k4rZLoy.js","assets/file-code-corner-byQA1VfD.js","assets/file-image-CDUPkZvG.js","assets/file-text-D12HbeVy.js","assets/file-CStvVK2S.js","assets/folder-kanban-CpLlFI1o.js","assets/folder-open-CyzJ19I9.js","assets/folder-CN-pC3XL.js","assets/git-branch-Dh9uxTot.js","assets/globe-DSSGFWFn.js","assets/history-DXH_9jsE.js","assets/notes-api-M1FuRZbW.js","assets/markdown-view-ByuzuGRb.js","assets/plus-Q2yW6OE7.js","assets/x-B_N4OPjy.js","assets/app-link-Ji4uewEG.js","assets/copy-to-clipboard-HOJ79TWv.js","assets/xml-_d7dTN2Q.js","assets/mermaid-render-oOellPHt.js","assets/markdown-view-Czi3_WHu.css","assets/chat-chart-block-DxTCx__V.js","assets/key-round-DWbpyU2U.js","assets/laptop-CI3hBVrl.js","assets/link-2-D_ZKYUW7.js","assets/list-checks-BbsExAoq.js","assets/list-todo-CTVRto8O.js","assets/messages-square-BckAJrEW.js","assets/mic-CuUb7zc-.js","assets/monitor-Af5eAvF7.js","assets/use-generated-media-DX4_ne7C.js","assets/install-connector-dialog-st2O1bez.js","assets/secret-input-DsjfQmDn.js","assets/eye-CABVeTq0.js","assets/is-masked-secret-DOkL5b_X.js","assets/connectors-api-B27sJ651.js","assets/electron-env-DHOGevH3.js","assets/oauth-provider-connect-BPNIEiMv.js","assets/cloud-C4-yfnnk.js","assets/models-hub-cache-DMBOw544.js","assets/oauth-api-Dza1tHcr.js","assets/connection-usage-guide-DNNFESD9.js","assets/connection-usage-BhdQRWgQ.js","assets/paperclip-f1HujQY1.js","assets/pencil-DmIY3Oa-.js","assets/pin-off-BMRv-Kxr.js","assets/refresh-cw-BRlGaq2w.js","assets/save-DRDABU--.js","assets/search-DA7gz22f.js","assets/settings-2-D-csvaET.js","assets/settings-uiTATseT.js","assets/share-2-CnIB9PsV.js","assets/shield-check-BU58siTV.js","assets/smartphone-DSSsQFqA.js","assets/square-DMK_fB-3.js","assets/preview-runtime-DUJ7XhMP.js","assets/use-async-resource-BHFGZCY2.js","assets/workspace-api-CD_6YyPI.js","assets/files-GdwDamkp.js","assets/index.module-Cd9ENXfk.js","assets/trash-2-DusmjVPV.js","assets/user-round-C9jxPhMR.js","assets/wifi-off-C35sMFUl.js","assets/share-link-dialog-WR7Op1vL.js","assets/copy-text-row-gqdh0Bg1.js","assets/wrench-DFb4r8bH.js","assets/tasks-D8bnpu0N.js","assets/specialists-xbB3xL9e.js","assets/api-Cd5TqEwc.js","assets/session-identity-DRFdxntH.js","assets/new-session-preferences-CxCn2Jxk.js","assets/composer-model-config-control-Bas1wFVW.js","assets/model-selector-8FTrQQ2N.js","assets/open-capability-settings-DQsmJxI7.js","assets/model-sort-_Tz8s_4N.js","assets/cloud-credits-B-nbtkqv.js","assets/space-api-E8VbAaEl.js","assets/home-task-actions-Ck0AhcYe.js","assets/capabilities-G2ZaAAs2.js","assets/capabilities-B5gHYD8r.js","assets/right-workspace-store-DsVm6C0V.js","assets/phone-workspace-store-CcA_vo-t.js","assets/workspace-editor-agent-store-BuYdf4CO.js","assets/chat-agents-api-DRKlkcuv.js","assets/middleware-Pd0e8Igk.js","assets/task-copy-CtcqCQ78.js","assets/chunk-D32TOXHM-DQIy-Baq.js","assets/linkify-it-BkqEorO0.js","assets/tool-friendly-title-CJVFJ2Ud.js","assets/use-realtime-voice-D9k997EW.js","assets/voice-CUfqdnlR.js","assets/composer-notifications-CpBgWAE4.js","assets/activity-store-DyHjQrpP.js","assets/voice-call-context-BM2A4bLz.js","assets/app-chrome-BeB4KgOf.js","assets/page-header-store-BXED3zhV.js","assets/new-chat-navigation-spnin196.js","assets/loopi-CNtmi9FU.js","assets/loopi-C09I2mNj.css","assets/extension-provider-CFPicsnW.js","assets/theme-store-XNsFzxSj.js","assets/extension-message-router-QjbtEYyu.js","assets/agent-avatar-display-Dyyk4GdM.js","assets/skill-wire-pattern-BPpeIcCi.js","assets/composer-handoff-params-DBpzHuNo.js","assets/agent-display-names-Bje7vfSn.js","assets/use-directory-picker-C4p7AgWY.js","assets/confirm-dialog-yhRKgG72.js","assets/shares-api-CoRLwDnw.js","assets/dist-DaFr5KMw.js","assets/use-composer-attachments-CQwCTKAp.js","assets/chevron-left-DqFhpbvK.js","assets/use-file-preview-expanded-CA9vFUTT.js","assets/message-square-plus-XP0tGdlV.js","assets/minimize-2-DtOGrlpo.js","assets/constants-D5Z-mUto.js","assets/sliding-tab-list-CmcrqRzN.js","assets/sliding-indicator-hwz0sx3h.js","assets/use-share-link-CqV3o-VZ.js","assets/file-preview-surface-Da1xZiG6.js","assets/command-palette-api-CAKoTF_-.js","assets/skill-list-api-Dsfjdtuu.js","assets/skill-api-utils-C7V4JVXM.js","assets/composer-payload-handoff-uT_hvvap.js","assets/voice-input-shortcut-events-CwKpIInD.js","assets/automation-task-card-BBEA23Zb.js","assets/automation-display-DaVDNZz8.js","assets/message-circle-Badhj-4D.js","assets/date-picker-D3N2BGVY.js","assets/calendar-days-hw_Y-g-s.js","assets/time-picker-otHjbob1.js","assets/dev-view-store-D4EyUkRI.js","assets/extension-iframe-host-DpgIPfJe.js","assets/extension-authoritative-grants-qpYvHriJ.js","assets/runtime-health-zDkHcOZO.js","assets/api-DVQaJzrB.js","assets/terminal-panel-store-BOHv5O2x.js","assets/agents-app-path-ciChvpCS.js","assets/use-media-query-ady-FgjK.js","assets/oauth-authorization-window-o6URRos4.js","assets/page-context-draft-CHAS3BY3.js","assets/management-api-BtTRehT0.js","assets/side-chat-shortcut-BIw-1TTD.js","assets/chat-page-zQeUaawJ.css"])))=>i.map(i=>d[i]);
2
+ import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./preload-helper-Czpn1I53.js";import{_ as a,f as o,t as s}from"./chunk-KS7C4IRE-DIIvxCDx.js";import{a as c,i as l,l as u,n as d}from"./locale-store-Dy0B0XDJ.js";import{t as f}from"./messages-Bj6DCoic.js";import{a as p,n as m,o as h,r as g,s as _,t as v}from"./dist-DlirbHVs.js";import{t as y}from"./activity-YogQEteU.js";import{t as b}from"./arrow-left-D880xG-P.js";import{a as x,c as S,f as C,i as ee,l as w,n as T,o as E,r as D,s as O,t as k,u as A}from"./automation-display-DaVDNZz8.js";import{i as j,n as M,r as N,t as P}from"./automation-run-list-DDDHtKq0.js";import{t as F}from"./check-DUBLcKHA.js";import{t as te}from"./chevron-down-ccbiQQz_.js";import{t as ne}from"./chevron-right-BweFrslA.js";import{n as I,r as L}from"./popover-select-hRG1EzAY.js";import{t as re}from"./circle-alert-BEjgurr2.js";import{t as ie}from"./circle-check-C23XjkUj.js";import{t as R}from"./copy-Dv6d4Dvw.js";import{t as z}from"./ellipsis-0k4rZLoy.js";import{t as ae}from"./eye-CABVeTq0.js";import{t as B}from"./git-branch-Dh9uxTot.js";import{t as V}from"./list-filter-CIPvpfLA.js";import{t as H}from"./loader-circle-CifKLtgG.js";import{t as oe}from"./markdown-view-ByuzuGRb.js";import{t as se}from"./message-circle-Badhj-4D.js";import{t as ce}from"./pause-DuPxgSxk.js";import{t as U}from"./pencil-DmIY3Oa-.js";import{t as le}from"./play-kxZvpBg8.js";import{t as W}from"./plus-Q2yW6OE7.js";import{t as G}from"./refresh-cw-BRlGaq2w.js";import{t as K}from"./search-DA7gz22f.js";import{t as ue}from"./shield-check-BU58siTV.js";import{t as de}from"./sparkles-DHlfQFAF.js";import{t as fe}from"./square-pen-B8FsvqNu.js";import{t as pe}from"./trash-2-DusmjVPV.js";import{t as me}from"./x-B_N4OPjy.js";import{t as he}from"./zap-dximCGjy.js";import{t as q}from"./cn-0WouolD0.js";import{t as J}from"./skeleton-DzdOeGYz.js";import{d as ge}from"./api-Cd5TqEwc.js";import{a as _e}from"./session-api-vEn4BzjV.js";import{k as ve}from"./session-manager-7nbjJYyy.js";import{a as ye,i as be,o as xe}from"./vendor-swr-CdRzEUwF.js";import{t as Se}from"./chat-agents-api-DRKlkcuv.js";import{t as Ce}from"./button-C5tRaJxt.js";import{t as we}from"./page-header-store-BXED3zhV.js";import{t as Y}from"./automation-api-B6YcuEsE.js";import{n as Te}from"./agent-display-names-Bje7vfSn.js";import{t as X}from"./sliding-tab-list-CmcrqRzN.js";import{t as Ee}from"./refresh-button-DX7bULU5.js";import{a as De,c as Oe,d as ke,f as Ae,i as je,l as Me,m as Ne,o as Pe,p as Fe,r as Ie,s as Le,t as Re,u as ze}from"./dist-DaFr5KMw.js";import{n as Be}from"./model-selector-8FTrQQ2N.js";import{a as Ve,c as He,d as Ue,f as We,h as Z,l as Ge,m as Ke,n as qe,o as Je,p as Ye,r as Xe,s as Ze,u as Qe}from"./automation-task-card-BBEA23Zb.js";import{t as $e}from"./time-picker-otHjbob1.js";import{t as et}from"./date-time-picker-BNw099Is.js";import{i as tt,n as nt,r as rt,t as it}from"./automation-result-state-BycWqFXM.js";import{n as at}from"./routine-panel-pVuJtctD.js";var ot=n(),Q=e(t(),1),$=r(),st=(0,Q.lazy)(()=>i(()=>import(`./chat-page-oy4EGdO1.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])));function ct(e){let t=(0,ot.c)(110),{runId:n,automationId:r,projectId:i,language:a,onConfigure:o,onDetails:s,onBack:c}=e,l=a===`zh`,[u,d]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(!1),[h,g]=(0,Q.useState)(null),_;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>g(e),t[0]=_):_=t[0];let v=_,y;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>m(!0),t[1]=y):y=t[1];let x=y,{mutate:S}=ye(),C=(0,Q.useRef)(!1),ee=i??``,w;t[2]!==r||t[3]!==n||t[4]!==ee?(w=[`automation-execution`,r,n,ee],t[2]=r,t[3]=n,t[4]=ee,t[5]=w):w=t[5];let T;t[6]!==r||t[7]!==i||t[8]!==n||t[9]!==l?(T=async()=>{let{run:e}=await Y.getRun(n);if(e.automationId!==r)throw Error(l?`执行记录不属于此自动化`:`Execution does not belong to this automation`);let{automation:t}=await Y.get(r);if(i&&t.projectId!==i)throw Error(l?`执行记录不属于此项目`:`Execution does not belong to this project`);return{run:e,automation:t}},t[6]=r,t[7]=i,t[8]=n,t[9]=l,t[10]=T):T=t[10];let E;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(E={refreshInterval:dt,shouldRetryOnError:!1},t[11]=E):E=t[11];let{data:D,error:O,mutate:k}=be(w,T,E),A=D?.run,j=A?.conversationId,N;t[12]===j?N=t[13]:(N=e=>!!(j&&(e.sessions[j]?.streaming||e.sessions[j]?.sending)),t[12]=j,t[13]=N);let P=ve(N),F;t[14]===j?F=t[15]:(F=j?[`automation-execution-session`,j]:null,t[14]=j,t[15]=F);let te;t[16]===j?te=t[17]:(te=()=>_e(j),t[16]=j,t[17]=te);let ne;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(ne={shouldRetryOnError:!1},t[18]=ne):ne=t[18];let{data:I,error:L,mutate:re}=be(F,te,ne),ie=A?.conversationShared||D?.automation.conversationMode===`continuous`||I?.customData?.latestAutomationRunId!==void 0&&I.customData.latestAutomationRunId!==n,R=!!(I&&(!ie||u)),z=!O&&!!(A&&(!j||ie&&!u&&I&&!L&&(A?.summary||A?.error)||I&&!L&&p)),ae,B;if(t[19]!==z||t[20]!==k||t[21]!==S||t[22]!==A?(ae=()=>{!A||!z||M(A)||A.readAtMs!=null||C.current||(C.current=!0,Y.markRunRead(A.id).then(async()=>{await Promise.all([k(),S(ut)])}).catch(lt).finally(()=>{C.current=!1}))},B=[A,z,k,S],t[19]=z,t[20]=k,t[21]=S,t[22]=A,t[23]=ae,t[24]=B):(ae=t[23],B=t[24]),(0,Q.useEffect)(ae,B),O){let e=O instanceof Error?O.message:l?`执行记录加载失败`:`Could not load execution`,n;t[25]===e?n=t[26]:(n=(0,$.jsx)(`p`,{children:e}),t[25]=e,t[26]=n);let r;t[27]===k?r=t[28]:(r=()=>void k(),t[27]=k,t[28]=r);let i=l?`重试`:`Retry`,a;t[29]!==r||t[30]!==i?(a=(0,$.jsx)(Ce,{onClick:r,children:i}),t[29]=r,t[30]=i,t[31]=a):a=t[31];let o=l?`返回自动化`:`Back to automation`,s;t[32]!==c||t[33]!==o?(s=(0,$.jsx)(Ce,{onClick:c,children:o}),t[32]=c,t[33]=o,t[34]=s):s=t[34];let u;return t[35]!==n||t[36]!==a||t[37]!==s?(u=(0,$.jsxs)(`section`,{role:`alert`,className:`space-y-3 p-5`,children:[n,a,s]}),t[35]=n,t[36]=a,t[37]=s,t[38]=u):u=t[38],u}if(!A){let e;return t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsxs)(`div`,{className:`space-y-4 p-5`,"aria-busy":`true`,children:[(0,$.jsx)(J,{className:`h-6 w-2/3`}),(0,$.jsx)(J,{className:`h-20`})]}),t[39]=e):e=t[39],e}let V;t[40]===A?V=t[41]:(V=M(A),t[40]=A,t[41]=V);let H=V,se=l?`执行会话`:`Execution conversation`,ce=l?`返回自动化`:`Back to automation`,U;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,$.jsx)(b,{className:`size-4`}),t[42]=U):U=t[42];let le;t[43]!==c||t[44]!==ce?(le=(0,$.jsx)(Ce,{variant:`ghost`,className:`shrink-0`,onClick:c,"aria-label":ce,children:U}),t[43]=c,t[44]=ce,t[45]=le):le=t[45];let W;t[46]===A.automationName?W=t[47]:(W=(0,$.jsx)(`h2`,{className:`truncate text-sm font-medium text-fg`,children:A.automationName}),t[46]=A.automationName,t[47]=W);let G;t[48]!==le||t[49]!==W?(G=(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[le,W]}),t[48]=le,t[49]=W,t[50]=G):G=t[50];let K;t[51]!==A.createdAtMs||t[52]!==l?(K=new Date(A.createdAtMs).toLocaleString(l?`zh-CN`:`en-US`),t[51]=A.createdAtMs,t[52]=l,t[53]=K):K=t[53];let ue;t[54]===a?ue=t[55]:(ue=f(a),t[54]=a,t[55]=ue);let de=ue.automations.status[A.status],fe;t[56]!==K||t[57]!==de?(fe=(0,$.jsxs)(`span`,{children:[K,` · `,de]}),t[56]=K,t[57]=de,t[58]=fe):fe=t[58];let pe;t[59]!==s||t[60]!==A.id?(pe=()=>s(A.id),t[59]=s,t[60]=A.id,t[61]=pe):pe=t[61];let me=l?`运行详情`:`Run details`,he;t[62]!==pe||t[63]!==me?(he=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:pe,children:me}),t[62]=pe,t[63]=me,t[64]=he):he=t[64];let q;t[65]!==o||t[66]!==A?(q=()=>o(A),t[65]=o,t[66]=A,t[67]=q):q=t[67];let ge=l?`调整自动化`:`Adjust automation`,xe;t[68]!==q||t[69]!==ge?(xe=(0,$.jsx)(`button`,{type:`button`,className:`rounded px-2 py-1.5 text-accent-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:q,children:ge}),t[68]=q,t[69]=ge,t[70]=xe):xe=t[70];let Se;t[71]!==fe||t[72]!==he||t[73]!==xe?(Se=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-fg-muted`,children:[fe,he,xe]}),t[71]=fe,t[72]=he,t[73]=xe,t[74]=Se):Se=t[74];let we;t[75]!==D?.automation||t[76]!==ie||t[77]!==l?(we=ie?(0,$.jsxs)(`p`,{className:`text-xs text-fg-muted`,children:[l?`多次执行可能共用此会话;下方摘要对应所选执行。`:`Executions may share this conversation. The summary belongs to the selected execution.`,D?.automation.conversationMode===`continuous`?l?`追问会进入后续运行上下文。`:` Follow-ups become context for future runs.`:null]}):null,t[75]=D?.automation,t[76]=ie,t[77]=l,t[78]=we):we=t[78];let Te;t[79]!==h||t[80]!==u||t[81]!==l?(Te=u?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:h===!0?l?`已定位到所选执行的会话起点。`:`Located the selected execution in this conversation.`:h===!1?l?`旧记录缺少可用的执行定位信息,当前显示完整会话。`:`No matching turn was found in the available history. Showing the full conversation.`:l?`正在定位所选执行…`:`Locating the selected execution…`}):null,t[79]=h,t[80]=u,t[81]=l,t[82]=Te):Te=t[82];let X;t[83]!==H||t[84]!==l?(X=H?(0,$.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:l?`执行中,完成后可继续追问。`:`Execution in progress. Follow up after it finishes.`}):null,t[83]=H,t[84]=l,t[85]=X):X=t[85];let Ee;t[86]!==G||t[87]!==Se||t[88]!==we||t[89]!==Te||t[90]!==X?(Ee=(0,$.jsxs)(`header`,{className:`shrink-0 space-y-2 border-b border-edge px-4 py-3`,children:[G,Se,we,Te,X]}),t[86]=G,t[87]=Se,t[88]=we,t[89]=Te,t[90]=X,t[91]=Ee):Ee=t[91];let De;t[92]!==H||t[93]!==j||t[94]!==P||t[95]!==I||t[96]!==a||t[97]!==re||t[98]!==A.error||t[99]!==A.id||t[100]!==A.summary||t[101]!==L||t[102]!==ie||t[103]!==R||t[104]!==l?(De=R?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(st,{embedded:!0,automationExecution:!0,conversationId:j,readOnly:H||P,onHistoryReady:x,initialTurnId:ie?A.id:void 0,onInitialTurnLocated:v},j)}):(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-4 overflow-y-auto p-5`,children:[A.summary?(0,$.jsx)(oe,{content:A.summary}):null,A.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm text-danger`,children:A.error}):null,j?null:(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:H?l?`等待执行会话,开始后会自动更新。`:`Waiting for the execution conversation. This view updates automatically.`:l?`本次执行没有关联会话,可查看运行结果和详情。`:`No conversation is associated with this execution. Results and diagnostics remain available.`}),j&&!I&&!L?(0,$.jsx)(J,{className:`h-24`}):null,L?(0,$.jsxs)(`div`,{role:`alert`,className:`space-y-2 text-sm text-fg-muted`,children:[(0,$.jsx)(`p`,{children:L.status===404?l?`执行会话已删除,运行结果仍保留。`:`The execution conversation was deleted. Results are still available.`:l?`执行会话暂时无法读取,运行结果仍保留。`:`The conversation is unavailable. Results are still available.`}),(0,$.jsx)(Ce,{onClick:()=>void re(),children:l?`重试`:`Retry`})]}):null,ie&&I?(0,$.jsx)(Ce,{variant:`secondary`,onClick:()=>d(!0),children:l?`打开共享会话`:`Open shared conversation`}):null,H?null:(0,$.jsx)(tt,{runId:A.id,language:a})]}),t[92]=H,t[93]=j,t[94]=P,t[95]=I,t[96]=a,t[97]=re,t[98]=A.error,t[99]=A.id,t[100]=A.summary,t[101]=L,t[102]=ie,t[103]=R,t[104]=l,t[105]=De):De=t[105];let Oe;return t[106]!==se||t[107]!==Ee||t[108]!==De?(Oe=(0,$.jsxs)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":se,children:[Ee,De]}),t[106]=se,t[107]=Ee,t[108]=De,t[109]=Oe):Oe=t[109],Oe}function lt(){}function ut(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-navigation-runs`].includes(String(e[0]))||e===`automations-global-system-source`}function dt(e){return e&&M(e.run)?3e3:15e3}function ft(e){let t=(0,ot.c)(44),{automation:n,language:r,busy:i,onEdit:a,onAction:o}=e,s=r===`zh`,c=n.management,l=s?`${n.name}的更多操作`:`More actions for ${n.name}`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(z,{className:`size-4`}),t[0]=u):u=t[0];let d;t[1]===l?d=t[2]:(d=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,className:`size-8 p-0`,"aria-label":l,children:u})}),t[1]=l,t[2]=d);let f;t[3]!==n||t[4]!==i||t[5]!==c||t[6]!==o||t[7]!==s?(f=(!c||c.editable.includes(`enabled`))&&!A(n)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:toggle`,()=>n.enabled?Y.pause(n.id):Y.resume(n.id)),children:[n.enabled?(0,$.jsx)(ce,{className:`size-4`}):(0,$.jsx)(le,{className:`size-4`}),n.enabled?s?`暂停`:`Pause`:s?`恢复`:`Resume`]}):null,t[3]=n,t[4]=i,t[5]=c,t[6]=o,t[7]=s,t[8]=f):f=t[8];let p;t[9]!==n.id||t[10]!==i||t[11]!==c||t[12]!==o||t[13]!==s?(p=!c||c.runnable?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>void o(`automation:${n.id}:run`,()=>Y.runNow(n.id)),children:[(0,$.jsx)(le,{className:`size-4`}),s?`立即运行`:`Run now`]}):null,t[9]=n.id,t[10]=i,t[11]=c,t[12]=o,t[13]=s,t[14]=p):p=t[14];let m;t[15]!==n||t[16]!==i||t[17]!==c||t[18]!==a||t[19]!==s?(m=!c||c.editable.includes(`trigger`)?(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,disabled:i,onSelect:()=>a(n),children:[(0,$.jsx)(U,{className:`size-4`}),s?`编辑`:`Edit`]}):null,t[15]=n,t[16]=i,t[17]=c,t[18]=a,t[19]=s,t[20]=m):m=t[20];let h;t[21]!==n.id||t[22]!==o||t[23]!==s?(h=()=>void o(`automation:${n.id}:copy-link`,()=>navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}#/automations?automation=${encodeURIComponent(n.id)}`),s?`任务链接已复制`:`Task link copied`),t[21]=n.id,t[22]=o,t[23]=s,t[24]=h):h=t[24];let g;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(R,{className:`size-4`}),t[25]=g):g=t[25];let _=s?`复制任务链接`:`Copy task link`,v;t[26]!==h||t[27]!==_?(v=(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50`,onSelect:h,children:[g,_]}),t[26]=h,t[27]=_,t[28]=v):v=t[28];let y;t[29]!==n.id||t[30]!==i||t[31]!==c||t[32]!==o||t[33]!==s?(y=!c||c.deletable?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 h-px bg-edge-subtle`}),(0,$.jsxs)(Ie,{className:`flex cursor-pointer items-center gap-2 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover data-[disabled]:opacity-50 text-danger`,disabled:i,onSelect:()=>{window.confirm(s?`删除这个定时任务?已保存的对话仍可查看。`:`Delete this scheduled task? Saved conversations will remain available.`)&&o(`automation:${n.id}:delete`,()=>Y.remove(n.id))},children:[(0,$.jsx)(pe,{className:`size-4`}),s?`删除`:`Delete`]})]}):null,t[29]=n.id,t[30]=i,t[31]=c,t[32]=o,t[33]=s,t[34]=y):y=t[34];let b;t[35]!==v||t[36]!==y||t[37]!==f||t[38]!==p||t[39]!==m?(b=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:4,className:`z-70 min-w-44 rounded-xl border border-edge bg-surface-overlay p-1 shadow-popover`,children:[f,p,m,v,y]})}),t[35]=v,t[36]=y,t[37]=f,t[38]=p,t[39]=m,t[40]=b):b=t[40];let x;return t[41]!==b||t[42]!==d?(x=(0,$.jsxs)(Me,{children:[d,b]}),t[41]=b,t[42]=d,t[43]=x):x=t[43],x}function pt({automations:e,runs:t,labels:n,cronLabels:r,language:i,selectedAutomationId:a,selectedRunId:o,selectedRun:s,projectId:c,executionSummaries:l,onSelectRun:d,onOpenDetails:f,busy:p,onEdit:m,onAction:h}){let g=`xopc.automation-navigation:${u(e=>e.baseUrl)}:${u(e=>e.conversationId)??`local`}`,[_,v]=(0,Q.useState)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}catch{return{}}});(0,Q.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(g)??`{}`);v(e&&typeof e==`object`&&!Array.isArray(e)?e:{})}catch{v({})}},[g]);let y=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{!a||y.current===a||(y.current=a,v(e=>({...e,[a]:!0})))},[a]);let b=e=>v(t=>{let n={...t,[e]:!t[e]};try{localStorage.setItem(g,JSON.stringify(n))}catch{}return n});return e.length===0?(0,$.jsx)(`p`,{className:`p-4 text-sm text-fg-muted`,children:n.empty.filtered}):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto divide-y divide-edge-subtle`,children:e.map(e=>{let u=t.filter(t=>t.automationId===e.id).sort((e,t)=>t.createdAtMs-e.createdAtMs),g=u.find(M);return(0,$.jsxs)(`div`,{className:`group relative`,children:[(0,$.jsx)(`button`,{type:`button`,"aria-expanded":!!_[e.id],"aria-controls":`automation-runs-${e.id}`,"aria-label":i===`zh`?`${_[e.id]?`收起`:`展开`} ${e.name} 的执行记录`:`${_[e.id]?`Collapse`:`Expand`} executions for ${e.name}`,className:`absolute left-1 top-2 z-10 rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>b(e.id),children:_[e.id]?(0,$.jsx)(te,{className:`size-4`}):(0,$.jsx)(ne,{className:`size-4`})}),(0,$.jsxs)(`button`,{type:`button`,className:q(`block w-full p-3 pl-9 pr-10 text-left outline-none hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,a===e.id&&!o&&`bg-surface-hover`),style:{contentVisibility:`auto`,containIntrinsicSize:`auto 76px`},"aria-current":a===e.id&&!o?`true`:void 0,onClick:()=>f(e.id),children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:q(`size-2 shrink-0 rounded-full`,g?`bg-blue-500`:nt(e,u)?`bg-red-500`:e.enabled?`bg-emerald-500`:`bg-fg-subtle`)}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm font-medium text-fg`,children:e.name}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-fg-muted`,children:A(e)?i===`zh`?`已完成`:`Completed`:e.enabled?n.enabled:n.paused}),(l?.[e.id]?.unreadCount??0)>0?(0,$.jsx)(`span`,{className:`ml-auto size-2 shrink-0 rounded-full bg-blue-500`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:n.filters.unread})}):null]}),(0,$.jsxs)(`p`,{className:`mt-1 truncate pl-4 text-xs leading-5 text-fg-muted`,children:[e.enabled?(0,$.jsxs)($.Fragment,{children:[D(e,n,i),(0,$.jsx)(`span`,{className:`mx-1.5`,children:`·`})]}):null,ee(e.trigger,n,r,i)]}),nt(e,u)?(0,$.jsx)(`p`,{className:`mt-1 pl-4 text-xs text-red-700 dark:text-red-300`,children:n.dashboard.needsAttention}):null]}),(0,$.jsx)(`div`,{id:`automation-runs-${e.id}`,hidden:!_[e.id],children:(0,$.jsx)(P,{automationId:e.id,projectId:c,language:i,selectedRunId:o,selectedRun:s,enabled:!!_[e.id],onSelectRun:d})}),(0,$.jsx)(`div`,{className:`absolute right-1 top-2 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100`,children:(0,$.jsx)(ft,{automation:e,language:i,busy:p,onEdit:m,onAction:h})})]},e.id)})})}var mt=`xopc.automations.listWidth`,ht=272,gt=200,_t=560;function vt({children:e,language:t,busy:n}){let r=(0,Q.useRef)(null),i=(0,Q.useRef)(null),[a,o]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(()=>{try{let e=Number(window.localStorage.getItem(mt));if(Number.isFinite(e)&&e>=gt&&e<=_t)return e}catch{}return ht});(0,Q.useEffect)(()=>{try{window.localStorage.setItem(mt,String(s))}catch{}},[s]),(0,Q.useEffect)(()=>{if(!a)return;let{cursor:e,userSelect:t}=document.body.style;return document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`,()=>{document.body.style.cursor=e,document.body.style.userSelect=t}},[a]);let l=e=>{let t=r.current?.getBoundingClientRect().width??1e3,n=Math.max(gt,Math.min(_t,t*.6,t-292));return Math.round(Math.max(gt,Math.min(n,e)))},u=t===`zh`?`调整任务列表宽度`:`Resize task list`;return(0,$.jsxs)(`section`,{ref:r,"aria-busy":n,className:`grid min-h-0 min-w-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-y-3 md:grid-cols-[minmax(0,min(var(--automation-list-width),60%))_0.75rem_minmax(0,1fr)] md:grid-rows-1 md:gap-y-0`,style:{"--automation-list-width":`${s}px`},children:[e[0],(0,$.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":u,"aria-valuemin":gt,"aria-valuemax":_t,"aria-valuenow":s,tabIndex:0,title:t===`zh`?`左右拖动调整宽度,双击恢复默认`:`Drag to resize, double-click to reset`,className:`relative hidden touch-none select-none cursor-col-resize focus-visible:outline-accent md:block`,onPointerDown:e=>{if(e.button!==0)return;e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId);let t=e.currentTarget.previousElementSibling?.getBoundingClientRect().width??s;i.current={pointerId:e.pointerId,startX:e.clientX,startWidth:t},o(!0)},onPointerMove:e=>{let t=i.current;t?.pointerId===e.pointerId&&c(l(t.startWidth+e.clientX-t.startX))},onPointerUp:e=>{i.current?.pointerId===e.pointerId&&(i.current=null,o(!1),e.currentTarget.releasePointerCapture(e.pointerId))},onPointerCancel:()=>{i.current=null,o(!1)},onLostPointerCapture:()=>{i.current=null,o(!1)},onDoubleClick:()=>c(ht),onKeyDown:e=>{[`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),c(l(e.key===`Home`?gt:e.key===`End`?_t:s+(e.key===`ArrowLeft`?-16:16))))}}),e[1]]})}var yt=(0,Q.lazy)(()=>i(()=>import(`./chat-page-oy4EGdO1.js`).then(e=>e.n).then(e=>({default:e.ChatPage})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221])));function bt(e){let t=(0,ot.c)(51),{automation:n,conversationId:r,runs:i,language:a,onSelectRun:o,onConfigured:s}=e,c=n?.id,l;t[0]!==c||t[1]!==r?(l=c&&!r?[`automation-workspace-chat`,c]:null,t[0]=c,t[1]=r,t[2]=l):l=t[2];let u;t[3]===c?u=t[4]:(u=()=>Y.openConfiguration({automationId:c}),t[3]=c,t[4]=u);let d;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(d={revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1},t[5]=d):d=t[5];let{data:p,error:m,mutate:h}=be(l,u,d),g;t[6]===r?g=t[7]:(g=r?[`automation-configuration`,r]:null,t[6]=r,t[7]=g);let _;t[8]===r?_=t[9]:(_=()=>Y.configuration(r),t[8]=r,t[9]=_);let v;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(v={refreshInterval:3e3},t[10]=v):v=t[10];let{data:y}=be(g,_,v),b,x;t[11]!==n||t[12]!==s||t[13]!==y?(b=()=>{!n&&y?.automation&&s?.(y.automation.id)},x=[n,y,s],t[11]=n,t[12]=s,t[13]=y,t[14]=b,t[15]=x):(b=t[14],x=t[15]),(0,Q.useEffect)(b,x);let S=r??p?.conversationId,{mutate:C}=ye(),ee;t[16]===S?ee=t[17]:(ee=e=>!!(S&&(e.sessions[S]?.streaming||e.sessions[S]?.sending)),t[16]=S,t[17]=ee);let w=ve(ee),T=(0,Q.useRef)(!1),E,D;t[18]!==C||t[19]!==w?(E=()=>{T.current&&!w&&C(xt),T.current=w},D=[w,C],t[18]=C,t[19]=w,t[20]=E,t[21]=D):(E=t[20],D=t[21]),(0,Q.useEffect)(E,D);let O=a===`zh`,k;t[22]===a?k=t[23]:(k=f(a),t[22]=a,t[23]=k);let A=k,j;if(t[24]!==a||t[25]!==A.automations.status||t[26]!==o||t[27]!==i||t[28]!==O){let e;t[30]!==a||t[31]!==A.automations.status||t[32]!==o||t[33]!==O?(e=e=>({id:`automation-run:${e.id}`,timestamp:e.createdAtMs,content:(0,$.jsxs)(`article`,{className:`mx-auto w-full max-w-[var(--max-width-chat-frame)] space-y-3 py-3`,"aria-label":O?`任务运行结果`:`Task run result`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 text-xs text-fg-muted`,children:[(0,$.jsxs)(`span`,{children:[new Date(e.createdAtMs).toLocaleString(O?`zh-CN`:`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}),` · `,A.automations.status[e.status]]}),(0,$.jsx)(`button`,{type:`button`,className:`rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>o(e.id),children:O?`查看详情`:`View details`})]}),e.error?(0,$.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-6 text-danger`,children:rt(e,a)}):e.summary?(0,$.jsx)(oe,{content:e.summary}):(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:O?`正在执行,结果会显示在这里。`:`Running. The result will appear here.`}),e.status===`failed`||e.status===`timeout`?(0,$.jsx)(qe,{automationId:e.automationId,runId:e.id,language:a,variant:`secondary`}):null,[`queued`,`running`,`cancelling`].includes(e.status)?null:(0,$.jsx)(tt,{runId:e.id,language:a})]})}),t[30]=a,t[31]=A.automations.status,t[32]=o,t[33]=O,t[34]=e):e=t[34],j=i.map(e),t[24]=a,t[25]=A.automations.status,t[26]=o,t[27]=i,t[28]=O,t[29]=j}else j=t[29];let M=j;if(m){let e=O?`暂时无法打开任务对话。`:`Could not open the task conversation.`,n;t[35]===e?n=t[36]:(n=(0,$.jsx)(`p`,{children:e}),t[35]=e,t[36]=n);let r;t[37]===h?r=t[38]:(r=()=>void h(),t[37]=h,t[38]=r);let i=O?`重试`:`Retry`,a;t[39]!==r||t[40]!==i?(a=(0,$.jsx)(Ce,{variant:`secondary`,onClick:r,children:i}),t[39]=r,t[40]=i,t[41]=a):a=t[41];let o;return t[42]!==n||t[43]!==a?(o=(0,$.jsxs)(`div`,{role:`alert`,className:`p-6 text-sm text-fg-muted`,children:[n,a]}),t[42]=n,t[43]=a,t[44]=o):o=t[44],o}let N=O?`任务对话`:`Task conversation`,P;t[45]!==M||t[46]!==S?(P=S?(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(J,{className:`m-5 h-40`}),children:(0,$.jsx)(yt,{embedded:!0,conversationId:S,automationWorkspace:!0,automationTimelineEntries:M},S)}):(0,$.jsxs)(`div`,{className:`space-y-4 p-6`,children:[(0,$.jsx)(J,{className:`h-20 w-2/3`}),(0,$.jsx)(J,{className:`h-28`})]}),t[45]=M,t[46]=S,t[47]=P):P=t[47];let F;return t[48]!==N||t[49]!==P?(F=(0,$.jsx)(`section`,{className:`flex h-full min-h-0 min-w-0 flex-col overflow-hidden`,"aria-label":N,children:P}),t[48]=N,t[49]=P,t[50]=F):F=t[50],F}function xt(e){return Array.isArray(e)&&[`automations`,`automation-runs`,`automation-history`,`automation-configuration`].includes(String(e[0]))}var St=`relative flex min-h-9 cursor-pointer items-center rounded-md py-2 pl-3 pr-8 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,Ct=`z-70 max-h-[min(32rem,calc(100dvh-2rem))] min-w-52 overflow-y-auto rounded-xl border border-edge bg-surface-overlay p-1.5 shadow-popover`;function wt(e){let t=(0,ot.c)(4),{value:n,children:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(je,{className:`absolute right-2.5`,children:(0,$.jsx)(F,{className:`size-3.5`,"aria-hidden":!0})}),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,$.jsxs)(Oe,{value:n,className:St,children:[i,r]}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function Tt(e){let t=(0,ot.c)(131),{language:n,labels:r,filter:i,ownership:a,source:o,projectId:s,projects:c,projectLocked:l,query:u,unreadCount:d,markReadBusy:f,onFilter:p,onOwnership:m,onSource:h,onProject:g,onQuery:_,onClear:v,onMarkAllRead:y}=e,b=n===`zh`,[x,S]=(0,Q.useState)(!1),C=(0,Q.useRef)(null),ee=(0,Q.useRef)(null),w=x||!!u,T=i!==`all`||o!==`all`||a!==`user`||!l&&!!s,E;t[0]===_?E=t[1]:(E=()=>{_(``),S(!1),ee.current?.focus()},t[0]=_,t[1]=E);let D=E,O=b?`定时任务`:`Scheduled tasks`,k;t[2]===O?k=t[3]:(k=(0,$.jsx)(`h2`,{className:`min-w-0 truncate text-sm font-semibold text-fg`,children:O}),t[2]=O,t[3]=k);let A=b?`筛选任务`:`Filter tasks`,M=b?`筛选任务`:`Filter tasks`,N=T&&`text-accent-fg`,P;t[4]===N?P=t[5]:(P=q(`relative rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent data-[state=open]:bg-surface-hover`,N),t[4]=N,t[5]=P);let F;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(V,{className:`size-4`,"aria-hidden":!0}),t[6]=F):F=t[6];let te;t[7]!==T||t[8]!==b?(te=T?(0,$.jsx)(`span`,{className:`absolute right-1.5 top-1.5 size-1 rounded-full bg-accent`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:b?`已应用筛选`:`Filters applied`})}):null,t[7]=T,t[8]=b,t[9]=te):te=t[9];let I;t[10]!==A||t[11]!==M||t[12]!==P||t[13]!==te?(I=(0,$.jsx)(Ne,{asChild:!0,children:(0,$.jsxs)(`button`,{type:`button`,"aria-label":A,title:M,className:P,children:[F,te]})}),t[10]=A,t[11]=M,t[12]=P,t[13]=te,t[14]=I):I=t[14];let L=b?`状态`:`Status`,re;t[15]===L?re=t[16]:(re=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:L}),t[15]=L,t[16]=re);let ie;t[17]===p?ie=t[18]:(ie=e=>p(e),t[17]=p,t[18]=ie);let R=b?`全部状态`:`All statuses`,z;t[19]===R?z=t[20]:(z=(0,$.jsx)(wt,{value:`all`,children:R}),t[19]=R,t[20]=z);let ae;t[21]===r.filters.active?ae=t[22]:(ae=(0,$.jsx)(wt,{value:`active`,children:r.filters.active}),t[21]=r.filters.active,t[22]=ae);let B;t[23]===r.paused?B=t[24]:(B=(0,$.jsx)(wt,{value:`paused`,children:r.paused}),t[23]=r.paused,t[24]=B);let oe=b?`已完成`:`Completed`,se;t[25]===oe?se=t[26]:(se=(0,$.jsx)(wt,{value:`completed`,children:oe}),t[25]=oe,t[26]=se);let ce;t[27]===r.metrics.running?ce=t[28]:(ce=(0,$.jsx)(wt,{value:`running`,children:r.metrics.running}),t[27]=r.metrics.running,t[28]=ce);let U;t[29]===r.dashboard.needsAttention?U=t[30]:(U=(0,$.jsx)(wt,{value:`attention`,children:r.dashboard.needsAttention}),t[29]=r.dashboard.needsAttention,t[30]=U);let le;t[31]!==i||t[32]!==ie||t[33]!==z||t[34]!==ae||t[35]!==B||t[36]!==se||t[37]!==ce||t[38]!==U?(le=(0,$.jsxs)(Le,{value:i,onValueChange:ie,children:[z,ae,B,se,ce,U]}),t[31]=i,t[32]=ie,t[33]=z,t[34]=ae,t[35]=B,t[36]=se,t[37]=ce,t[38]=U,t[39]=le):le=t[39];let W;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[40]=W):W=t[40];let G=b?`归属`:`Owner`,ue;t[41]===G?ue=t[42]:(ue=(0,$.jsx)(De,{className:`px-3 py-1.5 text-xs text-fg-subtle`,children:G}),t[41]=G,t[42]=ue);let de;t[43]===m?de=t[44]:(de=e=>m(e),t[43]=m,t[44]=de);let fe=b?`我的任务`:`My tasks`,pe;t[45]===fe?pe=t[46]:(pe=(0,$.jsx)(wt,{value:`user`,children:fe}),t[45]=fe,t[46]=pe);let he=b?`系统任务`:`System tasks`,J;t[47]===he?J=t[48]:(J=(0,$.jsx)(wt,{value:`system`,children:he}),t[47]=he,t[48]=J);let ge;t[49]!==a||t[50]!==de||t[51]!==pe||t[52]!==J?(ge=(0,$.jsxs)(Le,{value:a,onValueChange:de,children:[pe,J]}),t[49]=a,t[50]=de,t[51]=pe,t[52]=J,t[53]=ge):ge=t[53];let _e;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),t[54]=_e):_e=t[54];let ve;t[55]!==r.filters.allProjects||t[56]!==g||t[57]!==s||t[58]!==l||t[59]!==c||t[60]!==b?(ve=l?null:(0,$.jsxs)(ke,{children:[(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[b?`项目`:`Project`,(0,$.jsx)(`span`,{className:`ml-auto max-w-28 truncate text-xs text-fg-muted`,children:c.find(e=>e.id===s)?.name??r.filters.allProjects}),(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0})]}),(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:s,onValueChange:g,children:[(0,$.jsx)(wt,{value:``,children:r.filters.allProjects}),c.map(Et)]})})})]}),t[55]=r.filters.allProjects,t[56]=g,t[57]=s,t[58]=l,t[59]=c,t[60]=b,t[61]=ve):ve=t[61];let ye=b?`任务类型`:`Task type`,be;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(be=(0,$.jsx)(ne,{className:`size-3.5 text-fg-subtle`,"aria-hidden":!0}),t[62]=be):be=t[62];let xe;t[63]===ye?xe=t[64]:(xe=(0,$.jsxs)(Fe,{className:`flex min-h-9 cursor-pointer items-center justify-between gap-4 rounded-md px-3 py-2 text-sm text-fg outline-none data-[highlighted]:bg-surface-hover`,children:[ye,be]}),t[63]=ye,t[64]=xe);let Se;t[65]===h?Se=t[66]:(Se=e=>h(e),t[65]=h,t[66]=Se);let Ce=b?`全部类型`:`All types`,we;t[67]===Ce?we=t[68]:(we=(0,$.jsx)(wt,{value:`all`,children:Ce}),t[67]=Ce,t[68]=we);let Y;t[69]===r.sources.agent?Y=t[70]:(Y=(0,$.jsx)(wt,{value:`agent`,children:r.sources.agent}),t[69]=r.sources.agent,t[70]=Y);let Te;t[71]===r.sources.task?Te=t[72]:(Te=(0,$.jsx)(wt,{value:`task_command`,children:r.sources.task}),t[71]=r.sources.task,t[72]=Te);let X;t[73]!==o||t[74]!==Se||t[75]!==we||t[76]!==Y||t[77]!==Te?(X=(0,$.jsx)(Pe,{children:(0,$.jsx)(Ae,{sideOffset:4,className:Ct,children:(0,$.jsxs)(Le,{value:o,onValueChange:Se,children:[we,Y,Te]})})}),t[73]=o,t[74]=Se,t[75]=we,t[76]=Y,t[77]=Te,t[78]=X):X=t[78];let Ee;t[79]!==xe||t[80]!==X?(Ee=(0,$.jsxs)(ke,{children:[xe,X]}),t[79]=xe,t[80]=X,t[81]=Ee):Ee=t[81];let Oe;t[82]!==T||t[83]!==v||t[84]!==u||t[85]!==b?(Oe=T||u?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(ze,{className:`my-1 border-t border-edge`}),(0,$.jsx)(Ie,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg-muted outline-none data-[highlighted]:bg-surface-hover`,onSelect:v,children:b?`重置筛选`:`Reset filters`})]}):null,t[82]=T,t[83]=v,t[84]=u,t[85]=b,t[86]=Oe):Oe=t[86];let je;t[87]!==re||t[88]!==le||t[89]!==ue||t[90]!==ge||t[91]!==ve||t[92]!==Ee||t[93]!==Oe?(je=(0,$.jsx)(Pe,{children:(0,$.jsxs)(Re,{align:`end`,sideOffset:6,className:Ct,children:[re,le,W,ue,ge,_e,ve,Ee,Oe]})}),t[87]=re,t[88]=le,t[89]=ue,t[90]=ge,t[91]=ve,t[92]=Ee,t[93]=Oe,t[94]=je):je=t[94];let Be;t[95]!==I||t[96]!==je?(Be=(0,$.jsxs)(Me,{children:[I,je]}),t[95]=I,t[96]=je,t[97]=Be):Be=t[97];let Ve=b?`搜索任务`:`Search tasks`,He=b?`搜索任务`:`Search tasks`,Ue;t[98]!==D||t[99]!==w?(Ue=()=>{w?D():(S(!0),requestAnimationFrame(()=>C.current?.focus()))},t[98]=D,t[99]=w,t[100]=Ue):Ue=t[100];let We=w&&`bg-surface-hover text-fg`,Z;t[101]===We?Z=t[102]:(Z=q(`rounded-md p-2 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,We),t[101]=We,t[102]=Z);let Ge;t[103]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,$.jsx)(K,{className:`size-4`,"aria-hidden":!0}),t[103]=Ge):Ge=t[103];let Ke;t[104]!==w||t[105]!==Ve||t[106]!==He||t[107]!==Ue||t[108]!==Z?(Ke=(0,$.jsx)(`button`,{ref:ee,type:`button`,"aria-label":Ve,title:He,"aria-expanded":w,onClick:Ue,className:Z,children:Ge}),t[104]=w,t[105]=Ve,t[106]=He,t[107]=Ue,t[108]=Z,t[109]=Ke):Ke=t[109];let qe;t[110]!==Be||t[111]!==Ke?(qe=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[Be,Ke]}),t[110]=Be,t[111]=Ke,t[112]=qe):qe=t[112];let Je;t[113]!==k||t[114]!==qe?(Je=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-1`,children:[k,qe]}),t[113]=k,t[114]=qe,t[115]=Je):Je=t[115];let Ye;t[116]!==r.filters.markAllRead||t[117]!==f||t[118]!==y||t[119]!==d?(Ye=d>0?(0,$.jsxs)(`button`,{type:`button`,disabled:f,onClick:y,className:`flex min-h-9 w-full items-center gap-2 rounded-md px-2 text-xs text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50`,"aria-busy":f,children:[f?(0,$.jsx)(H,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}):(0,$.jsx)(j,{className:`size-4 shrink-0`,"aria-hidden":!0}),r.filters.markAllRead]}):null,t[116]=r.filters.markAllRead,t[117]=f,t[118]=y,t[119]=d,t[120]=Ye):Ye=t[120];let Xe;t[121]!==D||t[122]!==_||t[123]!==u||t[124]!==w||t[125]!==b?(Xe=w?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-edge bg-surface-panel px-2.5 focus-within:border-accent`,children:[(0,$.jsx)(K,{className:`size-3.5 shrink-0 text-fg-subtle`,"aria-hidden":!0}),(0,$.jsx)(`input`,{ref:C,value:u,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),D())},"aria-label":b?`搜索任务名称或内容`:`Search task names or content`,placeholder:b?`搜索任务…`:`Search tasks…`,className:`min-h-10 min-w-0 flex-1 bg-transparent text-sm text-fg outline-none placeholder:text-fg-subtle`}),(0,$.jsx)(`button`,{type:`button`,"aria-label":b?`关闭搜索`:`Close search`,onClick:D,className:`rounded-md p-1 text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:(0,$.jsx)(me,{className:`size-3.5`,"aria-hidden":!0})})]}):null,t[121]=D,t[122]=_,t[123]=u,t[124]=w,t[125]=b,t[126]=Xe):Xe=t[126];let Ze;return t[127]!==Je||t[128]!==Ye||t[129]!==Xe?(Ze=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[Je,Ye,Xe]}),t[127]=Je,t[128]=Ye,t[129]=Xe,t[130]=Ze):Ze=t[130],Ze}function Et(e){return(0,$.jsx)(wt,{value:e.id,children:(0,$.jsx)(`span`,{className:`max-w-56 truncate`,children:e.name})},e.id)}var Dt=[[`☀️`,`晨间简报`,`每天开始工作前,整理今天值得关注的任务与进展。`,`Morning briefing`,`Start each day with your tasks and project updates.`,`每天早上帮我整理当天到期、逾期的任务和项目进展,给出今天的重点。`,`Each morning, summarize my due and overdue tasks and project progress, and suggest priorities.`],[`📝`,`每周工作回顾`,`回顾一周的成果和问题,为下周留出清晰的方向。`,`Weekly review`,`Review the week and find a clear direction for the next.`,`每周五帮我回顾本周完成的任务和项目进展,整理未解决的问题,建议下周的重点。`,`Every Friday, review completed tasks and project progress, unresolved issues, and priorities for next week.`],[`🌱`,`项目进展跟进`,`定期看看项目进度,找出需要你关注的事情。`,`Project check-in`,`Keep an eye on project progress and what needs attention.`,`定期帮我检查项目进度,整理延期、阻塞和需要我决策的事项。先和我确认关注哪个项目以及运行时间。`,`Regularly review a project for delays, blockers, and decisions I need to make. Ask which project and when to run.`],[`🔔`,`重要事项提醒`,`把容易忘记的事情交给提醒,安心专注眼前。`,`A timely reminder`,`Make room to focus by setting a reminder for later.`,`我想安排一个重要事项提醒。请先问我需要提醒什么、什么时候提醒,以及是否重复。`,`Help me schedule a reminder. Ask what to remember, when, and whether it should repeat.`],[`📚`,`笔记整理`,`回看新收集的想法,整理出值得继续推进的线索。`,`Notes roundup`,`Revisit recent ideas and surface useful next steps.`,`每周帮我回顾最近新增的笔记,按主题整理,找出值得继续推进的想法。请先确认时间和范围。`,`Each week, group my recent notes by topic and suggest ideas worth pursuing. Confirm the schedule and scope.`],[`🧭`,`明日工作计划`,`下班前梳理未完成的事,安排明天最重要的三件事。`,`Plan tomorrow`,`Wrap up loose ends and choose tomorrow’s top three priorities.`,`每个工作日下班前,帮我梳理未完成的任务,建议明天最重要的三件事。请先确认具体时间。`,`Before the end of each workday, review unfinished tasks and suggest tomorrow’s top three priorities. Confirm the time.`],[`🗓️`,`月度复盘`,`拉远一点看进展,发现反复出现的问题和新的机会。`,`Monthly reflection`,`Step back to spot progress, recurring problems, and opportunities.`,`每月月底帮我回顾项目和任务的进展,总结成果、反复出现的问题和下个月的重点。请确认运行时间。`,`At the end of each month, review project and task progress, achievements, recurring problems, and priorities. Confirm the schedule.`],[`🎯`,`逾期任务检查`,`定期发现被搁置的事项,让重要的事重新向前。`,`Overdue task check`,`Find neglected tasks and get important work moving again.`,`定期帮我检查逾期任务,按紧迫程度整理,并建议下一步。请先确认运行频率和时间。`,`Regularly review overdue tasks, prioritize them by urgency, and suggest next steps. Confirm the frequency and time.`]];function Ot(e=Math.random){let t=[...Dt];for(let n=t.length-1;n>0;n--){let r=Math.min(n,Math.max(0,Math.floor(e()*(n+1))));[t[n],t[r]]=[t[r],t[n]]}return t.slice(0,6)}function kt({language:e,projectId:t,onOpenConversation:n}){let r=o(),[i,a]=(0,Q.useState)(!1),[s,c]=(0,Q.useState)(``),l=async e=>{a(!0),c(``);try{let i=await Ke({projectId:t,prompt:e});n?n(i):r(i)}catch(e){c(e instanceof Error?e.message:String(e))}finally{a(!1)}},u=e===`zh`,[d,f]=(0,Q.useState)(Ot),p=(0,$.jsxs)(`div`,{className:`mx-auto w-full max-w-3xl px-2 py-10 sm:px-6 md:py-20`,children:[(0,$.jsxs)(`div`,{className:`text-center`,children:[(0,$.jsx)(C,{className:`mx-auto size-10 text-fg-muted`,strokeWidth:1.3,"aria-hidden":!0}),(0,$.jsx)(`h2`,{className:`mt-4 text-xl font-semibold tracking-tight text-fg`,children:u?`安排任务`:`Schedule a task`}),(0,$.jsx)(`p`,{className:`mt-2 text-sm leading-6 text-fg-muted`,children:u?`说说你希望定期完成什么,我们一起安排好。`:`Tell us what you’d like done regularly. We’ll work out the details together.`})]}),(0,$.jsxs)(`div`,{className:`mb-3 mt-10 flex items-center justify-between text-xs text-fg-muted`,children:[(0,$.jsx)(`span`,{children:u?`也可以从这些想法开始`:`Or start with an idea`}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>f(Ot()),className:`flex items-center gap-1.5 rounded-md px-2 py-1.5 hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(G,{className:`size-3.5`,"aria-hidden":!0}),u?`换一组`:`More ideas`]})]}),(0,$.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:d.map(e=>(0,$.jsxs)(`button`,{type:`button`,disabled:i,onClick:()=>void l(u?e[5]:e[6]),className:`flex min-h-28 items-center gap-4 rounded-xl border border-dashed border-edge bg-surface-panel px-5 py-4 transition-colors hover:border-edge-strong hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(`span`,{className:`shrink-0 text-2xl`,"aria-hidden":!0,children:e[0]}),(0,$.jsxs)(`span`,{className:`min-w-0`,children:[(0,$.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:u?e[1]:e[3]}),(0,$.jsx)(`span`,{className:`mt-1 block text-sm leading-5 text-fg-muted`,children:u?e[2]:e[4]})]})]},e[1]))}),(0,$.jsx)(`div`,{className:`mt-6 text-center`,children:(0,$.jsx)(`button`,{type:`button`,disabled:i,onClick:()=>void l(),className:`rounded-md px-3 py-2 text-sm text-fg-muted hover:bg-surface-hover hover:text-fg focus-visible:ring-2 focus-visible:ring-accent`,children:u?`说说你想安排的其他任务`:`Describe another task`})}),s?(0,$.jsx)(`p`,{role:`alert`,className:`mt-3 text-center text-sm text-danger`,children:s}):null]});return(0,$.jsx)(`section`,{"aria-label":u?`安排任务`:`Schedule a task`,children:p})}function At(e){if(!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function jt(e){return typeof e.message==`string`&&e.message.trim()?e.message:typeof e.error==`string`&&e.error.trim()?e.error:e.error&&typeof e.error==`object`&&typeof e.error.message==`string`?e.error.message:`AI suggestion failed`}function Mt(e,t={}){let n=At(e.split(`
3
3
  `).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
4
4
  `));if(!n)return null;if(n.type===`text_delta`&&typeof n.delta==`string`)return t.onDelta?.(n.delta),null;if(n.type===`thinking_delta`&&typeof n.delta==`string`)return t.onThinkingDelta?.(n.delta),null;if(n.type===`done`&&typeof n.text==`string`)return n.text;if(n.type===`error`)throw Error(jt(n));return null}async function Nt(e,t={}){let n=await c(l(`/api/ai/text-assist`),{method:`POST`,headers:{Accept:`text/event-stream`},body:JSON.stringify(e)});if(!n.ok){let e=await n.json().catch(()=>({})),t=typeof e.error==`string`?e.error:e.error?.message;throw Error(t||`AI suggestion failed (${n.status})`)}if(!n.body){let e=await n.json().catch(()=>null);if(e?.text)return e;throw Error(`AI suggestion stream is empty`)}let r=n.body.getReader(),i=new TextDecoder,a=``,o=``,s=``;for(;;){let{done:e,value:n}=await r.read();if(n){a+=i.decode(n,{stream:!e});let r=a.split(/\r?\n\r?\n/);a=r.pop()??``;for(let e of r){let n=Mt(e,{onDelta:e=>{o+=e,t.onDelta?.(e)},onThinkingDelta:e=>{s+=e,t.onThinkingDelta?.(e)}});n!==null&&(o=n)}}if(e)break}if(a.trim()){let e=Mt(a,{onDelta:e=>{o+=e,t.onDelta?.(e)},onThinkingDelta:e=>{s+=e,t.onThinkingDelta?.(e)}});e!==null&&(o=e)}let u=o.trim();if(!u)throw Error(`AI returned an empty suggestion`);return{text:u,thinking:s.trim()||void 0}}function Pt(){let[e,t]=(0,Q.useState)(``),[n,r]=(0,Q.useState)(``),[i,a]=(0,Q.useState)(!1),[o,s]=(0,Q.useState)(null);return{suggestion:e,thinking:n,loading:i,error:o,generate:(0,Q.useCallback)(async e=>{a(!0),s(null),t(``),r(``);try{let n=await Nt(e,{onDelta:e=>{t(t=>t+e)},onThinkingDelta:e=>{r(t=>t+e)}});return t(n.text),r(n.thinking??``),n.text}catch(e){let t=e instanceof Error?e.message:`AI suggestion failed`;return s(t),null}finally{a(!1)}},[]),reset:(0,Q.useCallback)(()=>{t(``),r(``),s(null),a(!1)},[])}}var Ft=5;function It(e){return e.startsWith(`zh`)?{title:`AI 优化文案`,buttonTitle:`优化文案`,current:`当前内容`,suggestion:`AI 建议`,editedSuggestion:`审核并编辑建议`,thinking:`模型思考`,thinkingLoading:`思考中`,edit:`编辑`,preview:`预览`,loading:`正在生成建议...`,empty:`暂无内容`,generate:`生成建议`,regenerate:`重新生成`,applyCurrent:`应用当前内容`,replace:`替换`,append:`追加`,cancel:`取消`,close:`关闭`}:{title:`AI text assist`,buttonTitle:`Improve text`,current:`Current`,suggestion:`Suggestion`,editedSuggestion:`Review and edit suggestion`,thinking:`Model thinking`,thinkingLoading:`Thinking`,edit:`Edit`,preview:`Preview`,loading:`Generating suggestion...`,empty:`No content`,generate:`Generate suggestion`,regenerate:`Regenerate`,applyCurrent:`Apply current`,replace:`Replace`,append:`Append`,cancel:`Cancel`,close:`Close`}}function Lt(e){let t=(0,ot.c)(245),{value:n,onApply:r,fieldId:i,fieldLabel:a,scenario:o,format:s,intent:c,locale:l,context:u,disabled:d,className:f,showLabel:y}=e,b=o===void 0?`generic.text`:o,x=s===void 0?`plain`:s,S=c===void 0?`improve`:c,C=y===void 0||y,[ee,w]=(0,Q.useState)(!1),[T,E]=(0,Q.useState)(n),[D,O]=(0,Q.useState)(`preview`),[k,A]=(0,Q.useState)(``),[j,M]=(0,Q.useState)(`edit`),[N,P]=(0,Q.useState)(!0),[F,ne]=(0,Q.useState)(!1),[I,L]=(0,Q.useState)(null),re=(0,Q.useRef)(null),ie=(0,Q.useRef)(!0),{suggestion:R,thinking:z,loading:B,error:V,generate:H,reset:se}=Pt(),ce;t[0]===l?ce=t[1]:(ce=It(l),t[0]=l,t[1]=ce);let U=ce,le;t[2]!==B||t[3]!==z?(le=B&&z.trim().length>0,t[2]=B,t[3]=z,t[4]=le):le=t[4];let W=le,K,ue;t[5]!==ee||t[6]!==n?(K=()=>{ee||E(n)},ue=[ee,n],t[5]=ee,t[6]=n,t[7]=K,t[8]=ue):(K=t[7],ue=t[8]),(0,Q.useEffect)(K,ue);let pe,he;t[9]===R?(pe=t[10],he=t[11]):(he=()=>{A(R)},pe=[R],t[9]=R,t[10]=pe,t[11]=he),(0,Q.useEffect)(he,pe);let J,ge;t[12]===z?(J=t[13],ge=t[14]):(J=()=>{z.trim()&&P(!0)},ge=[z],t[12]=z,t[13]=J,t[14]=ge),(0,Q.useEffect)(J,ge);let _e;t[15]!==W||t[16]!==N?(_e=()=>{let e=re.current;!e||!W||!N||ie.current&&(e.scrollTop=e.scrollHeight)},t[15]=W,t[16]=N,t[17]=_e):_e=t[17];let ve;t[18]!==W||t[19]!==z||t[20]!==N?(ve=[W,z,N],t[18]=W,t[19]=z,t[20]=N,t[21]=ve):ve=t[21],(0,Q.useLayoutEffect)(_e,ve);let ye;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(ye=()=>{let e=re.current;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight;ie.current=t<=Ft},t[22]=ye):ye=t[22];let be=ye,xe;t[23]!==u||t[24]!==i||t[25]!==a||t[26]!==x||t[27]!==H||t[28]!==S||t[29]!==l||t[30]!==b?(xe=async e=>{M(`edit`),P(!0),ie.current=!0,await H({intent:S,scenario:b,input:e,locale:l,field:{id:i,label:a,format:x},context:u})},t[23]=u,t[24]=i,t[25]=a,t[26]=x,t[27]=H,t[28]=S,t[29]=l,t[30]=b,t[31]=xe):xe=t[31];let Se=xe,we;t[32]!==se||t[33]!==n?(we=e=>{ne(!!e.currentTarget.closest(`[role="dialog"]`)),L(document.querySelector(`.app-main-surface`)),E(n),O(`preview`),A(``),M(`edit`),P(!0),se(),w(!0)},t[32]=se,t[33]=n,t[34]=we):we=t[34];let Y=we,Te;t[35]!==T||t[36]!==Se?(Te=async()=>{await Se(T)},t[35]=T,t[36]=Se,t[37]=Te):Te=t[37];let Ee=Te,De;t[38]!==se||t[39]!==n?(De=()=>{w(!1),E(n),O(`preview`),A(``),M(`edit`),P(!0),se()},t[38]=se,t[39]=n,t[40]=De):De=t[40];let Oe=De,ke;t[41]!==Oe||t[42]!==T||t[43]!==r?(ke=()=>{r(T),Oe()},t[41]=Oe,t[42]=T,t[43]=r,t[44]=ke):ke=t[44];let Ae=ke,je;t[45]!==Oe||t[46]!==k||t[47]!==r?(je=()=>{k.trim()&&(r(k),Oe())},t[45]=Oe,t[46]=k,t[47]=r,t[48]=je):je=t[48];let Me=je,Ne;t[49]!==Oe||t[50]!==T||t[51]!==k||t[52]!==r?(Ne=()=>{if(!k.trim())return;let e=T.trimEnd();r(e?`${e}\n\n${k}`:k),Oe()},t[49]=Oe,t[50]=T,t[51]=k,t[52]=r,t[53]=Ne):Ne=t[53];let Pe=Ne,Fe;t[54]!==k||t[55]!==V||t[56]!==B?(Fe=!B&&!V&&k.trim().length>0,t[54]=k,t[55]=V,t[56]=B,t[57]=Fe):Fe=t[57];let Ie=Fe,Le=T!==n,Re;t[58]!==k||t[59]!==V||t[60]!==z?(Re=k.trim().length>0||z.trim().length>0||!!V,t[58]=k,t[59]=V,t[60]=z,t[61]=Re):Re=t[61];let ze=Re,Be=!C&&`size-7 p-0`,Ve;t[62]!==f||t[63]!==Be?(Ve=q(`h-7 gap-1 px-2 text-xs`,Be,f),t[62]=f,t[63]=Be,t[64]=Ve):Ve=t[64];let He=d||B,Ue;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,$.jsx)(de,{className:`size-3.5`,strokeWidth:1.75,"aria-hidden":!0}),t[65]=Ue):Ue=t[65];let We=C?U.buttonTitle:null,Z;t[66]!==U.buttonTitle||t[67]!==Y||t[68]!==Ve||t[69]!==He||t[70]!==We?(Z=(0,$.jsxs)(Ce,{type:`button`,variant:`ghost`,className:Ve,title:U.buttonTitle,"aria-label":U.buttonTitle,disabled:He,onClick:Y,children:[Ue,We]}),t[66]=U.buttonTitle,t[67]=Y,t[68]=Ve,t[69]=He,t[70]=We,t[71]=Z):Z=t[71];let Ge;t[72]===Oe?Ge=t[73]:(Ge=e=>e?w(!0):Oe(),t[72]=Oe,t[73]=Ge);let Ke=I??void 0,qe=F?`bg-transparent`:`bg-scrim`,Je;t[74]===qe?Je=t[75]:(Je=q(`xopc-dialog-overlay absolute inset-0 z-[80]`,qe),t[74]=qe,t[75]=Je);let Ye;t[76]===Je?Ye=t[77]:(Ye=(0,$.jsx)(p,{className:Je}),t[76]=Je,t[77]=Ye);let Xe;t[78]===U.title?Xe=t[79]:(Xe=(0,$.jsx)(_,{className:`text-base font-semibold text-fg`,children:U.title}),t[78]=U.title,t[79]=Xe);let Ze;t[80]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=(0,$.jsx)(me,{className:`size-5`,strokeWidth:1.75}),t[80]=Ze):Ze=t[80];let Qe;t[81]===U.close?Qe=t[82]:(Qe=(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{type:`button`,variant:`ghost`,className:`size-9 shrink-0 p-0`,"aria-label":U.close,children:Ze})}),t[81]=U.close,t[82]=Qe);let $e;t[83]!==Xe||t[84]!==Qe?($e=(0,$.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 border-b border-edge px-4 py-3`,children:[Xe,Qe]}),t[83]=Xe,t[84]=Qe,t[85]=$e):$e=t[85];let et;t[86]===U.current?et=t[87]:(et=(0,$.jsx)(`div`,{className:`min-w-0 text-xs font-medium text-fg-muted`,children:U.current}),t[86]=U.current,t[87]=et);let tt=U.current,nt=D===`edit`,rt=D===`edit`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,it;t[88]===rt?it=t[89]:(it=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,rt),t[88]=rt,t[89]=it);let at,st;t[90]===Symbol.for(`react.memo_cache_sentinel`)?(at=()=>O(`edit`),st=(0,$.jsx)(fe,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[90]=at,t[91]=st):(at=t[90],st=t[91]);let ct;t[92]!==U.edit||t[93]!==nt||t[94]!==it?(ct=(0,$.jsxs)(`button`,{"aria-pressed":nt,type:`button`,className:it,onClick:at,children:[st,U.edit]}),t[92]=U.edit,t[93]=nt,t[94]=it,t[95]=ct):ct=t[95];let lt=D===`preview`,ut=D===`preview`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,dt;t[96]===ut?dt=t[97]:(dt=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,ut),t[96]=ut,t[97]=dt);let ft,pt;t[98]===Symbol.for(`react.memo_cache_sentinel`)?(ft=()=>O(`preview`),pt=(0,$.jsx)(ae,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[98]=ft,t[99]=pt):(ft=t[98],pt=t[99]);let mt;t[100]!==U.preview||t[101]!==lt||t[102]!==dt?(mt=(0,$.jsxs)(`button`,{"aria-pressed":lt,type:`button`,className:dt,onClick:ft,children:[pt,U.preview]}),t[100]=U.preview,t[101]=lt,t[102]=dt,t[103]=mt):mt=t[103];let ht;t[104]!==U.current||t[105]!==ct||t[106]!==mt?(ht=(0,$.jsxs)(X,{className:`flex shrink-0 items-center gap-1 rounded-lg border border-edge bg-surface-inset p-0.5`,role:`group`,"aria-label":tt,indicatorClassName:`rounded-md bg-surface-panel shadow-surface`,children:[ct,mt]}),t[104]=U.current,t[105]=ct,t[106]=mt,t[107]=ht):ht=t[107];let gt;t[108]!==et||t[109]!==ht?(gt=(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[et,ht]}),t[108]=et,t[109]=ht,t[110]=gt):gt=t[110];let _t;t[111]!==T||t[112]!==D||t[113]!==x||t[114]!==U.current||t[115]!==U.empty?(_t=D===`preview`?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg`,children:x===`markdown`?(0,$.jsx)(oe,{content:T||U.empty,compact:!0,className:`text-sm`}):(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:T||U.empty})}):(0,$.jsx)(`textarea`,{className:`min-h-0 flex-1 resize-none overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg outline-none focus:border-accent focus:ring-2 focus:ring-accent/25`,value:T,onChange:e=>E(e.currentTarget.value),placeholder:U.empty,"aria-label":U.current}),t[111]=T,t[112]=D,t[113]=x,t[114]=U.current,t[115]=U.empty,t[116]=_t):_t=t[116];let vt;t[117]!==gt||t[118]!==_t?(vt=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-hidden`,children:[gt,_t]}),t[117]=gt,t[118]=_t,t[119]=vt):vt=t[119];let yt;t[120]===U.editedSuggestion?yt=t[121]:(yt=(0,$.jsx)(`span`,{children:U.editedSuggestion}),t[120]=U.editedSuggestion,t[121]=yt);let bt;t[122]!==U.loading||t[123]!==B?(bt=B?(0,$.jsx)(`span`,{className:`ml-2 font-normal`,children:U.loading}):null,t[122]=U.loading,t[123]=B,t[124]=bt):bt=t[124];let xt;t[125]!==yt||t[126]!==bt?(xt=(0,$.jsxs)(`div`,{className:`min-w-0 text-xs font-medium text-fg-muted`,children:[yt,bt]}),t[125]=yt,t[126]=bt,t[127]=xt):xt=t[127];let St=U.editedSuggestion,Ct=j===`edit`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,wt;t[128]===Ct?wt=t[129]:(wt=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,Ct),t[128]=Ct,t[129]=wt);let Tt=j===`edit`,Et,Dt;t[130]===Symbol.for(`react.memo_cache_sentinel`)?(Et=()=>M(`edit`),Dt=(0,$.jsx)(fe,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[130]=Et,t[131]=Dt):(Et=t[130],Dt=t[131]);let Ot;t[132]!==U.edit||t[133]!==wt||t[134]!==Tt?(Ot=(0,$.jsxs)(`button`,{type:`button`,className:wt,"aria-pressed":Tt,onClick:Et,children:[Dt,U.edit]}),t[132]=U.edit,t[133]=wt,t[134]=Tt,t[135]=Ot):Ot=t[135];let kt=j===`preview`?`bg-surface-panel text-fg shadow-surface`:`text-fg-muted hover:bg-surface-hover`,At;t[136]===kt?At=t[137]:(At=q(`inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium`,kt),t[136]=kt,t[137]=At);let jt=j===`preview`,Mt,Nt;t[138]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=()=>M(`preview`),Nt=(0,$.jsx)(ae,{className:`size-3.5 shrink-0`,strokeWidth:1.75,"aria-hidden":!0}),t[138]=Mt,t[139]=Nt):(Mt=t[138],Nt=t[139]);let Lt;t[140]!==U.preview||t[141]!==At||t[142]!==jt?(Lt=(0,$.jsxs)(`button`,{type:`button`,className:At,"aria-pressed":jt,onClick:Mt,children:[Nt,U.preview]}),t[140]=U.preview,t[141]=At,t[142]=jt,t[143]=Lt):Lt=t[143];let Bt;t[144]!==U.editedSuggestion||t[145]!==Ot||t[146]!==Lt?(Bt=(0,$.jsxs)(X,{className:`flex shrink-0 items-center gap-1 rounded-lg border border-edge bg-surface-inset p-0.5`,role:`group`,"aria-label":St,indicatorClassName:`rounded-md bg-surface-panel shadow-surface`,children:[Ot,Lt]}),t[144]=U.editedSuggestion,t[145]=Ot,t[146]=Lt,t[147]=Bt):Bt=t[147];let Vt;t[148]!==xt||t[149]!==Bt?(Vt=(0,$.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[xt,Bt]}),t[148]=xt,t[149]=Bt,t[150]=Vt):Vt=t[150];let Ht=W?`opacity-100`:`pointer-events-none opacity-0`,Ut;t[151]===Ht?Ut=t[152]:(Ut=q(`absolute inset-0 min-h-0 transition-opacity duration-200 ease-out motion-reduce:transition-none`,Ht),t[151]=Ht,t[152]=Ut);let Wt=!W,Gt;t[153]===Symbol.for(`react.memo_cache_sentinel`)?(Gt=()=>P(Rt),t[153]=Gt):Gt=t[153];let Kt;t[154]!==U.thinkingLoading||t[155]!==B?(Kt=B?(0,$.jsxs)(`span`,{className:`ml-1 font-normal`,children:[`· `,U.thinkingLoading]}):null,t[154]=U.thinkingLoading,t[155]=B,t[156]=Kt):Kt=t[156];let qt;t[157]!==U.thinking||t[158]!==Kt?(qt=(0,$.jsxs)(`span`,{className:`min-w-0 truncate`,children:[U.thinking,Kt]}),t[157]=U.thinking,t[158]=Kt,t[159]=qt):qt=t[159];let Jt=N&&`rotate-180`,Yt;t[160]===Jt?Yt=t[161]:(Yt=q(`size-3.5 shrink-0 transition-transform`,Jt),t[160]=Jt,t[161]=Yt);let Xt;t[162]===Yt?Xt=t[163]:(Xt=(0,$.jsx)(te,{className:Yt,strokeWidth:1.75,"aria-hidden":!0}),t[162]=Yt,t[163]=Xt);let Zt;t[164]!==qt||t[165]!==Xt?(Zt=(0,$.jsxs)(`button`,{type:`button`,className:`flex shrink-0 items-center justify-between gap-2 px-2.5 py-2 text-left text-xs font-medium text-fg-muted hover:text-fg`,onClick:Gt,children:[qt,Xt]}),t[164]=qt,t[165]=Xt,t[166]=Zt):Zt=t[166];let Qt;t[167]!==z||t[168]!==N?(Qt=N?(0,$.jsx)(`pre`,{ref:re,className:`min-h-0 flex-1 overflow-auto border-t border-edge px-2.5 py-2 whitespace-pre-wrap text-xs leading-5 text-fg-muted`,onScroll:be,children:z}):null,t[167]=z,t[168]=N,t[169]=Qt):Qt=t[169];let $t;t[170]!==Zt||t[171]!==Qt?($t=(0,$.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col rounded-lg border border-edge bg-surface-inset/70`,children:[Zt,Qt]}),t[170]=Zt,t[171]=Qt,t[172]=$t):$t=t[172];let en;t[173]!==Ut||t[174]!==Wt||t[175]!==$t?(en=(0,$.jsx)(`div`,{className:Ut,"aria-hidden":Wt,children:$t}),t[173]=Ut,t[174]=Wt,t[175]=$t,t[176]=en):en=t[176];let tn=W?`pointer-events-none opacity-0`:`opacity-100`,nn;t[177]===tn?nn=t[178]:(nn=q(`absolute inset-0 min-h-0 transition-opacity duration-200 ease-out motion-reduce:transition-none`,tn),t[177]=tn,t[178]=nn);let rn;t[179]!==k||t[180]!==V||t[181]!==x||t[182]!==U.empty||t[183]!==U.loading||t[184]!==U.suggestion||t[185]!==B||t[186]!==j?(rn=V?(0,$.jsx)(`pre`,{className:`h-full min-h-0 overflow-auto whitespace-pre-wrap rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg-muted`,children:V}):j===`preview`?(0,$.jsx)(`div`,{className:`h-full min-h-0 overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg`,children:B&&!k.trim()?(0,$.jsx)(`p`,{className:`text-sm text-fg-muted`,children:U.loading}):x===`markdown`?(0,$.jsx)(oe,{content:k||U.empty,compact:!0,className:`text-sm`}):(0,$.jsx)(`pre`,{className:`whitespace-pre-wrap text-sm leading-6 text-fg`,children:k||U.empty})}):(0,$.jsx)(`textarea`,{className:`h-full min-h-0 w-full resize-none overflow-auto rounded-lg border border-edge bg-surface-base p-3 text-sm leading-6 text-fg outline-none focus:border-accent focus:ring-2 focus:ring-accent/25 disabled:text-fg-muted`,value:k,onChange:e=>A(e.currentTarget.value),disabled:B,placeholder:B?U.loading:U.empty,"aria-label":U.suggestion}),t[179]=k,t[180]=V,t[181]=x,t[182]=U.empty,t[183]=U.loading,t[184]=U.suggestion,t[185]=B,t[186]=j,t[187]=rn):rn=t[187];let an;t[188]!==nn||t[189]!==rn?(an=(0,$.jsx)(`div`,{className:nn,children:rn}),t[188]=nn,t[189]=rn,t[190]=an):an=t[190];let on;t[191]!==en||t[192]!==an?(on=(0,$.jsxs)(`div`,{className:`relative min-h-0 flex-1 overflow-hidden`,children:[en,an]}),t[191]=en,t[192]=an,t[193]=on):on=t[193];let sn;t[194]!==Vt||t[195]!==on?(sn=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-hidden`,children:[Vt,on]}),t[194]=Vt,t[195]=on,t[196]=sn):sn=t[196];let cn;t[197]!==vt||t[198]!==sn?(cn=(0,$.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-cols-1 gap-3 overflow-hidden p-4 md:grid-cols-2`,children:[vt,sn]}),t[197]=vt,t[198]=sn,t[199]=cn):cn=t[199];let ln;t[200]!==Oe||t[201]!==U.cancel?(ln=(0,$.jsx)(Ce,{type:`button`,variant:`secondary`,onClick:Oe,children:U.cancel}),t[200]=Oe,t[201]=U.cancel,t[202]=ln):ln=t[202];let un=!Le,dn;t[203]!==Ae||t[204]!==U.applyCurrent||t[205]!==un?(dn=(0,$.jsx)(Ce,{type:`button`,variant:`secondary`,disabled:un,onClick:Ae,children:U.applyCurrent}),t[203]=Ae,t[204]=U.applyCurrent,t[205]=un,t[206]=dn):dn=t[206];let fn;t[207]===Ee?fn=t[208]:(fn=()=>void Ee(),t[207]=Ee,t[208]=fn);let pn;t[209]===ze?pn=t[210]:(pn=ze?(0,$.jsx)(G,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}):(0,$.jsx)(de,{className:`size-4`,strokeWidth:1.75,"aria-hidden":!0}),t[209]=ze,t[210]=pn);let mn=ze?U.regenerate:U.generate,hn;t[211]!==B||t[212]!==pn||t[213]!==mn||t[214]!==fn?(hn=(0,$.jsxs)(Ce,{type:`button`,variant:`secondary`,disabled:B,onClick:fn,children:[pn,mn]}),t[211]=B,t[212]=pn,t[213]=mn,t[214]=fn,t[215]=hn):hn=t[215];let gn=!Ie,_n;t[216]!==Pe||t[217]!==U.append||t[218]!==gn?(_n=(0,$.jsx)(Ce,{type:`button`,variant:`secondary`,disabled:gn,onClick:Pe,children:U.append}),t[216]=Pe,t[217]=U.append,t[218]=gn,t[219]=_n):_n=t[219];let vn=!Ie,yn;t[220]!==Me||t[221]!==U.replace||t[222]!==vn?(yn=(0,$.jsx)(Ce,{type:`button`,variant:`primary`,disabled:vn,onClick:Me,children:U.replace}),t[220]=Me,t[221]=U.replace,t[222]=vn,t[223]=yn):yn=t[223];let bn;t[224]!==hn||t[225]!==_n||t[226]!==yn||t[227]!==ln||t[228]!==dn?(bn=(0,$.jsxs)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge px-4 py-3`,children:[ln,dn,hn,_n,yn]}),t[224]=hn,t[225]=_n,t[226]=yn,t[227]=ln,t[228]=dn,t[229]=bn):bn=t[229];let xn;t[230]!==bn||t[231]!==$e||t[232]!==cn?(xn=(0,$.jsx)(`div`,{className:`absolute inset-0 z-[80] flex items-center justify-center p-4 pointer-events-none`,children:(0,$.jsxs)(g,{className:`xopc-dialog-content-pane pointer-events-auto flex h-[min(78vh,38rem)] w-full max-w-4xl flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,onOpenAutoFocus:zt,children:[$e,cn,bn]})}),t[230]=bn,t[231]=$e,t[232]=cn,t[233]=xn):xn=t[233];let Sn;t[234]!==xn||t[235]!==Ke||t[236]!==Ye?(Sn=(0,$.jsxs)(h,{container:Ke,children:[Ye,xn]}),t[234]=xn,t[235]=Ke,t[236]=Ye,t[237]=Sn):Sn=t[237];let Cn;t[238]!==ee||t[239]!==Sn||t[240]!==Ge?(Cn=(0,$.jsx)(v,{open:ee,onOpenChange:Ge,children:Sn}),t[238]=ee,t[239]=Sn,t[240]=Ge,t[241]=Cn):Cn=t[241];let wn;return t[242]!==Cn||t[243]!==Z?(wn=(0,$.jsxs)($.Fragment,{children:[Z,Cn]}),t[242]=Cn,t[243]=Z,t[244]=wn):wn=t[244],wn}function Rt(e){return!e}function zt(e){return e.preventDefault()}function Bt(e){return e.management!==void 0&&e.management.owner!==`observation`}function Vt(e){return[`reminder`,`brief`,`review`,`followUp`].map(t=>{let n=e.scenarios[t];return{...n,requiresProject:t===`followUp`,form:{...We,name:n.name,instruction:t===`reminder`?``:n.instruction,triggerMode:t===`reminder`?`once`:t===`review`?`weekly`:`daily`,time:t===`brief`?`08:30`:t===`review`?`17:00`:`09:00`,weekday:`5`,notificationPolicy:`all`}}})}var Ht=`w-full rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg focus-visible:outline-2 focus-visible:outline-accent`;function Ut(e){let t=(0,ot.c)(99),{form:n,setForm:r,labels:i,projects:a,projectLocked:o,source:s,requiresProject:c}=e,l;t[0]===r?l=t[1]:(l=e=>r(t=>({...t,...e})),t[0]=r,t[1]=l);let u=l,d;t[2]!==i.experience.source||t[3]!==s?(d=(0,$.jsxs)(`p`,{className:`text-sm text-fg-muted`,children:[i.experience.source,`: `,s]}),t[2]=i.experience.source,t[3]=s,t[4]=d):d=t[4];let f;t[5]===u?f=t[6]:(f=e=>u({name:e.target.value}),t[5]=u,t[6]=f);let p;t[7]!==n.name||t[8]!==f?(p=(0,$.jsx)(`input`,{className:Ht,value:n.name,onChange:f}),t[7]=n.name,t[8]=f,t[9]=p):p=t[9];let m;t[10]!==i.form.name||t[11]!==p?(m=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.name,p]}),t[10]=i.form.name,t[11]=p,t[12]=m):m=t[12];let h;t[13]===u?h=t[14]:(h=e=>u({instruction:e.target.value}),t[13]=u,t[14]=h);let g;t[15]!==n.instruction||t[16]!==h?(g=(0,$.jsx)(`textarea`,{className:Ht,rows:5,value:n.instruction,onChange:h}),t[15]=n.instruction,t[16]=h,t[17]=g):g=t[17];let _;t[18]!==i.info.task||t[19]!==g?(_=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.info.task,g]}),t[18]=i.info.task,t[19]=g,t[20]=_):_=t[20];let v;t[21]!==n.projectId||t[22]!==i.form.noProject||t[23]!==i.form.project||t[24]!==o||t[25]!==a||t[26]!==u?(v=!o&&(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.project,(0,$.jsxs)(I,{className:Ht,value:n.projectId,onChange:e=>u({projectId:e.target.value}),children:[(0,$.jsx)(L,{value:``,children:i.form.noProject}),a.map(Wt)]})]}),t[21]=n.projectId,t[22]=i.form.noProject,t[23]=i.form.project,t[24]=o,t[25]=a,t[26]=u,t[27]=v):v=t[27];let y;t[28]!==n.projectId||t[29]!==i.experience.projectRequired||t[30]!==c?(y=c&&!n.projectId?(0,$.jsx)(`p`,{role:`status`,className:`text-sm text-fg-muted`,children:i.experience.projectRequired}):null,t[28]=n.projectId,t[29]=i.experience.projectRequired,t[30]=c,t[31]=y):y=t[31];let b;t[32]===u?b=t[33]:(b=e=>u({triggerMode:e.target.value}),t[32]=u,t[33]=b);let x;t[34]===i.trigger.once?x=t[35]:(x=(0,$.jsx)(L,{value:`once`,children:i.trigger.once}),t[34]=i.trigger.once,t[35]=x);let S;t[36]===i.trigger.daily?S=t[37]:(S=(0,$.jsx)(L,{value:`daily`,children:i.trigger.daily}),t[36]=i.trigger.daily,t[37]=S);let C;t[38]===i.trigger.weekly?C=t[39]:(C=(0,$.jsx)(L,{value:`weekly`,children:i.trigger.weekly}),t[38]=i.trigger.weekly,t[39]=C);let ee;t[40]!==n.triggerMode||t[41]!==b||t[42]!==x||t[43]!==S||t[44]!==C?(ee=(0,$.jsxs)(I,{className:Ht,value:n.triggerMode,onChange:b,children:[x,S,C]}),t[40]=n.triggerMode,t[41]=b,t[42]=x,t[43]=S,t[44]=C,t[45]=ee):ee=t[45];let w;t[46]!==i.form.trigger||t[47]!==ee?(w=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.trigger,ee]}),t[46]=i.form.trigger,t[47]=ee,t[48]=w):w=t[48];let T;t[49]!==n.onceAt||t[50]!==n.time||t[51]!==n.triggerMode||t[52]!==i.form.onceAt||t[53]!==i.form.time||t[54]!==u?(T=n.triggerMode===`once`?(0,$.jsx)(et,{label:i.form.onceAt,value:n.onceAt,defaultTime:n.time,onChange:e=>u({onceAt:e})}):(0,$.jsxs)(`div`,{className:`grid gap-2 text-sm text-fg`,children:[(0,$.jsx)(`span`,{children:i.form.time}),(0,$.jsx)($e,{value:n.time,onChange:e=>u({time:e}),ariaLabel:i.form.time})]}),t[49]=n.onceAt,t[50]=n.time,t[51]=n.triggerMode,t[52]=i.form.onceAt,t[53]=i.form.time,t[54]=u,t[55]=T):T=t[55];let E;t[56]!==n.triggerMode||t[57]!==n.weekday||t[58]!==i.form.day||t[59]!==i.weekdays||t[60]!==u?(E=n.triggerMode===`weekly`&&(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.form.day,(0,$.jsx)(I,{className:Ht,value:n.weekday,onChange:e=>u({weekday:e.target.value}),children:[`sunday`,`monday`,`tuesday`,`wednesday`,`thursday`,`friday`,`saturday`].map((e,t)=>(0,$.jsx)(L,{value:String(t),children:i.weekdays[e]},e))})]}),t[56]=n.triggerMode,t[57]=n.weekday,t[58]=i.form.day,t[59]=i.weekdays,t[60]=u,t[61]=E):E=t[61];let D;t[62]!==w||t[63]!==T||t[64]!==E?(D=(0,$.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[w,T,E]}),t[62]=w,t[63]=T,t[64]=E,t[65]=D):D=t[65];let O;t[66]!==n.onceAt||t[67]!==n.triggerMode||t[68]!==i.experience.futureTime?(O=n.triggerMode===`once`&&n.onceAt&&new Date(n.onceAt).getTime()<=Date.now()?(0,$.jsx)(`p`,{role:`status`,className:`text-sm text-red-700 dark:text-red-300`,children:i.experience.futureTime}):null,t[66]=n.onceAt,t[67]=n.triggerMode,t[68]=i.experience.futureTime,t[69]=O):O=t[69];let k;t[70]===i.experience.scheduleNote?k=t[71]:(k=(0,$.jsx)(`p`,{className:`text-xs text-fg-muted`,children:i.experience.scheduleNote}),t[70]=i.experience.scheduleNote,t[71]=k);let A;t[72]===u?A=t[73]:(A=e=>u({notificationPolicy:e.target.value}),t[72]=u,t[73]=A);let j;t[74]===i.draft.notifyAll?j=t[75]:(j=(0,$.jsx)(L,{value:`all`,children:i.draft.notifyAll}),t[74]=i.draft.notifyAll,t[75]=j);let M;t[76]===i.draft.notifyAttention?M=t[77]:(M=(0,$.jsx)(L,{value:`attention`,children:i.draft.notifyAttention}),t[76]=i.draft.notifyAttention,t[77]=M);let N;t[78]===i.draft.notifyNone?N=t[79]:(N=(0,$.jsx)(L,{value:`none`,children:i.draft.notifyNone}),t[78]=i.draft.notifyNone,t[79]=N);let P;t[80]!==n.notificationPolicy||t[81]!==A||t[82]!==j||t[83]!==M||t[84]!==N?(P=(0,$.jsxs)(I,{className:Ht,value:n.notificationPolicy,onChange:A,children:[j,M,N]}),t[80]=n.notificationPolicy,t[81]=A,t[82]=j,t[83]=M,t[84]=N,t[85]=P):P=t[85];let F;t[86]!==i.draft.notifications||t[87]!==P?(F=(0,$.jsxs)(`label`,{className:`grid gap-2 text-sm text-fg`,children:[i.draft.notifications,P]}),t[86]=i.draft.notifications,t[87]=P,t[88]=F):F=t[88];let te;return t[89]!==y||t[90]!==D||t[91]!==d||t[92]!==O||t[93]!==k||t[94]!==F||t[95]!==m||t[96]!==_||t[97]!==v?(te=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4`,children:[d,m,_,v,y,D,O,k,F]}),t[89]=y,t[90]=D,t[91]=d,t[92]=O,t[93]=k,t[94]=F,t[95]=m,t[96]=_,t[97]=v,t[98]=te):te=t[98],te}function Wt(e){return(0,$.jsx)(L,{value:e.id,children:e.name},e.id)}var Gt=`xopc.automations.dismissedExecutionIssues`;function Kt(){if(typeof window>`u`)return{};try{let e=JSON.parse(window.localStorage.getItem(Gt)??`{}`);return!e||typeof e!=`object`||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(e=>typeof e[1]==`string`))}catch{return{}}}function qt(e,t,n){return e?E(e,n):t.never}function Jt(e,t){return e.kind===`routine`?`Routine · v${e.version}`:e.kind===`system`?e.capability===`home.advisor.refresh`?`Home AI suggestions refresh`:e.capability===`memory.temporal_sweep`?`Memory temporal sweep`:e.capability===`memory.daily_reconciliation`?`Memory daily reconciliation`:`Memory weekly knowledge maintenance`:e.kind===`task_command`?t.action.taskWithId.replace(`{id}`,e.taskId):e.agentId?t.action.agentWithId.replace(`{id}`,e.agentId):t.action.agent}function Yt(e,t){return e===`task_command`?t.action.runTask:t.action.runAgent}function Xt(e){return e.safety?.mode??`auto_apply`}function Zt(e){return e===`succeeded`?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e===`failed`||e===`timeout`?`bg-red-500/10 text-red-700 dark:text-red-300`:e===`running`||e===`queued`||e===`cancelling`?`bg-blue-500/10 text-blue-700 dark:text-blue-300`:`bg-surface-hover text-fg-muted`}function Qt(e,t){if(e==null)return t.never;if(e<1e3)return`${e}ms`;let n=Math.round(e/1e3);return n<60?`${n}s`:`${Math.floor(n/60)}m ${n%60}s`}function $t(e){return e.status===`running`||e.status===`queued`||e.status===`cancelling`}function en(e){return e.status===`failed`||e.status===`timeout`}function tn(e,t){return e.action.kind===`system`?Jt(e.action,t):e.action.kind===`agent`?e.action.instruction:(e.action.kind,Jt(e.action,t))}function nn(e){return e.description?.trim()??``}function rn(e){return $t(e)?0:en(e)?1:e.status===`succeeded`?2:3}function an(e){return[...e].sort((e,t)=>{let n=rn(e)-rn(t);return n===0?t.createdAtMs-e.createdAtMs:n})}function on(){let e=(0,ot.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(`section`,{className:`grid grid-cols-2 gap-px overflow-hidden rounded-xl border border-edge-subtle bg-edge-subtle xl:grid-cols-4`,children:Array.from({length:4}).map(cn)}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 space-y-2`,children:[(0,$.jsx)(J,{className:`h-4 w-36`}),(0,$.jsx)(J,{className:`h-3 w-56 max-w-full`})]}),(0,$.jsx)(J,{className:`h-7 w-20 rounded-full`})]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(`section`,{className:`rounded-xl bg-surface-inset p-4`,children:[n,(0,$.jsx)(`div`,{className:`mt-4 grid gap-2`,children:Array.from({length:6}).map(sn)})]}),e[2]=r):r=e[2];let i,a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsx)(J,{className:`h-4 w-32`}),a=(0,$.jsx)(J,{className:`mt-4 h-24 rounded-lg`}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let o;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,$.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4`,"aria-hidden":`true`,children:[t,(0,$.jsxs)(`div`,{className:`grid min-h-0 flex-1 grid-rows-[auto_minmax(0,1fr)] gap-3 md:grid-cols-[15rem_minmax(0,1fr)] md:grid-rows-1 lg:grid-cols-[17rem_minmax(0,1fr)]`,children:[r,(0,$.jsxs)(`section`,{className:`hidden rounded-xl border border-edge-subtle p-4 xl:block`,children:[i,a,(0,$.jsxs)(`div`,{className:`mt-4 grid gap-2`,children:[(0,$.jsx)(J,{className:`h-12 rounded-lg`}),(0,$.jsx)(J,{className:`h-12 rounded-lg`}),(0,$.jsx)(J,{className:`h-12 rounded-lg`})]})]})]})]}),e[5]=o):o=e[5],o}function sn(e,t){return(0,$.jsx)(`div`,{className:`rounded-lg p-3`,children:(0,$.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(J,{className:`size-4 rounded-full`}),(0,$.jsx)(J,{className:`h-4 w-32`}),(0,$.jsx)(J,{className:`h-5 w-20 rounded-full`})]}),(0,$.jsx)(J,{className:`mt-3 h-4 w-full`}),(0,$.jsx)(J,{className:`mt-2 h-4 w-3/5`})]}),(0,$.jsx)(J,{className:`h-8 w-24 rounded-md`})]})},t)}function cn(e,t){return(0,$.jsxs)(`div`,{className:`flex min-h-12 items-center gap-2.5 bg-surface-base px-3 py-2.5`,children:[(0,$.jsx)(J,{className:`size-4 rounded-full`}),(0,$.jsx)(J,{className:`h-3 w-14`}),(0,$.jsx)(J,{className:`ml-auto h-4 w-10`})]},t)}function ln({projectId:e,embedded:t=!1,title:n,subtitle:r}){let i=d(e=>e.language),o=f(i),s=o.automations,c=o.productNavigation.sections[`automation-triggers`],l=o.cron,u=we(e=>e.setPageHeader),y=we(e=>e.clearPageHeader),[b,x]=a(),S=!t&&b.get(`view`)===`activity`,C=b.get(`run`)?.trim()??``,w=b.get(`view`)===`execution`&&!!C,T=b.get(`automation`)?.trim()??``,E=b.get(`new`)===`1`,D=b.get(`setupChat`)??void 0,O=b.get(`draft`)?.trim()??``,j=b.get(`action`)?.trim()??``,M=b.get(`taskId`)?.trim()??``,N=b.get(`projectId`)?.trim()??``,P=e?.trim()||N,F=!!e?.trim(),te=b.get(`autogenerate`)===`1`,ne=(0,Q.useRef)(``),I=b.get(`status`),L=I===`active`||I===`paused`||I===`completed`||I===`running`||I===`attention`?I:`all`,ie=b.get(`ownership`)===`system`?`system`:`user`,R=b.get(`source`),z=R===`agent`||R===`task_command`?R:`all`,ae=b.get(`q`)??``,B=e=>x(t=>{let n=new URLSearchParams(t);return e===`all`?n.delete(`status`):n.set(`status`,e),n.delete(`automation`),n}),V=e=>x(t=>{let n=new URLSearchParams(t);return e===`user`?n.delete(`ownership`):n.set(`ownership`,e),n.delete(`automation`),n}),H=e=>x(t=>{let n=new URLSearchParams(t);return e?n.set(`q`,e):n.delete(`q`),n.delete(`automation`),n},{replace:!0}),oe=e=>x(t=>{let n=new URLSearchParams(t);return e===`all`?n.delete(`source`):n.set(`source`,e),n.delete(`automation`),n}),se=()=>x(e=>{let t=new URLSearchParams(e);return t.delete(`status`),t.delete(`source`),t.delete(`q`),t.delete(`automation`),t}),[ce,U]=(0,Q.useState)(null),[le,G]=(0,Q.useState)(!1),[K,ue]=(0,Q.useState)(`blank`),[de,fe]=(0,Q.useState)(!1),[pe,J]=(0,Q.useState)(null),[_e,ve]=(0,Q.useState)(null),[ye,Te]=(0,Q.useState)(!1),[X,De]=(0,Q.useState)(We),[Oe,ke]=(0,Q.useState)(null),[Ae,je]=(0,Q.useState)(null),[Me,Ne]=(0,Q.useState)(!1),[Pe,Fe]=(0,Q.useState)(null),[Ie,Le]=(0,Q.useState)(``),[Re,ze]=(0,Q.useState)(null),[Be,Ve]=(0,Q.useState)(!1),[He,Z]=(0,Q.useState)(!1),[Ke,qe]=(0,Q.useState)(P),[$e,et]=(0,Q.useState)(`new_session`),[tt,rt]=(0,Q.useState)(`attention`),[at,ot]=(0,Q.useState)(null),[st,lt]=(0,Q.useState)(!1),[ut,dt]=(0,Q.useState)(!1),[ft,mt]=(0,Q.useState)(!1),[ht,gt]=(0,Q.useState)(null),[_t,yt]=(0,Q.useState)(Kt),xt=be([`automations`,P],()=>Y.list(P?{projectId:P}:void 0),{keepPreviousData:!0,refreshInterval:15e3}),St=be([`automation-runs`,P],()=>Y.runs(50,void 0,P?{projectId:P}:void 0),{keepPreviousData:!0,refreshInterval:1e4}),Ct=be(P?`automations-global-system-source`:null,()=>Y.list(),{keepPreviousData:!0,refreshInterval:15e3}),wt=be(P?`automation-runs-global-system-source`:null,()=>Y.runs(50),{keepPreviousData:!0,refreshInterval:1e4}),Et=be(Pe?[`automation-history`,Pe,P]:null,()=>Y.runs(50,Pe,P?{projectId:P}:void 0),{refreshInterval:1e4}),Dt=be(Ae?`automation-run-events:${Ae}`:null,()=>Y.runEvents(Ae),{refreshInterval:5e3}),Ot=be(Ae?[`automation-exact-run`,Ae]:null,()=>Y.getRun(Ae),{refreshInterval:3e3}),At=be(`automation-chat-agents`,Se),jt=be(`automation-tasks`,Y.tasks),Mt=be(`automation-projects`,()=>ge({sortBy:`name`,sortOrder:`asc`,limit:200})),Nt=xt.isLoading&&!xt.data||St.isLoading&&!St.data||!!P&&Ct.isLoading&&!Ct.data||!!P&&wt.isLoading&&!wt.data,Pt=!Nt&&(xt.isLoading||St.isLoading||Ct.isLoading||wt.isLoading),Ft=xt.data?.automations??[],It=P?Ct.data?.automations??[]:Ft,Lt=(0,Q.useMemo)(()=>an(St.data?.runs??[]),[St.data?.runs]),Rt=(0,Q.useMemo)(()=>P?an(wt.data?.runs??[]):Lt,[wt.data?.runs,P,Lt]),zt=(0,Q.useMemo)(()=>Ft.filter(e=>!Bt(e)),[Ft]),Ht=(0,Q.useMemo)(()=>It.filter(Bt),[It]),Wt=(0,Q.useMemo)(()=>[...zt,...Ht],[Ht,zt]),qt=(0,Q.useMemo)(()=>new Set(Ht.map(e=>e.id)),[Ht]),Jt=(0,Q.useMemo)(()=>Lt.filter(e=>!qt.has(e.automationId)),[Lt,qt]),Yt=(0,Q.useMemo)(()=>Rt.filter(e=>qt.has(e.automationId)),[Rt,qt]),Xt=(0,Q.useMemo)(()=>P?[...Lt,...Yt]:Lt,[P,Lt,Yt]),Zt=(0,Q.useMemo)(()=>Ot.data?.run?.id===Ae?Ot.data.run:Xt.find(e=>e.id===Ae)??Et.data?.runs.find(e=>e.id===Ae)??null,[Xt,Ae,Et.data,Ot.data]),Qt=(0,Q.useMemo)(()=>Wt.find(e=>e.id===Pe)??null,[Wt,Pe]),en=(0,Q.useMemo)(()=>Wt.find(e=>e.id===_e)??null,[Wt,_e]),rn=(0,Q.useMemo)(()=>[...Et.data?.runs??Xt].filter(e=>e.automationId===Pe).sort((e,t)=>t.createdAtMs-e.createdAtMs),[Xt,Pe,Et.data]),sn=Dt.data?.events??[],cn=(0,Q.useMemo)(()=>Jt.filter(e=>!$t(e)&&e.readAtMs==null),[Jt]),ln=zt.reduce((e,t)=>e+(xt.data?.executionSummaries?.[t.id]?.unreadCount??0),0),fn=ae.trim().toLocaleLowerCase(),pn=ie===`system`?Ht:zt,mn=ie===`system`?Yt:Jt,hn=(0,Q.useMemo)(()=>new Set(mn.filter($t).map(e=>e.automationId)),[mn]),_n=(0,Q.useMemo)(()=>pn.filter(e=>L===`attention`&&!nt(e,mn)||L===`running`&&!hn.has(e.id)||L===`active`&&!e.enabled||L===`paused`&&(e.enabled||A(e))||L===`completed`&&!A(e)||z!==`all`&&e.action.kind!==z?!1:!fn||[e.name,nn(e),tn(e,s),ee(e.trigger,s,l,i)].some(e=>e.toLocaleLowerCase().includes(fn))),[l,L,s,i,fn,pn,mn,hn,z]),vn=At.data?.items??[],yn=(0,Q.useMemo)(()=>(jt.data?.items??[]).map(e=>e.task),[jt.data]),Sn=Mt.data?.items??[],Cn=!!en?.management?.editable.includes(`trigger`),wn=[`daily`,`weekly`,`interval`,`cron`].includes(X.triggerMode)&&(![`daily`,`weekly`].includes(X.triggerMode)||/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(X.time))&&(X.triggerMode!==`interval`||k(X.intervalValue,X.intervalUnit)>=6e4)&&(X.triggerMode!==`cron`||!!X.cronExpr.trim()),Tn=Cn?wn:!!X.name.trim()&&(X.triggerMode!==`once`||Number.isFinite(new Date(X.onceAt).getTime())&&(!!en||new Date(X.onceAt).getTime()>Date.now()))&&(![`daily`,`weekly`].includes(X.triggerMode)||/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(X.time))&&(X.triggerMode!==`event`||!!X.eventType.trim()&&Ye(X.eventPayloadMatch))&&(X.actionMode===`task_command`?!!(X.taskId.trim()&&X.agentId.trim()):!!X.instruction.trim()),En=!0;try{[`daily`,`weekly`,`cron`].includes(X.triggerMode)&&Ze(X)}catch{En=!1}let Dn=Tn&&En,On=(0,Q.useMemo)(()=>Vt(s),[s]),kn=(0,Q.useMemo)(()=>zt.filter(e=>nt(e,Jt)),[zt,Jt]),jn=kn.some(e=>{let t=it(e,Jt);return t!==null&&_t[e.id]!==t}),Mn=(0,Q.useCallback)(()=>{yt(e=>{let t={...e};for(let e of kn){let n=it(e,Jt);n&&(t[e.id]=n)}try{window.localStorage.setItem(Gt,JSON.stringify(t))}catch{}return t})},[kn,Jt]);(0,Q.useEffect)(()=>{if(!Pt){if(E){Fe(null);return}if(T){Fe(T);return}if(_n.length===0){Fe(null);return}Pe&&_n.some(e=>e.id===Pe)||Fe(null)}},[T,_n,E,Pt,Pe]);let Nn=(0,Q.useCallback)(async()=>{await Promise.all([xt.mutate(),St.mutate(),Ct.mutate(),wt.mutate(),Et.mutate(),Dt.mutate(),xe(e=>Array.isArray(e)&&e[0]===`automation-navigation-runs`)])},[xt.mutate,Ct.mutate,wt.mutate,Dt.mutate,St.mutate,Et.mutate]),Pn=(0,Q.useCallback)(e=>{if(F){Fe(null),je(null);return}x(t=>{let n=new URLSearchParams(t);return e?n.set(`projectId`,e):n.delete(`projectId`),n.delete(`automation`),n.delete(`run`),n}),Fe(null),je(null)},[F,x]);(0,Q.useEffect)(()=>{F&&(qe(P),De(e=>e.projectId===P?e:{...e,projectId:P}))},[P,F]);let Fn=(0,Q.useCallback)(e=>{if(e===`blank`&&!M){fe(!0);return}if(ve(null),Te(!1),ke(null),ue(e),G(!0),e===`blank`){De({...We,projectId:P});return}Le(``),ze(null),Z(!1),qe(P),et(`new_session`),rt(`attention`)},[P,M]),In=e=>{U(e),De({...e.form,projectId:P}),ve(null),Te(!1),ke(null),ue(`quick`),G(!0)},Ln=(0,Q.useCallback)(e=>{if(e.action.kind===`agent`&&!e.management){J(e);return}De(Ue(e)),ve(e.id),Te(!1),Fe(null),ue(`blank`),G(!0)},[]),Rn=(0,Q.useCallback)(()=>{Re&&(De({...Ue(Re.automation),projectId:Ke,conversationMode:$e,notificationPolicy:tt}),ve(null),Te(!0),ue(`blank`))},[Re,$e,tt,Ke]),zn=(0,Q.useCallback)(async()=>{mt(!0),ke(null);try{await Nn()}catch(e){let t=e instanceof Error?e.message:String(e);ke(t)}finally{mt(!1)}},[s.feedback.actionFailed,Nn]);(0,Q.useEffect)(()=>{let e=Wt.find(e=>e.id===T);!e||!Bt(e)||ie===`system`||x(e=>{let t=new URLSearchParams(e);return t.set(`ownership`,`system`),t},{replace:!0})},[T,Wt,ie,x]),(0,Q.useEffect)(()=>{j===`create`&&(Fn(`blank`),M&&De(e=>({...e,actionMode:`task_command`,taskId:M,safetyMode:`auto_apply`})),x(e=>{let t=new URLSearchParams(e);return t.delete(`action`),t.delete(`taskId`),t},{replace:!0}))},[j,Fn,x,M]),(0,Q.useEffect)(()=>{if(!O)return;let e=`${i}:${te?`auto`:`seed`}:${O}`;ne.current!==e&&(ne.current=e,Le(O),ze(null),Z(!1),qe(P),ue(`draft`),G(!0),x(e=>{let t=new URLSearchParams(e);return t.delete(`draft`),t.delete(`autogenerate`),t},{replace:!0}),te&&(ke(null),Ve(!0),Y.draft({prompt:O,language:i}).then(e=>{ze(e.draft),Z(!1)}).catch(e=>{ke(e instanceof Error?e.message:String(e))}).finally(()=>{Ve(!1)})))},[te,O,i,P,x]);let Bn=(0,Q.useCallback)(e=>{let t=Lt.find(t=>t.id===e)??Et.data?.runs.find(t=>t.id===e);if(!t||$t(t)||t.readAtMs!=null)return;let n=Date.now();St.mutate(t=>t&&{...t,runs:t.runs.map(t=>t.id===e?{...t,readAtMs:n}:t)},!1),Et.mutate(t=>t&&{...t,runs:t.runs.map(t=>t.id===e?{...t,readAtMs:n}:t)},!1),Y.markRunRead(e).catch(e=>{ke(e instanceof Error?e.message:String(e)),St.mutate(),Et.mutate()})},[Lt,St.mutate,Et.data,Et.mutate]),Vn=(0,Q.useCallback)(e=>{Bn(e),je(e),Ne(!0),x(t=>{let n=new URLSearchParams(t);return n.set(`run`,e),n},{replace:!0})},[Bn,x]),Hn=(0,Q.useCallback)(e=>{Fe(e),je(null),Ne(!1),x(t=>{let n=new URLSearchParams(t);n.set(`automation`,e);for(let e of[`new`,`setupChat`,`chatDraft`,`run`,`view`])n.delete(e);return n})},[x]),Un=(0,Q.useCallback)(e=>{Ne(!1),x(t=>{let n=new URLSearchParams(t);n.set(`automation`,e.automationId),n.set(`run`,e.id),n.set(`view`,`execution`);for(let e of[`new`,`setupChat`,`chatDraft`])n.delete(e);return n})},[x]);(0,Q.useEffect)(()=>{je(C||null),Ne(!!C&&!w)},[w,C]),(0,Q.useEffect)(()=>{C&&!w&&Bn(C)},[w,C,Bn]),(0,Q.useEffect)(()=>{ot(null),dt(!1)},[Ae]);async function Wn(){if(ke(null),X.triggerMode===`once`&&!en&&new Date(X.onceAt).getTime()<=Date.now()){ke(s.experience.futureTime);return}if(!(!Dn||ht)&&!(K===`quick`&&ce?.requiresProject&&!X.projectId)){if(ye&&Re){gt(`draft:edit`);try{let e=Qe(X),{simulation:t}=await Y.simulate(e);ze({...Re,automation:e,simulation:t}),qe(X.projectId),et(X.conversationMode),rt(X.notificationPolicy),Z(!1),Te(!1),ue(`draft`)}catch(e){let t=e instanceof Error?e.message:String(e);ke(t)}finally{gt(null)}return}if(en){let e=en.id;await Gn(`automation:${e}:edit`,()=>Y.update(e,{...Cn?{trigger:Ge(en,{...X,instruction:`managed`}).trigger}:Ge(en,X),expectedRevision:en.updatedAtMs}))&&(G(!1),ve(null),Fe(e));return}gt(`automation:create`);try{let e=Qe(X),{automation:t}=await Y.create(e);De(We),G(!1),x(e=>{let n=new URLSearchParams(e);return n.delete(`status`),n.delete(`q`),n.delete(`run`),n.delete(`new`),n.set(`automation`,t.id),F||(t.projectId?n.set(`projectId`,t.projectId):n.delete(`projectId`)),n}),await Nn(),Fe(t.id)}catch(e){let t=e instanceof Error?e.message:String(e);ke(t)}finally{gt(null)}}}async function Gn(e,t){ke(null),gt(e);try{return await t(),await Nn(),!0}catch(e){let t=e instanceof Error?e.message:String(e);return ke(t),!1}finally{gt(null)}}async function Kn(){await Gn(`runs:read-all`,()=>Y.markAllRunsRead(P||void 0))}async function qn(){let e=Ie.trim();if(e){ke(null),Ve(!0);try{let t=await Y.draft({prompt:e,language:i});ze(t.draft),Z(!1)}catch(e){ke(e instanceof Error?e.message:String(e))}finally{Ve(!1)}}}async function Jn(){if(!Re)return;let e=``,t=``;await Gn(`draft:publish`,async()=>{let{automation:n}=await Y.create({...Re.automation,...Ke?{projectId:Ke}:{projectId:void 0},conversationMode:$e,delivery:{...Re.automation.delivery,notificationPolicy:tt}});ze(null),Le(``),Z(!1),G(!1),B(`all`),H(``),e=n.id,t=n.projectId??``})&&e&&(Pn(t),Hn(e))}async function Yn(){if(!Re)return;let e=``,t=``,n=``;await Gn(`draft:test`,async()=>{let{automation:r}=await Y.create({...Re.automation,...Ke?{projectId:Ke}:{projectId:void 0},conversationMode:$e,delivery:{...Re.automation.delivery,notificationPolicy:tt},enabled:!1}),{run:i}=await Y.runNow(r.id);e=r.id,t=r.projectId??``,n=i.id,ze(null),Le(``),Z(!1),G(!1),B(`all`),H(``)})&&e&&n&&(Pn(t),Hn(e),Vn(n))}async function Xn(e){ke(null),lt(!0),ot(null),dt(!1);try{let t=await Y.repairDraft(e.id,{language:i});ot(t.repair)}catch(e){ke(e instanceof Error?e.message:String(e))}finally{lt(!1)}}async function Zn(e){at&&await Gn(`run:${e.id}:repair`,async()=>{await Y.update(e.automationId,at.patch),ot(null),dt(!1)})}let Qn=(0,Q.useMemo)(()=>(0,$.jsx)(Ee,{className:`size-9 shrink-0 p-0`,loading:ft,label:s.refresh,onClick:zn}),[s.refresh,ft,zn]);return(0,Q.useLayoutEffect)(()=>{if(!t)return u({startExtra:null,main:(0,$.jsx)(`h1`,{className:`truncate text-base font-semibold tracking-tight text-fg`,children:c}),end:Qn}),()=>y()},[y,t,Qn,c,u]),(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,children:[(0,$.jsxs)(`div`,{className:q(`flex min-h-0 w-full flex-1 flex-col gap-4`,t?`py-1`:`px-4 pt-3 sm:px-9 lg:pt-4 xl:px-10`,!t&&(S?`overflow-y-auto`:`overflow-hidden`)),children:[t?(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3 rounded-xl bg-surface-base px-4 py-3`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsx)(he,{className:`size-4 text-accent-fg`,"aria-hidden":!0}),(0,$.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n||s.title})]}),(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:r||s.subtitle})]}),Qn]}):null,Oe||xt.error||St.error||Ct.error||wt.error?(0,$.jsx)(`div`,{role:`alert`,className:`rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-700 dark:text-red-300`,children:Oe||s.feedback.actionFailed}):null,S?Nt?(0,$.jsx)(on,{}):(0,$.jsx)(gn,{runs:mn,ownership:ie,labels:s,language:i,unreadCount:ie===`user`?cn.length:0,loading:Pt||ft,onOwnershipChange:V,onRefresh:zn,onSelectRun:Vn}):(0,$.jsxs)($.Fragment,{children:[!Nt&&jn&&ie===`user`?(0,$.jsxs)(`div`,{className:`flex items-center rounded-lg border border-red-500/20 bg-red-500/5`,children:[(0,$.jsxs)(`button`,{type:`button`,onClick:()=>B(`attention`),className:`flex min-w-0 flex-1 items-center gap-3 rounded-l-lg px-4 py-3 text-left focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(re,{className:`size-4 shrink-0 text-red-700 dark:text-red-300`,"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 text-sm text-fg`,children:[(0,$.jsxs)(`span`,{className:`font-medium`,children:[s.experience.executionIssues,` · `,kn.length]}),(0,$.jsx)(`span`,{className:`ml-2 text-fg-muted`,children:s.experience.issuesDescription})]})]}),(0,$.jsx)(`button`,{type:`button`,onClick:Mn,className:`mr-2 rounded-md p-2 text-fg-muted hover:bg-red-500/10 hover:text-fg focus-visible:ring-2 focus-visible:ring-accent`,"aria-label":s.close,title:s.close,children:(0,$.jsx)(me,{className:`size-4`,"aria-hidden":!0})})]}):null,Nt?(0,$.jsx)(on,{}):(0,$.jsxs)(vt,{language:i,busy:Pt,children:[(0,$.jsxs)(`aside`,{className:q(`max-h-[28vh] min-h-0 min-w-0 flex-col overflow-hidden rounded-xl bg-surface-inset md:flex md:h-full md:max-h-none`,w?`hidden`:`flex`),children:[(0,$.jsxs)(`div`,{className:`shrink-0 p-3`,children:[(0,$.jsx)(Tt,{language:i,labels:s,filter:L,ownership:ie,source:z,projectId:P,projects:Sn,projectLocked:F,query:ae,unreadCount:ie===`user`?ln:0,markReadBusy:ht===`runs:read-all`,onFilter:B,onOwnership:V,onSource:oe,onProject:Pn,onQuery:H,onClear:()=>{se(),V(`user`),F||Pn(``)},onMarkAllRead:()=>void Kn()}),(0,$.jsxs)(`button`,{type:`button`,onClick:()=>fe(!0),className:`mt-2 flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-fg hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,$.jsx)(W,{className:`size-4`,"aria-hidden":!0}),i===`zh`?`新建任务`:`New task`]})]}),T&&!_n.some(e=>e.id===T)?(0,$.jsxs)(`p`,{role:`status`,className:`px-3 pb-2 text-xs text-fg-muted`,children:[i===`zh`?`当前自动化不在筛选结果中。`:`The selected automation is outside these filters.`,(0,$.jsx)(`button`,{type:`button`,className:`ml-1 text-accent-fg underline`,onClick:se,children:i===`zh`?`清除筛选`:`Clear filters`})]}):null,(0,$.jsx)(pt,{automations:_n,runs:mn,labels:s,cronLabels:l,language:i,selectedAutomationId:E?null:Pe,selectedRunId:w?C:void 0,selectedRun:w?Zt:null,projectId:P||void 0,executionSummaries:(ie===`system`&&P?Ct.data:xt.data)?.executionSummaries,onSelectRun:Un,onOpenDetails:Hn,busy:ht!==null,onEdit:Ln,onAction:Gn})]}),w&&T?(0,$.jsx)(ct,{automationId:T,runId:C,projectId:P||void 0,language:i,onBack:()=>Hn(T),onDetails:()=>Ne(!0),onConfigure:e=>{Y.openConfiguration({automationId:e.automationId,runId:e.id}).then(({conversationId:t})=>{Ne(!1),x(n=>{let r=new URLSearchParams(n);return r.set(`automation`,e.automationId),r.set(`setupChat`,t),r.delete(`run`),r.delete(`view`),r})}).catch(e=>ke(e instanceof Error?e.message:String(e)))}},`${T}:${C}`):!E&&Qt&&!Qt.management&&Qt.action.kind!==`system`?(0,$.jsx)(bt,{automation:Qt,conversationId:D,runs:rn,language:i,onSelectRun:Vn},Qt.id):D?(0,$.jsx)(bt,{conversationId:D,runs:[],language:i,onSelectRun:Vn,onConfigured:Hn},D):!E&&Qt?(0,$.jsx)(xn,{automation:Qt,runs:rn,runsLoading:Et.isLoading,runsError:Et.error?s.feedback.actionFailed:void 0,labels:s,cronLabels:l,language:i,projects:Sn,agentOptions:vn,defaultAgentId:At.data?.defaultId,busyAction:ht,onEdit:Ln,onSelectRun:Vn,onAction:Gn},Qt.id):(0,$.jsx)(`div`,{className:`min-h-0 overflow-y-auto`,children:(0,$.jsx)(kt,{language:i,projectId:P,onOpenConversation:e=>{let t=new URL(e,window.location.origin),n=t.searchParams.get(`setupChat`);x(e=>{let r=new URLSearchParams(e);r.set(`new`,`1`),r.delete(`automation`),r.set(`setupChat`,n);let i=t.searchParams.get(`chatDraft`);return i?r.set(`chatDraft`,i):r.delete(`chatDraft`),r})}},P)})]})]})]}),de?(0,$.jsx)(Xe,{language:i,projectId:P,onClose:()=>fe(!1),onCreated:e=>{V(`user`),se(),Hn(e.id)}}):null,pe?(0,$.jsx)(Xe,{automation:pe,language:i,onClose:()=>J(null)}):null,(0,$.jsx)(v,{open:le,onOpenChange:e=>{G(e),e||(ve(null),Te(!1))},children:(0,$.jsxs)(h,{children:[(0,$.jsx)(p,{className:`xopc-dialog-overlay fixed inset-0 z-65 bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-66 flex h-[min(760px,calc(100vh-2rem))] w-[min(100%-2rem,64rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge px-5 py-4`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(_,{className:`text-base font-semibold text-fg`,children:K===`draft`?s.draft.title:en?s.editTitle:ye?s.draft.editTitle:s.createTitle}),(0,$.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:K===`draft`?s.draft.subtitle:s.form.createFlowHint})]}),(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,"aria-label":s.close,children:(0,$.jsx)(me,{className:`size-4`})})})]}),Oe?(0,$.jsx)(`p`,{role:`alert`,className:`px-5 py-2 text-sm text-red-700 dark:text-red-300`,children:Oe}):null,K===`draft`?(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:(0,$.jsx)(dn,{labels:s,prompt:Ie,draft:Re,loading:Be,approved:He,publishBusy:ht===`draft:publish`,testBusy:ht===`draft:test`,templates:On,projects:Sn,projectId:Ke,conversationMode:$e,notificationPolicy:tt,onPromptChange:Le,onGenerate:qn,onEdit:Rn,onPublish:Jn,onTest:Yn,onProjectChange:qe,onConversationModeChange:et,onNotificationPolicyChange:rt,projectLocked:F,onApprovedChange:Z,onDiscard:()=>{ze(null),Z(!1)},onTemplateSelect:e=>{In(e),De({...e.form,projectId:Ke})},onOpenAdvanced:()=>{De({...We,projectId:Ke,conversationMode:$e,notificationPolicy:tt}),ue(`blank`)}})}):(0,$.jsxs)($.Fragment,{children:[Cn?(0,$.jsx)(un,{form:X,setForm:De,labels:s}):K===`quick`&&ce?(0,$.jsx)(Ut,{form:X,setForm:De,labels:s,projects:Sn,projectLocked:F,source:ce.source,requiresProject:ce.requiresProject}):(0,$.jsx)(An,{form:X,labels:s,setForm:De,projects:Sn,agentOptions:vn,agentsLoading:At.isLoading,defaultAgentId:At.data?.defaultId??``,taskOptions:yn,tasksLoading:jt.isLoading,language:i,projectLocked:F}),Cn||K===`quick`?(0,$.jsx)(`div`,{className:`max-h-40 shrink-0 overflow-y-auto px-5 pb-4`,children:(0,$.jsx)(Je,{form:X,onChange:e=>De(t=>({...t,...e})),language:i})}):null,(0,$.jsxs)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-edge px-5 py-4`,children:[K===`quick`?(0,$.jsx)(Ce,{variant:`ghost`,onClick:()=>ue(`blank`),children:s.draft.advancedCreate}):null,ye?(0,$.jsx)(Ce,{variant:`ghost`,onClick:()=>{Te(!1),ue(`draft`)},children:s.cancel}):(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,children:s.cancel})}),(0,$.jsx)(Ce,{variant:`primary`,onClick:Wn,disabled:!Dn||!!ht||K===`quick`&&!!ce?.requiresProject&&!X.projectId,children:ht===`automation:create`||ht===`draft:edit`||en&&ht===`automation:${en.id}:edit`?s.feedback.working:en||ye?s.save:s.experience.createEnabled})]})]})]})]})}),(0,$.jsx)(v,{open:Me&&!!Zt,onOpenChange:e=>{Ne(e),!(e||w)&&x(e=>{let t=new URLSearchParams(e);return t.delete(`run`),t},{replace:!0})},children:(0,$.jsxs)(h,{children:[(0,$.jsx)(p,{className:`xopc-dialog-overlay fixed inset-0 z-65 bg-scrim backdrop-blur-[1px]`}),(0,$.jsxs)(g,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-66 flex h-[min(85vh,40rem)] w-[min(100%-2rem,32rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay shadow-popover outline-none`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-edge px-4 py-3`,children:[(0,$.jsx)(_,{className:`truncate text-base font-semibold text-fg`,children:Zt?.automationName??s.dashboard.result}),(0,$.jsx)(m,{asChild:!0,children:(0,$.jsx)(Ce,{variant:`ghost`,"aria-label":s.close,children:(0,$.jsx)(me,{className:`size-4`})})})]}),(0,$.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,$.jsx)(bn,{className:`rounded-none border-0`,run:Zt,events:sn,labels:s,cronLabels:l,language:i,loading:Dt.isLoading,repairDraft:at,repairLoading:st,repairApproved:ut,busyAction:ht,onRepairApprovedChange:dt,onSuggestRepair:Xn,onApplyRepair:Zn})})]})]})})]})}function un(e){let t=(0,ot.c)(48),{form:n,setForm:r,labels:i}=e,a;t[0]===r?a=t[1]:(a=e=>r(t=>({...t,...e})),t[0]=r,t[1]=a);let o=a,s;t[2]===i.form.trigger?s=t[3]:(s=(0,$.jsx)(Nn,{title:i.form.trigger}),t[2]=i.form.trigger,t[3]=s);let c;t[4]===o?c=t[5]:(c=e=>o({triggerMode:e.target.value}),t[4]=o,t[5]=c);let l;t[6]===i.trigger.daily?l=t[7]:(l=(0,$.jsx)(L,{value:`daily`,children:i.trigger.daily}),t[6]=i.trigger.daily,t[7]=l);let u;t[8]===i.trigger.weekly?u=t[9]:(u=(0,$.jsx)(L,{value:`weekly`,children:i.trigger.weekly}),t[8]=i.trigger.weekly,t[9]=u);let d;t[10]===i.trigger.interval?d=t[11]:(d=(0,$.jsx)(L,{value:`interval`,children:i.trigger.interval}),t[10]=i.trigger.interval,t[11]=d);let f;t[12]===i.trigger.customCron?f=t[13]:(f=(0,$.jsx)(L,{value:`cron`,children:i.trigger.customCron}),t[12]=i.trigger.customCron,t[13]=f);let p;t[14]!==n.triggerMode||t[15]!==i.form.trigger||t[16]!==c||t[17]!==l||t[18]!==u||t[19]!==d||t[20]!==f?(p=(0,$.jsxs)(I,{"aria-label":i.form.trigger,className:Mn,value:n.triggerMode,onChange:c,children:[l,u,d,f]}),t[14]=n.triggerMode,t[15]=i.form.trigger,t[16]=c,t[17]=l,t[18]=u,t[19]=d,t[20]=f,t[21]=p):p=t[21];let m;t[22]!==n.time||t[23]!==n.triggerMode||t[24]!==n.weekday||t[25]!==i.form.day||t[26]!==i.form.time||t[27]!==i.weekdays||t[28]!==o?(m=n.triggerMode===`daily`||n.triggerMode===`weekly`?(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-2`,children:[(0,$.jsx)(Z,{label:i.form.time,children:(0,$.jsx)($e,{value:n.time,onChange:e=>o({time:e}),ariaLabel:i.form.time})}),n.triggerMode===`weekly`?(0,$.jsx)(Z,{label:i.form.day,children:(0,$.jsxs)(I,{className:Mn,value:n.weekday,onChange:e=>o({weekday:e.target.value}),children:[(0,$.jsx)(L,{value:`1`,children:i.weekdays.monday}),(0,$.jsx)(L,{value:`2`,children:i.weekdays.tuesday}),(0,$.jsx)(L,{value:`3`,children:i.weekdays.wednesday}),(0,$.jsx)(L,{value:`4`,children:i.weekdays.thursday}),(0,$.jsx)(L,{value:`5`,children:i.weekdays.friday}),(0,$.jsx)(L,{value:`6`,children:i.weekdays.saturday}),(0,$.jsx)(L,{value:`0`,children:i.weekdays.sunday})]})}):null]}):null,t[22]=n.time,t[23]=n.triggerMode,t[24]=n.weekday,t[25]=i.form.day,t[26]=i.form.time,t[27]=i.weekdays,t[28]=o,t[29]=m):m=t[29];let h;t[30]!==n.intervalUnit||t[31]!==n.intervalValue||t[32]!==n.triggerMode||t[33]!==i.form.intervalEvery||t[34]!==i.form.intervalUnits||t[35]!==o?(h=n.triggerMode===`interval`?(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-[minmax(0,1fr)_10rem]`,children:[(0,$.jsx)(Z,{label:i.form.intervalEvery,children:(0,$.jsx)(`input`,{className:Mn,type:`number`,min:`1`,value:n.intervalValue,onChange:e=>o({intervalValue:e.target.value})})}),(0,$.jsx)(Z,{label:i.form.intervalUnits.minute,children:(0,$.jsxs)(I,{className:Mn,value:n.intervalUnit,onChange:e=>o({intervalUnit:e.target.value}),children:[(0,$.jsx)(L,{value:`minute`,children:i.form.intervalUnits.minute}),(0,$.jsx)(L,{value:`hour`,children:i.form.intervalUnits.hour}),(0,$.jsx)(L,{value:`day`,children:i.form.intervalUnits.day}),(0,$.jsx)(L,{value:`week`,children:i.form.intervalUnits.week})]})})]}):null,t[30]=n.intervalUnit,t[31]=n.intervalValue,t[32]=n.triggerMode,t[33]=i.form.intervalEvery,t[34]=i.form.intervalUnits,t[35]=o,t[36]=h):h=t[36];let g;t[37]!==n.cronExpr||t[38]!==n.triggerMode||t[39]!==i.form.expression||t[40]!==o?(g=n.triggerMode===`cron`?(0,$.jsx)(`div`,{className:`mt-4`,children:(0,$.jsx)(Z,{label:i.form.expression,children:(0,$.jsx)(`input`,{className:Mn,value:n.cronExpr,onChange:e=>o({cronExpr:e.target.value})})})}):null,t[37]=n.cronExpr,t[38]=n.triggerMode,t[39]=i.form.expression,t[40]=o,t[41]=g):g=t[41];let _;return t[42]!==h||t[43]!==g||t[44]!==s||t[45]!==p||t[46]!==m?(_=(0,$.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto p-5`,children:[s,p,m,h,g]}),t[42]=h,t[43]=g,t[44]=s,t[45]=p,t[46]=m,t[47]=_):_=t[47],_}function dn(e){let t=(0,ot.c)(110),{labels:n,prompt:r,draft:i,loading:a,approved:o,publishBusy:s,testBusy:c,templates:l,projects:u,projectId:d,conversationMode:f,notificationPolicy:p,onPromptChange:m,onGenerate:h,onEdit:g,onPublish:_,onTest:v,onProjectChange:y,onConversationModeChange:b,onNotificationPolicyChange:x,onApprovedChange:S,onDiscard:C,onTemplateSelect:ee,onOpenAdvanced:w,projectLocked:T}=e,E=s!==void 0&&s,D=c!==void 0&&c,O=T!==void 0&&T,k=!!(i&&i.simulation.requiredConfirmations.length>0),A;t[0]!==i||t[1]!==n.draft.advancedCreate||t[2]!==n.draft.suggestions||t[3]!==n.draft.suggestionsDescription||t[4]!==n.experience||t[5]!==w||t[6]!==ee||t[7]!==l?(A=i?null:(0,$.jsxs)(`div`,{className:`mb-5 border-b border-edge-subtle pb-4`,children:[(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:n.draft.suggestions}),(0,$.jsx)(`div`,{className:`mt-1 text-xs text-fg-muted`,children:n.draft.suggestionsDescription})]}),(0,$.jsx)(Ce,{variant:`ghost`,onClick:w,children:n.draft.advancedCreate})]}),(0,$.jsx)(`div`,{className:`mt-3 grid gap-2 sm:grid-cols-2`,children:l.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`focus-visible:ring-2 focus-visible:ring-accent rounded-lg bg-surface-panel p-3 text-left hover:bg-surface-hover`,onClick:()=>ee(e),children:[(0,$.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:e.name}),(0,$.jsx)(`div`,{className:`mt-1 line-clamp-2 text-xs text-fg-muted`,children:e.description}),(0,$.jsxs)(`div`,{className:`mt-2 text-xs text-fg-muted`,children:[n.experience.source,`: `,e.source]})]},e.name))})]}),t[0]=i,t[1]=n.draft.advancedCreate,t[2]=n.draft.suggestions,t[3]=n.draft.suggestionsDescription,t[4]=n.experience,t[5]=w,t[6]=ee,t[7]=l,t[8]=A):A=t[8];let j;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(de,{className:`size-4 text-accent`}),t[9]=j):j=t[9];let M;t[10]===n.draft.title?M=t[11]:(M=(0,$.jsxs)(`div`,{className:`flex items-center gap-2 text-sm font-semibold text-fg`,children:[j,n.draft.title]}),t[10]=n.draft.title,t[11]=M);let N;t[12]===n.draft.subtitle?N=t[13]:(N=(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-muted`,children:n.draft.subtitle}),t[12]=n.draft.subtitle,t[13]=N);let P;t[14]!==M||t[15]!==N?(P=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[M,N]}),t[14]=M,t[15]=N,t[16]=P):P=t[16];let F;t[17]!==a||t[18]!==r?(F=a||!r.trim(),t[17]=a,t[18]=r,t[19]=F):F=t[19];let te;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,$.jsx)(de,{className:`size-4`}),t[20]=te):te=t[20];let ne=a?n.draft.generating:n.draft.generate,re;t[21]!==h||t[22]!==ne||t[23]!==F?(re=(0,$.jsxs)(Ce,{variant:`primary`,onClick:h,disabled:F,children:[te,ne]}),t[21]=h,t[22]=ne,t[23]=F,t[24]=re):re=t[24];let ie;t[25]!==re||t[26]!==P?(ie=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[P,re]}),t[25]=re,t[26]=P,t[27]=ie):ie=t[27];let R;t[28]===m?R=t[29]:(R=e=>m(e.target.value),t[28]=m,t[29]=R);let z;t[30]!==n.draft.placeholder||t[31]!==n.draft.title||t[32]!==r||t[33]!==R?(z=(0,$.jsx)(`textarea`,{"aria-label":n.draft.title,className:`mt-4 min-h-20 w-full resize-y rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg outline-none focus:border-accent`,value:r,onChange:R,placeholder:n.draft.placeholder}),t[30]=n.draft.placeholder,t[31]=n.draft.title,t[32]=r,t[33]=R,t[34]=z):z=t[34];let ae=O?`sm:grid-cols-2`:`sm:grid-cols-3`,B;t[35]===ae?B=t[36]:(B=q(`mt-3 grid gap-3`,ae),t[35]=ae,t[36]=B);let V;t[37]!==n.draft.noProject||t[38]!==n.draft.project||t[39]!==y||t[40]!==d||t[41]!==O||t[42]!==u?(V=O?null:(0,$.jsx)(Z,{label:n.draft.project,children:(0,$.jsxs)(I,{className:Mn,value:d,onChange:e=>y(e.target.value),children:[(0,$.jsx)(L,{value:``,children:n.draft.noProject}),u.map(fn)]})}),t[37]=n.draft.noProject,t[38]=n.draft.project,t[39]=y,t[40]=d,t[41]=O,t[42]=u,t[43]=V):V=t[43];let H;t[44]===b?H=t[45]:(H=e=>b(e.target.value),t[44]=b,t[45]=H);let oe;t[46]===n.draft.newConversation?oe=t[47]:(oe=(0,$.jsx)(L,{value:`new_session`,children:n.draft.newConversation}),t[46]=n.draft.newConversation,t[47]=oe);let se;t[48]===n.draft.continuousConversation?se=t[49]:(se=(0,$.jsx)(L,{value:`continuous`,children:n.draft.continuousConversation}),t[48]=n.draft.continuousConversation,t[49]=se);let ce;t[50]!==f||t[51]!==H||t[52]!==oe||t[53]!==se?(ce=(0,$.jsxs)(I,{className:Mn,value:f,onChange:H,children:[oe,se]}),t[50]=f,t[51]=H,t[52]=oe,t[53]=se,t[54]=ce):ce=t[54];let W;t[55]!==n.draft.conversation||t[56]!==ce?(W=(0,$.jsx)(Z,{label:n.draft.conversation,children:ce}),t[55]=n.draft.conversation,t[56]=ce,t[57]=W):W=t[57];let G;t[58]===x?G=t[59]:(G=e=>x(e.target.value),t[58]=x,t[59]=G);let K;t[60]===n.draft.notifyAttention?K=t[61]:(K=(0,$.jsx)(L,{value:`attention`,children:n.draft.notifyAttention}),t[60]=n.draft.notifyAttention,t[61]=K);let ue;t[62]===n.draft.notifyAll?ue=t[63]:(ue=(0,$.jsx)(L,{value:`all`,children:n.draft.notifyAll}),t[62]=n.draft.notifyAll,t[63]=ue);let fe;t[64]===n.draft.notifyNone?fe=t[65]:(fe=(0,$.jsx)(L,{value:`none`,children:n.draft.notifyNone}),t[64]=n.draft.notifyNone,t[65]=fe);let pe;t[66]!==p||t[67]!==G||t[68]!==K||t[69]!==ue||t[70]!==fe?(pe=(0,$.jsxs)(I,{className:Mn,value:p,onChange:G,children:[K,ue,fe]}),t[66]=p,t[67]=G,t[68]=K,t[69]=ue,t[70]=fe,t[71]=pe):pe=t[71];let me;t[72]!==n.draft.notifications||t[73]!==pe?(me=(0,$.jsx)(Z,{label:n.draft.notifications,children:pe}),t[72]=n.draft.notifications,t[73]=pe,t[74]=me):me=t[74];let he;t[75]!==B||t[76]!==V||t[77]!==W||t[78]!==me?(he=(0,$.jsxs)(`div`,{className:B,children:[V,W,me]}),t[75]=B,t[76]=V,t[77]=W,t[78]=me,t[79]=he):he=t[79];let J;t[80]!==o||t[81]!==i||t[82]!==n.draft.approval||t[83]!==n.draft.assumptions||t[84]!==n.draft.discard||t[85]!==n.draft.edit||t[86]!==n.draft.publish||t[87]!==n.draft.review||t[88]!==n.draft.risks||t[89]!==n.draft.safety||t[90]!==n.draft.testOnce||t[91]!==n.draft.testing||t[92]!==n.feedback||t[93]!==n.info||t[94]!==n.none||t[95]!==S||t[96]!==C||t[97]!==g||t[98]!==_||t[99]!==v||t[100]!==E||t[101]!==k||t[102]!==D?(J=i?(0,$.jsxs)(`div`,{className:`mt-4 grid gap-3 rounded-lg bg-surface-base p-4 lg:grid-cols-[1fr_1fr]`,children:[(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-sm font-semibold text-fg`,children:i.automation.name}),i.automation.description?(0,$.jsx)(`div`,{className:`mt-1 text-sm text-fg-muted`,children:i.automation.description}):null,(0,$.jsxs)(`div`,{className:`mt-3 grid gap-2 text-sm`,children:[(0,$.jsx)(On,{label:n.info.when,value:i.simulation.triggerSummary}),(0,$.jsx)(On,{label:n.info.run,value:i.simulation.actionSummary})]})]}),(0,$.jsxs)(`div`,{className:`min-w-0`,children:[(0,$.jsx)(`div`,{className:`text-xs font-semibold uppercase text-fg-muted`,children:n.draft.review}),(0,$.jsx)(pn,{title:n.draft.safety,items:[...i.simulation.safetyNotes,...i.simulation.requiredConfirmations],empty:n.none}),(0,$.jsx)(pn,{title:n.draft.assumptions,items:i.assumptions,empty:n.none}),(0,$.jsx)(pn,{title:n.draft.risks,items:i.risks,empty:n.none}),k?(0,$.jsxs)(`label`,{className:`mt-4 flex items-start gap-2 text-sm text-fg`,children:[(0,$.jsx)(`input`,{className:`mt-1`,type:`checkbox`,checked:o,onChange:e=>S(e.target.checked)}),(0,$.jsx)(`span`,{children:n.draft.approval})]}):null,(0,$.jsxs)(`div`,{className:`mt-4 flex justify-end gap-2`,children:[(0,$.jsx)(Ce,{variant:`ghost`,onClick:C,children:n.draft.discard}),(0,$.jsxs)(Ce,{variant:`secondary`,onClick:g,children:[(0,$.jsx)(U,{className:`size-4`}),n.draft.edit]}),(0,$.jsxs)(Ce,{variant:`secondary`,onClick:v,disabled:D||E||k&&!o,children:[(0,$.jsx)(le,{className:`size-4`}),D?n.draft.testing:n.draft.testOnce]}),(0,$.jsx)(Ce,{variant:`primary`,onClick:_,disabled:E||k&&!o,children:E?n.feedback.working:n.draft.publish})]})]})]}):null,t[80]=o,t[81]=i,t[82]=n.draft.approval,t[83]=n.draft.assumptions,t[84]=n.draft.discard,t[85]=n.draft.edit,t[86]=n.draft.publish,t[87]=n.draft.review,t[88]=n.draft.risks,t[89]=n.draft.safety,t[90]=n.draft.testOnce,t[91]=n.draft.testing,t[92]=n.feedback,t[93]=n.info,t[94]=n.none,t[95]=S,t[96]=C,t[97]=g,t[98]=_,t[99]=v,t[100]=E,t[101]=k,t[102]=D,t[103]=J):J=t[103];let ge;return t[104]!==ie||t[105]!==z||t[106]!==he||t[107]!==J||t[108]!==A?(ge=(0,$.jsxs)(`section`,{className:`rounded-lg bg-surface-base p-4`,children:[A,ie,z,he,J]}),t[104]=ie,t[105]=z,t[106]=he,t[107]=J,t[108]=A,t[109]=ge):ge=t[109],ge}function fn(e){return(0,$.jsx)(L,{value:e.id,children:e.name},e.id)}function pn(e){let t=(0,ot.c)(10),{title:n,items:r,empty:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`div`,{className:`text-xs font-medium text-fg-muted`,children:n}),t[0]=n,t[1]=a);let o;t[2]!==i||t[3]!==r?(o=r.length>0?r.map(mn):(0,$.jsx)(`li`,{className:`text-fg-muted`,children:i}),t[2]=i,t[3]=r,t[4]=o):o=t[4];let s;t[5]===o?s=t[6]:(s=(0,$.jsx)(`ul`,{className:`mt-1 space-y-1 text-sm text-fg`,children:o}),t[5]=o,t[6]=s);let c;return t[7]!==a||t[8]!==s?(c=(0,$.jsxs)(`div`,{className:`mt-3`,children:[a,s]}),t[7]=a,t[8]=s,t[9]=c):c=t[9],c}function mn(e){return(0,$.jsxs)(`li`,{children:[`- `,e]},e)}function hn(e){let t=(0,ot.c)(25),{icon:n,label:r,value:i,tone:a,active:o,onClick:s}=e,c=a===void 0?`default`:a,l=c===`danger`?`text-red-600 dark:text-red-300`:`text-fg-subtle`,u;t[0]===l?u=t[1]:(u=q(`shrink-0`,l),t[0]=l,t[1]=u);let d;t[2]!==n||t[3]!==u?(d=(0,$.jsx)(`span`,{className:u,children:n}),t[2]=n,t[3]=u,t[4]=d):d=t[4];let f;t[5]===r?f=t[6]:(f=(0,$.jsx)(`span`,{className:`truncate text-xs font-medium text-fg-muted`,children:r}),t[5]=r,t[6]=f);let p=c===`danger`?`text-red-700 dark:text-red-300`:`text-fg`,m;t[7]===p?m=t[8]:(m=q(`ml-auto truncate text-sm font-semibold tabular-nums`,p),t[7]=p,t[8]=m);let h;t[9]!==m||t[10]!==i?(h=(0,$.jsx)(`span`,{className:m,children:i}),t[9]=m,t[10]=i,t[11]=h):h=t[11];let g;t[12]!==d||t[13]!==f||t[14]!==h?(g=(0,$.jsxs)($.Fragment,{children:[d,f,h]}),t[12]=d,t[13]=f,t[14]=h,t[15]=g):g=t[15];let _=g,v=o&&`bg-accent/8`,y=s&&`cursor-pointer hover:bg-surface-hover focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent`,b;t[16]!==v||t[17]!==y?(b=q(`flex min-h-12 min-w-0 items-center gap-2.5 bg-surface-base px-3 py-2.5 text-left transition-colors`,v,y),t[16]=v,t[17]=y,t[18]=b):b=t[18];let x=b,S=`${r}: ${i}`,C;return t[19]!==S||t[20]!==o||t[21]!==x||t[22]!==_||t[23]!==s?(C=s?(0,$.jsx)(`button`,{type:`button`,className:x,onClick:s,"aria-label":S,"aria-pressed":o,children:_}):(0,$.jsx)(`div`,{className:x,"aria-label":S,children:_}),t[19]=S,t[20]=o,t[21]=x,t[22]=_,t[23]=s,t[24]=C):C=t[24],C}function gn(e){let t=(0,ot.c)(74),{runs:n,ownership:r,labels:i,language:a,unreadCount:o,loading:s,onOwnershipChange:c,onRefresh:l,onSelectRun:u}=e,d;t[0]===n?d=t[1]:(d=n.filter($t),t[0]=n,t[1]=d);let f=d.length,p;t[2]===n?p=t[3]:(p=n.filter(en),t[2]=n,t[3]=p);let m=p.length,h;t[4]===i.dashboard.activity?h=t[5]:(h=(0,$.jsx)(`h2`,{id:`automation-activity-title`,className:`text-sm font-semibold text-fg`,children:i.dashboard.activity}),t[4]=i.dashboard.activity,t[5]=h);let g;t[6]===i.dashboard.activityDescription?g=t[7]:(g=(0,$.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-fg-muted`,children:i.dashboard.activityDescription}),t[6]=i.dashboard.activityDescription,t[7]=g);let _;t[8]!==h||t[9]!==g?(_=(0,$.jsxs)(`div`,{className:`min-w-0`,children:[h,g]}),t[8]=h,t[9]=g,t[10]=_):_=t[10];let v=i.filters.ownership,b=r===`user`&&`bg-surface-base text-fg shadow-sm`,x;t[11]===b?x=t[12]:(x=q(`rounded-md px-2.5 py-1.5 text-xs font-medium text-fg-muted hover:text-fg`,b),t[11]=b,t[12]=x);let S;t[13]===c?S=t[14]:(S=()=>c(`user`),t[13]=c,t[14]=S);let C=r===`user`,ee;t[15]!==i.filters.userManaged||t[16]!==C||t[17]!==x||t[18]!==S?(ee=(0,$.jsx)(`button`,{type:`button`,className:x,onClick:S,"aria-pressed":C,children:i.filters.userManaged}),t[15]=i.filters.userManaged,t[16]=C,t[17]=x,t[18]=S,t[19]=ee):ee=t[19];let w=r===`system`&&`bg-surface-base text-fg shadow-sm`,T;t[20]===w?T=t[21]:(T=q(`rounded-md px-2.5 py-1.5 text-xs font-medium text-fg-muted hover:text-fg`,w),t[20]=w,t[21]=T);let E;t[22]===c?E=t[23]:(E=()=>c(`system`),t[22]=c,t[23]=E);let D=r===`system`,O;t[24]!==i.system.title||t[25]!==T||t[26]!==E||t[27]!==D?(O=(0,$.jsx)(`button`,{type:`button`,className:T,onClick:E,"aria-pressed":D,children:i.system.title}),t[24]=i.system.title,t[25]=T,t[26]=E,t[27]=D,t[28]=O):O=t[28];let k;t[29]!==i.filters.ownership||t[30]!==ee||t[31]!==O?(k=(0,$.jsxs)(X,{className:`flex rounded-lg bg-surface-panel p-0.5`,role:`group`,"aria-label":v,indicatorClassName:`rounded-md bg-surface-base shadow-sm`,children:[ee,O]}),t[29]=i.filters.ownership,t[30]=ee,t[31]=O,t[32]=k):k=t[32];let A;t[33]!==i.refresh||t[34]!==s||t[35]!==l?(A=(0,$.jsx)(Ee,{className:`size-9 shrink-0 p-0`,loading:s,label:i.refresh,onClick:l}),t[33]=i.refresh,t[34]=s,t[35]=l,t[36]=A):A=t[36];let j;t[37]!==k||t[38]!==A?(j=(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[k,A]}),t[37]=k,t[38]=A,t[39]=j):j=t[39];let M;t[40]!==j||t[41]!==_?(M=(0,$.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3 border-b border-edge-subtle px-4 py-3 sm:px-5`,children:[_,j]}),t[40]=j,t[41]=_,t[42]=M):M=t[42];let N;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,$.jsx)(y,{className:`size-4`,"aria-hidden":!0}),t[43]=N):N=t[43];let P=i.metrics.total,F=String(n.length),te;t[44]!==i.metrics.total||t[45]!==F?(te=(0,$.jsx)(hn,{icon:N,label:P,value:F}),t[44]=i.metrics.total,t[45]=F,t[46]=te):te=t[46];let ne;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,$.jsx)(le,{className:`size-4`,"aria-hidden":!0}),t[47]=ne):ne=t[47];let I=i.metrics.running,L=String(f),R;t[48]!==i.metrics.running||t[49]!==L?(R=(0,$.jsx)(hn,{icon:ne,label:I,value:L}),t[48]=i.metrics.running,t[49]=L,t[50]=R):R=t[50];let z;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(re,{className:`size-4`,"aria-hidden":!0}),t[51]=z):z=t[51];let ae=i.dashboard.needsAttention,B=String(m),V=m>0?`danger`:`default`,H;t[52]!==i.dashboard.needsAttention||t[53]!==B||t[54]!==V?(H=(0,$.jsx)(hn,{icon:z,label:ae,value:B,tone:V}),t[52]=i.dashboard.needsAttention,t[53]=B,t[54]=V,t[55]=H):H=t[55];let oe;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,$.jsx)(ie,{className:`size-4`,"aria-hidden":!0}),t[56]=oe):oe=t[56];let se=i.filters.unread,ce=String(o),U;t[57]!==i.filters.unread||t[58]!==ce?(U=(0,$.jsx)(hn,{icon:oe,label:se,value:ce}),t[57]=i.filters.unread,t[58]=ce,t[59]=U):U=t[59];let W;t[60]!==te||t[61]!==R||t[62]!==H||t[63]!==U?(W=(0,$.jsxs)(`div`,{className:`grid grid-cols-2 gap-px border-b border-edge-subtle bg-edge-subtle lg:grid-cols-4`,children:[te,R,H,U]}),t[60]=te,t[61]=R,t[62]=H,t[63]=U,t[64]=W):W=t[64];let G;t[65]!==i||t[66]!==a||t[67]!==u||t[68]!==n?(G=n.length===0?(0,$.jsx)(kn,{className:`min-h-64 rounded-none border-0 shadow-none`,icon:(0,$.jsx)(y,{className:`size-5`}),title:i.empty.runs}):(0,$.jsx)(`div`,{className:`divide-y divide-edge-subtle`,children:n.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-start gap-3 px-4 py-3 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent sm:px-5`,onClick:()=>u(e.id),children:[(0,$.jsx)(`span`,{className:q(`mt-1.5 size-2 shrink-0 rounded-full`,$t(e)?`bg-blue-500`:en(e)?`bg-red-500`:`bg-emerald-500`),"aria-hidden":!0}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,$.jsx)(`span`,{className:`truncate text-sm font-medium text-fg`,children:e.automationName}),e.readAtMs==null&&!$t(e)?(0,$.jsx)(`span`,{className:`size-2 shrink-0 rounded-full bg-blue-500`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:i.filters.unread})}):null]}),(0,$.jsx)(`span`,{className:q(`mt-1 line-clamp-2 block text-sm text-fg-muted`,e.error&&`text-red-700 dark:text-red-300`),children:e.error||e.summary||i.status[e.status]}),(0,$.jsx)(`span`,{className:`mt-1 block text-xs text-fg-subtle`,children:qt(e.createdAtMs,i,a)})]}),(0,$.jsx)(`span`,{className:q(`shrink-0 rounded-full px-2 py-0.5 text-xs`,Zt(e.status)),children:i.status[e.status]})]},e.id))}),t[65]=i,t[66]=a,t[67]=u,t[68]=n,t[69]=G):G=t[69];let K;return t[70]!==M||t[71]!==W||t[72]!==G?(K=(0,$.jsxs)(`section`,{className:`overflow-hidden rounded-xl bg-surface-base`,"aria-labelledby":`automation-activity-title`,children:[M,W,G]}),t[70]=M,t[71]=W,t[72]=G,t[73]=K):K=t[73],K}function _n(e,t){let n=t.events,r=e.data&&typeof e.data==`object`?e.data:{},i=typeof r.actionKind==`string`?r.actionKind:null,a=typeof r.status==`string`&&r.status in t.status?t.status[r.status]:null;switch(e.type){case`run.queued`:return e.message.toLowerCase().includes(`manual`)?n.manualQueued:e.message.toLowerCase().includes(`scheduled`)?n.scheduledQueued:n.eventQueued;case`run.started`:return n.runStarted;case`action.started`:return i?n.actionStarted.replace(`{kind}`,i):n.actionStartedFallback;case`action.completed`:return i?n.actionCompleted.replace(`{kind}`,i):n.actionCompletedFallback;case`action.failed`:return i?n.actionFailed.replace(`{kind}`,i):n.actionFailedFallback;case`run.completed`:return a?n.runCompleted.replace(`{status}`,a):n.runCompletedFallback;default:return e.message}}function vn(e){let t=(0,ot.c)(17),{value:n,labels:r,title:i,defaultExpanded:a}=e,[o,s]=(0,Q.useState)(a!==void 0&&a),c;t[0]===n?c=t[1]:(c=JSON.stringify(n,null,2),t[0]=n,t[1]=c);let l=c,u;t[2]===l?u=t[3]:(u=l.split(`
5
5
  `),t[2]=l,t[3]=u);let d=u.length,f=l.length>720||d>18,p;t[4]!==f||t[5]!==l?(p=f?`${l.split(`